Browse Source

0005

master
pengjun 2 years ago
parent
commit
d13d7014e8
  1. 2
      src/components/patientRegister/PatientLisRequest.vue
  2. 11
      src/components/patientRegister/PatientRegisterEditQuery.vue
  3. 20
      src/components/patientRegister/PatientRegisterItem.vue
  4. 100
      src/components/patientRegister/PatientRegisterList.vue
  5. 30
      src/components/patientRegister/patientRegisterAsbItem.vue
  6. 3
      src/components/report/BtnReport.vue
  7. 21
      src/components/report/RegisterCheckStatus.vue

2
src/components/patientRegister/PatientLisRequest.vue

@ -114,7 +114,7 @@ export default {
btnChoose(isChooseAll) {
if (isChooseAll) {
this.chooseRows = deepCopy(this.dataTransOpts.tableM.lis_request)
this.chooseRows.forEach(e => {
this.dataTransOpts.tableM.lis_request.forEach(e => {
this.$refs['lis_request'].setCurrentRow(e);
});
} else {

11
src/components/patientRegister/PatientRegisterEditQuery.vue

@ -1,23 +1,32 @@
<template>
<div>
<div style="display: flex; flex-wrap: wrap; height:32px;border: 1px solid #888;border-radius:5px;background-color: #F5F7FA;">
<!-- border: 1px solid #888;border-radius:5px;background-color: #F5F7FA; -->
<div style="display: flex; flex-wrap: wrap; height:32px;">
<div class="query">
<!--
<span class="querySpan">查找&nbsp;&nbsp;条码号</span>
-->
<el-input placeholder="条码号" v-model="query.patientRegisterNo" size="small"
clearable style="width: 140px"/>
</div>
<div class="query">
<!--
<span class="querySpan">档案号</span>
-->
<el-input placeholder="档案号" v-model="query.patientNo" size="small"
clearable style="width: 100px" />
</div>
<div class="query">
<!--
<span class="querySpan">姓名</span>
-->
<el-input placeholder="姓名" v-model="query.patientName" size="small"
clearable style="width: 80px"/>
</div>
<div class="query">
<!--
<span class="querySpan">手机号</span>
-->
<el-input placeholder="预约手机号" v-model="query.tel" size="small"
clearable style="width: 120px"/>
</div>

20
src/components/patientRegister/PatientRegisterItem.vue

@ -141,7 +141,9 @@
</el-table-column>
<el-table-column prop="checkCompleteFlag" label="状态" min-width="40" align="center">
<template slot-scope="scope">
<div>{{ dddw(dict.checkCompleteFlag, "id", scope.row.checkCompleteFlag, "displayName") }}</div>
<div :style="`color: ${setColor(scope.row.checkCompleteFlag)}`">
{{ dddw(dict.checkCompleteFlag, "id", scope.row.checkCompleteFlag, "displayName") }}
</div>
</template>
</el-table-column>
<el-table-column prop="isLock" label="锁" min-width="40" align="center">
@ -264,6 +266,22 @@ export default {
});
},
//
setColor(checkCompleteFlag) {
let color = "#52555F"
switch (checkCompleteFlag) {
case '0':
color = "#FF5054"
break;
case '2':
color = "#396FFA"
break;
default:
break;
}
return color
},
//
async getPrAsb(id) {
// debugger

100
src/components/patientRegister/PatientRegisterList.vue

@ -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}` });
}
})

30
src/components/patientRegister/patientRegisterAsbItem.vue

@ -7,7 +7,8 @@
<template slot-scope="scope">
<div>
<el-tooltip class="item" effect="dark" content="标五角星表示属于分组或套餐的项目" placement="left">
<i v-if="scope.row.isBelongGroupPackage == 'Y'" class="el-icon-star-on" style="font-size: 16px;color: purple;" />
<i v-if="scope.row.isBelongGroupPackage == 'Y'" class="el-icon-star-on"
style="font-size: 16px;color: purple;" />
</el-tooltip>
{{ scope.$index + 1 }}
</div>
@ -30,15 +31,8 @@
</el-table-column>
<el-table-column prop="checkCompleteFlag" label="状态" min-width="50" align="center">
<template slot-scope="scope">
<div>
{{
dddw(
dict.checkCompleteFlag,
"id",
scope.row.checkCompleteFlag,
"displayName"
)
}}
<div :style="`color: ${setColor(scope.row.checkCompleteFlag)}`">
{{ dddw(dict.checkCompleteFlag, "id", scope.row.checkCompleteFlag, "displayName") }}
</div>
</template>
</el-table-column>
@ -87,6 +81,22 @@ export default {
methods: {
dddw, moment,
//
setColor(checkCompleteFlag) {
let color = "#52555F"
switch (checkCompleteFlag) {
case '0':
color = "#FF5054"
break;
case '2':
color = "#396FFA"
break;
default:
break;
}
return color
},
//
retrieveregister_check_asbitem(id) {
this.dataTransOpts.tableM.register_check_asbitem = []

3
src/components/report/BtnReport.vue

@ -85,13 +85,14 @@ export default {
BusinessCode: this.dataTransOpts.tableS.patient_register.id,
Parameters: [
{ Name: 'printer', Value: user },
{ Name: 'LTS', Value: 'Y' }, //YN N
{ Name: 'hisLog', Value: 'pic/hisLog.jpg' },
{ Name: "peisReportFirstPage", Value: "pic/peisReportFirstPage.jpg" },
{ Name: "peisReportPageHeader", Value: "pic/peisReportPageHeader.jpg" },
{ Name: "peisReportPageFooter", Value: "pic/peisReportPageFooter.jpg" }
],
};
// let res = await postapi(`/api/app/printreport/getpeisreport?PatientRegisterId=${this.patientRegister.patientRegisterId}`)
// toOutShell.ReportTable = res.data

21
src/components/report/RegisterCheckStatus.vue

@ -1,12 +1,13 @@
<template>
<div>
<!-- :row-class-name="tableRowClassName" -->
<el-table :data="doctorCheck.RegisterCheckList" border
:height="(window.pageHeight < 600) ? 290 : (window.pageHeight - 350)" size="small" highlight-current-row
ref="doctorCheck.RegisterCheckList" :row-class-name="tableRowClassName">
ref="doctorCheck.RegisterCheckList" >
<el-table-column prop="asbitemName" label="组合项目" width="120" />
<el-table-column prop="completeFlag" label="状态" align="center">
<template slot-scope="scope">
<div>
<div :style="`color: ${setColor(scope.row.completeFlag)}`">
{{ dddw(dict.checkCompleteFlag, 'id', scope.row.completeFlag, 'displayName') }}
<!--
<el-radio v-model="scope.row.checkCompleteFlag" label="0">未检</el-radio>
@ -64,6 +65,22 @@ export default {
}
},
//
setColor(checkCompleteFlag) {
let color = "#52555F"
switch (checkCompleteFlag) {
case '0':
color = "#FF5054"
break;
case '2':
color = "#396FFA"
break;
default:
break;
}
return color
},
//
registerCheckList(patientRegisterId) {
this.doctorCheck.RegisterCheckList = []

Loading…
Cancel
Save