telephone-clients 3.0.104-3 → 3.0.104-31
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 +1 -1
- package/src/components/guoxin/Console.vue +9 -0
- package/src/components/pc/RepairsWork.vue +11 -1
- package/src/components/pc/WorkList.vue +2 -1
- package/src/components/sendsingle/onlinequeryuser.vue +1 -1
- package/src/components/temp/HandplanInfo.vue +12 -1
- package/src/components/temp/InstructInfo.vue +1 -1
- package/src/filiale/hanzhong/telephone.js +1 -1
- package/src/filiale/jiaocheng/android/createQRcode.vue +204 -0
- package/src/filiale/jiaocheng/android/onlineBuyGas.vue +637 -0
- package/src/filiale/jiaocheng/telephone.js +8 -0
- package/src/filiale/jiaocheng/telephoneAndroid.js +15 -0
- package/src/filiale/rizhao/telephone.js +1 -1
- package/src/filiale/shanxian/pc/TelFindUser.vue +310 -0
- package/src/filiale/shanxian/pc/WorkList.vue +2 -2
- package/src/filiale/shanxian/telephone.js +14 -13
- package/src/filiale/shexian/pc/TelAgentVoiceReport.vue +9 -9
- package/src/filiale/shexian/pc/WorkList.vue +4 -1
- package/src/filiale/shexian/pc/WorkListAllNew.vue +735 -722
- package/src/filiale/tongchuan/android/RepairDetails.vue +623 -0
- package/src/filiale/tongchuan/telephoneAndroid.js +1 -0
- package/src/filiale/wenxi/pc/RepairsWork.vue +2 -2
- package/src/filiale/wenxi/pc/TelAgentVoiceReport.vue +290 -0
- package/src/filiale/wenxi/pc/WorkListAll.vue +698 -698
- package/src/filiale/wenxi/telephone.js +18 -17
- package/src/filiale/wuhai/telephone.js +1 -1
- package/src/filiale/yuncheng/pc/WorkList.vue +823 -0
- package/src/filiale/yuncheng/telephone.js +2 -1
- package/src/main.js +1 -1
- package/src/telephone.js +1 -1
|
@@ -1,698 +1,698 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="stand-work-list" class="flex bg-white p-10">
|
|
3
|
-
<div class="span">
|
|
4
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
5
|
-
<criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
|
|
6
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
7
|
-
<div class="row">
|
|
8
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
9
|
-
<label class="font_normal_body" style="width: 40%">工单编号</label>
|
|
10
|
-
<input type="text" class="input_search" v-model="model.f_service_id" placeholder='工单编号'
|
|
11
|
-
condition="f_service_id like '%{}%'"
|
|
12
|
-
:size="model.f_service_id ? model.f_service_id.length : 6">
|
|
13
|
-
</div>
|
|
14
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
15
|
-
<label class="font_normal_body" style="width: 40%">工单类型</label>
|
|
16
|
-
<v-select :value.sync="model.f_workorder_type" :value-single="true" v-model="model.f_workorder_type"
|
|
17
|
-
:options='$parent.$parent.serviceorders' placeholder='工单类型'
|
|
18
|
-
condition="tswo.f_workorder_type like '%{}%'"
|
|
19
|
-
close-on-select>
|
|
20
|
-
</v-select>
|
|
21
|
-
</div>
|
|
22
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%;">
|
|
23
|
-
<label class="font_normal_body" style="width: 40%">客户姓名</label>
|
|
24
|
-
<input type="text" class="input_search" v-model="model.f_user_name" placeholder='客户姓名'
|
|
25
|
-
condition="tswo.f_user_name like '%{}%'"
|
|
26
|
-
:size="model.f_user_name ? model.f_user_name.length : 6">
|
|
27
|
-
</div>
|
|
28
|
-
|
|
29
|
-
<div class="form-group col-sm-6 button-range" style="margin-right: 10px">
|
|
30
|
-
<button class="button_search button_spacing" style="margin-right: 9px"
|
|
31
|
-
@click="search(),$dispatch('search')">查询
|
|
32
|
-
</button>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
<export-excel-tel
|
|
36
|
-
:data="$parent.$parent.searchData"
|
|
37
|
-
:field="$parent.$parent.excelHeaders"
|
|
38
|
-
progress="telGetExportProgress"
|
|
39
|
-
sqlurl="rs/logic/telephoneExport" sql-name="serviceDetails" template-name='工单详情导出'
|
|
40
|
-
:choose-col="true">
|
|
41
|
-
</export-excel-tel>
|
|
42
|
-
|
|
43
|
-
<div style="float: right" class="button_spacing"
|
|
44
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
45
|
-
@click="$parent.$parent.hidden()"></div>
|
|
46
|
-
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
<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
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
57
|
-
<label class="font_normal_body" style="width: 40%">派单时间</label>
|
|
58
|
-
<datepicker placeholder="起始派单时间"
|
|
59
|
-
:value.sync="model.f_created_date"
|
|
60
|
-
v-model="model.f_created_date"
|
|
61
|
-
:format="'yyyy-MM-dd 00:00:00'"
|
|
62
|
-
condition="f_created_date > '{}'"
|
|
63
|
-
></datepicker>
|
|
64
|
-
</div>
|
|
65
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
66
|
-
<label class="font_normal_body" style="width: 40%">派单时间</label>
|
|
67
|
-
<datepicker placeholder="终止派单时间"
|
|
68
|
-
:value.sync="model.f_created_enddate"
|
|
69
|
-
v-model="model.f_created_enddate"
|
|
70
|
-
:format="'yyyy-MM-dd 23:59:59'"
|
|
71
|
-
condition="f_created_date < '{}'"
|
|
72
|
-
></datepicker>
|
|
73
|
-
</div>
|
|
74
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
75
|
-
<label class="font_normal_body" style="width: 40%">来电电话</label>
|
|
76
|
-
<input type="text" class="input_search" v-model="model.f_phone" placeholder='来电电话'
|
|
77
|
-
condition="tswo.f_phone like '%{}%'"
|
|
78
|
-
:size="model.f_phone ? model.f_phone.length : 6">
|
|
79
|
-
</div>
|
|
80
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
81
|
-
<label class="font_normal_body" style="width: 40%">联系电话</label>
|
|
82
|
-
<input type="text" class="input_search" v-model="model.f_contact_phone" placeholder='联系电话'
|
|
83
|
-
condition="tswo.f_contact_phone like '%{}%'"
|
|
84
|
-
:size="model.f_contact_phone ? model.f_contact_phone.length : 6">
|
|
85
|
-
</div>
|
|
86
|
-
</div>
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
90
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
91
|
-
<label class="font_normal_body" style="width: 40%">地  址</label>
|
|
92
|
-
<input type="text" class="input_search" v-model="model.f_address" placeholder='地址'
|
|
93
|
-
condition="tswo.f_address like '%{}%'"
|
|
94
|
-
:size="model.f_address ? model.f_address.length : 4">
|
|
95
|
-
</div>
|
|
96
|
-
<div v-show="false" class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
97
|
-
<label class="font_normal_body" style="width: 40%">接单站点</label>
|
|
98
|
-
<input type="text" class="input_search" v-model="model.f_outlets" placeholder='接单站点'
|
|
99
|
-
condition="tswo.f_outlets like '%{}%'"
|
|
100
|
-
:size="model.f_outlets ? model.f_outlets.length : 6">
|
|
101
|
-
</div>
|
|
102
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
103
|
-
<label class="font_normal_body" style="width: 40%">完成时间</label>
|
|
104
|
-
<datepicker placeholder="维修完成时间"
|
|
105
|
-
:value.sync="model.f_date_start"
|
|
106
|
-
v-model="model.f_date_start"
|
|
107
|
-
:format="'yyyy-MM-dd 00:00:00'"
|
|
108
|
-
condition="f_date > '{}'"
|
|
109
|
-
></datepicker>
|
|
110
|
-
</div>
|
|
111
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
112
|
-
<label class="font_normal_body" style="width: 40%">完成时间</label>
|
|
113
|
-
<datepicker placeholder="维修完成时间"
|
|
114
|
-
:value.sync="model.f_date_end"
|
|
115
|
-
v-model="model.f_date_end"
|
|
116
|
-
:format="'yyyy-MM-dd 23:59:59'"
|
|
117
|
-
condition="f_date < '{}'"
|
|
118
|
-
></datepicker>
|
|
119
|
-
</div>
|
|
120
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
121
|
-
<label class="font_normal_body" style="width: 40%">故障明细</label>
|
|
122
|
-
<v-select :value.sync="model.f_failure" v-model='model.f_failure'
|
|
123
|
-
:value-single="true"
|
|
124
|
-
:options='$parent.$parent.faultdetails' placeholder='故障明细'
|
|
125
|
-
close-on-select
|
|
126
|
-
condition="tswo.failure like '%{}%'"></v-select>
|
|
127
|
-
</div>
|
|
128
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
129
|
-
<label class="font_normal_body" style="width: 40%">派 单 员</label>
|
|
130
|
-
<input type="text" class="input_search" v-model="model.f_single_man" placeholder='派单员'
|
|
131
|
-
condition="f_single_man like '%{}%'"
|
|
132
|
-
:size="model.f_single_man ? model.f_single_man.length : 6">
|
|
133
|
-
</div>
|
|
134
|
-
</div>
|
|
135
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
136
|
-
<!-- <div class="col-sm-3 form-group form-input-group" style="width: 20%">-->
|
|
137
|
-
<!-- <label class="font_normal_body" style="width: 40%">接 单 员</label>-->
|
|
138
|
-
<!-- <input type="text" class="input_search" v-model="model.f_order_man" placeholder='接单员'-->
|
|
139
|
-
<!-- condition="tswo.f_order_man like '%{}%'"-->
|
|
140
|
-
<!-- :size="model.f_order_man ? model.f_order_man.length : 6">-->
|
|
141
|
-
<!-- </div>-->
|
|
142
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
143
|
-
<label class="font_normal_body" style="width: 40%">工单来源</label>
|
|
144
|
-
<v-select :value.sync="model.f_source" v-model='model.f_source'
|
|
145
|
-
:value-single="true"
|
|
146
|
-
:options='$parent.$parent.sources' placeholder='工单来源'
|
|
147
|
-
close-on-select
|
|
148
|
-
condition="tswo.f_source = '{}'"></v-select>
|
|
149
|
-
</div>
|
|
150
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
151
|
-
<label class="font_normal_body" style="width: 40%">工单状态</label>
|
|
152
|
-
<v-select :value.sync="model.defname" v-model='model.defname'
|
|
153
|
-
:value-single="true"
|
|
154
|
-
:options='$parent.$parent.defnames' placeholder='工单状态'
|
|
155
|
-
condition="sa.defname = '{}'"
|
|
156
|
-
close-on-select></v-select>
|
|
157
|
-
</div>
|
|
158
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
159
|
-
<label class="font_normal_body" style="width: 40%">报修类型</label>
|
|
160
|
-
<v-select :value.sync="model.f_repairtype" :value-single="true" v-model="model.f_repairtype"
|
|
161
|
-
:options='$parent.$parent.repairstypes' placeholder='报修类型'
|
|
162
|
-
condition="f_repairtype like '%{}%'"
|
|
163
|
-
close-on-select>
|
|
164
|
-
</v-select>
|
|
165
|
-
</div>
|
|
166
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
167
|
-
<label class="font_normal_body" style="width: 40%">小  区</label>
|
|
168
|
-
<v-select :value.sync="model.f_residential_area" :value-single="true" v-model="model.f_residential_area"
|
|
169
|
-
:options='$parent.$parent.residential_areas' placeholder='小区'
|
|
170
|
-
condition="f_residential_area = '{}'"
|
|
171
|
-
close-on-select>
|
|
172
|
-
</v-select>
|
|
173
|
-
</div>
|
|
174
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
175
|
-
<label class="font_normal_body" style="width: 40%">用户类型</label>
|
|
176
|
-
<v-select :value.sync="model.f_user_type" :value-single="true" v-model="model.f_user_type"
|
|
177
|
-
:options='$parent.$parent.user_types' placeholder='用户类型'
|
|
178
|
-
condition="f_user_type = '{}'"
|
|
179
|
-
close-on-select>
|
|
180
|
-
</v-select>
|
|
181
|
-
</div>
|
|
182
|
-
<div class="col-sm-6 form-group form-input-group" style="width: 40%">
|
|
183
|
-
<role-selector-tel
|
|
184
|
-
role-name="维修员"
|
|
185
|
-
role-lable="维 修 员"
|
|
186
|
-
@re-res="$parent.$parent.getRes"
|
|
187
|
-
:value.sync="model.f_checker_id"
|
|
188
|
-
v-model="model.f_checker_id"
|
|
189
|
-
condition="tswo.f_order_man = '{}'">
|
|
190
|
-
</role-selector-tel>
|
|
191
|
-
</div>
|
|
192
|
-
</div>
|
|
193
|
-
</div>
|
|
194
|
-
</criteria>
|
|
195
|
-
<data-grid partial='list' v-ref:grid :model="model" class="list_area table_sy">
|
|
196
|
-
<template partial='head'>
|
|
197
|
-
<tr>
|
|
198
|
-
<th>
|
|
199
|
-
<nobr>序号</nobr>
|
|
200
|
-
</th>
|
|
201
|
-
<th>
|
|
202
|
-
<nobr>回访</nobr>
|
|
203
|
-
</th>
|
|
204
|
-
<th>
|
|
205
|
-
<nobr>用户编号</nobr>
|
|
206
|
-
</th>
|
|
207
|
-
<th>
|
|
208
|
-
<nobr>工单类型</nobr>
|
|
209
|
-
</th>
|
|
210
|
-
<!--<th><nobr>报修类型</nobr></th>-->
|
|
211
|
-
<th>
|
|
212
|
-
<nobr>工单编号</nobr>
|
|
213
|
-
</th>
|
|
214
|
-
<th>
|
|
215
|
-
<nobr>派单时间</nobr>
|
|
216
|
-
</th>
|
|
217
|
-
<th>
|
|
218
|
-
<nobr>客户信息</nobr>
|
|
219
|
-
</th>
|
|
220
|
-
<th>
|
|
221
|
-
<nobr>小区</nobr>
|
|
222
|
-
</th>
|
|
223
|
-
<th>
|
|
224
|
-
<nobr>联系电话</nobr>
|
|
225
|
-
</th>
|
|
226
|
-
<th>
|
|
227
|
-
<nobr>故障明细</nobr>
|
|
228
|
-
</th>
|
|
229
|
-
<th>
|
|
230
|
-
<nobr>派单备注</nobr>
|
|
231
|
-
</th>
|
|
232
|
-
<th>
|
|
233
|
-
<nobr>工单完成备注</nobr>
|
|
234
|
-
</th>
|
|
235
|
-
<th>
|
|
236
|
-
<nobr>工单状态</nobr>
|
|
237
|
-
</th>
|
|
238
|
-
<th>
|
|
239
|
-
<nobr>派单员</nobr>
|
|
240
|
-
</th>
|
|
241
|
-
<th>
|
|
242
|
-
<nobr>维修员</nobr>
|
|
243
|
-
</th>
|
|
244
|
-
<th>
|
|
245
|
-
<nobr>上传时间</nobr>
|
|
246
|
-
</th>
|
|
247
|
-
<th>
|
|
248
|
-
<nobr>到达时间</nobr>
|
|
249
|
-
</th>
|
|
250
|
-
<th>
|
|
251
|
-
<nobr>离开时间</nobr>
|
|
252
|
-
</th>
|
|
253
|
-
<th>
|
|
254
|
-
<nobr>工单结果</nobr>
|
|
255
|
-
</th>
|
|
256
|
-
</tr>
|
|
257
|
-
</template>
|
|
258
|
-
<template partial='body'>
|
|
259
|
-
<td style="text-align: center;">
|
|
260
|
-
<nobr>{{ $index + 1 }}</nobr>
|
|
261
|
-
</td>
|
|
262
|
-
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''">
|
|
263
|
-
<nobr v-if="row.f_phone&&row.f_again_revisit!='否'">
|
|
264
|
-
<button-link type="button" class="btn btn-link"
|
|
265
|
-
@click="$parent.$parent.$parent.playWav(row.f_phone,row)">回访
|
|
266
|
-
</button-link>
|
|
267
|
-
</nobr>
|
|
268
|
-
<nobr v-if="(!row.f_phone)||row.f_again_revisit=='否'"></nobr>
|
|
269
|
-
</td>
|
|
270
|
-
<td style="text-align: center;">
|
|
271
|
-
<nobr>{{ row.f_userinfo_code }}</nobr>
|
|
272
|
-
</td>
|
|
273
|
-
<td style="text-align: center;">
|
|
274
|
-
<nobr>{{ row.f_workorder_type }}</nobr>
|
|
275
|
-
</td>
|
|
276
|
-
<td style="text-align: center;">
|
|
277
|
-
<nobr>{{ row.f_service_id }}</nobr>
|
|
278
|
-
</td>
|
|
279
|
-
<td style="text-align: center;">
|
|
280
|
-
<nobr>{{ row.f_created_date }}</nobr>
|
|
281
|
-
</td>
|
|
282
|
-
<td style="text-align: center;">
|
|
283
|
-
<nobr>
|
|
284
|
-
{{ row.f_user_name }} {{ row.f_address }}
|
|
285
|
-
</nobr>
|
|
286
|
-
</td>
|
|
287
|
-
<td style="text-align: center;">
|
|
288
|
-
<nobr>{{ row.f_residential_area }}</nobr>
|
|
289
|
-
</td>
|
|
290
|
-
<td style="text-align: center;">
|
|
291
|
-
<nobr>{{ row.f_contact_phone }}</nobr>
|
|
292
|
-
</td>
|
|
293
|
-
<td style="text-align: center;">
|
|
294
|
-
<nobr>{{ $parent.$parent.$parent.trouble(row.failure_str) }}</nobr>
|
|
295
|
-
</td>
|
|
296
|
-
<td style="text-align: center;">
|
|
297
|
-
<nobr>{{ row.f_remarks }}</nobr>
|
|
298
|
-
</td>
|
|
299
|
-
<td style="text-align: center;">
|
|
300
|
-
<nobr>{{ row.f_remar }}</nobr>
|
|
301
|
-
</td>
|
|
302
|
-
<td style="text-align: center;">
|
|
303
|
-
<nobr>
|
|
304
|
-
<!-- row.defname ?row.defname: (row.f_state === '撤销' ? '撤销' : '完成')-->
|
|
305
|
-
{{ row.f_state ? row.f_state : (row.defname ? row.defname : '完成') }}
|
|
306
|
-
</nobr>
|
|
307
|
-
</td>
|
|
308
|
-
<td style="text-align: center;">
|
|
309
|
-
<nobr>{{ row.f_single_man }}</nobr>
|
|
310
|
-
</td>
|
|
311
|
-
<td style="text-align: center;">
|
|
312
|
-
<nobr>{{ row.f_order_man }} {{ row.f_repairman_phone }}</nobr>
|
|
313
|
-
</td>
|
|
314
|
-
<td style="text-align: center;">
|
|
315
|
-
<nobr>{{ row.f_date }}</nobr>
|
|
316
|
-
</td>
|
|
317
|
-
<td style="text-align: center;">
|
|
318
|
-
<nobr>{{ row.f_date_come }}</nobr>
|
|
319
|
-
</td>
|
|
320
|
-
<td style="text-align: center;">
|
|
321
|
-
<nobr>{{ row.f_date_leave }}</nobr>
|
|
322
|
-
</td>
|
|
323
|
-
<td style="text-align: center;">
|
|
324
|
-
<nobr>{{ row.f_result_status }}</nobr>
|
|
325
|
-
</td>
|
|
326
|
-
</template>
|
|
327
|
-
</data-grid>
|
|
328
|
-
</criteria-paged>
|
|
329
|
-
</div>
|
|
330
|
-
<!--打印-->
|
|
331
|
-
<modal :show.sync="printshow" v-ref:modal backdrop="false">
|
|
332
|
-
<header slot="modal-header" class="modal-header text-center">
|
|
333
|
-
<h4 class="modal-title">打印列选择</h4>
|
|
334
|
-
<input type="checkbox" class="" id="f_generations" v-model="all">
|
|
335
|
-
<label for="f_generations" class="font-size">全选</label>
|
|
336
|
-
</header>
|
|
337
|
-
<article slot="modal-body">
|
|
338
|
-
<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
|
|
339
|
-
<div class="col-sm-3" v-for="f in fields">
|
|
340
|
-
<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
|
|
341
|
-
<label :for="'water-owe-details-'+$index" class="font-size">{{ f }}</label>
|
|
342
|
-
</div>
|
|
343
|
-
</div>
|
|
344
|
-
</article>
|
|
345
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
346
|
-
<center>
|
|
347
|
-
<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
|
|
348
|
-
<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
|
|
349
|
-
<print-table :model='model' v-show="false" v-ref:print
|
|
350
|
-
:top='40' :left='60' :right='40' :bottom='60'
|
|
351
|
-
:thead="thead" :tfoot='tfoot' :attach="yangsen"
|
|
352
|
-
:fields="modelval">
|
|
353
|
-
</print-table>
|
|
354
|
-
</center>
|
|
355
|
-
</footer>
|
|
356
|
-
</modal>
|
|
357
|
-
</div>
|
|
358
|
-
<modal :show.sync="showVisit" v-ref:modal>
|
|
359
|
-
<header slot="modal-header" class="modal-header">
|
|
360
|
-
</header>
|
|
361
|
-
<article slot="modal-body" class="modal-body">
|
|
362
|
-
<visit-info v-if="showVisit" :row="visitrow" :phone="wavflie" :outltime="outltime"
|
|
363
|
-
@show-obj="watchShow" @visitback="visitback"></visit-info>
|
|
364
|
-
</article>
|
|
365
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
366
|
-
</footer>
|
|
367
|
-
</modal>
|
|
368
|
-
<modal :show.sync="imgshow" v-ref:modal backdrop="true">
|
|
369
|
-
<header slot="modal-header" class="modal-header">
|
|
370
|
-
在线抢修照片
|
|
371
|
-
</header>
|
|
372
|
-
<article slot="modal-body" class="modal-body">
|
|
373
|
-
<div class="from-group">
|
|
374
|
-
<img-self :src="imgfilename" width="500" height="500"></img-self>
|
|
375
|
-
</div>
|
|
376
|
-
</article>
|
|
377
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
378
|
-
<button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
|
|
379
|
-
</footer>
|
|
380
|
-
</modal>
|
|
381
|
-
</template>
|
|
382
|
-
|
|
383
|
-
<script>
|
|
384
|
-
import {HttpResetClass, PagedList} from 'vue-client'
|
|
385
|
-
import DelayReply from '../../../components/pc/DelayReply'
|
|
386
|
-
import defaultPrint from '../../../components/pc/config/DefaultPrint'
|
|
387
|
-
|
|
388
|
-
export default {
|
|
389
|
-
title: '工单列表',
|
|
390
|
-
data() {
|
|
391
|
-
return {
|
|
392
|
-
orgstrs: [{label: '全部', value: ''}],
|
|
393
|
-
editflag: null,
|
|
394
|
-
showVisit: false,
|
|
395
|
-
outltime: this.getNowFormatDate(),
|
|
396
|
-
wavflie: '',
|
|
397
|
-
selectone: '',
|
|
398
|
-
model: new PagedList('rs/sql/serviceDetails', 20),
|
|
399
|
-
row: null,
|
|
400
|
-
orderMan: '',
|
|
401
|
-
msgs: [],
|
|
402
|
-
residential_areas:[{label: '全部', value: ''}],
|
|
403
|
-
service: Object,
|
|
404
|
-
pendingCount: 0,
|
|
405
|
-
// 打印
|
|
406
|
-
all: false,
|
|
407
|
-
modelval: [],
|
|
408
|
-
visitrow: {},
|
|
409
|
-
printshow: false,
|
|
410
|
-
imgshow: false,
|
|
411
|
-
imgfilename: '',
|
|
412
|
-
fields: {},
|
|
413
|
-
thead: '',
|
|
414
|
-
tfoot: '',
|
|
415
|
-
zhihuans: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '异常', value: '异常'}],
|
|
416
|
-
headData: ['用户编号', '工单类型', '工单编号', '派单时间', '用户姓名', '用户地址', '来电电话', '派单员', '维修员', '工单状态', '完成时间', '派单备注', '故障明细', '维修员备注'],
|
|
417
|
-
bodyData: ['f_userinfo_code', 'f_workorder_type', 'f_service_id', 'f_created_date', 'f_user_name', 'f_address', 'f_phone', 'f_single_man', 'f_order_man', 'f_date_leave', 'f_remarks', 'failure', 'f_remar'],
|
|
418
|
-
searchData: {
|
|
419
|
-
condition: '1=1'
|
|
420
|
-
},
|
|
421
|
-
excelHeaders: {
|
|
422
|
-
'f_userinfo_code': '用户编号',
|
|
423
|
-
'f_workorder_type': '工单类型',
|
|
424
|
-
'f_service_id': '工单编号',
|
|
425
|
-
'f_created_date': '派单时间',
|
|
426
|
-
'f_user_name': '用户姓名',
|
|
427
|
-
'f_residential_area': '小区',
|
|
428
|
-
'f_contact_phone': '联系电话',
|
|
429
|
-
'f_address': '用户地址',
|
|
430
|
-
'f_phone': '来电电话',
|
|
431
|
-
'f_single_man': '派单员',
|
|
432
|
-
'f_order_man': '维修员',
|
|
433
|
-
'defname': '工单状态',
|
|
434
|
-
'f_date_come': '到达时间',
|
|
435
|
-
'f_date_leave': '离开时间',
|
|
436
|
-
'f_result_status': '工单结果',
|
|
437
|
-
'f_date': '上传时间',
|
|
438
|
-
'f_remarks': '派单备注',
|
|
439
|
-
'failure_str': '故障明细',
|
|
440
|
-
'f_remar': '工单完成备注'
|
|
441
|
-
},
|
|
442
|
-
criteriaShow: false
|
|
443
|
-
}
|
|
444
|
-
},
|
|
445
|
-
props: {
|
|
446
|
-
user: {
|
|
447
|
-
type: Object
|
|
448
|
-
},
|
|
449
|
-
sum: 0,
|
|
450
|
-
maintenance: [],
|
|
451
|
-
|
|
452
|
-
serviceId: '',
|
|
453
|
-
|
|
454
|
-
defname: {
|
|
455
|
-
type: String
|
|
456
|
-
},
|
|
457
|
-
systemshow: {
|
|
458
|
-
type: Boolean,
|
|
459
|
-
default: false
|
|
460
|
-
}
|
|
461
|
-
},
|
|
462
|
-
ready() {
|
|
463
|
-
|
|
464
|
-
this.selfSearch()
|
|
465
|
-
this.get_residential_areas()
|
|
466
|
-
},
|
|
467
|
-
watch: {
|
|
468
|
-
'all'(val) {
|
|
469
|
-
if (val) {
|
|
470
|
-
this.modelval = this.bodyData
|
|
471
|
-
} else {
|
|
472
|
-
this.modelval = defaultPrint.config
|
|
473
|
-
this.put()
|
|
474
|
-
}
|
|
475
|
-
},
|
|
476
|
-
'modelval.length'() {
|
|
477
|
-
this.put()
|
|
478
|
-
},
|
|
479
|
-
'serviceId'() {
|
|
480
|
-
this.selfSearch()
|
|
481
|
-
},
|
|
482
|
-
'sum'(val) {
|
|
483
|
-
this.selfSearch()
|
|
484
|
-
//this.model.search()
|
|
485
|
-
}
|
|
486
|
-
},
|
|
487
|
-
methods: {
|
|
488
|
-
getNowFormatDate() {
|
|
489
|
-
var date = new Date()
|
|
490
|
-
var seperator1 = '-'
|
|
491
|
-
var seperator2 = ':'
|
|
492
|
-
var month = date.getMonth() + 1
|
|
493
|
-
var strDate = date.getDate()
|
|
494
|
-
var hour = date.getHours()
|
|
495
|
-
var min = date.getMinutes()
|
|
496
|
-
var second = date.getSeconds()
|
|
497
|
-
if (month >= 1 && month <= 9) {
|
|
498
|
-
month = '0' + month
|
|
499
|
-
}
|
|
500
|
-
if (strDate >= 0 && strDate <= 9) {
|
|
501
|
-
strDate = '0' + strDate
|
|
502
|
-
}
|
|
503
|
-
if (hour >= 0 && hour <= 9) {
|
|
504
|
-
hour = '0' + hour
|
|
505
|
-
}
|
|
506
|
-
if (min >= 0 && min <= 9) {
|
|
507
|
-
min = '0' + min
|
|
508
|
-
}
|
|
509
|
-
if (second >= 0 && second <= 9) {
|
|
510
|
-
second = '0' + second
|
|
511
|
-
}
|
|
512
|
-
var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
|
513
|
-
+ ' ' + hour + seperator2 + min
|
|
514
|
-
+ seperator2 + second
|
|
515
|
-
return currentdate
|
|
516
|
-
},
|
|
517
|
-
watchShow(val) {
|
|
518
|
-
this.visitrow = {}
|
|
519
|
-
this.showVisit = val
|
|
520
|
-
this.selfSearch()
|
|
521
|
-
},
|
|
522
|
-
visitback(val) {
|
|
523
|
-
this.visitrow = {}
|
|
524
|
-
this.showVisit = false
|
|
525
|
-
if (val == 'commit') {
|
|
526
|
-
this.model.search(this.searchData.condition)
|
|
527
|
-
}
|
|
528
|
-
},
|
|
529
|
-
playWav(val, val2) {
|
|
530
|
-
//tag
|
|
531
|
-
this.wavflie = val
|
|
532
|
-
this.visitrow = val2
|
|
533
|
-
this.showVisit = true
|
|
534
|
-
},
|
|
535
|
-
showpicture(val) {
|
|
536
|
-
//tag
|
|
537
|
-
//tag)
|
|
538
|
-
this.imgshow = true
|
|
539
|
-
this.imgfilename = 'rs/image/file/' + val.f_single_path
|
|
540
|
-
},
|
|
541
|
-
imgclose() {
|
|
542
|
-
this.imgshow = false
|
|
543
|
-
},
|
|
544
|
-
yccolor(val) {
|
|
545
|
-
if (val == '异常') {
|
|
546
|
-
return 'color:red'
|
|
547
|
-
}
|
|
548
|
-
return ''
|
|
549
|
-
},
|
|
550
|
-
|
|
551
|
-
search(args) {
|
|
552
|
-
|
|
553
|
-
if (this.f_filialeids) {
|
|
554
|
-
args.condition += ` and f_filiale_id in ${this.f_filialeids}`
|
|
555
|
-
} else {
|
|
556
|
-
args.condition += ` and f_filiale_id = '${this.$login.f.orgid}'`
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
this.searchData.condition = args.condition
|
|
560
|
-
return this.model.search(args.condition, args.model)
|
|
561
|
-
},
|
|
562
|
-
selfSearch() {
|
|
563
|
-
// 取消编辑状态
|
|
564
|
-
let condition = '1=1'
|
|
565
|
-
|
|
566
|
-
if (this.f_filialeids) {
|
|
567
|
-
condition += ` and f_filiale_id in ${this.f_filialeids}`
|
|
568
|
-
//tag
|
|
569
|
-
} else {
|
|
570
|
-
condition += ` and f_filiale_id = '${this.$login.f.orgid}'`
|
|
571
|
-
}
|
|
572
|
-
return this.model.search(condition)
|
|
573
|
-
},
|
|
574
|
-
|
|
575
|
-
// 发送数据给业务逻辑,并刷新界面
|
|
576
|
-
|
|
577
|
-
// 是否可以退回
|
|
578
|
-
|
|
579
|
-
trouble(val) {
|
|
580
|
-
if (!val.startsWith('[')) {
|
|
581
|
-
return val
|
|
582
|
-
}
|
|
583
|
-
let failureall = ''
|
|
584
|
-
// val=[{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""}]
|
|
585
|
-
|
|
586
|
-
let failure = JSON.parse(val)
|
|
587
|
-
for (let i = 0; i < failure.length; i++) {
|
|
588
|
-
if (failure[i].failurecase.length > 0) {
|
|
589
|
-
failureall += failure[i].f_failure_type + ":"
|
|
590
|
-
for (let j = 0; j < failure[i].failurecase.length; j++) {
|
|
591
|
-
failureall += failure[i].failurecase[j]
|
|
592
|
-
if (j + 1 != failure[i].failurecase.length) {
|
|
593
|
-
failureall += ","
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
} else {
|
|
598
|
-
failureall += failure[i].f_failure_type
|
|
599
|
-
}
|
|
600
|
-
if (i + 1 != failure.length) {
|
|
601
|
-
failureall += ';'
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
return failureall
|
|
605
|
-
},
|
|
606
|
-
// 打印
|
|
607
|
-
stamp() {
|
|
608
|
-
this.all = false
|
|
609
|
-
// 默认选择要打印的列
|
|
610
|
-
this.modelval = defaultPrint.config
|
|
611
|
-
this.fields = this.getfield
|
|
612
|
-
this.printshow = true
|
|
613
|
-
this.put()
|
|
614
|
-
},
|
|
615
|
-
put() {
|
|
616
|
-
// 对Modelval进行排序
|
|
617
|
-
this.sortModelval()
|
|
618
|
-
this.thead = `<tr><th colspan=${this.modelval.length}>工单详情报表</th></tr><tr>`
|
|
619
|
-
for (let key of this.modelval) {
|
|
620
|
-
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
621
|
-
}
|
|
622
|
-
this.thead += '</tr>'
|
|
623
|
-
},
|
|
624
|
-
print() {
|
|
625
|
-
this.$refs.print.PrintAsFile()
|
|
626
|
-
this.printshow = false
|
|
627
|
-
},
|
|
628
|
-
close() {
|
|
629
|
-
this.printshow = false
|
|
630
|
-
this.all = false
|
|
631
|
-
},
|
|
632
|
-
// 对选择的列进行排序
|
|
633
|
-
sortModelval() {
|
|
634
|
-
let sortModel = []
|
|
635
|
-
Object.keys(this.fields).forEach((key) => {
|
|
636
|
-
if (this.modelval.includes(key)) {
|
|
637
|
-
sortModel.push(key)
|
|
638
|
-
}
|
|
639
|
-
})
|
|
640
|
-
this.modelval = sortModel
|
|
641
|
-
},
|
|
642
|
-
hidden() {
|
|
643
|
-
this.criteriaShow = !this.criteriaShow
|
|
644
|
-
},
|
|
645
|
-
getRes(obj) {
|
|
646
|
-
//tag
|
|
647
|
-
////tag)
|
|
648
|
-
this.f_filialeids = this.$login.convertToIn(obj.resids)
|
|
649
|
-
//tag
|
|
650
|
-
},
|
|
651
|
-
get_residential_areas() {
|
|
652
|
-
new HttpResetClass().load('POST', 'rs/sql/tel_singleTable_GroupBy', {
|
|
653
|
-
data: {
|
|
654
|
-
items: 'f_residential_area',
|
|
655
|
-
tablename: 't_area',
|
|
656
|
-
condition: `1=1`,
|
|
657
|
-
groupitem: 'f_residential_area'
|
|
658
|
-
}
|
|
659
|
-
}, {resolveMsg: null, rejectMsg: null}).then(response => {
|
|
660
|
-
debugger
|
|
661
|
-
for (let dataKey in response.data) {
|
|
662
|
-
this.residential_areas.push({label: response.data[dataKey].f_residential_area, value: response.data[dataKey].f_residential_area})
|
|
663
|
-
}
|
|
664
|
-
})
|
|
665
|
-
},
|
|
666
|
-
},
|
|
667
|
-
computed: {
|
|
668
|
-
user_types() {
|
|
669
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
670
|
-
},
|
|
671
|
-
defnames() {
|
|
672
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('呼叫工单状态')]
|
|
673
|
-
},
|
|
674
|
-
repairstypes() {
|
|
675
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('报修全部类型')]
|
|
676
|
-
},
|
|
677
|
-
serviceorders() {
|
|
678
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('工单类型')]
|
|
679
|
-
},
|
|
680
|
-
sources() {
|
|
681
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('工单来源')]
|
|
682
|
-
},
|
|
683
|
-
faultdetails() {
|
|
684
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('故障明细')]
|
|
685
|
-
},
|
|
686
|
-
getfield() {
|
|
687
|
-
let data = {}
|
|
688
|
-
this.bodyData.forEach((value, index) => {
|
|
689
|
-
data[this.bodyData[index]] = this.headData[index]
|
|
690
|
-
})
|
|
691
|
-
return data
|
|
692
|
-
}
|
|
693
|
-
},
|
|
694
|
-
components: {
|
|
695
|
-
'delay-reply': DelayReply
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div id="stand-work-list" class="flex bg-white p-10">
|
|
3
|
+
<div class="span">
|
|
4
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
5
|
+
<criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
|
|
6
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
7
|
+
<div class="row">
|
|
8
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
9
|
+
<label class="font_normal_body" style="width: 40%">工单编号</label>
|
|
10
|
+
<input type="text" class="input_search" v-model="model.f_service_id" placeholder='工单编号'
|
|
11
|
+
condition="f_service_id like '%{}%'"
|
|
12
|
+
:size="model.f_service_id ? model.f_service_id.length : 6">
|
|
13
|
+
</div>
|
|
14
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
15
|
+
<label class="font_normal_body" style="width: 40%">工单类型</label>
|
|
16
|
+
<v-select :value.sync="model.f_workorder_type" :value-single="true" v-model="model.f_workorder_type"
|
|
17
|
+
:options='$parent.$parent.serviceorders' placeholder='工单类型'
|
|
18
|
+
condition="tswo.f_workorder_type like '%{}%'"
|
|
19
|
+
close-on-select>
|
|
20
|
+
</v-select>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%;">
|
|
23
|
+
<label class="font_normal_body" style="width: 40%">客户姓名</label>
|
|
24
|
+
<input type="text" class="input_search" v-model="model.f_user_name" placeholder='客户姓名'
|
|
25
|
+
condition="tswo.f_user_name like '%{}%'"
|
|
26
|
+
:size="model.f_user_name ? model.f_user_name.length : 6">
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<div class="form-group col-sm-6 button-range" style="margin-right: 10px">
|
|
30
|
+
<button class="button_search button_spacing" style="margin-right: 9px"
|
|
31
|
+
@click="search(),$dispatch('search')">查询
|
|
32
|
+
</button>
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
<export-excel-tel
|
|
36
|
+
:data="$parent.$parent.searchData"
|
|
37
|
+
:field="$parent.$parent.excelHeaders"
|
|
38
|
+
progress="telGetExportProgress"
|
|
39
|
+
sqlurl="rs/logic/telephoneExport" sql-name="serviceDetails" template-name='工单详情导出'
|
|
40
|
+
:choose-col="true">
|
|
41
|
+
</export-excel-tel>
|
|
42
|
+
|
|
43
|
+
<div style="float: right" class="button_spacing"
|
|
44
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
45
|
+
@click="$parent.$parent.hidden()"></div>
|
|
46
|
+
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
<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
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
57
|
+
<label class="font_normal_body" style="width: 40%">派单时间</label>
|
|
58
|
+
<datepicker placeholder="起始派单时间"
|
|
59
|
+
:value.sync="model.f_created_date"
|
|
60
|
+
v-model="model.f_created_date"
|
|
61
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
62
|
+
condition="f_created_date > '{}'"
|
|
63
|
+
></datepicker>
|
|
64
|
+
</div>
|
|
65
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
66
|
+
<label class="font_normal_body" style="width: 40%">派单时间</label>
|
|
67
|
+
<datepicker placeholder="终止派单时间"
|
|
68
|
+
:value.sync="model.f_created_enddate"
|
|
69
|
+
v-model="model.f_created_enddate"
|
|
70
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
71
|
+
condition="f_created_date < '{}'"
|
|
72
|
+
></datepicker>
|
|
73
|
+
</div>
|
|
74
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
75
|
+
<label class="font_normal_body" style="width: 40%">来电电话</label>
|
|
76
|
+
<input type="text" class="input_search" v-model="model.f_phone" placeholder='来电电话'
|
|
77
|
+
condition="tswo.f_phone like '%{}%'"
|
|
78
|
+
:size="model.f_phone ? model.f_phone.length : 6">
|
|
79
|
+
</div>
|
|
80
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
81
|
+
<label class="font_normal_body" style="width: 40%">联系电话</label>
|
|
82
|
+
<input type="text" class="input_search" v-model="model.f_contact_phone" placeholder='联系电话'
|
|
83
|
+
condition="tswo.f_contact_phone like '%{}%'"
|
|
84
|
+
:size="model.f_contact_phone ? model.f_contact_phone.length : 6">
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
90
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
91
|
+
<label class="font_normal_body" style="width: 40%">地  址</label>
|
|
92
|
+
<input type="text" class="input_search" v-model="model.f_address" placeholder='地址'
|
|
93
|
+
condition="tswo.f_address like '%{}%'"
|
|
94
|
+
:size="model.f_address ? model.f_address.length : 4">
|
|
95
|
+
</div>
|
|
96
|
+
<div v-show="false" class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
97
|
+
<label class="font_normal_body" style="width: 40%">接单站点</label>
|
|
98
|
+
<input type="text" class="input_search" v-model="model.f_outlets" placeholder='接单站点'
|
|
99
|
+
condition="tswo.f_outlets like '%{}%'"
|
|
100
|
+
:size="model.f_outlets ? model.f_outlets.length : 6">
|
|
101
|
+
</div>
|
|
102
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
103
|
+
<label class="font_normal_body" style="width: 40%">完成时间</label>
|
|
104
|
+
<datepicker placeholder="维修完成时间"
|
|
105
|
+
:value.sync="model.f_date_start"
|
|
106
|
+
v-model="model.f_date_start"
|
|
107
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
108
|
+
condition="f_date > '{}'"
|
|
109
|
+
></datepicker>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
112
|
+
<label class="font_normal_body" style="width: 40%">完成时间</label>
|
|
113
|
+
<datepicker placeholder="维修完成时间"
|
|
114
|
+
:value.sync="model.f_date_end"
|
|
115
|
+
v-model="model.f_date_end"
|
|
116
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
117
|
+
condition="f_date < '{}'"
|
|
118
|
+
></datepicker>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
121
|
+
<label class="font_normal_body" style="width: 40%">故障明细</label>
|
|
122
|
+
<v-select :value.sync="model.f_failure" v-model='model.f_failure'
|
|
123
|
+
:value-single="true"
|
|
124
|
+
:options='$parent.$parent.faultdetails' placeholder='故障明细'
|
|
125
|
+
close-on-select
|
|
126
|
+
condition="tswo.failure like '%{}%'"></v-select>
|
|
127
|
+
</div>
|
|
128
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
129
|
+
<label class="font_normal_body" style="width: 40%">派 单 员</label>
|
|
130
|
+
<input type="text" class="input_search" v-model="model.f_single_man" placeholder='派单员'
|
|
131
|
+
condition="tswo.f_single_man like '%{}%'"
|
|
132
|
+
:size="model.f_single_man ? model.f_single_man.length : 6">
|
|
133
|
+
</div>
|
|
134
|
+
</div>
|
|
135
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
136
|
+
<!-- <div class="col-sm-3 form-group form-input-group" style="width: 20%">-->
|
|
137
|
+
<!-- <label class="font_normal_body" style="width: 40%">接 单 员</label>-->
|
|
138
|
+
<!-- <input type="text" class="input_search" v-model="model.f_order_man" placeholder='接单员'-->
|
|
139
|
+
<!-- condition="tswo.f_order_man like '%{}%'"-->
|
|
140
|
+
<!-- :size="model.f_order_man ? model.f_order_man.length : 6">-->
|
|
141
|
+
<!-- </div>-->
|
|
142
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
143
|
+
<label class="font_normal_body" style="width: 40%">工单来源</label>
|
|
144
|
+
<v-select :value.sync="model.f_source" v-model='model.f_source'
|
|
145
|
+
:value-single="true"
|
|
146
|
+
:options='$parent.$parent.sources' placeholder='工单来源'
|
|
147
|
+
close-on-select
|
|
148
|
+
condition="tswo.f_source = '{}'"></v-select>
|
|
149
|
+
</div>
|
|
150
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
151
|
+
<label class="font_normal_body" style="width: 40%">工单状态</label>
|
|
152
|
+
<v-select :value.sync="model.defname" v-model='model.defname'
|
|
153
|
+
:value-single="true"
|
|
154
|
+
:options='$parent.$parent.defnames' placeholder='工单状态'
|
|
155
|
+
condition="sa.defname = '{}'"
|
|
156
|
+
close-on-select></v-select>
|
|
157
|
+
</div>
|
|
158
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
159
|
+
<label class="font_normal_body" style="width: 40%">报修类型</label>
|
|
160
|
+
<v-select :value.sync="model.f_repairtype" :value-single="true" v-model="model.f_repairtype"
|
|
161
|
+
:options='$parent.$parent.repairstypes' placeholder='报修类型'
|
|
162
|
+
condition="f_repairtype like '%{}%'"
|
|
163
|
+
close-on-select>
|
|
164
|
+
</v-select>
|
|
165
|
+
</div>
|
|
166
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
167
|
+
<label class="font_normal_body" style="width: 40%">小  区</label>
|
|
168
|
+
<v-select :value.sync="model.f_residential_area" :value-single="true" v-model="model.f_residential_area"
|
|
169
|
+
:options='$parent.$parent.residential_areas' placeholder='小区'
|
|
170
|
+
condition="f_residential_area = '{}'"
|
|
171
|
+
close-on-select>
|
|
172
|
+
</v-select>
|
|
173
|
+
</div>
|
|
174
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
175
|
+
<label class="font_normal_body" style="width: 40%">用户类型</label>
|
|
176
|
+
<v-select :value.sync="model.f_user_type" :value-single="true" v-model="model.f_user_type"
|
|
177
|
+
:options='$parent.$parent.user_types' placeholder='用户类型'
|
|
178
|
+
condition="f_user_type = '{}'"
|
|
179
|
+
close-on-select>
|
|
180
|
+
</v-select>
|
|
181
|
+
</div>
|
|
182
|
+
<div class="col-sm-6 form-group form-input-group" style="width: 40%">
|
|
183
|
+
<role-selector-tel
|
|
184
|
+
role-name="维修员"
|
|
185
|
+
role-lable="维 修 员"
|
|
186
|
+
@re-res="$parent.$parent.getRes"
|
|
187
|
+
:value.sync="model.f_checker_id"
|
|
188
|
+
v-model="model.f_checker_id"
|
|
189
|
+
condition="tswo.f_order_man = '{}'">
|
|
190
|
+
</role-selector-tel>
|
|
191
|
+
</div>
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
</criteria>
|
|
195
|
+
<data-grid partial='list' v-ref:grid :model="model" class="list_area table_sy">
|
|
196
|
+
<template partial='head'>
|
|
197
|
+
<tr>
|
|
198
|
+
<th>
|
|
199
|
+
<nobr>序号</nobr>
|
|
200
|
+
</th>
|
|
201
|
+
<th>
|
|
202
|
+
<nobr>回访</nobr>
|
|
203
|
+
</th>
|
|
204
|
+
<th>
|
|
205
|
+
<nobr>用户编号</nobr>
|
|
206
|
+
</th>
|
|
207
|
+
<th>
|
|
208
|
+
<nobr>工单类型</nobr>
|
|
209
|
+
</th>
|
|
210
|
+
<!--<th><nobr>报修类型</nobr></th>-->
|
|
211
|
+
<th>
|
|
212
|
+
<nobr>工单编号</nobr>
|
|
213
|
+
</th>
|
|
214
|
+
<th>
|
|
215
|
+
<nobr>派单时间</nobr>
|
|
216
|
+
</th>
|
|
217
|
+
<th>
|
|
218
|
+
<nobr>客户信息</nobr>
|
|
219
|
+
</th>
|
|
220
|
+
<th>
|
|
221
|
+
<nobr>小区</nobr>
|
|
222
|
+
</th>
|
|
223
|
+
<th>
|
|
224
|
+
<nobr>联系电话</nobr>
|
|
225
|
+
</th>
|
|
226
|
+
<th>
|
|
227
|
+
<nobr>故障明细</nobr>
|
|
228
|
+
</th>
|
|
229
|
+
<th>
|
|
230
|
+
<nobr>派单备注</nobr>
|
|
231
|
+
</th>
|
|
232
|
+
<th>
|
|
233
|
+
<nobr>工单完成备注</nobr>
|
|
234
|
+
</th>
|
|
235
|
+
<th>
|
|
236
|
+
<nobr>工单状态</nobr>
|
|
237
|
+
</th>
|
|
238
|
+
<th>
|
|
239
|
+
<nobr>派单员</nobr>
|
|
240
|
+
</th>
|
|
241
|
+
<th>
|
|
242
|
+
<nobr>维修员</nobr>
|
|
243
|
+
</th>
|
|
244
|
+
<th>
|
|
245
|
+
<nobr>上传时间</nobr>
|
|
246
|
+
</th>
|
|
247
|
+
<th>
|
|
248
|
+
<nobr>到达时间</nobr>
|
|
249
|
+
</th>
|
|
250
|
+
<th>
|
|
251
|
+
<nobr>离开时间</nobr>
|
|
252
|
+
</th>
|
|
253
|
+
<th>
|
|
254
|
+
<nobr>工单结果</nobr>
|
|
255
|
+
</th>
|
|
256
|
+
</tr>
|
|
257
|
+
</template>
|
|
258
|
+
<template partial='body'>
|
|
259
|
+
<td style="text-align: center;">
|
|
260
|
+
<nobr>{{ $index + 1 }}</nobr>
|
|
261
|
+
</td>
|
|
262
|
+
<td :style="row.serviceacitivity && row.serviceacitivity[0].f_is_abnormal == '异常'?'color:red':''">
|
|
263
|
+
<nobr v-if="row.f_phone&&row.f_again_revisit!='否'">
|
|
264
|
+
<button-link type="button" class="btn btn-link"
|
|
265
|
+
@click="$parent.$parent.$parent.playWav(row.f_phone,row)">回访
|
|
266
|
+
</button-link>
|
|
267
|
+
</nobr>
|
|
268
|
+
<nobr v-if="(!row.f_phone)||row.f_again_revisit=='否'"></nobr>
|
|
269
|
+
</td>
|
|
270
|
+
<td style="text-align: center;">
|
|
271
|
+
<nobr>{{ row.f_userinfo_code }}</nobr>
|
|
272
|
+
</td>
|
|
273
|
+
<td style="text-align: center;">
|
|
274
|
+
<nobr>{{ row.f_workorder_type }}</nobr>
|
|
275
|
+
</td>
|
|
276
|
+
<td style="text-align: center;">
|
|
277
|
+
<nobr>{{ row.f_service_id }}</nobr>
|
|
278
|
+
</td>
|
|
279
|
+
<td style="text-align: center;">
|
|
280
|
+
<nobr>{{ row.f_created_date }}</nobr>
|
|
281
|
+
</td>
|
|
282
|
+
<td style="text-align: center;">
|
|
283
|
+
<nobr>
|
|
284
|
+
{{ row.f_user_name }} {{ row.f_address }}
|
|
285
|
+
</nobr>
|
|
286
|
+
</td>
|
|
287
|
+
<td style="text-align: center;">
|
|
288
|
+
<nobr>{{ row.f_residential_area }}</nobr>
|
|
289
|
+
</td>
|
|
290
|
+
<td style="text-align: center;">
|
|
291
|
+
<nobr>{{ row.f_contact_phone }}</nobr>
|
|
292
|
+
</td>
|
|
293
|
+
<td style="text-align: center;">
|
|
294
|
+
<nobr>{{ $parent.$parent.$parent.trouble(row.failure_str) }}</nobr>
|
|
295
|
+
</td>
|
|
296
|
+
<td style="text-align: center;">
|
|
297
|
+
<nobr>{{ row.f_remarks }}</nobr>
|
|
298
|
+
</td>
|
|
299
|
+
<td style="text-align: center;">
|
|
300
|
+
<nobr>{{ row.f_remar }}</nobr>
|
|
301
|
+
</td>
|
|
302
|
+
<td style="text-align: center;">
|
|
303
|
+
<nobr>
|
|
304
|
+
<!-- row.defname ?row.defname: (row.f_state === '撤销' ? '撤销' : '完成')-->
|
|
305
|
+
{{ row.f_state ? row.f_state : (row.defname ? row.defname : '完成') }}
|
|
306
|
+
</nobr>
|
|
307
|
+
</td>
|
|
308
|
+
<td style="text-align: center;">
|
|
309
|
+
<nobr>{{ row.f_single_man }}</nobr>
|
|
310
|
+
</td>
|
|
311
|
+
<td style="text-align: center;">
|
|
312
|
+
<nobr>{{ row.f_order_man }} {{ row.f_repairman_phone }}</nobr>
|
|
313
|
+
</td>
|
|
314
|
+
<td style="text-align: center;">
|
|
315
|
+
<nobr>{{ row.f_date }}</nobr>
|
|
316
|
+
</td>
|
|
317
|
+
<td style="text-align: center;">
|
|
318
|
+
<nobr>{{ row.f_date_come }}</nobr>
|
|
319
|
+
</td>
|
|
320
|
+
<td style="text-align: center;">
|
|
321
|
+
<nobr>{{ row.f_date_leave }}</nobr>
|
|
322
|
+
</td>
|
|
323
|
+
<td style="text-align: center;">
|
|
324
|
+
<nobr>{{ row.f_result_status }}</nobr>
|
|
325
|
+
</td>
|
|
326
|
+
</template>
|
|
327
|
+
</data-grid>
|
|
328
|
+
</criteria-paged>
|
|
329
|
+
</div>
|
|
330
|
+
<!--打印-->
|
|
331
|
+
<modal :show.sync="printshow" v-ref:modal backdrop="false">
|
|
332
|
+
<header slot="modal-header" class="modal-header text-center">
|
|
333
|
+
<h4 class="modal-title">打印列选择</h4>
|
|
334
|
+
<input type="checkbox" class="" id="f_generations" v-model="all">
|
|
335
|
+
<label for="f_generations" class="font-size">全选</label>
|
|
336
|
+
</header>
|
|
337
|
+
<article slot="modal-body">
|
|
338
|
+
<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
|
|
339
|
+
<div class="col-sm-3" v-for="f in fields">
|
|
340
|
+
<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
|
|
341
|
+
<label :for="'water-owe-details-'+$index" class="font-size">{{ f }}</label>
|
|
342
|
+
</div>
|
|
343
|
+
</div>
|
|
344
|
+
</article>
|
|
345
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
346
|
+
<center>
|
|
347
|
+
<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
|
|
348
|
+
<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
|
|
349
|
+
<print-table :model='model' v-show="false" v-ref:print
|
|
350
|
+
:top='40' :left='60' :right='40' :bottom='60'
|
|
351
|
+
:thead="thead" :tfoot='tfoot' :attach="yangsen"
|
|
352
|
+
:fields="modelval">
|
|
353
|
+
</print-table>
|
|
354
|
+
</center>
|
|
355
|
+
</footer>
|
|
356
|
+
</modal>
|
|
357
|
+
</div>
|
|
358
|
+
<modal :show.sync="showVisit" v-ref:modal>
|
|
359
|
+
<header slot="modal-header" class="modal-header">
|
|
360
|
+
</header>
|
|
361
|
+
<article slot="modal-body" class="modal-body">
|
|
362
|
+
<visit-info v-if="showVisit" :row="visitrow" :phone="wavflie" :outltime="outltime"
|
|
363
|
+
@show-obj="watchShow" @visitback="visitback"></visit-info>
|
|
364
|
+
</article>
|
|
365
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
366
|
+
</footer>
|
|
367
|
+
</modal>
|
|
368
|
+
<modal :show.sync="imgshow" v-ref:modal backdrop="true">
|
|
369
|
+
<header slot="modal-header" class="modal-header">
|
|
370
|
+
在线抢修照片
|
|
371
|
+
</header>
|
|
372
|
+
<article slot="modal-body" class="modal-body">
|
|
373
|
+
<div class="from-group">
|
|
374
|
+
<img-self :src="imgfilename" width="500" height="500"></img-self>
|
|
375
|
+
</div>
|
|
376
|
+
</article>
|
|
377
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
378
|
+
<button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
|
|
379
|
+
</footer>
|
|
380
|
+
</modal>
|
|
381
|
+
</template>
|
|
382
|
+
|
|
383
|
+
<script>
|
|
384
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
385
|
+
import DelayReply from '../../../components/pc/DelayReply'
|
|
386
|
+
import defaultPrint from '../../../components/pc/config/DefaultPrint'
|
|
387
|
+
|
|
388
|
+
export default {
|
|
389
|
+
title: '工单列表',
|
|
390
|
+
data() {
|
|
391
|
+
return {
|
|
392
|
+
orgstrs: [{label: '全部', value: ''}],
|
|
393
|
+
editflag: null,
|
|
394
|
+
showVisit: false,
|
|
395
|
+
outltime: this.getNowFormatDate(),
|
|
396
|
+
wavflie: '',
|
|
397
|
+
selectone: '',
|
|
398
|
+
model: new PagedList('rs/sql/serviceDetails', 20),
|
|
399
|
+
row: null,
|
|
400
|
+
orderMan: '',
|
|
401
|
+
msgs: [],
|
|
402
|
+
residential_areas:[{label: '全部', value: ''}],
|
|
403
|
+
service: Object,
|
|
404
|
+
pendingCount: 0,
|
|
405
|
+
// 打印
|
|
406
|
+
all: false,
|
|
407
|
+
modelval: [],
|
|
408
|
+
visitrow: {},
|
|
409
|
+
printshow: false,
|
|
410
|
+
imgshow: false,
|
|
411
|
+
imgfilename: '',
|
|
412
|
+
fields: {},
|
|
413
|
+
thead: '',
|
|
414
|
+
tfoot: '',
|
|
415
|
+
zhihuans: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '异常', value: '异常'}],
|
|
416
|
+
headData: ['用户编号', '工单类型', '工单编号', '派单时间', '用户姓名', '用户地址', '来电电话', '派单员', '维修员', '工单状态', '完成时间', '派单备注', '故障明细', '维修员备注'],
|
|
417
|
+
bodyData: ['f_userinfo_code', 'f_workorder_type', 'f_service_id', 'f_created_date', 'f_user_name', 'f_address', 'f_phone', 'f_single_man', 'f_order_man', 'f_date_leave', 'f_remarks', 'failure', 'f_remar'],
|
|
418
|
+
searchData: {
|
|
419
|
+
condition: '1=1'
|
|
420
|
+
},
|
|
421
|
+
excelHeaders: {
|
|
422
|
+
'f_userinfo_code': '用户编号',
|
|
423
|
+
'f_workorder_type': '工单类型',
|
|
424
|
+
'f_service_id': '工单编号',
|
|
425
|
+
'f_created_date': '派单时间',
|
|
426
|
+
'f_user_name': '用户姓名',
|
|
427
|
+
'f_residential_area': '小区',
|
|
428
|
+
'f_contact_phone': '联系电话',
|
|
429
|
+
'f_address': '用户地址',
|
|
430
|
+
'f_phone': '来电电话',
|
|
431
|
+
'f_single_man': '派单员',
|
|
432
|
+
'f_order_man': '维修员',
|
|
433
|
+
'defname': '工单状态',
|
|
434
|
+
'f_date_come': '到达时间',
|
|
435
|
+
'f_date_leave': '离开时间',
|
|
436
|
+
'f_result_status': '工单结果',
|
|
437
|
+
'f_date': '上传时间',
|
|
438
|
+
'f_remarks': '派单备注',
|
|
439
|
+
'failure_str': '故障明细',
|
|
440
|
+
'f_remar': '工单完成备注'
|
|
441
|
+
},
|
|
442
|
+
criteriaShow: false
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
props: {
|
|
446
|
+
user: {
|
|
447
|
+
type: Object
|
|
448
|
+
},
|
|
449
|
+
sum: 0,
|
|
450
|
+
maintenance: [],
|
|
451
|
+
|
|
452
|
+
serviceId: '',
|
|
453
|
+
|
|
454
|
+
defname: {
|
|
455
|
+
type: String
|
|
456
|
+
},
|
|
457
|
+
systemshow: {
|
|
458
|
+
type: Boolean,
|
|
459
|
+
default: false
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
ready() {
|
|
463
|
+
|
|
464
|
+
this.selfSearch()
|
|
465
|
+
this.get_residential_areas()
|
|
466
|
+
},
|
|
467
|
+
watch: {
|
|
468
|
+
'all'(val) {
|
|
469
|
+
if (val) {
|
|
470
|
+
this.modelval = this.bodyData
|
|
471
|
+
} else {
|
|
472
|
+
this.modelval = defaultPrint.config
|
|
473
|
+
this.put()
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
'modelval.length'() {
|
|
477
|
+
this.put()
|
|
478
|
+
},
|
|
479
|
+
'serviceId'() {
|
|
480
|
+
this.selfSearch()
|
|
481
|
+
},
|
|
482
|
+
'sum'(val) {
|
|
483
|
+
this.selfSearch()
|
|
484
|
+
//this.model.search()
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
methods: {
|
|
488
|
+
getNowFormatDate() {
|
|
489
|
+
var date = new Date()
|
|
490
|
+
var seperator1 = '-'
|
|
491
|
+
var seperator2 = ':'
|
|
492
|
+
var month = date.getMonth() + 1
|
|
493
|
+
var strDate = date.getDate()
|
|
494
|
+
var hour = date.getHours()
|
|
495
|
+
var min = date.getMinutes()
|
|
496
|
+
var second = date.getSeconds()
|
|
497
|
+
if (month >= 1 && month <= 9) {
|
|
498
|
+
month = '0' + month
|
|
499
|
+
}
|
|
500
|
+
if (strDate >= 0 && strDate <= 9) {
|
|
501
|
+
strDate = '0' + strDate
|
|
502
|
+
}
|
|
503
|
+
if (hour >= 0 && hour <= 9) {
|
|
504
|
+
hour = '0' + hour
|
|
505
|
+
}
|
|
506
|
+
if (min >= 0 && min <= 9) {
|
|
507
|
+
min = '0' + min
|
|
508
|
+
}
|
|
509
|
+
if (second >= 0 && second <= 9) {
|
|
510
|
+
second = '0' + second
|
|
511
|
+
}
|
|
512
|
+
var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
|
513
|
+
+ ' ' + hour + seperator2 + min
|
|
514
|
+
+ seperator2 + second
|
|
515
|
+
return currentdate
|
|
516
|
+
},
|
|
517
|
+
watchShow(val) {
|
|
518
|
+
this.visitrow = {}
|
|
519
|
+
this.showVisit = val
|
|
520
|
+
this.selfSearch()
|
|
521
|
+
},
|
|
522
|
+
visitback(val) {
|
|
523
|
+
this.visitrow = {}
|
|
524
|
+
this.showVisit = false
|
|
525
|
+
if (val == 'commit') {
|
|
526
|
+
this.model.search(this.searchData.condition)
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
playWav(val, val2) {
|
|
530
|
+
//tag
|
|
531
|
+
this.wavflie = val
|
|
532
|
+
this.visitrow = val2
|
|
533
|
+
this.showVisit = true
|
|
534
|
+
},
|
|
535
|
+
showpicture(val) {
|
|
536
|
+
//tag
|
|
537
|
+
//tag)
|
|
538
|
+
this.imgshow = true
|
|
539
|
+
this.imgfilename = 'rs/image/file/' + val.f_single_path
|
|
540
|
+
},
|
|
541
|
+
imgclose() {
|
|
542
|
+
this.imgshow = false
|
|
543
|
+
},
|
|
544
|
+
yccolor(val) {
|
|
545
|
+
if (val == '异常') {
|
|
546
|
+
return 'color:red'
|
|
547
|
+
}
|
|
548
|
+
return ''
|
|
549
|
+
},
|
|
550
|
+
|
|
551
|
+
search(args) {
|
|
552
|
+
|
|
553
|
+
if (this.f_filialeids) {
|
|
554
|
+
args.condition += ` and f_filiale_id in ${this.f_filialeids}`
|
|
555
|
+
} else {
|
|
556
|
+
args.condition += ` and f_filiale_id = '${this.$login.f.orgid}'`
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
this.searchData.condition = args.condition
|
|
560
|
+
return this.model.search(args.condition, args.model)
|
|
561
|
+
},
|
|
562
|
+
selfSearch() {
|
|
563
|
+
// 取消编辑状态
|
|
564
|
+
let condition = '1=1'
|
|
565
|
+
|
|
566
|
+
if (this.f_filialeids) {
|
|
567
|
+
condition += ` and f_filiale_id in ${this.f_filialeids}`
|
|
568
|
+
//tag
|
|
569
|
+
} else {
|
|
570
|
+
condition += ` and f_filiale_id = '${this.$login.f.orgid}'`
|
|
571
|
+
}
|
|
572
|
+
return this.model.search(condition)
|
|
573
|
+
},
|
|
574
|
+
|
|
575
|
+
// 发送数据给业务逻辑,并刷新界面
|
|
576
|
+
|
|
577
|
+
// 是否可以退回
|
|
578
|
+
|
|
579
|
+
trouble(val) {
|
|
580
|
+
if (!val.startsWith('[')) {
|
|
581
|
+
return val
|
|
582
|
+
}
|
|
583
|
+
let failureall = ''
|
|
584
|
+
// val=[{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""}]
|
|
585
|
+
|
|
586
|
+
let failure = JSON.parse(val)
|
|
587
|
+
for (let i = 0; i < failure.length; i++) {
|
|
588
|
+
if (failure[i].failurecase.length > 0) {
|
|
589
|
+
failureall += failure[i].f_failure_type + ":"
|
|
590
|
+
for (let j = 0; j < failure[i].failurecase.length; j++) {
|
|
591
|
+
failureall += failure[i].failurecase[j]
|
|
592
|
+
if (j + 1 != failure[i].failurecase.length) {
|
|
593
|
+
failureall += ","
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
} else {
|
|
598
|
+
failureall += failure[i].f_failure_type
|
|
599
|
+
}
|
|
600
|
+
if (i + 1 != failure.length) {
|
|
601
|
+
failureall += ';'
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
return failureall
|
|
605
|
+
},
|
|
606
|
+
// 打印
|
|
607
|
+
stamp() {
|
|
608
|
+
this.all = false
|
|
609
|
+
// 默认选择要打印的列
|
|
610
|
+
this.modelval = defaultPrint.config
|
|
611
|
+
this.fields = this.getfield
|
|
612
|
+
this.printshow = true
|
|
613
|
+
this.put()
|
|
614
|
+
},
|
|
615
|
+
put() {
|
|
616
|
+
// 对Modelval进行排序
|
|
617
|
+
this.sortModelval()
|
|
618
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>工单详情报表</th></tr><tr>`
|
|
619
|
+
for (let key of this.modelval) {
|
|
620
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
621
|
+
}
|
|
622
|
+
this.thead += '</tr>'
|
|
623
|
+
},
|
|
624
|
+
print() {
|
|
625
|
+
this.$refs.print.PrintAsFile()
|
|
626
|
+
this.printshow = false
|
|
627
|
+
},
|
|
628
|
+
close() {
|
|
629
|
+
this.printshow = false
|
|
630
|
+
this.all = false
|
|
631
|
+
},
|
|
632
|
+
// 对选择的列进行排序
|
|
633
|
+
sortModelval() {
|
|
634
|
+
let sortModel = []
|
|
635
|
+
Object.keys(this.fields).forEach((key) => {
|
|
636
|
+
if (this.modelval.includes(key)) {
|
|
637
|
+
sortModel.push(key)
|
|
638
|
+
}
|
|
639
|
+
})
|
|
640
|
+
this.modelval = sortModel
|
|
641
|
+
},
|
|
642
|
+
hidden() {
|
|
643
|
+
this.criteriaShow = !this.criteriaShow
|
|
644
|
+
},
|
|
645
|
+
getRes(obj) {
|
|
646
|
+
//tag
|
|
647
|
+
////tag)
|
|
648
|
+
this.f_filialeids = this.$login.convertToIn(obj.resids)
|
|
649
|
+
//tag
|
|
650
|
+
},
|
|
651
|
+
get_residential_areas() {
|
|
652
|
+
new HttpResetClass().load('POST', 'rs/sql/tel_singleTable_GroupBy', {
|
|
653
|
+
data: {
|
|
654
|
+
items: 'f_residential_area',
|
|
655
|
+
tablename: 't_area',
|
|
656
|
+
condition: `1=1`,
|
|
657
|
+
groupitem: 'f_residential_area'
|
|
658
|
+
}
|
|
659
|
+
}, {resolveMsg: null, rejectMsg: null}).then(response => {
|
|
660
|
+
debugger
|
|
661
|
+
for (let dataKey in response.data) {
|
|
662
|
+
this.residential_areas.push({label: response.data[dataKey].f_residential_area, value: response.data[dataKey].f_residential_area})
|
|
663
|
+
}
|
|
664
|
+
})
|
|
665
|
+
},
|
|
666
|
+
},
|
|
667
|
+
computed: {
|
|
668
|
+
user_types() {
|
|
669
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
670
|
+
},
|
|
671
|
+
defnames() {
|
|
672
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('呼叫工单状态')]
|
|
673
|
+
},
|
|
674
|
+
repairstypes() {
|
|
675
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('报修全部类型')]
|
|
676
|
+
},
|
|
677
|
+
serviceorders() {
|
|
678
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('工单类型')]
|
|
679
|
+
},
|
|
680
|
+
sources() {
|
|
681
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('工单来源')]
|
|
682
|
+
},
|
|
683
|
+
faultdetails() {
|
|
684
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('故障明细')]
|
|
685
|
+
},
|
|
686
|
+
getfield() {
|
|
687
|
+
let data = {}
|
|
688
|
+
this.bodyData.forEach((value, index) => {
|
|
689
|
+
data[this.bodyData[index]] = this.headData[index]
|
|
690
|
+
})
|
|
691
|
+
return data
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
components: {
|
|
695
|
+
'delay-reply': DelayReply
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
</script>
|