liuzhihui vor 2 Jahren
Ursprung
Commit
1888e93aaa

+ 7 - 2
CallCenterWeb.UI/RMYY/src/components/workOrder/dispatching/addOrEditDispatch.vue

@@ -1340,8 +1340,6 @@ export default {
1340 1340
       // }
1341 1341
     },
1342 1342
     submitForm() {
1343
-      // console.log(this.typeAlias)
1344
-      // return;
1345 1343
       if (this.orderTypeData.type2Arr.length == 0 && !this.wid) {
1346 1344
         this.$message.error('请选择工单类别')
1347 1345
         return
@@ -1410,6 +1408,13 @@ export default {
1410 1408
           return
1411 1409
         }
1412 1410
       }
1411
+      var resTypeArr = this.$store.getters.workTypeMap[parseInt(this.orderTypeData.type2Arr[this.orderTypeData.type2Arr.length - 1])].ids
1412
+      if(resTypeArr[0] != 2000){
1413
+        this.$message.error('业务类别与工单类别不匹配,请重新选择')
1414
+        return
1415
+      }
1416
+      // console.log(resTypeArr)
1417
+      // return
1413 1418
       var details = []
1414 1419
       let isNull = false
1415 1420
       if (this.typeAlias !== '2004') {

+ 27 - 19
CallCenterWeb.UI/RMYY/src/components/workOrder/information/addOrEditInfOrder.vue

@@ -555,23 +555,24 @@ export default {
555 555
       this.deptidArr1 = []
556 556
       this.repairman1 = []
557 557
       this.ruleForm.clid = ''
558
-      const autoData = JSON.parse(
559
-        this.$store.getters.workTypeMap[parseInt(this.orderTypeData.F_Type2)]
560
-          .autoDept || '[]'
561
-      )
562
-      console.log(autoData)
563
-      if (!autoData) {
564
-        return
565
-      }
566
-      for (var i = 0; i < autoData.length; i++) {
567
-        if (autoData[i].autoyq == '0') {
568
-          // 全部
569
-          this.ruleForm.opt = '3'
570
-          this.deptidArr1 =
571
-            this.$store.getters.deptmap[parseInt(autoData[i].autodept)].ids
572
-          this.ruleForm.clbm = autoData[i].autodept
573
-          this.getClassUser(autoData[i].autodept)
574
-          this.ruleForm.clid = autoData[i].autousercode
558
+      if(this.$store.getters.workTypeMap[parseInt(this.orderTypeData.F_Type2)]){
559
+        const autoData = JSON.parse(
560
+          this.$store.getters.workTypeMap[parseInt(this.orderTypeData.F_Type2)]
561
+            .autoDept || '[]'
562
+        )
563
+        if (!autoData || autoData[0] == null) {
564
+          return
565
+        }
566
+        for (var i = 0; i < autoData.length; i++) {
567
+          if (autoData[i].autoyq == '0') {
568
+            // 全部
569
+            this.ruleForm.opt = '3'
570
+            this.deptidArr1 =
571
+              this.$store.getters.deptmap[parseInt(autoData[i].autodept)].ids
572
+            this.ruleForm.clbm = autoData[i].autodept
573
+            this.getClassUser(autoData[i].autodept)
574
+            this.ruleForm.clid = autoData[i].autousercode
575
+          }
575 576
         }
576 577
       }
577 578
     },
@@ -819,6 +820,13 @@ export default {
819 820
         this.$message.error('请选择工单类别')
820 821
         return
821 822
       }
823
+      var resTypeArr = this.$store.getters.workTypeMap[parseInt(this.ruleForm.F_Type2)].ids
824
+      if(resTypeArr[0] != 1000){
825
+        this.$message.error('业务类别与工单类别不匹配,请重新选择')
826
+        return
827
+      }
828
+      // console.log(resTypeArr)
829
+      // return
822 830
       if (this.iswomanage == 1) {
823 831
         this.ruleForm.clbm = ''
824 832
         this.ruleForm.clid = ''
@@ -832,8 +840,8 @@ export default {
832 840
             F_CallID: this.cid,
833 841
             LeaveRecordId: this.fid,
834 842
             F_ID: this.ruleForm.F_ID,
835
-            // F_ComplaintSource: this.ruleForm.F_ComplaintSource,
836
-            F_Type1: this.orderTypeData && this.orderTypeData.F_Type1, // 工单类别
843
+            // F_Type1: this.orderTypeData && this.orderTypeData.F_Type1, // 工单类别
844
+            F_Type1: 1000,
837 845
             F_Type2: this.ruleForm.F_Type2, // 工单子类
838 846
             F_Customer: this.ruleForm.F_Customer, // 姓名
839 847
             F_Sex: this.ruleForm.F_Sex, // 性别

+ 7 - 0
CallCenterWeb.UI/RMYY/src/components/workOrder/repairbase/addRepairbase.vue

@@ -802,6 +802,13 @@ export default {
802 802
         this.$message.error('请选择工单类别')
803 803
         return
804 804
       }
805
+      var resTypeArr = this.$store.getters.workTypeMap[parseInt(this.orderTypeData.type2Arr[this.orderTypeData.type2Arr.length - 1])].ids
806
+      if(resTypeArr[0] != 3000){
807
+        this.$message.error('业务类别与工单类别不匹配,请重新选择')
808
+        return
809
+      }
810
+      // console.log(resTypeArr)
811
+      // return
805 812
       this.$refs[formName].validate((valid) => {
806 813
         if (valid) {
807 814
           if (this.ruleForm.repairImageid === '') {

+ 7 - 0
CallCenterWeb.UI/RMYY/src/components/workOrder/vehicleDispatch/addOrEdit.vue

@@ -505,6 +505,13 @@ export default {
505 505
         this.$message.error('请选择工单类别')
506 506
         return
507 507
       }
508
+      var resTypeArr = this.$store.getters.workTypeMap[parseInt(this.orderTypeData.type2Arr[this.orderTypeData.type2Arr.length - 1])].ids
509
+      if(resTypeArr[0] != 4000){
510
+        this.$message.error('业务类别与工单类别不匹配,请重新选择')
511
+        return
512
+      }
513
+      // console.log(resTypeArr)
514
+      // return
508 515
       if (
509 516
         this.worktypeInfo === 'cldd_xsezy' &&
510 517
         this.ruleForm.birth === 0 &&