telephone-clients 3.0.103-7 → 3.0.103-71

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 (77) hide show
  1. package/package.json +3 -3
  2. package/src/App.vue +5 -3
  3. package/src/components/Util/RightTreeSafe.vue +2 -2
  4. package/src/components/Util/RightTreeSafeDep.vue +350 -0
  5. package/src/components/android/AddMyTask.vue +7 -0
  6. package/src/components/pc/RepairsWork.vue +19 -0
  7. package/src/components/pc/RoleSelectorDep.vue +158 -0
  8. package/src/components/pc/TelFindUser.vue +1 -1
  9. package/src/components/pc/TelListener.vue +47 -16
  10. package/src/components/pc/WorkCenter.vue +1 -1
  11. package/src/components/pc/WorkCenterList.vue +1 -1
  12. package/src/components/pc/WorkHistory.vue +560 -548
  13. package/src/components/pc/WorkListAllNew.vue +1 -1
  14. package/src/components/pc/WorkListNew.vue +9 -3
  15. package/src/components/pc/olddata/OldWorkList.vue +193 -0
  16. package/src/components/telreport/RepairsDetailsReport.vue +98 -0
  17. package/src/components/telreport/TableFaultReport.vue +96 -0
  18. package/src/components/telreport/Traffic.vue +3 -3
  19. package/src/components/temp/InfoTable.vue +5 -2
  20. package/src/components/temp/OldRepairList.vue +100 -0
  21. package/src/components/weinan/SiteSend.vue +2 -2
  22. package/src/components/weinan/SiteSendWeixiu.vue +7 -16
  23. package/src/components/weinan/StandWorkWeixiu.vue +1 -1
  24. package/src/components/weinan/WorkList.vue +73 -0
  25. package/src/components/weinan/WorkListAll.vue +90 -14
  26. package/src/components/weinan/WorkListWeixiu.vue +1 -1
  27. package/src/components/workorder/CompletedRepair.vue +269 -183
  28. package/src/components/workorder/FaultAll.vue +9 -9
  29. package/src/components/workorder/PhoneUpDetail.vue +3 -0
  30. package/src/components/workorder/RepairFirstV.vue +1 -1
  31. package/src/filiale/kelai/pc/WorkCenterList.vue +20 -3
  32. package/src/filiale/kelai/pc/WorkListAllNew.vue +47 -9
  33. package/src/filiale/kelai/pc/serviceDeleteOrder.vue +55 -0
  34. package/src/filiale/kelai/telephone.js +9 -8
  35. package/src/filiale/qianneng/android/FaultAll.vue +1 -1
  36. package/src/filiale/qianneng/android/TemporarySingle.vue +25 -0
  37. package/src/filiale/qianneng/pc/MaterialDetailed.vue +10 -0
  38. package/src/filiale/qianneng/pc/MaterialStatistics.vue +144 -0
  39. package/src/filiale/qianneng/pc/NewRepairPaper.vue +2 -2
  40. package/src/filiale/qianneng/pc/RepairsWork.vue +12 -2
  41. package/src/filiale/qianneng/pc/WorkHistory.vue +2 -2
  42. package/src/filiale/qianneng/pc/WorkListAllNew.vue +53 -5
  43. package/src/filiale/qianneng/telephone.js +1 -0
  44. package/src/filiale/rizhao/pc/DispatchMan.vue +3 -3
  45. package/src/filiale/rizhao/pc/DispatchWork.vue +3 -3
  46. package/src/filiale/rizhao/pc/Traffic.vue +3 -3
  47. package/src/filiale/rizhao/pc/WorkListAllNew.vue +8 -3
  48. package/src/filiale/rongcheng/CliWorkListAll.vue +440 -407
  49. package/src/filiale/rongcheng/FaultAll.vue +3 -3
  50. package/src/filiale/rongcheng/RepairOrderV.vue +1445 -0
  51. package/src/filiale/rongcheng/telephoneAndroid.js +3 -1
  52. package/src/filiale/shanxian/android/RepairFirstV.vue +5 -1
  53. package/src/filiale/shanxian/pc/RepairsWork.vue +826 -0
  54. package/src/filiale/shanxian/telephone.js +2 -1
  55. package/src/filiale/shexian/android/AddMyTask.vue +7 -0
  56. package/src/filiale/shexian/android/CompletedRepair.vue +280 -0
  57. package/src/filiale/shexian/android/FaultAll.vue +16 -0
  58. package/src/filiale/shexian/android/Outlay.vue +182 -165
  59. package/src/filiale/shexian/android/RepairFirstV.vue +16 -2
  60. package/src/filiale/shexian/android/RepairInfo.vue +1 -0
  61. package/src/filiale/shexian/pc/TelByOrderManCount.vue +10 -2
  62. package/src/filiale/shexian/pc/WorkList.vue +25 -1
  63. package/src/filiale/shexian/pc/WorkListAllNew.vue +65 -61
  64. package/src/filiale/shexian/telephoneAndroid.js +3 -0
  65. package/src/filiale/tongchuan/android/TicketDetails.vue +3 -0
  66. package/src/filiale/tongchuan/pc/WorkOrderStatistics.vue +2 -2
  67. package/src/filiale/wenxi/pc/FailureEdit.vue +1 -1
  68. package/src/filiale/wenxi/pc/RepairsWork.vue +15 -0
  69. package/src/filiale/wenxi/pc/WorkListAll.vue +5 -2
  70. package/src/filiale/wenxi/telephone.js +1 -7
  71. package/src/filiale/yuncheng/pc/TelFindUser.vue +302 -0
  72. package/src/filiale/yuncheng/telephone.js +12 -0
  73. package/src/filiale/zhongsheng/android/FaultAll.vue +830 -0
  74. package/src/filiale/zhongsheng/telephoneAndroid.js +2 -1
  75. package/src/main.js +1 -1
  76. package/src/telephone.js +746 -733
  77. package/src/weinan.js +6 -0
