Browse Source

上班科室楼栋选择

seimin 1 year ago
parent
commit
3c0e46a900
2 changed files with 18 additions and 10 deletions
  1. 9 5
      pages/search/search.vue
  2. 9 5
      pages/searchMuti/searchMuti.vue

+ 9 - 5
pages/search/search.vue

@@ -207,8 +207,12 @@
207
             let workAllocationQuickConfig = res.list[0] || {};
207
             let workAllocationQuickConfig = res.list[0] || {};
208
             // 科室绑定人员
208
             // 科室绑定人员
209
             if(workAllocationQuickConfig.ruleType == 3){
209
             if(workAllocationQuickConfig.ruleType == 3){
210
-              this.sysDeptType = -1;
211
-              this.quickCombinationDeptType = workAllocationQuickConfig.deptTypeList.map(v => v.id).toString();
210
+              if(workAllocationQuickConfig.deptTypeList){
211
+                this.quickCombinationDeptType = workAllocationQuickConfig.deptTypeList.map(v => v.id).toString();
212
+              }else{
213
+                // 没有获取到配置,则获取之前的
214
+                this.getSysDeptType();
215
+              }
212
             }else{
216
             }else{
213
               this.getSysDeptType();
217
               this.getSysDeptType();
214
             }
218
             }
@@ -248,10 +252,10 @@
248
         }
252
         }
249
         //不是送回病房
253
         //不是送回病房
250
         if (this.type != "sendBack" && this.type != "sendBackPatientList" && this.type != "settingCode" && this.type != "bloodSelect" && this.type != "showDepartmentQrcode") {
254
         if (this.type != "sendBack" && this.type != "sendBackPatientList" && this.type != "settingCode" && this.type != "bloodSelect" && this.type != "showDepartmentQrcode") {
251
-          if (this.sysDeptType === 0) {
252
-            return;
253
-          } else if(this.quickCombinationDeptType){
255
+          if(this.quickCombinationDeptType){
254
             postData.department.deptTypeIds = this.quickCombinationDeptType;
256
             postData.department.deptTypeIds = this.quickCombinationDeptType;
257
+          } else if (this.sysDeptType === 0) {
258
+            return;
255
           } else {
259
           } else {
256
             postData.department.type = {
260
             postData.department.type = {
257
               id: this.sysDeptType
261
               id: this.sysDeptType

+ 9 - 5
pages/searchMuti/searchMuti.vue

@@ -88,8 +88,12 @@
88
             let workAllocationQuickConfig = res.list[0] || {};
88
             let workAllocationQuickConfig = res.list[0] || {};
89
             // 科室绑定人员
89
             // 科室绑定人员
90
             if(workAllocationQuickConfig.ruleType == 3){
90
             if(workAllocationQuickConfig.ruleType == 3){
91
-              this.sysDeptType = -1;
92
-              this.quickCombinationDeptType = workAllocationQuickConfig.deptTypeList.map(v => v.id).toString();
91
+              if(workAllocationQuickConfig.deptTypeList){
92
+                this.quickCombinationDeptType = workAllocationQuickConfig.deptTypeList.map(v => v.id).toString();
93
+              }else{
94
+                // 没有获取到配置,则获取之前的
95
+                this.getSysDeptType();
96
+              }
93
               this.getBuildings();
97
               this.getBuildings();
94
             }else{
98
             }else{
95
               this.getSysDeptType();
99
               this.getSysDeptType();
@@ -120,10 +124,10 @@
120
             }
124
             }
121
           }
125
           }
122
           
126
           
123
-          if (this.sysDeptType === 0) {
124
-            return;
125
-          } else if(this.quickCombinationDeptType){
127
+          if(this.quickCombinationDeptType){
126
             postData.department.deptTypeIds = this.quickCombinationDeptType;
128
             postData.department.deptTypeIds = this.quickCombinationDeptType;
129
+          } else if (this.sysDeptType === 0) {
130
+            return;
127
           } else {
131
           } else {
128
             postData.department.type = {
132
             postData.department.type = {
129
               id: this.sysDeptType
133
               id: this.sysDeptType