|
|
@ -12,8 +12,7 @@ |
|
|
<el-table-column type="selection" width="40" align="center"></el-table-column> |
|
|
<el-table-column type="selection" width="40" align="center"></el-table-column> |
|
|
<el-table-column v-for="(item, index) in dragCol" :key="index" :type="dragCol[index].type" |
|
|
<el-table-column v-for="(item, index) in dragCol" :key="index" :type="dragCol[index].type" |
|
|
:min-width="dragCol[index].minWidth" :align="dragCol[index].align" :label="item.label" |
|
|
:min-width="dragCol[index].minWidth" :align="dragCol[index].align" :label="item.label" |
|
|
:prop="dragCol[index].prop" |
|
|
|
|
|
:sortable="dragCol[index].type || dragCol[index].prop == 'sn' ? false : true"> |
|
|
|
|
|
|
|
|
:prop="dragCol[index].prop" :sortable="dragCol[index].type || dragCol[index].prop == 'sn' ? false : true"> |
|
|
<template slot-scope="scope" v-if="!(dragCol[index].type)"> |
|
|
<template slot-scope="scope" v-if="!(dragCol[index].type)"> |
|
|
<div v-if="!dragCol[index].type"> |
|
|
<div v-if="!dragCol[index].type"> |
|
|
<div v-if="dragCol[index].prop == 'sn'"> |
|
|
<div v-if="dragCol[index].prop == 'sn'"> |
|
|
@ -258,7 +257,7 @@ import { |
|
|
objCopy, |
|
|
objCopy, |
|
|
arrayReduce, |
|
|
arrayReduce, |
|
|
arrayExistObj, |
|
|
arrayExistObj, |
|
|
deepCopy,setPrStatusColor |
|
|
|
|
|
|
|
|
deepCopy, setPrStatusColor |
|
|
} from "../../utlis/proFunc"; |
|
|
} from "../../utlis/proFunc"; |
|
|
|
|
|
|
|
|
import PatientRegisterEdit from "../../components/patientRegister/PatientRegisterEdit.vue"; |
|
|
import PatientRegisterEdit from "../../components/patientRegister/PatientRegisterEdit.vue"; |
|
|
@ -396,7 +395,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
...mapActions(["getCustomerOrgGroup", "getPatientRegisterAbs"]), |
|
|
...mapActions(["getCustomerOrgGroup", "getPatientRegisterAbs"]), |
|
|
moment, dddw, deepCopy, checkPagePriv,setPrStatusColor, |
|
|
|
|
|
|
|
|
moment, dddw, deepCopy, checkPagePriv, setPrStatusColor, |
|
|
|
|
|
|
|
|
// 扩展定义表格行样式 |
|
|
// 扩展定义表格行样式 |
|
|
handleRowClassName({ row, rowIndex }) { |
|
|
handleRowClassName({ row, rowIndex }) { |
|
|
@ -417,7 +416,7 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
refFuncSetData(item, v) { |
|
|
refFuncSetData(item, v) { |
|
|
@ -426,6 +425,7 @@ export default { |
|
|
|
|
|
|
|
|
// 打印指引单(isPreview) |
|
|
// 打印指引单(isPreview) |
|
|
async guidePrint(ReportCode, isPreview) { |
|
|
async guidePrint(ReportCode, isPreview) { |
|
|
|
|
|
|
|
|
if (!this.$peisAPI) { |
|
|
if (!this.$peisAPI) { |
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }); |
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }); |
|
|
return; |
|
|
return; |
|
|
@ -456,7 +456,7 @@ export default { |
|
|
//选中(取消勾选) end ------------------------- |
|
|
//选中(取消勾选) end ------------------------- |
|
|
|
|
|
|
|
|
if (this.multipleSelection.length < 1) { |
|
|
if (this.multipleSelection.length < 1) { |
|
|
this.$message.info({ showClose: true, message: "请选择要打印指引单的人员记录!" }); |
|
|
|
|
|
|
|
|
this.$message.info({ showClose: true, message: "请勾选要打印指引单的人员记录!" }); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -488,6 +488,11 @@ export default { |
|
|
}); |
|
|
}); |
|
|
*/ |
|
|
*/ |
|
|
toOutShell.BusinessCode = this.multipleSelection[0].id |
|
|
toOutShell.BusinessCode = this.multipleSelection[0].id |
|
|
|
|
|
if (this.multipleSelection[0].completeFlag == '0') { |
|
|
|
|
|
this.$message.warning({ showClose: true, message: '预登记人员,不可执行此操作!' }) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.$peisAPI.printPre(JSON.stringify(toOutShell)) |
|
|
this.$peisAPI.printPre(JSON.stringify(toOutShell)) |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
if (JSON.parse(res).code < 0) { |
|
|
if (JSON.parse(res).code < 0) { |
|
|
@ -508,6 +513,10 @@ export default { |
|
|
try { |
|
|
try { |
|
|
|
|
|
|
|
|
let patientregisterId = this.multipleSelection[i].id |
|
|
let patientregisterId = this.multipleSelection[i].id |
|
|
|
|
|
if (this.multipleSelection[i].completeFlag == '0'){ |
|
|
|
|
|
this.$message.warning({ showClose: true, message: `${this.multipleSelection[i].patientName} 为预登记人员,不可打印指引单` }); |
|
|
|
|
|
continue |
|
|
|
|
|
} |
|
|
toOutShell.BusinessCode = patientregisterId |
|
|
toOutShell.BusinessCode = patientregisterId |
|
|
let resPeisAPI = await this.$peisAPI.print(JSON.stringify(toOutShell)); |
|
|
let resPeisAPI = await this.$peisAPI.print(JSON.stringify(toOutShell)); |
|
|
if (JSON.parse(resPeisAPI).code < 0) continue |
|
|
if (JSON.parse(resPeisAPI).code < 0) continue |
|
|
@ -958,35 +967,35 @@ export default { |
|
|
items.push({ |
|
|
items.push({ |
|
|
label: "发送检验申请", |
|
|
label: "发送检验申请", |
|
|
onClick: () => { |
|
|
onClick: () => { |
|
|
this.lisRequest(row.id); |
|
|
|
|
|
|
|
|
this.lisRequest(row); |
|
|
}, |
|
|
}, |
|
|
}) |
|
|
}) |
|
|
if (checkPagePriv(this.pagePriv.privs, '预览检验条码') && row.completeFlag != '0') |
|
|
if (checkPagePriv(this.pagePriv.privs, '预览检验条码') && row.completeFlag != '0') |
|
|
items.push({ |
|
|
items.push({ |
|
|
label: "预览检验条码", |
|
|
label: "预览检验条码", |
|
|
onClick: () => { |
|
|
onClick: () => { |
|
|
this.lisPrint(row.id, "0002", true); |
|
|
|
|
|
|
|
|
this.lisPrint(row, "0002", true); |
|
|
}, |
|
|
}, |
|
|
}) |
|
|
}) |
|
|
if (checkPagePriv(this.pagePriv.privs, '打印检验条码') && row.completeFlag != '0') |
|
|
if (checkPagePriv(this.pagePriv.privs, '打印检验条码') && row.completeFlag != '0') |
|
|
items.push({ |
|
|
items.push({ |
|
|
label: "打印检验条码", |
|
|
label: "打印检验条码", |
|
|
onClick: () => { |
|
|
onClick: () => { |
|
|
this.lisPrint(row.id, "0002", false); |
|
|
|
|
|
|
|
|
this.lisPrint(row, "0002", false); |
|
|
}, |
|
|
}, |
|
|
}) |
|
|
}) |
|
|
if (checkPagePriv(this.pagePriv.privs, '预览Pacs条码') && row.completeFlag != '0') |
|
|
if (checkPagePriv(this.pagePriv.privs, '预览Pacs条码') && row.completeFlag != '0') |
|
|
items.push({ |
|
|
items.push({ |
|
|
label: "预览Pacs条码", |
|
|
label: "预览Pacs条码", |
|
|
onClick: () => { |
|
|
onClick: () => { |
|
|
this.pacsPrint(row.id, "0004", true); |
|
|
|
|
|
|
|
|
this.pacsPrint(row, "0004", true); |
|
|
}, |
|
|
}, |
|
|
}) |
|
|
}) |
|
|
if (checkPagePriv(this.pagePriv.privs, '打印Pacs条码') && row.completeFlag != '0') |
|
|
if (checkPagePriv(this.pagePriv.privs, '打印Pacs条码') && row.completeFlag != '0') |
|
|
items.push({ |
|
|
items.push({ |
|
|
label: "打印Pacs条码", |
|
|
label: "打印Pacs条码", |
|
|
onClick: () => { |
|
|
onClick: () => { |
|
|
this.pacsPrint(row.id, "0004", false); |
|
|
|
|
|
|
|
|
this.pacsPrint(row, "0004", false); |
|
|
}, |
|
|
}, |
|
|
}) |
|
|
}) |
|
|
items.push({ label: "----------------", }) |
|
|
items.push({ label: "----------------", }) |
|
|
@ -1052,16 +1061,16 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//检验申请 |
|
|
//检验申请 |
|
|
async lisRequest(prId) { |
|
|
|
|
|
|
|
|
async lisRequest(row) { |
|
|
let isPrintLisRequest = false; |
|
|
let isPrintLisRequest = false; |
|
|
let res = null; |
|
|
let res = null; |
|
|
if (prId.length < 1) { |
|
|
|
|
|
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!" }); |
|
|
|
|
|
|
|
|
if (row.completeFlag == '0') { |
|
|
|
|
|
this.$message.info({ showClose: true, message: "预登记人员,不可执行此操作!" }); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
res = await postapi(`/api/app/lisrequest/setlisrequest?PatientRegisterId=${prId}`); |
|
|
|
|
|
|
|
|
res = await postapi(`/api/app/lisrequest/setlisrequest?PatientRegisterId=${row.id}`); |
|
|
// console.log(`/ api / app / lisrequest / setlisrequest ? PatientRegisterId = ${ prId }`,res); |
|
|
// console.log(`/ api / app / lisrequest / setlisrequest ? PatientRegisterId = ${ prId }`,res); |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
return; |
|
|
return; |
|
|
@ -1090,11 +1099,16 @@ export default { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
//打印检验申请单 |
|
|
//打印检验申请单 |
|
|
this.lisPrint(prId, "0003", false); |
|
|
|
|
|
|
|
|
this.lisPrint(row, "0003", false); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//检验条码打印 |
|
|
//检验条码打印 |
|
|
lisPrint(prId, ReportCode, isPreview) { |
|
|
|
|
|
|
|
|
lisPrint(row, ReportCode, isPreview) { |
|
|
|
|
|
if (row.completeFlag == '0') { |
|
|
|
|
|
this.$message.info({ showClose: true, message: "预登记人员,不可执行此操作!" }); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (!this.$peisAPI) { |
|
|
if (!this.$peisAPI) { |
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }); |
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }); |
|
|
return; |
|
|
return; |
|
|
@ -1113,7 +1127,7 @@ export default { |
|
|
{ Name: "printer", Value: user }, |
|
|
{ Name: "printer", Value: user }, |
|
|
{ Name: "hisLog", Value: "pic/hisLog.jpg" }, |
|
|
{ Name: "hisLog", Value: "pic/hisLog.jpg" }, |
|
|
], |
|
|
], |
|
|
BusinessCode: prId |
|
|
|
|
|
|
|
|
BusinessCode: row.id |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
// console.log('this.$peisAPI.print', toOutShell) |
|
|
// console.log('this.$peisAPI.print', toOutShell) |
|
|
@ -1189,7 +1203,7 @@ export default { |
|
|
} else { |
|
|
} else { |
|
|
return postapi("/api/app/lisrequest/updatelisrequestisprint", { |
|
|
return postapi("/api/app/lisrequest/updatelisrequestisprint", { |
|
|
operateType: 1, |
|
|
operateType: 1, |
|
|
patientRegisterId: prId, |
|
|
|
|
|
|
|
|
patientRegisterId: row.id, |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
@ -1206,7 +1220,11 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//pacs条码打印 |
|
|
//pacs条码打印 |
|
|
pacsPrint(prId, ReportCode, isPreview) { |
|
|
|
|
|
|
|
|
pacsPrint(row, ReportCode, isPreview) { |
|
|
|
|
|
if (row.completeFlag == '0') { |
|
|
|
|
|
this.$message.info({ showClose: true, message: "预登记人员,不可执行此操作!" }); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
if (!this.$peisAPI) { |
|
|
if (!this.$peisAPI) { |
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }); |
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }); |
|
|
return; |
|
|
return; |
|
|
@ -1295,7 +1313,7 @@ export default { |
|
|
} else { |
|
|
} else { |
|
|
return postapi("/api/app/lisrequest/updatelisrequestisprint", { |
|
|
return postapi("/api/app/lisrequest/updatelisrequestisprint", { |
|
|
operateType: 1, |
|
|
operateType: 1, |
|
|
patientRegisterId: prId, |
|
|
|
|
|
|
|
|
patientRegisterId: row.id, |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|