telephone-clients 3.0.104-10 → 3.0.104-101

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.
Files changed (100) hide show
  1. package/package.json +3 -3
  2. package/src/App.vue +54 -54
  3. package/src/components/android/ImgArea.vue +80 -0
  4. package/src/components/guoxin/Console.vue +42 -14
  5. package/src/components/guoxin/call.state.api.js +3 -1
  6. package/src/components/pc/ComplainWork.vue +3 -0
  7. package/src/components/pc/NewRepairPaper.vue +378 -370
  8. package/src/components/pc/RecordListLeft.vue +80 -10
  9. package/src/components/pc/RepairsWork.vue +33 -3
  10. package/src/components/pc/RoleSelector.vue +7 -1
  11. package/src/components/pc/Seekwork.vue +3 -0
  12. package/src/components/pc/SiteSend.vue +38 -1
  13. package/src/components/pc/TelLossList.vue +20 -3
  14. package/src/components/pc/WorkHistory.vue +1 -1
  15. package/src/components/pc/WorkList.vue +4 -3
  16. package/src/components/pc/WorkListAllNew.vue +16 -8
  17. package/src/components/pc/WorkListNew.vue +722 -712
  18. package/src/components/sendsingle/onlinequeryuser.vue +1 -1
  19. package/src/components/telcount/TelByOrderMan.vue +22 -4
  20. package/src/components/telreport/RepairsDetailsReport.vue +2 -2
  21. package/src/components/telreport/TrafficClassificationReport.vue +13 -13
  22. package/src/components/telreport/Trafficassess.vue +2 -2
  23. package/src/components/temp/HandplanInfo.vue +5 -1
  24. package/src/components/temp/InstructInfo.vue +1 -1
  25. package/src/components/temp/SecuritycheckInfo.vue +14 -0
  26. package/src/components/workorder/RepairDetails.vue +8 -2
  27. package/src/components/workorder/RepairInfo.vue +3 -3
  28. package/src/components/workorder/RepairPaperAndroid.vue +351 -0
  29. package/src/components/workorder/ServiceOnlineQuery.vue +306 -0
  30. package/src/components/workorder/TemporarySingle.vue +346 -302
  31. package/src/filiale/furuike/pc/QueryVisitHistory.vue +14 -1
  32. package/src/filiale/furuike/pc/WorkHistory.vue +576 -576
  33. package/src/filiale/hanzhong/telephone.js +1 -1
  34. package/src/filiale/jiaocheng/android/createQRcode.vue +204 -0
  35. package/src/filiale/jiaocheng/android/onlineBuyGas.vue +637 -0
  36. package/src/filiale/jiaocheng/telephone.js +8 -0
  37. package/src/filiale/jiaocheng/telephoneAndroid.js +15 -0
  38. package/src/filiale/lixian/onlineChangeMeter.vue +481 -0
  39. package/src/filiale/lixian/onlineoperation.vue +606 -0
  40. package/src/filiale/lixian/onlinequeryuser.vue +509 -0
  41. package/src/filiale/lixian/telephoneAndroid.js +23 -0
  42. package/src/filiale/qianneng/android/AppInstallationMaterial.vue +880 -845
  43. package/src/filiale/qianneng/android/TemporarySingle.vue +537 -537
  44. package/src/filiale/qianneng/pc/MaterialDetailed.vue +260 -260
  45. package/src/filiale/qianneng/pc/NewRepairPaper.vue +467 -467
  46. package/src/filiale/qianneng/pc/RepairsWork.vue +992 -992
  47. package/src/filiale/qianneng/pc/WorkListAllNew.vue +757 -757
  48. package/src/filiale/qianneng/pc/changetable.vue +273 -273
  49. package/src/filiale/qianneng/telephone.js +22 -22
  50. package/src/filiale/rizhao/pc/IgnitionVentilation.vue +0 -1
  51. package/src/filiale/rizhao/pc/RepairsWork.vue +0 -1
  52. package/src/filiale/rizhao/pc/WorkListAllNew.vue +11 -5
  53. package/src/filiale/rizhao/telephone.js +1 -1
  54. package/src/filiale/shanxian/android/RepairFirstV.vue +3 -0
  55. package/src/filiale/shanxian/pc/TelFindUser.vue +310 -0
  56. package/src/filiale/shanxian/pc/WorkList.vue +2 -2
  57. package/src/filiale/shanxian/telephone.js +1 -0
  58. package/src/filiale/shexian/android/AddMyTask.vue +7 -0
  59. package/src/filiale/shexian/android/RepairFirstV.vue +5 -0
  60. package/src/filiale/shexian/android/RepairInfo.vue +1 -0
  61. package/src/filiale/shexian/pc/TelAgentVoiceReport.vue +9 -9
  62. package/src/filiale/shexian/pc/TelByRepairType.vue +3 -3
  63. package/src/filiale/shexian/pc/WorkList.vue +4 -1
  64. package/src/filiale/shexian/pc/WorkListAllNew.vue +14 -1
  65. package/src/filiale/tongchuan/android/RepairDetails.vue +623 -0
  66. package/src/filiale/tongchuan/pc/AnalysisMain.vue +7 -7
  67. package/src/filiale/tongchuan/pc/RepairsWork.vue +8 -0
  68. package/src/filiale/tongchuan/pc/UserWork.vue +8 -0
  69. package/src/filiale/tongchuan/telephoneAndroid.js +1 -0
  70. package/src/filiale/wenxi/android/FaultAll.vue +710 -0
  71. package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +73 -162
  72. package/src/filiale/wenxi/android/RepairOrderV.vue +1 -1
  73. package/src/filiale/wenxi/android/ZHihuanFirst.vue +149 -129
  74. package/src/filiale/wenxi/pc/DistributeWork.vue +1 -1
  75. package/src/filiale/wenxi/pc/RecordListLeft.vue +272 -0
  76. package/src/filiale/wenxi/pc/RepairsWork.vue +143 -64
  77. package/src/filiale/wenxi/pc/TelAgentVoiceReport.vue +290 -0
  78. package/src/filiale/wenxi/pc/TelLossList.vue +272 -0
  79. package/src/filiale/wenxi/telephone.js +4 -0
  80. package/src/filiale/wenxi/telephoneAndroid.js +2 -1
  81. package/src/filiale/wuhai/telephone.js +1 -1
  82. package/src/filiale/yuncheng/android/LdapHelper.js +75 -0
  83. package/src/filiale/yuncheng/android/Outlay.vue +201 -0
  84. package/src/filiale/yuncheng/android/RepairInfo.vue +163 -0
  85. package/src/filiale/yuncheng/android/RepairOrderV.vue +1483 -0
  86. package/src/filiale/yuncheng/android/RepairUserInfo.vue +390 -0
  87. package/src/filiale/yuncheng/android/RightTree.vue +218 -0
  88. package/src/filiale/yuncheng/android/TemporarySingle.vue +522 -0
  89. package/src/filiale/yuncheng/android/ZHihuanFirst.vue +541 -0
  90. package/src/filiale/yuncheng/pc/DistributeWork.vue +199 -0
  91. package/src/filiale/yuncheng/pc/GasWork.vue +773 -0
  92. package/src/filiale/yuncheng/pc/TelFindUser.vue +31 -11
  93. package/src/filiale/yuncheng/pc/WorkList.vue +823 -0
  94. package/src/filiale/yuncheng/pc/WorkListAllNew.vue +781 -0
  95. package/src/filiale/yuncheng/telephone.js +5 -1
  96. package/src/filiale/yuncheng/telephoneAndroid.js +19 -0
  97. package/src/filiale/zhongyi/pc/WorkListAllNew.vue +2 -1
  98. package/src/main.js +22 -22
  99. package/src/telephone-android.js +7 -0
  100. package/src/telephone.js +1 -1
