From ce26a3d859f54589e282580ce2ade27ab5ba9106 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Wed, 6 Sep 2023 18:52:19 +0800 Subject: [PATCH] card --- .../patientRegister/PatientRegisterEdit.vue | 15 ++- .../patientRegister/PatientRegisterList.vue | 4 +- src/views/charge/charge.vue | 4 + src/views/fee-settings/cardType.vue | 119 +++++++++--------- 4 files changed, 75 insertions(+), 67 deletions(-) diff --git a/src/components/patientRegister/PatientRegisterEdit.vue b/src/components/patientRegister/PatientRegisterEdit.vue index feb5a46..31c9cb2 100644 --- a/src/components/patientRegister/PatientRegisterEdit.vue +++ b/src/components/patientRegister/PatientRegisterEdit.vue @@ -186,7 +186,7 @@ - @@ -475,6 +475,7 @@ export default { apiurl: mm.apiurl, brushTimes: 0, payTypeFlag:'', + peisid:null, form: { id: "", //id patientId: "00000000-0000-0000-0000-000000000000", //档案号ID 选择了档案就传档案号,未选就传00000-0000... @@ -554,11 +555,16 @@ export default { }; }, - created() { }, + created() { + this.peisid = window.sessionStorage.getItem('peisid'); + if(!this.form.id){ + this.form.organizationUnitId = this.peisid; + } + }, //挂载完成 mounted() { - objCopy(this.formInitData, this.form); + objCopy(this.formInitData, this.form); this.initBox(); }, @@ -683,6 +689,9 @@ export default { this.form.isLockBox = false; } + if(!this.form.id){ + this.form.organizationUnitId = this.peisid; + } }, //提交 diff --git a/src/components/patientRegister/PatientRegisterList.vue b/src/components/patientRegister/PatientRegisterList.vue index 4af3510..674a7e7 100644 --- a/src/components/patientRegister/PatientRegisterList.vue +++ b/src/components/patientRegister/PatientRegisterList.vue @@ -306,7 +306,7 @@ import moment from "moment"; import { mapState, mapActions } from "vuex"; import { getapi, postapi, putapi, deletapi } from "@/api/api"; -import { dddw, objCopy, arrayReduce, arrayExistObj } from "@/utlis/proFunc"; +import { dddw, objCopy, arrayReduce, arrayExistObj,deepCopy } from "@/utlis/proFunc"; import PatientRegisterEdit from "../../components/patientRegister/PatientRegisterEdit.vue"; import Camera from "../../components/patientRegister/Camera.vue"; @@ -484,7 +484,7 @@ export default { // this.patientRegister.addTimes++; // this.patientRegister.patientRegisterTimes++; this.patientRegister.patientRegisterRdInit.customerOrgId = this.patientRegister.query.customerOrgId; - this.formInitData = { ...this.patientRegister.patientRegisterRdInit }; + this.formInitData = deepCopy(this.patientRegister.patientRegisterRdInit ); this.patientRegister.patientRegisterAbs = []; this.dialogVisible = true; this.editTimes++; //触发表单窗口,数据更新 diff --git a/src/views/charge/charge.vue b/src/views/charge/charge.vue index dfdbb18..728bec6 100644 --- a/src/views/charge/charge.vue +++ b/src/views/charge/charge.vue @@ -225,6 +225,10 @@ 打印 +
+ 打印预览 +
diff --git a/src/views/fee-settings/cardType.vue b/src/views/fee-settings/cardType.vue index d0a8172..aa4dbeb 100644 --- a/src/views/fee-settings/cardType.vue +++ b/src/views/fee-settings/cardType.vue @@ -16,7 +16,7 @@ - + - +