@@ -60,7 +60,7 @@
60
60
  :value.sync="model.f_created_date"
61
61
  v-model="model.f_created_date"
62
62
  :format="'yyyy-MM-dd 00:00:00'"
63
- condition="f_created_date > '{}'"
63
+ condition="tswo.f_created_date > '{}'"
64
64
  ></datepicker>
65
65
  </div>
66
66
  <div class="col-sm-3 form-group form-input-group" style="width: 20%">
@@ -69,7 +69,7 @@
69
69
  :value.sync="model.f_created_enddate"
70
70
  v-model="model.f_created_enddate"
71
71
  :format="'yyyy-MM-dd 23:59:59'"
72
- condition="f_created_date < '{}'"
72
+ condition="tswo.f_created_date < '{}'"
73
73
  ></datepicker>
74
74
  </div>
75
75
  <div class="col-sm-3 form-group form-input-group" style="width: 20%">
@@ -104,7 +104,7 @@
104
104
  :value.sync="model.f_date_start"
105
105
  v-model="model.f_date_start"
106
106
  :format="'yyyy-MM-dd 00:00:00'"
107
- condition="f_date > '{}'"
107
+ condition="tsw.f_date > '{}'"
108
108
  ></datepicker>
109
109
  </div>
110
110
  <div class="col-sm-3 form-group form-input-group" style="width: 20%">
@@ -113,7 +113,7 @@
113
113
  :value.sync="model.f_date_end"
114
114
  v-model="model.f_date_end"
115
115
  :format="'yyyy-MM-dd 23:59:59'"
116
- condition="f_date < '{}'"
116
+ condition="tsw.f_date < '{}'"
117
117
  ></datepicker>
118
118
  </div>
119
119
  <div class="col-sm-3 form-group form-input-group" style="width: 20%">
@@ -152,7 +152,7 @@
152
152
  <label class="font_normal_body" style="width: 40%" >报修类型</label>
153
153
  <v-select :value.sync="model.f_repairtype" :value-single="true" v-model="model.f_repairtype"
154
154
  :options='$parent.$parent.repairstypes' placeholder='报修类型'
