vue2-client 1.8.200-1 → 1.8.201

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.8.200-1",
3
+ "version": "1.8.201",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -62,7 +62,7 @@ import XBadge from '@vue2-client/base-client/components/common/XBadge/XBadge'
62
62
  import { post } from 'vue2-client/src/services/api/restTools'
63
63
 
64
64
  export default {
65
- name: 'DetailsView',
65
+ name: 'XDetailsView',
66
66
  components: {
67
67
  XBadge
68
68
  },
@@ -73,7 +73,7 @@ export default {
73
73
  // 数据详情
74
74
  details: {},
75
75
  // 详情加载
76
- loadDetails: true
76
+ loadDetails: false
77
77
  }
78
78
  },
79
79
  mounted () {
@@ -4,7 +4,12 @@
4
4
  <a-descriptions :key="index" v-if="formJson.default[item.group]" :column="1" class="details_content">
5
5
  <template v-for="(col, index) in item.column">
6
6
  <a-descriptions-item :label="col.title" :key="index">
7
- {{formJson.default[item.group][col.key]}}
7
+ <template v-if="col.formType === 'rate'">
8
+ <a-rate disabled v-model="formJson.default[item.group][col.key]" />
9
+ </template>
10
+ <template v-else>
11
+ {{formJson.default[item.group][col.key]}}
12
+ </template>
8
13
  </a-descriptions-item>
9
14
  </template>
10
15
  </a-descriptions>
@@ -28,6 +33,18 @@ export default {
28
33
  },
29
34
  methods: {
30
35
  init (params) {
36
+ /* params入参格式
37
+ * {
38
+ title: '评价内容', --表单标题
39
+ formJson: res, --琉璃配置中心表单组json
40
+ showGroups: [ --对应每组的内容
41
+ {
42
+ title: record.ter_f_business_name, --某个表单的名字
43
+ result: { key: value } --需要渲染的key-value
44
+ }
45
+ ]
46
+ }
47
+ * */
31
48
  const {
32
49
  title, formJson, showGroups
33
50
  } = params
@@ -47,7 +64,7 @@ export default {
47
64
  .details_content {
48
65
  width: 60%;
49
66
  :deep(.ant-descriptions-item-label) {
50
- display: block;
67
+ // display: block;
51
68
  font-weight: bold;
52
69
  margin-bottom: 4px;
53
70
  }
@@ -1,578 +1,578 @@
1
- <template>
2
- <div id="test">
3
- <!-- <XReport config-name="report_ticket" :local-config="test" :config-data="test.testJsonData" :dont-format="true"/>
4
- <a-button @click="testExport">导出</a-button>-->
5
- </div>
6
- </template>
7
-
8
- <script>
9
- import XReport from '@vue2-client/base-client/components/common/XReport'
10
- import { exportHTMLNodeToPDF } from '@vue2-client/utils/htmlToPDFApi'
11
-
12
- export default {
13
- name: 'Example',
14
- components: {
15
- XReport
16
- },
17
- mounted () {
18
- console.log(this.$route)
19
- },
20
- data () {
21
- return {
22
- test: {
23
- slotsDeclare: [],
24
- data: {
25
- 'serviceall@@@baseuserinfo@@@f_user_name': '',
26
- images: {},
27
- 'serviceall@@@f_new_failure': '',
28
- 'usermeter@@@f_meternumber': '',
29
- 'usermeter@@@f_meter_style': '',
30
- 'usermeter@@@f_meter_brand': '',
31
- 'serviceall@@@f_date_leave': '',
32
- 'serviceall@@@f_remarks': '',
33
- 'serviceall@@@baseuserinfo@@@f_userinfo_code': '',
34
- 'serviceall@@@f_date_come': '',
35
- 'serviceall@@@baseuserinfo@@@f_address': '',
36
- f_total_feeORf_total_gas: '',
37
- 'usermeter@@@f_aroundmeter': ''
38
- },
39
- columns: [
40
- [
41
- {
42
- rowSpan: 1,
43
- colSpan: 2,
44
- text: '用户名称',
45
- originalRowIndex: 0,
46
- type: 'column',
47
- originalCellIndex: 0
48
- },
49
- {
50
- rowSpan: 1,
51
- dataIndexType: 'String',
52
- colSpan: 4,
53
- dataIndex: 'serviceall@@@baseuserinfo@@@f_user_name',
54
- originalRowIndex: 0,
55
- type: 'input',
56
- originalCellIndex: 2
57
- },
58
- {
59
- rowSpan: 1,
60
- colSpan: 2,
61
- text: '用户编号',
62
- originalRowIndex: 0,
63
- type: 'column',
64
- originalCellIndex: 6
65
- },
66
- {
67
- rowSpan: 1,
68
- dataIndexType: 'String',
69
- colSpan: 4,
70
- dataIndex: 'serviceall@@@baseuserinfo@@@f_userinfo_code',
71
- originalRowIndex: 0,
72
- type: 'input',
73
- originalCellIndex: 8
74
- }
75
- ],
76
- [
77
- {
78
- rowSpan: 1,
79
- colSpan: 2,
80
- text: '详细地址',
81
- originalRowIndex: 1,
82
- type: 'column',
83
- originalCellIndex: 0
84
- },
85
- {
86
- rowSpan: 1,
87
- dataIndexType: 'String',
88
- colSpan: 10,
89
- dataIndex: 'serviceall@@@baseuserinfo@@@f_address',
90
- originalRowIndex: 1,
91
- type: 'input',
92
- originalCellIndex: 2
93
- }
94
- ],
95
- [
96
- {
97
- rowSpan: 1,
98
- colSpan: 2,
99
- text: '故障明细',
100
- originalRowIndex: 2,
101
- type: 'column',
102
- originalCellIndex: 0
103
- },
104
- {
105
- rowSpan: 1,
106
- dataIndexType: 'String',
107
- customFunction: "function (val) {\n let failureall=''\n let failure = JSON@@@parse(val)\n for (let i = 0; i <failure@@@length; i++) {\n if (failure[i]@@@failurecase@@@length>0){\n failureall+=failure[i]@@@f_failure_type+\":\"\n for (let j = 0; j < failure[i]@@@failurecase@@@length; j++) {\n failureall+=failure[i]@@@failurecase[j]\n if (j+1!=failure[i]@@@failurecase@@@length){\n failureall+=\",\"\n }\n }\n\n }else{\n failureall+=failure[i]@@@f_failure_type\n }\n if (i+1!=failure@@@length){\n failureall+=';'\n }\n }\n return failureall\n}",
108
- colSpan: 10,
109
- dataIndex: 'serviceall@@@f_new_failure',
110
- originalRowIndex: 2,
111
- type: 'input',
112
- originalCellIndex: 2
113
- }
114
- ],
115
- [
116
- {
117
- rowSpan: 1,
118
- customFunction: "function (val, config) {\n return config.data.usermeter.f_collection_type === '按金额' ? '累购金额' : '累购气量'\n}",
119
- colSpan: 2,
120
- text: '累购金额or累购气量',
121
- originalRowIndex: 3,
122
- type: 'column',
123
- originalCellIndex: 0
124
- },
125
- {
126
- rowSpan: 1,
127
- dataIndexType: 'String',
128
- dynamicDataIndex: true,
129
- colSpan: 4,
130
- dataIndex: 'f_total_feeORf_total_gas',
131
- customFunctionForDynamicDataIndex: "function (config) {\n if(config.data.usermeter.f_collection_type === '按金额') {\n return 'usermeter@@@f_total_fee'\n }else {\n return 'usermeter@@@f_total_gas'\n }\n}",
132
- originalRowIndex: 3,
133
- type: 'input',
134
- originalCellIndex: 2
135
- },
136
- {
137
- rowSpan: 1,
138
- colSpan: 2,
139
- text: '左右表',
140
- originalRowIndex: 3,
141
- type: 'column',
142
- originalCellIndex: 6
143
- },
144
- {
145
- rowSpan: 1,
146
- dataIndexType: 'String',
147
- colSpan: 4,
148
- dataIndex: 'usermeter@@@f_aroundmeter',
149
- originalRowIndex: 3,
150
- type: 'input',
151
- originalCellIndex: 8
152
- }
153
- ],
154
- [
155
- {
156
- rowSpan: 1,
157
- colSpan: 2,
158
- text: '表号',
159
- originalRowIndex: 4,
160
- type: 'column',
161
- originalCellIndex: 0
162
- },
163
- {
164
- rowSpan: 1,
165
- dataIndexType: 'String',
166
- colSpan: 10,
167
- dataIndex: 'usermeter@@@f_meternumber',
168
- originalRowIndex: 4,
169
- type: 'input',
170
- originalCellIndex: 2
171
- }
172
- ],
173
- [
174
- {
175
- rowSpan: 1,
176
- colSpan: 2,
177
- text: '表品牌',
178
- originalRowIndex: 5,
179
- type: 'column',
180
- originalCellIndex: 0
181
- },
182
- {
183
- rowSpan: 1,
184
- dataIndexType: 'String',
185
- dynamicDataIndex: false,
186
- colSpan: 4,
187
- dataIndex: 'usermeter@@@f_meter_brand',
188
- originalRowIndex: 5,
189
- type: 'input',
190
- originalCellIndex: 2
191
- },
192
- {
193
- rowSpan: 1,
194
- colSpan: 2,
195
- text: '表型号',
196
- originalRowIndex: 5,
197
- type: 'column',
198
- originalCellIndex: 6
199
- },
200
- {
201
- rowSpan: 1,
202
- dataIndexType: 'String',
203
- colSpan: 4,
204
- dataIndex: 'usermeter@@@f_meter_style',
205
- originalRowIndex: 5,
206
- type: 'input',
207
- originalCellIndex: 8
208
- }
209
- ],
210
- [
211
- {
212
- rowSpan: 1,
213
- colSpan: 2,
214
- text: '到达时间',
215
- originalRowIndex: 6,
216
- type: 'column',
217
- originalCellIndex: 0
218
- },
219
- {
220
- rowSpan: 1,
221
- dataIndexType: 'String',
222
- colSpan: 4,
223
- dataIndex: 'serviceall@@@f_date_come',
224
- originalRowIndex: 6,
225
- type: 'input',
226
- originalCellIndex: 2
227
- },
228
- {
229
- rowSpan: 1,
230
- colSpan: 2,
231
- text: '离开时间',
232
- originalRowIndex: 6,
233
- type: 'column',
234
- originalCellIndex: 6
235
- },
236
- {
237
- rowSpan: 1,
238
- dataIndexType: 'String',
239
- colSpan: 4,
240
- dataIndex: 'serviceall@@@f_date_leave',
241
- originalRowIndex: 6,
242
- type: 'input',
243
- originalCellIndex: 8
244
- }
245
- ],
246
- [
247
- {
248
- rowSpan: 1,
249
- colSpan: 2,
250
- text: '备注',
251
- originalRowIndex: 7,
252
- type: 'column',
253
- originalCellIndex: 0
254
- },
255
- {
256
- rowSpan: 1,
257
- dataIndexType: 'String',
258
- colSpan: 10,
259
- dataIndex: 'serviceall@@@f_remarks',
260
- originalRowIndex: 7,
261
- type: 'input',
262
- originalCellIndex: 2
263
- }
264
- ]
265
- ],
266
- title: '客户工单信息',
267
- slotsDefine: {},
268
- testJsonData: {
269
- usermeter: {
270
- f_collection_type: '按气量',
271
- f_total_gas: '总气量',
272
- f_total_fee: '总金额'
273
- }
274
- },
275
- subTitle: [],
276
- width: 'auto',
277
- labelStyle: {
278
- backgroundColor: 'rgb(247,247,247)',
279
- fontWeight: 'bold'
280
- },
281
- style: {},
282
- designMode: 'VisualTable',
283
- $globalProp: {
284
- environment: 'dev',
285
- module: 'null',
286
- tenantAlias: 'standard',
287
- version: '2',
288
- namespaceName: 'af-apply'
289
- },
290
- table: [
291
- [
292
- {
293
- rowSpan: 1,
294
- def: {
295
- text: '用户名称',
296
- type: 'column'
297
- },
298
- colSpan: 2,
299
- originalRowIndex: 0,
300
- originalCellIndex: 0
301
- },
302
- {
303
- rowSpan: 1,
304
- def: {
305
- dataIndexType: 'String',
306
- dataIndex: 'serviceall@@@baseuserinfo@@@f_user_name',
307
- type: 'input'
308
- },
309
- colSpan: 4,
310
- originalRowIndex: 0,
311
- originalCellIndex: 2
312
- },
313
- {
314
- rowSpan: 1,
315
- def: {
316
- text: '用户编号',
317
- type: 'column'
318
- },
319
- colSpan: 2,
320
- originalRowIndex: 0,
321
- originalCellIndex: 6
322
- },
323
- {
324
- rowSpan: 1,
325
- def: {
326
- dataIndexType: 'String',
327
- dataIndex: 'serviceall@@@baseuserinfo@@@f_userinfo_code',
328
- type: 'input'
329
- },
330
- colSpan: 4,
331
- originalRowIndex: 0,
332
- originalCellIndex: 8
333
- }
334
- ],
335
- [
336
- {
337
- rowSpan: 1,
338
- def: {
339
- text: '详细地址',
340
- type: 'column'
341
- },
342
- colSpan: 2,
343
- originalRowIndex: 1,
344
- originalCellIndex: 0
345
- },
346
- {
347
- rowSpan: 1,
348
- def: {
349
- dataIndexType: 'String',
350
- dataIndex: 'serviceall@@@baseuserinfo@@@f_address',
351
- type: 'input'
352
- },
353
- colSpan: 10,
354
- originalRowIndex: 1,
355
- originalCellIndex: 2
356
- }
357
- ],
358
- [
359
- {
360
- rowSpan: 1,
361
- def: {
362
- text: '故障明细',
363
- type: 'column'
364
- },
365
- colSpan: 2,
366
- originalRowIndex: 2,
367
- originalCellIndex: 0
368
- },
369
- {
370
- rowSpan: 1,
371
- def: {
372
- dataIndexType: 'String',
373
- customFunction: "function (val) {\n let failureall=''\n let failure = JSON@@@parse(val)\n for (let i = 0; i <failure@@@length; i++) {\n if (failure[i]@@@failurecase@@@length>0){\n failureall+=failure[i]@@@f_failure_type+\":\"\n for (let j = 0; j < failure[i]@@@failurecase@@@length; j++) {\n failureall+=failure[i]@@@failurecase[j]\n if (j+1!=failure[i]@@@failurecase@@@length){\n failureall+=\",\"\n }\n }\n\n }else{\n failureall+=failure[i]@@@f_failure_type\n }\n if (i+1!=failure@@@length){\n failureall+=';'\n }\n }\n return failureall\n}",
374
- dataIndex: 'serviceall@@@f_new_failure',
375
- type: 'input'
376
- },
377
- colSpan: 10,
378
- originalRowIndex: 2,
379
- originalCellIndex: 2
380
- }
381
- ],
382
- [
383
- {
384
- rowSpan: 1,
385
- def: {
386
- customFunction: "function (val, config) {\n return config.data.usermeter.f_collection_type === '按金额' ? '累购金额' : '累购气量'\n}",
387
- text: '累购金额or累购气量',
388
- type: 'column'
389
- },
390
- colSpan: 2,
391
- originalRowIndex: 3,
392
- originalCellIndex: 0
393
- },
394
- {
395
- rowSpan: 1,
396
- def: {
397
- dataIndexType: 'String',
398
- dynamicDataIndex: true,
399
- dataIndex: 'f_total_feeORf_total_gas',
400
- customFunctionForDynamicDataIndex: "function (config) {\n if(config.data.usermeter.f_collection_type === '按金额') {\n return 'usermeter@@@f_total_fee'\n }else {\n return 'usermeter@@@f_total_gas'\n }\n}",
401
- type: 'input'
402
- },
403
- colSpan: 4,
404
- originalRowIndex: 3,
405
- originalCellIndex: 2
406
- },
407
- {
408
- rowSpan: 1,
409
- def: {
410
- text: '左右表',
411
- type: 'column'
412
- },
413
- colSpan: 2,
414
- originalRowIndex: 3,
415
- originalCellIndex: 6
416
- },
417
- {
418
- rowSpan: 1,
419
- def: {
420
- dataIndexType: 'String',
421
- dataIndex: 'usermeter@@@f_aroundmeter',
422
- type: 'input'
423
- },
424
- colSpan: 4,
425
- originalRowIndex: 3,
426
- originalCellIndex: 8
427
- }
428
- ],
429
- [
430
- {
431
- rowSpan: 1,
432
- def: {
433
- text: '表号',
434
- type: 'column'
435
- },
436
- colSpan: 2,
437
- originalRowIndex: 4,
438
- originalCellIndex: 0
439
- },
440
- {
441
- rowSpan: 1,
442
- def: {
443
- dataIndexType: 'String',
444
- dataIndex: 'usermeter@@@f_meternumber',
445
- type: 'input'
446
- },
447
- colSpan: 10,
448
- originalRowIndex: 4,
449
- originalCellIndex: 2
450
- }
451
- ],
452
- [
453
- {
454
- rowSpan: 1,
455
- def: {
456
- text: '表品牌',
457
- type: 'column'
458
- },
459
- colSpan: 2,
460
- originalRowIndex: 5,
461
- originalCellIndex: 0
462
- },
463
- {
464
- rowSpan: 1,
465
- def: {
466
- dataIndexType: 'String',
467
- dynamicDataIndex: false,
468
- dataIndex: 'usermeter@@@f_meter_brand',
469
- type: 'input'
470
- },
471
- colSpan: 4,
472
- originalRowIndex: 5,
473
- originalCellIndex: 2
474
- },
475
- {
476
- rowSpan: 1,
477
- def: {
478
- text: '表型号',
479
- type: 'column'
480
- },
481
- colSpan: 2,
482
- originalRowIndex: 5,
483
- originalCellIndex: 6
484
- },
485
- {
486
- rowSpan: 1,
487
- def: {
488
- dataIndexType: 'String',
489
- dataIndex: 'usermeter@@@f_meter_style',
490
- type: 'input'
491
- },
492
- colSpan: 4,
493
- originalRowIndex: 5,
494
- originalCellIndex: 8
495
- }
496
- ],
497
- [
498
- {
499
- rowSpan: 1,
500
- def: {
501
- text: '到达时间',
502
- type: 'column'
503
- },
504
- colSpan: 2,
505
- originalRowIndex: 6,
506
- originalCellIndex: 0
507
- },
508
- {
509
- rowSpan: 1,
510
- def: {
511
- dataIndexType: 'String',
512
- dataIndex: 'serviceall@@@f_date_come',
513
- type: 'input'
514
- },
515
- colSpan: 4,
516
- originalRowIndex: 6,
517
- originalCellIndex: 2
518
- },
519
- {
520
- rowSpan: 1,
521
- def: {
522
- text: '离开时间',
523
- type: 'column'
524
- },
525
- colSpan: 2,
526
- originalRowIndex: 6,
527
- originalCellIndex: 6
528
- },
529
- {
530
- rowSpan: 1,
531
- def: {
532
- dataIndexType: 'String',
533
- dataIndex: 'serviceall@@@f_date_leave',
534
- type: 'input'
535
- },
536
- colSpan: 4,
537
- originalRowIndex: 6,
538
- originalCellIndex: 8
539
- }
540
- ],
541
- [
542
- {
543
- rowSpan: 1,
544
- def: {
545
- text: '备注',
546
- type: 'column'
547
- },
548
- colSpan: 2,
549
- originalRowIndex: 7,
550
- originalCellIndex: 0
551
- },
552
- {
553
- rowSpan: 1,
554
- def: {
555
- dataIndexType: 'String',
556
- dataIndex: 'serviceall@@@f_remarks',
557
- type: 'input'
558
- },
559
- colSpan: 10,
560
- originalRowIndex: 7,
561
- originalCellIndex: 2
562
- }
563
- ]
564
- ],
565
- $configProp: {}
566
- }
567
- }
568
- },
569
- methods: {
570
- testExport () {
571
- exportHTMLNodeToPDF('123', '#test')
572
- }
573
- }
574
- }
575
- </script>
576
- <style scoped>
577
-
578
- </style>
1
+ <template>
2
+ <div id="test">
3
+ <XReport config-name="report_ticket" :local-config="test" :config-data="test.testJsonData" :dont-format="true"/>
4
+ <a-button @click="testExport">导出</a-button>
5
+ </div>
6
+ </template>
7
+
8
+ <script>
9
+ import XReport from '@vue2-client/base-client/components/common/XReport'
10
+ import { exportHTMLNodeToPDF } from '@vue2-client/utils/htmlToPDFApi'
11
+
12
+ export default {
13
+ name: 'Example',
14
+ components: {
15
+ XReport
16
+ },
17
+ mounted () {
18
+ console.log(this.$route)
19
+ },
20
+ data () {
21
+ return {
22
+ test: {
23
+ slotsDeclare: [],
24
+ data: {
25
+ 'serviceall@@@baseuserinfo@@@f_user_name': '',
26
+ images: {},
27
+ 'serviceall@@@f_new_failure': '',
28
+ 'usermeter@@@f_meternumber': '',
29
+ 'usermeter@@@f_meter_style': '',
30
+ 'usermeter@@@f_meter_brand': '',
31
+ 'serviceall@@@f_date_leave': '',
32
+ 'serviceall@@@f_remarks': '',
33
+ 'serviceall@@@baseuserinfo@@@f_userinfo_code': '',
34
+ 'serviceall@@@f_date_come': '',
35
+ 'serviceall@@@baseuserinfo@@@f_address': '',
36
+ f_total_feeORf_total_gas: '',
37
+ 'usermeter@@@f_aroundmeter': ''
38
+ },
39
+ columns: [
40
+ [
41
+ {
42
+ rowSpan: 1,
43
+ colSpan: 2,
44
+ text: '用户名称',
45
+ originalRowIndex: 0,
46
+ type: 'column',
47
+ originalCellIndex: 0
48
+ },
49
+ {
50
+ rowSpan: 1,
51
+ dataIndexType: 'String',
52
+ colSpan: 4,
53
+ dataIndex: 'serviceall@@@baseuserinfo@@@f_user_name',
54
+ originalRowIndex: 0,
55
+ type: 'input',
56
+ originalCellIndex: 2
57
+ },
58
+ {
59
+ rowSpan: 1,
60
+ colSpan: 2,
61
+ text: '用户编号',
62
+ originalRowIndex: 0,
63
+ type: 'column',
64
+ originalCellIndex: 6
65
+ },
66
+ {
67
+ rowSpan: 1,
68
+ dataIndexType: 'String',
69
+ colSpan: 4,
70
+ dataIndex: 'serviceall@@@baseuserinfo@@@f_userinfo_code',
71
+ originalRowIndex: 0,
72
+ type: 'input',
73
+ originalCellIndex: 8
74
+ }
75
+ ],
76
+ [
77
+ {
78
+ rowSpan: 1,
79
+ colSpan: 2,
80
+ text: '详细地址',
81
+ originalRowIndex: 1,
82
+ type: 'column',
83
+ originalCellIndex: 0
84
+ },
85
+ {
86
+ rowSpan: 1,
87
+ dataIndexType: 'String',
88
+ colSpan: 10,
89
+ dataIndex: 'serviceall@@@baseuserinfo@@@f_address',
90
+ originalRowIndex: 1,
91
+ type: 'input',
92
+ originalCellIndex: 2
93
+ }
94
+ ],
95
+ [
96
+ {
97
+ rowSpan: 1,
98
+ colSpan: 2,
99
+ text: '故障明细',
100
+ originalRowIndex: 2,
101
+ type: 'column',
102
+ originalCellIndex: 0
103
+ },
104
+ {
105
+ rowSpan: 1,
106
+ dataIndexType: 'String',
107
+ customFunction: "function (val) {\n let failureall=''\n let failure = JSON@@@parse(val)\n for (let i = 0; i <failure@@@length; i++) {\n if (failure[i]@@@failurecase@@@length>0){\n failureall+=failure[i]@@@f_failure_type+\":\"\n for (let j = 0; j < failure[i]@@@failurecase@@@length; j++) {\n failureall+=failure[i]@@@failurecase[j]\n if (j+1!=failure[i]@@@failurecase@@@length){\n failureall+=\",\"\n }\n }\n\n }else{\n failureall+=failure[i]@@@f_failure_type\n }\n if (i+1!=failure@@@length){\n failureall+=';'\n }\n }\n return failureall\n}",
108
+ colSpan: 10,
109
+ dataIndex: 'serviceall@@@f_new_failure',
110
+ originalRowIndex: 2,
111
+ type: 'input',
112
+ originalCellIndex: 2
113
+ }
114
+ ],
115
+ [
116
+ {
117
+ rowSpan: 1,
118
+ customFunction: "function (val, config) {\n return config.data.usermeter.f_collection_type === '按金额' ? '累购金额' : '累购气量'\n}",
119
+ colSpan: 2,
120
+ text: '累购金额or累购气量',
121
+ originalRowIndex: 3,
122
+ type: 'column',
123
+ originalCellIndex: 0
124
+ },
125
+ {
126
+ rowSpan: 1,
127
+ dataIndexType: 'String',
128
+ dynamicDataIndex: true,
129
+ colSpan: 4,
130
+ dataIndex: 'f_total_feeORf_total_gas',
131
+ customFunctionForDynamicDataIndex: "function (config) {\n if(config.data.usermeter.f_collection_type === '按金额') {\n return 'usermeter@@@f_total_fee'\n }else {\n return 'usermeter@@@f_total_gas'\n }\n}",
132
+ originalRowIndex: 3,
133
+ type: 'input',
134
+ originalCellIndex: 2
135
+ },
136
+ {
137
+ rowSpan: 1,
138
+ colSpan: 2,
139
+ text: '左右表',
140
+ originalRowIndex: 3,
141
+ type: 'column',
142
+ originalCellIndex: 6
143
+ },
144
+ {
145
+ rowSpan: 1,
146
+ dataIndexType: 'String',
147
+ colSpan: 4,
148
+ dataIndex: 'usermeter@@@f_aroundmeter',
149
+ originalRowIndex: 3,
150
+ type: 'input',
151
+ originalCellIndex: 8
152
+ }
153
+ ],
154
+ [
155
+ {
156
+ rowSpan: 1,
157
+ colSpan: 2,
158
+ text: '表号',
159
+ originalRowIndex: 4,
160
+ type: 'column',
161
+ originalCellIndex: 0
162
+ },
163
+ {
164
+ rowSpan: 1,
165
+ dataIndexType: 'String',
166
+ colSpan: 10,
167
+ dataIndex: 'usermeter@@@f_meternumber',
168
+ originalRowIndex: 4,
169
+ type: 'input',
170
+ originalCellIndex: 2
171
+ }
172
+ ],
173
+ [
174
+ {
175
+ rowSpan: 1,
176
+ colSpan: 2,
177
+ text: '表品牌',
178
+ originalRowIndex: 5,
179
+ type: 'column',
180
+ originalCellIndex: 0
181
+ },
182
+ {
183
+ rowSpan: 1,
184
+ dataIndexType: 'String',
185
+ dynamicDataIndex: false,
186
+ colSpan: 4,
187
+ dataIndex: 'usermeter@@@f_meter_brand',
188
+ originalRowIndex: 5,
189
+ type: 'input',
190
+ originalCellIndex: 2
191
+ },
192
+ {
193
+ rowSpan: 1,
194
+ colSpan: 2,
195
+ text: '表型号',
196
+ originalRowIndex: 5,
197
+ type: 'column',
198
+ originalCellIndex: 6
199
+ },
200
+ {
201
+ rowSpan: 1,
202
+ dataIndexType: 'String',
203
+ colSpan: 4,
204
+ dataIndex: 'usermeter@@@f_meter_style',
205
+ originalRowIndex: 5,
206
+ type: 'input',
207
+ originalCellIndex: 8
208
+ }
209
+ ],
210
+ [
211
+ {
212
+ rowSpan: 1,
213
+ colSpan: 2,
214
+ text: '到达时间',
215
+ originalRowIndex: 6,
216
+ type: 'column',
217
+ originalCellIndex: 0
218
+ },
219
+ {
220
+ rowSpan: 1,
221
+ dataIndexType: 'String',
222
+ colSpan: 4,
223
+ dataIndex: 'serviceall@@@f_date_come',
224
+ originalRowIndex: 6,
225
+ type: 'input',
226
+ originalCellIndex: 2
227
+ },
228
+ {
229
+ rowSpan: 1,
230
+ colSpan: 2,
231
+ text: '离开时间',
232
+ originalRowIndex: 6,
233
+ type: 'column',
234
+ originalCellIndex: 6
235
+ },
236
+ {
237
+ rowSpan: 1,
238
+ dataIndexType: 'String',
239
+ colSpan: 4,
240
+ dataIndex: 'serviceall@@@f_date_leave',
241
+ originalRowIndex: 6,
242
+ type: 'input',
243
+ originalCellIndex: 8
244
+ }
245
+ ],
246
+ [
247
+ {
248
+ rowSpan: 1,
249
+ colSpan: 2,
250
+ text: '备注',
251
+ originalRowIndex: 7,
252
+ type: 'column',
253
+ originalCellIndex: 0
254
+ },
255
+ {
256
+ rowSpan: 1,
257
+ dataIndexType: 'String',
258
+ colSpan: 10,
259
+ dataIndex: 'serviceall@@@f_remarks',
260
+ originalRowIndex: 7,
261
+ type: 'input',
262
+ originalCellIndex: 2
263
+ }
264
+ ]
265
+ ],
266
+ title: '客户工单信息',
267
+ slotsDefine: {},
268
+ testJsonData: {
269
+ usermeter: {
270
+ f_collection_type: '按气量',
271
+ f_total_gas: '总气量',
272
+ f_total_fee: '总金额'
273
+ }
274
+ },
275
+ subTitle: [],
276
+ width: 'auto',
277
+ labelStyle: {
278
+ backgroundColor: 'rgb(247,247,247)',
279
+ fontWeight: 'bold'
280
+ },
281
+ style: {},
282
+ designMode: 'VisualTable',
283
+ $globalProp: {
284
+ environment: 'dev',
285
+ module: 'null',
286
+ tenantAlias: 'standard',
287
+ version: '2',
288
+ namespaceName: 'af-apply'
289
+ },
290
+ table: [
291
+ [
292
+ {
293
+ rowSpan: 1,
294
+ def: {
295
+ text: '用户名称',
296
+ type: 'column'
297
+ },
298
+ colSpan: 2,
299
+ originalRowIndex: 0,
300
+ originalCellIndex: 0
301
+ },
302
+ {
303
+ rowSpan: 1,
304
+ def: {
305
+ dataIndexType: 'String',
306
+ dataIndex: 'serviceall@@@baseuserinfo@@@f_user_name',
307
+ type: 'input'
308
+ },
309
+ colSpan: 4,
310
+ originalRowIndex: 0,
311
+ originalCellIndex: 2
312
+ },
313
+ {
314
+ rowSpan: 1,
315
+ def: {
316
+ text: '用户编号',
317
+ type: 'column'
318
+ },
319
+ colSpan: 2,
320
+ originalRowIndex: 0,
321
+ originalCellIndex: 6
322
+ },
323
+ {
324
+ rowSpan: 1,
325
+ def: {
326
+ dataIndexType: 'String',
327
+ dataIndex: 'serviceall@@@baseuserinfo@@@f_userinfo_code',
328
+ type: 'input'
329
+ },
330
+ colSpan: 4,
331
+ originalRowIndex: 0,
332
+ originalCellIndex: 8
333
+ }
334
+ ],
335
+ [
336
+ {
337
+ rowSpan: 1,
338
+ def: {
339
+ text: '详细地址',
340
+ type: 'column'
341
+ },
342
+ colSpan: 2,
343
+ originalRowIndex: 1,
344
+ originalCellIndex: 0
345
+ },
346
+ {
347
+ rowSpan: 1,
348
+ def: {
349
+ dataIndexType: 'String',
350
+ dataIndex: 'serviceall@@@baseuserinfo@@@f_address',
351
+ type: 'input'
352
+ },
353
+ colSpan: 10,
354
+ originalRowIndex: 1,
355
+ originalCellIndex: 2
356
+ }
357
+ ],
358
+ [
359
+ {
360
+ rowSpan: 1,
361
+ def: {
362
+ text: '故障明细',
363
+ type: 'column'
364
+ },
365
+ colSpan: 2,
366
+ originalRowIndex: 2,
367
+ originalCellIndex: 0
368
+ },
369
+ {
370
+ rowSpan: 1,
371
+ def: {
372
+ dataIndexType: 'String',
373
+ customFunction: "function (val) {\n let failureall=''\n let failure = JSON@@@parse(val)\n for (let i = 0; i <failure@@@length; i++) {\n if (failure[i]@@@failurecase@@@length>0){\n failureall+=failure[i]@@@f_failure_type+\":\"\n for (let j = 0; j < failure[i]@@@failurecase@@@length; j++) {\n failureall+=failure[i]@@@failurecase[j]\n if (j+1!=failure[i]@@@failurecase@@@length){\n failureall+=\",\"\n }\n }\n\n }else{\n failureall+=failure[i]@@@f_failure_type\n }\n if (i+1!=failure@@@length){\n failureall+=';'\n }\n }\n return failureall\n}",
374
+ dataIndex: 'serviceall@@@f_new_failure',
375
+ type: 'input'
376
+ },
377
+ colSpan: 10,
378
+ originalRowIndex: 2,
379
+ originalCellIndex: 2
380
+ }
381
+ ],
382
+ [
383
+ {
384
+ rowSpan: 1,
385
+ def: {
386
+ customFunction: "function (val, config) {\n return config.data.usermeter.f_collection_type === '按金额' ? '累购金额' : '累购气量'\n}",
387
+ text: '累购金额or累购气量',
388
+ type: 'column'
389
+ },
390
+ colSpan: 2,
391
+ originalRowIndex: 3,
392
+ originalCellIndex: 0
393
+ },
394
+ {
395
+ rowSpan: 1,
396
+ def: {
397
+ dataIndexType: 'String',
398
+ dynamicDataIndex: true,
399
+ dataIndex: 'f_total_feeORf_total_gas',
400
+ customFunctionForDynamicDataIndex: "function (config) {\n if(config.data.usermeter.f_collection_type === '按金额') {\n return 'usermeter@@@f_total_fee'\n }else {\n return 'usermeter@@@f_total_gas'\n }\n}",
401
+ type: 'input'
402
+ },
403
+ colSpan: 4,
404
+ originalRowIndex: 3,
405
+ originalCellIndex: 2
406
+ },
407
+ {
408
+ rowSpan: 1,
409
+ def: {
410
+ text: '左右表',
411
+ type: 'column'
412
+ },
413
+ colSpan: 2,
414
+ originalRowIndex: 3,
415
+ originalCellIndex: 6
416
+ },
417
+ {
418
+ rowSpan: 1,
419
+ def: {
420
+ dataIndexType: 'String',
421
+ dataIndex: 'usermeter@@@f_aroundmeter',
422
+ type: 'input'
423
+ },
424
+ colSpan: 4,
425
+ originalRowIndex: 3,
426
+ originalCellIndex: 8
427
+ }
428
+ ],
429
+ [
430
+ {
431
+ rowSpan: 1,
432
+ def: {
433
+ text: '表号',
434
+ type: 'column'
435
+ },
436
+ colSpan: 2,
437
+ originalRowIndex: 4,
438
+ originalCellIndex: 0
439
+ },
440
+ {
441
+ rowSpan: 1,
442
+ def: {
443
+ dataIndexType: 'String',
444
+ dataIndex: 'usermeter@@@f_meternumber',
445
+ type: 'input'
446
+ },
447
+ colSpan: 10,
448
+ originalRowIndex: 4,
449
+ originalCellIndex: 2
450
+ }
451
+ ],
452
+ [
453
+ {
454
+ rowSpan: 1,
455
+ def: {
456
+ text: '表品牌',
457
+ type: 'column'
458
+ },
459
+ colSpan: 2,
460
+ originalRowIndex: 5,
461
+ originalCellIndex: 0
462
+ },
463
+ {
464
+ rowSpan: 1,
465
+ def: {
466
+ dataIndexType: 'String',
467
+ dynamicDataIndex: false,
468
+ dataIndex: 'usermeter@@@f_meter_brand',
469
+ type: 'input'
470
+ },
471
+ colSpan: 4,
472
+ originalRowIndex: 5,
473
+ originalCellIndex: 2
474
+ },
475
+ {
476
+ rowSpan: 1,
477
+ def: {
478
+ text: '表型号',
479
+ type: 'column'
480
+ },
481
+ colSpan: 2,
482
+ originalRowIndex: 5,
483
+ originalCellIndex: 6
484
+ },
485
+ {
486
+ rowSpan: 1,
487
+ def: {
488
+ dataIndexType: 'String',
489
+ dataIndex: 'usermeter@@@f_meter_style',
490
+ type: 'input'
491
+ },
492
+ colSpan: 4,
493
+ originalRowIndex: 5,
494
+ originalCellIndex: 8
495
+ }
496
+ ],
497
+ [
498
+ {
499
+ rowSpan: 1,
500
+ def: {
501
+ text: '到达时间',
502
+ type: 'column'
503
+ },
504
+ colSpan: 2,
505
+ originalRowIndex: 6,
506
+ originalCellIndex: 0
507
+ },
508
+ {
509
+ rowSpan: 1,
510
+ def: {
511
+ dataIndexType: 'String',
512
+ dataIndex: 'serviceall@@@f_date_come',
513
+ type: 'input'
514
+ },
515
+ colSpan: 4,
516
+ originalRowIndex: 6,
517
+ originalCellIndex: 2
518
+ },
519
+ {
520
+ rowSpan: 1,
521
+ def: {
522
+ text: '离开时间',
523
+ type: 'column'
524
+ },
525
+ colSpan: 2,
526
+ originalRowIndex: 6,
527
+ originalCellIndex: 6
528
+ },
529
+ {
530
+ rowSpan: 1,
531
+ def: {
532
+ dataIndexType: 'String',
533
+ dataIndex: 'serviceall@@@f_date_leave',
534
+ type: 'input'
535
+ },
536
+ colSpan: 4,
537
+ originalRowIndex: 6,
538
+ originalCellIndex: 8
539
+ }
540
+ ],
541
+ [
542
+ {
543
+ rowSpan: 1,
544
+ def: {
545
+ text: '备注',
546
+ type: 'column'
547
+ },
548
+ colSpan: 2,
549
+ originalRowIndex: 7,
550
+ originalCellIndex: 0
551
+ },
552
+ {
553
+ rowSpan: 1,
554
+ def: {
555
+ dataIndexType: 'String',
556
+ dataIndex: 'serviceall@@@f_remarks',
557
+ type: 'input'
558
+ },
559
+ colSpan: 10,
560
+ originalRowIndex: 7,
561
+ originalCellIndex: 2
562
+ }
563
+ ]
564
+ ],
565
+ $configProp: {}
566
+ }
567
+ }
568
+ },
569
+ methods: {
570
+ testExport () {
571
+ exportHTMLNodeToPDF('123', '#test')
572
+ }
573
+ }
574
+ }
575
+ </script>
576
+ <style scoped>
577
+
578
+ </style>