Browse Source

0005

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

28
src/components/doctorCheck/ButtonList.vue

@ -41,7 +41,7 @@
:disabled="doctorBtnDisabled('refuseItem')">放弃明细项目检查</el-button> :disabled="doctorBtnDisabled('refuseItem')">放弃明细项目检查</el-button>
</div> </div>
<div v-show="checkPagePriv(pagePriv.privs, '放弃项目检查')" class="divBtnClass"> <div v-show="checkPagePriv(pagePriv.privs, '放弃项目检查')" class="divBtnClass">
<el-button type="primary" class="commonbutton" @click="refuse"
<el-button type="primary" class="commonbutton" @click="refuse"
:disabled="doctorBtnDisabled('refuse')">放弃项目检查</el-button> :disabled="doctorBtnDisabled('refuse')">放弃项目检查</el-button>
</div> </div>
<div v-show="checkPagePriv(pagePriv.privs, '删除明细项目')" class="divBtnClass"> <div v-show="checkPagePriv(pagePriv.privs, '删除明细项目')" class="divBtnClass">
@ -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,19 +556,27 @@ 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
{ Name: "firstPage", Value: "pic/peisReportFirstPage.jpg" }, { Name: "firstPage", Value: "pic/peisReportFirstPage.jpg" },
{ Name: "pageHeader", Value: "pic/peisReportPageHeader.jpg" }, { Name: "pageHeader", Value: "pic/peisReportPageHeader.jpg" },
{ 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 => {

15
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 },
@ -93,7 +93,14 @@ export default {
{ 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'
}
// 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