|
|
|
@ -666,20 +666,21 @@ export default { |
|
|
|
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 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(this.tableDataCurrentRow,this.tableData[lfind]) |
|
|
|
objCopy(currentRow,this.tableData[lfind]) |
|
|
|
} else { |
|
|
|
lfind = this.tableData.length |
|
|
|
this.tableDataCurrentRow.index = lfind |
|
|
|
this.tableDataCurrentRow.choosed = true |
|
|
|
this.tableData.push(this.tableDataCurrentRow) |
|
|
|
currentRow.index = lfind |
|
|
|
currentRow.choosed = true |
|
|
|
this.tableData.push(currentRow) |
|
|
|
} |
|
|
|
|
|
|
|
// 刷新 register_check_asbitem 表记录 |
|
|
|
@ -744,9 +745,13 @@ export default { |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
console.log("操作成功"); |
|
|
|
arrayReduce(this.tableData, this.multipleSelection, 'id=id') |
|
|
|
this.setForm(this.patientRegister.patientRegisterRdInit) |
|
|
|
this.getPatientRegisterAbs(); |
|
|
|
this.dataTransOpts.tableS.patient_register.id = '' |
|
|
|
setTimeout(() => { |
|
|
|
this.dataTransOpts.refresh.register_check_asbitem.M++ |
|
|
|
}, 10); |
|
|
|
arrayReduce(this.tableData, this.multipleSelection, 'id=id') //清除列表记录 |
|
|
|
// this.setForm(this.patientRegister.patientRegisterRdInit) |
|
|
|
// this.getPatientRegisterAbs(); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
|