liuzhihui 2 anni fa
parent
commit
1888e93aaa

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

1340
       // }
1340
       // }
1341
     },
1341
     },
1342
     submitForm() {
1342
     submitForm() {
1343
-      // console.log(this.typeAlias)
1344
-      // return;
1345
       if (this.orderTypeData.type2Arr.length == 0 && !this.wid) {
1343
       if (this.orderTypeData.type2Arr.length == 0 && !this.wid) {
1346
         this.$message.error('请选择工单类别')
1344
         this.$message.error('请选择工单类别')
1347
         return
1345
         return
1410
           return
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
       var details = []
1418
       var details = []
1414
       let isNull = false
1419
       let isNull = false
1415
       if (this.typeAlias !== '2004') {
1420
       if (this.typeAlias !== '2004') {

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

555
       this.deptidArr1 = []
555
       this.deptidArr1 = []
556
       this.repairman1 = []
556
       this.repairman1 = []
557
       this.ruleForm.clid = ''
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
         this.$message.error('请选择工单类别')
820
         this.$message.error('请选择工单类别')
820
         return
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
       if (this.iswomanage == 1) {
830
       if (this.iswomanage == 1) {
823
         this.ruleForm.clbm = ''
831
         this.ruleForm.clbm = ''
824
         this.ruleForm.clid = ''
832
         this.ruleForm.clid = ''
832
             F_CallID: this.cid,
840
             F_CallID: this.cid,
833
             LeaveRecordId: this.fid,
841
             LeaveRecordId: this.fid,
834
             F_ID: this.ruleForm.F_ID,
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
             F_Type2: this.ruleForm.F_Type2, // 工单子类
845
             F_Type2: this.ruleForm.F_Type2, // 工单子类
838
             F_Customer: this.ruleForm.F_Customer, // 姓名
846
             F_Customer: this.ruleForm.F_Customer, // 姓名
839
             F_Sex: this.ruleForm.F_Sex, // 性别
847
             F_Sex: this.ruleForm.F_Sex, // 性别

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

802
         this.$message.error('请选择工单类别')
802
         this.$message.error('请选择工单类别')
803
         return
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
       this.$refs[formName].validate((valid) => {
812
       this.$refs[formName].validate((valid) => {
806
         if (valid) {
813
         if (valid) {
807
           if (this.ruleForm.repairImageid === '') {
814
           if (this.ruleForm.repairImageid === '') {

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

505
         this.$message.error('请选择工单类别')
505
         this.$message.error('请选择工单类别')
506
         return
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
       if (
515
       if (
509
         this.worktypeInfo === 'cldd_xsezy' &&
516
         this.worktypeInfo === 'cldd_xsezy' &&
510
         this.ruleForm.birth === 0 &&
517
         this.ruleForm.birth === 0 &&