|
|
|
@ -171,7 +171,7 @@ |
|
|
|
@close="close_dialogWin_PatientRegisterEdit"> |
|
|
|
<!-- :formInitData="patientRegister.patientRegisterRd" --> |
|
|
|
<PatientRegisterEdit :isDoctor="'1'" :patientRegisterId="patientRegister.patientRegisterRd.id" |
|
|
|
:editTimes="editTimes" :refreshRegister="refreshRegister" :refFuncSetData="refFuncSetData"/> |
|
|
|
:editTimes="editTimes" :refreshRegister="refreshRegister" :refFuncSetData="refFuncSetData" /> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- 拍照 --> |
|
|
|
@ -591,11 +591,11 @@ export default { |
|
|
|
// this.getPatientRegisterAbs(); |
|
|
|
|
|
|
|
this.dataTransOpts.tableS.patient_register.id = '' |
|
|
|
this.dialogWin.PatientRegisterEdit = true; |
|
|
|
this.dialogWin.PatientRegisterEdit = true; |
|
|
|
this.dataTransOpts.plus.clearPatientRegisterQuery++ //触发清空人员登记界面的查询条件 |
|
|
|
setTimeout(() => { |
|
|
|
this.dataTransOpts.refresh.patient_register.S++ //触发人员信息刷新 |
|
|
|
}, 10); |
|
|
|
}, 10); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
@ -659,32 +659,32 @@ export default { |
|
|
|
async close_dialogWin_PatientRegisterEdit() { |
|
|
|
// 如果 dataTransOpts.tableS.patient_register.id 为空(未增加),则不做处理 |
|
|
|
let id = this.dataTransOpts.tableS.patient_register.id |
|
|
|
if (!id){ |
|
|
|
if (!id) { |
|
|
|
id = this.tableDataCurrentRow.id |
|
|
|
} |
|
|
|
if(!id) return |
|
|
|
if (!id) return |
|
|
|
this.dataTransOpts.tableS.patient_register.id = id |
|
|
|
|
|
|
|
|
|
|
|
let res = await postapi(`/api/app/patientregister/getinfoorpatient?PatientRegisterId=${this.dataTransOpts.tableS.patient_register.id}`) |
|
|
|
if (res.code != 1) return |
|
|
|
let currentRow = res.data |
|
|
|
|
|
|
|
|
|
|
|
// this.tableData.forEach(e => { |
|
|
|
// e.choosed = false |
|
|
|
// }); |
|
|
|
let lfind = arrayExistObj(this.tableData, 'id', this.dataTransOpts.tableS.patient_register.id) |
|
|
|
if (lfind > -1) { |
|
|
|
objCopy(currentRow,this.tableData[lfind]) |
|
|
|
if (lfind > -1) { |
|
|
|
objCopy(currentRow, this.tableData[lfind]) |
|
|
|
} else { |
|
|
|
lfind = this.tableData.length |
|
|
|
currentRow.index = lfind |
|
|
|
currentRow.choosed = true |
|
|
|
this.tableData.push(currentRow) |
|
|
|
this.tableData.push(currentRow) |
|
|
|
} |
|
|
|
|
|
|
|
// 刷新 register_check_asbitem 表记录 |
|
|
|
if (lfind > -1) { |
|
|
|
this.dataTransOpts.refresh.register_check_asbitem.M++ |
|
|
|
this.dataTransOpts.refresh.register_check_asbitem.M++ |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
@ -840,36 +840,33 @@ export default { |
|
|
|
}; |
|
|
|
|
|
|
|
console.log("/api/app/patientregister/getlistinfilter", body); |
|
|
|
const loading = this.$loading({ |
|
|
|
lock: true, |
|
|
|
text: "Loading", |
|
|
|
spinner: "el-icon-loading", |
|
|
|
background: "rgba(0, 0, 0, 0.7)", |
|
|
|
}); |
|
|
|
|
|
|
|
let res = await postapi("/api/app/patientregister/getlistinfilter", body) |
|
|
|
if (res.code != -1) { |
|
|
|
// 刷新最大记录数 |
|
|
|
this.loadOpts.totalCount = res.data.totalCount |
|
|
|
let curLoad = res.data.items |
|
|
|
let oldCount = 0 |
|
|
|
postapi("/api/app/patientregister/getlistinfilter", body) |
|
|
|
.then(res => { |
|
|
|
if (res.code != -1) { |
|
|
|
// 刷新最大记录数 |
|
|
|
this.loadOpts.totalCount = res.data.totalCount |
|
|
|
let curLoad = res.data.items |
|
|
|
let oldCount = 0 |
|
|
|
|
|
|
|
if (body.skipCount == 0) { //查询 |
|
|
|
this.tableData = []; |
|
|
|
} else { |
|
|
|
// 懒加载 ,原数据集不用清空 |
|
|
|
oldCount = this.tableData.length |
|
|
|
} |
|
|
|
curLoad.forEach((e, index) => { |
|
|
|
this.tableData.push(Object.assign({ index: Number(oldCount) + Number(index), choosed: false }, e)) |
|
|
|
}) |
|
|
|
|
|
|
|
if (body.skipCount == 0) { //查询 |
|
|
|
this.tableData = []; |
|
|
|
} else { |
|
|
|
// 懒加载 ,原数据集不用清空 |
|
|
|
oldCount = this.tableData.length |
|
|
|
} |
|
|
|
curLoad.forEach((e, index) => { |
|
|
|
this.tableData.push(Object.assign({ index: Number(oldCount) + Number(index), choosed: false }, e)) |
|
|
|
//如果 有选中 记录,则刷新其对应的组合项目 |
|
|
|
if (this.dataTransOpts.tableS.patient_register.id) { |
|
|
|
this.dataTransOpts.refresh.register_check_asbitem.M++ |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
//如果 有选中 记录,则刷新其对应的组合项目 |
|
|
|
if (this.dataTransOpts.tableS.patient_register.id) { |
|
|
|
this.dataTransOpts.refresh.register_check_asbitem.M++ |
|
|
|
} |
|
|
|
} |
|
|
|
loading.close(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//滚动加载数据 |
|
|
|
@ -893,8 +890,6 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//右击菜单 |
|
|
|
onCellRightClick(row, column) { |
|
|
|
this.rClickRow = { ...row }; //右击的行记录 |
|
|
|
@ -974,7 +969,7 @@ export default { |
|
|
|
if (this.multipleSelection.length < 1) { |
|
|
|
this.$message.info("请选择要操作的记录!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
this.dataTransOpts.plus.PatientRegisterEditGroupBatch++ |
|
|
|
this.dialogWin.PatientRegisterEditGroupBatch = true; |
|
|
|
|
|
|
|
@ -1000,7 +995,7 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
this.dataTransOpts.plus.PatientRegisterEditItemBatch++ //如果放在弹窗显示后面,在首次加载子组件时,会触发两次数据处理 |
|
|
|
this.dialogWin.PatientRegisterEditItemBatch = true; |
|
|
|
this.dialogWin.PatientRegisterEditItemBatch = true; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|