askbot-dragon 0.7.89 → 0.7.93
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/README.md +27 -27
- package/babel.config.js +5 -5
- package/dragon.iml +7 -7
- package/package.json +55 -55
- package/public/index.html +30 -30
- package/src/App.vue +31 -31
- package/src/api/index.js +1 -1
- package/src/api/mock.http +2 -2
- package/src/api/requestUrl.js +185 -185
- package/src/assets/js/AliyunlssUtil.js +92 -92
- package/src/assets/js/Base64Util.js +22 -22
- package/src/assets/js/script.js +36 -36
- package/src/assets/less/common.css +6773 -6773
- package/src/assets/less/converSationContainer/common.less +191 -191
- package/src/assets/less/converSationContainer/converSatonContainer.less +493 -493
- package/src/assets/less/iconfont.css +37 -37
- package/src/assets/less/ticketMessage.less +211 -211
- package/src/components/ActionAlertIframe.vue +112 -112
- package/src/components/AiGuide.vue +467 -467
- package/src/components/AskIFrame.vue +15 -15
- package/src/components/ConversationContainer.vue +2110 -1318
- package/src/components/FileType.vue +86 -86
- package/src/components/Message.vue +27 -27
- package/src/components/actionSatisfaction.vue +107 -107
- package/src/components/actionSendToBot.vue +62 -62
- package/src/components/answerDissatisfaction.vue +62 -62
- package/src/components/answerRadio.vue +76 -76
- package/src/components/ask-components/DissatisfactionOptions.vue +57 -57
- package/src/components/ask-components/Msgloading.vue +37 -37
- package/src/components/ask-components/SatisfactionV2.vue +15 -15
- package/src/components/askVideo.vue +138 -138
- package/src/components/assetDetails.vue +370 -370
- package/src/components/assetMessage.vue +228 -228
- package/src/components/associationIntention.vue +229 -229
- package/src/components/botActionSatisfactor.vue +68 -68
- package/src/components/chatContent.vue +513 -513
- package/src/components/feedBack.vue +136 -136
- package/src/components/file/AliyunOssComponents.vue +108 -108
- package/src/components/formTemplate.vue +2524 -1969
- package/src/components/loadingProcess.vue +164 -164
- package/src/components/message/ActionAlertIframe.vue +112 -112
- package/src/components/message/ShopMessage.vue +164 -164
- package/src/components/message/TextMessage.vue +924 -924
- package/src/components/message/TicketMessage.vue +177 -177
- package/src/components/message/swiper/index.js +4 -4
- package/src/components/message/swiper/ticketSwiper.vue +502 -502
- package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
- package/src/components/msgLoading.vue +231 -231
- package/src/components/myPopup.vue +71 -0
- package/src/components/popup.vue +184 -0
- package/src/components/recommend.vue +89 -89
- package/src/components/selector/hOption.vue +20 -20
- package/src/components/selector/hSelector.vue +199 -199
- package/src/components/selector/hWrapper.vue +216 -216
- package/src/components/source/BotMessage.vue +24 -24
- package/src/components/source/CustomMessage.vue +24 -24
- package/src/components/test.vue +260 -260
- package/src/components/tree.vue +159 -0
- package/src/components/utils/AliyunIssUtil.js +72 -72
- package/src/components/utils/ckeditor.js +123 -123
- package/src/components/utils/command.js +68 -68
- package/src/components/utils/editing.js +11 -11
- package/src/components/utils/format_date.js +25 -18
- package/src/components/utils/index.js +6 -6
- package/src/components/utils/math_utils.js +15 -15
- package/src/components/utils/plugin-image.js +11 -11
- package/src/components/utils/toolbar-ui.js +41 -41
- package/src/components/voiceComponent.vue +119 -119
- package/src/main.js +45 -45
- package/vue.config.js +43 -34
|
@@ -1,1970 +1,2525 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="media-body">
|
|
3
|
-
<div class="formClass" :class="isPhone?'remPhoneClassForm':'remCompanyClassForm'" v-if="formShow.form">
|
|
4
|
-
<div class="titleName" >
|
|
5
|
-
{{formShow.form.name}}
|
|
6
|
-
</div>
|
|
7
|
-
<div class="title-link"></div>
|
|
8
|
-
<div class="pcFormClass" v-if="isCompany">
|
|
9
|
-
<div v-for="(item) in
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<div
|
|
14
|
-
<div v-if="item.
|
|
15
|
-
<span v-if="item.fieldId!=='workorder_description'&&item.fieldId!=='workorder_clientId'">{{item.formField.name}}</span>
|
|
16
|
-
<span v-if="item.fieldId==='workorder_description'">问题描述</span>
|
|
17
|
-
<span v-if="item.fieldId==='workorder_clientId'">报单人</span>
|
|
18
|
-
<span style="color: red;padding-left: 5px" v-if="item.required
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
<span
|
|
38
|
-
<span v-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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
|
-
|
|
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
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
<div
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
551
|
-
|
|
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
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
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
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
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
|
-
|
|
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
|
-
this.
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
{
|
|
907
|
-
this.
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
},
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
if(
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
this.
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
//
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
},
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
}
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
this.
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
}
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
if (
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
.
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
}
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
.
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
}
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
.
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
.
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
.
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="media-body">
|
|
3
|
+
<div class="formClass" :class="isPhone?'remPhoneClassForm':'remCompanyClassForm'" v-if="formShow.form">
|
|
4
|
+
<div class="titleName" >
|
|
5
|
+
{{formShow.form.name}}
|
|
6
|
+
</div>
|
|
7
|
+
<div class="title-link"></div>
|
|
8
|
+
<div class="pcFormClass" v-if="isCompany">
|
|
9
|
+
<div v-for="(item) in formFieldRelation"
|
|
10
|
+
:key="item.fieldId"
|
|
11
|
+
:class="{notClick:disableds === true}"
|
|
12
|
+
>
|
|
13
|
+
<div class="field-item">
|
|
14
|
+
<div v-if="item.fieldId !== 'workorder_name' && item.formField.type !== 'EXPLANATION' && item.formField.type !== 'EXPLAIN' " class="field-item-name">
|
|
15
|
+
<span v-if="item.fieldId!=='workorder_description'&&item.fieldId!=='workorder_clientId'">{{item.formField.name}}</span>
|
|
16
|
+
<span v-if="item.fieldId==='workorder_description'">问题描述</span>
|
|
17
|
+
<span v-if="item.fieldId==='workorder_clientId'">报单人</span>
|
|
18
|
+
<span style="color: red;padding-left: 5px" v-if="item.required || isRequiredFn(item.formField)">*</span>
|
|
19
|
+
</div>
|
|
20
|
+
<!-- item.value -->
|
|
21
|
+
<el-input v-model="item.value"
|
|
22
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请输入'"
|
|
23
|
+
:maxlength="item.formField.extInfo&&item.formField.extInfo.maxNum?item.formField.extInfo.maxNum*1:1000"
|
|
24
|
+
v-else-if="item.formField.type==='INPUT'&&item.fieldId!=='workorder_name'"
|
|
25
|
+
></el-input>
|
|
26
|
+
<template v-else-if="item.formField.type==='EXPLANATION'">
|
|
27
|
+
<div class="explanation">
|
|
28
|
+
<p class="explanation-p">
|
|
29
|
+
<span class="el-icon-info"></span>
|
|
30
|
+
{{item.formField.extInfo.descriptionText}}
|
|
31
|
+
</p>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
<template v-else-if="item.formField.type==='EXPLAIN'">
|
|
35
|
+
<div class="explanation">
|
|
36
|
+
<p class="explanation-p">
|
|
37
|
+
<span class="el-icon-info"></span>
|
|
38
|
+
<span v-if="item.formField.extInfo.url" class="explain-url"><a :href="item.formField.extInfo.url" target="_blank">{{item.value}}</a></span>
|
|
39
|
+
<span v-else>{{item.value}}</span>
|
|
40
|
+
</p>
|
|
41
|
+
</div>
|
|
42
|
+
</template>
|
|
43
|
+
<el-input type="textarea" :rows="2" v-model="fieldValus[item.fieldId]"
|
|
44
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请输入'"
|
|
45
|
+
:maxlength="item.formField.extInfo&&item.formField.extInfo.maxNum?item.formField.extInfo.maxNum*1:1000"
|
|
46
|
+
v-if="item.formField.type==='TEXTAREA'&& item.fieldId!=='workorder_description'"
|
|
47
|
+
></el-input>
|
|
48
|
+
<ckeditor
|
|
49
|
+
:editor="ckeditor.editor"
|
|
50
|
+
v-model="item.value"
|
|
51
|
+
:config="ckeditor.editorConfig"
|
|
52
|
+
v-else-if="item.fieldId==='workorder_description'"
|
|
53
|
+
></ckeditor>
|
|
54
|
+
<el-date-picker
|
|
55
|
+
v-model=item.value
|
|
56
|
+
type="date"
|
|
57
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择日期'"
|
|
58
|
+
style="width: 100%"
|
|
59
|
+
v-else-if="item.formField.type==='DATE_PICKER'"
|
|
60
|
+
>
|
|
61
|
+
</el-date-picker>
|
|
62
|
+
<el-time-picker
|
|
63
|
+
v-model=item.value
|
|
64
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择时间'"
|
|
65
|
+
style="width: 100%"
|
|
66
|
+
v-else-if="item.formField.type==='TIME_PICKER' && (!item.formField.extInfo.mold || item.formField.extInfo.mold == 'TIME' || getMoldTime(item.formField) == 'TIME')"
|
|
67
|
+
>
|
|
68
|
+
</el-time-picker>
|
|
69
|
+
<el-date-picker
|
|
70
|
+
v-model=item.value
|
|
71
|
+
type="date"
|
|
72
|
+
style="width: 100%"
|
|
73
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择日期'"
|
|
74
|
+
v-else-if="item.formField.type==='TIME_PICKER' && (item.formField.extInfo.mold==='DATA' || item.formField.extInfo.mold==='DATE' || getMoldTime(item.formField) == 'DATE')"
|
|
75
|
+
>
|
|
76
|
+
</el-date-picker>
|
|
77
|
+
<el-date-picker
|
|
78
|
+
v-model=item.value
|
|
79
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择日期时间'"
|
|
80
|
+
clearable
|
|
81
|
+
style="width: 100%"
|
|
82
|
+
type="datetime"
|
|
83
|
+
v-else-if="item.formField.type==='TIME_PICKER' && (item.formField.extInfo.mold==='DATA_TIME' || item.formField.extInfo.mold==='DATE_TIME' || getMoldTime(item.formField) == 'DATE_TIME')"
|
|
84
|
+
>
|
|
85
|
+
</el-date-picker>
|
|
86
|
+
<div v-else-if="item.formField.type==='RADIO' &&item.formField.extInfo.options">
|
|
87
|
+
<el-radio-group v-model=item.value style="text-align:left">
|
|
88
|
+
<el-radio v-for="(items,index) in item.formField.extInfo.options" :label=items.value :key="index">{{items.label}}</el-radio>
|
|
89
|
+
</el-radio-group>
|
|
90
|
+
</div>
|
|
91
|
+
<div v-else-if="item.formField.type==='RADIO' &&item.formField.extInfo.option">
|
|
92
|
+
<el-radio-group v-model=item.value style="text-align:left">
|
|
93
|
+
<el-radio v-for="(items,index) in item.formField.extInfo.option" :label=items.value :key="index">{{items.label}}</el-radio>
|
|
94
|
+
</el-radio-group>
|
|
95
|
+
</div>
|
|
96
|
+
<div v-else-if="item.formField.type==='CHECKBOX' && item.formField.extInfo.option">
|
|
97
|
+
<el-checkbox-group v-model=item.value style="text-align:left">
|
|
98
|
+
<el-checkbox
|
|
99
|
+
v-for="(items,index) in item.formField.extInfo.option"
|
|
100
|
+
:label=items.value
|
|
101
|
+
:key="index"
|
|
102
|
+
>{{items.label}}</el-checkbox>
|
|
103
|
+
</el-checkbox-group>
|
|
104
|
+
</div>
|
|
105
|
+
<div v-else-if="item.formField.type==='CHECKBOX' && item.formField.extInfo.options">
|
|
106
|
+
<el-checkbox-group v-model=item.value style="text-align:left">
|
|
107
|
+
<el-checkbox
|
|
108
|
+
v-for="(items,index) in item.formField.extInfo.options"
|
|
109
|
+
:label=items.value
|
|
110
|
+
:key="index"
|
|
111
|
+
>{{items.label}}</el-checkbox>
|
|
112
|
+
</el-checkbox-group>
|
|
113
|
+
</div>
|
|
114
|
+
<div v-else-if="item.formField.type==='SELECT' || item.formField.type==='OPTION'" >
|
|
115
|
+
<!-- <el-select
|
|
116
|
+
v-model=item.value
|
|
117
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
|
|
118
|
+
style="width: 100%"
|
|
119
|
+
filterable
|
|
120
|
+
v-if="item.formField.extInfo && item.formField.extInfo.option"
|
|
121
|
+
>
|
|
122
|
+
<el-option
|
|
123
|
+
v-for="(items,index) in item.formField.extInfo.option"
|
|
124
|
+
:key="index"
|
|
125
|
+
:label="items.label"
|
|
126
|
+
:value="items.value">
|
|
127
|
+
</el-option>
|
|
128
|
+
</el-select>
|
|
129
|
+
<el-select
|
|
130
|
+
v-model=item.value
|
|
131
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
|
|
132
|
+
style="width: 100%"
|
|
133
|
+
filterable
|
|
134
|
+
v-else-if="item.formField.extInfo && item.formField.extInfo.options"
|
|
135
|
+
>
|
|
136
|
+
<el-option
|
|
137
|
+
v-for="(items,index) in item.formField.extInfo.options"
|
|
138
|
+
:key="index"
|
|
139
|
+
:label="items.label"
|
|
140
|
+
:value="items.value">
|
|
141
|
+
</el-option>
|
|
142
|
+
</el-select>-->
|
|
143
|
+
<el-select
|
|
144
|
+
v-model=item.value
|
|
145
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
|
|
146
|
+
style="width: 100%"
|
|
147
|
+
filterable
|
|
148
|
+
v-if="item.formField.extInfo && item.formField.extInfo.option"
|
|
149
|
+
>
|
|
150
|
+
<el-option
|
|
151
|
+
v-for="(items,index) in item.formField.extInfo.option"
|
|
152
|
+
:key="index"
|
|
153
|
+
:label="items.label"
|
|
154
|
+
:value="items.value">
|
|
155
|
+
</el-option>
|
|
156
|
+
</el-select>
|
|
157
|
+
<div class="cascader-input" v-else @click="openDrawer(item,'select')">
|
|
158
|
+
<template v-if="item.value && (!Array.isArray(item.value) || (Array.isArray(item.value) && item.value.length))">
|
|
159
|
+
<template v-if="Array.isArray(item.value)">
|
|
160
|
+
<span v-for="(select,selectIndex) in item.value" :key="selectIndex">
|
|
161
|
+
{{selectIndex==0?select:','+select}}
|
|
162
|
+
</span>
|
|
163
|
+
</template>
|
|
164
|
+
<template v-else>{{item.value}}</template>
|
|
165
|
+
</template>
|
|
166
|
+
<span v-else>{{item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'}}</span>
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
<template v-else-if="item.formField.type==='CASCADER'">
|
|
170
|
+
<div class="cascader-input" @click="openDrawer(item,'pc_cascader')">
|
|
171
|
+
<template v-if="checkDatas[item.fieldId] && (Array.isArray(checkDatas[item.fieldId]) && checkDatas[item.fieldId].length > 0)">
|
|
172
|
+
<span v-for="(cas,casIndex) in checkDatas[item.fieldId]" :key="casIndex">
|
|
173
|
+
{{casIndex==0?cas.label:'/'+cas.label}}
|
|
174
|
+
</span>
|
|
175
|
+
</template>
|
|
176
|
+
<span v-else>{{item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'}}</span>
|
|
177
|
+
</div>
|
|
178
|
+
<!-- <el-cascader
|
|
179
|
+
v-model=item.value
|
|
180
|
+
:options=item.formField.extInfo.cascade
|
|
181
|
+
style="width: 100%;"
|
|
182
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
|
|
183
|
+
v-if="item.formField.extInfo.cascade"
|
|
184
|
+
></el-cascader>
|
|
185
|
+
<el-cascader
|
|
186
|
+
v-model=item.value
|
|
187
|
+
:options="item.formField.extInfo.cascadeDown.options"
|
|
188
|
+
style="width: 100%;"
|
|
189
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择时间'"
|
|
190
|
+
v-else-if="Object.prototype.toString.call(item.formField.extInfo.cascadeDown) === '[object Object]'"
|
|
191
|
+
></el-cascader>
|
|
192
|
+
<el-cascader
|
|
193
|
+
v-model=item.value
|
|
194
|
+
:options=setOptions(item.formField.extInfo)
|
|
195
|
+
style="width: 100%;"
|
|
196
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
|
|
197
|
+
v-else-if="item.formField.extInfo.cascadeDown.length != 0"
|
|
198
|
+
></el-cascader>-->
|
|
199
|
+
</template>
|
|
200
|
+
<div v-else-if="item.formField.type==='FILE' || item.formField.type === 'IMAGE' || item.formField.type === 'ATTACHMENT' || item.formField.type === 'VIDEO'">
|
|
201
|
+
<div @click="checkUpload(item.fieldId,item.formField.extInfo)" @mouseover="checkUpload(item.fieldId,item.formField.extInfo)" style="flex: 0.75;display:flex;align-items: center;">
|
|
202
|
+
<el-upload
|
|
203
|
+
class="upload-demo"
|
|
204
|
+
ref="upload"
|
|
205
|
+
:list-type="item.formField.type === 'IMAGE'?'picture-card':''"
|
|
206
|
+
:accept="acceptFieldType(item.formField.type)"
|
|
207
|
+
name="file"
|
|
208
|
+
action="/open/media/file/upload"
|
|
209
|
+
:multiple="item.formField.extInfo&&item.formField.extInfo.limitNum&&item.formField.extInfo.limitNum>1?true:false"
|
|
210
|
+
:file-list="fileListList[item.fieldId]"
|
|
211
|
+
:limit="item.formField.extInfo.limitNum?Number(item.formField.extInfo.limitNum):(item.formField.extInfo.limit ? Number(item.formField.extInfo.limit) : 1)"
|
|
212
|
+
:before-upload="(file=>{return beforeAvatarUpload(file,item.formField.type)})"
|
|
213
|
+
:on-exceed="exceedUpload"
|
|
214
|
+
:on-remove="handleRemove"
|
|
215
|
+
:http-request="aliyunOssRequest"
|
|
216
|
+
:on-change="handleEditChange"
|
|
217
|
+
:on-success="successUpload"
|
|
218
|
+
>
|
|
219
|
+
<i class="el-icon-plus"></i>
|
|
220
|
+
<!-- <el-button size="small" type="primary" v-else class="uploadBtn">点击上传</el-button>-->
|
|
221
|
+
</el-upload>
|
|
222
|
+
</div>
|
|
223
|
+
</div>
|
|
224
|
+
<div v-else-if="item.formField.type == 'REF_TEMPLATE' || item.formField.type == 'REF'">
|
|
225
|
+
<el-select
|
|
226
|
+
v-model=item.value
|
|
227
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
|
|
228
|
+
style="width: 100%"
|
|
229
|
+
filterable
|
|
230
|
+
:multiple="item.formField.extInfo && item.formField.extInfo.selectType == '多选'"
|
|
231
|
+
@visible-change="(visible) =>{ return refTemplateVisibleChange(visible,item) }"
|
|
232
|
+
>
|
|
233
|
+
<template v-for="(items,index) in refTemplateList[item.fieldId]">
|
|
234
|
+
<el-option
|
|
235
|
+
v-if="refTemplateList[item.fieldId]"
|
|
236
|
+
:key="index"
|
|
237
|
+
:label="items.label"
|
|
238
|
+
:value="items.value">
|
|
239
|
+
</el-option>
|
|
240
|
+
</template>
|
|
241
|
+
<div
|
|
242
|
+
@click="lodeMore(item)"
|
|
243
|
+
style="widht:100%;height:30px;display:flex;align-items: center;justify-content: center;color:#606266">
|
|
244
|
+
加载更多
|
|
245
|
+
</div>
|
|
246
|
+
</el-select>
|
|
247
|
+
</div>
|
|
248
|
+
</div>
|
|
249
|
+
</div>
|
|
250
|
+
</div>
|
|
251
|
+
<div class="mobileFormClass" v-else style="padding: 10px 0;" :class="{notClick:disableds === true}">
|
|
252
|
+
<div v-for="(item) in formFieldRelation"
|
|
253
|
+
:key="item.fieldId"
|
|
254
|
+
class="form-field-item"
|
|
255
|
+
>
|
|
256
|
+
<div v-if="item.formField.type==='INPUT'" class="form-field-item-value">
|
|
257
|
+
<van-field v-model=item.value
|
|
258
|
+
:label=item.formField.name
|
|
259
|
+
:required="item.required || isRequiredFn(item.formField)"
|
|
260
|
+
:disabled="disableds"
|
|
261
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请输入'"
|
|
262
|
+
:maxlength="item.formField.extInfo&&item.formField.extInfo.maxNum?item.formField.extInfo.maxNum*1:1000"
|
|
263
|
+
/>
|
|
264
|
+
</div>
|
|
265
|
+
<div v-else-if="item.formField.type==='EXPLANATION'||item.formField.type==='EXPLAIN'" class="explan-ation">
|
|
266
|
+
<div class="explanation">
|
|
267
|
+
<p class="explanation-p" v-if="item.formField.type==='EXPLANATION'">
|
|
268
|
+
<span class="el-icon-info"></span>
|
|
269
|
+
{{item.formField.extInfo.descriptionText}}
|
|
270
|
+
</p>
|
|
271
|
+
<p v-else class="explanation-p">
|
|
272
|
+
<span class="el-icon-info"></span>
|
|
273
|
+
<span v-if="item.formField.extInfo.url" class="explain-url"><a :href="item.formField.extInfo.url" target="_blank">{{item.value}}</a></span>
|
|
274
|
+
<span v-else>{{item.value}}</span>
|
|
275
|
+
</p>
|
|
276
|
+
</div>
|
|
277
|
+
</div>
|
|
278
|
+
<div v-else-if="item.formField.type==='TEXTAREA'" class="form-field-item-value">
|
|
279
|
+
<van-field v-model=item.value
|
|
280
|
+
:label=item.formField.name
|
|
281
|
+
:required="item.required || isRequiredFn(item.formField)"
|
|
282
|
+
type="textarea"
|
|
283
|
+
:disabled="disableds"
|
|
284
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请输入'"
|
|
285
|
+
:maxlength="item.formField.extInfo&&item.formField.extInfo.maxNum?item.formField.extInfo.maxNum*1:1000"
|
|
286
|
+
v-if="item.fieldId!=='workorder_description'"
|
|
287
|
+
/>
|
|
288
|
+
<div v-if="item.fieldId==='workorder_description'" class="workorder_description">
|
|
289
|
+
<div class="field-name" :class="item.required || isRequiredFn(item.formField)?'required-name':''">
|
|
290
|
+
<span v-if="item.required || isRequiredFn(item.formField)" style="color: red">*</span>
|
|
291
|
+
{{item.formField.name}}
|
|
292
|
+
</div>
|
|
293
|
+
<ckeditor
|
|
294
|
+
:editor="ckeditor.editor"
|
|
295
|
+
v-model="item.value"
|
|
296
|
+
@onReady="onReady"
|
|
297
|
+
:config="ckeditor.editorConfig"
|
|
298
|
+
></ckeditor>
|
|
299
|
+
</div>
|
|
300
|
+
</div>
|
|
301
|
+
<div v-else-if="item.formField.type==='DATE_PICKER'" class="form-field-item-value">
|
|
302
|
+
<van-field
|
|
303
|
+
readonly
|
|
304
|
+
clickable
|
|
305
|
+
name="calendar"
|
|
306
|
+
:value=dateValue[item.fieldId]
|
|
307
|
+
:label=item.formField.name
|
|
308
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择日期'"
|
|
309
|
+
:required="item.required || isRequiredFn(item.formField)"
|
|
310
|
+
@click="dateClick(item.fieldId)"
|
|
311
|
+
:disabled="disableds"
|
|
312
|
+
right-icon="van-icon van-icon-arrow van-cell__right-icon"
|
|
313
|
+
/>
|
|
314
|
+
<van-calendar
|
|
315
|
+
v-model="showCalendar"
|
|
316
|
+
@confirm="onConfirmCalendar($event,item)"
|
|
317
|
+
/>
|
|
318
|
+
</div>
|
|
319
|
+
<div v-else-if="item.formField.type==='TIME_PICKER'&&(!item.formField.extInfo.mold||item.formField.extInfo.mold==='DATA_TIME' || item.formField.extInfo.mold==='DATE_TIME' || getMoldTime(item.formField) == 'DATE_TIME')" class="form-field-item-value">
|
|
320
|
+
<van-field
|
|
321
|
+
readonly
|
|
322
|
+
clickable
|
|
323
|
+
name="datetimePicker"
|
|
324
|
+
:required="item.required || isRequiredFn(item.formField)"
|
|
325
|
+
:value=timeValue[item.fieldId]
|
|
326
|
+
:label=item.formField.name
|
|
327
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
|
|
328
|
+
@click="timeClick(item.fieldId,item,'DATE_TIME')"
|
|
329
|
+
:disabled="disableds"
|
|
330
|
+
right-icon="van-icon van-icon-arrow van-cell__right-icon"
|
|
331
|
+
|
|
332
|
+
/>
|
|
333
|
+
<van-popup v-model="dateTimePicker" position="bottom">
|
|
334
|
+
<van-datetime-picker
|
|
335
|
+
v-model="currentDate"
|
|
336
|
+
type="datetime"
|
|
337
|
+
@confirm="onConfirm($event,item.fieldId,item,'DATE_TIME')"
|
|
338
|
+
@cancel="dateTimePicker = false"
|
|
339
|
+
:min-date="minDate"
|
|
340
|
+
:formatter="formatter"
|
|
341
|
+
:max-date="maxDate"
|
|
342
|
+
/>
|
|
343
|
+
</van-popup>
|
|
344
|
+
</div>
|
|
345
|
+
<div v-else-if="item.formField.type==='TIME_PICKER'&&(!item.formField.extInfo.mold || item.formField.extInfo.mold==='TIME' || getMoldTime(item.formField) == 'TIME')" class="form-field-item-value">
|
|
346
|
+
<van-field
|
|
347
|
+
readonly
|
|
348
|
+
clickable
|
|
349
|
+
name="datetimePicker"
|
|
350
|
+
:required="item.required || isRequiredFn(item.formField)"
|
|
351
|
+
:value=timeValue[item.fieldId]
|
|
352
|
+
:label=item.formField.name
|
|
353
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
|
|
354
|
+
@click="timeClick(item.fieldId,item,'TIME')"
|
|
355
|
+
:disabled="disableds"
|
|
356
|
+
right-icon="van-icon van-icon-arrow van-cell__right-icon"
|
|
357
|
+
|
|
358
|
+
/>
|
|
359
|
+
<van-popup v-model="timePicker" position="bottom">
|
|
360
|
+
<van-datetime-picker
|
|
361
|
+
v-model="currentTime"
|
|
362
|
+
type="time"
|
|
363
|
+
title="选择时间"
|
|
364
|
+
:min-hour="0"
|
|
365
|
+
:max-hour="23"
|
|
366
|
+
@confirm="onConfirm($event,item.fieldId,item,'TIME')"
|
|
367
|
+
@cancel="timePicker = false"
|
|
368
|
+
/>
|
|
369
|
+
</van-popup>
|
|
370
|
+
</div>
|
|
371
|
+
<div v-else-if="item.formField.type==='TIME_PICKER'&&(item.formField.extInfo.mold==='DATA' || item.formField.extInfo.mold==='DATE' || getMoldTime(item.formField) == 'DATE')" class="form-field-item-value">
|
|
372
|
+
<van-field
|
|
373
|
+
readonly
|
|
374
|
+
clickable
|
|
375
|
+
name="datetimePicker"
|
|
376
|
+
:required="item.required || isRequiredFn(item.formField)"
|
|
377
|
+
:value=timeValue[item.fieldId]
|
|
378
|
+
:label=item.formField.name
|
|
379
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
|
|
380
|
+
@click="timeClick(item.fieldId,item,'DATE')"
|
|
381
|
+
:disabled="disableds"
|
|
382
|
+
right-icon="van-icon van-icon-arrow van-cell__right-icon"
|
|
383
|
+
|
|
384
|
+
/>
|
|
385
|
+
<van-calendar v-model="datePicker" :show-confirm="false" @confirm="onConfirm($event,item.fieldId,item,'DATE')" @cancel="datePicker = false"/>
|
|
386
|
+
</div>
|
|
387
|
+
<div v-else-if="item.formField.type==='RADIO'" class="form-field-item-other">
|
|
388
|
+
<van-field name="radio" :label="item.formField.name" :required="item.required || isRequiredFn(item.formField)" :disabled="disableds" v-if="item.formField.extInfo.option">
|
|
389
|
+
<template #input style="display: flex;align-items: center">
|
|
390
|
+
<van-radio-group v-model=item.value direction="horizontal" :disabled="disableds">
|
|
391
|
+
<van-radio v-for="(items,index) in item.formField.extInfo.option" :name=items.value :key="index">{{items.label}}</van-radio>
|
|
392
|
+
</van-radio-group>
|
|
393
|
+
</template>
|
|
394
|
+
</van-field>
|
|
395
|
+
<van-field name="radio" :label="item.formField.name" :required="item.required || isRequiredFn(item.formField)" :disabled="disableds" v-if="item.formField.extInfo.options">
|
|
396
|
+
<template #input style="display: flex;align-items: center" >
|
|
397
|
+
<van-radio-group v-model=item.value direction="horizontal" :disabled="disableds">
|
|
398
|
+
<van-radio v-for="(items,index) in item.formField.extInfo.options" :name=items.value :key="index">{{items.label}}</van-radio>
|
|
399
|
+
</van-radio-group>
|
|
400
|
+
</template>
|
|
401
|
+
</van-field>
|
|
402
|
+
</div>
|
|
403
|
+
<div v-else-if="item.formField.type==='CHECKBOX'" class="form-field-item-other">
|
|
404
|
+
<van-field name="checkbox" :label=item.formField.name :required="item.required || isRequiredFn(item.formField)" :disabled="disableds" v-if="item.formField.extInfo.option">
|
|
405
|
+
<template #input style="display: flex;align-items: center" >
|
|
406
|
+
<van-checkbox-group v-model=item.value ref="checkboxGroup" direction="horizontal" :disabled="disableds">
|
|
407
|
+
<van-checkbox
|
|
408
|
+
v-for="(items,index) in item.formField.extInfo.option"
|
|
409
|
+
shape="square"
|
|
410
|
+
:key="index"
|
|
411
|
+
:name=items.value>
|
|
412
|
+
{{items.label}}
|
|
413
|
+
</van-checkbox>
|
|
414
|
+
</van-checkbox-group>
|
|
415
|
+
</template>
|
|
416
|
+
</van-field>
|
|
417
|
+
<van-field name="checkbox" :label=item.formField.name :required="item.required || isRequiredFn(item.formField)" :disabled="disableds" v-if="item.formField.extInfo.options">
|
|
418
|
+
<template #input style="display: flex;align-items: center" >
|
|
419
|
+
<van-checkbox-group v-model=item.value ref="checkboxGroup" direction="horizontal" :disabled="disableds">
|
|
420
|
+
<van-checkbox
|
|
421
|
+
v-for="(items,index) in item.formField.extInfo.options"
|
|
422
|
+
shape="square"
|
|
423
|
+
:key="index"
|
|
424
|
+
:name=items.value>
|
|
425
|
+
{{items.label}}
|
|
426
|
+
</van-checkbox>
|
|
427
|
+
</van-checkbox-group>
|
|
428
|
+
</template>
|
|
429
|
+
</van-field>
|
|
430
|
+
</div>
|
|
431
|
+
<div v-else-if="item.formField.type==='SELECT' || item.formField.type==='OPTION'" class="form-field-item-value">
|
|
432
|
+
<template v-if="item.fieldId==='workorder_clientId' || item.fieldId === 'workorder_statusId' || item.fieldId === 'workorder_priority'">
|
|
433
|
+
<van-field
|
|
434
|
+
readonly
|
|
435
|
+
clickable
|
|
436
|
+
name="picker"
|
|
437
|
+
:value=selectValues[item.fieldId]
|
|
438
|
+
:label="item.fieldId==='workorder_clientId'?'报单人':item.formField.name"
|
|
439
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
|
|
440
|
+
@click="selectClick(item.fieldId,'client',item)"
|
|
441
|
+
:required="item.required || isRequiredFn(item.formField)"
|
|
442
|
+
:disabled="disableds"
|
|
443
|
+
@click-right-icon.stop="SelectClear(item.fieldId)"
|
|
444
|
+
:right-icon="selectValues[item.fieldId]? 'close' : 'van-icon van-icon-arrow van-cell__right-icon'"
|
|
445
|
+
/>
|
|
446
|
+
<van-popup v-model="showPicker" position="bottom">
|
|
447
|
+
<van-picker
|
|
448
|
+
show-toolbar
|
|
449
|
+
:columns=selectValue
|
|
450
|
+
@confirm="onConfirmSelect($event,item)"
|
|
451
|
+
@cancel="showPicker = false"
|
|
452
|
+
:key="selectKey"
|
|
453
|
+
|
|
454
|
+
/>
|
|
455
|
+
</van-popup>
|
|
456
|
+
</template>
|
|
457
|
+
<template v-else>
|
|
458
|
+
<van-field
|
|
459
|
+
readonly
|
|
460
|
+
clickable
|
|
461
|
+
name="picker"
|
|
462
|
+
:value="Array.isArray(item.value)?item.value.join(','):item.value"
|
|
463
|
+
:label=item.formField.name
|
|
464
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
|
|
465
|
+
@click="selectClick(item.fieldId,'select',item)"
|
|
466
|
+
:required="item.required || isRequiredFn(item.formField)"
|
|
467
|
+
:disabled="disableds"
|
|
468
|
+
@click-right-icon.stop="SelectClear(item.fieldId)"
|
|
469
|
+
:right-icon="selectValues[item.fieldId]? 'close' : 'van-icon van-icon-arrow van-cell__right-icon'"
|
|
470
|
+
/>
|
|
471
|
+
<van-popup v-model="selectPicker" position="bottom" :style="{ height: '300px' }">
|
|
472
|
+
<select-popup
|
|
473
|
+
:options="item.formField.extInfo.option?item.formField.extInfo.option:item.formField.extInfo.options"
|
|
474
|
+
:defaultValue="defaultValue"
|
|
475
|
+
@onConfim="confirmSelect"
|
|
476
|
+
@onclose= "selectPicker = false"
|
|
477
|
+
:multiple="item.formField.extInfo && item.formField.extInfo.selectType ==='多选'?true:false"
|
|
478
|
+
ref="selectPopup"
|
|
479
|
+
:props="{
|
|
480
|
+
value:'value',
|
|
481
|
+
label:'label'
|
|
482
|
+
}"
|
|
483
|
+
></select-popup>
|
|
484
|
+
</van-popup>
|
|
485
|
+
</template>
|
|
486
|
+
</div>
|
|
487
|
+
<div v-if="item.formField.type === 'REF_TEMPLATE' || item.formField.type === 'REF'" class="form-field-item-value">
|
|
488
|
+
<van-field
|
|
489
|
+
readonly
|
|
490
|
+
clickable
|
|
491
|
+
:value="Array.isArray(selectValues[item.fieldId])?selectValues[item.fieldId].join(','):selectValues[item.fieldId]"
|
|
492
|
+
:label="item.formField.name"
|
|
493
|
+
name="picker"
|
|
494
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
|
|
495
|
+
@click="selectClick(item.fieldId,'ref',item)"
|
|
496
|
+
@click-right-icon.stop="SelectClear(item.fieldId)"
|
|
497
|
+
:required="item.required || isRequiredFn(item.formField)"
|
|
498
|
+
:disabled="disableds"
|
|
499
|
+
:right-icon="selectValues[item.fieldId]? 'close' : 'van-icon van-icon-arrow van-cell__right-icon'"
|
|
500
|
+
/>
|
|
501
|
+
<van-popup v-model="refShowPicker" position="bottom" :style="{ height: '300px' }">
|
|
502
|
+
<select-popup
|
|
503
|
+
:options="refTemplateList[item.fieldId]"
|
|
504
|
+
:defaultValue="defaultValue"
|
|
505
|
+
@onConfim="confirmRefSelect"
|
|
506
|
+
@onclose= "refShowPicker = false"
|
|
507
|
+
:multiple="detailField.formField.extInfo && detailField.formField.extInfo.selectType ==='多选'?true:false"
|
|
508
|
+
ref="selectPopup"
|
|
509
|
+
:props="{
|
|
510
|
+
value:'id',
|
|
511
|
+
label:'name'
|
|
512
|
+
}"
|
|
513
|
+
>
|
|
514
|
+
</select-popup>
|
|
515
|
+
</van-popup>
|
|
516
|
+
</div>
|
|
517
|
+
<div v-else-if="item.formField.type==='CASCADER'" class="form-field-item-value">
|
|
518
|
+
<van-field
|
|
519
|
+
readonly
|
|
520
|
+
clickable
|
|
521
|
+
name="area"
|
|
522
|
+
:value="checkDatas[item.fieldId] && Array.isArray(checkDatas[item.fieldId])?checkDatas[item.fieldId].map(e=>e.label).join(','):''"
|
|
523
|
+
:label=item.formField.name
|
|
524
|
+
:placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
|
|
525
|
+
@click="openDrawer(item,'cascader')"
|
|
526
|
+
:required="item.required || isRequiredFn(item.formField)"
|
|
527
|
+
:disabled="disableds"
|
|
528
|
+
right-icon="van-icon van-icon-arrow van-cell__right-icon"
|
|
529
|
+
/>
|
|
530
|
+
|
|
531
|
+
<van-popup v-model="showArea" position="bottom" :style="{ height: '400px' }">
|
|
532
|
+
<tree ref="drawerTree"
|
|
533
|
+
:dataOptions="item.formField"
|
|
534
|
+
@saveData="saveData"
|
|
535
|
+
@cancelBtn="showArea = false"
|
|
536
|
+
></tree>
|
|
537
|
+
</van-popup>
|
|
538
|
+
</div>
|
|
539
|
+
<div v-else-if="item.formField.type === 'FILE' || item.formField.type === 'IMAGE' || item.formField.type === 'ATTACHMENT' || item.formField.type === 'VIDEO'" class="form-field-item-value">
|
|
540
|
+
<div @click="checkUpload(item.fieldId,item.formField.extInfo)" class="form-field-item-file">
|
|
541
|
+
<div class="fileName"><span style="color: red" v-if="item.required || isRequiredFn(item.formField)">*</span>{{item.formField.name}}</div>
|
|
542
|
+
<van-uploader
|
|
543
|
+
v-model="fileListList[item.fieldId]"
|
|
544
|
+
:before-read="(file=>{return beforeRead(file,item.formField.type)})"
|
|
545
|
+
:max-count='item.formField.extInfo&&item.formField.extInfo.limitNum ? item.formField.extInfo.limitNum : (item.formField.extInfo.limit ? item.formField.extInfo.limit : 1)'
|
|
546
|
+
:after-read="afterRead"
|
|
547
|
+
:accept="acceptFieldType(item.formField.type)"
|
|
548
|
+
:multiple="item.formField.extInfo&&item.formField.extInfo.limitNum&&item.formField.extInfo.limitNum>1?true:false"
|
|
549
|
+
>
|
|
550
|
+
<div class="vant-upload--picture-card">
|
|
551
|
+
<i class="el-icon-plus"></i>
|
|
552
|
+
</div>
|
|
553
|
+
</van-uploader>
|
|
554
|
+
</div>
|
|
555
|
+
</div>
|
|
556
|
+
</div>
|
|
557
|
+
<van-popup v-model="fileUpload" :close-on-click-overlay="false">
|
|
558
|
+
<div style="background-color: black;height: 100px;width: 100px;display: flex;justify-content: center;align-items: center" >
|
|
559
|
+
<van-loading type="spinner"/>
|
|
560
|
+
</div>
|
|
561
|
+
</van-popup>
|
|
562
|
+
</div>
|
|
563
|
+
<div class="bottom-link"></div>
|
|
564
|
+
<div class="form-submit-btn" v-if="isCompany">
|
|
565
|
+
<el-button style="border-color: #366aff;color: white;background-color: #366aff" round class="submitClass" size="small" @click="submitClick" :disabled="disableds">
|
|
566
|
+
<i class="el-icon-check" v-if="!disableds"></i>
|
|
567
|
+
{{submitValue}}
|
|
568
|
+
</el-button>
|
|
569
|
+
</div>
|
|
570
|
+
<div class="form-submit-btn" v-else>
|
|
571
|
+
<van-button round type="info" class="submitClass" @click="submitClick" :disabled="disableds">
|
|
572
|
+
<i class="el-icon-check" v-if="!disableds"></i>
|
|
573
|
+
{{submitValue}}
|
|
574
|
+
</van-button>
|
|
575
|
+
</div>
|
|
576
|
+
</div>
|
|
577
|
+
<el-dialog :visible.sync="dialogVisible">
|
|
578
|
+
<img width="100%" :src="dialogImageUrl" alt="">
|
|
579
|
+
</el-dialog>
|
|
580
|
+
<el-drawer
|
|
581
|
+
:withHeader="false"
|
|
582
|
+
:visible.sync="drawer"
|
|
583
|
+
size="60%"
|
|
584
|
+
direction="btt">
|
|
585
|
+
<div class="drawer-container">
|
|
586
|
+
<tree ref="drawerTree"
|
|
587
|
+
:dataOptions="detailField.formField"
|
|
588
|
+
@saveData="saveData"
|
|
589
|
+
@cancelBtn="drawer = false"
|
|
590
|
+
></tree>
|
|
591
|
+
</div>
|
|
592
|
+
</el-drawer>
|
|
593
|
+
<el-drawer
|
|
594
|
+
:withHeader="false"
|
|
595
|
+
:visible.sync="selectPopUp"
|
|
596
|
+
size="40%"
|
|
597
|
+
direction="btt"
|
|
598
|
+
>
|
|
599
|
+
<select-popup
|
|
600
|
+
:options="options"
|
|
601
|
+
:defaultValue="defaultValue"
|
|
602
|
+
@onConfim="confirmSelect"
|
|
603
|
+
:multiple="detailField.formField.extInfo && detailField.formField.extInfo.selectType ==='多选'?true:false"
|
|
604
|
+
ref="selectPopup"
|
|
605
|
+
:props="{
|
|
606
|
+
value:'label',
|
|
607
|
+
label:'value'
|
|
608
|
+
}"
|
|
609
|
+
></select-popup>
|
|
610
|
+
</el-drawer>
|
|
611
|
+
</div>
|
|
612
|
+
</template>
|
|
613
|
+
|
|
614
|
+
<script>
|
|
615
|
+
/* eslint-disable */
|
|
616
|
+
import { forMatTime } from "./utils/format_date";
|
|
617
|
+
|
|
618
|
+
let that
|
|
619
|
+
import {multipartUpload,ossFileUrl} from "./utils/AliyunIssUtil";
|
|
620
|
+
import {MyCustomUploadAdapterPlugin} from "./utils/ckeditor";
|
|
621
|
+
import MyimageUpload from './utils/plugin-image'
|
|
622
|
+
import CKEDITOR from 'ckeditor'
|
|
623
|
+
|
|
624
|
+
import myPopup from "./myPopup.vue";
|
|
625
|
+
import Tree from '../components/tree'
|
|
626
|
+
import selectPopup from '../components/popup'
|
|
627
|
+
export default {
|
|
628
|
+
name: "formTemplate",
|
|
629
|
+
data() {
|
|
630
|
+
return {
|
|
631
|
+
isPhone: false,
|
|
632
|
+
isCompany: false,
|
|
633
|
+
checkboxGroup: [],
|
|
634
|
+
currentDate: new Date(),
|
|
635
|
+
currentTime:"",
|
|
636
|
+
timePicker:false,
|
|
637
|
+
timeValue: [],
|
|
638
|
+
dateValue: [],
|
|
639
|
+
showPicker: false,
|
|
640
|
+
selectPicker:false,
|
|
641
|
+
dateTimePicker: false,
|
|
642
|
+
datePicker:false,
|
|
643
|
+
showCalendar: false,
|
|
644
|
+
radio: [],
|
|
645
|
+
selectValue: [],
|
|
646
|
+
pickerValue: [],
|
|
647
|
+
showArea: false,
|
|
648
|
+
dateTimeValue: [],
|
|
649
|
+
dateTimeValue1: [],
|
|
650
|
+
showDateTimePicker: false,
|
|
651
|
+
showDateTimePicker1: false,
|
|
652
|
+
pickerId: 0,
|
|
653
|
+
dateId: 0,
|
|
654
|
+
timeId: 0,
|
|
655
|
+
selectId: 0,
|
|
656
|
+
dateTimeId: 0,
|
|
657
|
+
column: [
|
|
658
|
+
{
|
|
659
|
+
values: '', // 设置的页面初始值
|
|
660
|
+
className: "column1"
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
values: '',
|
|
664
|
+
className: "column2",
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
values: '',
|
|
668
|
+
className: "column3",
|
|
669
|
+
}
|
|
670
|
+
],
|
|
671
|
+
pageShow: false, //省市区三级联动是否显示(因为是接口返回的数据,等三级数据渲染完毕之后,在显示三级联动)
|
|
672
|
+
cityDates: '', //安联当前选中市的所有区所有数据
|
|
673
|
+
data: [],//接口返回所有级联数据
|
|
674
|
+
dateTimeRange: '',
|
|
675
|
+
selectValues: [],
|
|
676
|
+
cascadeValue: [],
|
|
677
|
+
minDate: new Date(2020, 0, 1),
|
|
678
|
+
maxDate: new Date(2025, 11, 31),
|
|
679
|
+
disableds: false,
|
|
680
|
+
submitValue: '提交',
|
|
681
|
+
clickPicker: '',
|
|
682
|
+
columns: [],
|
|
683
|
+
copyForm: [],
|
|
684
|
+
cascaderId:0,
|
|
685
|
+
formShow:[],
|
|
686
|
+
uploadAvatarParams: {
|
|
687
|
+
token: "8c98087dfd2d48f856d8c95c09115def",
|
|
688
|
+
},
|
|
689
|
+
fileListList:[],
|
|
690
|
+
keyValue:'',
|
|
691
|
+
selectKey:'',
|
|
692
|
+
filedId:'',
|
|
693
|
+
disabled:false,
|
|
694
|
+
dialogVisible:false,
|
|
695
|
+
dialogImageUrl:'',
|
|
696
|
+
fileUpload:false,
|
|
697
|
+
videoFlag:false,
|
|
698
|
+
videoUploadPercent:false,
|
|
699
|
+
fileType:['PICTURE','VIDEO','AUDIO'],
|
|
700
|
+
loading:'',
|
|
701
|
+
ossConfig: {
|
|
702
|
+
region: "oss-cn-zhangjiakou",
|
|
703
|
+
//云账号AccessKey有所有API访问权限,建议遵循阿里云安全最佳实践,创建并使用STS方式来进行API访问
|
|
704
|
+
accessKeyId: "LTAI4G3QtdEdwkEbihBngAsK",
|
|
705
|
+
accessKeySecret: "OwgdVfc5PeCkIgqIdug660xmiSPchn",
|
|
706
|
+
// stsToken: '<Your securityToken(STS)>',
|
|
707
|
+
bucket: "guoranopen-zjk",
|
|
708
|
+
},
|
|
709
|
+
hideUploadEdit:false,
|
|
710
|
+
limitNum:1,
|
|
711
|
+
ckeditor: {
|
|
712
|
+
editor: CKEDITOR.ClassicEditor,
|
|
713
|
+
editorConfig: {
|
|
714
|
+
extraPlugins: [MyimageUpload,MyCustomUploadAdapterPlugin],
|
|
715
|
+
toolbar: [
|
|
716
|
+
'MyimageUpload'
|
|
717
|
+
]
|
|
718
|
+
},
|
|
719
|
+
},
|
|
720
|
+
refShowPicker:false,
|
|
721
|
+
refTemplateList:{},
|
|
722
|
+
refList:{},
|
|
723
|
+
dataQuery:{},
|
|
724
|
+
drawer:false,
|
|
725
|
+
detailField:{
|
|
726
|
+
formField:{}
|
|
727
|
+
},
|
|
728
|
+
checkDatas:[],
|
|
729
|
+
selectPopUp:false,
|
|
730
|
+
options:[],
|
|
731
|
+
defaultValue:[],
|
|
732
|
+
timeDetailData:{},
|
|
733
|
+
selectDetail:{}
|
|
734
|
+
}
|
|
735
|
+
},
|
|
736
|
+
props: {
|
|
737
|
+
formList: {
|
|
738
|
+
type: Object,
|
|
739
|
+
default() {
|
|
740
|
+
return {}
|
|
741
|
+
}
|
|
742
|
+
},
|
|
743
|
+
type:String,
|
|
744
|
+
disable:Boolean,
|
|
745
|
+
submit:Boolean,
|
|
746
|
+
usePropStyleType:{
|
|
747
|
+
type:Boolean,
|
|
748
|
+
default() {
|
|
749
|
+
return false;
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
propIsPhone: {
|
|
753
|
+
type:Boolean,
|
|
754
|
+
default() {
|
|
755
|
+
return false;
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
propIsCompany: {
|
|
759
|
+
type:Boolean,
|
|
760
|
+
default() {
|
|
761
|
+
return false;
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
uploadUrl: {
|
|
765
|
+
type:String,
|
|
766
|
+
default(){
|
|
767
|
+
return '/open/media/file/upload'
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
},
|
|
771
|
+
computed:{
|
|
772
|
+
acceptType:function () {
|
|
773
|
+
return '.jpg,.jpeg,.png,.gif,.JPG,.JPEG,.PBG,.GIF'
|
|
774
|
+
},
|
|
775
|
+
formFieldRelation:function () {
|
|
776
|
+
let arr = [];
|
|
777
|
+
let formList = []
|
|
778
|
+
formList = this.formShow.form && this.formShow.form.formFieldRelation
|
|
779
|
+
formList.forEach(item=> {
|
|
780
|
+
if (item.fieldId !=='workorder_name' && item.display && item.formField.type!=='CHAT_RECORD' && item.formField.type!=='CHANNEL') {
|
|
781
|
+
arr.push(item);
|
|
782
|
+
}
|
|
783
|
+
})
|
|
784
|
+
arr.forEach(item=>{
|
|
785
|
+
this.$set(item,'relationDisplay',this.relationSet(item.formField,'dependentFieldId'))
|
|
786
|
+
if(item.formField.type === 'CHECKBOX'){
|
|
787
|
+
if(!item.value){
|
|
788
|
+
item.value = []
|
|
789
|
+
}
|
|
790
|
+
if(item.formField.defaultValue && (!item.value || !item.value.length)){
|
|
791
|
+
item.value = item.formField.defaultValue
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
if (item.formField.type === 'EXPLAIN'){
|
|
795
|
+
if (!item.value){
|
|
796
|
+
item.value = item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:''
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
})
|
|
800
|
+
let newArr = arr.filter(item=>item.relationDisplay)
|
|
801
|
+
console.debug('arr',arr,newArr)
|
|
802
|
+
return newArr;
|
|
803
|
+
},
|
|
804
|
+
acceptFieldType(){
|
|
805
|
+
return (type)=>{
|
|
806
|
+
console.debug('type',type)
|
|
807
|
+
if (type == 'FILE'){
|
|
808
|
+
return '*'
|
|
809
|
+
} else if( type == 'IMAGE') {
|
|
810
|
+
return 'image/*'
|
|
811
|
+
} else if(type == 'VIDEO') {
|
|
812
|
+
return 'video/*'
|
|
813
|
+
} else {
|
|
814
|
+
return '*'
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
isRequiredFn(){
|
|
819
|
+
return function(field) {
|
|
820
|
+
return this.relationSet(field,'requiredDependentFieldId')
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
},
|
|
824
|
+
components:{
|
|
825
|
+
myPopup,
|
|
826
|
+
Tree,
|
|
827
|
+
selectPopup
|
|
828
|
+
},
|
|
829
|
+
mounted() {
|
|
830
|
+
this.isMobile()
|
|
831
|
+
},
|
|
832
|
+
beforeCreate() {
|
|
833
|
+
// 等待dom渲染完毕之后,再去显示 三级联动。
|
|
834
|
+
that=this
|
|
835
|
+
this.$nextTick(function () {
|
|
836
|
+
this.pageShow = true;
|
|
837
|
+
})
|
|
838
|
+
},
|
|
839
|
+
created() {
|
|
840
|
+
if(this.disable===true)
|
|
841
|
+
{
|
|
842
|
+
this.disableds=true
|
|
843
|
+
this.submitValue = '已提交'
|
|
844
|
+
}
|
|
845
|
+
else
|
|
846
|
+
{
|
|
847
|
+
this.disableds=false
|
|
848
|
+
this.submitValue = '提交'
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
beforeMount() {
|
|
852
|
+
that.defaultClick()
|
|
853
|
+
},
|
|
854
|
+
methods: {
|
|
855
|
+
getMoldTime(){
|
|
856
|
+
let otherTime = {}
|
|
857
|
+
this.formList.form && this.formList.form.formFieldRelation.forEach(item=>{
|
|
858
|
+
if ((item.formField.type==='TIME_PICKER' || item.formField.type==='TIME_PICKER_RANGE') && item.formField.extInfo.mold==='OTHER'){
|
|
859
|
+
let pattern = item.formField.extInfo.pattern
|
|
860
|
+
let yearVal = pattern.indexOf('YEAR')!==-1
|
|
861
|
+
let monthVal = pattern.indexOf('MONTH')!==-1
|
|
862
|
+
let dayVal = pattern.indexOf('DAY')!==-1
|
|
863
|
+
let hourVal = pattern.indexOf('HOUR')!==-1
|
|
864
|
+
let minuteVal = pattern.indexOf('MINUTE')!==-1
|
|
865
|
+
let secondVal = pattern.indexOf('SECOND')!==-1
|
|
866
|
+
if ((yearVal||monthVal||dayVal)&&(!hourVal&&!minuteVal&&!secondVal)){
|
|
867
|
+
otherTime[item.fieldId]='DATE'
|
|
868
|
+
}
|
|
869
|
+
else if ((yearVal||monthVal||dayVal)&&(hourVal||minuteVal||secondVal)){
|
|
870
|
+
otherTime[item.fieldId]='DATE_TIME'
|
|
871
|
+
}
|
|
872
|
+
else if ((hourVal||minuteVal||secondVal)&&(!yearVal&&!monthVal&&!dayVal)){
|
|
873
|
+
otherTime[item.fieldId]='TIME'
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
})
|
|
877
|
+
return otherTime
|
|
878
|
+
},
|
|
879
|
+
setOptions(extInfo){
|
|
880
|
+
let options = []
|
|
881
|
+
console.debug('cascadeDown',extInfo)
|
|
882
|
+
if (extInfo.cascadeDown.options){
|
|
883
|
+
options = extInfo.cascadeDown.options
|
|
884
|
+
return options
|
|
885
|
+
}
|
|
886
|
+
else if (extInfo.cascadeDown[0]){
|
|
887
|
+
options = extInfo.cascadeDown[0].options
|
|
888
|
+
}
|
|
889
|
+
return options
|
|
890
|
+
},
|
|
891
|
+
onReady(){
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
},
|
|
895
|
+
beforeRead(file,type){
|
|
896
|
+
console.debug('file',file)
|
|
897
|
+
console.debug('fileType',!Array.isArray(file))
|
|
898
|
+
if (!Array.isArray(file)){
|
|
899
|
+
if (type === 'IMAGE'){
|
|
900
|
+
const isLte2M = file.size / 1024 / 1024 <= 8;
|
|
901
|
+
const isSupportedFormat =file.type.indexOf('image')!==-1
|
|
902
|
+
if (!isSupportedFormat){
|
|
903
|
+
this.$message.error("只能上传图片格式");
|
|
904
|
+
return false
|
|
905
|
+
}
|
|
906
|
+
if (!isLte2M&&isSupportedFormat) {
|
|
907
|
+
this.$message.error("上传图片大小不能超过 8MB!");
|
|
908
|
+
return false
|
|
909
|
+
}
|
|
910
|
+
return true
|
|
911
|
+
}
|
|
912
|
+
else if (type === 'VIDEO'){
|
|
913
|
+
const isLte2M = file.size / 1024 / 1024 <= 100;
|
|
914
|
+
const isSupportedFormat =file.type.indexOf('video')!==-1
|
|
915
|
+
if (!isSupportedFormat){
|
|
916
|
+
this.$message.error("只能上传视频格式");
|
|
917
|
+
return false
|
|
918
|
+
}
|
|
919
|
+
if (!isLte2M&&isSupportedFormat) {
|
|
920
|
+
this.$message.error("上传视频大小不能超过100MB!");
|
|
921
|
+
return false
|
|
922
|
+
}
|
|
923
|
+
return true
|
|
924
|
+
}
|
|
925
|
+
else if (type === 'FILE' || type === 'ATTACHMENT'){
|
|
926
|
+
const isLte2M = file.size / 1024 / 1024 <= 100;
|
|
927
|
+
if (!isLte2M) {
|
|
928
|
+
this.$message.error("上传附件大小不能超过100MB!");
|
|
929
|
+
return false
|
|
930
|
+
}
|
|
931
|
+
return true
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
else{
|
|
935
|
+
let length = 0
|
|
936
|
+
if (this.fileListList[this.filedId]){
|
|
937
|
+
length = this.fileListList[this.filedId].length
|
|
938
|
+
}
|
|
939
|
+
if (file.length<=this.limitNum-length){
|
|
940
|
+
for (let i=0;i<file.length;i++){
|
|
941
|
+
if (type === 'IMAGE'){
|
|
942
|
+
const isLte2M = file.size / 1024 / 1024 <= 8;
|
|
943
|
+
const isSupportedFormat =file.type.indexOf('image')!==-1
|
|
944
|
+
if (!isSupportedFormat){
|
|
945
|
+
this.$message.error("只能上传图片格式");
|
|
946
|
+
return false
|
|
947
|
+
}
|
|
948
|
+
if (!isLte2M&&isSupportedFormat) {
|
|
949
|
+
this.$message.error("上传图片大小不能超过 8MB!");
|
|
950
|
+
return false
|
|
951
|
+
}
|
|
952
|
+
return true
|
|
953
|
+
}
|
|
954
|
+
else if (type === 'VIDEO'){
|
|
955
|
+
const isLte2M = file.size / 1024 / 1024 <= 100;
|
|
956
|
+
const isSupportedFormat =file.type.indexOf('video')!==-1
|
|
957
|
+
if (!isSupportedFormat){
|
|
958
|
+
this.$message.error("只能上传视频格式");
|
|
959
|
+
return false
|
|
960
|
+
}
|
|
961
|
+
if (!isLte2M&&isSupportedFormat) {
|
|
962
|
+
this.$message.error("上传视频大小不能超过100MB!");
|
|
963
|
+
return false
|
|
964
|
+
}
|
|
965
|
+
return true
|
|
966
|
+
}
|
|
967
|
+
else if (type === 'FILE' || type === 'ATTACHMENT'){
|
|
968
|
+
const isLte2M = file.size / 1024 / 1024 <= 100;
|
|
969
|
+
if (!isLte2M) {
|
|
970
|
+
this.$message.error("上传附件大小不能超过100MB!");
|
|
971
|
+
return false
|
|
972
|
+
}
|
|
973
|
+
return true
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
else {
|
|
978
|
+
let num = 1
|
|
979
|
+
if (this.limitNum){
|
|
980
|
+
num = this.limitNum
|
|
981
|
+
}
|
|
982
|
+
let messageText = '仅支持上传'+num+'个'
|
|
983
|
+
this.$message.error(messageText);
|
|
984
|
+
return false
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
},
|
|
990
|
+
//文件上传至服务器
|
|
991
|
+
afterRead(file){
|
|
992
|
+
this.fileUpload=true
|
|
993
|
+
console.debug(file)
|
|
994
|
+
console.debug(!Array.isArray(file))
|
|
995
|
+
if (!Array.isArray(file)){
|
|
996
|
+
this.uploadImgFun(file.content,file.file.name,file,file.file);
|
|
997
|
+
}
|
|
998
|
+
else {
|
|
999
|
+
let num = 1
|
|
1000
|
+
if (this.limitNum){
|
|
1001
|
+
num = this.limitNum
|
|
1002
|
+
}
|
|
1003
|
+
if (file.length >num){
|
|
1004
|
+
this.$message.warning('仅支持上传'+num+'张图片')
|
|
1005
|
+
return false
|
|
1006
|
+
}
|
|
1007
|
+
else {
|
|
1008
|
+
for (let i = 0; i < file.length; i++){
|
|
1009
|
+
this.uploadImgFun(file[i].content,file[i].file.name,file[i],file[i].file);
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
uploadImgFun(content,name,fileCon,file){
|
|
1015
|
+
console.log(fileCon)
|
|
1016
|
+
let imageData = {
|
|
1017
|
+
urls:[]
|
|
1018
|
+
}
|
|
1019
|
+
let imageInfo = {
|
|
1020
|
+
name:"",
|
|
1021
|
+
status:'',
|
|
1022
|
+
url:''
|
|
1023
|
+
}
|
|
1024
|
+
let res = multipartUpload(
|
|
1025
|
+
this.ossConfig,
|
|
1026
|
+
file,
|
|
1027
|
+
null,
|
|
1028
|
+
imageInfo
|
|
1029
|
+
);
|
|
1030
|
+
res.then((res) => {
|
|
1031
|
+
console.log("upload result:", res);
|
|
1032
|
+
// let filePath = res.name;
|
|
1033
|
+
imageData.urls.push({
|
|
1034
|
+
name:res.name,
|
|
1035
|
+
url:ossFileUrl(this.ossConfig, res.name),
|
|
1036
|
+
status:'success'
|
|
1037
|
+
})
|
|
1038
|
+
imageInfo.url = ossFileUrl(this.ossConfig, res.name)
|
|
1039
|
+
imageInfo.status='success'
|
|
1040
|
+
imageInfo.name=res.name
|
|
1041
|
+
for (let j=0;j<this.fileListList[this.filedId].length;j++){
|
|
1042
|
+
if (this.fileListList[this.filedId][j].content&&this.fileListList[this.filedId][j].content===content){
|
|
1043
|
+
this.fileListList[this.filedId][j].name=res.name
|
|
1044
|
+
this.fileListList[this.filedId][j].status='success'
|
|
1045
|
+
this.fileListList[this.filedId][j].url=imageInfo.url
|
|
1046
|
+
delete this.fileListList[this.filedId][j].content
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
this.fileUpload=false
|
|
1050
|
+
}).catch((err) => {
|
|
1051
|
+
console.debug("upload err", err);
|
|
1052
|
+
});
|
|
1053
|
+
|
|
1054
|
+
},
|
|
1055
|
+
dataURLtoFileFun (dataurl, filename) {
|
|
1056
|
+
// 将base64转换为文件,dataurl为base64字符串,filename为文件名(必须带后缀名,如.jpg,.png)
|
|
1057
|
+
let arr = dataurl.split(",");
|
|
1058
|
+
let mime = arr[0].match(/:(.*?);/)[1];
|
|
1059
|
+
let bstr = atob(arr[1]);
|
|
1060
|
+
let n = bstr.length;
|
|
1061
|
+
let u8arr = new Uint8Array(n);
|
|
1062
|
+
while (n--) {
|
|
1063
|
+
u8arr[n] = bstr.charCodeAt(n);
|
|
1064
|
+
}
|
|
1065
|
+
return new File([u8arr], filename, { type: mime });
|
|
1066
|
+
},
|
|
1067
|
+
//初始化默认值
|
|
1068
|
+
defaultClick() {
|
|
1069
|
+
for (let i = 0; i < this.formList.form.formFieldRelation.length; i++){
|
|
1070
|
+
let type = this.formList.form.formFieldRelation[i].formField.type
|
|
1071
|
+
let extInfo = this.formList.form.formFieldRelation[i].formField.extInfo
|
|
1072
|
+
if(type ==='SELECT' || type === 'CHECKBOX' || type === 'RADIO' || type === 'OPTION') {
|
|
1073
|
+
if(extInfo && !extInfo.option){
|
|
1074
|
+
if(extInfo.exinfo){
|
|
1075
|
+
for (let j=0; j < extInfo.exinfo.length; j++){
|
|
1076
|
+
this.$set(extInfo.exinfo[j],'label',extInfo.exinfo[j].value)
|
|
1077
|
+
}
|
|
1078
|
+
this.$set(extInfo,'option',extInfo.exinfo)
|
|
1079
|
+
}
|
|
1080
|
+
if (extInfo.option){
|
|
1081
|
+
if (type === 'RADIO') {
|
|
1082
|
+
for (let j = 0; j < extInfo.option.length; j++) {
|
|
1083
|
+
if(!extInfo.option[j].value) {
|
|
1084
|
+
extInfo.option[j].value=extInfo.option[j].label
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
if(!this.formList.form.formFieldRelation[i].value){
|
|
1088
|
+
for (let j = 0; j < extInfo.option.length; j++) {
|
|
1089
|
+
if (extInfo.option[j]._default === 'true') {
|
|
1090
|
+
this.formList.form.formFieldRelation[i].value = extInfo.option[j].value
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
if (type === 'CHECKBOX') {
|
|
1096
|
+
for (let j = 0; j < extInfo.option.length; j++) {
|
|
1097
|
+
if (!extInfo.option[j].value) {
|
|
1098
|
+
extInfo.option[j].value = extInfo.option[j].label
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
if (!this.formList.form.formFieldRelation[i].value || this.formList.form.formFieldRelation[i].value.length === 0){
|
|
1102
|
+
this.formList.form.formFieldRelation[i].value = []
|
|
1103
|
+
for (let j = 0; j < extInfo.option.length; j++) {
|
|
1104
|
+
if (extInfo.option[j]._default === 'true') {
|
|
1105
|
+
this.formList.form.formFieldRelation[i].value[0] = extInfo.option[j].value
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
else {
|
|
1113
|
+
if (extInfo && extInfo.options) {
|
|
1114
|
+
if (type === 'RADIO') {
|
|
1115
|
+
for (let j = 0; j < extInfo.options.length; j++) {
|
|
1116
|
+
if(!extInfo.options[j].value)
|
|
1117
|
+
{
|
|
1118
|
+
extInfo.options[j].value=extInfo.options[j].label
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
if(!this.formList.form.formFieldRelation[i].value)
|
|
1122
|
+
{
|
|
1123
|
+
for (let j = 0; j < extInfo.option.length; j++) {
|
|
1124
|
+
if (extInfo.options[j]._default === 'true') {
|
|
1125
|
+
this.formList.form.formFieldRelation[i].value = extInfo.options[j].value
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
if (type === 'CHECKBOX') {
|
|
1131
|
+
for (let j = 0; j < extInfo.options.length; j++) {
|
|
1132
|
+
if (extInfo.options[j].value === '') {
|
|
1133
|
+
extInfo.options[j].value = extInfo.options[j].label
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
if (!this.formList.form.formFieldRelation[i].value ||this.formList.form.formFieldRelation[i].value.length === 0)
|
|
1138
|
+
{
|
|
1139
|
+
this.formList.form.formFieldRelation[i].value=[]
|
|
1140
|
+
for (let j = 0; j < extInfo.options.length; j++) {
|
|
1141
|
+
if (extInfo.options[j]._default === 'true') {
|
|
1142
|
+
this.formList.form.formFieldRelation[i].value[0] = extInfo.options[j].value
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
}
|
|
1151
|
+
if (type ==='FILE'){
|
|
1152
|
+
if (this.formList.form.formFieldRelation[i].value!==undefined){
|
|
1153
|
+
if (this.formList.form.formFieldRelation[i].value===null||this.formList.form.formFieldRelation[i].value===''){
|
|
1154
|
+
this.formList.form.formFieldRelation[i].value=[]
|
|
1155
|
+
}
|
|
1156
|
+
else {
|
|
1157
|
+
let valueList=[]
|
|
1158
|
+
let bool=false
|
|
1159
|
+
if(this.formList.form.formFieldRelation[i].value.length > 0) {
|
|
1160
|
+
for (let file=0;file<this.formList.form.formFieldRelation[i].value.length;file++) {
|
|
1161
|
+
let type = typeof (this.formList.form.formFieldRelation[i].value[file])
|
|
1162
|
+
if (type === "string") {
|
|
1163
|
+
bool = true
|
|
1164
|
+
valueList[file] = {}
|
|
1165
|
+
valueList[file].url = this.formList.form.formFieldRelation[i].value[file]
|
|
1166
|
+
}
|
|
1167
|
+
if (type === 'object'&&JSON.stringify(this.formList.form.formFieldRelation[i].value[file])!=='{}') {
|
|
1168
|
+
this.fileListList[this.formList.form.formFieldRelation[i].fieldId]=this.formList.form.formFieldRelation[i].value
|
|
1169
|
+
}
|
|
1170
|
+
else {
|
|
1171
|
+
this.fileListList[this.formList.form.formFieldRelation[i].fieldId]=[]
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
if (bool){
|
|
1175
|
+
this.fileListList[this.formList.form.formFieldRelation[i].fieldId]=valueList
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
|
|
1182
|
+
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
for (let i = 0; i < this.formList.form.formFieldRelation.length; i++) {
|
|
1186
|
+
let type = this.formList.form.formFieldRelation[i].formField.type
|
|
1187
|
+
let extInfo = this.formList.form.formFieldRelation[i].formField.extInfo
|
|
1188
|
+
if (type === 'CASCADER') {
|
|
1189
|
+
let fieldValue = this.formList.form.formFieldRelation[i].formField.extInfo.fieldValue?this.formList.form.formFieldRelation[i].formField.extInfo.fieldValue:[]
|
|
1190
|
+
this.checkDatas[this.formList.form.formFieldRelation[i].fieldId] = fieldValue
|
|
1191
|
+
if (this.formList.form.formFieldRelation[i].value){
|
|
1192
|
+
this.formList.form.formFieldRelation[i].value = this.formList.form.formFieldRelation[i].formField.defaultValue?
|
|
1193
|
+
this.formList.form.formFieldRelation[i].formField.defaultValue:[];
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
}
|
|
1197
|
+
if (type === 'DATE_PICKER') {
|
|
1198
|
+
if(this.formList.form.formFieldRelation[i].value!==null && this.formList.form.formFieldRelation[i].value!=='' ) {
|
|
1199
|
+
this.dateValue[this.formList.form.formFieldRelation[i].fieldId]=this.formatDate(this.formList.form.formFieldRelation[i].value)
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
if (type === 'TIME_PICKER') {
|
|
1203
|
+
if(this.formList.form.formFieldRelation[i].value!==''&& this.formList.form.formFieldRelation[i].value!==null)
|
|
1204
|
+
{
|
|
1205
|
+
const dateTime = new Date(this.formList.form.formFieldRelation[i].value)
|
|
1206
|
+
if (!this.formList.form.formFieldRelation[i].formField.extInfo.mold ||
|
|
1207
|
+
this.formList.form.formFieldRelation[i].formField.extInfo.mold == 'TIME' ||
|
|
1208
|
+
this.getMoldTime(this.formList.form.formFieldRelation[i].formField.formField) == 'TIME'){
|
|
1209
|
+
this.timeValue[this.formList.form.formFieldRelation[i].fieldId]=dateTime.Format('hh:mm')
|
|
1210
|
+
}
|
|
1211
|
+
else if (this.formList.form.formFieldRelation[i].formField.extInfo.mold == 'DATA_TIME' ||
|
|
1212
|
+
this.formList.form.formFieldRelation[i].formField.extInfo.mold == 'DATE_TIME' ||
|
|
1213
|
+
this.getMoldTime(this.formList.form.formFieldRelation[i].formField.formField) == 'DATE_TIME'){
|
|
1214
|
+
this.timeValue[this.formList.form.formFieldRelation[i].fieldId] = dateTime.Format('yyyy-MM-dd hh:mm')
|
|
1215
|
+
}
|
|
1216
|
+
else if (this.formList.form.formFieldRelation[i].formField.extInfo.mold == 'DATA' ||
|
|
1217
|
+
this.formList.form.formFieldRelation[i].formField.extInfo.mold == 'DATE' ||
|
|
1218
|
+
this.getMoldTime(this.formList.form.formFieldRelation[i].formField.formField) == 'DATE'){
|
|
1219
|
+
this.timeValue[this.formList.form.formFieldRelation[i].fieldId] = dateTime.Format('yyyy-MM-dd')
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
if (type === 'SELECT' || type === 'OPTION') {
|
|
1224
|
+
if (extInfo && extInfo.option){
|
|
1225
|
+
for (let j = 0; j < extInfo.option.length; j++) {
|
|
1226
|
+
if (extInfo.option[j].value === '') {
|
|
1227
|
+
extInfo.option[j].value = extInfo.option[j].label
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
if(this.formList.form.formFieldRelation[i].value) {
|
|
1231
|
+
for (let j = 0; j < extInfo.option.length; j++) {
|
|
1232
|
+
if (this.formList.form.formFieldRelation[i].value === extInfo.option[j].value) {
|
|
1233
|
+
this.selectValues[this.formList.form.formFieldRelation[i].fieldId] = extInfo.option[j].label
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
} else {
|
|
1237
|
+
for (let j = 0; j < extInfo.option.length; j++) {
|
|
1238
|
+
if (extInfo.option[j]._default === 'true') {
|
|
1239
|
+
this.selectValues[this.formList.form.formFieldRelation[i].fieldId] = extInfo.option[j].label
|
|
1240
|
+
this.formList.form.formFieldRelation[i].value=extInfo.option[j].value
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
} else {
|
|
1245
|
+
if(extInfo && extInfo.option) {
|
|
1246
|
+
for (let j = 0; j < extInfo.options.length; j++) {
|
|
1247
|
+
if (extInfo.options[j].value === '') {
|
|
1248
|
+
extInfo.options[j].value = extInfo.options[j].label
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
if(this.formList.form.formFieldRelation[i].value && extInfo && extInfo.option) {
|
|
1253
|
+
for (let j=0;j<extInfo.options.length;j++) {
|
|
1254
|
+
if (this.formList.form.formFieldRelation[i].value === extInfo.options[j].value) {
|
|
1255
|
+
this.selectValues[this.formList.form.formFieldRelation[i].fieldId] =extInfo.options[j].label
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
} else {
|
|
1259
|
+
if(extInfo && extInfo.option) {
|
|
1260
|
+
for (let j = 0; j < extInfo.options.length; j++) {
|
|
1261
|
+
if (extInfo.options[j]._default === 'true') {
|
|
1262
|
+
this.selectValues[this.formList.form.formFieldRelation[i].fieldId] = extInfo.options[j].label
|
|
1263
|
+
this.formList.form.formFieldRelation[i].value=extInfo.options[j].value
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
this.formShow = this.formList
|
|
1272
|
+
},
|
|
1273
|
+
addZero(i) {
|
|
1274
|
+
if (i < 10) {
|
|
1275
|
+
i = "0" + i;
|
|
1276
|
+
}
|
|
1277
|
+
return i;
|
|
1278
|
+
},
|
|
1279
|
+
formatter(type, value) {
|
|
1280
|
+
// 格式化选择器日期
|
|
1281
|
+
if (type === "year") {
|
|
1282
|
+
return `${value}年`;
|
|
1283
|
+
} else if (type === "month") {
|
|
1284
|
+
return `${value}月`;
|
|
1285
|
+
} else if (type === "day") {
|
|
1286
|
+
return `${value}日`;
|
|
1287
|
+
} else if (type === "hour") {
|
|
1288
|
+
return `${value}时`;
|
|
1289
|
+
} else if (type === "minute") {
|
|
1290
|
+
return `${value}分`;
|
|
1291
|
+
}
|
|
1292
|
+
return value;
|
|
1293
|
+
},
|
|
1294
|
+
|
|
1295
|
+
isMobile() {
|
|
1296
|
+
if (this.usePropStyleType === false){
|
|
1297
|
+
let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
|
|
1298
|
+
if (flag) {
|
|
1299
|
+
this.isPhone=true
|
|
1300
|
+
}
|
|
1301
|
+
else {
|
|
1302
|
+
this.isCompany=true
|
|
1303
|
+
}
|
|
1304
|
+
}else {
|
|
1305
|
+
this.isPhone=this.propIsPhone;
|
|
1306
|
+
this.isCompany=this.propIsCompany;
|
|
1307
|
+
}
|
|
1308
|
+
},
|
|
1309
|
+
//时间的选择器
|
|
1310
|
+
onConfirm(value, id,item,type) {
|
|
1311
|
+
console.debug('value',value)
|
|
1312
|
+
if (type == 'DATE'){
|
|
1313
|
+
this.datePicker = false
|
|
1314
|
+
this.timeDetailData.value = value;
|
|
1315
|
+
this.timeValue[id] =this.formatDate(value);
|
|
1316
|
+
}
|
|
1317
|
+
else if (type == 'TIME'){
|
|
1318
|
+
this.timePicker = false;
|
|
1319
|
+
this.timeValue[id] = value;
|
|
1320
|
+
console.debug('timeDetailData',this.timeDetailData)
|
|
1321
|
+
this.timeDetailData.value = forMatTime(value)
|
|
1322
|
+
}
|
|
1323
|
+
else if (type == 'DATE_TIME'){
|
|
1324
|
+
this.dateTimePicker = false;
|
|
1325
|
+
this.timeDetailData.value = value
|
|
1326
|
+
this.timeValue[id] =this.formatDate(value) +" "+ this.addZero(value.getHours()) + ':' + this.addZero(value.getMinutes())
|
|
1327
|
+
}
|
|
1328
|
+
/*for (let i = 0; i < this.formShow.form.formFieldRelation.length; i++) {
|
|
1329
|
+
if (this.formShow.form.formFieldRelation[i].fieldId=== id) {
|
|
1330
|
+
this.formShow.form.formFieldRelation[i].value = value
|
|
1331
|
+
if (!item.formField.extInfo.mold||item.formField.extInfo.mold==='DATA_TIME'){
|
|
1332
|
+
this.timeValue[id] =this.formatDate(value) +" "+ this.addZero(value.getHours()) + ':' + this.addZero(value.getMinutes())
|
|
1333
|
+
this.dateTimePicker = false;
|
|
1334
|
+
}
|
|
1335
|
+
else {
|
|
1336
|
+
this.timeValue[id] =this.formatDate(value)
|
|
1337
|
+
this.datePicker = false;
|
|
1338
|
+
}
|
|
1339
|
+
break
|
|
1340
|
+
}
|
|
1341
|
+
}*/
|
|
1342
|
+
},
|
|
1343
|
+
//转换日期的函数
|
|
1344
|
+
formatDate(date) {
|
|
1345
|
+
const dateTime = new Date(date)
|
|
1346
|
+
return `${dateTime.getFullYear()}-${dateTime.getMonth() + 1}-${dateTime.getDate()}`;
|
|
1347
|
+
},
|
|
1348
|
+
//日期的选择器
|
|
1349
|
+
onConfirmCalendar(date, item) {
|
|
1350
|
+
fieldId
|
|
1351
|
+
this.dateValue[item.fieldId] = this.formatDate(date);
|
|
1352
|
+
item.value = date;
|
|
1353
|
+
this.showCalendar = false;
|
|
1354
|
+
/* for (let i = 0; i < this.formShow.form.formFieldRelation.length; i++) {
|
|
1355
|
+
if (this.formShow.form.formFieldRelation[i].fieldId === id) {
|
|
1356
|
+
this.dateValue[id] = this.formatDate(date)
|
|
1357
|
+
this.formShow.form.formFieldRelation[i].value = date
|
|
1358
|
+
this.showCalendar = false;
|
|
1359
|
+
break
|
|
1360
|
+
}
|
|
1361
|
+
}*/
|
|
1362
|
+
},
|
|
1363
|
+
//下拉的选择器
|
|
1364
|
+
onConfirmSelect(value, item) {
|
|
1365
|
+
console.log('value',value,this.selectDetail)
|
|
1366
|
+
this.selectValues[this.selectDetail.fieldId] = value;
|
|
1367
|
+
for (let i = 0; i < this.formShow.form.formFieldRelation.length; i++) {
|
|
1368
|
+
if (this.formShow.form.formFieldRelation[i].fieldId === this.selectDetail.fieldId) {
|
|
1369
|
+
let options = this.formShow.form.formFieldRelation[i].formField.extInfo.option?this.formShow.form.formFieldRelation[i].formField.extInfo.option:this.formShow.form.formFieldRelation[i].formField.extInfo.options;
|
|
1370
|
+
for (let j=0;j<options.length;j++){
|
|
1371
|
+
if (value == options[j].label){
|
|
1372
|
+
this.selectDetail.value = options[j].value
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
/*if (this.formShow.form.formFieldRelation[i].formField.extInfo.option){
|
|
1376
|
+
for (let j = 0; j < this.formShow.form.formFieldRelation[i].formField.extInfo.option.length; j++) {
|
|
1377
|
+
if(value ===this.formShow.form.formFieldRelation[i].formField.extInfo.option[j].label)
|
|
1378
|
+
{
|
|
1379
|
+
this.formShow.form.formFieldRelation[i].value = this.formShow.form.formFieldRelation[i].formField.extInfo.option[j].value
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
else {
|
|
1384
|
+
for (let j = 0; j < this.formShow.form.formFieldRelation[i].formField.extInfo.options.length; j++) {
|
|
1385
|
+
if(value ===this.formShow.form.formFieldRelation[i].formField.extInfo.options[j].label)
|
|
1386
|
+
{
|
|
1387
|
+
this.formShow.form.formFieldRelation[i].value = this.formShow.form.formFieldRelation[i].formField.extInfo.options[j].value
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
}*/
|
|
1391
|
+
this.showPicker = false;
|
|
1392
|
+
break
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
},
|
|
1396
|
+
//提交按钮事件
|
|
1397
|
+
submitClick() {
|
|
1398
|
+
|
|
1399
|
+
for (let i=0;i<this.formShow.form.formFieldRelation.length;i++)
|
|
1400
|
+
{
|
|
1401
|
+
if(this.formShow.form.formFieldRelation[i].formField.type==='CASCADER')
|
|
1402
|
+
{
|
|
1403
|
+
let cascader = []
|
|
1404
|
+
if (this.formShow.form.formFieldRelation[i].formField.extInfo.cascade){
|
|
1405
|
+
cascader = this.formShow.form.formFieldRelation[i].formField.extInfo.cascade
|
|
1406
|
+
}
|
|
1407
|
+
else if (this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown.options){
|
|
1408
|
+
cascader = this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown.options
|
|
1409
|
+
}
|
|
1410
|
+
else if (this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown[0]){
|
|
1411
|
+
cascader = this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown[0].options
|
|
1412
|
+
}
|
|
1413
|
+
cascader.forEach(item=>{
|
|
1414
|
+
if(item.children!==undefined){
|
|
1415
|
+
if(item.children.length===0) {
|
|
1416
|
+
delete item.children
|
|
1417
|
+
} else {
|
|
1418
|
+
item.children.forEach(items=>{
|
|
1419
|
+
if(items.children){
|
|
1420
|
+
if(items.children.length===0) {
|
|
1421
|
+
delete items.children
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
})
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
})
|
|
1428
|
+
}
|
|
1429
|
+
if (this.fileListList[this.formShow.form.formFieldRelation[i].fieldId]!== undefined) {
|
|
1430
|
+
let value=[]
|
|
1431
|
+
this.fileListList[this.formShow.form.formFieldRelation[i].fieldId].forEach(item=>{
|
|
1432
|
+
let file = {}
|
|
1433
|
+
file.name = item.name
|
|
1434
|
+
file.url = item.url
|
|
1435
|
+
value.push(file)
|
|
1436
|
+
})
|
|
1437
|
+
this.formShow.form.formFieldRelation[i].value=value
|
|
1438
|
+
}
|
|
1439
|
+
if(this.formShow.form.formFieldRelation[i].display &&
|
|
1440
|
+
(this.formShow.form.formFieldRelation[i].required || this.isRequiredFn(this.formShow.form.formFieldRelation[i].formField)) &&
|
|
1441
|
+
this.formShow.form.formFieldRelation[i].fieldId!=='workorder_name'&&
|
|
1442
|
+
this.formShow.form.formFieldRelation[i].formField.type !== 'EXPLANATION') {
|
|
1443
|
+
let value = this.formShow.form.formFieldRelation[i].value && this.formShow.form.formFieldRelation[i].value.includes('\n')?this.formShow.form.formFieldRelation[i].value:'';
|
|
1444
|
+
let strVal = '';
|
|
1445
|
+
if(value){
|
|
1446
|
+
strVal = value.replace(/\n/g,'');
|
|
1447
|
+
}
|
|
1448
|
+
let bool = this.formShow.form.formFieldRelation[i].value && this.formShow.form.formFieldRelation[i].value.includes('\n') && !strVal
|
|
1449
|
+
if(!this.formShow.form.formFieldRelation[i].value || bool|| (this.formShow.form.formFieldRelation[i].value&&this.formShow.form.formFieldRelation[i].value.length===0)) {
|
|
1450
|
+
this.$message.error('请完善'+ this.formShow.form.formFieldRelation[i].formField.name)
|
|
1451
|
+
return
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
this.$emit('submitClick',this.formShow)
|
|
1456
|
+
this.disableds = true
|
|
1457
|
+
this.submitValue = '已提交'
|
|
1458
|
+
},
|
|
1459
|
+
//日期的点击事件
|
|
1460
|
+
dateClick(id) {
|
|
1461
|
+
if(this.disableds === false)
|
|
1462
|
+
{
|
|
1463
|
+
for (let i = 0; i < this.formShow.form.formFieldRelation.length; i++) {
|
|
1464
|
+
if (this.formShow.form.formFieldRelation[i].fieldId === id) {
|
|
1465
|
+
this.dateId = id
|
|
1466
|
+
this.showCalendar = true
|
|
1467
|
+
break
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
},
|
|
1473
|
+
//时间的点击事件
|
|
1474
|
+
timeClick(id,item,type) {
|
|
1475
|
+
if (this.disableds){
|
|
1476
|
+
return
|
|
1477
|
+
}
|
|
1478
|
+
this.timeDetailData = item
|
|
1479
|
+
if (type == 'DATE'){
|
|
1480
|
+
this.datePicker = true
|
|
1481
|
+
}
|
|
1482
|
+
else if (type == 'TIME'){
|
|
1483
|
+
this.timePicker = true
|
|
1484
|
+
}
|
|
1485
|
+
else if (type == 'DATE_TIME'){
|
|
1486
|
+
this.dateTimePicker = true
|
|
1487
|
+
}
|
|
1488
|
+
},
|
|
1489
|
+
//下拉的点击事件
|
|
1490
|
+
selectClick(id,type,item) {
|
|
1491
|
+
console.debug('111')
|
|
1492
|
+
if (this.disableds){
|
|
1493
|
+
return
|
|
1494
|
+
}
|
|
1495
|
+
this.selectDetail = item
|
|
1496
|
+
if(type == 'client') {
|
|
1497
|
+
let selectOption
|
|
1498
|
+
this.selectValue=[]
|
|
1499
|
+
for (let i = 0; i < this.formShow.form.formFieldRelation.length; i++) {
|
|
1500
|
+
if(this.formShow.form.formFieldRelation[i].formField.type==='SELECT' || this.formShow.form.formFieldRelation[i].formField.type==='OPTION')
|
|
1501
|
+
{
|
|
1502
|
+
if (this.formShow.form.formFieldRelation[i].fieldId === id) {
|
|
1503
|
+
selectOption = this.formShow.form.formFieldRelation[i].formField.extInfo.option?this.formShow.form.formFieldRelation[i].formField.extInfo.option:this.formShow.form.formFieldRelation[i].formField.extInfo.options?this.formShow.form.formFieldRelation[i].formField.extInfo.options:[]
|
|
1504
|
+
for (let j = 0; j < selectOption.length; j++) {
|
|
1505
|
+
this.selectValue[j] = selectOption[j].label
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
this.selectId = id
|
|
1512
|
+
this.showPicker = true
|
|
1513
|
+
} else if (type == 'ref'){
|
|
1514
|
+
this.refShowPicker = true
|
|
1515
|
+
} else if (type == 'select'){
|
|
1516
|
+
this.selectPicker = true;
|
|
1517
|
+
}
|
|
1518
|
+
if (item){
|
|
1519
|
+
this.detailField = item;
|
|
1520
|
+
}
|
|
1521
|
+
},
|
|
1522
|
+
SelectClear(fieldId) {
|
|
1523
|
+
if(this.disableds === false){
|
|
1524
|
+
let i = this.formShow.form.formFieldRelation.findIndex(item => { console.log(item.fieldId); return item.fieldId == fieldId })
|
|
1525
|
+
this.selectValues[this.formShow.form.formFieldRelation[i].fieldId] = ''
|
|
1526
|
+
this.$forceUpdate()
|
|
1527
|
+
}
|
|
1528
|
+
},
|
|
1529
|
+
//级联的点击的事件
|
|
1530
|
+
pickerClick(id) {
|
|
1531
|
+
if(this.disableds === false)
|
|
1532
|
+
{
|
|
1533
|
+
if(this.pickerId!==id)
|
|
1534
|
+
{
|
|
1535
|
+
for (let i = 0; i < this.formShow.form.formFieldRelation.length; i++) {
|
|
1536
|
+
if (this.formShow.form.formFieldRelation[i].fieldId === id) {
|
|
1537
|
+
this.keyValue=''
|
|
1538
|
+
if(this.formShow.form.formFieldRelation[i].value.length!==undefined)
|
|
1539
|
+
{
|
|
1540
|
+
for (let m=0;m<this.formShow.form.formFieldRelation[i].value.length;m++)
|
|
1541
|
+
{
|
|
1542
|
+
this.keyValue+=this.formShow.form.formFieldRelation[i].value[m]
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
this.data = []
|
|
1546
|
+
if (this.formShow.form.formFieldRelation[i].formField.extInfo.cascade){
|
|
1547
|
+
this.data = this.formShow.form.formFieldRelation[i].formField.extInfo.cascade
|
|
1548
|
+
}
|
|
1549
|
+
else if (this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown.options){
|
|
1550
|
+
this.data = this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown.options
|
|
1551
|
+
}
|
|
1552
|
+
else if (this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown[0]){
|
|
1553
|
+
this.data = this.formShow.form.formFieldRelation[i].formField.extInfo.cascadeDown[0].options
|
|
1554
|
+
}
|
|
1555
|
+
this.column[0].values = Object.values(this.data).map(function (e) {
|
|
1556
|
+
return {text: e.value, code: e.value}
|
|
1557
|
+
})
|
|
1558
|
+
if (this.data[0].children !== undefined) {
|
|
1559
|
+
this.column[1].values = Object.values(this.data[0].children).map(function (e) {
|
|
1560
|
+
return {text: e.value, code: e.value}
|
|
1561
|
+
})
|
|
1562
|
+
if (this.data[0].children[0].children !== undefined) {
|
|
1563
|
+
this.column[2].values = Object.values(this.data[0].children[0].children).map(function (e) {
|
|
1564
|
+
return {text: e.value, code: e.value}
|
|
1565
|
+
})
|
|
1566
|
+
}
|
|
1567
|
+
else {
|
|
1568
|
+
this.$set(this.data[0].children[0], 'children', [])
|
|
1569
|
+
this.column[2].values=Object.values(this.data[0].children[0].children).map(function (res) {
|
|
1570
|
+
return {text: res.value, code: res.value};
|
|
1571
|
+
})
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
this.pickerId = id
|
|
1579
|
+
this.showArea = true
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
|
|
1583
|
+
},
|
|
1584
|
+
onChange(picker, values,index) {
|
|
1585
|
+
// 这里我有可能渲染的有问题,导致回调每次都修改了当前列,其他值没有修改,当前列??(当前列什么鬼呀,什么垃圾啊???) 解释一下 ↓↓
|
|
1586
|
+
// 因为vant的 van-picker 回调只会返回你修改的那一列,比如现在为 [北京,北京,东城区],你修改了省为[天津市,天津市,和平区],但是vant的change回调会得到[天津市,北京,东城区],后面两个在回调中没有修改,不知道我的渲染方法有问题还是什么问题。
|
|
1587
|
+
// 所以我在这里判断change事件触发后,如果你修改了省份的话,回调里面省份会改变,但是市和区还是上一个省份的 市和区,这时我们执行回调修改省,市,区的时候,因为回调只有省改变了,市和区DOM改变了,但是回调里面没改变的问题(不晓得什么问题),这时我们去找省下面的 市,我们取回调的市名称,如果在省下面没有找到这个市,默认展示第一个市,区也默认展示第一个市下面的区,如果遍历市能查到,就去展示对应的市。
|
|
1588
|
+
// 回调时修改第2列数据
|
|
1589
|
+
if (index == 0){
|
|
1590
|
+
picker.setColumnValues(2, []); // 防止突然选中第一个,第二个是更新的,但第三个联级不更新,我暂时强制清空
|
|
1591
|
+
}
|
|
1592
|
+
let ColumnIndexss=picker.getIndexes()
|
|
1593
|
+
let testValue=''
|
|
1594
|
+
this.$nextTick(()=>{
|
|
1595
|
+
if(index == 0)
|
|
1596
|
+
{
|
|
1597
|
+
if(this.data[ColumnIndexss[0]].children.length > 0)
|
|
1598
|
+
{
|
|
1599
|
+
if(this.data[ColumnIndexss[0]].children[0]!==undefined)
|
|
1600
|
+
{
|
|
1601
|
+
testValue=this.data[ColumnIndexss[0]].children[0].value
|
|
1602
|
+
picker.setColumnValues(2, this.county(this.data, testValue));
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
else
|
|
1606
|
+
picker.setColumnValues(2, []);
|
|
1607
|
+
}
|
|
1608
|
+
if(index == 1)
|
|
1609
|
+
{
|
|
1610
|
+
if(this.data[ColumnIndexss[0]].children.length > 0)
|
|
1611
|
+
{
|
|
1612
|
+
if(this.data[ColumnIndexss[0]].children[ColumnIndexss[1]]!==undefined)
|
|
1613
|
+
{
|
|
1614
|
+
testValue=this.data[ColumnIndexss[0]].children[ColumnIndexss[1]].value
|
|
1615
|
+
picker.setColumnValues(2, this.county(this.data, testValue));
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
else
|
|
1619
|
+
picker.setColumnValues(2, []);
|
|
1620
|
+
}
|
|
1621
|
+
})
|
|
1622
|
+
|
|
1623
|
+
picker.setColumnValues(1, this.cityDate(this.data, values[0].text));
|
|
1624
|
+
// 回调时修改第3列数据
|
|
1625
|
+
|
|
1626
|
+
|
|
1627
|
+
},
|
|
1628
|
+
// 修改级联第二级 这里不再多说什么了根据自己的数据格式来
|
|
1629
|
+
cityDate(data, province) {
|
|
1630
|
+
var that = this;
|
|
1631
|
+
data.forEach(function (res) {
|
|
1632
|
+
if (res.value == province) {
|
|
1633
|
+
that.cityDates = res;
|
|
1634
|
+
}
|
|
1635
|
+
});
|
|
1636
|
+
if (that.cityDates.children !== undefined&&that.cityDates.children.length > 0) {
|
|
1637
|
+
return that.cityDates.children.map(function (res) {
|
|
1638
|
+
return {text: res.value, code: res.value};
|
|
1639
|
+
})
|
|
1640
|
+
} else {
|
|
1641
|
+
this.$set(that.cityDates, 'children', [])
|
|
1642
|
+
return that.cityDates.children.map(function (res) {
|
|
1643
|
+
return {text: res.value, code: res.value};
|
|
1644
|
+
})
|
|
1645
|
+
}
|
|
1646
|
+
// return 返回数据格式,因为我需要省市区code,所以我return的格式是对象,例:[{text:'北京市',code:'1'},{text:'河南省',code:'2'},...],如果你不需要code直接这样就可以 例['北京市','河南省',.....]
|
|
1647
|
+
},
|
|
1648
|
+
// 修改级联第三级 这里不再多说什么了根据自己的数据格式来
|
|
1649
|
+
county(data, county) {
|
|
1650
|
+
var that = this;
|
|
1651
|
+
var countyDate = '';
|
|
1652
|
+
// 因为vant的 van-picker 回调只会返回你修改的那一列,比如现在为 [北京,北京,东城区],你修改了省为[天津市,天津市,和平区],但是vant的change回调会得到[天津市,北京,东城区],后面两个在回调中没有修改,不知道我的渲染方法有问题还是什么问题。
|
|
1653
|
+
// 所以我在这里判断change事件触发后,如果你修改了省份的话,回调里面省份会改变,但是市和区还是上一个省份的 市和区,这时我们执行回调修改省,市,区的时候,因为回调只有省改变了,市和区DOM改变了,但是回调里面没改变的问题(不晓得什么问题),这时我们去找省下面的 市,我们取回调的市名称,如果在省下面没有找到这个市,默认展示第一个市,区也默认展示第一个市下面的区,如果遍历市能查到,就去展示对应的市。
|
|
1654
|
+
that.cityDates.children.forEach(function (res) {
|
|
1655
|
+
if (res.value == county) {
|
|
1656
|
+
countyDate = res;
|
|
1657
|
+
}
|
|
1658
|
+
});
|
|
1659
|
+
// 这里如果没有找到对应的县
|
|
1660
|
+
if (countyDate == '') {
|
|
1661
|
+
if(that.cityDates.children.length > 0)
|
|
1662
|
+
{
|
|
1663
|
+
countyDate = that.cityDates.children[0];
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
}
|
|
1667
|
+
// return 县
|
|
1668
|
+
if (countyDate.children === undefined) {
|
|
1669
|
+
this.$set(countyDate, 'children', [])
|
|
1670
|
+
return countyDate.children.map(function (res) {
|
|
1671
|
+
return {text: res.value, code: res.value};
|
|
1672
|
+
})
|
|
1673
|
+
} else {
|
|
1674
|
+
return countyDate.children.map(function (res) {
|
|
1675
|
+
return {text: res.value, code: res.value};
|
|
1676
|
+
})
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
// return 返回数据格式,因为我需要省市区code,所以我return的格式是对象,例:[{text:'北京市',code:'1'},{text:'河南省',code:'2'},...],如果你不需要code直接这样就可以 例['北京市','河南省',.....]
|
|
1680
|
+
},
|
|
1681
|
+
//点击级联弹出框的确认按钮
|
|
1682
|
+
onConfirms(val, id) {
|
|
1683
|
+
let test = ''
|
|
1684
|
+
for (let i = 0; i < val.length; i++) {
|
|
1685
|
+
if (val[i] !== undefined) {
|
|
1686
|
+
test += val[i].text + '/'
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
test = test.substr(0, test.length - 1)
|
|
1690
|
+
for (let i = 0; i < this.formShow.form.formFieldRelation.length; i++) {
|
|
1691
|
+
if (this.formShow.form.formFieldRelation[i].fieldId=== id) {
|
|
1692
|
+
this.cascadeValue[id] = test
|
|
1693
|
+
for (let j = 0; j < val.length; j++) {
|
|
1694
|
+
if (val[j] !== undefined) {
|
|
1695
|
+
this.formShow.form.formFieldRelation[i].value[j] = val[j].text
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
break
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1701
|
+
this.showArea = false;
|
|
1702
|
+
sessionStorage.setItem('cascader',test)
|
|
1703
|
+
},
|
|
1704
|
+
onCancel() {
|
|
1705
|
+
this.showArea = false;
|
|
1706
|
+
},
|
|
1707
|
+
aliyunOssRequest(data){
|
|
1708
|
+
|
|
1709
|
+
this.loading = this.$loading({
|
|
1710
|
+
lock: true,
|
|
1711
|
+
text: 'Loading',
|
|
1712
|
+
spinner: 'el-icon-loading',
|
|
1713
|
+
background: 'rgba(0, 0, 0, 0.8)'
|
|
1714
|
+
});
|
|
1715
|
+
let file = data.file;
|
|
1716
|
+
console.debug("upload file:", file);
|
|
1717
|
+
let imgInfo = {
|
|
1718
|
+
status:'',
|
|
1719
|
+
url:'',
|
|
1720
|
+
name:''
|
|
1721
|
+
}
|
|
1722
|
+
/* let imageData = {
|
|
1723
|
+
id:cid,
|
|
1724
|
+
cid:cid,
|
|
1725
|
+
type: "IMAGE",
|
|
1726
|
+
content: {
|
|
1727
|
+
urls: [],
|
|
1728
|
+
progress: 0,
|
|
1729
|
+
},
|
|
1730
|
+
};*/
|
|
1731
|
+
let res = multipartUpload(
|
|
1732
|
+
this.ossConfig,
|
|
1733
|
+
file,
|
|
1734
|
+
null,
|
|
1735
|
+
imgInfo
|
|
1736
|
+
);
|
|
1737
|
+
res.then((res) => {
|
|
1738
|
+
console.debug("upload result:", res);
|
|
1739
|
+
// let filePath = res.name;
|
|
1740
|
+
/* imageData.content.progress = 1;
|
|
1741
|
+
imageData.content.urls.push(
|
|
1742
|
+
ossFileUrl(this.ossConfig, res.name)
|
|
1743
|
+
);
|
|
1744
|
+
console.log('imageData',imageData)*/
|
|
1745
|
+
imgInfo.url = ossFileUrl(this.ossConfig, res.name)
|
|
1746
|
+
imgInfo.status='success'
|
|
1747
|
+
if (data.file){
|
|
1748
|
+
imgInfo.name = data.file.name
|
|
1749
|
+
imgInfo.uid = data.file.uid
|
|
1750
|
+
}
|
|
1751
|
+
if (!this.fileListList[this.filedId])
|
|
1752
|
+
{
|
|
1753
|
+
this.fileListList[this.filedId] = []
|
|
1754
|
+
}
|
|
1755
|
+
this.fileListList[this.filedId].push(imgInfo)
|
|
1756
|
+
this.loading.close()
|
|
1757
|
+
}).catch((err) => {
|
|
1758
|
+
console.debug("upload err", err);
|
|
1759
|
+
});
|
|
1760
|
+
},
|
|
1761
|
+
successUpload(response,file,fileList){
|
|
1762
|
+
if (!this.fileListList[this.filedId]){
|
|
1763
|
+
this.fileListList[this.filedId] = []
|
|
1764
|
+
}
|
|
1765
|
+
for (let i=0;i<fileList.length;i++){
|
|
1766
|
+
if (!this.fileListList[this.filedId][i]){
|
|
1767
|
+
this.fileListList[this.filedId][i]={}
|
|
1768
|
+
}
|
|
1769
|
+
this.fileListList[this.filedId][i].url=fileList[i].url
|
|
1770
|
+
this.fileListList[this.filedId][i].name=fileList[i].name
|
|
1771
|
+
this.fileListList[this.filedId][i].status=fileList[i].status
|
|
1772
|
+
}
|
|
1773
|
+
},
|
|
1774
|
+
uploadProgress(){
|
|
1775
|
+
this.loading = this.$loading({
|
|
1776
|
+
lock: true,
|
|
1777
|
+
text: 'Loading',
|
|
1778
|
+
spinner: 'el-icon-loading',
|
|
1779
|
+
background: 'rgba(0, 0, 0, 0.7)'
|
|
1780
|
+
});
|
|
1781
|
+
},
|
|
1782
|
+
handleRemove(file) {
|
|
1783
|
+
if (this.fileListList[this.filedId]){
|
|
1784
|
+
for (let i=0;i<this.fileListList[this.filedId].length;i++)
|
|
1785
|
+
{
|
|
1786
|
+
if (this.fileListList[this.filedId][i].uid){
|
|
1787
|
+
if (this.fileListList[this.filedId][i].uid===file.uid){
|
|
1788
|
+
this.fileListList[this.filedId].splice(i,1)
|
|
1789
|
+
return
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1792
|
+
else if (this.fileListList[this.filedId][i].url===file.url){
|
|
1793
|
+
this.fileListList[this.filedId].splice(i,1)
|
|
1794
|
+
return
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
}
|
|
1799
|
+
},
|
|
1800
|
+
handleEditChange(file,fileList){
|
|
1801
|
+
this.hideUploadEdit=fileList.length >= this.limitNum
|
|
1802
|
+
},
|
|
1803
|
+
onUploadProgress: function (progress, point, file, videoData) {
|
|
1804
|
+
console.debug("upload video progress", progress, point);
|
|
1805
|
+
if (progress === 1) {
|
|
1806
|
+
// this.loadingIns.close();
|
|
1807
|
+
videoData.content.url = ossFileUrl(this.ossConfig, point.name);
|
|
1808
|
+
// this.chooseVideo({data:url},file);
|
|
1809
|
+
|
|
1810
|
+
} else {
|
|
1811
|
+
videoData.content.progress = progress;
|
|
1812
|
+
|
|
1813
|
+
}
|
|
1814
|
+
},
|
|
1815
|
+
checkUpload(id,extInfo){
|
|
1816
|
+
this.filedId=id
|
|
1817
|
+
this.limitNum = extInfo.limitNum?extInfo.limitNum:(extInfo.limit?extInfo.limit:1)
|
|
1818
|
+
|
|
1819
|
+
},
|
|
1820
|
+
beforeAvatarUpload(file,type){
|
|
1821
|
+
if (type === 'IMAGE'){
|
|
1822
|
+
const isLte2M = file.size / 1024 / 1024 <= 8;
|
|
1823
|
+
const isSupportedFormat =file.type.indexOf('image')!==-1
|
|
1824
|
+
if (!isSupportedFormat){
|
|
1825
|
+
this.$message.error("只能上传图片格式");
|
|
1826
|
+
return false
|
|
1827
|
+
}
|
|
1828
|
+
if (!isLte2M) {
|
|
1829
|
+
this.$message.error("上传图片大小不能超过 8MB!");
|
|
1830
|
+
return false
|
|
1831
|
+
}
|
|
1832
|
+
return true
|
|
1833
|
+
}
|
|
1834
|
+
else if (type === 'VIDEO'){
|
|
1835
|
+
const isLte2M = file.size / 1024 / 1024 <= 100;
|
|
1836
|
+
const isSupportedFormat =file.type.indexOf('video')!==-1
|
|
1837
|
+
if (!isSupportedFormat){
|
|
1838
|
+
this.$message.error("只能上传视频格式");
|
|
1839
|
+
return false
|
|
1840
|
+
}
|
|
1841
|
+
if (!isLte2M&&isSupportedFormat) {
|
|
1842
|
+
this.$message.error("上传视频大小不能超过100MB!");
|
|
1843
|
+
return false
|
|
1844
|
+
}
|
|
1845
|
+
return true
|
|
1846
|
+
}
|
|
1847
|
+
else if (type === 'FILE' || type === 'ATTACHMENT'){
|
|
1848
|
+
const isLte2M = file.size / 1024 / 1024 <= 100;
|
|
1849
|
+
if (!isLte2M) {
|
|
1850
|
+
this.$message.error("上传附件大小不能超过100MB!");
|
|
1851
|
+
return false
|
|
1852
|
+
}
|
|
1853
|
+
return true
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
},
|
|
1857
|
+
exceedUpload(){
|
|
1858
|
+
this.$message({
|
|
1859
|
+
message:"上传文件数量达到上限",
|
|
1860
|
+
duration:2000,
|
|
1861
|
+
type:'warning'
|
|
1862
|
+
})
|
|
1863
|
+
},
|
|
1864
|
+
|
|
1865
|
+
handlePictureCardPreview(file) {
|
|
1866
|
+
this.videoFlag = true;
|
|
1867
|
+
this.videoUploadPercent = file.percentage.toFixed(0);
|
|
1868
|
+
},
|
|
1869
|
+
refTemplateVisibleChange(visible,field) {
|
|
1870
|
+
let fields = field.formField.type === 'REF' ? field.formField.extInfo.ref.field : field.formField.extInfo.ref.vars
|
|
1871
|
+
if (visible) {
|
|
1872
|
+
if (
|
|
1873
|
+
!this.refTemplateList[field.fieldId] || this.dataQuery[field.fieldId].hasNextPage
|
|
1874
|
+
) {
|
|
1875
|
+
this.$set(this.refTemplateList, field.fieldId, [])
|
|
1876
|
+
!this.dataQuery[field.fieldId] && this.$set(this.dataQuery,field.fieldId, {
|
|
1877
|
+
filterId: '',
|
|
1878
|
+
keywords: '',
|
|
1879
|
+
pageInfo: {
|
|
1880
|
+
pageNo: 1,
|
|
1881
|
+
pageSize: 20
|
|
1882
|
+
},
|
|
1883
|
+
sortInfos: [],
|
|
1884
|
+
templateId: ''
|
|
1885
|
+
})
|
|
1886
|
+
this.getTemplateList(field.formField.extInfo.ref.source, fields, field)
|
|
1887
|
+
}
|
|
1888
|
+
}
|
|
1889
|
+
},
|
|
1890
|
+
getTemplateList(templateId, fieldId, field) {
|
|
1891
|
+
let url = '/order-api/data-template/data/page'
|
|
1892
|
+
this.dataQuery[field.fieldId].templateId = templateId
|
|
1893
|
+
// let dataQuery = {
|
|
1894
|
+
// filterId: '',
|
|
1895
|
+
// keywords: '',
|
|
1896
|
+
// pageInfo: {
|
|
1897
|
+
// pageNo: 1,
|
|
1898
|
+
// pageSize: 20
|
|
1899
|
+
// },
|
|
1900
|
+
// sortInfos: [],
|
|
1901
|
+
// templateId: templateId
|
|
1902
|
+
// }
|
|
1903
|
+
this.$http.post(url, this.dataQuery[field.fieldId]).then(res => {
|
|
1904
|
+
if (res.data.code === '0') {
|
|
1905
|
+
let list = res.data.data.data
|
|
1906
|
+
this.dataQuery[field.fieldId].hasNextPage = res.data.data.hasNextPage
|
|
1907
|
+
// this.isHasNext[field.id] = res.data.data.hasNextPage
|
|
1908
|
+
let templateList = []
|
|
1909
|
+
templateList = list.map(res => {
|
|
1910
|
+
let info = {}
|
|
1911
|
+
for (let key in res.fieldValues) {
|
|
1912
|
+
if (Array.isArray(fieldId)) {
|
|
1913
|
+
let vals = ''
|
|
1914
|
+
let values = ''
|
|
1915
|
+
fieldId.forEach(val => {
|
|
1916
|
+
vals += val
|
|
1917
|
+
if (res.fieldValues[val]) {
|
|
1918
|
+
values += res.fieldValues[val]
|
|
1919
|
+
}
|
|
1920
|
+
})
|
|
1921
|
+
info[vals] = values
|
|
1922
|
+
info.id = res.id
|
|
1923
|
+
info.name = values
|
|
1924
|
+
} else {
|
|
1925
|
+
if (fieldId === key) {
|
|
1926
|
+
info[key] = res.fieldValues[key]
|
|
1927
|
+
info.id = res.id
|
|
1928
|
+
info.name = res.fieldValues[key]
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
return info
|
|
1933
|
+
})
|
|
1934
|
+
this.$nextTick(() =>{
|
|
1935
|
+
this.$set(this.refTemplateList,field.fieldId,[
|
|
1936
|
+
...this.refTemplateList[field.fieldId],
|
|
1937
|
+
...templateList
|
|
1938
|
+
])
|
|
1939
|
+
})
|
|
1940
|
+
}
|
|
1941
|
+
})
|
|
1942
|
+
},
|
|
1943
|
+
lodeMore(item) {
|
|
1944
|
+
this.dataQuery[item.fieldId].pageInfo.pageNo += 1
|
|
1945
|
+
this.refTemplateVisibleChange(true,item)
|
|
1946
|
+
},
|
|
1947
|
+
//打开级联/下拉抽屉选择
|
|
1948
|
+
openDrawer(field,type){
|
|
1949
|
+
this.detailField = field;
|
|
1950
|
+
console.debug('type',type)
|
|
1951
|
+
if (type == 'cascader' || type === 'pc_cascader'){
|
|
1952
|
+
if (type == 'cascader'){
|
|
1953
|
+
this.showArea = true;
|
|
1954
|
+
}
|
|
1955
|
+
else {
|
|
1956
|
+
this.drawer = true;
|
|
1957
|
+
}
|
|
1958
|
+
this.$nextTick(()=>{
|
|
1959
|
+
let arr = this.checkDatas[field.fieldId]?this.checkDatas[field.fieldId]:[]
|
|
1960
|
+
console.debug('drawerTree',this.$refs.drawerTree)
|
|
1961
|
+
let drawerTree = this.$refs.drawerTree
|
|
1962
|
+
if (drawerTree){
|
|
1963
|
+
drawerTree.forEach(item=>{
|
|
1964
|
+
item.$refs.dataTree.setCheckedNodes (arr);
|
|
1965
|
+
item.checked = this.checkDatas[field.fieldId] && this.checkDatas[field.fieldId][0]?this.checkDatas[field.fieldId][0].value:'';
|
|
1966
|
+
})
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1969
|
+
})
|
|
1970
|
+
}
|
|
1971
|
+
else if (type === 'select'){
|
|
1972
|
+
this.options = field.formField.extInfo.option?field.formField.extInfo.option:field.formField.extInfo.options;
|
|
1973
|
+
this.selectPopUp = true;
|
|
1974
|
+
if (!this.detailField.value){
|
|
1975
|
+
return
|
|
1976
|
+
}
|
|
1977
|
+
if (Array.isArray(this.detailField.value)){
|
|
1978
|
+
this.defaultValue = this.detailField.value
|
|
1979
|
+
}
|
|
1980
|
+
else {
|
|
1981
|
+
this.defaultValue = [this.detailField.value]
|
|
1982
|
+
}
|
|
1983
|
+
console.debug('selectPopUp',this.selectPopUp,this.options)
|
|
1984
|
+
}
|
|
1985
|
+
},
|
|
1986
|
+
//保存级联数据
|
|
1987
|
+
saveData(checkList,checkDatas){
|
|
1988
|
+
this.$set(this.detailField,'value',checkList);
|
|
1989
|
+
this.checkDatas[this.detailField.fieldId] = checkDatas;
|
|
1990
|
+
this.$set(this.detailField.formField.extInfo,'fieldValue',this.checkDatas)
|
|
1991
|
+
this.$forceUpdate();
|
|
1992
|
+
this.showArea = false;
|
|
1993
|
+
this.drawer = false;
|
|
1994
|
+
},
|
|
1995
|
+
//保存所选下拉值
|
|
1996
|
+
confirmSelect(option, list){
|
|
1997
|
+
console.debug('option',option,list)
|
|
1998
|
+
this.detailField.value = list;
|
|
1999
|
+
this.selectPopUp = false
|
|
2000
|
+
this.selectPicker = false
|
|
2001
|
+
},
|
|
2002
|
+
//保存ref类型值
|
|
2003
|
+
confirmRefSelect(option, list){
|
|
2004
|
+
console.debug('options',option,list)
|
|
2005
|
+
if (!option || !list){
|
|
2006
|
+
this.refShowPicker = false;
|
|
2007
|
+
return
|
|
2008
|
+
}
|
|
2009
|
+
this.detailField.value = list;
|
|
2010
|
+
let val = option?option.map(item=>{
|
|
2011
|
+
return item.name
|
|
2012
|
+
}):[]
|
|
2013
|
+
this.selectValue[this.detailField.fieldId] = val;
|
|
2014
|
+
this.refShowPicker = false;
|
|
2015
|
+
},
|
|
2016
|
+
// 一个重复的方法 兼容 状态优先级 的关联控件,
|
|
2017
|
+
relationSet(field,list) {
|
|
2018
|
+
let flag = false
|
|
2019
|
+
console.debug('field',field,field.extInfo && field.extInfo[list])
|
|
2020
|
+
// 如果在extInfo下有该字段,表示已被关联,否则根据 类型去判断 retrun true 或者false
|
|
2021
|
+
if(field.extInfo && field.extInfo[list] && Object.keys(field.extInfo[list]).length !== 0) {
|
|
2022
|
+
for (const key in field.extInfo[list]) {
|
|
2023
|
+
const element = field.extInfo[list][key];
|
|
2024
|
+
let orderFieldValue = ""
|
|
2025
|
+
for (let i=0;i<this.formShow.form.formFieldRelation.length;i++){
|
|
2026
|
+
if (key === this.formShow.form.formFieldRelation[i].fieldId || key === this.formShow.form.formFieldRelation[i].formField.workOrderFieldId){
|
|
2027
|
+
orderFieldValue = this.formShow.form.formFieldRelation[i].value
|
|
2028
|
+
break
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
console.debug('orderFieldValue',orderFieldValue)
|
|
2032
|
+
if(orderFieldValue) {
|
|
2033
|
+
if(Array.isArray(orderFieldValue)) {
|
|
2034
|
+
if(Array.isArray(element)) {
|
|
2035
|
+
for (let index = 0; index < element.length; index++) {
|
|
2036
|
+
flag = orderFieldValue.some(item =>{ return item == element[index] })
|
|
2037
|
+
if(flag) {
|
|
2038
|
+
return flag
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
2041
|
+
} else {
|
|
2042
|
+
flag = orderFieldValue.some(item =>{ return item == element })
|
|
2043
|
+
if(flag) {
|
|
2044
|
+
return flag
|
|
2045
|
+
}
|
|
2046
|
+
}
|
|
2047
|
+
} else {
|
|
2048
|
+
if(Array.isArray(element)) {
|
|
2049
|
+
for (let index = 0; index < element.length; index++) {
|
|
2050
|
+
flag = element[index] == orderFieldValue
|
|
2051
|
+
if(flag) {
|
|
2052
|
+
return flag
|
|
2053
|
+
}
|
|
2054
|
+
}
|
|
2055
|
+
} else {
|
|
2056
|
+
flag = element == orderFieldValue
|
|
2057
|
+
if(flag) {
|
|
2058
|
+
return flag
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
else if(list == 'dependentFieldId') {
|
|
2065
|
+
return flag = false
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
} else if(list == 'dependentFieldId') {
|
|
2069
|
+
return flag = true
|
|
2070
|
+
} else if(list == 'requiredDependentFieldId') {
|
|
2071
|
+
return flag = false
|
|
2072
|
+
}
|
|
2073
|
+
return flag
|
|
2074
|
+
},
|
|
2075
|
+
},
|
|
2076
|
+
watch:{
|
|
2077
|
+
formFieldValus:{
|
|
2078
|
+
handler(value){
|
|
2079
|
+
console.log(value);
|
|
2080
|
+
},
|
|
2081
|
+
deep:true
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2085
|
+
|
|
2086
|
+
|
|
2087
|
+
}
|
|
2088
|
+
</script>
|
|
2089
|
+
|
|
2090
|
+
<style lang="less" scoped>
|
|
2091
|
+
.notClick {
|
|
2092
|
+
pointer-events: none;
|
|
2093
|
+
}
|
|
2094
|
+
.formClass{
|
|
2095
|
+
/* border: 1px solid #ebebeb;*/
|
|
2096
|
+
font-family: "Avenir", Helvetica, Arial, sans-serif;
|
|
2097
|
+
border-radius: 15px;
|
|
2098
|
+
.explanation{
|
|
2099
|
+
display: flex;
|
|
2100
|
+
padding: 4px;
|
|
2101
|
+
.explanation-p{
|
|
2102
|
+
color: #366aff;
|
|
2103
|
+
font-size: 14px;
|
|
2104
|
+
margin: 10px 4px;
|
|
2105
|
+
.el-icon-info{
|
|
2106
|
+
margin-right: 8px;
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
.explain-url{
|
|
2111
|
+
a{
|
|
2112
|
+
color:#366aff ;
|
|
2113
|
+
}
|
|
2114
|
+
}
|
|
2115
|
+
.titleName{
|
|
2116
|
+
font-size: 1em;
|
|
2117
|
+
text-align: center;
|
|
2118
|
+
padding-bottom: 10px;
|
|
2119
|
+
display: flex;
|
|
2120
|
+
align-items: center;
|
|
2121
|
+
justify-content: center;
|
|
2122
|
+
/* border-bottom: 1px solid #EEEEEE;*/
|
|
2123
|
+
}
|
|
2124
|
+
.title-link{
|
|
2125
|
+
height: 1px;
|
|
2126
|
+
background-color: #EEEEEE;
|
|
2127
|
+
}
|
|
2128
|
+
.bottom-link{
|
|
2129
|
+
margin-top: 14px;
|
|
2130
|
+
height: 1px;
|
|
2131
|
+
background-color: #EEEEEE;
|
|
2132
|
+
}
|
|
2133
|
+
.form-submit-btn{
|
|
2134
|
+
padding: 14px 16px 0 16px;
|
|
2135
|
+
text-align: center;
|
|
2136
|
+
}
|
|
2137
|
+
/deep/.ck.ck-editor{
|
|
2138
|
+
padding: 0 8px;
|
|
2139
|
+
}
|
|
2140
|
+
/deep/.ck.ck-toolbar{
|
|
2141
|
+
border-color:#E0E6F7;
|
|
2142
|
+
border-top-left-radius: 9px!important;
|
|
2143
|
+
border-top-right-radius: 9px!important;
|
|
2144
|
+
}
|
|
2145
|
+
/deep/.ck.ck-editor__editable_inline{
|
|
2146
|
+
border-color:#E0E6F7;
|
|
2147
|
+
min-height: 150px!important;
|
|
2148
|
+
border-bottom-left-radius: 9px!important;
|
|
2149
|
+
border-bottom-right-radius: 9px!important;
|
|
2150
|
+
}
|
|
2151
|
+
.cascader-class{
|
|
2152
|
+
padding: 10px 16px;
|
|
2153
|
+
}
|
|
2154
|
+
.cascader-input{
|
|
2155
|
+
-webkit-appearance: none;
|
|
2156
|
+
background-image: none;
|
|
2157
|
+
border: 1px solid #E0E6F7;
|
|
2158
|
+
-webkit-box-sizing: border-box;
|
|
2159
|
+
box-sizing: border-box;
|
|
2160
|
+
color: #606266;
|
|
2161
|
+
display: inline-block;
|
|
2162
|
+
height: 40px;
|
|
2163
|
+
line-height: 40px;
|
|
2164
|
+
outline: 0;
|
|
2165
|
+
padding: 0 15px;
|
|
2166
|
+
-webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
|
|
2167
|
+
transition: border-color .2s cubic-bezier(.645,.045,.355,1);
|
|
2168
|
+
width: 100%;
|
|
2169
|
+
background-color: transparent!important;
|
|
2170
|
+
border-radius: 9px!important;
|
|
2171
|
+
cursor: pointer;
|
|
2172
|
+
font-size: 14px;
|
|
2173
|
+
}
|
|
2174
|
+
.cascader-name{
|
|
2175
|
+
color: #A9B3C6;
|
|
2176
|
+
font-size: 1em;
|
|
2177
|
+
padding-bottom: 8px;
|
|
2178
|
+
}
|
|
2179
|
+
}
|
|
2180
|
+
.pcFormClass{
|
|
2181
|
+
width: 400px;
|
|
2182
|
+
margin: 0 auto;
|
|
2183
|
+
.field-item{
|
|
2184
|
+
padding: 8px 0;
|
|
2185
|
+
.field-item-name{
|
|
2186
|
+
padding-bottom: 8px;
|
|
2187
|
+
color: #A9B3C6;
|
|
2188
|
+
/* color: #000000;*/
|
|
2189
|
+
}
|
|
2190
|
+
}
|
|
2191
|
+
/deep/.el-input__inner{
|
|
2192
|
+
border-color: #E0E6F7!important;
|
|
2193
|
+
background-color: transparent!important;
|
|
2194
|
+
border-radius: 9px!important;
|
|
2195
|
+
}
|
|
2196
|
+
/deep/.el-textarea__inner{
|
|
2197
|
+
border-color: #E0E6F7!important;
|
|
2198
|
+
background-color: transparent!important;
|
|
2199
|
+
border-radius: 9px!important;
|
|
2200
|
+
padding: 9px 15px!important;
|
|
2201
|
+
}
|
|
2202
|
+
.upload-demo{
|
|
2203
|
+
background-color: #FFFFFF;
|
|
2204
|
+
border: 1px solid #E0E6F7;
|
|
2205
|
+
border-radius: 10px;
|
|
2206
|
+
width: 74px;
|
|
2207
|
+
height: 74px;
|
|
2208
|
+
vertical-align: top;
|
|
2209
|
+
cursor: pointer;
|
|
2210
|
+
text-align: center;
|
|
2211
|
+
font-size:28px;
|
|
2212
|
+
color:#366AFF;
|
|
2213
|
+
display: -webkit-box;
|
|
2214
|
+
align-items: center;
|
|
2215
|
+
justify-content: center;
|
|
2216
|
+
i{
|
|
2217
|
+
color: #366AFF;
|
|
2218
|
+
}
|
|
2219
|
+
/deep/.el-upload{
|
|
2220
|
+
height: 100%;
|
|
2221
|
+
width: 100%;
|
|
2222
|
+
display: flex;
|
|
2223
|
+
align-items: center;
|
|
2224
|
+
justify-content: center;
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
2227
|
+
/deep/.el-upload--picture-card{
|
|
2228
|
+
background-color: #FFFFFF;
|
|
2229
|
+
border: 1px solid #E0E6F7;
|
|
2230
|
+
border-radius: 10px;
|
|
2231
|
+
width: 74px;
|
|
2232
|
+
height: 74px;
|
|
2233
|
+
vertical-align: top;
|
|
2234
|
+
cursor: pointer;
|
|
2235
|
+
text-align: center;
|
|
2236
|
+
font-size:28px;
|
|
2237
|
+
color:#366AFF;
|
|
2238
|
+
display: flex;
|
|
2239
|
+
align-items: center;
|
|
2240
|
+
justify-content: center;
|
|
2241
|
+
i{
|
|
2242
|
+
color: #366AFF;
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
2245
|
+
/deep/.el-select-dropdown__item.selected{
|
|
2246
|
+
color: #366aff;
|
|
2247
|
+
}
|
|
2248
|
+
/deep/.el-upload-list--picture-card{
|
|
2249
|
+
.el-upload-list__item{
|
|
2250
|
+
width: 74px;
|
|
2251
|
+
height: 74px;
|
|
2252
|
+
border-radius: 10px;
|
|
2253
|
+
}
|
|
2254
|
+
}
|
|
2255
|
+
/deep/.el-upload-list__item-name{
|
|
2256
|
+
max-width: 180px;
|
|
2257
|
+
}
|
|
2258
|
+
.hide .el-upload--picture-card {
|
|
2259
|
+
display: none!important;
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
/deep/.van-radio__icon--checked .van-icon{
|
|
2263
|
+
background-color: #366aff!important;
|
|
2264
|
+
border-color: #366aff!important;
|
|
2265
|
+
}
|
|
2266
|
+
/deep/.van-checkbox__icon--checked .van-icon{
|
|
2267
|
+
background-color: #366aff!important;
|
|
2268
|
+
border-color: #366aff!important;
|
|
2269
|
+
}
|
|
2270
|
+
/deep/.vant-upload--picture-card{
|
|
2271
|
+
background-color: #ffffff;
|
|
2272
|
+
border: 1px solid #E0E6F7;
|
|
2273
|
+
border-radius: 10px;
|
|
2274
|
+
width: 74px;
|
|
2275
|
+
height: 74px;
|
|
2276
|
+
vertical-align: top;
|
|
2277
|
+
cursor: pointer;
|
|
2278
|
+
text-align: center;
|
|
2279
|
+
font-size:28px;
|
|
2280
|
+
color:#8c939d;
|
|
2281
|
+
display: flex;
|
|
2282
|
+
align-items: center;
|
|
2283
|
+
justify-content: center;
|
|
2284
|
+
i{
|
|
2285
|
+
color: #366aff;
|
|
2286
|
+
}
|
|
2287
|
+
}
|
|
2288
|
+
/deep/.van-popup{
|
|
2289
|
+
border-radius: 5px;
|
|
2290
|
+
}
|
|
2291
|
+
.remPhoneClassForm{
|
|
2292
|
+
.mobileFormClass{
|
|
2293
|
+
width: calc(100vw - 110px);
|
|
2294
|
+
background-color: white;
|
|
2295
|
+
.form-field-item{
|
|
2296
|
+
.form-field-item-value{
|
|
2297
|
+
/deep/.van-cell{
|
|
2298
|
+
flex-direction: column;
|
|
2299
|
+
padding: 8px 16px;
|
|
2300
|
+
}
|
|
2301
|
+
/deep/.van-cell__value{
|
|
2302
|
+
border: 1px solid #E0E6F7;
|
|
2303
|
+
border-radius: 9px;
|
|
2304
|
+
min-height: 40px;
|
|
2305
|
+
padding: 0 10px;
|
|
2306
|
+
}
|
|
2307
|
+
/deep/.van-cell__right-icon{
|
|
2308
|
+
color: #999999!important;
|
|
2309
|
+
}
|
|
2310
|
+
.form-field-item-file{
|
|
2311
|
+
padding: 10px 16px;
|
|
2312
|
+
.fileName{
|
|
2313
|
+
padding-bottom: 8px;
|
|
2314
|
+
color: #A9B3C6;
|
|
2315
|
+
/* color: #000000;*/
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2318
|
+
.workorder_description{
|
|
2319
|
+
/* padding: 8px 16px;*/
|
|
2320
|
+
padding: 8px 0;
|
|
2321
|
+
/*font-size: 14px;*/
|
|
2322
|
+
.field-name{
|
|
2323
|
+
width: 100%;
|
|
2324
|
+
text-align: left;
|
|
2325
|
+
color: #A9B3C6;
|
|
2326
|
+
/* color: #000000;*/
|
|
2327
|
+
line-height: 1;
|
|
2328
|
+
padding-bottom: 8px;
|
|
2329
|
+
}
|
|
2330
|
+
/*.required-name{
|
|
2331
|
+
margin-left: -6px;
|
|
2332
|
+
}*/
|
|
2333
|
+
|
|
2334
|
+
/* /deep/.ck-content .image img{
|
|
2335
|
+
max-width: 200px!important;
|
|
2336
|
+
}*/
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
.form-field-item-other{
|
|
2340
|
+
/deep/.van-cell{
|
|
2341
|
+
flex-direction: column;
|
|
2342
|
+
}
|
|
2343
|
+
/deep/.van-cell__value{
|
|
2344
|
+
min-height: 40px;
|
|
2345
|
+
}
|
|
2346
|
+
}
|
|
2347
|
+
.explan-ation{
|
|
2348
|
+
.explan-ation-div{
|
|
2349
|
+
display: flex;
|
|
2350
|
+
/* padding: 4px 16px;*/
|
|
2351
|
+
padding: 4px;
|
|
2352
|
+
}
|
|
2353
|
+
.explan-ation-p{
|
|
2354
|
+
color: #366aff;font-size: 14px;margin: 16px 4px;
|
|
2355
|
+
}
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
2358
|
+
.upload-phone-demo{
|
|
2359
|
+
/deep/.el-upload--picture-card{
|
|
2360
|
+
background-color: #fbfdff;
|
|
2361
|
+
border: 1px dashed #c0ccda;
|
|
2362
|
+
border-radius: 6px;
|
|
2363
|
+
width: 74px;
|
|
2364
|
+
height: 74px;
|
|
2365
|
+
vertical-align: top;
|
|
2366
|
+
cursor: pointer;
|
|
2367
|
+
text-align: center;
|
|
2368
|
+
font-size:28px;
|
|
2369
|
+
color:#8c939d;
|
|
2370
|
+
display: flex;
|
|
2371
|
+
align-items: center;
|
|
2372
|
+
justify-content: center;
|
|
2373
|
+
}
|
|
2374
|
+
/deep/.el-upload-list--picture-card .el-upload-list__item{
|
|
2375
|
+
height: 76px;
|
|
2376
|
+
width: 76px;
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
/deep/.van-image__img{
|
|
2380
|
+
border-radius: 10px;
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
.submitClass{
|
|
2384
|
+
min-width: 100px;
|
|
2385
|
+
background-color: #366aff;
|
|
2386
|
+
color: white!important;
|
|
2387
|
+
height: 32px;
|
|
2388
|
+
i{
|
|
2389
|
+
padding-right: 8px;
|
|
2390
|
+
font-weight: 600;
|
|
2391
|
+
}
|
|
2392
|
+
}
|
|
2393
|
+
/deep/.van-radio-group--horizontal{
|
|
2394
|
+
.van-radio{
|
|
2395
|
+
min-width: 100px;
|
|
2396
|
+
max-width: 260px;
|
|
2397
|
+
flex: none;
|
|
2398
|
+
}
|
|
2399
|
+
.van-radio--horizontal{
|
|
2400
|
+
padding: 0.3rem 0;
|
|
2401
|
+
margin-right: 6px;
|
|
2402
|
+
}
|
|
2403
|
+
}
|
|
2404
|
+
/deep/.van-checkbox-group--horizontal{
|
|
2405
|
+
.van-checkbox{
|
|
2406
|
+
min-width: 100px;
|
|
2407
|
+
max-width: 260px;
|
|
2408
|
+
flex: none;
|
|
2409
|
+
}
|
|
2410
|
+
.van-checkbox--horizontal{
|
|
2411
|
+
padding: 0.3rem 0;
|
|
2412
|
+
margin-right: 6px;
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
/deep/.van-button--info{
|
|
2416
|
+
border:1px solid #366aff;
|
|
2417
|
+
}
|
|
2418
|
+
/deep/.van-field__label{
|
|
2419
|
+
width: 100%;
|
|
2420
|
+
text-align: left;
|
|
2421
|
+
color: #A9B3C6!important;
|
|
2422
|
+
/* color: #000000!important;*/
|
|
2423
|
+
display: flex;
|
|
2424
|
+
align-items: center;
|
|
2425
|
+
line-height: 1;
|
|
2426
|
+
padding-bottom: 8px;
|
|
2427
|
+
font-size: 1em;
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2430
|
+
/deep/.van-field__control{
|
|
2431
|
+
min-height: 40px;
|
|
2432
|
+
}
|
|
2433
|
+
/deep/textarea{
|
|
2434
|
+
padding: 7px 0;
|
|
2435
|
+
}
|
|
2436
|
+
/deep/.van-dropdown-menu__bar{
|
|
2437
|
+
box-shadow: none!important;
|
|
2438
|
+
}
|
|
2439
|
+
/deep/.van-overlay{
|
|
2440
|
+
background-color: rgba(0,0,0,.4);
|
|
2441
|
+
}
|
|
2442
|
+
}
|
|
2443
|
+
|
|
2444
|
+
.remCompanyClassForm{
|
|
2445
|
+
width: 100%;
|
|
2446
|
+
font-size: 1em;
|
|
2447
|
+
.submitClass{
|
|
2448
|
+
min-width: 100px;
|
|
2449
|
+
color: white!important;
|
|
2450
|
+
background-color:#366aff;
|
|
2451
|
+
border-color: #366aff;
|
|
2452
|
+
i{
|
|
2453
|
+
padding-right: 8px;
|
|
2454
|
+
font-weight: 600;
|
|
2455
|
+
}
|
|
2456
|
+
}
|
|
2457
|
+
/deep/.el-checkbox-group{
|
|
2458
|
+
display: flex;
|
|
2459
|
+
align-items: center;
|
|
2460
|
+
flex-wrap: wrap;
|
|
2461
|
+
.el-checkbox{
|
|
2462
|
+
padding: 8px 0;
|
|
2463
|
+
min-width:150px;
|
|
2464
|
+
max-width: 280px;
|
|
2465
|
+
flex: none;
|
|
2466
|
+
display: flex;
|
|
2467
|
+
overflow: hidden;
|
|
2468
|
+
margin-right: 0;
|
|
2469
|
+
display: flex;
|
|
2470
|
+
align-items:center;
|
|
2471
|
+
}
|
|
2472
|
+
.el-checkbox__label{
|
|
2473
|
+
font-size: 1em;
|
|
2474
|
+
overflow: hidden;
|
|
2475
|
+
text-overflow: ellipsis;
|
|
2476
|
+
white-space: nowrap;
|
|
2477
|
+
}
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
/deep/.el-radio-group{
|
|
2481
|
+
display: flex;
|
|
2482
|
+
align-items: center;
|
|
2483
|
+
flex-wrap: wrap;
|
|
2484
|
+
.el-radio{
|
|
2485
|
+
padding: 8px 0;
|
|
2486
|
+
min-width:150px;
|
|
2487
|
+
max-width: 280px;
|
|
2488
|
+
flex: none;
|
|
2489
|
+
display: flex;
|
|
2490
|
+
overflow: hidden;
|
|
2491
|
+
margin-right: 0;
|
|
2492
|
+
}
|
|
2493
|
+
.el-radio__label{
|
|
2494
|
+
overflow: hidden;
|
|
2495
|
+
text-overflow: ellipsis;
|
|
2496
|
+
white-space: nowrap;
|
|
2497
|
+
font-size: 1em;
|
|
2498
|
+
}
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2501
|
+
/deep/.el-radio__input.is-checked+.el-radio__label{
|
|
2502
|
+
color: #366aff!important;
|
|
2503
|
+
}
|
|
2504
|
+
/deep/.el-radio__input.is-checked .el-radio__inner{
|
|
2505
|
+
color: #366aff!important;
|
|
2506
|
+
border-color: #366aff!important;
|
|
2507
|
+
background: #366aff!important;
|
|
2508
|
+
}
|
|
2509
|
+
/deep/.el-checkbox__input.is-checked+.el-checkbox__label{
|
|
2510
|
+
color: #366aff!important;
|
|
2511
|
+
}
|
|
2512
|
+
/deep/.el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner{
|
|
2513
|
+
background-color: #366aff!important;
|
|
2514
|
+
border-color: #366aff!important;
|
|
2515
|
+
}
|
|
2516
|
+
/deep/.ck .ck-icon {
|
|
2517
|
+
width: 14px !important;
|
|
2518
|
+
height: 14px !important;
|
|
2519
|
+
}
|
|
2520
|
+
}
|
|
2521
|
+
.drawer-container{
|
|
2522
|
+
height: 100%;
|
|
2523
|
+
overflow: hidden;
|
|
2524
|
+
}
|
|
1970
2525
|
</style>
|