|
|
|
@ -40,6 +40,10 @@ |
|
|
|
<el-button type="primary" class="commonbutton" @click="refuseItem" style="font-size:11px;" |
|
|
|
:disabled="doctorBtnDisabled('refuseItem')">放弃明细项目检查</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '放弃项目检查')" class="divBtnClass"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="refuse" |
|
|
|
:disabled="doctorBtnDisabled('refuse')">放弃项目检查</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '删除明细项目')" class="divBtnClass"> |
|
|
|
<el-button type="primary" class="deleteButton" @click="delItem" |
|
|
|
:disabled="doctorBtnDisabled('delItem')">删除明细项目</el-button> |
|
|
|
@ -295,7 +299,7 @@ export default { |
|
|
|
//人员删除 |
|
|
|
btnDelPr() { |
|
|
|
if (!this.dataTransOpts.tableS.patient_register.id) { |
|
|
|
this.$message.warning({ showClose: true, message: "未选中要删除的人员记录"}) |
|
|
|
this.$message.warning({ showClose: true, message: "未选中要删除的人员记录" }) |
|
|
|
return |
|
|
|
} |
|
|
|
let id = this.dataTransOpts.tableS.patient_register.id |
|
|
|
@ -329,7 +333,7 @@ export default { |
|
|
|
//人员编辑 |
|
|
|
btnEditPr() { |
|
|
|
if (!this.dataTransOpts.tableS.patient_register.id) { |
|
|
|
this.$message.warning({ showClose: true, message: "未选中要编辑的人员记录"}) |
|
|
|
this.$message.warning({ showClose: true, message: "未选中要编辑的人员记录" }) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
@ -352,11 +356,11 @@ export default { |
|
|
|
// 上(下)一人 step 1 表示下一人, -1 表示上一人 |
|
|
|
btnStep(step) { |
|
|
|
if (!this.medicalStartDate) { |
|
|
|
this.$message.warning({ showClose: true, message: "请先设置体检日期"}) |
|
|
|
this.$message.warning({ showClose: true, message: "请先设置体检日期" }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.medicalStartDateDatas.length == 0) { |
|
|
|
this.$message.warning({ showClose: true, message: "当前设置的体检日期,无体检人员信息"}) |
|
|
|
this.$message.warning({ showClose: true, message: "当前设置的体检日期,无体检人员信息" }) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
@ -369,10 +373,10 @@ export default { |
|
|
|
lfind = arrayExistObj(this.medicalStartDateDatas, 'id', patientRegisterId) |
|
|
|
if (lfind > - 1) { |
|
|
|
if (lstep < 0 && lfind == 0) { |
|
|
|
this.$message.warning({ showClose: true, message: "已是第一个人"}) |
|
|
|
this.$message.warning({ showClose: true, message: "已是第一个人" }) |
|
|
|
return |
|
|
|
} else if (lstep > 0 && lfind == this.medicalStartDateDatas.length - 1) { |
|
|
|
this.$message.warning({ showClose: true, message: "已是最后一人"}) |
|
|
|
this.$message.warning({ showClose: true, message: "已是最后一人" }) |
|
|
|
return |
|
|
|
} |
|
|
|
lfind = Number(lfind) + Number(lstep) |
|
|
|
@ -405,7 +409,7 @@ export default { |
|
|
|
btnEdit() { |
|
|
|
let ret = this.optGrant('edit') |
|
|
|
if (ret) { |
|
|
|
this.$message.warning({ showClose: true, message: ret}) |
|
|
|
this.$message.warning({ showClose: true, message: ret }) |
|
|
|
return |
|
|
|
} |
|
|
|
this.doctorCheck.RegisterCheckEdit.completeFlag = '0' |
|
|
|
@ -415,7 +419,7 @@ export default { |
|
|
|
btnDel() { |
|
|
|
let ret = this.optGrant('del') |
|
|
|
if (ret) { |
|
|
|
this.$message.warning({ showClose: true, message: ret}) |
|
|
|
this.$message.warning({ showClose: true, message: ret }) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
@ -438,22 +442,22 @@ export default { |
|
|
|
refuseItem() { |
|
|
|
let ret = this.optGrant('refuseItem') |
|
|
|
if (ret) { |
|
|
|
this.$message.warning({ showClose: true, message: ret}) |
|
|
|
this.$message.warning({ showClose: true, message: ret }) |
|
|
|
return |
|
|
|
} |
|
|
|
// console.log('this.doctorCheck.checkItem',this.doctorCheck.checkItem) |
|
|
|
if (!this.doctorCheck.checkItem) { |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要操作的明细项目"}) |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要操作的明细项目" }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (!this.doctorCheck.checkItem.itemId) { |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要操作的明细项目"}) |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要操作的明细项目" }) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
let lfind = arrayExistObj(this.doctorCheck.checkItemList, 'itemId', this.doctorCheck.checkItem.itemId) |
|
|
|
if (lfind == -1) { |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要操作的明细项目"}) |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要操作的明细项目" }) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
@ -461,26 +465,52 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//放弃项目检查 |
|
|
|
refuse() { |
|
|
|
if (!this.doctorCheck.RegisterCheckEdit.id) { |
|
|
|
this.$message.warning({ showClose: true, message: '请选择要操作的项目' }) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
// [ |
|
|
|
// { |
|
|
|
// "registerCheckId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", |
|
|
|
// "completeFlag": "0" |
|
|
|
// } |
|
|
|
// ] |
|
|
|
postapi(`/api/app/registercheck/updatecompletemany`, [{registerCheckId:this.doctorCheck.RegisterCheckEdit.id,completeFlag:'2'}]) |
|
|
|
.then((res) => { |
|
|
|
if (res.code > -1) { |
|
|
|
this.doctorCheck.RegisterCheckEdit.completeFlag = '2' |
|
|
|
let lfind = arrayExistObj(this.doctorCheck.RegisterCheckList,'id',this.doctorCheck.RegisterCheckEdit.id) |
|
|
|
if(lfind > -1) this.doctorCheck.RegisterCheckList[lfind].completeFlag = '2' |
|
|
|
} |
|
|
|
}) |
|
|
|
; |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//删除明细项目 |
|
|
|
delItem() { |
|
|
|
let ret = this.optGrant('delItem') |
|
|
|
if (ret) { |
|
|
|
this.$message.warning({ showClose: true, message: ret}) |
|
|
|
this.$message.warning({ showClose: true, message: ret }) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
if (!this.doctorCheck.checkItem) { |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要删除的明细项目"}) |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要删除的明细项目" }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (!this.doctorCheck.checkItem.itemId) { |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要删除的明细项目"}) |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要删除的明细项目" }) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
let lfind = arrayExistObj(this.doctorCheck.checkItemList, 'itemId', this.doctorCheck.checkItem.itemId) |
|
|
|
if (lfind == -1) { |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要删除的明细项目"}) |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要删除的明细项目" }) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
@ -497,7 +527,7 @@ export default { |
|
|
|
} |
|
|
|
}).catch((err) => { |
|
|
|
if (err == "cancel") { |
|
|
|
this.$message.info({ showClose: true, message: "已取消"}); |
|
|
|
this.$message.info({ showClose: true, message: "已取消" }); |
|
|
|
} else { |
|
|
|
this.$message.error({ showClose: true, message: `项目明细删除失败,原因:${err}` }); |
|
|
|
} |
|
|
|
@ -515,7 +545,7 @@ export default { |
|
|
|
btnReport() { |
|
|
|
|
|
|
|
if (!this.$peisAPI) { |
|
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!"}) |
|
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }) |
|
|
|
return |
|
|
|
} |
|
|
|
///3a0c990e-5756-2dc0-19d5-69a617fe4048 |
|
|
|
@ -523,8 +553,8 @@ export default { |
|
|
|
let token = window.sessionStorage.getItem('token'); |
|
|
|
let user = window.sessionStorage.getItem('user'); |
|
|
|
let toOutShell = { |
|
|
|
isBuildImage:'N', |
|
|
|
IsUploadPdf:'N', |
|
|
|
isBuildImage: 'N', |
|
|
|
IsUploadPdf: 'N', |
|
|
|
ReportCode, token, |
|
|
|
preViewCanPrint: this.doctorCheck.prBase.isAudit, //this.dataTransOpts.tableS.patient_register.isAudit |
|
|
|
Parameters: [ |
|
|
|
@ -554,7 +584,7 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
this.$message.warning({ showClose: true, message: err}); |
|
|
|
this.$message.warning({ showClose: true, message: err }); |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
@ -562,7 +592,7 @@ export default { |
|
|
|
//总检 |
|
|
|
toSumDoctorCheck() { |
|
|
|
this.dataTransOpts.tableS.patient_register = Object.assign({}, this.doctorCheck.prBase) |
|
|
|
this.$router.push({ path: "/sumDoctorCheck", query: { patient_register: this.dataTransOpts.tableS.patient_register} }); |
|
|
|
this.$router.push({ path: "/sumDoctorCheck", query: { patient_register: this.dataTransOpts.tableS.patient_register } }); |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
@ -611,8 +641,10 @@ export default { |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|
<style scoped>@import '../../assets/css/global_button.css'; |
|
|
|
<style scoped> |
|
|
|
@import '../../assets/css/global_button.css'; |
|
|
|
|
|
|
|
.divBtnClass { |
|
|
|
margin-top: 5px; |
|
|
|
}</style> |
|
|
|
} |
|
|
|
</style> |