|
|
@@ -440,30 +440,18 @@ export default {
|
|
440
|
440
|
},
|
|
441
|
441
|
watch: {
|
|
442
|
442
|
'orderTypeData.F_Type2': function() {
|
|
443
|
|
- // this.typeSecondState(this.orderTypeData.F_Type2)
|
|
444
|
443
|
this.ruleForm.type2Arr = this.orderTypeData.type2Arr
|
|
445
|
444
|
this.ruleForm.F_Type2 = this.orderTypeData.F_Type2
|
|
446
|
445
|
this.ruleForm.identification = this.orderTypeData.identification
|
|
447
|
|
- // console.log(this.orderTypeData, '999')
|
|
448
|
|
- if (this.orderTypeData.type2Arr[0] == '8023') {
|
|
449
|
|
- this.zpdptname = '建议部门'
|
|
450
|
|
- this.zppername = '建议人'
|
|
451
|
|
- }
|
|
452
|
|
- if (this.orderTypeData.type2Arr[0] == '8015') {
|
|
453
|
|
- this.zpdptname = '投诉部门'
|
|
454
|
|
- this.zppername = '投诉人'
|
|
455
|
|
- }
|
|
456
|
|
- if (this.orderTypeData.type2Arr[0] == '8031') {
|
|
457
|
|
- this.zpdptname = '表扬部门'
|
|
458
|
|
- this.zppername = '表扬人'
|
|
459
|
|
- }
|
|
|
446
|
+
|
|
|
447
|
+ this.changeName(this.ruleForm.F_Type2)
|
|
460
|
448
|
}
|
|
461
|
449
|
},
|
|
462
|
450
|
created() {
|
|
463
|
451
|
if (this.callinNum) {
|
|
464
|
452
|
this.ruleForm.F_Phon = this.callinNum
|
|
465
|
453
|
}
|
|
466
|
|
- if (this.wid && this.rtype == 1000) {
|
|
|
454
|
+ if (this.wid && this.rtype === 1000) {
|
|
467
|
455
|
this.OrderDetail()
|
|
468
|
456
|
}
|
|
469
|
457
|
if (this.iswomanage) {
|
|
|
@@ -473,6 +461,23 @@ export default {
|
|
473
|
461
|
this.gettsSelect()
|
|
474
|
462
|
},
|
|
475
|
463
|
methods: {
|
|
|
464
|
+ changeName(id) {
|
|
|
465
|
+ const twoTypeInfo = this.$store.getters.workTypeMap[parseInt(id || 0)]
|
|
|
466
|
+ if (twoTypeInfo && twoTypeInfo.tag) {
|
|
|
467
|
+ if (twoTypeInfo.tag === 'ywzx_jy') {
|
|
|
468
|
+ this.zpdptname = '建议部门'
|
|
|
469
|
+ this.zppername = '建议人'
|
|
|
470
|
+ }
|
|
|
471
|
+ if (twoTypeInfo.tag === 'ywzx_ts') {
|
|
|
472
|
+ this.zpdptname = '投诉部门'
|
|
|
473
|
+ this.zppername = '投诉人'
|
|
|
474
|
+ }
|
|
|
475
|
+ if (twoTypeInfo.tag === 'ywzx_by') {
|
|
|
476
|
+ this.zpdptname = '表扬部门'
|
|
|
477
|
+ this.zppername = '表扬人'
|
|
|
478
|
+ }
|
|
|
479
|
+ }
|
|
|
480
|
+ },
|
|
476
|
481
|
// 获取详情
|
|
477
|
482
|
OrderDetail() {
|
|
478
|
483
|
const params = {
|
|
|
@@ -522,19 +527,8 @@ export default {
|
|
522
|
527
|
this.ruleForm.F_FullName = res.F_FullName
|
|
523
|
528
|
this.ruleForm.F_IDNumber = res.F_IDNumber
|
|
524
|
529
|
this.ruleForm.F_Relationship = res.F_Relationship
|
|
525
|
|
- // console.log(this.ruleForm.type2Arr, '99')
|
|
526
|
|
- if (this.ruleForm.type2Arr[0] == '8023') {
|
|
527
|
|
- this.zpdptname = '建议部门'
|
|
528
|
|
- this.zppername = '建议人'
|
|
529
|
|
- }
|
|
530
|
|
- if (this.ruleForm.type2Arr[0] == '8015') {
|
|
531
|
|
- this.zpdptname = '投诉部门'
|
|
532
|
|
- this.zppername = '投诉人'
|
|
533
|
|
- }
|
|
534
|
|
- if (this.ruleForm.type2Arr[0] == '8031') {
|
|
535
|
|
- this.zpdptname = '表扬部门'
|
|
536
|
|
- this.zppername = '表扬人'
|
|
537
|
|
- }
|
|
|
530
|
+
|
|
|
531
|
+ this.changeName(this.ruleForm.type2Arr[0])
|
|
538
|
532
|
if (res.F_ComplaintDept) {
|
|
539
|
533
|
this.deptidArr = this.$store.getters.deptmap[parseInt(res.F_ComplaintDept)].ids
|
|
540
|
534
|
this.getRepairman(res.F_ComplaintDept, 0)
|
|
|
@@ -554,19 +548,16 @@ export default {
|
|
554
|
548
|
})
|
|
555
|
549
|
},
|
|
556
|
550
|
submitForm() {
|
|
557
|
|
- // if (JSON.stringify(this.orderTypeData) !== '{}') {
|
|
558
|
|
- // console.log(this.orderTypeData)
|
|
559
|
|
- // this.getParentOrderType()
|
|
560
|
|
- // }
|
|
561
|
551
|
this.$refs.ruleForm.validate((valid) => {
|
|
562
|
552
|
if (valid) {
|
|
563
|
553
|
this.loading = true
|
|
|
554
|
+ debugger
|
|
564
|
555
|
const params = {
|
|
565
|
556
|
F_CallID: this.ruleForm.F_CallID,
|
|
566
|
557
|
F_ID: this.ruleForm.F_ID,
|
|
567
|
558
|
F_ComplaintSource: this.ruleForm.F_ComplaintSource,
|
|
568
|
559
|
F_Source: this.ruleForm.F_Source, // 业务类别
|
|
569
|
|
- F_Type1: this.ruleForm.F_Type1, // 工单类别
|
|
|
560
|
+ F_Type1: this.orderTypeData && this.orderTypeData.F_Type1, // 工单类别
|
|
570
|
561
|
F_Type2: this.ruleForm.F_Type2, // 工单子类
|
|
571
|
562
|
// F_Type3: this.ruleForm.F_Type3, // 工单子类
|
|
572
|
563
|
F_Customer: this.ruleForm.F_Customer, // 姓名
|
|
|
@@ -705,65 +696,6 @@ export default {
|
|
705
|
696
|
this.ruleForm.F_IdCard = this.personParmsData.F_IdCard // 身份证号
|
|
706
|
697
|
this.ruleForm.F_CusAddress = this.personParmsData.F_CusAddress // 地址
|
|
707
|
698
|
},
|
|
708
|
|
-
|
|
709
|
|
- // 一级改变时触发
|
|
710
|
|
- // getFirstOrderType(data) {
|
|
711
|
|
- // this.ruleForm.F_Type1 = data.value
|
|
712
|
|
- // this.ruleForm.F_TypeName1 = data.name
|
|
713
|
|
- // this.secondOrderTypeParam.typeid = 2
|
|
714
|
|
- // this.secondOrderTypeParam.pid = data.value
|
|
715
|
|
- // },
|
|
716
|
|
- // 二级改变时触发
|
|
717
|
|
- // getSecondOrderType(data) {
|
|
718
|
|
- // this.ruleForm.F_Type2 = data.value
|
|
719
|
|
- // this.ruleForm.F_TypeName2 = data.name
|
|
720
|
|
- // this.typeSecondState(data.value)
|
|
721
|
|
- // this.thirdOrderTypeParam.typeid = 3
|
|
722
|
|
- // this.thirdOrderTypeParam.pid = data.value
|
|
723
|
|
- // },
|
|
724
|
|
- // 三级改变时触发
|
|
725
|
|
- // getThirdOrderType(data) {
|
|
726
|
|
- // this.ruleForm.F_Type3 = data.value
|
|
727
|
|
- // this.ruleForm.F_TypeName3 = data.name
|
|
728
|
|
- // },
|
|
729
|
|
- // getServiceProject(data) {
|
|
730
|
|
- // console.log(data)
|
|
731
|
|
- // this.ruleForm.F_ServiceItems = data.value
|
|
732
|
|
- // this.ruleForm.F_ServiceItems = data.name
|
|
733
|
|
- // },
|
|
734
|
|
- // typeSecondState(data) {
|
|
735
|
|
- // switch (data) {
|
|
736
|
|
- // case 1001: // 健康咨询
|
|
737
|
|
- // this.ruleForm.opt = '1'
|
|
738
|
|
- // break
|
|
739
|
|
- // case 1002: // 投诉建议
|
|
740
|
|
- // this.ruleForm.opt = '2'
|
|
741
|
|
- // break
|
|
742
|
|
- // case 1003: // 外聘专家咨询
|
|
743
|
|
- // this.ruleForm.opt = '1'
|
|
744
|
|
- // break
|
|
745
|
|
- // case 1004: // 家庭预约上门
|
|
746
|
|
- // this.ruleForm.opt = '3'
|
|
747
|
|
- // break
|
|
748
|
|
- // case 1005: // 静脉置管维护
|
|
749
|
|
- // this.ruleForm.opt = '3'
|
|
750
|
|
- // break
|
|
751
|
|
- // default:
|
|
752
|
|
- // this.ruleForm.opt = '1'
|
|
753
|
|
- // break
|
|
754
|
|
- // }
|
|
755
|
|
- // },
|
|
756
|
|
-
|
|
757
|
|
- // getParentOrderType() {
|
|
758
|
|
- // this.ruleForm.F_Type1 = this.orderTypeData.F_Type1
|
|
759
|
|
- // this.ruleForm.F_TypeName1 = this.orderTypeData.F_TypeName1
|
|
760
|
|
- // this.ruleForm.F_Type2 = this.orderTypeData.F_Type2
|
|
761
|
|
- // this.ruleForm.F_TypeName2 = this.orderTypeData.F_TypeName2
|
|
762
|
|
- // this.ruleForm.F_Type3 = this.orderTypeData.F_Type3
|
|
763
|
|
- // this.ruleForm.F_TypeName3 = this.orderTypeData.F_TypeName3
|
|
764
|
|
- // this.ruleForm.identification = this.orderTypeData.identification
|
|
765
|
|
- // this.ruleForm.type2Arr = this.orderTypeData.type2Arr
|
|
766
|
|
- // },
|
|
767
|
699
|
// 重置工单
|
|
768
|
700
|
resetForm() {
|
|
769
|
701
|
this.ruleForm.F_Source = '' // 业务类别
|