155
- condition="f_repairtype like '%{}%'"
155
+ condition="tswo.f_repairtype like '%{}%'"
156
156
  close-on-select>
157
157
  </v-select>
158
158
  </div>
@@ -160,7 +160,7 @@
160
160
  <label class="font_normal_body" style="width: 40%" >故障类型</label>
161
161
  <v-select :value.sync="model.failure" :value-single="true" v-model="model.failure"
162
162
  :options='$parent.$parent.failures' placeholder='故障类型'
163
- condition="failure like '%{}%'"
163
+ condition="tswo.failure like '%{}%'"
164
164
  close-on-select>
165
165
  </v-select>
166
166
  </div>
@@ -197,7 +197,21 @@
197
197
  <th>
198
198
  <nobr>工单类型</nobr>
199
199
  </th>
200
- <!--<th><nobr>报修类型</nobr></th>-->
200
+ <th>
201
+ <nobr>报修类型</nobr>
202
+ </th>
203
+ <th>
204
+ <nobr>故障明细</nobr>
205
+ </th>
206
+ <th>
207
+ <nobr>接单员</nobr>
208
+ </th>
209
+ <th>
210
+ <nobr>维修结果</nobr>
211
+ </th>
212
+ <th>
213
+ <nobr>工单结果</nobr>
214
+ </th>
201
215
  <th>
202
216
  <nobr>工单编号</nobr>
203
217
  </th>
@@ -211,9 +225,6 @@
211
225
  <th>
212
226
  <nobr>联系电话</nobr>
213
227
  </th>
214
- <th>
215
- <nobr>故障明细</nobr>
216
- </th>
217
228
  <th>
218
229
  <nobr>工单来源</nobr>
219
230
  </th>
@@ -226,9 +237,6 @@
226
237
  <th>
227
238
  <nobr>话务员</nobr>
228
239
  </th>
229
- <th>
230
- <nobr>接单员</nobr>
231
- </th>
232
240
  <th>
233
241
  <nobr>结单时间</nobr>
234
242
  </th>
@@ -238,24 +246,18 @@
238
246
  <th>
239
247
  <nobr>离开时间</nobr>
240
248
  </th>
241
-
242
- <th>
243
- <nobr>逾期状态</nobr>
244
- </th>
245
- <th>
246
- <nobr>截止时间</nobr>
247
- </th>
248
- <th>
249
- <nobr>逾期时间</nobr>
250
- </th>
251
-
252
-
253
249
  <th>
254
- <nobr>工单结果</nobr>
255
- </th>
256
- <th>
257
- <nobr>维修结果</nobr>
250
+ <nobr>不处理原因</nobr>
258
251
  </th>
252
+ <!-- <th>-->
253
+ <!-- <nobr>逾期状态</nobr>-->
254
+ <!-- </th>-->
255
+ <!-- <th>-->
256
+ <!-- <nobr>截止时间</nobr>-->
257
+ <!-- </th>-->
258
+ <!-- <th>-->
259
+ <!-- <nobr>逾期时间</nobr>-->
260
+ <!-- </th>-->
259
261
 
260
262
 
261
263
  </tr>
@@ -275,7 +277,21 @@
275
277
  <td style="text-align: center;">
276
278
  <nobr>{{ row.f_workorder_type }}</nobr>
277
279
  </td>
278
-
280
+ <td style="text-align: center;">
281
+ <nobr>{{ row.f_repairtype }}</nobr>
282
+ </td>
283
+ <td style="text-align: center;">
284
+ <nobr>{{row.f_remarks}}&nbsp;&nbsp;&nbsp;{{ $parent.$parent.$parent.trouble(row.failure) }}</nobr>
285
+ </td>
286
+ <td style="text-align: center;">
287
+ <nobr>{{ row.f_order_man }} {{ row.f_repairman_phone }}</nobr>
288
+ </td>
289
+ <td style="text-align: center;">
290
+ <nobr>{{ row.f_repair_remarks }}</nobr>
291
+ </td>
292
+ <td style="text-align: center;">
293
+ <nobr>{{ row.f_result_status }}</nobr>
294
+ </td>
279
295
  <td style="text-align: center;">
