ソースを参照

fix:业务咨询类工单添加报错以及特殊逻辑处理调整

scholar-wei 3 年 前
コミット
0326d3f04f

+ 0 - 32
CallCenterWeb.UI/RMYY/src/views/callScreen/components/AddOrEditOrder.vue

@@ -30,38 +30,6 @@
30 30
           :rtype="rtype"
31 31
           :order-type-data="orderTypeData"
32 32
         />
33
-        <!-- 综合调度-设备租赁 -->
34
-        <!-- <equi-add-or-edit
35
-          v-if="orderTypeData.F_Type2 === 2001"
36
-          :order-type-data="orderTypeData"
37
-        /> -->
38
-        <!-- 综合调度-物资转移 -->
39
-        <!-- <add-or-edit-material
40
-          v-if="orderTypeData.F_Type2 === 2002"
41
-          :order-type-data="orderTypeData"
42
-        /> -->
43
-        <!-- 综合调度-病床转移 -->
44
-        <!-- <add-hospital-bed
45
-          v-if="orderTypeData.F_Type2 === 2003"
46
-          :order-type-data="orderTypeData"
47
-        /> -->
48
-        <!-- 综合调度-红处方/其他/急标本/血液制品配送 -->
49
-        <!-- <add-or-edit-distribute
50
-          v-if="
51
-            orderTypeData.F_Type2 === 2004 ||
52
-              orderTypeData.F_Type2 === 2005 ||
53
-              orderTypeData.F_Type2 === 2006 ||
54
-              orderTypeData.F_Type2 === 2007
55
-          "
56
-          :order-type-data="orderTypeData"
57
-        /> -->
58
-        <!-- 综合调度-陪查服务/血站取血 -->
59
-        <!-- <escort-add-or-edit
60
-          v-if="
61
-            orderTypeData.F_Type2 === 2008 || orderTypeData.F_Type2 === 2009
62
-          "
63
-          :order-type-data="orderTypeData"
64
-        /> -->
65 33
       </el-col>
66 34
       <!--故障报修工单 -->
67 35
       <el-col v-if="orderTypeData.F_Type1 === 3000" :span="22">

+ 24 - 92
CallCenterWeb.UI/RMYY/src/views/orderManage/components/addOrEditInfOrder.vue

@@ -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 = '' // 业务类别

+ 4 - 4
CallCenterWeb.UI/RMYY/src/views/orderManage/components/askdetail.vue

@@ -32,17 +32,17 @@
32 32
               <tr>
33 33
                 <th>联系电话:</th>
34 34
                 <td>{{ orderDetailData.F_Phon }}</td>
35
-                <th>身份证号:</th>
36
-                <td>{{ orderDetailData.F_IdCard }}</td>
35
+                <!-- <th>身份证号:</th>
36
+                <td>{{ orderDetailData.F_IdCard }}</td> -->
37 37
                 <th>家庭住址:</th>
38
-                <td>{{ orderDetailData.F_CusAddress }}</td>
38
+                <td colspan="3">{{ orderDetailData.F_CusAddress }}</td>
39 39
               </tr>
40 40
               <tr>
41 41
                 <th>与患者关系:</th>
42 42
                 <td>{{ orderDetailData.F_Relationship }}</td>
43 43
                 <th>患者姓名:</th>
44 44
                 <td>{{ orderDetailData.F_FullName }}</td>
45
-                <th>患者身份证号:</th>
45
+                <th>身份证号:</th>
46 46
                 <td>{{ orderDetailData.F_IDNumber }}</td>
47 47
               </tr>
48 48
 

+ 3 - 2
CallCenterWeb.UI/RMYY/src/views/orderManage/orderList/detail.vue

@@ -13,7 +13,7 @@
13 13
             <el-col :md="6" class="order_detail_item"> 姓名:{{ orderDetailData.F_Customer }} </el-col>
14 14
             <el-col :md="6" class="order_detail_item"> 性别:{{ orderDetailData.F_Sex }} </el-col>
15 15
             <el-col :md="6" class="order_detail_item"> 电话:{{ orderDetailData.F_Phon }} </el-col>
16
-            <el-col :md="6" class="order_detail_item"> 身份证号:{{ orderDetailData.F_IdCard }} </el-col>
16
+            <!-- <el-col :md="6" class="order_detail_item"> 身份证号:{{ orderDetailData.F_IDNumber }} </el-col> -->
17 17
             <el-col :md="6" class="order_detail_item"> 家庭住址:{{ orderDetailData.F_CusAddress }} </el-col>
18 18
             <!-- 家庭预约上门字段 -->
19 19
             <el-col v-show="isFamily" :md="6" class="order_detail_item"> 服务项目:{{ orderDetailData.F_ServiceItems }} </el-col>
@@ -173,7 +173,8 @@ export default {
173 173
         }
174 174
         this.orderDetailData.F_Phon = res.F_Phon // 电话
175 175
         this.orderDetailData.F_CusAddress = res.F_CusAddress // 家庭住址
176
-        this.orderDetailData.F_IdCard = res.F_IdCard // 身份证号
176
+        debugger
177
+        this.orderDetailData.F_IDNumber = res.F_IDNumber// 身份证号
177 178
         this.orderDetailData.F_ServiceItems = res.F_ServiceItems // 服务项目
178 179
         this.orderDetailData.F_Address = res.F_Address // 地区
179 180
         this.orderDetailData.F_FirstCheckHospital = res.F_FirstCheckHospital // 首次检查医院