Browse Source

0005

master
pengjun 1 year ago
parent
commit
a2958352d0
  1. 14
      src/components/doctorCheck/ButtonList.vue
  2. 13
      src/components/report/BtnReport.vue
  3. 12
      src/components/sumDoctorCheck/ButtonList.vue

14
src/components/doctorCheck/ButtonList.vue

@ -542,7 +542,7 @@ export default {
},
//
btnReport() {
async btnReport() {
if (!this.$peisAPI) {
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" })
@ -556,7 +556,7 @@ 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' }, //YN N
@ -565,10 +565,18 @@ export default {
{ Name: "pageFooter", Value: "pic/peisReportPageFooter.jpg" },
{ 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 => {

13
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 },
@ -94,6 +94,13 @@ 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'
}
// 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) {

12
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' }, //YN 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) {

Loading…
Cancel
Save