|
|
@ -574,6 +574,7 @@ export default { |
|
|
|
dialogFormVisible: false, |
|
|
|
dataForm: { |
|
|
|
id: '', |
|
|
|
idList: [], |
|
|
|
patientId: '', |
|
|
|
hongmOd: '', // 虹膜 |
|
|
|
hongmOs: '', // 虹膜 |
|
|
@ -772,6 +773,7 @@ export default { |
|
|
|
}, |
|
|
|
// 表格复选框 |
|
|
|
selection(selection, val) { |
|
|
|
console.log(arguments) |
|
|
|
if (!val.id) { |
|
|
|
const data = this.tableData.filter(item => item.name === val.name) |
|
|
|
if (val.flag) { |
|
|
@ -903,6 +905,7 @@ export default { |
|
|
|
this.dataForm[resKey] = this.dataForm[resKey].join(',') |
|
|
|
} |
|
|
|
} |
|
|
|
if (!this.dataForm.caseId) this.dataForm.caseId = this.caseId |
|
|
|
const { data: res } = await this.$http.post('/mjz/saveMjzQdjc', this.dataForm) |
|
|
|
if (res.code === 0) { |
|
|
|
await this.getforeList() |
|
|
@ -1019,6 +1022,22 @@ export default { |
|
|
|
if (res.code === 0) { |
|
|
|
if (res.data) { |
|
|
|
this.dataForm = this.handleData(res.data) |
|
|
|
const idList = this.dataForm.idList || [] |
|
|
|
if (idList.length) { |
|
|
|
idList.forEach(item => { |
|
|
|
this.tableData.forEach(row => { |
|
|
|
if (item == row.id) { |
|
|
|
row.flag = true |
|
|
|
this.$refs.multipleTable.toggleRowSelection(row, true) |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.tableData.forEach(row => { |
|
|
|
row.flag = false |
|
|
|
this.$refs.multipleTable.toggleRowSelection(row, false) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.$message.error(res.msg) |
|
|
@ -1026,6 +1045,13 @@ export default { |
|
|
|
}, |
|
|
|
// 点击保存模板后弹框 |
|
|
|
handleTemplate() { |
|
|
|
this.dataForm.idList = [] |
|
|
|
this.tableData.forEach(item => { |
|
|
|
if (item.flag && item.id) { |
|
|
|
this.dataForm.idList.push(item.id) |
|
|
|
} |
|
|
|
}) |
|
|
|
if (!this.dataForm.idList.length) return this.$message.warning('请选择检查项!') |
|
|
|
this.form.name = '' |
|
|
|
this.treeId = '' |
|
|
|
this.queryTemplate() |
|
|
|