seimin 1 year ago
parent
commit
2762948c5c
1 changed files with 51 additions and 51 deletions
  1. 51 51
      src/views/newIncident.vue

+ 51 - 51
src/views/newIncident.vue

@@ -1512,57 +1512,57 @@ export default {
1512 1512
       this.selectedPlaceTxt = selectedTxt.join(" ");
1513 1513
       // 分院区
1514 1514
       // --------------------start---------------------
1515
-      let categoryId = this.model.category.slice(-1)[0];
1516
-      if (categoryId) {
1517
-        // 选择了故障现象
1518
-        let categoryObj = this.initSjList.find(v => v.id == categoryId);
1519
-        if (categoryObj) {
1520
-          if (categoryObj.branchType == 1) {
1521
-            // 分院区开关打开的情况下
1522
-            let areaId = this.model.placeValue[0]; //区域id
1523
-            let areaObj = this.initAreaList.find(v => v.id == areaId);
1524
-            let branchId = areaObj.branch;
1525
-            let branchUserGroup =
1526
-              categoryObj.branchUserGroups.find(v => v.branchId == branchId) ||
1527
-              {};
1528
-            if (branchUserGroup.branchUserOrGroupType == 1) {
1529
-              //派人
1530
-              this.order = 2;
1531
-              this.model.handleUserOrGroup = true;
1532
-              this.model.handlerUser = branchUserGroup.userId
1533
-                ? branchUserGroup.userId
1534
-                : undefined;
1535
-            } else if (branchUserGroup.branchUserOrGroupType === 2) {
1536
-              //派组
1537
-              this.order = 2;
1538
-              this.model.handleUserOrGroup = false;
1539
-              this.model.candidateGroups = branchUserGroup.groupId
1540
-                ? branchUserGroup.groupId
1541
-                : undefined;
1542
-            } else {
1543
-              this.order = 1;
1544
-              this.model.handleUserOrGroup = false;
1545
-              this.model.handlerUser = "";
1546
-              this.model.candidateGroups = "";
1547
-            }
1548
-          } else {
1549
-            this.order = 1;
1550
-            this.model.handleUserOrGroup = false;
1551
-            this.model.handlerUser = "";
1552
-            this.model.candidateGroups = "";
1553
-          }
1554
-        } else {
1555
-          this.order = 1;
1556
-          this.model.handleUserOrGroup = false;
1557
-          this.model.handlerUser = "";
1558
-          this.model.candidateGroups = "";
1559
-        }
1560
-      } else {
1561
-        this.order = 1;
1562
-        this.model.handleUserOrGroup = false;
1563
-        this.model.handlerUser = "";
1564
-        this.model.candidateGroups = "";
1565
-      }
1515
+      // let categoryId = this.model.category.slice(-1)[0];
1516
+      // if (categoryId) {
1517
+      //   // 选择了故障现象
1518
+      //   let categoryObj = this.initSjList.find(v => v.id == categoryId);
1519
+      //   if (categoryObj) {
1520
+      //     if (categoryObj.branchType == 1) {
1521
+      //       // 分院区开关打开的情况下
1522
+      //       let areaId = this.model.placeValue[0]; //区域id
1523
+      //       let areaObj = this.initAreaList.find(v => v.id == areaId);
1524
+      //       let branchId = areaObj.branch;
1525
+      //       let branchUserGroup =
1526
+      //         categoryObj.branchUserGroups.find(v => v.branchId == branchId) ||
1527
+      //         {};
1528
+      //       if (branchUserGroup.branchUserOrGroupType == 1) {
1529
+      //         //派人
1530
+      //         this.order = 2;
1531
+      //         this.model.handleUserOrGroup = true;
1532
+      //         this.model.handlerUser = branchUserGroup.userId
1533
+      //           ? branchUserGroup.userId
1534
+      //           : undefined;
1535
+      //       } else if (branchUserGroup.branchUserOrGroupType === 2) {
1536
+      //         //派组
1537
+      //         this.order = 2;
1538
+      //         this.model.handleUserOrGroup = false;
1539
+      //         this.model.candidateGroups = branchUserGroup.groupId
1540
+      //           ? branchUserGroup.groupId
1541
+      //           : undefined;
1542
+      //       } else {
1543
+      //         this.order = 1;
1544
+      //         this.model.handleUserOrGroup = false;
1545
+      //         this.model.handlerUser = "";
1546
+      //         this.model.candidateGroups = "";
1547
+      //       }
1548
+      //     } else {
1549
+      //       this.order = 1;
1550
+      //       this.model.handleUserOrGroup = false;
1551
+      //       this.model.handlerUser = "";
1552
+      //       this.model.candidateGroups = "";
1553
+      //     }
1554
+      //   } else {
1555
+      //     this.order = 1;
1556
+      //     this.model.handleUserOrGroup = false;
1557
+      //     this.model.handlerUser = "";
1558
+      //     this.model.candidateGroups = "";
1559
+      //   }
1560
+      // } else {
1561
+      //   this.order = 1;
1562
+      //   this.model.handleUserOrGroup = false;
1563
+      //   this.model.handlerUser = "";
1564
+      //   this.model.candidateGroups = "";
1565
+      // }
1566 1566
       // --------------------end---------------------
1567 1567
     },
1568 1568
     // 跳转到报修科室搜索页面