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 @@
项目类别