vue2-client 1.8.209-p → 1.8.211
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
|
@@ -446,23 +446,15 @@ export default {
|
|
|
446
446
|
/**
|
|
447
447
|
* 更多条件是否展示
|
|
448
448
|
*/
|
|
449
|
-
toggleAdvanced (
|
|
450
|
-
|
|
451
|
-
if (visible && window.__MICRO_APP_ENVIRONMENT__) {
|
|
452
|
-
height = 'calc(100vh - 28rem)'
|
|
453
|
-
}
|
|
454
|
-
this.$refs.xTable.setScrollYHeight(height)
|
|
449
|
+
toggleAdvanced () {
|
|
450
|
+
this.$refs.xTable.setScrollYHeight({})
|
|
455
451
|
},
|
|
456
452
|
/**
|
|
457
453
|
* 查询表单部分显示/隐藏切换
|
|
458
454
|
*/
|
|
459
455
|
toggleIsFormShow () {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
if (!visible && window.__MICRO_APP_ENVIRONMENT__) {
|
|
463
|
-
height = 'calc(100vh - 22rem)'
|
|
464
|
-
}
|
|
465
|
-
this.$refs.xTable.setScrollYHeight(height)
|
|
456
|
+
this.$refs.xForm.toggleVisible()
|
|
457
|
+
this.$refs.xTable.setScrollYHeight({})
|
|
466
458
|
},
|
|
467
459
|
/**
|
|
468
460
|
* 选择列事件
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
</a-row>
|
|
56
56
|
<s-table
|
|
57
57
|
ref="table"
|
|
58
|
+
id="XTable"
|
|
58
59
|
:alert="true"
|
|
59
60
|
:columns="tableColumns"
|
|
60
61
|
:data="loadData"
|
|
@@ -310,7 +311,7 @@ export default {
|
|
|
310
311
|
}
|
|
311
312
|
}
|
|
312
313
|
// 设置表格高度为固定值
|
|
313
|
-
this.setScrollYHeight('default')
|
|
314
|
+
this.setScrollYHeight({ type: 'default' })
|
|
314
315
|
// 横向滚动长度大于所有宽度,才能实现固定表头
|
|
315
316
|
this.scrollXWidth = totalWidth
|
|
316
317
|
// 加载筛选列完成
|
|
@@ -379,14 +380,37 @@ export default {
|
|
|
379
380
|
this.$refs.table.refresh(bool)
|
|
380
381
|
})
|
|
381
382
|
},
|
|
382
|
-
setScrollYHeight (
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
383
|
+
setScrollYHeight ({ extraHeight = 80, id = 'XTable', type = '' }) {
|
|
384
|
+
this.$nextTick(() => {
|
|
385
|
+
if (typeof extraHeight == 'undefined') {
|
|
386
|
+
// 默认底部分页32 + 边距48
|
|
387
|
+
extraHeight = 48 + 32
|
|
387
388
|
}
|
|
388
|
-
|
|
389
|
-
|
|
389
|
+
let tHeader = null
|
|
390
|
+
console.log(document.getElementById(id))
|
|
391
|
+
if (id) {
|
|
392
|
+
tHeader = document.getElementById(id) ? document.getElementById(id).getElementsByClassName('ant-table-thead')[0] : null
|
|
393
|
+
} else {
|
|
394
|
+
tHeader = document.getElementsByClassName('ant-table-thead')[0]
|
|
395
|
+
}
|
|
396
|
+
// 表格内容距离顶部的距离
|
|
397
|
+
let tHeaderBottom = 0
|
|
398
|
+
if (tHeader) {
|
|
399
|
+
console.log(tHeader.getBoundingClientRect())
|
|
400
|
+
tHeaderBottom = tHeader.getBoundingClientRect().bottom
|
|
401
|
+
}
|
|
402
|
+
if (tHeaderBottom === 0) {
|
|
403
|
+
this.scrollYHeight = 'calc(100vh - 31rem)'
|
|
404
|
+
if (window.__MICRO_APP_ENVIRONMENT__) {
|
|
405
|
+
this.scrollYHeight = 'calc(100vh - 28.5rem)'
|
|
406
|
+
}
|
|
407
|
+
return
|
|
408
|
+
}
|
|
409
|
+
// 窗体高度-表格内容顶部的高度-表格内容底部的高度
|
|
410
|
+
// this.scrollYHeight = document.body.clientHeight - tHeaderBottom - extraHeight
|
|
411
|
+
console.log(`calc(100vh - ${tHeaderBottom + extraHeight}px)`)
|
|
412
|
+
this.scrollYHeight = `calc(100vh - ${tHeaderBottom + extraHeight}px)`
|
|
413
|
+
})
|
|
390
414
|
},
|
|
391
415
|
/**
|
|
392
416
|
* 格式化日期
|
|
@@ -1,74 +1,578 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
:fixedAddForm="fixedAddForm"
|
|
7
|
-
@action="action"
|
|
8
|
-
serviceName="af-apply"
|
|
9
|
-
ref="xFormTable">
|
|
10
|
-
</x-form-table>
|
|
11
|
-
<a-drawer
|
|
12
|
-
title="详情信息"
|
|
13
|
-
placement="right"
|
|
14
|
-
:destroy-on-close="true"
|
|
15
|
-
:width="isMobile ? screenWidth : screenWidth * 0.85"
|
|
16
|
-
:closable="false"
|
|
17
|
-
:visible="detailVisible"
|
|
18
|
-
@close="onClose">
|
|
19
|
-
<span>
|
|
20
|
-
详情表单内容
|
|
21
|
-
</span>
|
|
22
|
-
</a-drawer>
|
|
23
|
-
</a-card>
|
|
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>
|
|
24
6
|
</template>
|
|
25
7
|
|
|
26
8
|
<script>
|
|
27
|
-
import
|
|
28
|
-
import {
|
|
9
|
+
import XReport from '@vue2-client/base-client/components/common/XReport'
|
|
10
|
+
import { exportHTMLNodeToPDF } from '@vue2-client/utils/htmlToPDFApi'
|
|
29
11
|
|
|
30
12
|
export default {
|
|
31
|
-
name: '
|
|
13
|
+
name: 'Example',
|
|
32
14
|
components: {
|
|
33
|
-
|
|
15
|
+
XReport
|
|
34
16
|
},
|
|
17
|
+
mounted () {
|
|
18
|
+
console.log(this.$route)
|
|
19
|
+
},
|
|
35
20
|
data () {
|
|
36
21
|
return {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
+
}
|
|
47
567
|
}
|
|
48
568
|
},
|
|
49
|
-
created () {
|
|
50
|
-
},
|
|
51
|
-
mounted () {
|
|
52
|
-
console.log('==当前登录人', this.currUser)
|
|
53
|
-
},
|
|
54
569
|
methods: {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
console.log('触发了详情操作', record, id, actionType)
|
|
58
|
-
},
|
|
59
|
-
onClose () {
|
|
60
|
-
this.detailVisible = false
|
|
61
|
-
// 关闭详情之后重新查询表单
|
|
62
|
-
this.$refs.xFormTable.refreshTable(true)
|
|
570
|
+
testExport () {
|
|
571
|
+
exportHTMLNodeToPDF('123', '#test')
|
|
63
572
|
}
|
|
64
|
-
}
|
|
65
|
-
computed: {
|
|
66
|
-
...mapState('account', { currUser: 'user' }),
|
|
67
|
-
...mapState('setting', { isMobile: 'isMobile' })
|
|
68
|
-
},
|
|
573
|
+
}
|
|
69
574
|
}
|
|
70
575
|
</script>
|
|
71
|
-
|
|
72
576
|
<style scoped>
|
|
73
577
|
|
|
74
578
|
</style>
|