|
|
|
@ -432,13 +432,13 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '条码打印')" class="btn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="labelPrint(false)">条码打印</el-button> |
|
|
|
<el-button type="primary" class="commonbutton" @click="labelPrint(false)" :disabled="printing">条码打印</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '条码补打')" class="btn"> |
|
|
|
<el-button type="danger" class="commonbutton" @click="reLisRequest">条码补打</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '指引单打印')" class="btn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="guidePrint('0001', false)">指引单打印</el-button> |
|
|
|
<el-button type="primary" class="commonbutton" @click="guidePrint('0001', false)" :disabled="printing">指引单打印</el-button> |
|
|
|
</div> |
|
|
|
<!-- |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '指引单预览')" class="btn"> |
|
|
|
@ -747,6 +747,8 @@ export default { |
|
|
|
}, |
|
|
|
nation: [], // |
|
|
|
dialogOrg: false, |
|
|
|
|
|
|
|
printing: false, // 是否打印中,控制一次只能有一个任务 |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -1651,10 +1653,11 @@ export default { |
|
|
|
Parameters: [ |
|
|
|
{ Name: 'printer', Value: user }, |
|
|
|
{ Name: 'hisLog', Value: 'pic/hisLog.jpg' }, |
|
|
|
{ Name: 'pageFooter', Value: 'pic/peisQrCode.jpg' }, |
|
|
|
], |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
this.printing = true |
|
|
|
if (isPreview) { |
|
|
|
/* |
|
|
|
postapi(`/api/app/printreport/getpatientregisterguidereport?PatientRegisterId=${this.form.id}`) |
|
|
|
@ -1682,6 +1685,7 @@ export default { |
|
|
|
let lres = await this.$peisAPI.print(JSON.stringify(toOutShell)) |
|
|
|
if (JSON.parse(lres).code < 0) { |
|
|
|
this.$message.warning({ showClose: true, message: JSON.parse(lres).message }); |
|
|
|
this.printing = false |
|
|
|
return |
|
|
|
} |
|
|
|
postapi('/api/app/patientregister/updatepatientregisterguideprinttimesmany', [this.form.id]).then(res => { |
|
|
|
@ -1700,6 +1704,7 @@ export default { |
|
|
|
this.$message.warning({ showClose: true, message: `${error}` }); |
|
|
|
} |
|
|
|
} |
|
|
|
this.printing = false |
|
|
|
}, |
|
|
|
|
|
|
|
//检验申请 |
|
|
|
@ -1772,6 +1777,7 @@ export default { |
|
|
|
], |
|
|
|
}; |
|
|
|
|
|
|
|
this.printing = true |
|
|
|
try { |
|
|
|
// lis条码打印 |
|
|
|
await this.lisPrint('0002', isPreview, toOutShell) |
|
|
|
@ -1783,13 +1789,14 @@ export default { |
|
|
|
console.log(error) |
|
|
|
} |
|
|
|
|
|
|
|
this.printing = false |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// lis条码打印 |
|
|
|
async lisPrint(ReportCode, isPreview, toOutShell) { |
|
|
|
toOutShell.ReportCode = ReportCode |
|
|
|
// console.log('this.$peisAPI.print', toOutShell) |
|
|
|
console.log('this.$peisAPI.print', toOutShell) |
|
|
|
if (isPreview) { |
|
|
|
try { |
|
|
|
let lres = await this.$peisAPI.printPre(JSON.stringify(toOutShell)) |
|
|
|
@ -1821,6 +1828,7 @@ export default { |
|
|
|
//pacs条码打印 |
|
|
|
pacsPrint(ReportCode, isPreview, toOutShell) { |
|
|
|
toOutShell.ReportCode = ReportCode |
|
|
|
console.log('this.$peisAPI.print', toOutShell) |
|
|
|
if (isPreview) { |
|
|
|
this.$peisAPI.printPre(JSON.stringify(toOutShell)) |
|
|
|
.then(res => { |
|
|
|
|