From a2958352d02ffc8b929174c73e03a4c8b37a93f9 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Thu, 16 May 2024 22:43:07 +0800 Subject: [PATCH] 0005 --- src/components/doctorCheck/ButtonList.vue | 28 +++++++++++++------- src/components/report/BtnReport.vue | 15 +++++++++-- src/components/sumDoctorCheck/ButtonList.vue | 12 +++++++-- 3 files changed, 41 insertions(+), 14 deletions(-) diff --git a/src/components/doctorCheck/ButtonList.vue b/src/components/doctorCheck/ButtonList.vue index 8a13447..5d28cb6 100644 --- a/src/components/doctorCheck/ButtonList.vue +++ b/src/components/doctorCheck/ButtonList.vue @@ -41,7 +41,7 @@ :disabled="doctorBtnDisabled('refuseItem')">放弃明细项目检查
- 放弃项目检查
@@ -478,12 +478,12 @@ export default { // "completeFlag": "0" // } // ] - postapi(`/api/app/registercheck/updatecompletemany`, [{registerCheckId:this.doctorCheck.RegisterCheckEdit.id,completeFlag:'2'}]) + postapi(`/api/app/registercheck/updatecompletemany`, [{ registerCheckId: this.doctorCheck.RegisterCheckEdit.id, completeFlag: '2' }]) .then((res) => { - if (res.code > -1) { + 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' + let lfind = arrayExistObj(this.doctorCheck.RegisterCheckList, 'id', this.doctorCheck.RegisterCheckEdit.id) + if (lfind > -1) this.doctorCheck.RegisterCheckList[lfind].completeFlag = '2' } }) ; @@ -542,7 +542,7 @@ export default { }, //体检报告 - btnReport() { + async btnReport() { if (!this.$peisAPI) { this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }) @@ -556,19 +556,27 @@ export default { isBuildImage: 'N', IsUploadPdf: 'N', ReportCode, token, - preViewCanPrint: this.doctorCheck.prBase.isAudit, //this.dataTransOpts.tableS.patient_register.isAudit + preViewCanPrint: 'Y', // this.doctorCheck.prBase.isAudit, //this.dataTransOpts.tableS.patient_register.isAudit Parameters: [ { Name: 'printer', Value: user }, { Name: 'LTS', Value: 'Y' }, //Y、N N只看不能打印 { Name: "firstPage", Value: "pic/peisReportFirstPage.jpg" }, { Name: "pageHeader", Value: "pic/peisReportPageHeader.jpg" }, { Name: "pageFooter", Value: "pic/peisReportPageFooter.jpg" }, - { Name: "orgSign", Value: "pic/orgSign.png" }, + { Name: "orgSign", Value: "pic/orgSign.png" }, { Name: 'picExtOne', Value: 'pic/hisLog.jpg' }, - ], }; - + + // 总检审核后才能打印 + if(this.dataTransOpts.tableS.patient_register.completeFlag != '3') toOutShell.preViewCanPrint = 'N' + if (toOutShell.preViewCanPrint == 'Y' && this.dataTransOpts.tableS.patient_register.isAudit == 'N') { + let sysParmId = "medical_report_print_after_summary_check_is_audit" + let sysParam = await postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId }) + if(sysParam.data.toUpperCase() == 'Y') toOutShell.preViewCanPrint = 'N' + } + + toOutShell.BusinessCode = this.doctorCheck.prBase.id this.$peisAPI.printPre(JSON.stringify(toOutShell)) .then(res => { diff --git a/src/components/report/BtnReport.vue b/src/components/report/BtnReport.vue index 429e447..98b1de8 100644 --- a/src/components/report/BtnReport.vue +++ b/src/components/report/BtnReport.vue @@ -81,7 +81,7 @@ export default { ReportCode, token, isBuildImage: 'N', IsUploadPdf: 'N', - preViewCanPrint: this.dataTransOpts.tableS.patient_register.isAudit, + preViewCanPrint: 'Y', BusinessCode: this.dataTransOpts.tableS.patient_register.id, Parameters: [ { Name: 'printer', Value: user }, @@ -93,7 +93,14 @@ export default { { Name: 'picExtOne', Value: 'pic/hisLog.jpg' }, ], }; - + + // 总检审核后才能打印 + if(this.dataTransOpts.tableS.patient_register.completeFlag != '3') toOutShell.preViewCanPrint = 'N' + if (toOutShell.preViewCanPrint == 'Y' && this.dataTransOpts.tableS.patient_register.isAudit == 'N') { + let sysParmId = "medical_report_print_after_summary_check_is_audit" + let sysParam = await postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId }) + if(sysParam.data.toUpperCase() == 'Y') toOutShell.preViewCanPrint = 'N' + } // let res = await postapi(`/api/app/printreport/getpeisreport?PatientRegisterId=${this.patientRegister.patientRegisterId}`) // toOutShell.ReportTable = res.data @@ -110,6 +117,10 @@ export default { }); } else { + if(toOutShell.preViewCanPrint == 'N'){ + this.$message.warning({showClose:true,message:'未总检或未审核,不可打印报告'}) + return + } this.$peisAPI.print(JSON.stringify(toOutShell)) .then(res => { if (JSON.parse(res).code < 0) { diff --git a/src/components/sumDoctorCheck/ButtonList.vue b/src/components/sumDoctorCheck/ButtonList.vue index 7396ce2..166f597 100644 --- a/src/components/sumDoctorCheck/ButtonList.vue +++ b/src/components/sumDoctorCheck/ButtonList.vue @@ -295,7 +295,7 @@ export default { }, //体检报告 - btnReport() { + async btnReport() { if (!this.$peisAPI) { this.$message.info("此功能,需要在壳客户端才可运行!") @@ -309,7 +309,7 @@ export default { ReportCode, token, isBuildImage:'N', IsUploadPdf:'N', - preViewCanPrint: this.dataTransOpts.tableS.patient_register.isAudit, + preViewCanPrint: 'Y', Parameters: [ { Name: 'printer', Value: user }, { Name: 'LTS', Value: 'Y' }, //Y、N N只看不能打印 @@ -321,6 +321,14 @@ export default { ], }; + // 总检审核后才能打印 + if(this.dataTransOpts.tableS.patient_register.completeFlag != '3') toOutShell.preViewCanPrint = 'N' + if (toOutShell.preViewCanPrint == 'Y' && this.dataTransOpts.tableS.patient_register.isAudit == 'N') { + let sysParmId = "medical_report_print_after_summary_check_is_audit" + let sysParam = await postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId }) + if(sysParam.data.toUpperCase() == 'Y') toOutShell.preViewCanPrint = 'N' + } + // postapi(`/api/app/printreport/getpeisreport?PatientRegisterId=${this.dataTransOpts.tableS.patient_register.id}`) // .then((res) => { // if (res.code != -1) {