From 3eae3efb80a6f9b4ba06663496fc37b61ab70bdb Mon Sep 17 00:00:00 2001 From: mch <1332099529@qq.com> Date: Mon, 24 Jul 2023 14:53:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E8=88=AA=E8=8F=9C=E5=8D=95=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../patientRegister/PatientRegisterEdit.vue | 166 ++++++++--- .../patientRegister/PatientRegisterItem.vue | 6 +- .../unitGrouping/unitGroupingTable.vue | 14 +- src/views/Home.vue | 279 +++++++++++++++++- src/views/basic-dictionary/MaritalStatus.vue | 2 +- 5 files changed, 411 insertions(+), 56 deletions(-) diff --git a/src/components/patientRegister/PatientRegisterEdit.vue b/src/components/patientRegister/PatientRegisterEdit.vue index 894b132..9395b48 100644 --- a/src/components/patientRegister/PatientRegisterEdit.vue +++ b/src/components/patientRegister/PatientRegisterEdit.vue @@ -79,7 +79,12 @@ - + @@ -103,15 +108,33 @@ - - + + - - + + @@ -170,8 +193,17 @@ - - + + @@ -198,7 +230,7 @@ - + @@ -207,7 +239,7 @@ - + @@ -254,19 +286,43 @@ - - + :disabled=" + form.customerOrgId === dict.personOrgId ? true : false + " + > + - - + :disabled=" + form.customerOrgId === dict.personOrgId ? false : true + " + > + @@ -306,7 +362,14 @@ - + @@ -316,7 +379,14 @@ - + @@ -333,7 +403,7 @@ -
+
读身份证
@@ -403,7 +473,14 @@ @@ -459,7 +536,7 @@ export default { }, data() { return { - apiurl:mm.apiurl, + apiurl: mm.apiurl, form: { id: "", //id patientId: "00000000-0000-0000-0000-000000000000", //档案号ID 选择了档案就传档案号,未选就传00000-0000... @@ -478,7 +555,8 @@ export default { personnelTypeId: null, //人员类别 jobPost: "", //职务 jobTitle: "", //职称 - photo:"https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg", //照片 + photo: + "https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg", //照片 salesman: "", //介绍人 sexHormoneTermId: null, //性激素期限 isNameHide: "N", //隐藏姓名 @@ -552,15 +630,15 @@ export default { }, //分组改变时触发 - changeCustomerOrgGroupId(){ - this.patientRegister.customerOrgGroupChange++ + changeCustomerOrgGroupId() { + this.patientRegister.customerOrgGroupChange++; }, //套餐改变时触发 - changeMedicalPackageId(){ - this.patientRegister.medicalPackageChange++ - }, - + changeMedicalPackageId() { + this.patientRegister.medicalPackageChange++; + }, + //根据姓名,身份证号 查询档案信息,用于判断人员多次体检 query(param) { //编辑的时候不查重 @@ -636,7 +714,9 @@ export default { //日期转换 console.log("body.birthDate", body.birthDate); if (body.birthDate) { - body.birthDate = moment(new Date(body.birthDate)).format("yyyy-MM-DD"); + body.birthDate = moment(new Date(body.birthDate)).format( + "yyyy-MM-DD" + ); } if (this.form.id.length < 1) { @@ -652,19 +732,24 @@ export default { this.patientRegister.patientRegisterId = res.data.id; this.patientRegister.patientRegisterRd = res.data; this.patientRegister.query.times++; - this.patientRegister.saveTimes++ + this.patientRegister.saveTimes++; } } ); } else { //id不为空则编辑 - console.log(`/api/app/patient-register?PatientRegisterId=${this.form.id}`,body); - putapi(`/api/app/patient-register?PatientRegisterId=${this.form.id}`,body) - .then((res) => { + console.log( + `/api/app/patient-register?PatientRegisterId=${this.form.id}`, + body + ); + putapi( + `/api/app/patient-register?PatientRegisterId=${this.form.id}`, + body + ).then((res) => { if (res.code == 1) { this.$message.success("更新 操作成功"); this.patientRegister.query.times++; - this.patientRegister.saveTimes++ + this.patientRegister.saveTimes++; } }); } @@ -715,9 +800,14 @@ export default { //编辑触发 "patientRegister.patientRegisterRd.id"(newVal, oldVal) { - console.log('patientRegister.patientRegisterRd.id newVal:',newVal,' oldVal:',oldVal) + console.log( + "patientRegister.patientRegisterRd.id newVal:", + newVal, + " oldVal:", + oldVal + ); if (newVal != oldVal) { - console.log('newVal:',this.patientRegister.patientRegisterRd) + console.log("newVal:", this.patientRegister.patientRegisterRd); objCopy(this.patientRegister.patientRegisterRd, this.form); } }, @@ -734,7 +824,7 @@ export default { }; diff --git a/src/components/patientRegister/PatientRegisterItem.vue b/src/components/patientRegister/PatientRegisterItem.vue index 7e72f2b..651ef67 100644 --- a/src/components/patientRegister/PatientRegisterItem.vue +++ b/src/components/patientRegister/PatientRegisterItem.vue @@ -9,7 +9,7 @@
- @@ -32,7 +32,7 @@
- @@ -625,7 +625,7 @@ export default { \ No newline at end of file diff --git a/src/views/Home.vue b/src/views/Home.vue index 1e2e2f3..7dbb129 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -3,8 +3,267 @@