|
|
|
@ -20,8 +20,9 @@ |
|
|
|
<div v-if="dropCol[index].prop == 'sn'"> |
|
|
|
{{ scope.$index + 1 }} |
|
|
|
</div> |
|
|
|
<div v-else-if="dropCol[index].prop == 'completeFlag'"> |
|
|
|
{{ dddw(dict.completeFlag, "id", scope.row.completeFlag, "displayName") }} |
|
|
|
<div v-else-if="dropCol[index].prop == 'completeFlag'" |
|
|
|
:style="`color: ${setColor(scope.row.isAudit, scope.row.completeFlag)}`"> |
|
|
|
{{ scope.row.isAudit == 'Y' ? "已审核" : dddw(dict.completeFlag, "id", scope.row.completeFlag, "displayName") }} |
|
|
|
</div> |
|
|
|
<div v-else-if="dropCol[index].prop == 'guidePrintTimes'"> |
|
|
|
<i class="el-icon-printer" v-if="scope.row.guidePrintTimes > 0" style="font-size: 20px; color: green" /> |
|
|
|
@ -244,7 +245,7 @@ import LocalConfig from "../../components/common/LocalConfig.vue"; |
|
|
|
|
|
|
|
export default { |
|
|
|
components: { |
|
|
|
|
|
|
|
|
|
|
|
PatientRegisterEdit, |
|
|
|
Camera, |
|
|
|
PatientRegisterAsbItem, |
|
|
|
@ -384,6 +385,27 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
// 设置颜色 |
|
|
|
setColor(isAudit, completeFlag) { |
|
|
|
if (isAudit == 'Y') return "#3DC04A" |
|
|
|
let color = "#52555F" |
|
|
|
switch (completeFlag) { |
|
|
|
case '0': |
|
|
|
color = "#FF5054" |
|
|
|
break; |
|
|
|
case '2': |
|
|
|
color = "#F68A08" |
|
|
|
break; |
|
|
|
case '3': |
|
|
|
color = "#396FFA" |
|
|
|
break; |
|
|
|
default: |
|
|
|
break; |
|
|
|
} |
|
|
|
return color |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
refFuncSetData(item, v) { |
|
|
|
setData(this, item, v) |
|
|
|
}, |
|
|
|
@ -391,7 +413,7 @@ export default { |
|
|
|
// 打印指引单(isPreview) |
|
|
|
async guidePrint(ReportCode, isPreview) { |
|
|
|
if (!this.$peisAPI) { |
|
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!"}); |
|
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }); |
|
|
|
return; |
|
|
|
} |
|
|
|
let token = window.sessionStorage.getItem("token"); |
|
|
|
@ -399,8 +421,8 @@ export default { |
|
|
|
let toOutShell = { |
|
|
|
ReportCode, |
|
|
|
token, |
|
|
|
isBuildImage:'N', |
|
|
|
IsUploadPdf:'N', |
|
|
|
isBuildImage: 'N', |
|
|
|
IsUploadPdf: 'N', |
|
|
|
preViewCanPrint: "N", |
|
|
|
Parameters: [ |
|
|
|
{ Name: "printer", Value: user }, |
|
|
|
@ -419,7 +441,7 @@ export default { |
|
|
|
//选中(取消勾选) end ------------------------- |
|
|
|
|
|
|
|
if (this.multipleSelection.length < 1) { |
|
|
|
this.$message.info({ showClose: true, message: "请选择要打印指引单的人员记录!"}); |
|
|
|
this.$message.info({ showClose: true, message: "请选择要打印指引单的人员记录!" }); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
@ -468,7 +490,7 @@ export default { |
|
|
|
this.elProgress.percentage = 0; |
|
|
|
|
|
|
|
for (let i = 0; i < this.multipleSelection.length; i++) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
/* |
|
|
|
resPrintData = await postapi(`/api/app/printreport/getpatientregisterguidereport?PatientRegisterId=${this.multipleSelection[i].id}`) |
|
|
|
if (resPrintData.code == -1) continue |
|
|
|
@ -633,13 +655,13 @@ export default { |
|
|
|
//体检次数 相关操作 |
|
|
|
btnAdd() { |
|
|
|
if (!this.peisid || this.peisid == 'null') { |
|
|
|
this.$message.warning({ showClose: true, message: "该用户未选归属体检中心,不能执行此操作!"}); |
|
|
|
this.$message.warning({ showClose: true, message: "该用户未选归属体检中心,不能执行此操作!" }); |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
let customerOrgId = this.patientRegister.query.customerOrgId; |
|
|
|
if (!customerOrgId) { |
|
|
|
this.$message.warning({ showClose: true, message: "请选择单位或个人"}); |
|
|
|
this.$message.warning({ showClose: true, message: "请选择单位或个人" }); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
@ -679,7 +701,7 @@ export default { |
|
|
|
//取消勾选,换成选择的方式 end |
|
|
|
|
|
|
|
if (patientRegisterIds.length < 1) { |
|
|
|
this.$message.info({ showClose: true, message: "请选择状态为预登记的记录!"}); |
|
|
|
this.$message.info({ showClose: true, message: "请选择状态为预登记的记录!" }); |
|
|
|
return; |
|
|
|
} |
|
|
|
let completeFlag = '1' |
|
|
|
@ -695,7 +717,7 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
this.$message.error({ showClose: true, message: `操作失败 ${err}`}); |
|
|
|
this.$message.error({ showClose: true, message: `操作失败 ${err}` }); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
@ -703,11 +725,11 @@ export default { |
|
|
|
btnEdit() { |
|
|
|
// if (!this.patientRegister.patientRegisterRd.id) { |
|
|
|
if (!this.dataTransOpts.tableS.patient_register.id) { |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要操作的记录"}); |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要操作的记录" }); |
|
|
|
return; |
|
|
|
} |
|
|
|
//console.log(this.patientRegister.patientRegisterRd,this.tableData) |
|
|
|
|
|
|
|
|
|
|
|
// 触发数据刷新 |
|
|
|
this.dataTransOpts.refresh.patient_register.S++ //触发人员信息刷新(会同时刷新组合项目) |
|
|
|
this.dataTransOpts.plus.clearPatientRegisterQuery++ //触发清空人员登记界面的查询条件 |
|
|
|
@ -752,7 +774,7 @@ export default { |
|
|
|
//拍照 |
|
|
|
openCamera() { |
|
|
|
if (!this.patientRegister.patientRegisterId) { |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要操作的记录"}); |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要操作的记录" }); |
|
|
|
return; |
|
|
|
} |
|
|
|
this.patientRegister.cameraVisble = true; |
|
|
|
@ -772,7 +794,7 @@ export default { |
|
|
|
//选中(取消勾选) end ------------------------- |
|
|
|
|
|
|
|
if (this.multipleSelection.length < 1) { |
|
|
|
this.$message.warning({ showClose: true, message: "请先勾选要操作的记录"}); |
|
|
|
this.$message.warning({ showClose: true, message: "请先勾选要操作的记录" }); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
@ -806,7 +828,7 @@ export default { |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
if (err == "cancel") { |
|
|
|
this.$message.info({ showClose: true, message: "已取消操作"}); |
|
|
|
this.$message.info({ showClose: true, message: "已取消操作" }); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
@ -881,7 +903,7 @@ export default { |
|
|
|
"yyyy-MM-DD" |
|
|
|
); |
|
|
|
if (body.startDate > body.endDate) { |
|
|
|
this.$message.warning({ showClose: true, message: "起始日期不能大于截止日期,数据校验不通过!"}); |
|
|
|
this.$message.warning({ showClose: true, message: "起始日期不能大于截止日期,数据校验不通过!" }); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1017,7 +1039,7 @@ export default { |
|
|
|
btnGroupBatch() { |
|
|
|
let customerOrgId = this.patientRegister.query.customerOrgId; |
|
|
|
if (!customerOrgId) { |
|
|
|
this.$message.warning({ showClose: true, message: "请选择单位"}); |
|
|
|
this.$message.warning({ showClose: true, message: "请选择单位" }); |
|
|
|
return; |
|
|
|
} |
|
|
|
//取消勾选,换成选择的方式 start |
|
|
|
@ -1028,7 +1050,7 @@ export default { |
|
|
|
//取消勾选,换成选择的方式 end |
|
|
|
|
|
|
|
if (this.multipleSelection.length < 1) { |
|
|
|
this.$message.info({ showClose: true, message: "请选择要操作的记录!"}); |
|
|
|
this.$message.info({ showClose: true, message: "请选择要操作的记录!" }); |
|
|
|
return; |
|
|
|
} |
|
|
|
this.dataTransOpts.plus.PatientRegisterEditGroupBatch++ |
|
|
|
@ -1040,7 +1062,7 @@ export default { |
|
|
|
btnAsbBatch() { |
|
|
|
let customerOrgId = this.patientRegister.query.customerOrgId; |
|
|
|
if (!customerOrgId) { |
|
|
|
this.$message.warning({ showClose: true, message: "请选择单位"}); |
|
|
|
this.$message.warning({ showClose: true, message: "请选择单位" }); |
|
|
|
return; |
|
|
|
} |
|
|
|
//取消勾选,换成选择的方式 start |
|
|
|
@ -1051,7 +1073,7 @@ export default { |
|
|
|
//取消勾选,换成选择的方式 end |
|
|
|
|
|
|
|
if (this.multipleSelection.length < 1) { |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要操作的记录"}) |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要操作的记录" }) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
@ -1065,7 +1087,7 @@ export default { |
|
|
|
let isPrintLisRequest = false; |
|
|
|
let res = null; |
|
|
|
if (prId.length < 1) { |
|
|
|
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!"}); |
|
|
|
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!" }); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1110,7 +1132,7 @@ export default { |
|
|
|
//检验条码打印 |
|
|
|
lisPrint(prId, ReportCode, isPreview) { |
|
|
|
if (!this.$peisAPI) { |
|
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!"}); |
|
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1119,18 +1141,18 @@ export default { |
|
|
|
let toOutShell = { |
|
|
|
ReportCode, |
|
|
|
token, |
|
|
|
IsMoreLabel:'Y', |
|
|
|
isBuildImage:'N', |
|
|
|
IsUploadPdf:'N', |
|
|
|
IsMoreLabel: 'Y', |
|
|
|
isBuildImage: 'N', |
|
|
|
IsUploadPdf: 'N', |
|
|
|
preViewCanPrint: "N", |
|
|
|
Parameters: [ |
|
|
|
{ Name: "printer", Value: user }, |
|
|
|
{ Name: "hisLog", Value: "pic/hisLog.jpg" }, |
|
|
|
], |
|
|
|
BusinessCode:prId |
|
|
|
BusinessCode: prId |
|
|
|
}; |
|
|
|
|
|
|
|
console.log('this.$peisAPI.print',toOutShell) |
|
|
|
console.log('this.$peisAPI.print', toOutShell) |
|
|
|
if (isPreview) { |
|
|
|
/* |
|
|
|
postapi( |
|
|
|
@ -1150,9 +1172,9 @@ export default { |
|
|
|
this.$message.warning(err); |
|
|
|
}); |
|
|
|
*/ |
|
|
|
this.$peisAPI.printPre(JSON.stringify(toOutShell)) |
|
|
|
this.$peisAPI.printPre(JSON.stringify(toOutShell)) |
|
|
|
.then(res => { |
|
|
|
console.log('this.$peisAPI.printPre',res) |
|
|
|
console.log('this.$peisAPI.printPre', res) |
|
|
|
if (JSON.parse(res).code < 0) { |
|
|
|
this.$message.warning({ showClose: true, message: JSON.parse(res).message }); |
|
|
|
} |
|
|
|
@ -1200,7 +1222,7 @@ export default { |
|
|
|
.then(res => { |
|
|
|
if (JSON.parse(res).code < 0) { |
|
|
|
this.$message.warning({ showClose: true, message: JSON.parse(res).message }); |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
return postapi("/api/app/lisrequest/updatelisrequestisprint", { |
|
|
|
operateType: 1, |
|
|
|
patientRegisterId: prId, |
|
|
|
@ -1208,7 +1230,7 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
if(res && res.code < 0){ |
|
|
|
if (res && res.code < 0) { |
|
|
|
this.$message.error({ showClose: true, message: `${res.message}` }); |
|
|
|
} |
|
|
|
}) |
|
|
|
@ -1222,7 +1244,7 @@ export default { |
|
|
|
//pacs条码打印 |
|
|
|
pacsPrint(prId, ReportCode, isPreview) { |
|
|
|
if (!this.$peisAPI) { |
|
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!"}); |
|
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }); |
|
|
|
return; |
|
|
|
} |
|
|
|
let token = window.sessionStorage.getItem("token"); |
|
|
|
@ -1230,14 +1252,14 @@ export default { |
|
|
|
let toOutShell = { |
|
|
|
ReportCode, |
|
|
|
token, |
|
|
|
isBuildImage:'N', |
|
|
|
IsUploadPdf:'N', |
|
|
|
isBuildImage: 'N', |
|
|
|
IsUploadPdf: 'N', |
|
|
|
preViewCanPrint: "Y", |
|
|
|
Parameters: [ |
|
|
|
{ Name: "printer", Value: user }, |
|
|
|
{ Name: "hisLog", Value: "pic/hisLog.jpg" }, |
|
|
|
], |
|
|
|
BusinessCode:prId |
|
|
|
BusinessCode: prId |
|
|
|
}; |
|
|
|
|
|
|
|
if (isPreview) { |
|
|
|
@ -1306,7 +1328,7 @@ export default { |
|
|
|
.then(res => { |
|
|
|
if (JSON.parse(res).code < 0) { |
|
|
|
this.$message.warning({ showClose: true, message: JSON.parse(res).message }); |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
return postapi("/api/app/lisrequest/updatelisrequestisprint", { |
|
|
|
operateType: 1, |
|
|
|
patientRegisterId: prId, |
|
|
|
@ -1314,7 +1336,7 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
if(res && res.code < 0){ |
|
|
|
if (res && res.code < 0) { |
|
|
|
this.$message.error({ showClose: true, message: `${res.message}` }); |
|
|
|
} |
|
|
|
}) |
|
|
|
|