liuyifan 4 yıl önce
ebeveyn
işleme
fa1145cd6f

+ 1 - 1
WebUI/CallCenterWeb.UI/Appeal/AddAppeal.html

@@ -642,7 +642,7 @@
642 642
             });
643 643
         }
644 644
 
645
-        $("#source").click(function () {
645
+        $("#source").change(function () {
646 646
             if ($("#source").val() === "4") {
647 647
                 $(".leaderCharge-wrapper").show()
648 648
                 $(".phonetype-wrapper").hide()

+ 54 - 10
WebUI/CallCenterWeb.UI/CommonHtml/AddAppealDCL.html

@@ -173,6 +173,14 @@
173 173
                             </select>
174 174
                         </td>
175 175
                     </tr>
176
+                    <tr class="phonetype-wrapper" style="display: none">
177
+                        <th class="">电话类别:</th>
178
+                        <td>
179
+                            <select class="form-control" id="phonetype">
180
+                                <option value="">请选择</option>
181
+                            </select>
182
+                        </td>
183
+                    </tr>
176 184
                     <tr class="leaderCharge-wrapper" style="display: none;">
177 185
                         <th class="">分管领导:</th>
178 186
                         <td>
@@ -276,6 +284,8 @@
276 284
             ZT($("#keys"));
277 285
             jbSelect($("#jbSelect"));
278 286
             getReactionCategory();
287
+            // 电话类别
288
+            getPhoneType($("#phonetype"));
279 289
             laydate.skin("blue");
280 290
             laydate({
281 291
                 elem: "#limittimes",
@@ -444,6 +454,9 @@
444 454
                             if (Data[0].F_InfoSource + "" === "4") {
445 455
                                 $(".leaderCharge-wrapper").show()
446 456
                                 $("#leaderCharge").val(Data[0].F_SplitUser)
457
+                            } else if (Data[0].F_InfoSource + "" === "1") {
458
+                                $(".phonetype-wrapper").show()
459
+                                $("#phonetype").val(Data[0].F_PhoneType)                                
447 460
                             }
448 461
                             //事件地址
449 462
                             $("#sourcearea option:selected").val(
@@ -546,7 +559,7 @@
546 559
 
547 560
         ///修改工单
548 561
         function Add() {
549
-            var jbSelect = $("#jbSelect").val().join(",");
562
+            var jbSelect = $("#jbSelect").val() == null ? "" : $("#jbSelect").val().join(",");
550 563
             var startTime = $("#startTime").val();
551 564
             var limittimes = $("#limittimes").val();
552 565
             var limittimesCB = $("#limittimesCB").val();
@@ -607,6 +620,7 @@
607 620
                     isprotect: $(' input[name="mj"]:checked ').val(), //=(0普通1保密)
608 621
                     level: $("#level").val(), //=(1普通2紧急)
609 622
                     visittype: $("#visittype").val(), // 回访方式
623
+                    phonetype: $("#source").val() === "1" ? $("#phonetype").val() : "", // 电话类别
610 624
                     issubmit: submit, //=(0保存1保存并提交)
611 625
                     token: $.cookie("token"),
612 626
                 },
@@ -810,14 +824,14 @@
810 824
                     if (data.state.toLowerCase() == "success") {
811 825
                         var content = data.data;
812 826
                         $(content).each(function (i, n) {
813
-                            if (n.F_AreaName != "安阳市") {
814
-                                $(
815
-                                    "<option value='" +
816
-                                    n.F_AreaId +
817
-                                    "'>" +
818
-                                    n.F_AreaName +
819
-                                    "</option>"
820
-                                ).appendTo(obj);
827
+                            if (n.F_AreaName !== "市") {
828
+                                // if (n.F_AreaName === "文峰区") {
829
+                                //     $("<option value='" + n.F_AreaId + "' selected='selected'>" + n
830
+                                //         .F_AreaName + "</option>").appendTo(obj);
831
+                                // } else {
832
+                                    $("<option value='" + n.F_AreaId + "'>" + n.F_AreaName +
833
+                                        "</option>").appendTo(obj);
834
+                                // }
821 835
                             }
822 836
                         });
823 837
                     }
@@ -856,11 +870,16 @@
856 870
             getTownshipVillage($("#village"), $("#township").val())
857 871
         })
858 872
 
859
-        $("#source").click(function () {
873
+        $("#source").change(function () {
860 874
             if ($("#source").val() === "4") {
861 875
                 $(".leaderCharge-wrapper").show()
876
+                $(".phonetype-wrapper").hide()
877
+            } else if ($("#source").val() === "1") {
878
+                $(".leaderCharge-wrapper").hide()
879
+                $(".phonetype-wrapper").show()
862 880
             } else {
863 881
                 $(".leaderCharge-wrapper").hide()
882
+                $(".phonetype-wrapper").hide()
864 883
             }
865 884
         })
866 885
         //上传文件
@@ -992,6 +1011,31 @@
992 1011
             })
993 1012
         }
994 1013
 
1014
+        //电话类别
1015
+        function getPhoneType(obj) {
1016
+            obj.empty();
1017
+
1018
+            $.ajax({
1019
+                type: "get",
1020
+                url: huayi.config.callcenter_url + "Dictionary/GetDicValueListById",
1021
+                dataType: "json",
1022
+                async: true,
1023
+                data: {
1024
+                    "token": $.cookie("token"),
1025
+                    id: 2498,
1026
+                },
1027
+                success: function (data) {
1028
+                    if (data.state.toLowerCase() == "success") {
1029
+                        var content = data.data;
1030
+                        $(content).each(function (i, n) {
1031
+                            $("<option value='" + n.F_Value + "'>" + n.F_Remark + "</option>")
1032
+                                .appendTo(obj);
1033
+                        })
1034
+                    }
1035
+                }
1036
+            });
1037
+        }
1038
+
995 1039
         function getReactionCategory(pid = 38) {
996 1040
             $.get(
997 1041
                 huayi.config.callcenter_url + "Dictionary/GetZTreeNew", {

+ 2 - 3
WebUI/CallCenterWeb.UI/ReportForm/mergerHotlineDataStatistics.html

@@ -129,11 +129,10 @@
129 129
                             data[0].MergerHot.forEach(function (e, i) {
130 130
                                 titleHeader.push(e.Source);
131 131
                             });
132
-                            console.log("titleHeader", titleHeader)
133 132
                             $('.table').html('');
134 133
                             tableHtml +=
135 134
                                 '<tr>' +
136
-                                '<td rowspan="1" colspan="54" style="font-size: 22px; font-weight: 700"> 归并热线每日数据统计</td>' +
135
+                                '<td rowspan="1" colspan="'+ (data[0].MergerHot.length * 5) +'" style="font-size: 22px; font-weight: 700"> 归并热线每日数据统计</td>' +
137 136
                                 '</tr>' +
138 137
                                 '<tr>' +
139 138
                                 '<td rowspan="1" colspan="1" style="width: 90px">来源</td>'
@@ -189,7 +188,7 @@
189 188
                             tableHtml += '</tr>'
190 189
                             data.forEach(function (e, i) {
191 190
                                 tableHtml += '<tr>' +
192
-                                    '<td>' + e.Data + '</td>'
191
+                                    '<td style="white-space: nowrap;">' + e.Data + '</td>'
193 192
                                 e.MergerHot.forEach(function (m, n) {
194 193
                                     if (String(m.Source) === "12345") {
195 194
                                         tableHtml += '<td>' + m.Call + '</td>' +

+ 1 - 1
WebUI/CallCenterWeb.UI/YeWu/businessBrief.html

@@ -709,7 +709,7 @@
709 709
                     var hotlineResult = content.SimpleReport2
710 710
                     var hotlineRow = (hotlineResult.length / 4);
711 711
                     for (var k=0; k<hotlineRow; k ++) {
712
-                        var hotlineHtml = "<tr class='hotlineAcceptance'></tr>"
712
+                        var hotlineHtml = "<tr class='hotlineAcceptance'>"
713 713
                         for (var l=0; l<4; l++) {
714 714
                             var hotlineNum = k * 4 + l;
715 715
                             if (hotlineNum < hotlineResult.length) {

+ 119 - 49
anyangWebAPP/pages/editWorkOrder/editWorkOrder.vue

@@ -70,20 +70,12 @@
70 70
             </view>
71 71
           </view>
72 72
         </view>
73
-        <!-- <view class="uni-form-item uni-column">
74
-          <view class="uni-title uni-common-pl">反映类别:</view>
75
-          <uni-combox :candidates="candidates" v-model="city" labelWidth="10000"></uni-combox>
76
-
77
-          <view class="uni-list">
78
-            <view class="uni-list-cell">
79
-              <view class="uni-list-cell-db">
80
-                <picker @change="bindPickerChange" :value="formData.index" :range="array">
81
-                  <view class="uni-input">{{ array[index] }}</view>
82
-                </picker>
83
-              </view>
84
-            </view>
73
+        <view class="uni-form-item uni-column">
74
+          <view class="title">反映类别:</view>
75
+          <view>
76
+            <bjx-inputs the-style="font-size: 14px; overflow: auto" :value="formData.responseCategory" item-key="names" placeholder="请输入内容" @list="getReflectCategoryData" @select="selectReflectCategory" overflow="hide"> </bjx-inputs>
85 77
           </view>
86
-        </view> -->
78
+        </view>
87 79
         <view class="uni-form-item uni-column">
88 80
           <view class="title">号码密级:</view>
89 81
           <radio-group name="numberSecurityLevel" :value="formData.numberSecurityLevel">
@@ -103,54 +95,30 @@
103 95
             </view>
104 96
           </view>
105 97
         </view>
106
-        <view class="uni-form-item uni-column">
107
-          <view class="uni-title uni-common-pl">分管领导:</view>
108
-          <view class="uni-list">
109
-            <view class="uni-list-cell">
110
-              <view class="uni-list-cell-db">
111
-                <picker @change="bindPickerChangeLeaderCharge" :value="formData.leaderCharge" :range="leaderChargeListData" :range-key="'text'">
112
-                  <view class="uni-input">{{ leaderChargeListData[pickerIndex.indexLeaderCharge].text }}</view>
113
-                </picker>
114
-              </view>
115
-            </view>
116
-          </view>
117
-        </view>
118
-        <!-- <view class="uni-form-item uni-column">
119
-          <view class="uni-title uni-common-pl">承办单位:</view>
98
+        <view class="uni-form-item uni-column" v-show="isDisplay.phoneType">
99
+          <view class="uni-title uni-common-pl">电话类别:</view>
120 100
           <view class="uni-list">
121 101
             <view class="uni-list-cell">
122 102
               <view class="uni-list-cell-db">
123
-                <picker @change="bindPickerChange" :value="formData.index" :range="array">
124
-                  <view class="uni-input">{{ array[index] }}</view>
103
+                <picker @change="bindPickerChangePhoneType" :value="formData.phoneType" :range="phoneTypeListData" :range-key="'F_Remark'">
104
+                  <view class="uni-input">{{ phoneTypeListData[pickerIndex.indexPhoneType].F_Remark }}</view>
125 105
                 </picker>
126 106
               </view>
127 107
             </view>
128 108
           </view>
129 109
         </view>
130
-        <view class="uni-form-item uni-column">
131
-          <view class="uni-title uni-common-pl">办理时限:</view>
110
+        <view class="uni-form-item uni-column" v-show="isDisplay.leaderCharge">
111
+          <view class="uni-title uni-common-pl">分管领导:</view>
132 112
           <view class="uni-list">
133 113
             <view class="uni-list-cell">
134 114
               <view class="uni-list-cell-db">
135
-                <picker @change="bindPickerChange" :value="formData.index" :range="array">
136
-                  <view class="uni-input">{{ array[index] }}</view>
115
+                <picker @change="bindPickerChangeLeaderCharge" :value="formData.leaderCharge" :range="leaderChargeListData" :range-key="'text'">
116
+                  <view class="uni-input">{{ leaderChargeListData[pickerIndex.indexLeaderCharge].text }}</view>
137 117
                 </picker>
138 118
               </view>
139 119
             </view>
140 120
           </view>
141 121
         </view>
142
-        <view class="uni-form-item uni-column">
143
-          <view class="uni-title uni-common-pl">紧急时限:</view>
144
-          <view class="uni-list">
145
-            <view class="uni-list-cell">
146
-              <view class="uni-list-cell-db">
147
-                <picker @change="bindPickerChange" :value="formData.index" :range="array">
148
-                  <view class="uni-input">{{ array[index] }}</view>
149
-                </picker>
150
-              </view>
151
-            </view>
152
-          </view>
153
-        </view> -->
154 122
         <view class="uni-btn-v">
155 123
           <button form-type="submit" class="mini-btn" type="default" size="mini">保存</button>
156 124
         </view>
@@ -160,13 +128,18 @@
160 128
 </template>
161 129
 
162 130
 <script>
131
+import BjxInputs from "@/components/bjx-inputs/bjx-inputs.vue"
132
+
163 133
 export default {
134
+  components: {
135
+    BjxInputs,
136
+  },
164 137
   data() {
165 138
     return {
166 139
       wid: "", // 工单id
167 140
       title: "picker",
168
-      array: ["中国", "美国", "巴西", "日本"],
169 141
       index: 0,
142
+      reflectCategoryListData: [], // 反映类别列表数据
170 143
       // date: currentDate,
171 144
       formData: {
172 145
         workOrderTitle: "", // 标题
@@ -180,11 +153,14 @@ export default {
180 153
         callerNumber: "", // 来电号码
181 154
         workOrderType: "", // 工单类型
182 155
         responseCategory: "", // 反映类别
156
+        responseCategoryId: "", // 反映类别id
183 157
         numberSecurityLevel: "", // 来电号码密级
184 158
         emergencyLevel: "", // 紧急程度
185 159
         organizer: "", // 承办单位
186 160
         processingTimeLimit: "", // 办理时限
187 161
         emergencyTimeLimit: "", // 积极时限
162
+        phoneType: "", // 电话类别
163
+        phoneTypeId: "", // 电话类别
188 164
         leaderCharge: "", // 分管领导
189 165
         threeWayCall: "", // 三方通话
190 166
       },
@@ -195,11 +171,14 @@ export default {
195 171
       },
196 172
       isDisplay: {
197 173
         result: false, // 办理内容
174
+        phoneType: false, // 电话类别
175
+        leaderCharge: false, // 分管领导
198 176
       },
199 177
       pickerIndex: {
200 178
         indexSource: 0, // 来源index
201 179
         indexType: 0, // 类型index
202 180
         indexEmergencyLevel: 0, // 紧急程度index
181
+        indexPhoneType: 0, // 电话类别index
203 182
         indexLeaderCharge: 0, // 分管领导index
204 183
       },
205 184
       // 来源数据
@@ -225,6 +204,12 @@ export default {
225 204
           text: "紧急",
226 205
         },
227 206
       ],
207
+      // 电话类别
208
+      phoneTypeListData: [
209
+        {
210
+          F_Value: "请选择",
211
+        }
212
+      ],
228 213
       // 分管领导
229 214
       leaderChargeListData: [
230 215
         {
@@ -245,6 +230,10 @@ export default {
245 230
     this.getDictionaryData(1)
246 231
     // 获取来源数据 dictionaryId=2
247 232
     this.getDictionaryData(2)
233
+    // 获取电话类别 dictionaryId=2498
234
+    this.getDictionaryData(2498)
235
+    // 获取反映类别
236
+    this.getReflectCategoryList()
248 237
     // 获取详情 type=0
249 238
     this.getDetail(0)
250 239
   },
@@ -280,11 +269,12 @@ export default {
280 269
         sourceaddress: "",
281 270
         source: this.formData.source, // 来源
282 271
         splituser: this.formData.leaderCharge, // 分管领导
272
+        phonetype: this.formData.phoneType, // 电话类别
283 273
         isresult: this.formData.processingMethod, //=(0转办1直办)
284 274
         // business: this.formData.threeWayCall, // 三方通话
285 275
         business: "0",
286 276
         result: this.formData.result, // 办理内容
287
-        keys: this.formData.responseCategory, // 反映类别
277
+        keys: this.formData.responseCategoryId, // 反映类别
288 278
         type: this.formData.workOrderType, // 类型
289 279
         isprotect: this.formData.numberSecurityLevel, //=(0普通1保密)
290 280
         level: this.formData.emergencyLevel, //=(1普通2紧急)
@@ -293,9 +283,10 @@ export default {
293 283
         token: uni.getStorageSync("token"),
294 284
       }
295 285
       this.$http
296
-        .get("/WorkOrder/EditWorkOrder", params)
286
+        .post("/WorkOrder/EditWorkOrder", params)
297 287
         .then((response) => {
298 288
           if (response.state.toLowerCase() === "success") {
289
+            
299 290
           }
300 291
         })
301 292
         .catch((e) => {
@@ -325,7 +316,7 @@ export default {
325 316
           // sourceaddress: $("#sourceaddress").val(), //=事发详细地址
326 317
           // this.formData.threeWayCall = data.F_Business, // 三方通话
327 318
           this.formData.result = data.F_Result; // 办理内容
328
-          this.formData.responseCategory = data.F_Key; // 反映类别
319
+          this.formData.responseCategoryId = data.F_Key; // 反映类别
329 320
 
330 321
           // 处理方式(0转办1直办)
331 322
           if (String(data.F_IsResult) === "0") {
@@ -373,6 +364,14 @@ export default {
373 364
           });
374 365
 
375 366
           // 分管领导
367
+          this.phoneTypeListData.forEach((e,i) => {
368
+            if (String(e.text) === String(data.F_PhoneType)) {
369
+              this.pickerIndex.indexPhoneType = i;
370
+              this.formData.phoneType = data.F_PhoneType;
371
+            }
372
+          });
373
+
374
+          // 分管领导
376 375
           this.leaderChargeListData.forEach((e,i) => {
377 376
             if (String(e.text) === String(data.F_SplitUser)) {
378 377
               this.pickerIndex.indexLeaderCharge = i;
@@ -404,6 +403,9 @@ export default {
404 403
             } else if (String(dictionaryId) === "2") {
405 404
               // 类型数据
406 405
               this.typeListData = data;
406
+            } else if (String(dictionaryId) === "2498") {
407
+              // 电话类别
408
+              this.phoneTypeListData = data;
407 409
             }
408 410
           }
409 411
         })
@@ -411,6 +413,46 @@ export default {
411 413
           console.log(e)
412 414
         })
413 415
     },
416
+
417
+    getReflectCategoryList() {
418
+      let params = {
419
+        token: uni.getStorageSync("token"),
420
+      }
421
+      this.$http
422
+        .get("Dictionary/GetKeyListNew", params)
423
+        .then((response) => {
424
+          if (response.state.toLowerCase() === "success") {
425
+            let data = response.data
426
+            this.reflectCategoryListData = data
427
+          }
428
+        })
429
+        .catch((e) => {
430
+          console.log(e)
431
+        })
432
+    },
433
+
434
+    // 远程加载数据 返回一个对象,{value: 输入框值, callback: 回调函数}
435
+    getReflectCategoryData(e) {
436
+      console.log("e", e)
437
+      this.formData.responseCategory = e.value
438
+      if (!e.value) {
439
+        e.callback(this.reflectCategoryListData)
440
+      } else {
441
+        let data = []
442
+        this.reflectCategoryListData.forEach((item) => {
443
+          if (item.names.indexOf(e.value) > -1) {
444
+            data.push(item)
445
+          }
446
+        })
447
+        e.callback(data)
448
+      }
449
+    },
450
+    
451
+    selectReflectCategory(value) {
452
+      this.formData.responseCategory = value.name
453
+      this.formData.responseCategoryId = value.id
454
+    },
455
+
414 456
     bindPickerChange: function (e) {
415 457
       console.log("picker发送选择改变,携带值为", e.target.value)
416 458
       this.index = e.target.value
@@ -419,6 +461,16 @@ export default {
419 461
     bindPickerChangeSource: function (e) {
420 462
       this.pickerIndex.indexSource = e.target.value;
421 463
       this.formData.source = this.sourceListData[e.target.value].F_ValueId;
464
+      if (String(this.formData.source) === "4") {
465
+        this.isDisplay.leaderCharge = true
466
+        this.isDisplay.phoneType = false
467
+      } else if (String(this.formData.source) === "1") {
468
+        this.isDisplay.phoneType = true
469
+        this.isDisplay.leaderCharge = false
470
+      } else {
471
+        this.isDisplay.phoneType = false
472
+        this.isDisplay.leaderCharge = false
473
+      }
422 474
     },
423 475
     bindPickerChangeType: function (e) {
424 476
       this.pickerIndex.indexType = e.target.value;
@@ -428,6 +480,10 @@ export default {
428 480
       this.pickerIndex.indexEmergencyLevel = e.target.value;
429 481
       this.formData.emergencyLevel = this.emergencyLevelListData[e.target.value].value
430 482
     },
483
+    bindPickerChangePhoneType: function (e) {
484
+      this.pickerIndex.indexPhoneType = e.target.value;
485
+      this.formData.phoneType = this.phoneTypeListData[e.target.value].F_ValueId
486
+    },
431 487
     bindPickerChangeLeaderCharge: function (e) {
432 488
       this.pickerIndex.indexLeaderCharge = e.target.value;
433 489
       this.formData.leaderCharge = this.leaderChargeListData[e.target.value].text
@@ -465,6 +521,20 @@ export default {
465 521
       radio-group uni-text {
466 522
         font-size: 14px;
467 523
       }
524
+      .uni-input-input {
525
+        font-size: 14px !important;
526
+      }
527
+      .bjx-inputs {
528
+        // .uni-input-wrapper {
529
+        //   font-size: 14px !important;
530
+        // }
531
+        // .uni-input {
532
+        //   font-size: 14px !important;
533
+        // }
534
+        .uni-input-placeholder {
535
+          font-size: 14px;
536
+        }
537
+      } 
468 538
     }
469 539
     .uni-btn-v {
470 540
       margin: 15px 0 0 0;

+ 2 - 0
anyangWebAPP/pages/transferWorkOrder/transferWorkOrder.vue

@@ -240,10 +240,12 @@ export default {
240 240
         e.callback(data)
241 241
       }
242 242
     },
243
+    
243 244
     selectDept(value) {
244 245
       this.formData.deptName = value.F_DeptName
245 246
       this.formData.deptId = value.F_DeptId
246 247
     },
248
+
247 249
     //办理时限change
248 250
     bindPickerChangeProcessingTimeLimit: function (e) {
249 251
       this.pickerIndex.indexProcessingTimeLimit = e.target.value

+ 1 - 1
anyangWebAPP/pages/workOrderDetail/workOrderDetail.vue

@@ -37,7 +37,7 @@
37 37
       <view>
38 38
         <text class="operationButtonTitle">操作按钮</text>
39 39
         <view class="buttons">
40
-          <!-- <button class="mini-btn" type="default" size="mini" @click="editBtn">编辑</button> -->
40
+          <button class="mini-btn" type="default" size="mini" @click="editBtn">编辑</button>
41 41
           <button class="mini-btn" type="default" size="mini" @click="transferBtn">转派</button>
42 42
         </view>
43 43
       </view>