Pārlūkot izejas kodu

科室内转派根据当前登录人责任科室查询人员

seimin 1 gadu atpakaļ
vecāks
revīzija
c2d4ca82a4
1 mainītis faili ar 12 papildinājumiem un 2 dzēšanām
  1. 12 2
      src/views/processing.vue

+ 12 - 2
src/views/processing.vue

@@ -1237,7 +1237,7 @@ export default {
1237 1237
           that.fields[6].props.options = handlerUserArr;
1238 1238
         });
1239 1239
     },
1240
-    // 获取转派对象 liaomingming
1240
+    // 获取转派对象
1241 1241
     getRotateUser(transferModeId) {
1242 1242
       console.log(transferModeId,this.model);
1243 1243
       this.fields[8].props.options = [];
@@ -1250,7 +1250,17 @@ export default {
1250 1250
           selectType: "1"
1251 1251
         }
1252 1252
       };
1253
-      if(transferModeId == 2){
1253
+      if(transferModeId == 1){
1254
+        // 判断当前是责任科室还是院区
1255
+        if (this.loginUser.duty) {
1256
+          // 当前的所属责任科室
1257
+          postData.user.currentDuty = this.loginUser.duty.id;
1258
+        } else if (this.loginUser.branch) {
1259
+          // 当前的所属院区
1260
+          this.fields[8].props.options = [];
1261
+          return;
1262
+        }
1263
+      }else if(transferModeId == 2){
1254 1264
         // 跨科室转派
1255 1265
         postData.user.duty = {id:this.model.duty};
1256 1266
       }