280
296
  <nobr>{{ row.f_service_id }}</nobr>
281
297
  </td>
@@ -291,9 +307,6 @@
291
307
  <td style="text-align: center;">
292
308
  <nobr>{{ row.f_contact_phone }}</nobr>
293
309
  </td>
294
- <td style="text-align: center;">
295
- <nobr>{{row.f_remarks}}&nbsp;&nbsp;&nbsp;{{ $parent.$parent.$parent.trouble(row.failure) }}</nobr>
296
- </td>
297
310
  <td style="text-align: center;">
298
311
  <nobr>{{ row.f_source }}</nobr>
299
312
  </td>
@@ -309,9 +322,6 @@
309
322
  <td style="text-align: center;">
310
323
  <nobr>{{ row.f_attendant }}</nobr>
311
324
  </td>
312
- <td style="text-align: center;">
313
- <nobr>{{ row.f_order_man }} {{ row.f_repairman_phone }}</nobr>
314
- </td>
315
325
  <td style="text-align: center;">
316
326
  <nobr>{{ row.f_date }}</nobr>
317
327
  </td>
@@ -321,27 +331,19 @@
321
331
  <td style="text-align: center;">
322
332
  <nobr>{{ row.f_date_leave }}</nobr>
323
333
  </td>
324
-
325
- <td style="text-align: center;">
326
- <nobr>{{ $parent.$parent.$parent.d1(row)}}</nobr>
327
- </td>
328
- <td style="text-align: center;">
329
- <nobr>{{ row.f_finish_date == '1900-01-01 00:00:00' ? '' : row.f_finish_date}}</nobr>
330
- </td>
331
334
  <td style="text-align: center;">
332
- <nobr>{{ $parent.$parent.$parent.d2(row) }}</nobr>
335
+ <nobr>{{ row.f_case_remarks }}</nobr>
333
336
  </td>
334
337
 
335
-
336
- <td style="text-align: center;">
337
- <nobr>{{ row.f_result_status }}</nobr>
338
- </td>
339
-
340
- <td style="text-align: center;">
341
- <nobr>{{ row.f_repair_remarks }}</nobr>
342
- </td>
343
-
344
-
338
+ <!-- <td style="text-align: center;">-->
339
+ <!-- <nobr>{{ $parent.$parent.$parent.d1(row)}}</nobr>-->
340
+ <!-- </td>-->
341
+ <!-- <td style="text-align: center;">-->
342
+ <!-- <nobr>{{ row.f_finish_date == '1900-01-01 00:00:00' ? '' : row.f_finish_date}}</nobr>-->
343
+ <!-- </td>-->
344
+ <!-- <td style="text-align: center;">-->
345
+ <!-- <nobr>{{ $parent.$parent.$parent.d2(row) }}</nobr>-->
346
+ <!-- </td>-->
345
347
  </template>
346
348
  </data-grid>
347
349
  </criteria-paged>
@@ -440,20 +442,22 @@ export default {
440
442
  },
441
443
  excelHeaders: {
442
444
  'f_workorder_type': '工单类型',
445
+ 'f_repairtype': '报修类型',
443
446
  'f_service_id': '工单编号',
444
447
  'f_created_date': '派单时间',
445
448
  'f_user_name': '用户姓名',
446
449
  'f_address': '用户地址',
447
450
  'f_contact_phone': '联系电话',
448
451
  'f_source': '工单来源',
452
+ 'f_remarks': '备注',
449
453
  'f_json': '故障明细',
454
+ 'f_repair_remarks': '维修结果',
450
455
  'f_single_man': '派单人',
451
456
  'f_attendant': '受理人',
452
457
  'f_order_man': '接单人',
453
458
  'defname': '工单状态',
454
- 'f_date_leave': '完成时间',
455
- 'f_repair_remarks': '维修结果',
456
- 'f_remarks': '备注'
459
+ 'f_case_remarks':'无法处理原因',
460
+ 'f_date_leave': '完成时间'
457
461
  },
