|
|
|
@ -595,9 +595,9 @@ |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- 通用进度条 --> |
|
|
|
<el-dialog title="数据处理中……" :visible.sync="elProgress.display" width="600px" height="400" :show-close="false" |
|
|
|
<el-dialog title="数据处理中……" :visible.sync="dialogElProgress" width="600px" height="400" :show-close="false" |
|
|
|
:close-on-click-modal="false" :append-to-body="true"> |
|
|
|
<ElProgressOCX /> |
|
|
|
<ElProgressOCX0 /> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!--云胶片二维码--> |
|
|
|
@ -658,7 +658,7 @@ import PatientRegisterEdit from "../../components/patientRegister/PatientRegiste |
|
|
|
import Camera from "../../components/patientRegister/Camera.vue"; |
|
|
|
import PatientRegisterAsbItem from "../../components/patientRegister/patientRegisterAsbItem.vue"; |
|
|
|
|
|
|
|
import ElProgressOCX from "../../components/report/ElProgressOCX.vue"; |
|
|
|
import ElProgressOCX0 from "../../components/report/ElProgressOCX.vue"; |
|
|
|
import PatientRegisterEditGroupBatch from "./PatientRegisterEditGroupBatch.vue"; |
|
|
|
import PatientRegisterEditItemBatch from "./PatientRegisterEditItemBatch.vue"; |
|
|
|
import PatientRegisterEditDoctorBatch from "./PatientRegisterEditDoctorBatch.vue"; |
|
|
|
@ -681,9 +681,9 @@ export default { |
|
|
|
PatientRegisterEditMedicalTypeBatch, // 批量调整体检类别 |
|
|
|
PatientRegisterEditPersonnelTypeBatch, // 批量调整体检类别 |
|
|
|
PatientRegisterEditRemarkBatch, // 批量调整体检类别 |
|
|
|
ElProgressOCX, |
|
|
|
ElProgressOCX0, |
|
|
|
ImportOrgData, |
|
|
|
Queue,PreviewCusGrant, |
|
|
|
Queue, PreviewCusGrant, |
|
|
|
DownloadExcel: JsonExcel, |
|
|
|
UTable, |
|
|
|
UTableColumn, |
|
|
|
@ -947,9 +947,9 @@ export default { |
|
|
|
nation: [], |
|
|
|
dialogEditMedicalStartDate: false, // 修改体检日期 |
|
|
|
queueParams: { |
|
|
|
patientRegisterId:'', |
|
|
|
patientName:'', |
|
|
|
queueTimes:0, //刷新用 |
|
|
|
patientRegisterId: '', |
|
|
|
patientName: '', |
|
|
|
queueTimes: 0, //刷新用 |
|
|
|
}, // 分诊排队参数 |
|
|
|
LocalConfig: { |
|
|
|
normal: { |
|
|
|
@ -984,7 +984,8 @@ export default { |
|
|
|
preCusGrantParams: { |
|
|
|
patientRegisterId: '', |
|
|
|
brushTimes: 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
dialogElProgress:false, // 本页面所涉进度条 |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -1210,7 +1211,7 @@ export default { |
|
|
|
this.$message.warning({ showClose: true, message: `${err}` }); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.elProgress.display = true; |
|
|
|
this.dialogElProgress = true; |
|
|
|
this.elProgress.percentage = 0; |
|
|
|
|
|
|
|
for (let i = 0; i < this.multipleSelection.length; i++) { |
|
|
|
@ -1251,7 +1252,7 @@ export default { |
|
|
|
((i + 1) * 100) / this.multipleSelection.length |
|
|
|
); |
|
|
|
} |
|
|
|
this.elProgress.display = false; |
|
|
|
this.dialogElProgress = false; |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
@ -1388,7 +1389,7 @@ export default { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
this.elProgress.display = true; |
|
|
|
this.dialogElProgress = true; |
|
|
|
this.elProgress.percentage = 0; |
|
|
|
|
|
|
|
for (let i = 0; i < this.multipleSelection.length; i++) { |
|
|
|
@ -1403,7 +1404,7 @@ export default { |
|
|
|
((i + 1) * 100) / this.multipleSelection.length |
|
|
|
); |
|
|
|
} |
|
|
|
this.elProgress.display = false; |
|
|
|
this.dialogElProgress = false; |
|
|
|
}, |
|
|
|
|
|
|
|
// 临时加 |
|
|
|
@ -1416,7 +1417,7 @@ export default { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
this.elProgress.display = true; |
|
|
|
this.dialogElProgress = true; |
|
|
|
this.elProgress.percentage = 0; |
|
|
|
|
|
|
|
for (let i = 0; i < this.multipleSelection.length; i++) { |
|
|
|
@ -1431,7 +1432,7 @@ export default { |
|
|
|
((i + 1) * 100) / this.multipleSelection.length |
|
|
|
); |
|
|
|
} |
|
|
|
this.elProgress.display = false; |
|
|
|
this.dialogElProgress = false; |
|
|
|
}, |
|
|
|
|
|
|
|
handleSelectionChange(rows) { |
|
|
|
@ -1707,14 +1708,6 @@ export default { |
|
|
|
//删除(可批量删除) |
|
|
|
// /api/app/patient-register/many?PatientRegisterIds=3a0c2cac-f44c-f407-9504-c1fc5e80a159&PatientRegisterIds=3a0c2cb3-d10c-ed70-db6a-b835e75ce641 |
|
|
|
btnDel() { |
|
|
|
//选中(取消勾选)start ------------------------- |
|
|
|
// this.multipleSelection = [] |
|
|
|
// this.tableData.forEach(e => { |
|
|
|
// if (e.choosed) { |
|
|
|
// this.multipleSelection.push(deepCopy(e)) |
|
|
|
// } |
|
|
|
// }) |
|
|
|
//选中(取消勾选) end ------------------------- |
|
|
|
|
|
|
|
if (this.multipleSelection.length < 1) { |
|
|
|
this.$message.warning({ |
|
|
|
@ -1734,24 +1727,43 @@ export default { |
|
|
|
cancelButtonText: "否", |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
//// console.log('{patientRegisterIds}',{patientRegisterIds}) |
|
|
|
return postapi("/api/app/patient-register/delete-many", { |
|
|
|
patientRegisterIds, |
|
|
|
}); |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
// console.log("操作成功"); |
|
|
|
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(); |
|
|
|
.then(async () => { |
|
|
|
let lfind |
|
|
|
this.dialogElProgress = true; |
|
|
|
this.elProgress.percentage = 0; |
|
|
|
|
|
|
|
for (let index = 0; index < patientRegisterIds.length; index++) { |
|
|
|
const e = patientRegisterIds[index]; |
|
|
|
try { |
|
|
|
this.elProgress.percentage = Math.floor(index * 100 / patientRegisterIds.length) |
|
|
|
let res = await postapi("/api/app/patient-register/delete-many", { patientRegisterIds: [e] }); |
|
|
|
if (res.code > -1) { |
|
|
|
lfind = arrayExistObj(this.tableData, 'id', e) |
|
|
|
if (lfind > -1) this.tableData.splice(lfind, 1) |
|
|
|
this.loadOpts.totalCount = this.tableData.length |
|
|
|
} |
|
|
|
} catch (error) { |
|
|
|
console.error('批量删除', error) |
|
|
|
} |
|
|
|
} |
|
|
|
this.dialogElProgress = false; |
|
|
|
// return postapi("/api/app/patient-register/delete-many", { |
|
|
|
// patientRegisterIds, |
|
|
|
// }); |
|
|
|
|
|
|
|
}) |
|
|
|
// .then((res) => { |
|
|
|
// if (res.code != -1) { |
|
|
|
// // console.log("操作成功"); |
|
|
|
// 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) => { |
|
|
|
if (err == "cancel") { |
|
|
|
this.$message.info({ showClose: true, message: "已取消操作" }); |
|
|
|
@ -2206,10 +2218,10 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
// 知情同意书 |
|
|
|
previewCusGrant(row){ |
|
|
|
this.dialogWin.previewCusGrant = true |
|
|
|
previewCusGrant(row) { |
|
|
|
this.preCusGrantParams.patientRegisterId = row.id |
|
|
|
this.preCusGrantParams.brushTimes++ |
|
|
|
this.dialogWin.previewCusGrant = true |
|
|
|
}, |
|
|
|
|
|
|
|
//表右击菜单 |
|
|
|
@ -2558,7 +2570,7 @@ export default { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
this.elProgress.display = true; |
|
|
|
this.dialogElProgress = true; |
|
|
|
this.elProgress.percentage = 0; |
|
|
|
|
|
|
|
for (let i = 0; i < this.multipleSelection.length; i++) { |
|
|
|
@ -2575,7 +2587,7 @@ export default { |
|
|
|
((i + 1) * 100) / this.multipleSelection.length |
|
|
|
); |
|
|
|
} |
|
|
|
this.elProgress.display = false; |
|
|
|
this.dialogElProgress = false; |
|
|
|
}, |
|
|
|
|
|
|
|
//检验申请 |
|
|
|
|