Browse Source

rydj seo

master
pengjun 2 years ago
parent
commit
73be7513e9
  1. 32
      src/components/common/LocalConfig.vue
  2. 66
      src/components/patientRegister/PatientRegisterEdit.vue
  3. 60
      src/components/patientRegister/PatientRegisterList.vue

32
src/components/common/LocalConfig.vue

@ -12,11 +12,11 @@
<el-checkbox v-model="LocalConfig.normal.isDevTool" size="small" /> <el-checkbox v-model="LocalConfig.normal.isDevTool" size="small" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>
</el-row>
</el-form> </el-form>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="人员登记"> <el-tab-pane label="人员登记">
<el-form label-width="140px" size="size">
<el-form label-width="140px" size="size">
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="人员登记组件"> <el-form-item label="人员登记组件">
@ -27,17 +27,26 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="与标准版高度差">
<el-form-item label="与标准版高度差">
<el-input type="number" v-model="LocalConfig.patientRegister.editHeight" size="small" /> <el-input type="number" v-model="LocalConfig.patientRegister.editHeight" size="small" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24">
<el-col :span="12">
<el-form-item label="保存即发送收费申请"> <el-form-item label="保存即发送收费申请">
<el-checkbox v-model="LocalConfig.patientRegister.immediateToHisCharge" size="small" /> <el-checkbox v-model="LocalConfig.patientRegister.immediateToHisCharge" size="small" />
</el-form-item> </el-form-item>
</el-col>
</el-col>
<el-col :span="12">
<el-form-item label="保存打指引单与条码">
<el-checkbox-group v-model="printGuideLabel">
<el-checkbox label="guide">指引单</el-checkbox>
<el-checkbox label="pacs">检查条码</el-checkbox>
<el-checkbox label="lis">检验条码</el-checkbox>
</el-checkbox-group>
</el-form-item>
</el-col>
</el-row> </el-row>
</el-form> </el-form>
</el-tab-pane> </el-tab-pane>
@ -73,22 +82,24 @@
</template> </template>
<script> <script>
import { deepCopy } from "@/utlis/proFunc";
import { deepCopy,objCopy } from "../../utlis/proFunc";
import { mapState } from "vuex"; import { mapState } from "vuex";
export default { export default {
data() { data() {
return { return {
printGuideLabel:["guide", "pacs", "lis"],
LocalConfig: { LocalConfig: {
normal: { normal: {
isDevTool: false, // isDevTool: false, //
PatientRegisterEdit: 'standard', //standard/qztl PatientRegisterEdit: 'standard', //standard/qztl
PatientRegisterEditHeight: 0, // PatientRegisterEditHeight: 0, //
}, },
patientRegister: {
patientRegister: {
edit: 'standard', //standard/qztl edit: 'standard', //standard/qztl
editHeight: 0, // editHeight: 0, //
immediateToHisCharge: true, // immediateToHisCharge: true, //
printGuideLabel: ["guide", "pacs", "lis"], //
}, },
lisLabel: { // lisLabel: { //
MarginTop: 56, // MarginTop: 56, //
@ -110,7 +121,11 @@ export default {
this.LocalConfigInit = deepCopy(this.LocalConfig) this.LocalConfigInit = deepCopy(this.LocalConfig)
let LocalConfig = window.localStorage.getItem("LocalConfig") || null let LocalConfig = window.localStorage.getItem("LocalConfig") || null
try { try {
this.LocalConfig = Object.assign({}, this.LocalConfig, JSON.parse(LocalConfig) || {})
console.log('JSON.parse(LocalConfig)',JSON.parse(LocalConfig))
this.LocalConfig = Object.assign({}, this.LocalConfigInit, JSON.parse(LocalConfig) || {})
if(this.LocalConfig && this.LocalConfig.patientRegister && this.LocalConfig.patientRegister.printGuideLabel){
this.printGuideLabel = deepCopy(this.LocalConfig.patientRegister.printGuideLabel)
}
} catch (error) { } catch (error) {
console.log('window.localStorage.getItem("LocalConfig")', error) console.log('window.localStorage.getItem("LocalConfig")', error)
} }
@ -123,6 +138,7 @@ export default {
methods: { methods: {
btnOk() { btnOk() {
this.LocalConfig.patientRegister.printGuideLabel = deepCopy(this.printGuideLabel)
window.localStorage.setItem("LocalConfig", JSON.stringify(this.LocalConfig)) window.localStorage.setItem("LocalConfig", JSON.stringify(this.LocalConfig))
}, },

66
src/components/patientRegister/PatientRegisterEdit.vue

@ -624,6 +624,7 @@ export default {
editMode: 'standard', //standard/qztl editMode: 'standard', //standard/qztl
editHeight: 0, // editHeight: 0, //
immediateToHisCharge: true, // immediateToHisCharge: true, //
printGuideLabel: ["guide", "pacs", "lis"], //
}, },
}, },
brushTimes: 0, brushTimes: 0,
@ -764,6 +765,7 @@ export default {
if (LocalConfig.patientRegister.edit) this.LocalConfig.patientRegister.edit = LocalConfig.patientRegister.edit if (LocalConfig.patientRegister.edit) this.LocalConfig.patientRegister.edit = LocalConfig.patientRegister.edit
if (LocalConfig.patientRegister.editHeight) this.LocalConfig.patientRegister.editHeight = LocalConfig.patientRegister.editHeight if (LocalConfig.patientRegister.editHeight) this.LocalConfig.patientRegister.editHeight = LocalConfig.patientRegister.editHeight
if (LocalConfig.patientRegister.immediateToHisCharge) this.LocalConfig.patientRegister.immediateToHisCharge = LocalConfig.patientRegister.immediateToHisCharge if (LocalConfig.patientRegister.immediateToHisCharge) this.LocalConfig.patientRegister.immediateToHisCharge = LocalConfig.patientRegister.immediateToHisCharge
if (LocalConfig.patientRegister.printGuideLabel) this.LocalConfig.patientRegister.printGuideLabel = deepCopy(LocalConfig.patientRegister.printGuideLabel)
} }
} catch (error) { } catch (error) {
console.log("window.localStorage.getItem('LocalConfig')", error) console.log("window.localStorage.getItem('LocalConfig')", error)
@ -1470,7 +1472,7 @@ export default {
postapi(`/api/PatientRegister/CreatePatientRegister`, body) postapi(`/api/PatientRegister/CreatePatientRegister`, body)
.then(async (res) => { .then(async (res) => {
if (res.code > -1) { if (res.code > -1) {
objCopy(res.data,this.form) // ()
objCopy(res.data, this.form) // ()
this.dataTransOpts.tableS.patient_register = deepCopy(res.data) this.dataTransOpts.tableS.patient_register = deepCopy(res.data)
@ -1487,27 +1489,29 @@ export default {
await this.immediateToHisCharge(this.form.id) await this.immediateToHisCharge(this.form.id)
} }
//
if (!body.id) {
this.$confirm("是否打印 指引单、检验条码及 Pacs 条码?", "提示", {
confirmButtonText: "是",
cancelButtonText: "否",
type: "warning",
})
.then(async () => {
try {
await this.guidePrint('0001', false)
await this.labelPrint(false)
} catch (error) {
// this.$message.info({ showClose: true, message: error });
console.log(error)
}
// ()
if (!body.id && this.form.completeFlag != '0') {
if (Array.isArray(this.LocalConfig.patientRegister.printGuideLabel) && this.LocalConfig.patientRegister.printGuideLabel.length > 0) {
this.$confirm("是否打印 指引单、检验条码及 Pacs 条码?", "提示", {
confirmButtonText: "是",
cancelButtonText: "否",
type: "warning",
}) })
.catch((err) => {
// if (err == "cancel") {
// this.$message.info({ showClose: true, message: "" });
// }
});
.then(async () => {
try {
if(this.LocalConfig.patientRegister.printGuideLabel.indexOf('guide') > -1) await this.guidePrint('0001', false)
await this.labelPrint(false)
} catch (error) {
// this.$message.info({ showClose: true, message: error });
console.log(error)
}
})
.catch((err) => {
// if (err == "cancel") {
// this.$message.info({ showClose: true, message: "" });
// }
});
}
} }
} }
} }
@ -1640,6 +1644,10 @@ export default {
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!" }); this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!" });
return; return;
} }
if(this.form.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
@ -1659,7 +1667,7 @@ export default {
{ Name: 'pageFooter', Value: 'pic/peisQrCode.jpg' }, { Name: 'pageFooter', Value: 'pic/peisQrCode.jpg' },
], ],
}; };
console.log('this.$peisAPI.print',JSON.stringify(toOutShell))
console.log('this.$peisAPI.print', JSON.stringify(toOutShell))
this.printing = true this.printing = true
if (isPreview) { if (isPreview) {
/* /*
@ -1712,7 +1720,7 @@ export default {
// //
async lisRequest() { async lisRequest() {
this.$message.warning({ showClose: true, message: '开发中……' });
this.$message.warning({ showClose: true, message: '此功能已合并到条码打印' });
/* /*
let isPrintLisRequest = false let isPrintLisRequest = false
let res = null let res = null
@ -1762,6 +1770,10 @@ export default {
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!" }); this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!" });
return; return;
} }
if(this.form.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
@ -1783,10 +1795,10 @@ export default {
this.printing = true this.printing = true
try { try {
// lis // lis
await this.lisPrint('0002', isPreview, toOutShell)
if(this.LocalConfig.patientRegister.printGuideLabel.indexOf('lis') > -1) await this.lisPrint('0002', isPreview, toOutShell)
// pacs // pacs
await this.pacsPrint('0004', isPreview, toOutShell)
if(this.LocalConfig.patientRegister.printGuideLabel.indexOf('pacs') > -1) await this.pacsPrint('0004', isPreview, toOutShell)
} catch (error) { } catch (error) {
console.log(error) console.log(error)
@ -1992,11 +2004,11 @@ export default {
}); });
let resCharge = await postapi("/api/app/ChargeRequest/Create", body) let resCharge = await postapi("/api/app/ChargeRequest/Create", body)
if(resCharge.code > -1){
if (resCharge.code > -1) {
this.dataTransOpts.refresh.patient_register.S++ this.dataTransOpts.refresh.patient_register.S++
} }
} catch (error) { } catch (error) {
this.$message.error({showClose:true,message:`${error}`})
this.$message.error({ showClose: true, message: `${error}` })
} }
}, },

60
src/components/patientRegister/PatientRegisterList.vue

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

Loading…
Cancel
Save