@@ -1,757 +1,757 @@
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="tswo.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
- <div class="form-group col-sm-6 button-range" style="margin-right: 10px">
29
- <button class="button_search button_spacing" style="margin-right: 9px"
30
- @click="search(),$dispatch('search')">查询
31
- </button>
32
-
33
-
34
- <export-excel-tel
35
- :data="$parent.$parent.searchData"
36
- :field="$parent.$parent.excelHeaders"
37
- sqlurl="rs/logic/telephoneExport"
38
- sql-name="serviceDetails"
39
- 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%">地&emsp;&emsp;址</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 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%">话&ensp;务&ensp;员</label>
122
- <input type="text" class="input_search" v-model="model.f_attendant" placeholder='话务员'
123
- condition="tswo.f_attendant like '%{}%'"
124
- :size="model.f_attendant ? model.f_attendant.length : 6">
125
- </div>
126
- </div>
127
- <div class="row" v-show="$parent.$parent.criteriaShow">
128
- <div class="col-sm-6 form-group form-input-group" style="width: 40%">
129
- <role-selector-tel
130
- role-name="维修员"
131
- role-lable="维&nbsp;修&nbsp;员"
132
- @re-res="$parent.$parent.getRes"
133
- :value.sync="model.f_checker_id"
134
- v-model="model.f_checker_id"
135
- condition="tswo.f_order_man = '{}'">
136
- </role-selector-tel>
137
- </div>
138
- <!-- <div class="col-sm-3 form-group form-input-group" style="width: 20%">-->
139
- <!-- <label class="font_normal_body" style="width: 40%">接&ensp;单&ensp;员</label>-->
140
- <!-- <input type="text" class="input_search" v-model="model.f_order_man" placeholder='接单员'-->
141
- <!-- condition="tswo.f_order_man like '%{}%'"-->
142
- <!-- :size="model.f_order_man ? model.f_order_man.length : 6">-->
143
- <!-- </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
- <div class="col-sm-3 form-group form-input-group" style="width: 20%">
153
- <label class="font_normal_body" style="width: 40%">工单状态</label>
154
- <v-select :value.sync="model.defname" v-model='model.defname'
155
- :value-single="true"
156
- :options='$parent.$parent.defnames' placeholder='工单状态'
157
- condition="sa.defname = '{}'"
158
- close-on-select></v-select>
159
- </div>
160
- <div class="col-sm-3 form-group form-input-group" style="width: 20%">
161
- <label class="font_normal_body" style="width: 40%" >报修类型</label>
162
- <v-select :value.sync="model.f_repairtype" :value-single="true" v-model="model.f_repairtype"
163
- :options='$parent.$parent.repairstypes' placeholder='报修类型'
164
- condition="f_repairtype like '%{}%'"
165
- close-on-select>
166
- </v-select>
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.f_handlingtype" :value-single="true" v-model="model.f_handlingtype"
171
- :options='$parent.$parent.handling_types' placeholder='派单类型'
172
- condition="tswo.f_handlingtype like '%{}%'"
173
- close-on-select>
174
- </v-select>
175
- </div>
176
- <div class="col-sm-3 form-group form-input-group" style="width: 20%">
177
- <label class="font_normal_body" style="width: 40%">工单结果</label>
178
- <v-select :value.sync="model.f_result_status" :value-single="true" v-model="model.f_result_status"
179
- :options='$parent.$parent.result_status' placeholder='工单结果'
180
- close-on-select>
181
- </v-select>
182
- </div>
183
- <div class="col-sm-3 form-group form-input-group" style="width: 20%">
184
- <label class="font_normal_body" style="width: 40%">派&ensp;单&ensp;员</label>
185
- <input type="text" class="input_search" v-model="model.f_single_man" placeholder='派单员'
186
- condition="tswo.f_single_man like '%{}%'"
187
- :size="model.f_single_man ? model.f_single_man.length : 6">
188
- </div>
189
- <div class="col-sm-3 form-group form-input-group" style="width: 20%">
190
- <label class="font_normal_body" style="width: 40%">客户类型</label>
191
- <v-select :value.sync="model.f_user_type" :value-single="true" v-model="model.f_user_type"
192
- :options='$parent.$parent.user_types' placeholder='客户类型'
193
- condition="tswo.f_user_type = '{}'"
194
- close-on-select>
195
- </v-select>
196
- </div>
197
- <div class="col-sm-3 form-group form-input-group" style="width: 20%">
198
- <label class="font_normal_body" style="width: 40%">维修类型</label>
199
- <input type="text" class="input_search" v-model="model.f_failure" placeholder='维修类型'
200
- condition="tf.f_failure like '%{}%'" style="width: 150px"
201
- >
202
- </div>
203
- <div class="col-sm-3 form-group form-input-group" style="width: 20%">
204
- <label class="font_normal_body" style="width: 40%">隐患备注</label>
205
- <input type="text" class="input_search" v-model="model.f_content" placeholder='隐患备注'
206
- condition="td.f_content like '%{}%'" style="width: 150px"
207
- >
208
- </div>
209
- </div>
210
- </div>
211
- </criteria>
212
-
213
- <data-grid partial='list' v-ref:grid :model="model" class="list_area table_sy">
214
- <template partial='head'>
215
- <tr>
216
- <th>
217
- <nobr>序号</nobr>
218
- </th>
219
- <th>
220
- <nobr>回访</nobr>
221
- </th>
222
- <th>
223
- <nobr>工单类型</nobr>
224
- </th>
225
- <!--<th><nobr>报修类型</nobr></th>-->
226
- <th>
227
- <nobr>工单编号</nobr>
228
- </th>
229
- <th>
230
- <nobr>派单时间</nobr>
231
- </th>
232
-
233
- <th>
234
- <nobr>客户信息</nobr>
235
- </th>
236
- <th>
237
- <nobr>联系电话</nobr>
238
- </th>
239
- <th>
240
- <nobr>故障明细</nobr>
241
- </th>
242
- <th>
243
- <nobr>工单状态</nobr>
244
- </th>
245
- <th>
246
- <nobr>派单人</nobr>
247
- </th>
248
- <th>
249
- <nobr>话务员</nobr>
250
- </th>
251
- <th>
252
- <nobr>接单员</nobr>
253
- </th>
254
- <th>
255
- <nobr>结单时间</nobr>
256
- </th>
257
- <th>
258
- <nobr>到达时间</nobr>
259
- </th>
260
- <th>
261
- <nobr>离开时间</nobr>
262
- </th>
263
-
264
- <th>
265
- <nobr>逾期状态</nobr>
266
- </th>
267
- <th>
268
- <nobr>截止时间</nobr>
269
- </th>
270
- <th>
271
- <nobr>工单结果</nobr>
272
- </th>
273
- <th>
274
- <nobr>客户类型</nobr>
275
- </th>
276
- <th>
277
- <nobr>维修类型</nobr>
278
- </th>
279
- <th>
280
- <nobr>派单类型</nobr>
281
- </th>
282
- <th>
283
- <nobr>汇总备注</nobr>
284
- </th>
285
- <th>
286
- <nobr>隐患备注</nobr>
287
- </th>
288
- </tr>
289
- </template>
290
- <template partial='body'>
291
- <td style="text-align: center;">
292
- <nobr>{{ $index + 1 }}</nobr>
293
- </td>
294
- <td style="text-align: center;">
295
- <nobr v-if="row.f_phone&&row.f_again_revisit!='否'">
296
- <button-link type="button" class="btn btn-link"
297
- @click="$parent.$parent.$parent.playWav(row.f_phone,row)">回访
298
- </button-link>
299
- </nobr>
300
- <nobr v-if="(!row.f_phone)||row.f_again_revisit=='否'">回访</nobr>
301
- </td>
302
- <td style="text-align: center;">
303
- <nobr>{{ row.f_workorder_type }}</nobr>
304
- </td>
305
-
306
- <td style="text-align: center;">
307
- <nobr>{{ row.f_service_id }}</nobr>
308
- </td>
309
- <td style="text-align: center;">
310
- <nobr>{{ row.f_created_date }}</nobr>
311
- </td>
312
-
313
- <td>
314
- <nobr>
315
- {{ row.f_userinfo_code }}&nbsp;&nbsp;&nbsp;{{ row.f_user_name }}&nbsp;&nbsp;&nbsp;{{ row.f_address }}&nbsp;&nbsp;&nbsp;
316
- </nobr>
317
- </td>
318
- <td style="text-align: center;">
319
- <nobr>{{ row.f_contact_phone }}</nobr>
320
- </td>
321
- <td>
322
- <nobr>{{ $parent.$parent.$parent.trouble(row.failure) }}</nobr>
323
- </td>
324
- <td style="text-align: center;">
325
- <nobr>
326
- <!-- row.defname ?row.defname: (row.f_state === '撤销' ? '撤销' : '完成')-->
327
- {{ row.f_state ?row.f_state:(row.defname ?row.defname:'完成')}}
328
- </nobr>
329
- </td>
330
- <td style="text-align: center;">
331
- <nobr>{{ row.f_single_man }}</nobr>
332
- </td>
333
- <td style="text-align: center;">
334
- <nobr>{{ row.f_attendant }}</nobr>
335
- </td>
336
- <td style="text-align: center;">
337
- <nobr>{{ row.f_order_man }} {{ row.f_repairman_phone }}</nobr>
338
- </td>
339
- <td style="text-align: center;">
340
- <nobr>{{ row.f_date }}</nobr>
341
- </td>
342
- <td style="text-align: center;">
343
- <nobr>{{ row.f_date_come }}</nobr>
344
- </td>
345
- <td style="text-align: center;">
346
- <nobr>{{ row.f_date_leave }}</nobr>
347
- </td>
348
-
349
- <td style="text-align: center;">
350
- <nobr>{{ $parent.$parent.$parent.d1(row)}}</nobr>
351
- </td>
352
- <td style="text-align: center;">
353
- <nobr>{{ row.f_finish_date == '1900-01-01 00:00:00' ? '' : row.f_finish_date }}</nobr>
354
- </td>
355
- <td style="text-align: center;">
356
- <nobr>{{ row.f_result_status }}</nobr>
357
- </td>
358
- <td style="text-align: center;">
359
- <nobr>{{ row.f_user_type }}</nobr>
360
- </td>
361
- <td style="text-align: center;">
362
- <nobr>{{ row.f_failure }}</nobr>
363
- </td>
364
- <td style="text-align: center;">
365
- <nobr>{{ row.f_handlingtype }}</nobr>
366
- </td>
367
- <td style="text-align: center;">
368
- <nobr>{{ row.f_repair_remarks }}</nobr>
369
- </td>
370
- <td style="text-align: center;">
371
- <nobr>{{ row.f_content }}</nobr>
372
- </td>
373
- </template>
374
- </data-grid>
375
- </criteria-paged>
376
- </div>
377
- <!--打印-->
378
- <modal :show.sync="printshow" v-ref:modal backdrop="false">
379
- <header slot="modal-header" class="modal-header text-center">
380
- <h4 class="modal-title">打印列选择</h4>
381
- <input type="checkbox" class="" id="f_generations" v-model="all">
382
- <label for="f_generations" class="font-size">全选</label>
383
- </header>
384
- <article slot="modal-body">
385
- <div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
386
- <div class="col-sm-3" v-for="f in fields">
387
- <input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
388
- <label :for="'water-owe-details-'+$index" class="font-size">{{ f }}</label>
389
- </div>
390
- </div>
391
- </article>
392
- <footer slot="modal-footer" class="modal-footer">
393
- <center>
394
- <button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
395
- <button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
396
- <print-table :model='model' v-show="false" v-ref:print
397
- :top='40' :left='60' :right='40' :bottom='60'
398
- :thead="thead" :tfoot='tfoot' :attach="yangsen"
399
- :fields="modelval">
400
- </print-table>
401
- </center>
402
- </footer>
403
- </modal>
404
- </div>
405
- <modal :show.sync="showVisit" v-ref:modal backdrop="false">
406
- <header slot="modal-header" class="modal-header">
407
- </header>
408
- <article slot="modal-body" class="modal-body">
409
- <visit-info v-if="showVisit" :row="visitrow" :phone="wavflie"
410
- @show-obj="watchShow"></visit-info>
411
- </article>
412
- <footer slot="modal-footer" class="modal-footer">
413
- </footer>
414
- </modal>
415
- <modal :show.sync="imgshow" v-ref:modal backdrop="true">
416
- <header slot="modal-header" class="modal-header">
417
- 在线抢修照片
418
- </header>
419
- <article slot="modal-body" class="modal-body">
420
- <div class="from-group">
421
- <img-self :src="imgfilename" width="500" height="500"></img-self>
422
- </div>
423
- </article>
424
- <footer slot="modal-footer" class="modal-footer">
425
- <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
426
- </footer>
427
- </modal>
428
- </template>
429
-
430
- <script>
431
- import {PagedList} from 'vue-client'
432
- import DelayReply from '../../../components/pc/DelayReply'
433
- import defaultPrint from '../../../components/pc/config/DefaultPrint'
434
- import {HttpResetClass} from 'vue-client'
435
-
436
- export default {
437
- title: '工单列表',
438
- data () {
439
- return {
440
- orgstrs: [{label: '全部', value: ''}],
441
- editflag: null,
442
- showVisit: false,
443
- outltime: this.getNowFormatDate(),
444
- wavflie: '',
445
- selectone: '',
446
- model: new PagedList('rs/sql/serviceDetails', 20),
447
- row: null,
448
- orderMan: '',
449
- user_types:[{label: '全部', value: ''}, {label: '民用', value: '民用'},{label: '非民用', value: '非民用'}],
450
- handling_types:[{label: '全部', value: ''}, {label: '转站点', value: '转站点'},{label: '转维修员', value: '转维修员'},{label: '转运营系统', value: '转运营系统'}],
451
- msgs: [],
452
- service: Object,
453
- pendingCount: 0,
454
- // 打印
455
- all: false,
456
- modelval: [],
457
- visitrow: {},
458
- printshow: false,
459
- imgshow: false,
460
- imgfilename: '',
461
- fields: {},
462
- thead: '',
463
- tfoot: '',
464
- zhihuans: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '异常', value: '异常'}],
465
- headData: ['工单类型', '工单编号', '派单时间','客户信息', '联系电话', '故障明细', '工单状态', '派单人', '话务员','接单员',
466
- '结单时间','到达时间', '离开时间','逾期状态','截止时间','工单结果','派单类型'],
467
- bodyData: ['f_workorder_type', 'f_service_id', 'f_created_date', 'f_customer_info_show','f_contact_phone', 'f_json',
468
- 'f_state_show', 'f_single_man','f_attendant','f_order_man','f_date','f_date_come','f_date_leave',
469
- 'f_overdue_show','f_finish_time_show','f_result_status','f_handlingtype'],
470
- searchData: {
471
- condition: '1=1'
472
- },
473
- excelHeaders: {
474
- 'f_workorder_type': '工单类型',
475
- 'f_service_id': '工单编号',
476
- 'f_created_date': '派单时间',
477
- 'f_userinfo_code': '客户编号',
478
- 'f_user_name': '客户姓名',
479
- 'f_address': '地址',
480
- 'f_contact_phone': '联系电话',
481
- 'f_json': '故障明细',
482
- 'f_state_show': '工单状态',
483
- 'f_single_man': '派单人',
484
- 'f_attendant': '话务员',
485
- 'f_order_man': '接单员',
486
- 'f_date': '结单时间',
487
- 'f_date_come': '到达时间',
488
- 'f_date_leave': '离开时间',
489
- 'f_overdue_show': '逾期状态',
490
- 'f_finish_time_show': '截止时间',
491
- 'f_result_status': '工单结果',
492
- 'f_user_type': '客户类型',
493
- 'f_failure': '维修类型',
494
- 'f_handlingtype': '派单类型',
495
- 'f_repair_remarks': '汇总备注',
496
- 'f_content': '隐患备注'
497
- },
498
- criteriaShow: false
499
- }
500
- },
501
- props: {
502
- user: {
503
- type: Object
504
- },
505
- sum: 0,
506
- maintenance: [],
507
-
508
- serviceId: '',
509
-
510
- defname: {
511
- type: String
512
- },
513
- systemshow: {
514
- type: Boolean,
515
- default: false
516
- }
517
- },
518
- ready () {
519
- this.selfSearch()
520
- console.log(this.model)
521
- },
522
- watch: {
523
- 'all' (val) {
524
- if (val) {
525
- this.modelval = this.bodyData
526
- } else {
527
- this.modelval = defaultPrint.config
528
- this.put()
529
- }
530
- },
531
- 'modelval.length' () {
532
- this.put()
533
- },
534
- 'serviceId' () {
535
- this.selfSearch()
536
- },
537
- 'sum' (val) {
538
- this.selfSearch()
539
- //this.model.search()
540
- }
541
- },
542
- methods: {
543
- d1(row){
544
- return row.f_workorder_type == '报修单'?(row.f_result_status == '已完成'?(this.datejisuan(row.f_finish_date,row.f_date)<0?'已逾期':'未逾期'):(this.datejisuan(row.f_finish_date,this.getNowFormatDate())<0?'已逾期':'未逾期')):''
545
- },
546
- d2(row){
547
- const result = row.f_workorder_type == '报修单'?(row.f_result_status == '已完成'?(this.datejisuan(row.f_finish_date,row.f_date)<0?this.formatDuring(new Date(row.f_date).getTime(),new Date(row.f_finish_date).getTime()):'未逾期'):(this.datejisuan(row.f_finish_date,'')<0?this.formatDuring(new Date().getTime(),new Date(row.f_finish_date).getTime()):'未逾期')):''
548
- if (result == '未逾期' && row.f_finish_date == '1900-01-01 00:00:00'){
549
- return ''
550
- }
551
- return result
552
- },
553
- datejisuan(a,b){
554
- if (a && b && a != '1900-01-01 00:00:00'){
555
- return new Date(a).getTime()-new Date(b).getTime()
556
- }else {
557
- return ''
558
- }
559
- },
560
- getNowFormatDate () {
561
- var date = new Date()
562
- var seperator1 = '-'
563
- var seperator2 = ':'
564
- var month = date.getMonth() + 1
565
- var strDate = date.getDate()
566
- var hour = date.getHours()
567
- var min = date.getMinutes()
568
- var second = date.getSeconds()
569
- if (month >= 1 && month <= 9) {
570
- month = '0' + month
571
- }
572
- if (strDate >= 0 && strDate <= 9) {
573
- strDate = '0' + strDate
574
- }
575
- if (hour >= 0 && hour <= 9) {
576
- hour = '0' + hour
577
- }
578
- if (min >= 0 && min <= 9) {
579
- min = '0' + min
580
- }
581
- if (second >= 0 && second <= 9) {
582
- second = '0' + second
583
- }
584
- var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
585
- + ' ' + hour + seperator2 + min
586
- + seperator2 + second
587
- return currentdate
588
- },
589
- watchShow (val) {
590
- this.visitrow = {}
591
- this.showVisit = val
592
- this.selfSearch()
593
- },
594
- playWav (val, val2) {
595
- //tag
596
- this.wavflie = val
597
- this.visitrow = val2
598
- this.showVisit = true
599
- },
600
- showpicture (val) {
601
- //tag
602
- //tag)
603
- this.imgshow = true
604
- this.imgfilename = 'rs/image/file/' + val.f_single_path
605
- },
606
- imgclose () {
607
- this.imgshow = false
608
- },
609
- yccolor (val) {
610
- if (val == '异常') {
611
- return 'color:red'
612
- }
613
- return ''
614
- },
615
-
616
- search (args) {
617
-
618
- if (this.f_filialeids) {
619
- args.condition += ` and f_filiale_id in ${this.f_filialeids}`
620
- } else {
621
- args.condition += ` and f_filiale_id = '${this.$login.f.orgid}'`
622
- }
623
- if (args.model.f_result_status) {
624
- if (args.model.f_result_status == '已完成') {
625
- args.condition += ` and (sa.defname in ('处理完成','维修完成','结案','撤销') or sa.defname is null)`
626
- }else {
627
- args.condition += ` and sa.defname in ('话务员派单','维修员接单','站点接单') `
628
- }
629
- }
630
- this.searchData.condition = args.condition
631
- return this.model.search(args.condition, args.model)
632
- },
633
- selfSearch () {
634
- // 取消编辑状态
635
- let condition = '1=1'
636
-
637
- if (this.f_filialeids) {
638
- condition += ` and f_filiale_id in ${this.f_filialeids}`
639
- //tag
640
- } else {
641
- condition += ` and f_filiale_id = '${this.$login.f.orgid}'`
642
- }
643
- return this.model.search(condition)
644
- },
645
-
646
- // 发送数据给业务逻辑,并刷新界面
647
-
648
- // 是否可以退回
649
-
650
- trouble (val) {
651
- let failureall=''
652
- // val=[{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""}]
653
-
654
- let failure = JSON.parse(val)
655
- for (let i = 0; i <failure.length; i++) {
656
- if (failure[i].failurecase.length>0){
657
- failureall+=failure[i].f_failure_type+":"
658
- for (let j = 0; j < failure[i].failurecase.length; j++) {
659
- failureall+=failure[i].failurecase[j]
660
- if (j+1!=failure[i].failurecase.length){
661
- failureall+=","
662
- }
663
- }
664
-
665
- }else{
666
- failureall+=failure[i].f_failure_type
667
- }
668
- if (i+1!=failure.length){
669
- failureall+=';'
670
- }
671
- }
672
- return failureall
673
- },
674
- // 打印
675
- stamp () {
676
- this.all = false
677
- // 默认选择要打印的列
678
- this.modelval = defaultPrint.config
679
- this.fields = this.getfield
680
- this.printshow = true
681
- this.put()
682
- },
683
- put () {
684
- // 对Modelval进行排序
685
- this.sortModelval()
686
- this.thead = `<tr><th colspan=${this.modelval.length}>工单详情报表</th></tr><tr>`
687
- for (let key of this.modelval) {
688
- this.thead += '<th>' + this.fields[key] + '</th>'
689
- }
690
- this.thead += '</tr>'
691
- },
692
- print () {
693
- this.$refs.print.PrintAsFile()
694
- this.printshow = false
695
- },
696
- close () {
697
- this.printshow = false
698
- this.all = false
699
- },
700
- // 对选择的列进行排序
701
- sortModelval () {
702
- let sortModel = []
703
- Object.keys(this.fields).forEach((key) => {
704
- if (this.modelval.includes(key)) {
705
- sortModel.push(key)
706
- }
707
- })
708
- this.modelval = sortModel
709
- },
710
- hidden () {
711
- this.criteriaShow = !this.criteriaShow
712
- },
713
- getRes (obj) {
714
- //tag
715
- ////tag)
716
- this.f_filialeids = this.$login.convertToIn(obj.resids)
717
- //tag
718
- },
719
- formatDuring (s1,s2) {
720
- var millisecond = s1-s2
721
- var days = parseInt(millisecond / (1000 * 60 * 60 * 24))
722
- var hours = parseInt((millisecond % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60))
723
- var minutes = parseInt((millisecond % (1000 * 60 * 60)) / (1000 * 60))
724
- var seconds = parseInt((millisecond % (1000 * 60)) / 1000)
725
- return days + "天" + hours + "小时" + minutes + "分钟" + seconds + "秒"
726
- }
727
-
728
- },
729
- computed: {
730
- result_status(){
731
- return this.$appdata.getParam('呼叫工单结果')?[{label: '全部', value: ''}, ...this.$appdata.getParam('呼叫工单结果')] : [{label: '全部', value: ''}]
732
- },
733
- defnames () {
734
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('呼叫工单状态')]
735
- },
736
- repairstypes () {
737
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('报修全部类型')]
738
- },
739
- serviceorders () {
740
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('工单类型')]
741
- },
742
- sources () {
743
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('工单来源')]
744
- },
745
- getfield () {
746
- let data = {}
747
- this.bodyData.forEach((value, index) => {
748
- data[this.bodyData[index]] = this.headData[index]
749
- })
750
- return data
751
- }
752
- },
753
- components: {
754
- 'delay-reply': DelayReply
755
- }
756
- }
757
- </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="tswo.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
+ <div class="form-group col-sm-6 button-range" style="margin-right: 10px">
29
+ <button class="button_search button_spacing" style="margin-right: 9px"
30
+ @click="search(),$dispatch('search')">查询
31
+ </button>
32
+
33
+
34
+ <export-excel-tel
35
+ :data="$parent.$parent.searchData"
36
+ :field="$parent.$parent.excelHeaders"
37
+ sqlurl="rs/logic/telephoneExport"
38
+ sql-name="serviceDetails"
39
+ 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%">地&emsp;&emsp;址</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 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%">话&ensp;务&ensp;员</label>
122
+ <input type="text" class="input_search" v-model="model.f_attendant" placeholder='话务员'
123
+ condition="tswo.f_attendant like '%{}%'"
124
+ :size="model.f_attendant ? model.f_attendant.length : 6">
125
+ </div>
126
+ </div>
127
+ <div class="row" v-show="$parent.$parent.criteriaShow">
128
+ <div class="col-sm-6 form-group form-input-group" style="width: 40%">
129
+ <role-selector-tel
130
+ role-name="维修员"
131
+ role-lable="维&nbsp;修&nbsp;员"
132
+ @re-res="$parent.$parent.getRes"
133
+ :value.sync="model.f_checker_id"
134
+ v-model="model.f_checker_id"
135
+ condition="tswo.f_order_man = '{}'">
136
+ </role-selector-tel>
137
+ </div>
138
+ <!-- <div class="col-sm-3 form-group form-input-group" style="width: 20%">-->
139
+ <!-- <label class="font_normal_body" style="width: 40%">接&ensp;单&ensp;员</label>-->
140
+ <!-- <input type="text" class="input_search" v-model="model.f_order_man" placeholder='接单员'-->
141
+ <!-- condition="tswo.f_order_man like '%{}%'"-->
142
+ <!-- :size="model.f_order_man ? model.f_order_man.length : 6">-->
143
+ <!-- </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
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
153
+ <label class="font_normal_body" style="width: 40%">工单状态</label>
154
+ <v-select :value.sync="model.defname" v-model='model.defname'
155
+ :value-single="true"
156
+ :options='$parent.$parent.defnames' placeholder='工单状态'
157
+ condition="sa.defname = '{}'"
158
+ close-on-select></v-select>
159
+ </div>
160
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
161
+ <label class="font_normal_body" style="width: 40%" >报修类型</label>
162
+ <v-select :value.sync="model.f_repairtype" :value-single="true" v-model="model.f_repairtype"
163
+ :options='$parent.$parent.repairstypes' placeholder='报修类型'
164
+ condition="f_repairtype like '%{}%'"
165
+ close-on-select>
166
+ </v-select>
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.f_handlingtype" :value-single="true" v-model="model.f_handlingtype"
171
+ :options='$parent.$parent.handling_types' placeholder='派单类型'
172
+ condition="tswo.f_handlingtype like '%{}%'"
173
+ close-on-select>
174
+ </v-select>
175
+ </div>
176
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
177
+ <label class="font_normal_body" style="width: 40%">工单结果</label>
178
+ <v-select :value.sync="model.f_result_status" :value-single="true" v-model="model.f_result_status"
179
+ :options='$parent.$parent.result_status' placeholder='工单结果'
180
+ close-on-select>
181
+ </v-select>
182
+ </div>
183
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
184
+ <label class="font_normal_body" style="width: 40%">派&ensp;单&ensp;员</label>
185
+ <input type="text" class="input_search" v-model="model.f_single_man" placeholder='派单员'
186
+ condition="tswo.f_single_man like '%{}%'"
187
+ :size="model.f_single_man ? model.f_single_man.length : 6">
188
+ </div>
189
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
190
+ <label class="font_normal_body" style="width: 40%">客户类型</label>
191
+ <v-select :value.sync="model.f_user_type" :value-single="true" v-model="model.f_user_type"
192
+ :options='$parent.$parent.user_types' placeholder='客户类型'
193
+ condition="tswo.f_user_type = '{}'"
194
+ close-on-select>
195
+ </v-select>
196
+ </div>
197
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
198
+ <label class="font_normal_body" style="width: 40%">维修类型</label>
199
+ <input type="text" class="input_search" v-model="model.f_failure" placeholder='维修类型'
200
+ condition="tf.f_failure like '%{}%'" style="width: 150px"
201
+ >
202
+ </div>
203
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
204
+ <label class="font_normal_body" style="width: 40%">隐患备注</label>
205
+ <input type="text" class="input_search" v-model="model.f_content" placeholder='隐患备注'
206
+ condition="td.f_content like '%{}%'" style="width: 150px"
207
+ >
208
+ </div>
209
+ </div>
210
+ </div>
211
+ </criteria>
212
+
213
+ <data-grid partial='list' v-ref:grid :model="model" class="list_area table_sy">
214
+ <template partial='head'>
215
+ <tr>
216
+ <th>
217
+ <nobr>序号</nobr>
218
+ </th>
219
+ <th>
220
+ <nobr>回访</nobr>
221
+ </th>
222
+ <th>
223
+ <nobr>工单类型</nobr>
224
+ </th>
225
+ <!--<th><nobr>报修类型</nobr></th>-->
226
+ <th>
227
+ <nobr>工单编号</nobr>
228
+ </th>
229
+ <th>
230
+ <nobr>派单时间</nobr>
231
+ </th>
232
+
233
+ <th>
234
+ <nobr>客户信息</nobr>
235
+ </th>
236
+ <th>
237
+ <nobr>联系电话</nobr>
238
+ </th>
239
+ <th>
240
+ <nobr>故障明细</nobr>
241
+ </th>
242
+ <th>
243
+ <nobr>工单状态</nobr>
244
+ </th>
245
+ <th>
246
+ <nobr>派单人</nobr>
247
+ </th>
248
+ <th>
249
+ <nobr>话务员</nobr>
250
+ </th>
251
+ <th>
252
+ <nobr>接单员</nobr>
253
+ </th>
254
+ <th>
255
+ <nobr>结单时间</nobr>
256
+ </th>
257
+ <th>
258
+ <nobr>到达时间</nobr>
259
+ </th>
260
+ <th>
261
+ <nobr>离开时间</nobr>
262
+ </th>
263
+
264
+ <th>
265
+ <nobr>逾期状态</nobr>
266
+ </th>
267
+ <th>
268
+ <nobr>截止时间</nobr>
269
+ </th>
270
+ <th>
271
+ <nobr>工单结果</nobr>
272
+ </th>
273
+ <th>
274
+ <nobr>客户类型</nobr>
275
+ </th>
276
+ <th>
277
+ <nobr>维修类型</nobr>
278
+ </th>
279
+ <th>
280
+ <nobr>派单类型</nobr>
281
+ </th>
282
+ <th>
283
+ <nobr>汇总备注</nobr>
284
+ </th>
285
+ <th>
286
+ <nobr>隐患备注</nobr>
287
+ </th>
288
+ </tr>
289
+ </template>
290
+ <template partial='body'>
291
+ <td style="text-align: center;">
292
+ <nobr>{{ $index + 1 }}</nobr>
293
+ </td>
294
+ <td style="text-align: center;">
295
+ <nobr v-if="row.f_phone&&row.f_again_revisit!='否'">
296
+ <button-link type="button" class="btn btn-link"
297
+ @click="$parent.$parent.$parent.playWav(row.f_phone,row)">回访
298
+ </button-link>
299
+ </nobr>
300
+ <nobr v-if="(!row.f_phone)||row.f_again_revisit=='否'">回访</nobr>
301
+ </td>
302
+ <td style="text-align: center;">
303
+ <nobr>{{ row.f_workorder_type }}</nobr>
304
+ </td>
305
+
306
+ <td style="text-align: center;">
307
+ <nobr>{{ row.f_service_id }}</nobr>
308
+ </td>
309
+ <td style="text-align: center;">
310
+ <nobr>{{ row.f_created_date }}</nobr>
311
+ </td>
312
+
313
+ <td>
314
+ <nobr>
315
+ {{ row.f_userinfo_code }}&nbsp;&nbsp;&nbsp;{{ row.f_user_name }}&nbsp;&nbsp;&nbsp;{{ row.f_address }}&nbsp;&nbsp;&nbsp;
316
+ </nobr>
317
+ </td>
318
+ <td style="text-align: center;">
319
+ <nobr>{{ row.f_contact_phone }}</nobr>
320
+ </td>
321
+ <td>
322
+ <nobr>{{ $parent.$parent.$parent.trouble(row.failure) }}</nobr>
323
+ </td>
324
+ <td style="text-align: center;">
325
+ <nobr>
326
+ <!-- row.defname ?row.defname: (row.f_state === '撤销' ? '撤销' : '完成')-->
327
+ {{ row.f_state ?row.f_state:(row.defname ?row.defname:'完成')}}
328
+ </nobr>
329
+ </td>
330
+ <td style="text-align: center;">
331
+ <nobr>{{ row.f_single_man }}</nobr>
332
+ </td>
333
+ <td style="text-align: center;">
334
+ <nobr>{{ row.f_attendant }}</nobr>
335
+ </td>
336
+ <td style="text-align: center;">
337
+ <nobr>{{ row.f_order_man }} {{ row.f_repairman_phone }}</nobr>
338
+ </td>
339
+ <td style="text-align: center;">
340
+ <nobr>{{ row.f_date }}</nobr>
341
+ </td>
342
+ <td style="text-align: center;">
343
+ <nobr>{{ row.f_date_come }}</nobr>
344
+ </td>
345
+ <td style="text-align: center;">
346
+ <nobr>{{ row.f_date_leave }}</nobr>
347
+ </td>
348
+
349
+ <td style="text-align: center;">
350
+ <nobr>{{ $parent.$parent.$parent.d1(row)}}</nobr>
351
+ </td>
352
+ <td style="text-align: center;">
353
+ <nobr>{{ row.f_finish_date == '1900-01-01 00:00:00' ? '' : row.f_finish_date }}</nobr>
354
+ </td>
355
+ <td style="text-align: center;">
356
+ <nobr>{{ row.f_result_status }}</nobr>
357
+ </td>
358
+ <td style="text-align: center;">
359
+ <nobr>{{ row.f_user_type }}</nobr>
360
+ </td>
361
+ <td style="text-align: center;">
362
+ <nobr>{{ row.f_failure }}</nobr>
363
+ </td>
364
+ <td style="text-align: center;">
365
+ <nobr>{{ row.f_handlingtype }}</nobr>
366
+ </td>
367
+ <td style="text-align: center;">
368
+ <nobr>{{ row.f_repair_remarks }}</nobr>
369
+ </td>
370
+ <td style="text-align: center;">
371
+ <nobr>{{ row.f_content }}</nobr>
372
+ </td>
373
+ </template>
374
+ </data-grid>
375
+ </criteria-paged>
376
+ </div>
377
+ <!--打印-->
378
+ <modal :show.sync="printshow" v-ref:modal backdrop="false">
379
+ <header slot="modal-header" class="modal-header text-center">
380
+ <h4 class="modal-title">打印列选择</h4>
381
+ <input type="checkbox" class="" id="f_generations" v-model="all">
382
+ <label for="f_generations" class="font-size">全选</label>
383
+ </header>
384
+ <article slot="modal-body">
385
+ <div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
386
+ <div class="col-sm-3" v-for="f in fields">
387
+ <input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
388
+ <label :for="'water-owe-details-'+$index" class="font-size">{{ f }}</label>
389
+ </div>
390
+ </div>
391
+ </article>
392
+ <footer slot="modal-footer" class="modal-footer">
393
+ <center>
394
+ <button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
395
+ <button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
396
+ <print-table :model='model' v-show="false" v-ref:print
397
+ :top='40' :left='60' :right='40' :bottom='60'
398
+ :thead="thead" :tfoot='tfoot' :attach="yangsen"
399
+ :fields="modelval">
400
+ </print-table>
401
+ </center>
402
+ </footer>
403
+ </modal>
404
+ </div>
405
+ <modal :show.sync="showVisit" v-ref:modal backdrop="false">
406
+ <header slot="modal-header" class="modal-header">
407
+ </header>
408
+ <article slot="modal-body" class="modal-body">
409
+ <visit-info v-if="showVisit" :row="visitrow" :phone="wavflie"
410
+ @show-obj="watchShow"></visit-info>
411
+ </article>
412
+ <footer slot="modal-footer" class="modal-footer">
413
+ </footer>
414
+ </modal>
415
+ <modal :show.sync="imgshow" v-ref:modal backdrop="true">
416
+ <header slot="modal-header" class="modal-header">
417
+ 在线抢修照片
418
+ </header>
419
+ <article slot="modal-body" class="modal-body">
420
+ <div class="from-group">
421
+ <img-self :src="imgfilename" width="500" height="500"></img-self>
422
+ </div>
423
+ </article>
424
+ <footer slot="modal-footer" class="modal-footer">
425
+ <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
426
+ </footer>
427
+ </modal>
428
+ </template>
429
+
430
+ <script>
431
+ import {PagedList} from 'vue-client'
432
+ import DelayReply from '../../../components/pc/DelayReply'
433
+ import defaultPrint from '../../../components/pc/config/DefaultPrint'
434
+ import {HttpResetClass} from 'vue-client'
435
+
436
+ export default {
437
+ title: '工单列表',
438
+ data () {
439
+ return {
440
+ orgstrs: [{label: '全部', value: ''}],
441
+ editflag: null,
442
+ showVisit: false,
443
+ outltime: this.getNowFormatDate(),
444
+ wavflie: '',
445
+ selectone: '',
446
+ model: new PagedList('rs/sql/serviceDetails', 20),
447
+ row: null,
448
+ orderMan: '',
449
+ user_types:[{label: '全部', value: ''}, {label: '民用', value: '民用'},{label: '非民用', value: '非民用'}],
450
+ handling_types:[{label: '全部', value: ''}, {label: '转站点', value: '转站点'},{label: '转维修员', value: '转维修员'},{label: '转运营系统', value: '转运营系统'}],
451
+ msgs: [],
452
+ service: Object,
453
+ pendingCount: 0,
454
+ // 打印
455
+ all: false,
456
+ modelval: [],
457
+ visitrow: {},
458
+ printshow: false,
459
+ imgshow: false,
460
+ imgfilename: '',
461
+ fields: {},
462
+ thead: '',
463
+ tfoot: '',
464
+ zhihuans: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '异常', value: '异常'}],
465
+ headData: ['工单类型', '工单编号', '派单时间','客户信息', '联系电话', '故障明细', '工单状态', '派单人', '话务员','接单员',
466
+ '结单时间','到达时间', '离开时间','逾期状态','截止时间','工单结果','派单类型'],
467
+ bodyData: ['f_workorder_type', 'f_service_id', 'f_created_date', 'f_customer_info_show','f_contact_phone', 'f_json',
468
+ 'f_state_show', 'f_single_man','f_attendant','f_order_man','f_date','f_date_come','f_date_leave',
469
+ 'f_overdue_show','f_finish_time_show','f_result_status','f_handlingtype'],
470
+ searchData: {
471
+ condition: '1=1'
472
+ },
473
+ excelHeaders: {
474
+ 'f_workorder_type': '工单类型',
475
+ 'f_service_id': '工单编号',
476
+ 'f_created_date': '派单时间',
477
+ 'f_userinfo_code': '客户编号',
478
+ 'f_user_name': '客户姓名',
479
+ 'f_address': '地址',
480
+ 'f_contact_phone': '联系电话',
481
+ 'f_json': '故障明细',
482
+ 'f_state_show': '工单状态',
483
+ 'f_single_man': '派单人',
484
+ 'f_attendant': '话务员',
485
+ 'f_order_man': '接单员',
486
+ 'f_date': '结单时间',
487
+ 'f_date_come': '到达时间',
488
+ 'f_date_leave': '离开时间',
489
+ 'f_overdue_show': '逾期状态',
490
+ 'f_finish_time_show': '截止时间',
491
+ 'f_result_status': '工单结果',
492
+ 'f_user_type': '客户类型',
493
+ 'f_failure': '维修类型',
494
+ 'f_handlingtype': '派单类型',
495
+ 'f_repair_remarks': '汇总备注',
496
+ 'f_content': '隐患备注'
497
+ },
498
+ criteriaShow: false
499
+ }
500
+ },
501
+ props: {
502
+ user: {
503
+ type: Object
504
+ },
505
+ sum: 0,
506
+ maintenance: [],
507
+
508
+ serviceId: '',
509
+
510
+ defname: {
511
+ type: String
512
+ },
513
+ systemshow: {
514
+ type: Boolean,
515
+ default: false
516
+ }
517
+ },
518
+ ready () {
519
+ this.selfSearch()
520
+ console.log(this.model)
521
+ },
522
+ watch: {
523
+ 'all' (val) {
524
+ if (val) {
525
+ this.modelval = this.bodyData
526
+ } else {
527
+ this.modelval = defaultPrint.config
528
+ this.put()
529
+ }
530
+ },
531
+ 'modelval.length' () {
532
+ this.put()
533
+ },
534
+ 'serviceId' () {
535
+ this.selfSearch()
536
+ },
537
+ 'sum' (val) {
538
+ this.selfSearch()
539
+ //this.model.search()
540
+ }
541
+ },
542
+ methods: {
543
+ d1(row){
544
+ return row.f_workorder_type == '报修单'?(row.f_result_status == '已完成'?(this.datejisuan(row.f_finish_date,row.f_date)<0?'已逾期':'未逾期'):(this.datejisuan(row.f_finish_date,this.getNowFormatDate())<0?'已逾期':'未逾期')):''
545
+ },
546
+ d2(row){
547
+ const result = row.f_workorder_type == '报修单'?(row.f_result_status == '已完成'?(this.datejisuan(row.f_finish_date,row.f_date)<0?this.formatDuring(new Date(row.f_date).getTime(),new Date(row.f_finish_date).getTime()):'未逾期'):(this.datejisuan(row.f_finish_date,'')<0?this.formatDuring(new Date().getTime(),new Date(row.f_finish_date).getTime()):'未逾期')):''
548
+ if (result == '未逾期' && row.f_finish_date == '1900-01-01 00:00:00'){
549
+ return ''
550
+ }
551
+ return result
552
+ },
553
+ datejisuan(a,b){
554
+ if (a && b && a != '1900-01-01 00:00:00'){
555
+ return new Date(a).getTime()-new Date(b).getTime()
556
+ }else {
557
+ return ''
558
+ }
559
+ },
560
+ getNowFormatDate () {
561
+ var date = new Date()
562
+ var seperator1 = '-'
563
+ var seperator2 = ':'
564
+ var month = date.getMonth() + 1
565
+ var strDate = date.getDate()
566
+ var hour = date.getHours()
567
+ var min = date.getMinutes()
568
+ var second = date.getSeconds()
569
+ if (month >= 1 && month <= 9) {
570
+ month = '0' + month
571
+ }
572
+ if (strDate >= 0 && strDate <= 9) {
573
+ strDate = '0' + strDate
574
+ }
575
+ if (hour >= 0 && hour <= 9) {
576
+ hour = '0' + hour
577
+ }
578
+ if (min >= 0 && min <= 9) {
579
+ min = '0' + min
580
+ }
581
+ if (second >= 0 && second <= 9) {
582
+ second = '0' + second
583
+ }
584
+ var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
585
+ + ' ' + hour + seperator2 + min
586
+ + seperator2 + second
587
+ return currentdate
588
+ },
589
+ watchShow (val) {
590
+ this.visitrow = {}
591
+ this.showVisit = val
592
+ this.selfSearch()
593
+ },
594
+ playWav (val, val2) {
595
+ //tag
596
+ this.wavflie = val
597
+ this.visitrow = val2
598
+ this.showVisit = true
599
+ },
600
+ showpicture (val) {
601
+ //tag
602
+ //tag)
603
+ this.imgshow = true
604
+ this.imgfilename = 'rs/image/file/' + val.f_single_path
605
+ },
606
+ imgclose () {
607
+ this.imgshow = false
608
+ },
609
+ yccolor (val) {
610
+ if (val == '异常') {
611
+ return 'color:red'
612
+ }
613
+ return ''
614
+ },
615
+
616
+ search (args) {
617
+
618
+ if (this.f_filialeids) {
619
+ args.condition += ` and f_filiale_id in ${this.f_filialeids}`
620
+ } else {
621
+ args.condition += ` and f_filiale_id = '${this.$login.f.orgid}'`
622
+ }
623
+ if (args.model.f_result_status) {
624
+ if (args.model.f_result_status == '已完成') {
625
+ args.condition += ` and (sa.defname in ('处理完成','维修完成','结案','撤销') or sa.defname is null)`
626
+ }else {
627
+ args.condition += ` and sa.defname in ('话务员派单','维修员接单','站点接单') `
628
+ }
629
+ }
630
+ this.searchData.condition = args.condition
631
+ return this.model.search(args.condition, args.model)
632
+ },
633
+ selfSearch () {
634
+ // 取消编辑状态
635
+ let condition = '1=1'
636
+
637
+ if (this.f_filialeids) {
638
+ condition += ` and f_filiale_id in ${this.f_filialeids}`
639
+ //tag
640
+ } else {
641
+ condition += ` and f_filiale_id = '${this.$login.f.orgid}'`
642
+ }
643
+ return this.model.search(condition)
644
+ },
645
+
646
+ // 发送数据给业务逻辑,并刷新界面
647
+
648
+ // 是否可以退回
649
+
650
+ trouble (val) {
651
+ let failureall=''
652
+ // val=[{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""}]
653
+
654
+ let failure = JSON.parse(val)
655
+ for (let i = 0; i <failure.length; i++) {
656
+ if (failure[i].failurecase.length>0){
657
+ failureall+=failure[i].f_failure_type+":"
658
+ for (let j = 0; j < failure[i].failurecase.length; j++) {
659
+ failureall+=failure[i].failurecase[j]
660
+ if (j+1!=failure[i].failurecase.length){
661
+ failureall+=","
662
+ }
663
+ }
664
+
665
+ }else{
666
+ failureall+=failure[i].f_failure_type
667
+ }
668
+ if (i+1!=failure.length){
669
+ failureall+=';'
670
+ }
671
+ }
672
+ return failureall
673
+ },
674
+ // 打印
675
+ stamp () {
676
+ this.all = false
677
+ // 默认选择要打印的列
678
+ this.modelval = defaultPrint.config
679
+ this.fields = this.getfield
680
+ this.printshow = true
681
+ this.put()
682
+ },
683
+ put () {
684
+ // 对Modelval进行排序
685
+ this.sortModelval()
686
+ this.thead = `<tr><th colspan=${this.modelval.length}>工单详情报表</th></tr><tr>`
687
+ for (let key of this.modelval) {
688
+ this.thead += '<th>' + this.fields[key] + '</th>'
689
+ }
690
+ this.thead += '</tr>'
691
+ },
692
+ print () {
693
+ this.$refs.print.PrintAsFile()
694
+ this.printshow = false
695
+ },
696
+ close () {
697
+ this.printshow = false
698
+ this.all = false
699
+ },
700
+ // 对选择的列进行排序
701
+ sortModelval () {
702
+ let sortModel = []
703
+ Object.keys(this.fields).forEach((key) => {
704
+ if (this.modelval.includes(key)) {
705
+ sortModel.push(key)
706
+ }
707
+ })
708
+ this.modelval = sortModel
709
+ },
710
+ hidden () {
711
+ this.criteriaShow = !this.criteriaShow
712
+ },
713
+ getRes (obj) {
714
+ //tag
715
+ ////tag)
716
+ this.f_filialeids = this.$login.convertToIn(obj.resids)
717
+ //tag
718
+ },
719
+ formatDuring (s1,s2) {
720
+ var millisecond = s1-s2
721
+ var days = parseInt(millisecond / (1000 * 60 * 60 * 24))
722
+ var hours = parseInt((millisecond % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60))
723
+ var minutes = parseInt((millisecond % (1000 * 60 * 60)) / (1000 * 60))
724
+ var seconds = parseInt((millisecond % (1000 * 60)) / 1000)
725
+ return days + "天" + hours + "小时" + minutes + "分钟" + seconds + "秒"
726
+ }
727
+
728
+ },
729
+ computed: {
730
+ result_status(){
731
+ return this.$appdata.getParam('呼叫工单结果')?[{label: '全部', value: ''}, ...this.$appdata.getParam('呼叫工单结果')] : [{label: '全部', value: ''}]
732
+ },
733
+ defnames () {
734
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('呼叫工单状态')]
735
+ },
736
+ repairstypes () {
737
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('报修全部类型')]
738
+ },
739
+ serviceorders () {
740
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('工单类型')]
741
+ },
742
+ sources () {
743
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('工单来源')]
744
+ },
745
+ getfield () {
746
+ let data = {}
747
+ this.bodyData.forEach((value, index) => {
748
+ data[this.bodyData[index]] = this.headData[index]
749
+ })
750
+ return data
751
+ }
752
+ },
753
+ components: {
754
+ 'delay-reply': DelayReply
755
+ }
756
+ }
757
+ </script>