458
462
  criteriaShow: false
459
463
  }
@@ -579,9 +583,9 @@ export default {
579
583
  search (args) {
580
584
 
581
585
  if (this.f_filialeids) {
582
- args.condition += ` and f_filiale_id in ${this.f_filialeids}`
586
+ args.condition += ` and tswo.f_filiale_id in ${this.f_filialeids}`
583
587
  } else {
584
- args.condition += ` and f_filiale_id = '${this.$login.f.orgid}'`
588
+ args.condition += ` and tswo.f_filiale_id = '${this.$login.f.orgid}'`
585
589
  }
586
590
 
587
591
  this.searchData.condition = args.condition
@@ -592,10 +596,10 @@ export default {
592
596
  let condition = '1=1'
593
597
 
594
598
  if (this.f_filialeids) {
595
- condition += ` and f_filiale_id in ${this.f_filialeids}`
599
+ condition += ` and tswo.f_filiale_id in ${this.f_filialeids}`
596
600
  //tag
597
601
  } else {
598
- condition += ` and f_filiale_id = '${this.$login.f.orgid}'`
602
+ condition += ` and tswo.f_filiale_id = '${this.$login.f.orgid}'`
599
603
  }
600
604
  return this.model.search(condition)
601
605
  },
@@ -20,6 +20,9 @@ let specialComp = {
20
20
  },
21
21
  'fault-all': (resolve) => {
22
22
  require(['./android/FaultAll'], resolve)
23
+ },
24
+ 'completed-repairV': (resolve) => {
25
+ require(['./android/CompletedRepair'], resolve)
23
26
  }
24
27
  }
25
28
  exports.specialComp = specialComp
@@ -179,6 +179,9 @@
179
179
  <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
180
180
  故障明细: {{ trouble(row.failure) }}
181
181
  </div>
182
+ <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="['维修员接单', '维修完成'].indexOf(row.defname) >= 0">
183
+ 维修人员: {{ row.f_order_man }}
184
+ </div>
182
185
  </div>
183
186
  </div>
184
187
  </div>
@@ -129,7 +129,7 @@ export default {
129
129
  this.condition += ` and f_created_date < '${this.f_date_end}'`
130
130
  }
131
131
  if(this.f_orgid){
132
- this.condition += ` and f_filiale_id = '${this.f_orgid}'`
132
+ this.condition += ` and (f_filiale_id = '${this.f_orgid}' or f_orgid = '${this.f_orgid}') `
133
133
  }
134
134
  new HttpResetClass().load('POST','rs/sql/tel_singleTable_OrderBy', {data: {
135
135
  items: `count(0) as zongshu,
@@ -145,7 +145,7 @@ export default {
145
145
  sum(case when tswo.f_workorder_type ='预约单' then 1 else 0 end ) as anjiandan`,
146
146
  tablename: `t_serviceworkorder tswo
147
147
  LEFT JOIN (SELECT * FROM t_servicework sw WHERE sw.id = (SELECT MAX(id) FROM t_servicework WHERE serviceid = sw.serviceid)) tsw ON tswo.id = tsw.serviceid
148
- left join activityins act on tswo.f_processid = act.processid and state = '开始活动' `,
148
+ left join activityins act on tswo.f_processid = act.processid and state = '开始活动' and defname in ('话务员派单','站点接单', '维修员接单', '班组长派单', '维修完成','置换完成','安装完成','安装员接单','置换员接单','处理完成') `,
149
149
  condition: this.condition,
150
150
  orderitem: '1'
151
151
  }}, {resolveMsg: null, rejectMsg: null}).then(res=>{
@@ -131,7 +131,7 @@ export default {
131
131
  this.failures.splice(0, this.failures.length)
132
132
 
133
133
  // 空串,直接返回
134
- if (this.value) {
134
+ if (this.value && this.value.startsWith("[")) {
135
135
  // 把字符串转换成故障列表对象
136
136
  let array = JSON.parse(this.value)
137
137
  array.forEach((value) => {
@@ -229,6 +229,7 @@ import * as Util from '../../../components/Util'
229
229
  serviceacitivity: [{
230
230
  f_service_acitivity_type: '派单'
231
231
  }],
232
+ failure_str:'',
232
233
  f_finish_date:'',
233
234
  f_source:'用户来电',
234
235
  f_service_id: '',
@@ -442,6 +443,7 @@ import * as Util from '../../../components/Util'
442
443
  },
443
444
  assignObj() {
444
445
  if (this.data) {
446
+ this.model.failure_str = ''
445
447
  this.model.f_address = this.data.f_address
446
448
  this.model.f_user_name = this.data.f_user_name
447
449
  this.model.f_user_type = this.data.f_user_type
@@ -493,6 +495,7 @@ import * as Util from '../../../components/Util'
493
495
  f_card_id: '',
494
496
  f_remarks: '',
495
497
  f_user_type: '',
498
+ failure_str:'',
496
499
  f_area: '',
497
500
  f_street: '',
498
501
  f_residential_area: '',
@@ -545,6 +548,18 @@ import * as Util from '../../../components/Util'
545
548
  this.model.f_outlets = this.$login.f.deps
546
549
  this.model.f_filiale_id = this.$login.f.orgid
547
550
  }
551
+ let failureStr = ''
552
+ if(this.model.failure.startsWith("[")){
553
+ const failureData = JSON.parse(this.model.failure)
554
+ failureData.forEach(item=>{
555
+ if (item.failurecase.length>0){
556
+ failureStr+=item.f_failure_type+":"+item.failurecase.toString()+";"
557
+ }else {
558
+ failureStr+=item.f_failure_type+";"
559
+ }
560
+ })
561
+ this.model.failure_str = failureStr
562
+ }
548
563
  let data = {
549
564
  model: this.model, loginUser: {
550
565
  name: this.loginUser.name,
@@ -269,7 +269,7 @@
269
269
  <nobr>{{ row.f_contact_phone }}</nobr>
270
270
  </td>
271
271
  <td style="text-align: center;">
272
- <nobr>{{ $parent.$parent.$parent.trouble(row.failure) }}</nobr>
272
+ <nobr>{{ $parent.$parent.$parent.trouble(row.failure_str) }}</nobr>
273
273
  </td>
274
274
  <td style="text-align: center;">
275
275
  <nobr>{{ row.f_remarks }}</nobr>
@@ -414,7 +414,7 @@ export default {
414
414
  'f_result_status': '工单结果',
415
415
  'f_date': '上传时间',
416
416
  'f_remarks': '派单备注',
417
- 'failure':'故障明细',
417
+ 'failure_str':'故障明细',
418
418
  'f_remar': '工单完成备注'
419
419
  },
420
420
  criteriaShow: false
@@ -547,6 +547,9 @@ export default {
547
547
  // 是否可以退回
548
548
 
549
549
  trouble (val) {
550
+ if (!val.startsWith('[')){
551
+ return val
552
+ }
550
553
  let failureall=''
551
554
  // val=[{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""}]
552
555
 
@@ -3,13 +3,7 @@ import Vue from "vue";
3
3
 
4
4
  //pc和手机分别注册到两个文件中
5
5
  let specialComp = {
6
- // 工单详情子组件
7
- 'voice-server':(resolve) => { require(['./pc/VoiceServer'], resolve) },
8
- 'distribute-work': (resolve) => { require(['./pc/DistributeWork'], resolve) },
9
- 'repairs-work':(resolve) => { require(['./pc/RepairsWork'], resolve) },
10
- 'tel-find-user':(resolve) => { require(['./pc/TelFindUser'], resolve) },
11
- 'failure-edit':(resolve) => { require(['./pc/FailureEdit'], resolve) },
12
- 'work-listall':(resolve) => { require(['./pc/WorkListAll'], resolve) },
6
+ 'work-listall':(resolve) => { require(['./pc/WorkListAll'], resolve) }
13
7
  }
14
8
  exports.specialComp = specialComp
15
9