telephone-clients 3.0.93 → 3.0.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -249,6 +249,7 @@
|
|
|
249
249
|
f_phone: '',
|
|
250
250
|
f_user_name: '',
|
|
251
251
|
f_address: '',
|
|
252
|
+
f_json: '',
|
|
252
253
|
f_repair_date: Util.getNowDate(),
|
|
253
254
|
f_card_id: '',
|
|
254
255
|
// f_department: '', 站点选择
|
|
@@ -524,6 +525,7 @@
|
|
|
524
525
|
failure: '',
|
|
525
526
|
f_userinfo_id: '',
|
|
526
527
|
f_address: '',
|
|
528
|
+
f_json: '',
|
|
527
529
|
f_repair_date: Util.getNowDate(),
|
|
528
530
|
f_card_id: '',
|
|
529
531
|
f_remarks: '',
|
|
@@ -590,6 +592,9 @@
|
|
|
590
592
|
if(this.operType == '报修'){
|
|
591
593
|
data.model.f_attendant = this.loginUser.name
|
|
592
594
|
}
|
|
595
|
+
if(data.model.failure){
|
|
596
|
+
data.model.f_json = this.trouble(data.model.failure)
|
|
597
|
+
}
|
|
593
598
|
// 获得数据发送地址
|
|
594
599
|
let url = ''
|
|
595
600
|
if(this.meading === '转站点'){
|
|
@@ -649,6 +654,29 @@
|
|
|
649
654
|
this.model.failure = value
|
|
650
655
|
}
|
|
651
656
|
},
|
|
657
|
+
trouble(val) {
|
|
658
|
+
let failureall = ''
|
|
659
|
+
// val=[{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""}]
|
|
660
|
+
|
|
661
|
+
let failure = JSON.parse(val)
|
|
662
|
+
for (let i = 0; i < failure.length; i++) {
|
|
663
|
+
if (failure[i].failurecase.length > 0) {
|
|
664
|
+
failureall += failure[i].f_failure_type + ":"
|
|
665
|
+
for (let j = 0; j < failure[i].failurecase.length; j++) {
|
|
666
|
+
failureall += failure[i].failurecase[j]
|
|
667
|
+
if (j + 1 != failure[i].failurecase.length) {
|
|
668
|
+
failureall += ","
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
} else {
|
|
672
|
+
failureall += failure[i].f_failure_type
|
|
673
|
+
}
|
|
674
|
+
if (i + 1 != failure.length) {
|
|
675
|
+
failureall += ';'
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
return failureall
|
|
679
|
+
},
|
|
652
680
|
},
|
|
653
681
|
watch: {
|
|
654
682
|
// 转接类型
|
|
@@ -25,6 +25,12 @@
|
|
|
25
25
|
condition="tswo.f_user_name like '%{}%'"
|
|
26
26
|
:size="model.f_user_name ? model.f_user_name.length : 6">
|
|
27
27
|
</div>
|
|
28
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
29
|
+
<label class="font_normal_body" style="width: 40%">客户编号</label>
|
|
30
|
+
<input type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
|
|
31
|
+
condition="tswo.f_userinfo_code like '%{}%'"
|
|
32
|
+
:size="model.f_userinfo_code ? model.f_userinfo_code.length : 6">
|
|
33
|
+
</div>
|
|
28
34
|
<div class="form-group col-sm-6 button-range" style="margin-right: 10px">
|
|
29
35
|
<button class="button_search button_spacing" style="margin-right: 9px"
|
|
30
36
|
@click="search(),$dispatch('search')">查询
|
|
@@ -47,12 +53,6 @@
|
|
|
47
53
|
</div>
|
|
48
54
|
</div>
|
|
49
55
|
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
50
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
51
|
-
<label class="font_normal_body" style="width: 40%">客户编号</label>
|
|
52
|
-
<input type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
|
|
53
|
-
condition="tswo.f_userinfo_code like '%{}%'"
|
|
54
|
-
:size="model.f_userinfo_code ? model.f_userinfo_code.length : 6">
|
|
55
|
-
</div>
|
|
56
56
|
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
57
57
|
<label class="font_normal_body" style="width: 40%">派单时间</label>
|
|
58
58
|
<datepicker placeholder="起始派单时间"
|
|
@@ -83,6 +83,14 @@
|
|
|
83
83
|
condition="tswo.f_contact_phone like '%{}%'"
|
|
84
84
|
:size="model.f_contact_phone ? model.f_contact_phone.length : 6">
|
|
85
85
|
</div>
|
|
86
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
87
|
+
<label class="font_normal_body" style="width: 40%">工单来源</label>
|
|
88
|
+
<v-select :value.sync="model.f_source" v-model='model.f_source'
|
|
89
|
+
:value-single="true"
|
|
90
|
+
:options='$parent.$parent.sources' placeholder='工单来源'
|
|
91
|
+
close-on-select
|
|
92
|
+
condition="tswo.f_source = '{}'"></v-select>
|
|
93
|
+
</div>
|
|
86
94
|
</div>
|
|
87
95
|
|
|
88
96
|
|
|
@@ -141,14 +149,6 @@
|
|
|
141
149
|
<!-- condition="tswo.f_order_man like '%{}%'"-->
|
|
142
150
|
<!-- :size="model.f_order_man ? model.f_order_man.length : 6">-->
|
|
143
151
|
<!-- </div>-->
|
|
144
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
145
|
-
<label class="font_normal_body" style="width: 40%">工单来源</label>
|
|
146
|
-
<v-select :value.sync="model.f_source" v-model='model.f_source'
|
|
147
|
-
:value-single="true"
|
|
148
|
-
:options='$parent.$parent.sources' placeholder='工单来源'
|
|
149
|
-
close-on-select
|
|
150
|
-
condition="tswo.f_source = '{}'"></v-select>
|
|
151
|
-
</div>
|
|
152
152
|
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
153
153
|
<label class="font_normal_body" style="width: 40%">工单状态</label>
|
|
154
154
|
<v-select :value.sync="model.defname" v-model='model.defname'
|
|
@@ -165,6 +165,14 @@
|
|
|
165
165
|
close-on-select>
|
|
166
166
|
</v-select>
|
|
167
167
|
</div>
|
|
168
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
169
|
+
<label class="font_normal_body" style="width: 40%" >故障类型</label>
|
|
170
|
+
<v-select :value.sync="model.failure" :value-single="true" v-model="model.failure"
|
|
171
|
+
:options='$parent.$parent.failures' placeholder='故障类型'
|
|
172
|
+
condition="failure like '%{}%'"
|
|
173
|
+
close-on-select>
|
|
174
|
+
</v-select>
|
|
175
|
+
</div>
|
|
168
176
|
|
|
169
177
|
</div>
|
|
170
178
|
|
|
@@ -412,7 +420,7 @@ export default {
|
|
|
412
420
|
thead: '',
|
|
413
421
|
tfoot: '',
|
|
414
422
|
zhihuans: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '异常', value: '异常'}],
|
|
415
|
-
headData: ['工单类型', '报修类型', '工单编号', '用户姓名', '用户地址', '用户电话', '报修电话', '报修时间', '报修原因', '维修人'],
|
|
423
|
+
headData: ['工单类型', '报修类型', '工单编号', '用户姓名', '用户地址', '用户电话', '报修电话', '报修时间', '报修原因', '维修人','故障类型'],
|
|
416
424
|
bodyData: ['f_workorder_type', 'f_repairtype', 'f_service_id', 'f_user_name', 'f_address', 'f_phone', 'f_contact_phone', 'f_created_date', 'f_remarks', 'f_order_man'],
|
|
417
425
|
searchData: {
|
|
418
426
|
condition: '1=1'
|
|
@@ -425,6 +433,7 @@ export default {
|
|
|
425
433
|
'f_address': '用户地址',
|
|
426
434
|
'f_contact_phone': '联系电话',
|
|
427
435
|
'f_source': '工单来源',
|
|
436
|
+
'f_json': '故障明细',
|
|
428
437
|
'f_single_man': '派单人',
|
|
429
438
|
'f_attendant': '受理人',
|
|
430
439
|
'f_order_man': '接单人',
|
|
@@ -658,6 +667,9 @@ export default {
|
|
|
658
667
|
|
|
659
668
|
},
|
|
660
669
|
computed: {
|
|
670
|
+
failures(){
|
|
671
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('呼叫故障类型')]
|
|
672
|
+
},
|
|
661
673
|
defnames () {
|
|
662
674
|
return [{label: '全部', value: ''}, ...this.$appdata.getParam('呼叫工单状态')]
|
|
663
675
|
},
|