From 9e5f117e42d4a36a8825f61f6a1c5373721207c2 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Thu, 10 Aug 2023 18:12:38 +0800 Subject: [PATCH] seo --- .../patientRegister/PatientRegisterEdit.vue | 38 +- .../patientRegister/PatientRegisterItem.vue | 513 +++++++++--------- .../patientRegister/PatientRegisterList.vue | 5 +- .../patientRegisterAsbItem.vue | 1 + src/store/index.js | 76 ++- src/views/customerOrg/patientRegister.vue | 4 +- 6 files changed, 341 insertions(+), 296 deletions(-) diff --git a/src/components/patientRegister/PatientRegisterEdit.vue b/src/components/patientRegister/PatientRegisterEdit.vue index 4da7703..3a9197c 100644 --- a/src/components/patientRegister/PatientRegisterEdit.vue +++ b/src/components/patientRegister/PatientRegisterEdit.vue @@ -109,23 +109,23 @@ - - + - - + - + - @@ -134,7 +134,7 @@ - @@ -309,7 +309,7 @@ 读身份证
- 保存 + 保存
申请单 @@ -440,6 +440,7 @@ export default { telephone: "", //电话 mobileTelephone: "", //手机号 nationId: null, //民族编号 + birthPlaceId: null, //籍惯(出生地) postalCode: "", //邮编 creatorId: null, creationTime: "", @@ -457,6 +458,7 @@ export default { "sexHormoneTermId", "organizationUnitId", "nationId", + "birthPlaceId", ], //一般uuid字段为空时,需设置为null值 rules: { @@ -509,11 +511,13 @@ export default { //分组改变时触发 changeCustomerOrgGroupId() { this.patientRegister.customerOrgGroupChange++; + if(this.form.id) this.Onsubmit('form',false); }, //套餐改变时触发 changeMedicalPackageId() { this.patientRegister.medicalPackageChange++; + if(this.form.id) this.Onsubmit('form',false); }, //根据姓名,身份证号 查询档案信息,用于判断人员多次体检 @@ -569,7 +573,7 @@ export default { }, //提交 - Onsubmit(formName) { + Onsubmit(formName,msgTip) { this.$refs[formName].validate((valid) => { if (valid) { //赋值 @@ -603,7 +607,7 @@ export default { (res) => { if (res.code == 1) { //console.log('res',res) - this.$message.success("创健 操作成功"); + if(msgTip) this.$message.success("创健 操作成功"); objCopy(res.data, this.form); this.patientRegister.patientRegisterId = res.data.id; this.patientRegister.patientRegisterId = res.data.id; @@ -615,18 +619,12 @@ export default { ); } 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("更新 操作成功"); + if(msgTip) this.$message.success("更新 操作成功"); this.patientRegister.query.times++; - this.patientRegister.saveTimes++; + //this.patientRegister.saveTimes++; //更新保存时,无需触发组合项目保存 } }); } diff --git a/src/components/patientRegister/PatientRegisterItem.vue b/src/components/patientRegister/PatientRegisterItem.vue index 890d3ff..b1894ff 100644 --- a/src/components/patientRegister/PatientRegisterItem.vue +++ b/src/components/patientRegister/PatientRegisterItem.vue @@ -1,5 +1,4 @@