|
|
|
@ -4,10 +4,10 @@ |
|
|
|
<el-table :data="pacsRequest" border @row-click="rowClick" |
|
|
|
:height="window.pageHeight < 600 ? 140 : Math.floor((window.pageHeight - 250) * 2 / 5)" size="small" |
|
|
|
highlight-current-row ref="pacs_request" :row-class-name="handleRowClassName"> |
|
|
|
<el-table-column type="index" label="序号" width="50" align="center" /> |
|
|
|
<el-table-column type="index" label="序号" width="50" align="center" /> |
|
|
|
<el-table-column prop="patientName" label="姓名" min-width="80" align="center" /> |
|
|
|
<el-table-column prop="checkRequestNo" label="条码号" min-width="120" align="center" /> |
|
|
|
<el-table-column prop="asbitemName" label="检查项目" min-width="120" /> |
|
|
|
<el-table-column prop="checkRequestNo" label="条码号" min-width="120" align="center" /> |
|
|
|
<el-table-column prop="asbitemName" label="检查项目" min-width="120" /> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div style="margin-left: 10px;width: 110px;"> |
|
|
|
@ -48,7 +48,7 @@ export default { |
|
|
|
routeUrlorPageName: 'patientLis', //当前页面归属路由或归属页面权限名称 |
|
|
|
privs: [] // 页面权限 |
|
|
|
}, |
|
|
|
pacsRequest:[], // 检查申请单 |
|
|
|
pacsRequest: [], // 检查申请单 |
|
|
|
chooseRows: [], // 选中的行 |
|
|
|
}; |
|
|
|
}, |
|
|
|
@ -65,7 +65,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//挂载完成 |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
|
this.retrieve_pacs_request(this.dataTransOpts.tableS.patient_register.id) |
|
|
|
}, |
|
|
|
|
|
|
|
@ -87,9 +87,9 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 选中行 |
|
|
|
rowClick(row) { |
|
|
|
rowClick(row) { |
|
|
|
this.btnChoose(false) |
|
|
|
this.chooseRows = [row] |
|
|
|
this.$refs['pacs_request'].setCurrentRow(row); |
|
|
|
@ -98,7 +98,7 @@ export default { |
|
|
|
// 全选 / 取消全选 |
|
|
|
btnChoose(isChooseAll) { |
|
|
|
if (isChooseAll) { |
|
|
|
this.chooseRows = deepCopy(this.pacsRequest) |
|
|
|
this.chooseRows = deepCopy(this.pacsRequest) |
|
|
|
this.pacsRequest.forEach(e => { |
|
|
|
e.choosed = true; |
|
|
|
this.$refs['pacs_request'].setCurrentRow(e); |
|
|
|
@ -113,7 +113,7 @@ export default { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['pacs_request'].doLayout() |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
@ -126,10 +126,10 @@ export default { |
|
|
|
if (!this.$peisAPI) { |
|
|
|
this.$message.warning({ showClose: true, message: "此功能需要在壳客户端中方可运行!" }) |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (isPreview) { |
|
|
|
this.pacsPrint(this.chooseRows[0].registerCheckId,"0004",isPreview) |
|
|
|
this.pacsPrint(this.chooseRows[0].registerCheckId, "0004", isPreview) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
@ -137,10 +137,10 @@ export default { |
|
|
|
for (let i = 0; i < this.chooseRows.length; i++) { |
|
|
|
let e = this.chooseRows[i]; |
|
|
|
try { |
|
|
|
await this.pacsPrint(e.registerCheckId,"0004",isPreview) |
|
|
|
await this.pacsPrint(e.registerCheckId, "0004", isPreview) |
|
|
|
} catch (error) { |
|
|
|
console.log(`打印条码或更新条码打印状态失败,原因:${error}`) |
|
|
|
this.$message.warning({ showClose: true, message: `打印条码或更新条码打印状态失败,原因:${error}`}) |
|
|
|
this.$message.warning({ showClose: true, message: `打印条码或更新条码打印状态失败,原因:${error}` }) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -158,7 +158,7 @@ export default { |
|
|
|
IsUploadPdf: 'N', |
|
|
|
preViewCanPrint: "N", |
|
|
|
Parameters: [ |
|
|
|
{ Name: "printer", Value: user }, |
|
|
|
{ Name: "printer", Value: user }, |
|
|
|
], |
|
|
|
BusinessCode: pacsRequestId |
|
|
|
}; |
|
|
|
@ -176,11 +176,11 @@ export default { |
|
|
|
this.$message.warning({ showClose: true, message: `${err}` }); |
|
|
|
}); |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
try { |
|
|
|
let lres = await this.$peisAPI.print(JSON.stringify(toOutShell)) |
|
|
|
let Jres = JSON.parse(lres) |
|
|
|
if(Jres.code < 0){ |
|
|
|
if (Jres.code < 0) { |
|
|
|
err = Jres.message |
|
|
|
console.log('打印检查条码错误', err) |
|
|
|
this.$message.error({ showClose: true, message: `打印检查条码错误 ${err}` }); |
|
|
|
@ -198,7 +198,7 @@ export default { |
|
|
|
this.pacsRequest = [] |
|
|
|
if (!patientRegisterId) return |
|
|
|
// console.log(`/api/app/registerasbitem/getlistinpatientregisterid?PatientRegisterId=${id}`, res) |
|
|
|
postapi(`/api/app/PrintReport/getpacsnoreport?PatientRegisterId=${patientRegisterId}`) |
|
|
|
postapi('/api/app/PrintReport/getpacsnoreport', { patientRegisterId }) |
|
|
|
.then(res => { |
|
|
|
if (res.code > -1) { |
|
|
|
this.pacsRequest = res.data |
|
|
|
@ -215,7 +215,7 @@ export default { |
|
|
|
// immediate:true, |
|
|
|
handler(newVal, oldVal) { |
|
|
|
console.log(`watch 人员登记 newVal:${newVal} oldVal:${oldVal} registerCheckId: ${this.dataTransOpts.tableS.patient_register.id}`); |
|
|
|
if(newVal != oldVal) this.retrieve_pacs_request(this.dataTransOpts.tableS.patient_register.id) |
|
|
|
if (newVal != oldVal) this.retrieve_pacs_request(this.dataTransOpts.tableS.patient_register.id) |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
|