telephone-clients 4.0.0-1-19 → 4.0.0-1-21
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/CHANGELOG.md +37 -37
- package/README.md +38 -38
- package/package.json +120 -120
- package/release.bat +5 -5
- package/src/components/pc/RepairsWork.vue +981 -934
- package/src/components/pc/SiteSend.vue +2 -4
- package/src/components/workorder/RepairFirstV.vue +3 -3
- package/src/components/workorder/TelephoneOperatorReport.vue +116 -0
- package/src/filiale/meihekou/android/AddMyTask.vue +35 -1
- package/src/filiale/meihekou/android/PhoneStandWork.vue +42 -2
- package/src/filiale/xinkang/pc/ComplainWork.vue +335 -336
- package/src/filiale/xinkang/telephone.js +16 -16
- package/src/telephone.js +3 -0
|
@@ -1,934 +1,981 @@
|
|
|
1
|
-
<template xmlns:v-validate="http://www.w3.org/1999/xhtml">
|
|
2
|
-
<div class="auto select-overspread form-horizontal auto" id="pc-repair-work">
|
|
3
|
-
<work-busy :is-busy="saveing" v-show="saveing"></work-busy>
|
|
4
|
-
<validator name="v">
|
|
5
|
-
<div class="row">
|
|
6
|
-
<div class="col-sm-6 form-group form-fix-width">
|
|
7
|
-
<label class="font_normal_body" style="width: 30%">来电电话</label>
|
|
8
|
-
<input style="width: 60%" type="text" readonly v-model='model.f_phone' class="form-control"></input>
|
|
9
|
-
</div>
|
|
10
|
-
<div class="col-sm-6 form-group form-fix-width">
|
|
11
|
-
<label class="font_normal_body" for="f_user_name" :class="model.f_user_name ? '': 'class-error' "
|
|
12
|
-
style="width: 30%">客户姓名</label>
|
|
13
|
-
<input style="width: 60%" type="text" v-model='model.f_user_name' id="f_user_name" name="f_user_name"
|
|
14
|
-
class="form-control"/>
|
|
15
|
-
</div>
|
|
16
|
-
<div class="col-sm-6 form-group form-fix-width">
|
|
17
|
-
<label for="f_area" class="font_normal_body" style="width: 30%">客户类型</label>
|
|
18
|
-
<v-select :value.sync="model.f_user_type" :value-single="true"
|
|
19
|
-
:options='usertypes' placeholder='用户类型'
|
|
20
|
-
close-on-select style="width: 60%">
|
|
21
|
-
</v-select>
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
<div class="col-sm-6 form-group form-fix-width">
|
|
25
|
-
<label class="font_normal_body " for="f_contact_phone" :class="model.f_contact_phone ? '' : 'class-error'"
|
|
26
|
-
style="width: 30%">联系电话</label>
|
|
27
|
-
<input style="width: 60%" type="text" v-model='model.f_contact_phone' id="f_contact_phone"
|
|
28
|
-
class="form-control"/>
|
|
29
|
-
</div>
|
|
30
|
-
<div class="col-sm-12 form-group form-fix-width">
|
|
31
|
-
<label for="f_address" class="font_normal_body" style="width: 15%">详细地址</label>
|
|
32
|
-
<input style="width: 80%" type="text" class="form-control" v-model="model.f_address" id="f_address"
|
|
33
|
-
placeholder="详细地址"
|
|
34
|
-
v-el:address v-next-el="idnumber"
|
|
35
|
-
/>
|
|
36
|
-
</div>
|
|
37
|
-
<span class="col-sm-12" style="color: red;margin-left: 100px;"
|
|
38
|
-
v-if="serviceList">工单编号:{{ serviceList.f_service_id }}此地址下有工单未处理完成</span>
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
<div class="col-sm-6 form-group form-fix-width" v-if="selectSendshow && operType != '修改工单'">
|
|
42
|
-
<label class="font_normal_body" style="width: 30%">转接方式</label>
|
|
43
|
-
<div class="form-control">
|
|
44
|
-
<label v-for="handling1 in handling">
|
|
45
|
-
<input style="width: 60%" type="radio"
|
|
46
|
-
v-model="model.f_handlingtype"
|
|
47
|
-
value="{{handling1.label}}">
|
|
48
|
-
{{ handling1.label }}
|
|
49
|
-
</label>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
<div class="row">
|
|
53
|
-
<div class="col-sm-6 form-group form-fix-width">
|
|
54
|
-
<label for="f_repair" class="font_normal_body" style="width: 30%">报修类型</label>
|
|
55
|
-
<v-select :value.sync="model.f_repairtype" :value-single="true"
|
|
56
|
-
:options='repairstypes' placeholder='报修类型'
|
|
57
|
-
close-on-select style="width: 60%">
|
|
58
|
-
</v-select>
|
|
59
|
-
</div>
|
|
60
|
-
<div class="col-sm-6 form-group form-fix-width" v-if="operType != '修改工单'">
|
|
61
|
-
<label class=" font_normal_body" style="width: 30%">派单类型</label>
|
|
62
|
-
<v-select :value.sync="model.f_handlingtype" :value-single="true"
|
|
63
|
-
:options='handling' placeholder='请选择派单类型'
|
|
64
|
-
close-on-select
|
|
65
|
-
style="width: 60%"></v-select>
|
|
66
|
-
</div>
|
|
67
|
-
<div class="col-sm-6 form-group form-fix-width" :class="[$v.f_reciever.required ? 'select-error' : '']"
|
|
68
|
-
v-if="meading == '转站点' && operType != '修改工单'">
|
|
69
|
-
<label class=" font_normal_body" for="f_reciever" style="width: 30%">选择站点</label>
|
|
70
|
-
<input style="width: 60%" type="text" v-show="false" v-model="serviceacitivity.f_reciever"
|
|
71
|
-
v-validate:f_reciever='{ required: true }'>
|
|
72
|
-
<right-tree islist :userid="userid" :source="source" v-on:re-res="reres" :textContent="选择站点管理员"
|
|
73
|
-
:selectData="" v-ref:f_reciever>
|
|
74
|
-
|
|
75
|
-
</right-tree>
|
|
76
|
-
</div>
|
|
77
|
-
<div class="col-sm-6 form-group form-fix-width" :class="[$v.f_reciever.required ? 'select-error' : '']"
|
|
78
|
-
v-if="meading == '
|
|
79
|
-
<label class="font_normal_body" style="width: 30%"
|
|
80
|
-
<v-select :value="model.serviceacitivity[0].f_reciever" :value-single="true"
|
|
81
|
-
:options='
|
|
82
|
-
close-on-select v-on:change="
|
|
83
|
-
</div>
|
|
84
|
-
<div class="col-sm-6 form-group form-fix-width"
|
|
85
|
-
|
|
86
|
-
<
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
v-on:change="
|
|
90
|
-
</div>
|
|
91
|
-
<div class="col-sm-6 form-group form-fix-width">
|
|
92
|
-
<label class=" font_normal_body" style="width: 30%"
|
|
93
|
-
<v-select :value="model.
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
<button type="button" name="button"
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
self.
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
type:
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
},
|
|
488
|
-
//
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
this
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
this.model.
|
|
551
|
-
this.
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
this.
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
this.model.
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
}
|
|
686
|
-
if (
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
if (this.
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
this.
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
}
|
|
719
|
-
this.
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
this.
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
this.
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
'
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
}
|
|
857
|
-
},
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
},
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
return {
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
|
|
1
|
+
<template xmlns:v-validate="http://www.w3.org/1999/xhtml">
|
|
2
|
+
<div class="auto select-overspread form-horizontal auto" id="pc-repair-work">
|
|
3
|
+
<work-busy :is-busy="saveing" v-show="saveing"></work-busy>
|
|
4
|
+
<validator name="v">
|
|
5
|
+
<div class="row">
|
|
6
|
+
<div class="col-sm-6 form-group form-fix-width">
|
|
7
|
+
<label class="font_normal_body" style="width: 30%">来电电话</label>
|
|
8
|
+
<input style="width: 60%" type="text" readonly v-model='model.f_phone' class="form-control"></input>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="col-sm-6 form-group form-fix-width">
|
|
11
|
+
<label class="font_normal_body" for="f_user_name" :class="model.f_user_name ? '': 'class-error' "
|
|
12
|
+
style="width: 30%">客户姓名</label>
|
|
13
|
+
<input style="width: 60%" type="text" v-model='model.f_user_name' id="f_user_name" name="f_user_name"
|
|
14
|
+
class="form-control"/>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="col-sm-6 form-group form-fix-width">
|
|
17
|
+
<label for="f_area" class="font_normal_body" style="width: 30%">客户类型</label>
|
|
18
|
+
<v-select :value.sync="model.f_user_type" :value-single="true"
|
|
19
|
+
:options='usertypes' placeholder='用户类型'
|
|
20
|
+
close-on-select style="width: 60%">
|
|
21
|
+
</v-select>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<div class="col-sm-6 form-group form-fix-width">
|
|
25
|
+
<label class="font_normal_body " for="f_contact_phone" :class="model.f_contact_phone ? '' : 'class-error'"
|
|
26
|
+
style="width: 30%">联系电话</label>
|
|
27
|
+
<input style="width: 60%" type="text" v-model='model.f_contact_phone' id="f_contact_phone"
|
|
28
|
+
class="form-control"/>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="col-sm-12 form-group form-fix-width">
|
|
31
|
+
<label for="f_address" class="font_normal_body" style="width: 15%">详细地址</label>
|
|
32
|
+
<input style="width: 80%" type="text" class="form-control" v-model="model.f_address" id="f_address"
|
|
33
|
+
placeholder="详细地址"
|
|
34
|
+
v-el:address v-next-el="idnumber"
|
|
35
|
+
/>
|
|
36
|
+
</div>
|
|
37
|
+
<span class="col-sm-12" style="color: red;margin-left: 100px;"
|
|
38
|
+
v-if="serviceList">工单编号:{{ serviceList.f_service_id }}此地址下有工单未处理完成</span>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<div class="col-sm-6 form-group form-fix-width" v-if="selectSendshow && operType != '修改工单'">
|
|
42
|
+
<label class="font_normal_body" style="width: 30%">转接方式</label>
|
|
43
|
+
<div class="form-control">
|
|
44
|
+
<label v-for="handling1 in handling">
|
|
45
|
+
<input style="width: 60%" type="radio"
|
|
46
|
+
v-model="model.f_handlingtype"
|
|
47
|
+
value="{{handling1.label}}">
|
|
48
|
+
{{ handling1.label }}
|
|
49
|
+
</label>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="row">
|
|
53
|
+
<div class="col-sm-6 form-group form-fix-width">
|
|
54
|
+
<label for="f_repair" class="font_normal_body" style="width: 30%">报修类型</label>
|
|
55
|
+
<v-select :value.sync="model.f_repairtype" :value-single="true"
|
|
56
|
+
:options='repairstypes' placeholder='报修类型' @change="getDays"
|
|
57
|
+
close-on-select style="width: 60%">
|
|
58
|
+
</v-select>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="col-sm-6 form-group form-fix-width" v-if="operType != '修改工单'">
|
|
61
|
+
<label class=" font_normal_body" style="width: 30%">派单类型</label>
|
|
62
|
+
<v-select :value.sync="model.f_handlingtype" :value-single="true"
|
|
63
|
+
:options='handling' placeholder='请选择派单类型'
|
|
64
|
+
close-on-select
|
|
65
|
+
style="width: 60%"></v-select>
|
|
66
|
+
</div>
|
|
67
|
+
<div class="col-sm-6 form-group form-fix-width" :class="[$v.f_reciever.required ? 'select-error' : '']"
|
|
68
|
+
v-if="meading == '转站点' && operType != '修改工单' && !ldapV4">
|
|
69
|
+
<label class=" font_normal_body" for="f_reciever" style="width: 30%">选择站点</label>
|
|
70
|
+
<input style="width: 60%" type="text" v-show="false" v-model="serviceacitivity.f_reciever"
|
|
71
|
+
v-validate:f_reciever='{ required: true }'>
|
|
72
|
+
<right-tree islist :userid="userid" :source="source" v-on:re-res="reres" :textContent="选择站点管理员"
|
|
73
|
+
:selectData="" v-ref:f_reciever>
|
|
74
|
+
|
|
75
|
+
</right-tree>
|
|
76
|
+
</div>
|
|
77
|
+
<div class="col-sm-6 form-group form-fix-width" :class="[$v.f_reciever.required ? 'select-error' : '']"
|
|
78
|
+
v-if="meading == '转站点' && operType != '修改工单' && ldapV4">
|
|
79
|
+
<label class="font_normal_body" style="width: 30%">选择站点</label>
|
|
80
|
+
<v-select :value="model.serviceacitivity[0].f_reciever" :value-single="true"
|
|
81
|
+
:options='deps' placeholder='选择站点'
|
|
82
|
+
close-on-select v-on:change="depcg" style="width: 60%"></v-select>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="col-sm-6 form-group form-fix-width" :class="[$v.f_reciever.required ? 'select-error' : '']"
|
|
85
|
+
v-if="meading == '转维修员' && operType != '修改工单'">
|
|
86
|
+
<label class="font_normal_body" style="width: 30%">维 修 员</label>
|
|
87
|
+
<v-select :value="model.serviceacitivity[0].f_reciever" :value-single="true"
|
|
88
|
+
:options='repairers' placeholder='请选择维修员'
|
|
89
|
+
close-on-select v-on:change="repiarmancg" style="width: 60%"></v-select>
|
|
90
|
+
</div>
|
|
91
|
+
<div class="col-sm-6 form-group form-fix-width">
|
|
92
|
+
<label class=" font_normal_body" style="width: 30%">工单来源</label>
|
|
93
|
+
<v-select :value="model.f_source" :value-single="true"
|
|
94
|
+
:options='sources' placeholder='请选择工单来源'
|
|
95
|
+
close-on-select
|
|
96
|
+
v-on:change="sourcechange" style="width: 60%"></v-select>
|
|
97
|
+
</div>
|
|
98
|
+
<div class="col-sm-6 form-group form-fix-width">
|
|
99
|
+
<label class=" font_normal_body" style="width: 30%">截止天数</label>
|
|
100
|
+
<v-select :value="model.day" :value-single="true"
|
|
101
|
+
v-model="model.day"
|
|
102
|
+
:options='days' placeholder='请选择截止天数'
|
|
103
|
+
close-on-select
|
|
104
|
+
v-on:change="daychange" style="width: 60%"></v-select>
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
<div class="col-sm-6 form-group form-fix-width">
|
|
108
|
+
<label class=" font_normal_body" style="width: 30%">截止时间</label>
|
|
109
|
+
<datepicker placeholder="请选择截至时间"
|
|
110
|
+
:value.sync="model.f_finish_date"
|
|
111
|
+
v-model="model.f_finish_date"
|
|
112
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
113
|
+
style="width: 60%"
|
|
114
|
+
:disabled="flag"></datepicker>
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
</div>
|
|
118
|
+
<failure-edit :value="model.failure" @input="procFailure"></failure-edit>
|
|
119
|
+
|
|
120
|
+
<div class="row" v-if="remarksList">
|
|
121
|
+
<div class="col-sm-12 form-input-group form-fix-width">
|
|
122
|
+
<label class="font_normal_body" style="width: 15%">备  注</label>
|
|
123
|
+
<v-select :value.sync="f_remarks"
|
|
124
|
+
v-model="f_remarks"
|
|
125
|
+
:options='remarksList'
|
|
126
|
+
placeholder='请选择备注'
|
|
127
|
+
v-on:change="modifyRemarks"
|
|
128
|
+
:value-single="true"
|
|
129
|
+
close-on-select
|
|
130
|
+
style="width: 80%"></v-select>
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
<div class="row">
|
|
134
|
+
<div class="col-sm-12 form-input-group form-fix-width">
|
|
135
|
+
<label class="font_normal_body" style="width: 15%" v-if="remarksList"></label>
|
|
136
|
+
<label class="font_normal_body" style="width: 15%" v-if="!remarksList">{{remarksList?'':'备  注' }}</label>
|
|
137
|
+
<textarea style="width: 80%" name="name" rows="3" class="ver-textarea" class="form-control"
|
|
138
|
+
v-model='model.f_remarks'></textarea>
|
|
139
|
+
|
|
140
|
+
<!-- <div class="form-control" style="width: 80%;float: left;min-height: 100px;position: relative;">{{ f_remarks }}</div>-->
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
<div class="row">
|
|
144
|
+
<button type="button" name="button" class="btn btn-difault" v-if="operType !== '报修'" @click="$emit('cancel')">
|
|
145
|
+
取消
|
|
146
|
+
</button>
|
|
147
|
+
<!--<button type="button" name="button" class="btn btn-danger btn-ln fr" @click="save" :disabled='IsClickDisabled'>-->
|
|
148
|
+
<button type="button" name="button" style="float: right" class="button_spacing button_search" @click="save" :disabled="idisabled">
|
|
149
|
+
提交
|
|
150
|
+
</button>
|
|
151
|
+
<button type="button" name="button" style="background-color: #5ac0d9;border-radius: 4px;float: right"
|
|
152
|
+
v-if="operType == '报修'" class="button_spacing button_search" @click="cleardata()">
|
|
153
|
+
清空
|
|
154
|
+
</button>
|
|
155
|
+
</div>
|
|
156
|
+
</validator>
|
|
157
|
+
</div>
|
|
158
|
+
</template>
|
|
159
|
+
|
|
160
|
+
<script>
|
|
161
|
+
import FailureEdit from '../pc/FailureEdit'
|
|
162
|
+
import {HttpResetClass} from 'vue-client'
|
|
163
|
+
import * as Util from '../Util'
|
|
164
|
+
|
|
165
|
+
// 获取派单类型, 类型 : 转站点,转维修员,自选模式
|
|
166
|
+
let getSendType = async function (self) {
|
|
167
|
+
try {
|
|
168
|
+
// 如果初始化为派维修员,则不获取配置文件
|
|
169
|
+
if (self.meading == '转维修员') {
|
|
170
|
+
self.model.f_handlingtype = '转维修员'
|
|
171
|
+
} else {
|
|
172
|
+
let http = new HttpResetClass()
|
|
173
|
+
let result = await http.load('GET', `rs/vue/sendType.json`, {}, {resolveMsg: null, rejectMsg: null})
|
|
174
|
+
//tag
|
|
175
|
+
if (result.data.sendType == '自选模式') {
|
|
176
|
+
self.selectSendshow = true
|
|
177
|
+
} else {
|
|
178
|
+
// 转站点/转维修员
|
|
179
|
+
if (result.data.sendType == '转维修员') {
|
|
180
|
+
self.model.f_handlingtype = '转维修员'
|
|
181
|
+
}
|
|
182
|
+
self.meading = result.data.sendType
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
} catch (e) {
|
|
186
|
+
//tag
|
|
187
|
+
} finally {
|
|
188
|
+
// 获取维修员
|
|
189
|
+
if (self.meading == '转维修员') {
|
|
190
|
+
self.repairers = []
|
|
191
|
+
self.getEmp("维修员")
|
|
192
|
+
}else{
|
|
193
|
+
self.getDep()
|
|
194
|
+
}
|
|
195
|
+
self.model.f_user_type = "民用"
|
|
196
|
+
if (self.operType === '报修') {
|
|
197
|
+
self.assignObj()
|
|
198
|
+
} else if (self.operType === '重新派单') {
|
|
199
|
+
// 通过当前登录人获取需要重新派发单子,也可对单子进行修改
|
|
200
|
+
self.setModifyOrder()
|
|
201
|
+
} else if (self.operType === '修改工单') {
|
|
202
|
+
// 通过传入数据,查询出工单,选择站点将不可点击
|
|
203
|
+
self.setModifyOrder()
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
// 工作类型对应的各项设置
|
|
208
|
+
const config = {
|
|
209
|
+
'报修': {
|
|
210
|
+
url: 'af-telephone/rs/logic/callerSend'
|
|
211
|
+
},
|
|
212
|
+
'重新派单': {
|
|
213
|
+
url: 'af-telephone/rs/logic/resend'
|
|
214
|
+
},
|
|
215
|
+
'修改工单': {
|
|
216
|
+
url: 'af-telephone/rs/logic/modifyOrder'
|
|
217
|
+
},
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export default {
|
|
221
|
+
title: '报修单',
|
|
222
|
+
props: {
|
|
223
|
+
data: { // 用户基本信息
|
|
224
|
+
type: Object,
|
|
225
|
+
default: null
|
|
226
|
+
},
|
|
227
|
+
type: { // 类型,为区分复选框,当组件重用并切重用组件同时出现,复选框id相同时会有干扰,
|
|
228
|
+
type: String
|
|
229
|
+
},
|
|
230
|
+
callObj: { // 话务对象
|
|
231
|
+
type: Object,
|
|
232
|
+
default: null
|
|
233
|
+
},
|
|
234
|
+
loginUser: {
|
|
235
|
+
type: Object
|
|
236
|
+
},
|
|
237
|
+
modifyOrder: { // 修改工单传入得工单信息
|
|
238
|
+
type: Object
|
|
239
|
+
},
|
|
240
|
+
operType: { // 操作类型,有报修,重新派单,修改工单,其中修改时,选择站点将不可点击,重新派单和修改要先将工单查询出来
|
|
241
|
+
type: String,
|
|
242
|
+
default: '报修'
|
|
243
|
+
},
|
|
244
|
+
meading: {
|
|
245
|
+
type: String,
|
|
246
|
+
default: '转维修员'
|
|
247
|
+
},
|
|
248
|
+
telsource: {
|
|
249
|
+
type: String,
|
|
250
|
+
default: '转维修员'
|
|
251
|
+
},
|
|
252
|
+
// 其他类型工单提交,清空控制
|
|
253
|
+
cleantf: {
|
|
254
|
+
type: Number
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
data() {
|
|
258
|
+
return {
|
|
259
|
+
// 临时这么处理
|
|
260
|
+
ldapV4:this.$appdata.getSingleValue('新资源服务'),
|
|
261
|
+
deps:[],
|
|
262
|
+
depsdata:[],
|
|
263
|
+
idisabled:false,
|
|
264
|
+
saveing: false,
|
|
265
|
+
selectSendshow: false,
|
|
266
|
+
// 选择小区树参数
|
|
267
|
+
// villagedata: {
|
|
268
|
+
// f_locationId: this.$login.f.parent.parentid,
|
|
269
|
+
// f_locationType: 't_organization'
|
|
270
|
+
// },
|
|
271
|
+
addressshow: false,
|
|
272
|
+
addressselect: false,
|
|
273
|
+
phoneValid: false,
|
|
274
|
+
flag: true,
|
|
275
|
+
residential: [],
|
|
276
|
+
row: {
|
|
277
|
+
f_residential_area: ''
|
|
278
|
+
},
|
|
279
|
+
residentialquery: '',
|
|
280
|
+
servicesource: '话务来电', // 工单来源
|
|
281
|
+
areacondition: '',
|
|
282
|
+
testdata: {f_equipment: ''},
|
|
283
|
+
residentialTemplate: 'f_villagename',
|
|
284
|
+
unitTemplate: 'f_unitname',
|
|
285
|
+
model: {
|
|
286
|
+
// 一次派单
|
|
287
|
+
serviceacitivity: [{
|
|
288
|
+
f_service_acitivity_type: '派单'
|
|
289
|
+
}],
|
|
290
|
+
day: '1',
|
|
291
|
+
f_small_area: '',
|
|
292
|
+
f_finish_date: '',
|
|
293
|
+
f_source: '话务来电',
|
|
294
|
+
f_service_id: '',
|
|
295
|
+
f_contact_phone: '',
|
|
296
|
+
f_meetunit: '',
|
|
297
|
+
f_phone: '',
|
|
298
|
+
f_user_name: '',
|
|
299
|
+
failure: '',
|
|
300
|
+
f_address: '',
|
|
301
|
+
f_json: '',
|
|
302
|
+
f_repair_date: Util.getNowDate(),
|
|
303
|
+
f_card_id: '',
|
|
304
|
+
// f_department: '', 站点选择
|
|
305
|
+
f_reciever: '',
|
|
306
|
+
f_user_type: '',
|
|
307
|
+
failure_str: '',
|
|
308
|
+
f_area: '',
|
|
309
|
+
f_unit_name: '',
|
|
310
|
+
f_street: '',
|
|
311
|
+
f_residential_area: '',
|
|
312
|
+
f_building: '',
|
|
313
|
+
f_unit: '',
|
|
314
|
+
f_floor: '',
|
|
315
|
+
f_room: '',
|
|
316
|
+
aState: null,
|
|
317
|
+
f_handlingtype: '转维修员',
|
|
318
|
+
f_repairtype: '',
|
|
319
|
+
f_orgid: this.$login.f.orgid,
|
|
320
|
+
f_orgname: this.$login.f.orgs,
|
|
321
|
+
f_depname: this.$login.f.dops,
|
|
322
|
+
f_depid: this.$login.f.depids,
|
|
323
|
+
f_operator: this.$login.f.name,
|
|
324
|
+
f_operatorid: this.$login.f.id,
|
|
325
|
+
f_remarks:'', // 实际备注
|
|
326
|
+
f_filiale: '',
|
|
327
|
+
f_filiale_id: '',
|
|
328
|
+
f_meternumber: ''//表号
|
|
329
|
+
},
|
|
330
|
+
f_remarks:'',// 备注快捷选择
|
|
331
|
+
types: [],
|
|
332
|
+
information: [], // 用来存放字表信息
|
|
333
|
+
serviceList: null, // 用来存放查询当前地址下的未完成工单
|
|
334
|
+
id: '', // 编写测试时会使用
|
|
335
|
+
f_service_id: '',// 编写测试时会使用
|
|
336
|
+
repairstypes: this.$appdata.getParam('报修类型'),
|
|
337
|
+
usertypes: this.$appdata.getParam('用户类型'),
|
|
338
|
+
// stands : this.$appdata.getParam('站点管理员'),
|
|
339
|
+
sources: this.$appdata.getParam('工单来源'),
|
|
340
|
+
days: this.$appdata.getParam('截止天数'),
|
|
341
|
+
remarksList:this.$appdata.getParam('报修单备注可选项'), //可选备注列表
|
|
342
|
+
handling: [{label: '转站点', value: '转站点'}, {label: '转维修员', value: '转维修员'}],
|
|
343
|
+
source:
|
|
344
|
+
'dep=this.getParentByType($organization$).getSpecialResByType($department$),' +
|
|
345
|
+
'tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))',
|
|
346
|
+
userid: this.$login.f.id,
|
|
347
|
+
is_to_other: false,
|
|
348
|
+
repairers: [] // 维修员
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
ready() {
|
|
352
|
+
// 获取sendType.json配置信息 获取派单类型 转站点,转维修员,自选模式
|
|
353
|
+
getSendType(this)
|
|
354
|
+
if (this.$appdata.getSingleValue('转班组长') && this.$appdata.getSingleValue('转班组长') == 'true') {
|
|
355
|
+
this.is_to_other = true
|
|
356
|
+
this.source = 'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($班组长$)))'
|
|
357
|
+
}
|
|
358
|
+
this.model.f_source = this.telsource == '转维修员' ? '部门派单' : '话务来电';
|
|
359
|
+
this.model.f_finish_date = this.getSecondDay(1)
|
|
360
|
+
},
|
|
361
|
+
methods: {
|
|
362
|
+
depcg(val){
|
|
363
|
+
if (val) {
|
|
364
|
+
let dep = ''
|
|
365
|
+
this.depsdata.forEach((item) => {
|
|
366
|
+
if(item.id == val){
|
|
367
|
+
dep = item
|
|
368
|
+
}
|
|
369
|
+
})
|
|
370
|
+
this.model.serviceacitivity[0].f_meetunit = dep.name
|
|
371
|
+
this.model.f_meetunit = dep.name
|
|
372
|
+
this.model.f_outlets = dep.name
|
|
373
|
+
this.model.serviceacitivity[0].f_reciever = val
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
getDays(val){
|
|
377
|
+
console.log(val)
|
|
378
|
+
this.days = this.$appdata.getParam(val+'截止天数')
|
|
379
|
+
},
|
|
380
|
+
getSecondDay(val){
|
|
381
|
+
let t = new Date();
|
|
382
|
+
let t1 = t.getTime()
|
|
383
|
+
val = val * 1000
|
|
384
|
+
t.setTime(t1 + val * 60 * 60 * 24);
|
|
385
|
+
let Y = t.getFullYear() + '-'
|
|
386
|
+
let M = (t.getMonth() + 1 < 10 ? '0' + (t.getMonth() + 1) : t.getMonth() + 1) + '-'
|
|
387
|
+
let D = (t.getDate() < 10 ? '0' + t.getDate() : t.getDate()) + ' '
|
|
388
|
+
let h = (t.getHours() < 10 ? '0' + t.getHours() : t.getHours()) + ':'
|
|
389
|
+
let m = (t.getMinutes() < 10 ? '0' + t.getMinutes() : t.getMinutes()) + ':'
|
|
390
|
+
let s = t.getSeconds() < 10 ? '0' + t.getSeconds() : t.getSeconds()
|
|
391
|
+
return Y + M + D + h + m + s
|
|
392
|
+
},
|
|
393
|
+
// 当维修员发生改变,获取维修员手机号
|
|
394
|
+
repiarmancg(val) {
|
|
395
|
+
if (val) {
|
|
396
|
+
//tag
|
|
397
|
+
if (typeof val == 'string') {
|
|
398
|
+
this.model.serviceacitivity[0].f_reciever = val
|
|
399
|
+
let http1 = new HttpResetClass()
|
|
400
|
+
http1.load('POST', 'af-telephone/rs/sql/tel_singleTable_OrderBy', {
|
|
401
|
+
data: {
|
|
402
|
+
items: 'f_user_telephone',
|
|
403
|
+
tablename: 't_user',
|
|
404
|
+
condition: `name = '${val}'`,
|
|
405
|
+
orderitem: 'id'
|
|
406
|
+
}
|
|
407
|
+
}, {resolveMsg: null, rejectMsg: null}).then((ress) => {
|
|
408
|
+
this.model.f_repairman_phone = ress.data[0].f_user_telephone
|
|
409
|
+
})
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
// 当工单来源属性发生改变
|
|
414
|
+
sourcechange(val) {
|
|
415
|
+
if (val == undefined || val == '') {
|
|
416
|
+
return
|
|
417
|
+
}
|
|
418
|
+
this.model.f_source = val
|
|
419
|
+
this.servicesource = val
|
|
420
|
+
},
|
|
421
|
+
daychange(val) {
|
|
422
|
+
this.model.day = val
|
|
423
|
+
if (val == '其他') {
|
|
424
|
+
this.flag = false
|
|
425
|
+
} else {
|
|
426
|
+
if(val){
|
|
427
|
+
this.flag = true
|
|
428
|
+
this.model.f_finish_date = this.getSecondDay(val)
|
|
429
|
+
}else {
|
|
430
|
+
this.model.f_finish_date = this.getSecondDay(1)
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
// 获取维修员
|
|
436
|
+
getEmp(role) {
|
|
437
|
+
this.repairers = []
|
|
438
|
+
// let val = {source: 'tool.getChildrenOfResName($维修员$)', userid: `${this.$login.f.id}`}
|
|
439
|
+
let val = {
|
|
440
|
+
source: `this.getParentByType($organization$).getChildByName($${role}$).getUsers()`,
|
|
441
|
+
userid: `${this.$login.f.id}`
|
|
442
|
+
}
|
|
443
|
+
// let val = {source: 'this.getParentByType($department$).getChildByName($置换员$).getUsers()', userid: `${this.$login.f.id}`}
|
|
444
|
+
let http = new HttpResetClass()
|
|
445
|
+
http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
446
|
+
// let result = res.data.filter(res=>res.orgid==this.$login.f.orgid)
|
|
447
|
+
res.data.forEach((item) => {
|
|
448
|
+
if (item.state == '在职' || item.status == 0) {
|
|
449
|
+
this.repairers.push({label: `${item.name}`, value: item.name})
|
|
450
|
+
}
|
|
451
|
+
})
|
|
452
|
+
})
|
|
453
|
+
},
|
|
454
|
+
getDep() {
|
|
455
|
+
this.deps= []
|
|
456
|
+
this.depsdata=[]
|
|
457
|
+
let val = {
|
|
458
|
+
source: `dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))`,
|
|
459
|
+
userid: `${this.$login.f.id}`
|
|
460
|
+
}
|
|
461
|
+
let http = new HttpResetClass()
|
|
462
|
+
http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
463
|
+
this.depsdata = res.data
|
|
464
|
+
res.data.forEach((item) => {
|
|
465
|
+
this.deps.push({label: `${item.name}`, value: item.id})
|
|
466
|
+
})
|
|
467
|
+
})
|
|
468
|
+
},
|
|
469
|
+
adressslect(val) {
|
|
470
|
+
if (val == "NO") {
|
|
471
|
+
this.addressshow = true
|
|
472
|
+
this.addressselect = true
|
|
473
|
+
} else {
|
|
474
|
+
this.addressshow = false
|
|
475
|
+
this.addressselect = false
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
// 控制地址管理组件显示与否
|
|
479
|
+
adressoff(val) {
|
|
480
|
+
if (val == "NO") {
|
|
481
|
+
this.addressshow = true
|
|
482
|
+
this.addressselect = false
|
|
483
|
+
} else {
|
|
484
|
+
this.addressshow = false
|
|
485
|
+
this.addressselect = true
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
// 截取字符串
|
|
489
|
+
interceptString(val) {
|
|
490
|
+
},
|
|
491
|
+
// 选中地址
|
|
492
|
+
rerefParent(val, addstr) {
|
|
493
|
+
var rows = val.rows
|
|
494
|
+
let num = 0
|
|
495
|
+
this.model.f_addressjson = JSON.stringify(rows)
|
|
496
|
+
this.model.f_addressid = val.id
|
|
497
|
+
if (rows.length > 0) {
|
|
498
|
+
let arrid = this.model.f_addressid.split('.')
|
|
499
|
+
for (let i = 0; i < rows.length; i++) {
|
|
500
|
+
if (rows[i].type === '楼号') {
|
|
501
|
+
this.model.f_building = rows[i].name
|
|
502
|
+
} else if (rows[i].type === '楼层') {
|
|
503
|
+
this.model.f_floor = rows[i].name
|
|
504
|
+
} else if (rows[i].type === '门牌号') {
|
|
505
|
+
this.model.f_room = rows[i].name
|
|
506
|
+
this.model.f_room_id = arrid[i]
|
|
507
|
+
} else if (rows[i].type === '区') {
|
|
508
|
+
this.model.f_area = rows[i].name
|
|
509
|
+
} else if (rows[i].type === '街道') {
|
|
510
|
+
this.model.f_street = rows[i].name
|
|
511
|
+
} else if (rows[i].type === '小区') {
|
|
512
|
+
this.model.f_residential_area = rows[i].name
|
|
513
|
+
this.model.f_districtname_id = arrid[i]
|
|
514
|
+
} else if (rows[i].type === '单元') {
|
|
515
|
+
this.model.f_unit = rows[i].name
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
// this.address()
|
|
520
|
+
this.model.f_address = addstr
|
|
521
|
+
},
|
|
522
|
+
// 选中部门
|
|
523
|
+
reres(val) {
|
|
524
|
+
if (val.res == undefined || val.res[0] == undefined || val.res[0] == '') {
|
|
525
|
+
return
|
|
526
|
+
}
|
|
527
|
+
this.model.serviceacitivity[0].f_meetunit = val.res[0]
|
|
528
|
+
this.model.f_meetunit = val.res[0]
|
|
529
|
+
this.model.f_filiale_id = val.orgobj[0].parentid
|
|
530
|
+
this.model.f_filiale = val.orgobj[0].parentname
|
|
531
|
+
this.model.f_outlets = val.res[0]
|
|
532
|
+
this.model.serviceacitivity[0].f_reciever = val.resids[0]
|
|
533
|
+
},
|
|
534
|
+
// 修改备注
|
|
535
|
+
modifyRemarks(val){
|
|
536
|
+
if (val){
|
|
537
|
+
this.model.f_remarks += val
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
onReady() {
|
|
541
|
+
//tag
|
|
542
|
+
this.$emit('ready')
|
|
543
|
+
},
|
|
544
|
+
onError(error) {
|
|
545
|
+
//tag
|
|
546
|
+
this.$emit('error', error)
|
|
547
|
+
},
|
|
548
|
+
add(query) {
|
|
549
|
+
if (typeof (query) === 'string') {
|
|
550
|
+
this.model.f_residential_area = query
|
|
551
|
+
this.address()
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
// 修改或者重派工单时,加载工单的故障信息
|
|
555
|
+
projectCallback(item) {
|
|
556
|
+
if (item) {
|
|
557
|
+
return item.f_user_name
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
},
|
|
561
|
+
selectUnit(query) {
|
|
562
|
+
return this.$resetpost('af-telephone/rs/sql/tel_singleTable_OrderBy',
|
|
563
|
+
{
|
|
564
|
+
data: {
|
|
565
|
+
items: 'f_unitname',
|
|
566
|
+
tablename: 't_unitcoordinate',
|
|
567
|
+
condition: `(f_unitname like '${query}%' or F_TRANS_PINYIN_CAPITAL(f_unitname) like '${query}%')and rownum<10`,
|
|
568
|
+
orderitem: 'id'
|
|
569
|
+
}
|
|
570
|
+
}, {resolveMsg: null, rejectMsg: null}
|
|
571
|
+
)
|
|
572
|
+
},
|
|
573
|
+
selectResidential(query) {
|
|
574
|
+
return this.$resetpost('af-telephone/rs/sql/tel_singleTable_OrderBy',
|
|
575
|
+
{
|
|
576
|
+
data: {
|
|
577
|
+
items: 'f_villagename',
|
|
578
|
+
tablename: 't_villagecoordinate',
|
|
579
|
+
condition: `(f_villagename like '${query}%' or F_TRANS_PINYIN_CAPITAL(f_villagename) like '${query}%')and rownum<10`,
|
|
580
|
+
orderitem: 'id'
|
|
581
|
+
}
|
|
582
|
+
}, {resolveMsg: null, rejectMsg: null}
|
|
583
|
+
)
|
|
584
|
+
},
|
|
585
|
+
async setModifyOrder() {
|
|
586
|
+
this.meading = this.modifyOrder.f_handlingtype
|
|
587
|
+
if (this.meading === '转维修员') {
|
|
588
|
+
await this.getEmp('维修员')
|
|
589
|
+
}
|
|
590
|
+
this.model = Object.assign({}, this.model, this.modifyOrder)
|
|
591
|
+
},
|
|
592
|
+
assignObj() {
|
|
593
|
+
if (this.data) {
|
|
594
|
+
this.model.failure_str = ''
|
|
595
|
+
this.model.f_small_area = this.data.f_slice_area
|
|
596
|
+
this.model.f_meternumber = this.data.f_meternumber
|
|
597
|
+
this.model.f_address = this.data.f_address
|
|
598
|
+
this.model.f_user_name = this.data.f_user_name
|
|
599
|
+
this.model.f_user_type = this.data.f_user_type
|
|
600
|
+
this.model.f_contact_phone = this.data.f_user_phone
|
|
601
|
+
this.model.f_userinfo_id = this.data.f_userinfo_id
|
|
602
|
+
this.model.f_userinfo_code = this.data.f_userinfo_code
|
|
603
|
+
//tag
|
|
604
|
+
// this.residentialquery = this.data.unit_name
|
|
605
|
+
this.model.f_card_id = this.data.card_id
|
|
606
|
+
if (this.model.f_user_type === '民用') {
|
|
607
|
+
this.model.f_area = this.data.f_area
|
|
608
|
+
this.model.f_street = this.data.f_street
|
|
609
|
+
this.model.f_residential_area = this.data.f_residential_area
|
|
610
|
+
this.model.f_building = this.data.f_building
|
|
611
|
+
this.model.f_unit = this.data.f_unit
|
|
612
|
+
this.model.f_floor = this.data.f_floor
|
|
613
|
+
this.model.f_room = this.data.f_room
|
|
614
|
+
//this.address()
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
//this.checkServerList(this.model.f_address)
|
|
619
|
+
},
|
|
620
|
+
// 提交
|
|
621
|
+
getData(val) {
|
|
622
|
+
return this.residential
|
|
623
|
+
},
|
|
624
|
+
// 清楚信息
|
|
625
|
+
cleardata() {
|
|
626
|
+
this.model = Object.assign({}, {
|
|
627
|
+
// 一次派单
|
|
628
|
+
serviceacitivity: [{
|
|
629
|
+
f_service_acitivity_type: '派单',
|
|
630
|
+
f_meetunit: this.model.serviceacitivity[0].f_meetunit,
|
|
631
|
+
f_reciever: this.model.serviceacitivity[0].f_reciever
|
|
632
|
+
}],
|
|
633
|
+
day: '1',
|
|
634
|
+
f_small_area: '',
|
|
635
|
+
f_finish_date: '',
|
|
636
|
+
f_meetunit: this.model.f_meetunit,
|
|
637
|
+
f_orgstr: this.model.f_orgstr,
|
|
638
|
+
f_outlets: this.model.f_outlets,
|
|
639
|
+
f_service_id: '',
|
|
640
|
+
f_contact_phone: '',
|
|
641
|
+
f_phone: '',
|
|
642
|
+
f_user_name: '',
|
|
643
|
+
failure: '',
|
|
644
|
+
f_userinfo_id: '',
|
|
645
|
+
failure_str: '',
|
|
646
|
+
f_address: '',
|
|
647
|
+
f_json: '',
|
|
648
|
+
f_repair_date: Util.getNowDate(),
|
|
649
|
+
f_card_id: '',
|
|
650
|
+
f_remarks: '',
|
|
651
|
+
f_user_type: '',
|
|
652
|
+
f_area: '',
|
|
653
|
+
f_street: '',
|
|
654
|
+
f_residential_area: '',
|
|
655
|
+
f_source: this.servicesource,
|
|
656
|
+
f_building: '',
|
|
657
|
+
f_unit: '',
|
|
658
|
+
f_floor: '',
|
|
659
|
+
f_room: '',
|
|
660
|
+
f_handlingtype: this.model.f_handlingtype,
|
|
661
|
+
aState: null,
|
|
662
|
+
f_orgid: this.$login.f.orgid,
|
|
663
|
+
f_orgname: this.$login.f.orgs,
|
|
664
|
+
f_depname: this.$login.f.dops,
|
|
665
|
+
f_depid: this.$login.f.depids,
|
|
666
|
+
f_operator: this.$login.f.name,
|
|
667
|
+
f_operatorid: this.$login.f.id,
|
|
668
|
+
f_filiale: this.model.f_filiale,
|
|
669
|
+
f_filiale_id: this.model.f_filiale_id,
|
|
670
|
+
f_meternumber: ''//表号
|
|
671
|
+
}),
|
|
672
|
+
this.modifyOrder = {}
|
|
673
|
+
this.types = []
|
|
674
|
+
this.data = {}
|
|
675
|
+
this.f_remarks = ''
|
|
676
|
+
this.model.f_finish_date = this.getSecondDay(1)
|
|
677
|
+
},
|
|
678
|
+
save() {
|
|
679
|
+
this.idisabled = true
|
|
680
|
+
//tag
|
|
681
|
+
// 判断是否输入地址
|
|
682
|
+
if (this.model.f_address == '' || this.model.f_address == undefined) {
|
|
683
|
+
this.idisabled = false
|
|
684
|
+
return this.$showAlert('请输入地址!', 'warning', 2000)
|
|
685
|
+
}
|
|
686
|
+
if (!this.model.f_repairtype) {
|
|
687
|
+
this.idisabled = false
|
|
688
|
+
return this.$showAlert('请输入报修类型!', 'warning', 2000)
|
|
689
|
+
}
|
|
690
|
+
// 判断是否选择工单接收人
|
|
691
|
+
if (this.operType != '修改工单') {
|
|
692
|
+
if (this.model.serviceacitivity[0].f_reciever == '' || this.model.serviceacitivity[0].f_reciever == undefined) {
|
|
693
|
+
if (this.meading == '转维修员') {
|
|
694
|
+
this.idisabled = false
|
|
695
|
+
return this.$showAlert('请选择维修人员', 'warning', 2000)
|
|
696
|
+
} else {
|
|
697
|
+
this.idisabled = false
|
|
698
|
+
return this.$showAlert('请选择站点', 'warning', 2000)
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
if (this.meading == '转维修员') {
|
|
703
|
+
this.model.f_meetunit = this.$login.f.deps
|
|
704
|
+
this.model.f_orgid = this.$login.f.orgid
|
|
705
|
+
this.model.f_filiale = this.$login.f.org
|
|
706
|
+
this.model.f_outlets = this.$login.f.deps
|
|
707
|
+
this.model.f_filiale_id = this.$login.f.orgid
|
|
708
|
+
}
|
|
709
|
+
let failureStr = ''
|
|
710
|
+
if (this.model.failure.startsWith("[")) {
|
|
711
|
+
const failureData = JSON.parse(this.model.failure)
|
|
712
|
+
failureData.forEach(item => {
|
|
713
|
+
if (item.failurecase.length > 0) {
|
|
714
|
+
failureStr += item.f_failure_type + ":" + item.failurecase.toString() + ";"
|
|
715
|
+
} else {
|
|
716
|
+
failureStr += item.f_failure_type + ";"
|
|
717
|
+
}
|
|
718
|
+
})
|
|
719
|
+
this.model.failure_str = failureStr
|
|
720
|
+
}
|
|
721
|
+
let data = {
|
|
722
|
+
model: this.model, loginUser: {
|
|
723
|
+
name: this.loginUser.name,
|
|
724
|
+
ename: this.loginUser.ename
|
|
725
|
+
},
|
|
726
|
+
user: this.data, callObj: this.callObj
|
|
727
|
+
}
|
|
728
|
+
// 如果是修改工单,受理人还是原始的 派单人 不做修改
|
|
729
|
+
if (this.operType == '报修') {
|
|
730
|
+
data.model.f_attendant = this.loginUser.name
|
|
731
|
+
}
|
|
732
|
+
if (data.model.failure) {
|
|
733
|
+
data.model.f_json = this.trouble(data.model.failure)
|
|
734
|
+
}
|
|
735
|
+
// 获得数据发送地址
|
|
736
|
+
let url = ''
|
|
737
|
+
if (this.meading === '转站点') {
|
|
738
|
+
url = config[this.operType].url
|
|
739
|
+
} else {
|
|
740
|
+
url = config[this.operType].url
|
|
741
|
+
data.toRepair = '一级派单'
|
|
742
|
+
}
|
|
743
|
+
data.model.f_state = null
|
|
744
|
+
this.saveing = true
|
|
745
|
+
|
|
746
|
+
if (this.is_to_other) {
|
|
747
|
+
data.is_to_other = 'true'
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
return this.$resetpost(url, data).then((data) => {
|
|
751
|
+
if (data.data && data.data.id) {
|
|
752
|
+
this.id = JSON.parse(data.data.id).id
|
|
753
|
+
|
|
754
|
+
}
|
|
755
|
+
// 清空数据
|
|
756
|
+
this.$emit('commitsus', this.model.f_phone, this.model)
|
|
757
|
+
this.cleardata()
|
|
758
|
+
if (this.callObj && this.callObj.callNum) {
|
|
759
|
+
this.callObj.callNum = null
|
|
760
|
+
this.callObj.RecordsID = null
|
|
761
|
+
this.model.aState = null
|
|
762
|
+
//tag
|
|
763
|
+
Util.afterCallBz(this.$login.f.id, this.$login.f.name)
|
|
764
|
+
}
|
|
765
|
+
this.saveing = false
|
|
766
|
+
this.idisabled = false
|
|
767
|
+
}).catch(error => {
|
|
768
|
+
this.saveing = false
|
|
769
|
+
this.idisabled = false
|
|
770
|
+
})
|
|
771
|
+
},
|
|
772
|
+
address() {
|
|
773
|
+
let strAddress = `${this.model.f_area ? this.model.f_area
|
|
774
|
+
+ '-' : ''}${this.model.f_street ? this.model.f_street
|
|
775
|
+
+ '-' : ''}${this.model.f_residential_area ? this.model.f_residential_area
|
|
776
|
+
+ '' : ''}${this.model.f_building ? this.model.f_building
|
|
777
|
+
+ '号楼' : ''}${this.model.f_unit ? this.model.f_unit
|
|
778
|
+
+ '单元' : ''}${this.model.f_floor ? this.model.f_floor
|
|
779
|
+
+ '层' : ''}${this.model.f_room ? this.model.f_room
|
|
780
|
+
+ '室' : ''}`
|
|
781
|
+
this.model.f_address = strAddress
|
|
782
|
+
},
|
|
783
|
+
// 检查相同地址下有没有还未完成的工单
|
|
784
|
+
checkServerList(address) {
|
|
785
|
+
if (this.model.f_area && this.model.f_area && this.model.f_residential_area && this.model.f_building
|
|
786
|
+
&& this.model.f_unit && this.model.f_floor && this.model.f_room) {
|
|
787
|
+
this.$console.info('开始查询')
|
|
788
|
+
// 地址所有区域输入完成查询
|
|
789
|
+
// this.$resetpost('af-telephone/rs/sql/getServiceActivity.sql', { condition: `f_address = '${address}' and f_single_type = '报修单'`}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
790
|
+
// //有未完成工单
|
|
791
|
+
// let ls = res.data.length
|
|
792
|
+
// if (ls > 0) {
|
|
793
|
+
// // 当前地址下还有工单未完成
|
|
794
|
+
// }
|
|
795
|
+
// })
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
// 处理故障输入
|
|
799
|
+
procFailure(value) {
|
|
800
|
+
if (typeof (value) === 'string') {
|
|
801
|
+
this.model.failure = value
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
trouble(val) {
|
|
805
|
+
let failureall = ''
|
|
806
|
+
// val=[{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""},{"f_failure_type":"抽油烟机","failurecase":[],"f_equipment":""}]
|
|
807
|
+
|
|
808
|
+
let failure = JSON.parse(val)
|
|
809
|
+
for (let i = 0; i < failure.length; i++) {
|
|
810
|
+
if (failure[i].failurecase.length > 0) {
|
|
811
|
+
failureall += failure[i].f_failure_type + ":"
|
|
812
|
+
for (let j = 0; j < failure[i].failurecase.length; j++) {
|
|
813
|
+
failureall += failure[i].failurecase[j]
|
|
814
|
+
if (j + 1 != failure[i].failurecase.length) {
|
|
815
|
+
failureall += ","
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
} else {
|
|
819
|
+
failureall += failure[i].f_failure_type
|
|
820
|
+
}
|
|
821
|
+
if (i + 1 != failure.length) {
|
|
822
|
+
failureall += ';'
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
return failureall
|
|
826
|
+
},
|
|
827
|
+
},
|
|
828
|
+
watch: {
|
|
829
|
+
'telsource'() {
|
|
830
|
+
if (this.telsource == '转站点') {
|
|
831
|
+
this.servicesource = '话务来电'
|
|
832
|
+
} else {
|
|
833
|
+
this.servicesource = '部门派单'
|
|
834
|
+
}
|
|
835
|
+
},
|
|
836
|
+
// 转接类型
|
|
837
|
+
'model.f_handlingtype'() {
|
|
838
|
+
if (this.operType === '修改工单') {
|
|
839
|
+
return
|
|
840
|
+
}
|
|
841
|
+
// 清楚上次记录
|
|
842
|
+
this.model.serviceacitivity[0].f_reciever = ''
|
|
843
|
+
this.model.serviceacitivity[0].f_meetunit = ''
|
|
844
|
+
this.model.f_meetunit = ''
|
|
845
|
+
this.model.f_orgstr = ''
|
|
846
|
+
this.model.f_outlets = ''
|
|
847
|
+
this.model.f_repairman_phone = ''
|
|
848
|
+
if (this.model.f_handlingtype == '转维修员') {
|
|
849
|
+
this.meading = '转维修员'
|
|
850
|
+
this.repairers = []
|
|
851
|
+
this.getEmp("维修员")
|
|
852
|
+
} else {
|
|
853
|
+
this.repairers = []
|
|
854
|
+
this.meading = '转站点'
|
|
855
|
+
this.getDep()
|
|
856
|
+
}
|
|
857
|
+
},
|
|
858
|
+
// 是否清空
|
|
859
|
+
'cleantf'() {
|
|
860
|
+
this.cleardata()
|
|
861
|
+
},
|
|
862
|
+
'data'() {
|
|
863
|
+
this.assignObj()
|
|
864
|
+
},
|
|
865
|
+
'model.f_contact_phone'(val) {
|
|
866
|
+
this.phoneValid = /^((0\d{2,3}-\d{7,8})|(1[3584]\d{9}))$/.test(this.model.f_contact_phone)
|
|
867
|
+
},
|
|
868
|
+
// 话务对象发生变化将来电电话赋值给f_phone
|
|
869
|
+
'callObj.callNum'() {
|
|
870
|
+
this.cleardata()
|
|
871
|
+
this.model.f_phone = this.callObj.callNum
|
|
872
|
+
this.model.f_records_id = this.callObj.RecordsID
|
|
873
|
+
// this.model.f_contact_phone = this.callObj.callNum
|
|
874
|
+
this.model.f_repair_date = Util.getNowDate()
|
|
875
|
+
},
|
|
876
|
+
'types.length'() {
|
|
877
|
+
var ev = new Event("resize", {"bubbles": true, "cancelable": false});
|
|
878
|
+
window.dispatchEvent(ev);
|
|
879
|
+
},
|
|
880
|
+
'callObj.aState'() {
|
|
881
|
+
this.model.aState = this.callObj.aState
|
|
882
|
+
//tag
|
|
883
|
+
}
|
|
884
|
+
},
|
|
885
|
+
computed: {
|
|
886
|
+
IsClickDisabled: function () {
|
|
887
|
+
if (this.$v.valid) {
|
|
888
|
+
if (this.model.aState === null) {
|
|
889
|
+
//tag
|
|
890
|
+
return false
|
|
891
|
+
}
|
|
892
|
+
if (this.model.f_phone && this.model.aState === '正在保存' && this.model.aState === '置忙') {
|
|
893
|
+
//tag
|
|
894
|
+
return false
|
|
895
|
+
}
|
|
896
|
+
if (!this.model.f_phone) {
|
|
897
|
+
//tag
|
|
898
|
+
return false
|
|
899
|
+
} else {
|
|
900
|
+
//tag
|
|
901
|
+
return true
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
getTestData() {
|
|
906
|
+
return this.testdata
|
|
907
|
+
},
|
|
908
|
+
getSource() {
|
|
909
|
+
return this.servicesource
|
|
910
|
+
},
|
|
911
|
+
serviceacitivity() {
|
|
912
|
+
return this.model.serviceacitivity.find((row) => {
|
|
913
|
+
return row.f_service_acitivity_type === '派单'
|
|
914
|
+
})
|
|
915
|
+
},
|
|
916
|
+
alertObject() {
|
|
917
|
+
let result = this.model.failure.find((value) => {
|
|
918
|
+
return value.f_failure_type === '报警器'
|
|
919
|
+
})
|
|
920
|
+
if (result) {
|
|
921
|
+
return result
|
|
922
|
+
}
|
|
923
|
+
return {f_equipment: ''}
|
|
924
|
+
},
|
|
925
|
+
gasstove() {
|
|
926
|
+
let result = this.model.failure.find((value) => {
|
|
927
|
+
return value.f_failure_type === '燃气灶'
|
|
928
|
+
})
|
|
929
|
+
if (result) {
|
|
930
|
+
return result
|
|
931
|
+
}
|
|
932
|
+
return {f_equipment: ''}
|
|
933
|
+
},
|
|
934
|
+
furnace() {
|
|
935
|
+
let result = this.model.failure.find((value) => {
|
|
936
|
+
return value.f_failure_type === '壁挂炉'
|
|
937
|
+
})
|
|
938
|
+
if (result) {
|
|
939
|
+
return result
|
|
940
|
+
}
|
|
941
|
+
return {f_equipment: ''}
|
|
942
|
+
},
|
|
943
|
+
heater() {
|
|
944
|
+
let result = this.model.failure.find((value) => {
|
|
945
|
+
return value.f_failure_type === '热水器'
|
|
946
|
+
})
|
|
947
|
+
if (result) {
|
|
948
|
+
return result
|
|
949
|
+
}
|
|
950
|
+
return {f_equipment: ''}
|
|
951
|
+
},
|
|
952
|
+
lampblack() {
|
|
953
|
+
let result = this.model.failure.find((value) => {
|
|
954
|
+
return value.f_failure_type === '油烟机'
|
|
955
|
+
})
|
|
956
|
+
if (result) {
|
|
957
|
+
return result
|
|
958
|
+
}
|
|
959
|
+
return {f_equipment: ''}
|
|
960
|
+
}
|
|
961
|
+
},
|
|
962
|
+
events: {
|
|
963
|
+
getPosition(val) {
|
|
964
|
+
//tag
|
|
965
|
+
this.$dispatch('distribute', val)
|
|
966
|
+
|
|
967
|
+
}
|
|
968
|
+
},
|
|
969
|
+
components: {
|
|
970
|
+
FailureEdit,
|
|
971
|
+
'failure-edit': FailureEdit
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
</script>
|
|
976
|
+
<style>
|
|
977
|
+
.class-error {
|
|
978
|
+
color: #a94442;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
</style>
|