sale-client 4.3.35 → 4.3.37
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
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
<template >
|
|
2
|
+
<div class="flex" style="justify-content: space-between;">
|
|
3
|
+
<div @keyup.enter="search" style="">
|
|
4
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
5
|
+
<criteria @condition-changed='$parent.search' partial='criteria' v-ref:criteria>
|
|
6
|
+
<div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
|
|
7
|
+
<div class="row">
|
|
8
|
+
<div class="col-sm-2 form-group">
|
|
9
|
+
<label class="font_normal_body" title="归属日期" >开始时间</label>
|
|
10
|
+
<datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_start_date"
|
|
11
|
+
class="datepicker"
|
|
12
|
+
condition="f_hand_date >= '{} 00:00:00' "
|
|
13
|
+
placeholder="起始时间"
|
|
14
|
+
style="width:60%"
|
|
15
|
+
v-model="model.f_start_date"
|
|
16
|
+
></datepicker>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="col-sm-2 form-group" >
|
|
19
|
+
<label class="font_normal_body" title="归属日期">结束时间</label>
|
|
20
|
+
<datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_end_date"
|
|
21
|
+
class="datepicker"
|
|
22
|
+
condition="f_hand_date <= '{} 23:59:59' "
|
|
23
|
+
placeholder="结束时间"
|
|
24
|
+
style="width:60%"
|
|
25
|
+
v-model="model.f_end_date"
|
|
26
|
+
></datepicker>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="col-sm-2 form-group">
|
|
29
|
+
<label class="font_normal_body" title="抄表状态">抄表状态</label>
|
|
30
|
+
<v-select :value.sync="model.f_meter_state" v-model='model.f_meter_state'
|
|
31
|
+
style="width:60%"
|
|
32
|
+
:options='$parent.$parent.meterstates' placeholder='抄表状态'
|
|
33
|
+
close-on-select
|
|
34
|
+
condition="f_meter_state = '{}'"></v-select>
|
|
35
|
+
</div>
|
|
36
|
+
<div class="col-sm-2 form-group">
|
|
37
|
+
<label class="font_normal_body" title="表单状态">表单状态</label>
|
|
38
|
+
<v-select :value.sync="model.f_hand_state" v-model='model.f_hand_state'
|
|
39
|
+
style="width:60%"
|
|
40
|
+
:options='$parent.$parent.handstates' placeholder='表单状态'
|
|
41
|
+
close-on-select
|
|
42
|
+
condition="f_hand_state = '{}'"></v-select>
|
|
43
|
+
</div>
|
|
44
|
+
<div class="col-sm-2 form-group">
|
|
45
|
+
<label class="font_normal_body">气表类型</label>
|
|
46
|
+
<v-select :value.sync="model.f_meter_classify" v-model='model.f_meter_classify'
|
|
47
|
+
style="width:60%"
|
|
48
|
+
:options='$parent.$parent.meterType' placeholder='气表类型'
|
|
49
|
+
close-on-select
|
|
50
|
+
condition="f_meter_classify = '{}'"></v-select>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<div style="float: right">
|
|
54
|
+
<button @click="search()" class="button_search" style="margin-right: 10px" v-el:cba>查询</button>
|
|
55
|
+
<export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
|
|
56
|
+
:field="$parent.$parent.fields" :header="$parent.$parent.other"
|
|
57
|
+
sqlurl="api/af-revenue/logic/saleExport" :sql-name="$parent.$parent.sqlname" template-name='抄表查询导出'
|
|
58
|
+
:choose-col="true" ref="salehandplanExport"></export-excel>
|
|
59
|
+
|
|
60
|
+
<print-data :defaultfield="$parent.$parent.defaultfield" :field="$parent.$parent.fields" :is-selected="true" :model="$parent.$parent.printModel"
|
|
61
|
+
@print-data="$parent.$parent.print()"
|
|
62
|
+
:starthead="$parent.$parent.starthead"
|
|
63
|
+
titletable="预存气费打印明细"
|
|
64
|
+
></print-data>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
</div>
|
|
70
|
+
|
|
71
|
+
</criteria>
|
|
72
|
+
<data-grid :model="model" class="list_area table_sy" class="list_area table_sy" partial='list' v-ref:grid>
|
|
73
|
+
<template partial='head'>
|
|
74
|
+
<tr>
|
|
75
|
+
|
|
76
|
+
<th v-show="false"><nobr>抄表月份</nobr></th>
|
|
77
|
+
<th v-show="false"><nobr>用气周期</nobr></th>
|
|
78
|
+
<th><nobr>抄表日期</nobr></th>
|
|
79
|
+
<th><nobr>录入日期</nobr></th>
|
|
80
|
+
<th><nobr>上期底数</nobr></th>
|
|
81
|
+
<th><nobr>本期底数</nobr></th>
|
|
82
|
+
<th><nobr>{{$parent.$parent.$parent.row.f_meter_type.includes('物联网表') ? $parent.$parent.$parent.row.f_collection_type == '按气量' ? '上期余量' :'上期余额' : '上期余额' }}</nobr></th>
|
|
83
|
+
<th><nobr>用气量</nobr></th>
|
|
84
|
+
<th><nobr>用气金额 </nobr></th>
|
|
85
|
+
<th><nobr>{{$parent.$parent.$parent.row.f_meter_type.includes('物联网表') ? $parent.$parent.$parent.row.f_collection_type == '按气量' ? '本期余量' :'本期余额' : '本期余额' }}</nobr></th>
|
|
86
|
+
<th><nobr>气表类型</nobr></th>
|
|
87
|
+
<th><nobr>抄表状态 </nobr></th>
|
|
88
|
+
<th><nobr>抄表结果状态 </nobr></th>
|
|
89
|
+
<th><nobr>表单状态 </nobr></th>
|
|
90
|
+
<th><nobr>抄表员</nobr></th>
|
|
91
|
+
<th><nobr>录入员</nobr></th>
|
|
92
|
+
</tr>
|
|
93
|
+
</template>
|
|
94
|
+
<template partial='body' partial='list' v-ref:grid>
|
|
95
|
+
<tr>
|
|
96
|
+
<td style="text-align:center" v-show="false">{{row.f_hand_date.substring(0,7)}}</td>
|
|
97
|
+
<th v-show="false"><nobr >{{row.datas}}</nobr></th>
|
|
98
|
+
<td style="text-align:center">{{row.f_hand_date}}</td>
|
|
99
|
+
<td style="text-align:center">{{row.f_input_date}}</td>
|
|
100
|
+
<td style="text-align:center">{{row.f_last_tablebase}}</td>
|
|
101
|
+
<td style="text-align:center">{{row.f_tablebase}}</td>
|
|
102
|
+
<td style="text-align:center">{{row.f_balance}}</td>
|
|
103
|
+
<td style="text-align:center">{{row.f_oughtamount}}</td>
|
|
104
|
+
<td style="text-align:center">{{row.f_oughtfee}}</td>
|
|
105
|
+
<td style="text-align:center">{{row.f_curbalance}}</td>
|
|
106
|
+
<td style="text-align:center">{{row.f_meter_classify}}</td>
|
|
107
|
+
<td style="text-align:center">{{row.f_meter_state}}</td>
|
|
108
|
+
<td style="text-align:center">{{row.f_result_state?row.f_result_state:''}}</td>
|
|
109
|
+
<td style="text-align:center">{{row.f_hand_state}}</td>
|
|
110
|
+
<td style="text-align:center">{{row.f_inputtor}}</td>
|
|
111
|
+
<td style="text-align:center">{{row.f_input_person}}</td>
|
|
112
|
+
</tr>
|
|
113
|
+
</template>
|
|
114
|
+
<template partial='foot'></template>
|
|
115
|
+
</data-grid>
|
|
116
|
+
</criteria-paged>
|
|
117
|
+
|
|
118
|
+
</div>
|
|
119
|
+
<table class="table-hover">
|
|
120
|
+
<tr class="table-bordered" style="position: relative">
|
|
121
|
+
<td
|
|
122
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
123
|
+
汇总信息
|
|
124
|
+
</td>
|
|
125
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
|
|
126
|
+
用气量合计: {{model.sums.f_oughtamount}}
|
|
127
|
+
</td>
|
|
128
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
|
|
129
|
+
用气金额合计: {{model.sums.f_oughtfee}}
|
|
130
|
+
</td>
|
|
131
|
+
</tr>
|
|
132
|
+
</table>
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
</template>
|
|
136
|
+
|
|
137
|
+
<script>
|
|
138
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
139
|
+
|
|
140
|
+
export default {
|
|
141
|
+
title: '抄表',
|
|
142
|
+
data () {
|
|
143
|
+
return {
|
|
144
|
+
condition: '1=1',
|
|
145
|
+
model: new PagedList('api/af-revenue/sql/sale_HistoryHandplanQuery', 20, {f_user_id: this.row.f_user_id}, {
|
|
146
|
+
f_oughtfee: 0,
|
|
147
|
+
f_oughtamount: 0
|
|
148
|
+
}),
|
|
149
|
+
show: false,
|
|
150
|
+
f_calculation: '',
|
|
151
|
+
lists: [],
|
|
152
|
+
meterstates: this.$appdata.getParam('抄表状态') ? [{
|
|
153
|
+
label: '全部',
|
|
154
|
+
value: ''
|
|
155
|
+
}, ...this.$appdata.getParam('抄表状态')] : [],
|
|
156
|
+
handstates: this.$appdata.getParam('表单状态') ? [{
|
|
157
|
+
label: '全部',
|
|
158
|
+
value: ''
|
|
159
|
+
}, ...this.$appdata.getParam('表单状态')] : [],
|
|
160
|
+
meterType: this.$appdata.getParam('气表类型'),
|
|
161
|
+
// 控制单选
|
|
162
|
+
radio: [],
|
|
163
|
+
// 选中的页
|
|
164
|
+
all: [],
|
|
165
|
+
// row数据
|
|
166
|
+
rowsdata: [],
|
|
167
|
+
sqlname: 'sale_HistoryHandplanQuery',
|
|
168
|
+
searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userinfo_id',
|
|
169
|
+
starthead: '',
|
|
170
|
+
fields: {
|
|
171
|
+
'f_userinfo_code': '用户编号',
|
|
172
|
+
'f_user_name': '姓名',
|
|
173
|
+
'f_last_tablebase': '上期底数',
|
|
174
|
+
'f_tablebase': '本期底数',
|
|
175
|
+
'f_balance': '上期余额',
|
|
176
|
+
'f_curbalance': '本期余额',
|
|
177
|
+
'f_oughtamount': '用气量',
|
|
178
|
+
'f_oughtfee': '用气金额',
|
|
179
|
+
'f_inputtor': '抄表员',
|
|
180
|
+
'f_input_date': '抄表日期',
|
|
181
|
+
'f_hand_date': '录入时间'},
|
|
182
|
+
defaultfield: [
|
|
183
|
+
'f_last_tablebase', 'f_last_tablebase', 'f_oughtamount', 'f_oughtfee'
|
|
184
|
+
],
|
|
185
|
+
fooinfo: [
|
|
186
|
+
'单位',
|
|
187
|
+
'收款人'
|
|
188
|
+
],
|
|
189
|
+
printModel: {
|
|
190
|
+
rows: []
|
|
191
|
+
},
|
|
192
|
+
other: [],
|
|
193
|
+
footer: [],
|
|
194
|
+
// 合计数据
|
|
195
|
+
sumsmodel: {}
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
props: ['row'],
|
|
199
|
+
ready () {
|
|
200
|
+
this.$refs.paged.$refs.criteria.model.f_hand_state = ['有效']
|
|
201
|
+
this.f_calculation = this.row.f_calculation
|
|
202
|
+
this.$refs.paged.$refs.criteria.search()
|
|
203
|
+
this.sumsmodel= this.$refs.paged.$refs.grid.model.sums
|
|
204
|
+
for (let i in this.all) {
|
|
205
|
+
this.money += i.f_oughtamount
|
|
206
|
+
this.gas += i.f_oughtfee
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
methods: {
|
|
210
|
+
getotherfooter () {
|
|
211
|
+
// this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
212
|
+
// this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
213
|
+
this.other = []
|
|
214
|
+
this.footer = []
|
|
215
|
+
// let exportdata = this.getCondition;
|
|
216
|
+
let otherInData = []
|
|
217
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
|
|
218
|
+
let footerData = [], exportfield = this.fields
|
|
219
|
+
footerData.push('合计')
|
|
220
|
+
let self = this
|
|
221
|
+
for (var field in self.sumsmodel) {
|
|
222
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
|
|
223
|
+
}
|
|
224
|
+
this.footer.push(footerData)
|
|
225
|
+
this.other.push(otherInData)
|
|
226
|
+
},
|
|
227
|
+
// search() {
|
|
228
|
+
// this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}'`
|
|
229
|
+
// this.model.search(this.condition, this.model)
|
|
230
|
+
// },
|
|
231
|
+
async search () {
|
|
232
|
+
this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}'`
|
|
233
|
+
this.model.search(this.condition, this.model)
|
|
234
|
+
let http = new HttpResetClass()
|
|
235
|
+
let res = await http.load('POST', 'api/af-revenue/sql/sale_HistoryHandplanQuery', {
|
|
236
|
+
data: {
|
|
237
|
+
f_user_id: this.row.f_user_id,
|
|
238
|
+
condition: this.condition
|
|
239
|
+
}
|
|
240
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
241
|
+
this.printModel.rows = res.data
|
|
242
|
+
|
|
243
|
+
this.starthead = '用户编号:' + this.row.f_userinfo_code + '  用户姓名:' + this.row.f_user_name + '  用户地址:' + this.row.f_address
|
|
244
|
+
},
|
|
245
|
+
// 多选框初始化
|
|
246
|
+
selectInit () {
|
|
247
|
+
this.rowsdata = []
|
|
248
|
+
this.all = []
|
|
249
|
+
this.radio = []
|
|
250
|
+
},
|
|
251
|
+
print () {
|
|
252
|
+
console.log('====================================')
|
|
253
|
+
console.log('print')
|
|
254
|
+
console.log(this.printModel)
|
|
255
|
+
this.selectInit()
|
|
256
|
+
},
|
|
257
|
+
select () {
|
|
258
|
+
let index = this.model.pageIndex - 1
|
|
259
|
+
if (!this.radio[index]) {
|
|
260
|
+
this.radio.$set(index, [])
|
|
261
|
+
}
|
|
262
|
+
if (this.all[index]) {
|
|
263
|
+
// 数据
|
|
264
|
+
this.rowsdata[index] = Object.assign([], this.model.rows)
|
|
265
|
+
// 勾选
|
|
266
|
+
for (var i = 0; i < this.model.rows.length; i++) {
|
|
267
|
+
this.radio[index].$set(i, true)
|
|
268
|
+
}
|
|
269
|
+
} else {
|
|
270
|
+
// 数据
|
|
271
|
+
this.rowsdata[index] = []
|
|
272
|
+
// 不勾选
|
|
273
|
+
for (var i = 0; i < this.model.rows.length; i++) {
|
|
274
|
+
this.radio[index].$set(i, false)
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
let z = 0
|
|
278
|
+
for (let i = 0; i < this.all.length; i++) {
|
|
279
|
+
for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
|
|
280
|
+
this.printModel.rows[z++] = this.rowsdata[i][j]
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
selectOne (event, row, i) {
|
|
285
|
+
let index = this.model.pageIndex - 1
|
|
286
|
+
if (!this.rowsdata[index]) {
|
|
287
|
+
this.rowsdata[index] = []
|
|
288
|
+
}
|
|
289
|
+
if (!this.radio[index]) {
|
|
290
|
+
this.radio.$set(index, [])
|
|
291
|
+
}
|
|
292
|
+
if (event.target.checked) {
|
|
293
|
+
// 数据
|
|
294
|
+
this.rowsdata[index][i] = row
|
|
295
|
+
// 勾选
|
|
296
|
+
this.radio[index].$set(i, true)
|
|
297
|
+
// 判断是否全部选中
|
|
298
|
+
var allState = true
|
|
299
|
+
if (this.model.rows.length != this.radio[index].length) {
|
|
300
|
+
allState = false
|
|
301
|
+
}
|
|
302
|
+
for (var state of this.radio[index]) {
|
|
303
|
+
if (!state) {
|
|
304
|
+
allState = false
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
if (allState) {
|
|
308
|
+
this.all.$set(index, true)
|
|
309
|
+
} else {
|
|
310
|
+
this.all.$set(index, false)
|
|
311
|
+
}
|
|
312
|
+
} else {
|
|
313
|
+
// 数据
|
|
314
|
+
this.rowsdata[index][i] = []
|
|
315
|
+
// 不勾选
|
|
316
|
+
this.radio[index].$set(i, false)
|
|
317
|
+
// 任意取消一个则全选状态设为false
|
|
318
|
+
this.all.$set(index, false)
|
|
319
|
+
}
|
|
320
|
+
let z = 0
|
|
321
|
+
this.printModel.rows = []
|
|
322
|
+
for (let i = 0; i < this.all.length; i++) {
|
|
323
|
+
for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
|
|
324
|
+
if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
|
|
325
|
+
this.printModel.rows[z++] = this.rowsdata[i][j]
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
computed: {
|
|
332
|
+
whetherpaies () {
|
|
333
|
+
return [
|
|
334
|
+
{label: '全部', value: ''},
|
|
335
|
+
{label: '已缴费', value: '是'},
|
|
336
|
+
{label: '未缴费', value: '否'}
|
|
337
|
+
]
|
|
338
|
+
},
|
|
339
|
+
ischecked () {
|
|
340
|
+
return function (index, i) {
|
|
341
|
+
if (!this.radio[index]) {
|
|
342
|
+
return false
|
|
343
|
+
}
|
|
344
|
+
return this.radio[index][i]
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
getCondition () {
|
|
348
|
+
return {
|
|
349
|
+
condition: this.condition
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
watch: {
|
|
354
|
+
sumsmodel: {
|
|
355
|
+
handler: function (val) {
|
|
356
|
+
this.getotherfooter()
|
|
357
|
+
},
|
|
358
|
+
deep: true
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
</script>
|
|
363
|
+
|
|
@@ -0,0 +1,548 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="binary flex" >
|
|
3
|
+
<div class="row binary-left flex" style="width:99%;height:98%;margin-bottom:0px">
|
|
4
|
+
<div class="auto">
|
|
5
|
+
<user-base-info-new :row="row" :buttonshow="buttonshow"
|
|
6
|
+
@refresh="search"
|
|
7
|
+
@cancel-main="cancel"
|
|
8
|
+
@cancel-re="cancelRe"
|
|
9
|
+
@search-main="search"></user-base-info-new></div>
|
|
10
|
+
<saletabbut v-if="row" v-ref:list style="height:72%;margin-top: 1%;overflow-y: scroll">
|
|
11
|
+
<saletab v-for="tab in tabConfigs" :header="tab.header" :key="$index">
|
|
12
|
+
<component
|
|
13
|
+
:is="tab.component"
|
|
14
|
+
:row="row"
|
|
15
|
+
v-if="!tab.needShowCheck || show == tab.header"
|
|
16
|
+
@deal-msg="dealMsg">
|
|
17
|
+
</component>
|
|
18
|
+
</saletab>
|
|
19
|
+
<!-- <saletab header="装表记录" v-if="permission('装表记录')">-->
|
|
20
|
+
<!-- <metering-records :row="row" @deal-msg="dealMsg"></metering-records>-->
|
|
21
|
+
<!-- </saletab>-->
|
|
22
|
+
<!-- <saletab header="报装流转记录" v-if="permission('报装流转记录查看')">-->
|
|
23
|
+
<!-- <supervisory-control :row="row" ></supervisory-control>-->
|
|
24
|
+
<!-- </saletab>-->
|
|
25
|
+
<!-- <saletab header="报装收费记录" v-if="permission('报装收费记录查看')">-->
|
|
26
|
+
<!-- <apply-charge-search :row="row" ></apply-charge-search>-->
|
|
27
|
+
<!-- </saletab>-->
|
|
28
|
+
</saletabbut>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<script>
|
|
34
|
+
import {HttpResetClass} from 'vue-client'
|
|
35
|
+
// 导入IC卡相关查询界面
|
|
36
|
+
import ChangeMeterQueryUser from '../../components/common/userinfo_detail/ic_detail/ChangeMeterQueryUser'
|
|
37
|
+
import ChargeQueryUser from '../../components/common/userinfo_detail/ic_detail/ChargeQueryUser'
|
|
38
|
+
import ChargeRecordQueryUser from '../../components/common/userinfo_detail/ic_detail/ChargeRecordQuery'
|
|
39
|
+
import FillCardQueryUser from '../../components/common/userinfo_detail/ic_detail/FillCardQueryUser'
|
|
40
|
+
import HandQueryUser from '../../components/common/userinfo_detail/ic_detail/HandQueryUser'
|
|
41
|
+
import OtherChargeQueryUser from '../../components/common/userinfo_detail/ic_detail/OtherChargeQueryUser'
|
|
42
|
+
import RecordQueryUser from '../../components/common/userinfo_detail/ic_detail/RecordQueryUser'
|
|
43
|
+
import TransferQueryUser from '../../components/common/userinfo_detail/ic_detail/TransferQueryUser'
|
|
44
|
+
import CardHandRecord from '../../components/common/userinfo_detail/ic_detail/CardHandRecord'
|
|
45
|
+
import AutomaticPurse from '../../components/common/userinfo_detail/ic_detail/AutomaticPurse'
|
|
46
|
+
import Repurchase from '../../components/common/userinfo_detail/ic_detail/Repurchase'
|
|
47
|
+
import MachineRecordQuery from '../../components/common/userinfo_detail/ic_detail/MachineRecordQuery'
|
|
48
|
+
import WebAutomaticPurse from '../../components/common/userinfo_detail/ic_detail/WebAutomaticPurse'
|
|
49
|
+
import WebChargeQueryUser from '../../components/common/userinfo_detail/ic_detail/WebChargeQueryUser'
|
|
50
|
+
import WebHandQueryUser from '../../components/common/userinfo_detail/ic_detail/WebHandQueryUser'
|
|
51
|
+
import UserDeviceQuery from '../../components/common/userinfo_detail/ic_detail/UserDeviceQuery'
|
|
52
|
+
import contractSigningList from '../../components/common/userinfo_detail/ic_detail/contractSigningList'
|
|
53
|
+
import UserKeyRecord from '../../components/common/userinfo_detail/ic_detail/UserKeyRecord'
|
|
54
|
+
import RepairList from '../../components/common/userinfo_detail/ic_detail/RepairList'
|
|
55
|
+
import SecurityCheckInfo from '../../components/common/userinfo_detail/ic_detail/SecuritycheckInfo'
|
|
56
|
+
import HistoryHandQueryUser from './HistoryHandQueryUser'
|
|
57
|
+
// import MeteringRecords from '../../components/common/userinfo_detail/ic_detail/MeteringRecords'
|
|
58
|
+
// import SupervisoryControl from './apply_detail/Supervisory/SupervisoryControl'
|
|
59
|
+
// import ApplyChargeSearch from './apply_detail/applyCharge/ApplyChargeSearch'
|
|
60
|
+
// 导入物联网相关查询
|
|
61
|
+
import QueryInstruct from '../../components/common/userinfo_detail/iot_detail/QueryInstruct'
|
|
62
|
+
import QueryHistoryInstruct from '../../components/common/userinfo_detail/iot_detail/QueryHistoryInstruct'
|
|
63
|
+
import WatchCollection from '../../components/common/userinfo_detail/iot_detail/WatchCollection'
|
|
64
|
+
import WatchWarning from '../../components/common/userinfo_detail/iot_detail/WatchWarning'
|
|
65
|
+
import PriceChangeQueryUser from '../../components/common/userinfo_detail/ic_detail/PriceChangeQueryUser'
|
|
66
|
+
import ChangeRecord from '../../components/common/userinfo_detail/ic_detail/ChangeRecord'
|
|
67
|
+
import PriceAdjustmentQueryUser from '../../components/common/userinfo_detail/ic_detail/PriceAdjustmentQueryUser'
|
|
68
|
+
import MeterParam from '../../components/common/userinfo_detail/ic_detail/MeterParam'
|
|
69
|
+
import DeveiceRecord from '../../components/common/userinfo_detail/ic_detail/DeveiceRecord'
|
|
70
|
+
import GarbageRecordList from '../../components/common/userinfo_detail/ic_detail/GarbageRecordList.vue'
|
|
71
|
+
import InsuranceChargesRecord from '../../components/common/userinfo_detail/ic_detail/InsuranceChargesRecord.vue'
|
|
72
|
+
export default {
|
|
73
|
+
title: '用户详细信息',
|
|
74
|
+
props: ['f_userfiles_id', 'f_userinfo_id', 'f_userinfo_code', 'parentname', 'buttonshow'],
|
|
75
|
+
components: {
|
|
76
|
+
InsuranceChargesRecord,
|
|
77
|
+
GarbageRecordList,
|
|
78
|
+
SecurityCheckInfo,
|
|
79
|
+
RepairList,
|
|
80
|
+
PriceAdjustmentQueryUser,
|
|
81
|
+
PriceChangeQueryUser,
|
|
82
|
+
AutomaticPurse,
|
|
83
|
+
WebAutomaticPurse,
|
|
84
|
+
WebChargeQueryUser,
|
|
85
|
+
WebHandQueryUser,
|
|
86
|
+
Repurchase,
|
|
87
|
+
ChangeMeterQueryUser,
|
|
88
|
+
ChargeQueryUser,
|
|
89
|
+
ChargeRecordQueryUser,
|
|
90
|
+
FillCardQueryUser,
|
|
91
|
+
HandQueryUser,
|
|
92
|
+
OtherChargeQueryUser,
|
|
93
|
+
RecordQueryUser,
|
|
94
|
+
TransferQueryUser,
|
|
95
|
+
WatchWarning,
|
|
96
|
+
WatchCollection,
|
|
97
|
+
QueryInstruct,
|
|
98
|
+
QueryHistoryInstruct,
|
|
99
|
+
ChangeRecord,
|
|
100
|
+
CardHandRecord,
|
|
101
|
+
MeterParam,
|
|
102
|
+
DeveiceRecord,
|
|
103
|
+
MachineRecordQuery,
|
|
104
|
+
UserDeviceQuery,
|
|
105
|
+
contractSigningList,
|
|
106
|
+
HistoryHandQueryUser,
|
|
107
|
+
UserKeyRecord
|
|
108
|
+
// MeteringRecords
|
|
109
|
+
// SupervisoryControl,
|
|
110
|
+
// ApplyChargeSearch
|
|
111
|
+
},
|
|
112
|
+
computed: {
|
|
113
|
+
// 标签配置数组
|
|
114
|
+
tabConfigs () {
|
|
115
|
+
if (!this.row) {
|
|
116
|
+
return []
|
|
117
|
+
}
|
|
118
|
+
const configs = []
|
|
119
|
+
// 流水查询
|
|
120
|
+
if (this.permission('流水查询')) {
|
|
121
|
+
configs.push({
|
|
122
|
+
header: '流水查询',
|
|
123
|
+
permission: '流水查询',
|
|
124
|
+
component: 'record-query-user',
|
|
125
|
+
condition: () => true,
|
|
126
|
+
needShowCheck: false // 流水查询不需要 show 检查
|
|
127
|
+
})
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// 机表流水查询
|
|
131
|
+
if (this.permission('机表流水查询') && this.row.f_meter_type && this.row.f_meter_type.includes('机表')) {
|
|
132
|
+
configs.push({
|
|
133
|
+
header: '机表流水查询',
|
|
134
|
+
permission: '机表流水查询',
|
|
135
|
+
component: 'machine-record-query',
|
|
136
|
+
condition: () => this.row.f_meter_type && this.row.f_meter_type.includes('机表'),
|
|
137
|
+
needShowCheck: true
|
|
138
|
+
})
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// 收费查询(根据 newWebHand 选择组件,但这里组件相同)
|
|
142
|
+
if (this.permission('收费查询')) {
|
|
143
|
+
configs.push({
|
|
144
|
+
header: '收费查询',
|
|
145
|
+
permission: '收费查询',
|
|
146
|
+
component: 'charge-query-user',
|
|
147
|
+
condition: () => true,
|
|
148
|
+
needShowCheck: true
|
|
149
|
+
})
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// 累购查询
|
|
153
|
+
if (this.permission('累购查询')) {
|
|
154
|
+
configs.push({
|
|
155
|
+
header: '累购查询',
|
|
156
|
+
permission: '累购查询',
|
|
157
|
+
component: 'repurchase',
|
|
158
|
+
condition: () => true,
|
|
159
|
+
needShowCheck: true
|
|
160
|
+
})
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// 下账查询(根据 newWebHand 选择不同组件)
|
|
164
|
+
if (this.row.f_meter_type && this.row.f_meter_type.includes('物联网表') && this.permission('自动下账查询')) {
|
|
165
|
+
configs.push({
|
|
166
|
+
header: '下账查询',
|
|
167
|
+
permission: '自动下账查询',
|
|
168
|
+
component: this.newWebHand ? 'web-automatic-purse' : 'automatic-purse',
|
|
169
|
+
condition: () => this.row.f_meter_type && this.row.f_meter_type.includes('物联网表'),
|
|
170
|
+
needShowCheck: false // 下账查询不需要 show 检查
|
|
171
|
+
})
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// 抄表记录(根据 meter_type 和 newWebHand 选择不同组件)
|
|
175
|
+
if (this.permission('抄表记录')) {
|
|
176
|
+
if (this.row.f_meter_type && this.row.f_meter_type.includes('卡表')) {
|
|
177
|
+
configs.push({
|
|
178
|
+
header: '抄表记录',
|
|
179
|
+
permission: '抄表记录',
|
|
180
|
+
component: 'card-hand-record',
|
|
181
|
+
condition: () => this.row.f_meter_type && this.row.f_meter_type.includes('卡表'),
|
|
182
|
+
needShowCheck: true
|
|
183
|
+
})
|
|
184
|
+
} else {
|
|
185
|
+
configs.push({
|
|
186
|
+
header: '抄表记录',
|
|
187
|
+
permission: '抄表记录',
|
|
188
|
+
component: this.newWebHand ? 'web-hand-query-user' : 'hand-query-user',
|
|
189
|
+
condition: () => !this.row.f_meter_type || !this.row.f_meter_type.includes('卡表'),
|
|
190
|
+
needShowCheck: true
|
|
191
|
+
})
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// 历史抄表记录
|
|
196
|
+
if (this.permission('历史抄表记录')) {
|
|
197
|
+
configs.push({
|
|
198
|
+
header: '历史抄表记录',
|
|
199
|
+
permission: '历史抄表记录',
|
|
200
|
+
component: 'history-hand-query-user',
|
|
201
|
+
condition: () => true,
|
|
202
|
+
needShowCheck: true
|
|
203
|
+
})
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
// 补卡查询
|
|
207
|
+
if (this.row.f_meter_type && this.row.f_meter_type.includes('卡表') && this.permission('补卡查询')) {
|
|
208
|
+
configs.push({
|
|
209
|
+
header: '补卡查询',
|
|
210
|
+
permission: '补卡查询',
|
|
211
|
+
component: 'fill-card-query-user',
|
|
212
|
+
condition: () => this.row.f_meter_type && this.row.f_meter_type.includes('卡表'),
|
|
213
|
+
needShowCheck: true
|
|
214
|
+
})
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// 补气查询
|
|
218
|
+
if (this.permission('补气查询')) {
|
|
219
|
+
configs.push({
|
|
220
|
+
header: '补气查询',
|
|
221
|
+
permission: '补气查询',
|
|
222
|
+
component: 'fill-gas-query-user',
|
|
223
|
+
condition: () => true,
|
|
224
|
+
needShowCheck: true
|
|
225
|
+
})
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// 换表查询
|
|
229
|
+
if (this.permission('换表查询')) {
|
|
230
|
+
configs.push({
|
|
231
|
+
header: '换表查询',
|
|
232
|
+
permission: '换表查询',
|
|
233
|
+
component: 'change-meter-query-user',
|
|
234
|
+
condition: () => true,
|
|
235
|
+
needShowCheck: true
|
|
236
|
+
})
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
// 其他收费
|
|
240
|
+
if (this.permission('其他收费')) {
|
|
241
|
+
configs.push({
|
|
242
|
+
header: '其他收费',
|
|
243
|
+
permission: '其他收费',
|
|
244
|
+
component: 'other-charge-query-user',
|
|
245
|
+
condition: () => true,
|
|
246
|
+
needShowCheck: true
|
|
247
|
+
})
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
// 保险收费记录
|
|
251
|
+
if (this.permission('保险收费记录')) {
|
|
252
|
+
configs.push({
|
|
253
|
+
header: '保险收费记录',
|
|
254
|
+
permission: '保险收费记录',
|
|
255
|
+
component: 'insurance-charges-record',
|
|
256
|
+
condition: () => true,
|
|
257
|
+
needShowCheck: false
|
|
258
|
+
})
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
// 垃圾费收费记录
|
|
262
|
+
if (this.permission('垃圾费收费记录')) {
|
|
263
|
+
configs.push({
|
|
264
|
+
header: '垃圾费收费记录',
|
|
265
|
+
permission: '垃圾费收费记录',
|
|
266
|
+
component: 'garbage-record-list',
|
|
267
|
+
condition: () => true,
|
|
268
|
+
needShowCheck: false
|
|
269
|
+
})
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
// 过户查询
|
|
273
|
+
if (this.permission('过户查询')) {
|
|
274
|
+
configs.push({
|
|
275
|
+
header: '过户查询',
|
|
276
|
+
permission: '过户查询',
|
|
277
|
+
component: 'transfer-query-user',
|
|
278
|
+
condition: () => true,
|
|
279
|
+
needShowCheck: true
|
|
280
|
+
})
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
// 价格调整
|
|
284
|
+
if (this.permission('价格调整')) {
|
|
285
|
+
configs.push({
|
|
286
|
+
header: '价格调整',
|
|
287
|
+
permission: '价格调整',
|
|
288
|
+
component: 'price-change-query-user',
|
|
289
|
+
condition: () => true,
|
|
290
|
+
needShowCheck: true
|
|
291
|
+
})
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
// 附件查看
|
|
295
|
+
if (this.permission('附件查看')) {
|
|
296
|
+
configs.push({
|
|
297
|
+
header: '附件查看',
|
|
298
|
+
permission: '附件查看',
|
|
299
|
+
component: 'upload-file-history',
|
|
300
|
+
condition: () => true,
|
|
301
|
+
needShowCheck: true
|
|
302
|
+
})
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// 变更记录
|
|
306
|
+
if (this.permission('变更记录')) {
|
|
307
|
+
configs.push({
|
|
308
|
+
header: '变更记录',
|
|
309
|
+
permission: '变更记录',
|
|
310
|
+
component: 'change-record',
|
|
311
|
+
condition: () => true,
|
|
312
|
+
needShowCheck: true
|
|
313
|
+
})
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
// 指令查看
|
|
317
|
+
if (this.row.f_meter_type && this.row.f_meter_type.includes('物联网表') && this.permission('指令查看')) {
|
|
318
|
+
configs.push({
|
|
319
|
+
header: '指令查看',
|
|
320
|
+
permission: '指令查看',
|
|
321
|
+
component: 'query-instruct',
|
|
322
|
+
condition: () => this.row.f_meter_type && this.row.f_meter_type.includes('物联网表'),
|
|
323
|
+
needShowCheck: true
|
|
324
|
+
})
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
// 历史指令查看
|
|
328
|
+
if (this.row.f_meter_type && this.row.f_meter_type.includes('物联网表') && this.permission('历史指令查看')) {
|
|
329
|
+
configs.push({
|
|
330
|
+
header: '历史指令查看',
|
|
331
|
+
permission: '历史指令查看',
|
|
332
|
+
component: 'query-history-instruct',
|
|
333
|
+
condition: () => this.row.f_meter_type && this.row.f_meter_type.includes('物联网表'),
|
|
334
|
+
needShowCheck: true
|
|
335
|
+
})
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
// 异常报警
|
|
339
|
+
if (this.row.f_meter_type && this.row.f_meter_type.includes('物联网表') && this.permission('异常报警')) {
|
|
340
|
+
configs.push({
|
|
341
|
+
header: '异常报警',
|
|
342
|
+
permission: '异常报警',
|
|
343
|
+
component: 'watch-warning',
|
|
344
|
+
condition: () => this.row.f_meter_type && this.row.f_meter_type.includes('物联网表'),
|
|
345
|
+
needShowCheck: true
|
|
346
|
+
})
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
// 表具采集
|
|
350
|
+
if (this.row.f_meter_type && this.row.f_meter_type.includes('物联网表') && this.permission('表具采集')) {
|
|
351
|
+
configs.push({
|
|
352
|
+
header: '表具采集',
|
|
353
|
+
permission: '表具采集',
|
|
354
|
+
component: 'watch-collection',
|
|
355
|
+
condition: () => this.row.f_meter_type && this.row.f_meter_type.includes('物联网表'),
|
|
356
|
+
needShowCheck: true
|
|
357
|
+
})
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
// 调价补差
|
|
361
|
+
if (this.permission('调价补差')) {
|
|
362
|
+
configs.push({
|
|
363
|
+
header: '调价补差',
|
|
364
|
+
permission: '调价补差',
|
|
365
|
+
component: 'price-adjustment-query-user',
|
|
366
|
+
condition: () => true,
|
|
367
|
+
needShowCheck: true
|
|
368
|
+
})
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
// 设备查询
|
|
372
|
+
if (this.permission('设备查询')) {
|
|
373
|
+
configs.push({
|
|
374
|
+
header: '设备查询',
|
|
375
|
+
permission: '设备查询',
|
|
376
|
+
component: 'deveice-record',
|
|
377
|
+
condition: () => true,
|
|
378
|
+
needShowCheck: true
|
|
379
|
+
})
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
// 流量计参数查看
|
|
383
|
+
if (this.permission('流量计参数查看')) {
|
|
384
|
+
configs.push({
|
|
385
|
+
header: '流量计参数查看',
|
|
386
|
+
permission: '流量计参数查看',
|
|
387
|
+
component: 'meter-param',
|
|
388
|
+
condition: () => true,
|
|
389
|
+
needShowCheck: true
|
|
390
|
+
})
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
// 表使用量图表
|
|
394
|
+
if (this.permission('流量计参数查看')) {
|
|
395
|
+
configs.push({
|
|
396
|
+
header: '表使用量图表',
|
|
397
|
+
permission: '流量计参数查看',
|
|
398
|
+
component: 'table-usage-chart',
|
|
399
|
+
condition: () => true,
|
|
400
|
+
needShowCheck: true
|
|
401
|
+
})
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
// 用户设备查询
|
|
405
|
+
if (this.permission('用户设备查看')) {
|
|
406
|
+
configs.push({
|
|
407
|
+
header: '用户设备查询',
|
|
408
|
+
permission: '用户设备查看',
|
|
409
|
+
component: 'user-device-query',
|
|
410
|
+
condition: () => true,
|
|
411
|
+
needShowCheck: true
|
|
412
|
+
})
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
// 合同查看
|
|
416
|
+
if (this.permission('合同查看')) {
|
|
417
|
+
configs.push({
|
|
418
|
+
header: '合同查看',
|
|
419
|
+
permission: '合同查看',
|
|
420
|
+
component: 'contract-signing-list',
|
|
421
|
+
condition: () => true,
|
|
422
|
+
needShowCheck: true
|
|
423
|
+
})
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
// 用户重点记录
|
|
427
|
+
if (this.permission('用户重点记录')) {
|
|
428
|
+
configs.push({
|
|
429
|
+
header: '用户重点记录',
|
|
430
|
+
permission: '用户重点记录',
|
|
431
|
+
component: 'user-key-record',
|
|
432
|
+
condition: () => true,
|
|
433
|
+
needShowCheck: false
|
|
434
|
+
})
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
// 维修记录
|
|
438
|
+
if (this.permission('维修记录')) {
|
|
439
|
+
configs.push({
|
|
440
|
+
header: '维修记录',
|
|
441
|
+
permission: '维修记录',
|
|
442
|
+
component: 'repair-list',
|
|
443
|
+
condition: () => true,
|
|
444
|
+
needShowCheck: false
|
|
445
|
+
})
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
// 安检记录
|
|
449
|
+
if (this.permission('安检记录')) {
|
|
450
|
+
configs.push({
|
|
451
|
+
header: '安检记录',
|
|
452
|
+
permission: '安检记录',
|
|
453
|
+
component: 'security-check-info',
|
|
454
|
+
condition: () => true,
|
|
455
|
+
needShowCheck: false
|
|
456
|
+
})
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
return configs
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
data () {
|
|
463
|
+
return {
|
|
464
|
+
row: null,
|
|
465
|
+
name: '自动下账查询',
|
|
466
|
+
newWebHand: this.$appdata.getSingleValue('新抄表'),
|
|
467
|
+
show: ''
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
async ready () {
|
|
471
|
+
await this.search()
|
|
472
|
+
console.log(this.$login)
|
|
473
|
+
},
|
|
474
|
+
methods: {
|
|
475
|
+
permission (name) {
|
|
476
|
+
return this.$login.r.includes(name)
|
|
477
|
+
},
|
|
478
|
+
async search () {
|
|
479
|
+
let http = new HttpResetClass()
|
|
480
|
+
if (!this.f_userfiles_id && !this.f_userinfo_id && !this.f_userinfo_code) {
|
|
481
|
+
this.$showMessage('用户信息缺失,查询详情信息失败')
|
|
482
|
+
return
|
|
483
|
+
}
|
|
484
|
+
let getBaseInfo = await http.load('POST', 'api/af-revenue/logic/iot_getUserBaseData',
|
|
485
|
+
{
|
|
486
|
+
data: {
|
|
487
|
+
f_userfiles_id: this.f_userfiles_id,
|
|
488
|
+
f_userinfo_id: this.f_userinfo_id,
|
|
489
|
+
f_userinfo_code: this.f_userinfo_code
|
|
490
|
+
}
|
|
491
|
+
}, {resolveMsg: null, rejectMsg: '获取基本信息出错'})
|
|
492
|
+
this.row = getBaseInfo.data
|
|
493
|
+
this.row.parentname = this.parentname || ''
|
|
494
|
+
// 数据加载完成后,初始化第一个可见标签
|
|
495
|
+
this.$nextTick(() => {
|
|
496
|
+
this.initFirstVisibleTab()
|
|
497
|
+
})
|
|
498
|
+
},
|
|
499
|
+
|
|
500
|
+
cancel (val) {
|
|
501
|
+
// 判断当前是否在 iframe 环境中
|
|
502
|
+
this.$emit('cancel-main', val)
|
|
503
|
+
},
|
|
504
|
+
|
|
505
|
+
cancelRe (val) {
|
|
506
|
+
this.$emit('cancel-re', val)
|
|
507
|
+
},
|
|
508
|
+
|
|
509
|
+
butOper (val) {
|
|
510
|
+
this.name = val
|
|
511
|
+
},
|
|
512
|
+
|
|
513
|
+
dealMsg (msg) {
|
|
514
|
+
// 处理消息
|
|
515
|
+
},
|
|
516
|
+
|
|
517
|
+
// 获取组件渲染配置
|
|
518
|
+
getComponentConfig (tab) {
|
|
519
|
+
// 返回组件名和是否需要 show 检查
|
|
520
|
+
return {
|
|
521
|
+
name: tab.component,
|
|
522
|
+
needShow: tab.needShowCheck
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
|
|
526
|
+
// 初始化第一个可见的标签
|
|
527
|
+
initFirstVisibleTab () {
|
|
528
|
+
// 确保 row 数据存在,因为很多标签的显示依赖于 row
|
|
529
|
+
if (!this.row) {
|
|
530
|
+
return
|
|
531
|
+
}
|
|
532
|
+
// 如果已经有值且不为空,说明已经初始化过了,不需要再次初始化
|
|
533
|
+
if (this.show) {
|
|
534
|
+
return
|
|
535
|
+
}
|
|
536
|
+
// 使用 tabConfigs 找到第一个可见的标签
|
|
537
|
+
if (this.tabConfigs && this.tabConfigs.length > 0) {
|
|
538
|
+
this.show = this.tabConfigs[0].header
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
watch: {
|
|
543
|
+
'f_userinfo_id' () {
|
|
544
|
+
this.search()
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
</script>
|
|
@@ -36,4 +36,5 @@ export default function () {
|
|
|
36
36
|
Vue.component('machine-meter-center', (resolve) => {
|
|
37
37
|
require(['./components/charge/business/machine/MachineMeterCenter'], resolve)
|
|
38
38
|
})
|
|
39
|
+
Vue.component('user-info-detail-manage-new', (resolve) => { require(['./UserInfoDetailManageNew'], resolve) })
|
|
39
40
|
}
|
|
@@ -1396,9 +1396,13 @@ export default {
|
|
|
1396
1396
|
this.upshow = !this.upshow
|
|
1397
1397
|
},
|
|
1398
1398
|
deletehand () {
|
|
1399
|
+
console.log('mode', this.model.count)
|
|
1399
1400
|
if (!this.$login.r.find(value => value == '抄表计划删除')) {
|
|
1400
1401
|
this.$showMessage('你没有【抄表计划删除】的权限,请联系管理员!')
|
|
1401
1402
|
} else {
|
|
1403
|
+
if(this.model.count>1000){
|
|
1404
|
+
return this.$showMessage('单次删除计划上限不得超过1000条,若执行大批量数据操作请联系售后人员处理!')
|
|
1405
|
+
}
|
|
1402
1406
|
if (this.deletestate) {
|
|
1403
1407
|
console.log('mode', this.model)
|
|
1404
1408
|
let cons = this.model.params
|