Browse Source

0005

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

20
src/components/doctorCheck/ButtonList.vue

@ -478,12 +478,12 @@ export default {
// "completeFlag": "0" // "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) => { .then((res) => {
if (res.code > -1) { if (res.code > -1) {
this.doctorCheck.RegisterCheckEdit.completeFlag = '2' 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) { if (!this.$peisAPI) {
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }) this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" })
@ -556,7 +556,7 @@ export default {
isBuildImage: 'N', isBuildImage: 'N',
IsUploadPdf: 'N', IsUploadPdf: 'N',
ReportCode, token, 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: [ Parameters: [
{ Name: 'printer', Value: user }, { Name: 'printer', Value: user },
{ Name: 'LTS', Value: 'Y' }, //YN N { Name: 'LTS', Value: 'Y' }, //YN N
@ -565,10 +565,18 @@ export default {
{ Name: "pageFooter", Value: "pic/peisReportPageFooter.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' }, { 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 toOutShell.BusinessCode = this.doctorCheck.prBase.id
this.$peisAPI.printPre(JSON.stringify(toOutShell)) this.$peisAPI.printPre(JSON.stringify(toOutShell))
.then(res => { .then(res => {

13
src/components/report/BtnReport.vue

@ -81,7 +81,7 @@ export default {
ReportCode, token, ReportCode, token,
isBuildImage: 'N', isBuildImage: 'N',
IsUploadPdf: 'N', IsUploadPdf: 'N',
preViewCanPrint: this.dataTransOpts.tableS.patient_register.isAudit,
preViewCanPrint: 'Y',
BusinessCode: this.dataTransOpts.tableS.patient_register.id, BusinessCode: this.dataTransOpts.tableS.patient_register.id,
Parameters: [ Parameters: [
{ Name: 'printer', Value: user }, { 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}`) // let res = await postapi(`/api/app/printreport/getpeisreport?PatientRegisterId=${this.patientRegister.patientRegisterId}`)
// toOutShell.ReportTable = res.data // toOutShell.ReportTable = res.data
@ -110,6 +117,10 @@ export default {
}); });
} else { } else {
if(toOutShell.preViewCanPrint == 'N'){
this.$message.warning({showClose:true,message:'未总检或未审核,不可打印报告'})
return
}
this.$peisAPI.print(JSON.stringify(toOutShell)) this.$peisAPI.print(JSON.stringify(toOutShell))
.then(res => { .then(res => {
if (JSON.parse(res).code < 0) { if (JSON.parse(res).code < 0) {

12
src/components/sumDoctorCheck/ButtonList.vue

@ -295,7 +295,7 @@ export default {
}, },
// //
btnReport() {
async btnReport() {
if (!this.$peisAPI) { if (!this.$peisAPI) {
this.$message.info("此功能,需要在壳客户端才可运行!") this.$message.info("此功能,需要在壳客户端才可运行!")
@ -309,7 +309,7 @@ export default {
ReportCode, token, ReportCode, token,
isBuildImage:'N', isBuildImage:'N',
IsUploadPdf:'N', IsUploadPdf:'N',
preViewCanPrint: this.dataTransOpts.tableS.patient_register.isAudit,
preViewCanPrint: 'Y',
Parameters: [ Parameters: [
{ Name: 'printer', Value: user }, { Name: 'printer', Value: user },
{ Name: 'LTS', Value: 'Y' }, //YN N { 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}`) // postapi(`/api/app/printreport/getpeisreport?PatientRegisterId=${this.dataTransOpts.tableS.patient_register.id}`)
// .then((res) => { // .then((res) => {
// if (res.code != -1) { // if (res.code != -1) {

Loading…
Cancel
Save