From ed7fd67e17ab7c64ab30968bb2c832a39d9c1275 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Wed, 21 Feb 2024 10:09:59 +0800 Subject: [PATCH] dj ss --- .../patientRegister/PatientRegisterEdit.vue | 47 +++++++++++-------- .../patientRegister/PatientRegisterItem.vue | 27 ++++++++--- .../patientRegister/PatientRegisterList.vue | 5 +- 3 files changed, 51 insertions(+), 28 deletions(-) diff --git a/src/components/patientRegister/PatientRegisterEdit.vue b/src/components/patientRegister/PatientRegisterEdit.vue index 63a5329..b13fbd8 100644 --- a/src/components/patientRegister/PatientRegisterEdit.vue +++ b/src/components/patientRegister/PatientRegisterEdit.vue @@ -790,29 +790,37 @@ export default { computed: { ...mapState(["window","dataTransOpts","dict", "patientRegister", "customerOrg", "projPriv"]), - displayPackage(){ - + //是否总检(已总检则不允许修改套餐与分组) + isComplete(){ + return this.form.completeFlag == '3' ? true:false; + }, + + // 显示套餐 + displayPackage(){ let isPersonOrgId = true - if(!this.form.customerOrgId) return false - if(typeof this.form.customerOrgId == 'string'){ - if(this.form.customerOrgId == this.dict.personOrgId) isPersonOrgId = false - }else{ - if(this.form.customerOrgId[this.form.customerOrgId.length - 1] == this.dict.personOrgId) isPersonOrgId = false - } - return isPersonOrgId - + if(!this.isComplete){ + if(!this.form.customerOrgId) return false + if(typeof this.form.customerOrgId == 'string'){ + if(this.form.customerOrgId == this.dict.personOrgId) isPersonOrgId = false + }else{ + if(this.form.customerOrgId[this.form.customerOrgId.length - 1] == this.dict.personOrgId) isPersonOrgId = false + } + } + return isPersonOrgId }, + // 显示分组 displayGroup(){ let isPersonOrgId = true - if(!this.form.customerOrgId) return isPersonOrgId - if(typeof this.form.customerOrgId == 'string'){ - if(this.form.customerOrgId != this.dict.personOrgId) isPersonOrgId = false - }else{ - if(this.form.customerOrgId[this.form.customerOrgId.length - 1] != this.dict.personOrgId) isPersonOrgId = false + if(!this.isComplete){ + if(!this.form.customerOrgId) return isPersonOrgId + if(typeof this.form.customerOrgId == 'string'){ + if(this.form.customerOrgId != this.dict.personOrgId) isPersonOrgId = false + }else{ + if(this.form.customerOrgId[this.form.customerOrgId.length - 1] != this.dict.personOrgId) isPersonOrgId = false + } } - return isPersonOrgId - + return isPersonOrgId }, }, methods: { @@ -935,9 +943,10 @@ export default { this.peisid = window.sessionStorage.getItem('peisid'); - if (!patientRegisterId) { + if (!patientRegisterId) { //添加 objCopy(this.formInit, this.form); - this.form.organizationUnitId = this.peisid; + this.form.organizationUnitId = this.peisid; //体检中收 + this.form.customerOrgId = this.patientRegister.query.customerOrgId //体检单位 }else{ // let res = await getapi(`/api/app/patient-register/${patientRegisterId}`) let res = await postapi(`/api/app/patientregister/getinfoorpatient?PatientRegisterId=${patientRegisterId}`) diff --git a/src/components/patientRegister/PatientRegisterItem.vue b/src/components/patientRegister/PatientRegisterItem.vue index 66eae0e..117029b 100644 --- a/src/components/patientRegister/PatientRegisterItem.vue +++ b/src/components/patientRegister/PatientRegisterItem.vue @@ -5,7 +5,7 @@ 项目类别 + clearable filterable @change="changeItemType" size="small" :disabled="isComplete">
@@ -35,19 +35,19 @@
- 添加 + 添加
- 全添加 + 全添加
- 移除 + 移除
- 全移除 + 全移除