|
|
@@ -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, // 性别
|