sale-client 4.3.40 → 4.3.42
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/build/dev-server.js +1 -1
- package/package.json +1 -1
- package/src/filiale/hongYa/HandQueryUser.vue +393 -0
- package/src/filiale/hongYa/HistoryHandQueryUser.vue +4 -1
- package/src/filiale/hongYa/UserInfoDetailManageNew.vue +2 -2
- package/src/filiale/hongYa/WebHandQueryUser.vue +414 -0
- package/src/main.js +1 -1
package/build/dev-server.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var path = require('path')
|
|
2
2
|
var checkVersion = require('./versionCheck.js')
|
|
3
3
|
checkVersion()
|
|
4
|
-
const [ serverRul, localUrl ] = ['http://
|
|
4
|
+
const [ serverRul, localUrl ] = ['http://36.134.191.191:31467/', 'http://36.134.191.191:31467/']
|
|
5
5
|
var merge = require('webpack-merge')
|
|
6
6
|
var baseConfig = require('./webpack.dev.conf')
|
|
7
7
|
var devConfig = {
|
package/package.json
CHANGED
|
@@ -0,0 +1,393 @@
|
|
|
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">是否缴费</label>
|
|
30
|
+
<v-select :value.sync="model.f_whether_pay" v-model='model.f_whether_pay'
|
|
31
|
+
style="width:60%"
|
|
32
|
+
:options='$parent.$parent.whetherpaies' placeholder='是否缴费'
|
|
33
|
+
close-on-select
|
|
34
|
+
condition="f_whether_pay = '{}'"></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_meter_state" v-model='model.f_meter_state'
|
|
39
|
+
style="width:60%"
|
|
40
|
+
:options='$parent.$parent.meterstates' placeholder='抄表状态'
|
|
41
|
+
close-on-select
|
|
42
|
+
condition="f_meter_state = '{}'"></v-select>
|
|
43
|
+
</div>
|
|
44
|
+
<div class="col-sm-2 form-group">
|
|
45
|
+
<label class="font_normal_body" title="表单状态">表单状态</label>
|
|
46
|
+
<v-select :value.sync="model.f_hand_state" v-model='model.f_hand_state'
|
|
47
|
+
style="width:60%"
|
|
48
|
+
:options='$parent.$parent.handstates' placeholder='表单状态'
|
|
49
|
+
close-on-select
|
|
50
|
+
condition="f_hand_state = '{}'"></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
|
+
<print-data :defaultfield="$parent.$parent.defaultfield" :field="$parent.$parent.fields" :is-selected="true" :model="$parent.$parent.printModel"
|
|
56
|
+
@print-data="$parent.$parent.print()"
|
|
57
|
+
:starthead="$parent.$parent.starthead"
|
|
58
|
+
titletable="预存气费打印明细"
|
|
59
|
+
></print-data>
|
|
60
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
61
|
+
:field="$parent.$parent.fields"
|
|
62
|
+
sqlurl="api/af-revenue/logic/saleExport" sql-name="sale_HandplanQuery" template-name='抄表查询'
|
|
63
|
+
v-ref:exports
|
|
64
|
+
:choose-col="true">
|
|
65
|
+
|
|
66
|
+
</export-excel>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
</criteria>
|
|
74
|
+
<data-grid :model="model" class="list_area table_sy" class="list_area table_sy" partial='list' v-ref:grid>
|
|
75
|
+
<template partial='head'>
|
|
76
|
+
<tr>
|
|
77
|
+
|
|
78
|
+
<th v-show="false"><nobr>抄表月份</nobr></th>
|
|
79
|
+
<th v-show="false"><nobr>用气周期</nobr></th>
|
|
80
|
+
<th><nobr>抄表日期</nobr></th>
|
|
81
|
+
<th><nobr>录入日期</nobr></th>
|
|
82
|
+
<th><nobr>上期底数</nobr></th>
|
|
83
|
+
<th><nobr>本期底数</nobr></th>
|
|
84
|
+
<th><nobr>上期余额</nobr></th>
|
|
85
|
+
<th><nobr>用气量</nobr></th>
|
|
86
|
+
<th><nobr>用气金额 </nobr></th>
|
|
87
|
+
<th><nobr>本期余额</nobr></th>
|
|
88
|
+
<th><nobr>是否缴费 </nobr></th>
|
|
89
|
+
<th v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')"><nobr>一阶单价 </nobr></th>
|
|
90
|
+
<th v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')"><nobr>一阶气量 </nobr></th>
|
|
91
|
+
<th v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')"><nobr>二阶单价 </nobr></th>
|
|
92
|
+
<th v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')"><nobr>二阶气量 </nobr></th>
|
|
93
|
+
<th v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')"><nobr>三阶单价 </nobr></th>
|
|
94
|
+
<th v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')"><nobr>三阶气量 </nobr></th>
|
|
95
|
+
<th><nobr>抄表状态 </nobr></th>
|
|
96
|
+
<th><nobr>抄表结果状态 </nobr></th>
|
|
97
|
+
<th><nobr>表单状态 </nobr></th>
|
|
98
|
+
<th><nobr>抄表员</nobr></th>
|
|
99
|
+
<th><nobr>录入员</nobr></th>
|
|
100
|
+
<th><nobr>详细地址</nobr></th>
|
|
101
|
+
</tr>
|
|
102
|
+
</template>
|
|
103
|
+
<template partial='body' partial='list' v-ref:grid>
|
|
104
|
+
<tr>
|
|
105
|
+
<td style="text-align:center" v-show="false">{{row.f_hand_date.substring(0,7)}}</td>
|
|
106
|
+
<th v-show="false"><nobr >{{row.datas}}</nobr></th>
|
|
107
|
+
<td style="text-align:center">{{row.f_hand_date}}</td>
|
|
108
|
+
<td style="text-align:center">{{row.f_input_date}}</td>
|
|
109
|
+
<td style="text-align:center">{{row.f_last_tablebase}}</td>
|
|
110
|
+
<td style="text-align:center">{{row.f_tablebase}}</td>
|
|
111
|
+
<td style="text-align:center">{{row.f_balance}}</td>
|
|
112
|
+
<td style="text-align:center">{{row.f_oughtamount}}</td>
|
|
113
|
+
<td style="text-align:center">{{row.f_oughtfee}}</td>
|
|
114
|
+
<td style="text-align:center">{{row.f_curbalance}}</td>
|
|
115
|
+
<td style="text-align:center">{{row.f_whether_pay}}</td>
|
|
116
|
+
<td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair1price}}</td>
|
|
117
|
+
<td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stairamount1}}</td>
|
|
118
|
+
<td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair2price}}</td>
|
|
119
|
+
<td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair2amount}}</td>
|
|
120
|
+
<td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair3price}}</td>
|
|
121
|
+
<td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair3amount}}</td>
|
|
122
|
+
<td style="text-align:center">{{row.f_meter_state}}</td>
|
|
123
|
+
<td style="text-align:center">{{row.f_result_state?row.f_result_state:''}}</td>
|
|
124
|
+
<td style="text-align:center">{{row.f_hand_state}}</td>
|
|
125
|
+
<td style="text-align:center">{{row.f_inputtor}}</td>
|
|
126
|
+
<td style="text-align:center">{{row.f_input_person}}</td>
|
|
127
|
+
<td style="text-align:center">{{row.f_address}}</td>
|
|
128
|
+
</tr>
|
|
129
|
+
</template>
|
|
130
|
+
<template partial='foot'></template>
|
|
131
|
+
</data-grid>
|
|
132
|
+
</criteria-paged>
|
|
133
|
+
|
|
134
|
+
</div>
|
|
135
|
+
<table class="table-hover">
|
|
136
|
+
<tr class="table-bordered" style="position: relative">
|
|
137
|
+
<td
|
|
138
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
139
|
+
汇总信息
|
|
140
|
+
</td>
|
|
141
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
|
|
142
|
+
用气量合计: {{model.sums.f_oughtamount}}
|
|
143
|
+
</td>
|
|
144
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
|
|
145
|
+
用气金额合计: {{model.sums.f_oughtfee}}
|
|
146
|
+
</td>
|
|
147
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
|
|
148
|
+
一阶用气量合计: {{model.sums.f_stairamount1}}
|
|
149
|
+
</td>
|
|
150
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
|
|
151
|
+
一阶用气金额合计: {{model.sums.f_stair1fee}}
|
|
152
|
+
</td>
|
|
153
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
|
|
154
|
+
二阶用气量合计: {{model.sums.f_stair2amount}}
|
|
155
|
+
</td>
|
|
156
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
|
|
157
|
+
二阶用气金额合计: {{model.sums.f_stair2fee}}
|
|
158
|
+
</td>
|
|
159
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
|
|
160
|
+
三阶用气量合计: {{model.sums.f_stair3amount}}
|
|
161
|
+
</td>
|
|
162
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
|
|
163
|
+
三阶用气金额合计: {{model.sums.f_stair3fee}}
|
|
164
|
+
</td>
|
|
165
|
+
<!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">-->
|
|
166
|
+
<!--欠费气量合计: {{model.sums.f_totalowe_gas}}-->
|
|
167
|
+
<!--</td>-->
|
|
168
|
+
<!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">-->
|
|
169
|
+
<!-- 欠费金额合计: {{model.sums.f_qianfei_fee}}-->
|
|
170
|
+
<!-- </td>-->
|
|
171
|
+
</tr>
|
|
172
|
+
</table>
|
|
173
|
+
</div>
|
|
174
|
+
|
|
175
|
+
</template>
|
|
176
|
+
|
|
177
|
+
<script>
|
|
178
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
179
|
+
|
|
180
|
+
export default {
|
|
181
|
+
title: '抄表',
|
|
182
|
+
data () {
|
|
183
|
+
return {
|
|
184
|
+
condition: '1=1',
|
|
185
|
+
model: new PagedList('api/af-revenue/sql/sale_HandplanQuery', 20, {f_user_id: this.row.f_user_id}, {
|
|
186
|
+
f_oughtfee: 0,
|
|
187
|
+
f_oughtamount: 0,
|
|
188
|
+
f_qianfei_fee: 0,
|
|
189
|
+
f_stairamount1: 0,
|
|
190
|
+
f_stair1fee: 0,
|
|
191
|
+
f_stair2amount: 0,
|
|
192
|
+
f_stair2fee: 0,
|
|
193
|
+
f_stair3amount: 0,
|
|
194
|
+
f_stair3fee: 0
|
|
195
|
+
}),
|
|
196
|
+
show: false,
|
|
197
|
+
lists: [],
|
|
198
|
+
meterstates: this.$appdata.getParam('抄表状态') ? [{
|
|
199
|
+
label: '全部',
|
|
200
|
+
value: ''
|
|
201
|
+
}, ...this.$appdata.getParam('抄表状态')] : [],
|
|
202
|
+
handstates: this.$appdata.getParam('表单状态') ? [{
|
|
203
|
+
label: '全部',
|
|
204
|
+
value: ''
|
|
205
|
+
}, ...this.$appdata.getParam('表单状态')] : [],
|
|
206
|
+
// 控制单选
|
|
207
|
+
radio: [],
|
|
208
|
+
// 选中的页
|
|
209
|
+
all: [],
|
|
210
|
+
// row数据
|
|
211
|
+
rowsdata: [],
|
|
212
|
+
f_calculation: '',
|
|
213
|
+
searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
|
|
214
|
+
starthead: '',
|
|
215
|
+
fields: {'f_userinfo_code': '用户编号',
|
|
216
|
+
'f_user_name': '姓名',
|
|
217
|
+
'f_last_tablebase': '上期底数',
|
|
218
|
+
'f_tablebase': '本期底数',
|
|
219
|
+
'f_balance': '上期余额',
|
|
220
|
+
'f_curbalance': '本期余额',
|
|
221
|
+
'f_oughtamount': '用气量',
|
|
222
|
+
'f_oughtfee': '用气金额',
|
|
223
|
+
'f_qianfei_fee': '欠费金额合计',
|
|
224
|
+
'f_detailprice': '结算明细',
|
|
225
|
+
'datas': '用气周期',
|
|
226
|
+
'money1': '违约金',
|
|
227
|
+
'f_stair1price': '一阶单价',
|
|
228
|
+
'f_stairamount1': '一阶用量',
|
|
229
|
+
'f_stair2price': '二阶单价',
|
|
230
|
+
'f_stair2amount': '二阶用量',
|
|
231
|
+
'f_stair3price': '三阶单价',
|
|
232
|
+
'f_stair3amount': '三阶用量',
|
|
233
|
+
'f_oughtfee1': '应交金额',
|
|
234
|
+
'f_inputtor': '抄表员',
|
|
235
|
+
'f_input_date': '抄表日期',
|
|
236
|
+
'f_whether_pay': '是否缴费',
|
|
237
|
+
'f_hand_date': '录入时间',
|
|
238
|
+
'f_address': '详细地址'},
|
|
239
|
+
defaultfield: [
|
|
240
|
+
'datas', 'f_last_tablebase', 'f_last_tablebase', 'f_oughtamount', 'f_oughtfee', 'f_oughtfee1', 'money1', 'price1'
|
|
241
|
+
],
|
|
242
|
+
fooinfo: [
|
|
243
|
+
'单位',
|
|
244
|
+
'收款人'
|
|
245
|
+
],
|
|
246
|
+
printModel: {
|
|
247
|
+
rows: []
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
props: ['row'],
|
|
252
|
+
ready () {
|
|
253
|
+
this.$refs.paged.$refs.criteria.model.f_hand_state = ['有效']
|
|
254
|
+
this.f_calculation = this.row.f_calculation ? this.row.f_calculation : ''
|
|
255
|
+
console.log('123' + this.f_calculation)
|
|
256
|
+
this.$refs.paged.$refs.criteria.search()
|
|
257
|
+
// this.sumgasandmoney= this.$refs.paged.$refs.grid.model.sums
|
|
258
|
+
for (let i in this.all) {
|
|
259
|
+
this.money += i.f_oughtamount
|
|
260
|
+
this.gas += i.f_oughtfee
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
methods: {
|
|
264
|
+
// search() {
|
|
265
|
+
// this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}'`
|
|
266
|
+
// this.model.search(this.condition, this.model)
|
|
267
|
+
// },
|
|
268
|
+
async search () {
|
|
269
|
+
this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' `
|
|
270
|
+
this.model.search(this.condition, this.model)
|
|
271
|
+
let http = new HttpResetClass()
|
|
272
|
+
let res = await http.load('POST', 'api/af-revenue/sql/sale_HandplanQuery', {
|
|
273
|
+
data: {
|
|
274
|
+
condition: this.condition,
|
|
275
|
+
f_user_id: this.row.f_user_id
|
|
276
|
+
}
|
|
277
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
278
|
+
this.printModel.rows = res.data
|
|
279
|
+
|
|
280
|
+
this.starthead = '用户编号:' + this.row.f_userinfo_code + '  用户姓名:' + this.row.f_user_name + '  用户地址:' + this.row.f_address
|
|
281
|
+
},
|
|
282
|
+
// 多选框初始化
|
|
283
|
+
selectInit () {
|
|
284
|
+
this.rowsdata = []
|
|
285
|
+
this.all = []
|
|
286
|
+
this.radio = []
|
|
287
|
+
},
|
|
288
|
+
print () {
|
|
289
|
+
console.log('====================================')
|
|
290
|
+
console.log('print')
|
|
291
|
+
console.log(this.printModel)
|
|
292
|
+
this.selectInit()
|
|
293
|
+
},
|
|
294
|
+
select () {
|
|
295
|
+
let index = this.model.pageIndex - 1
|
|
296
|
+
if (!this.radio[index]) {
|
|
297
|
+
this.radio.$set(index, [])
|
|
298
|
+
}
|
|
299
|
+
if (this.all[index]) {
|
|
300
|
+
// 数据
|
|
301
|
+
this.rowsdata[index] = Object.assign([], this.model.rows)
|
|
302
|
+
// 勾选
|
|
303
|
+
for (var i = 0; i < this.model.rows.length; i++) {
|
|
304
|
+
this.radio[index].$set(i, true)
|
|
305
|
+
}
|
|
306
|
+
} else {
|
|
307
|
+
// 数据
|
|
308
|
+
this.rowsdata[index] = []
|
|
309
|
+
// 不勾选
|
|
310
|
+
for (var i = 0; i < this.model.rows.length; i++) {
|
|
311
|
+
this.radio[index].$set(i, false)
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
let z = 0
|
|
315
|
+
for (let i = 0; i < this.all.length; i++) {
|
|
316
|
+
for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
|
|
317
|
+
this.printModel.rows[z++] = this.rowsdata[i][j]
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
selectOne (event, row, i) {
|
|
322
|
+
let index = this.model.pageIndex - 1
|
|
323
|
+
if (!this.rowsdata[index]) {
|
|
324
|
+
this.rowsdata[index] = []
|
|
325
|
+
}
|
|
326
|
+
if (!this.radio[index]) {
|
|
327
|
+
this.radio.$set(index, [])
|
|
328
|
+
}
|
|
329
|
+
if (event.target.checked) {
|
|
330
|
+
// 数据
|
|
331
|
+
this.rowsdata[index][i] = row
|
|
332
|
+
// 勾选
|
|
333
|
+
this.radio[index].$set(i, true)
|
|
334
|
+
// 判断是否全部选中
|
|
335
|
+
var allState = true
|
|
336
|
+
if (this.model.rows.length != this.radio[index].length) {
|
|
337
|
+
allState = false
|
|
338
|
+
}
|
|
339
|
+
for (var state of this.radio[index]) {
|
|
340
|
+
if (!state) {
|
|
341
|
+
allState = false
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
if (allState) {
|
|
345
|
+
this.all.$set(index, true)
|
|
346
|
+
} else {
|
|
347
|
+
this.all.$set(index, false)
|
|
348
|
+
}
|
|
349
|
+
} else {
|
|
350
|
+
// 数据
|
|
351
|
+
this.rowsdata[index][i] = []
|
|
352
|
+
// 不勾选
|
|
353
|
+
this.radio[index].$set(i, false)
|
|
354
|
+
// 任意取消一个则全选状态设为false
|
|
355
|
+
this.all.$set(index, false)
|
|
356
|
+
}
|
|
357
|
+
let z = 0
|
|
358
|
+
this.printModel.rows = []
|
|
359
|
+
for (let i = 0; i < this.all.length; i++) {
|
|
360
|
+
for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
|
|
361
|
+
if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
|
|
362
|
+
this.printModel.rows[z++] = this.rowsdata[i][j]
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
computed: {
|
|
369
|
+
getCondition () {
|
|
370
|
+
return {
|
|
371
|
+
condition: this.condition,
|
|
372
|
+
f_user_id: this.row.f_user_id
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
whetherpaies () {
|
|
376
|
+
return [
|
|
377
|
+
{label: '全部', value: ''},
|
|
378
|
+
{label: '已缴费', value: '是'},
|
|
379
|
+
{label: '未缴费', value: '否'}
|
|
380
|
+
]
|
|
381
|
+
},
|
|
382
|
+
ischecked () {
|
|
383
|
+
return function (index, i) {
|
|
384
|
+
if (!this.radio[index]) {
|
|
385
|
+
return false
|
|
386
|
+
}
|
|
387
|
+
return this.radio[index][i]
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
</script>
|
|
393
|
+
|
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
<th><nobr>表单状态 </nobr></th>
|
|
90
90
|
<th><nobr>抄表员</nobr></th>
|
|
91
91
|
<th><nobr>录入员</nobr></th>
|
|
92
|
+
<th><nobr>详细地址</nobr></th>
|
|
92
93
|
</tr>
|
|
93
94
|
</template>
|
|
94
95
|
<template partial='body' partial='list' v-ref:grid>
|
|
@@ -109,6 +110,7 @@
|
|
|
109
110
|
<td style="text-align:center">{{row.f_hand_state}}</td>
|
|
110
111
|
<td style="text-align:center">{{row.f_inputtor}}</td>
|
|
111
112
|
<td style="text-align:center">{{row.f_input_person}}</td>
|
|
113
|
+
<td style="text-align:center">{{row.f_address}}</td>
|
|
112
114
|
</tr>
|
|
113
115
|
</template>
|
|
114
116
|
<template partial='foot'></template>
|
|
@@ -178,7 +180,8 @@ export default {
|
|
|
178
180
|
'f_oughtfee': '用气金额',
|
|
179
181
|
'f_inputtor': '抄表员',
|
|
180
182
|
'f_input_date': '抄表日期',
|
|
181
|
-
'f_hand_date': '录入时间'
|
|
183
|
+
'f_hand_date': '录入时间',
|
|
184
|
+
'f_address': '详细地址'},
|
|
182
185
|
defaultfield: [
|
|
183
186
|
'f_last_tablebase', 'f_last_tablebase', 'f_oughtamount', 'f_oughtfee'
|
|
184
187
|
],
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
import ChargeQueryUser from '../../components/common/userinfo_detail/ic_detail/ChargeQueryUser'
|
|
38
38
|
import ChargeRecordQueryUser from '../../components/common/userinfo_detail/ic_detail/ChargeRecordQuery'
|
|
39
39
|
import FillCardQueryUser from '../../components/common/userinfo_detail/ic_detail/FillCardQueryUser'
|
|
40
|
-
import HandQueryUser from '
|
|
40
|
+
import HandQueryUser from './HandQueryUser'
|
|
41
41
|
import OtherChargeQueryUser from '../../components/common/userinfo_detail/ic_detail/OtherChargeQueryUser'
|
|
42
42
|
import RecordQueryUser from '../../components/common/userinfo_detail/ic_detail/RecordQueryUser'
|
|
43
43
|
import TransferQueryUser from '../../components/common/userinfo_detail/ic_detail/TransferQueryUser'
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
import MachineRecordQuery from '../../components/common/userinfo_detail/ic_detail/MachineRecordQuery'
|
|
48
48
|
import WebAutomaticPurse from '../../components/common/userinfo_detail/ic_detail/WebAutomaticPurse'
|
|
49
49
|
import WebChargeQueryUser from '../../components/common/userinfo_detail/ic_detail/WebChargeQueryUser'
|
|
50
|
-
import WebHandQueryUser from '
|
|
50
|
+
import WebHandQueryUser from './WebHandQueryUser'
|
|
51
51
|
import UserDeviceQuery from '../../components/common/userinfo_detail/ic_detail/UserDeviceQuery'
|
|
52
52
|
import contractSigningList from '../../components/common/userinfo_detail/ic_detail/contractSigningList'
|
|
53
53
|
import UserKeyRecord from '../../components/common/userinfo_detail/ic_detail/UserKeyRecord'
|
|
@@ -0,0 +1,414 @@
|
|
|
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" v-if="!row.f_meter_type.includes('物联网表')">
|
|
29
|
+
<label class="font_normal_body">是否缴费</label>
|
|
30
|
+
<v-select :value.sync="model.f_whether_pay" v-model='model.f_whether_pay'
|
|
31
|
+
style="width:60%"
|
|
32
|
+
:options='$parent.$parent.whetherpaies' placeholder='是否缴费'
|
|
33
|
+
close-on-select
|
|
34
|
+
condition="f_whether_pay = '{}'"></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_meter_state" v-model='model.f_meter_state'
|
|
39
|
+
style="width:60%"
|
|
40
|
+
:options='$parent.$parent.meterstates' placeholder='抄表状态'
|
|
41
|
+
close-on-select
|
|
42
|
+
condition="f_meter_state = '{}'"></v-select>
|
|
43
|
+
</div>
|
|
44
|
+
<div class="col-sm-2 form-group">
|
|
45
|
+
<label class="font_normal_body" title="表单状态">表单状态</label>
|
|
46
|
+
<v-select :value.sync="model.f_hand_state" v-model='model.f_hand_state'
|
|
47
|
+
style="width:60%"
|
|
48
|
+
:options='$parent.$parent.handstates' placeholder='表单状态'
|
|
49
|
+
close-on-select
|
|
50
|
+
condition="f_hand_state = '{}'"></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>上期余额</nobr></th>
|
|
83
|
+
<th><nobr>用气量</nobr></th>
|
|
84
|
+
<th><nobr>用气金额 </nobr></th>
|
|
85
|
+
<th><nobr>本期余额</nobr></th>
|
|
86
|
+
<th v-if="!row.f_meter_type.includes('物联网表')"><nobr>是否缴费 </nobr></th>
|
|
87
|
+
<th v-if="!f_calculation.includes('表端结算')"><nobr>一阶单价 </nobr></th>
|
|
88
|
+
<th v-if="!f_calculation.includes('表端结算')"><nobr>一阶气量 </nobr></th>
|
|
89
|
+
<th v-if="!f_calculation.includes('表端结算')"><nobr>二阶单价 </nobr></th>
|
|
90
|
+
<th v-if="!f_calculation.includes('表端结算')"><nobr>二阶气量 </nobr></th>
|
|
91
|
+
<th v-if="!f_calculation.includes('表端结算')"><nobr>三阶单价 </nobr></th>
|
|
92
|
+
<th v-if="!f_calculation.includes('表端结算')"><nobr>三阶气量 </nobr></th>
|
|
93
|
+
<th><nobr>抄表状态 </nobr></th>
|
|
94
|
+
<th><nobr>抄表结果状态 </nobr></th>
|
|
95
|
+
<th><nobr>表单状态 </nobr></th>
|
|
96
|
+
<th><nobr>抄表员</nobr></th>
|
|
97
|
+
<th><nobr>录入员</nobr></th>
|
|
98
|
+
<th><nobr>详细地址</nobr></th>
|
|
99
|
+
</tr>
|
|
100
|
+
</template>
|
|
101
|
+
<template partial='body' partial='list' v-ref:grid>
|
|
102
|
+
<tr>
|
|
103
|
+
<td style="text-align:center" v-show="false">{{row.f_hand_date.substring(0,7)}}</td>
|
|
104
|
+
<th v-show="false"><nobr >{{row.datas}}</nobr></th>
|
|
105
|
+
<td style="text-align:center">{{row.f_hand_date}}</td>
|
|
106
|
+
<td style="text-align:center">{{row.f_input_date}}</td>
|
|
107
|
+
<td style="text-align:center">{{row.f_last_tablebase}}</td>
|
|
108
|
+
<td style="text-align:center">{{row.f_tablebase}}</td>
|
|
109
|
+
<td style="text-align:center">{{row.f_balance}}</td>
|
|
110
|
+
<td style="text-align:center">{{row.f_oughtamount}}</td>
|
|
111
|
+
<td style="text-align:center">{{row.f_oughtfee}}</td>
|
|
112
|
+
<td style="text-align:center">{{row.f_curbalance}}</td>
|
|
113
|
+
<td style="text-align:center" v-if="!row.f_meter_type.includes('物联网表')">{{row.f_whether_pay}}</td>
|
|
114
|
+
<td style="text-align:center" v-if="!f_calculation.includes('表端结算')">{{row.f_stair1price}}</td>
|
|
115
|
+
<td style="text-align:center" v-if="!f_calculation.includes('表端结算')">{{row.f_stairamount1}}</td>
|
|
116
|
+
<td style="text-align:center" v-if="!f_calculation.includes('表端结算')">{{row.f_stair2price}}</td>
|
|
117
|
+
<td style="text-align:center" v-if="!f_calculation.includes('表端结算')">{{row.f_stair2amount}}</td>
|
|
118
|
+
<td style="text-align:center" v-if="!f_calculation.includes('表端结算')">{{row.f_stair3price}}</td>
|
|
119
|
+
<td style="text-align:center" v-if="!f_calculation.includes('表端结算')">{{row.f_stair3amount}}</td>
|
|
120
|
+
<td style="text-align:center">{{row.f_meter_state}}</td>
|
|
121
|
+
<td style="text-align:center">{{row.f_result_state?row.f_result_state:''}}</td>
|
|
122
|
+
<td style="text-align:center">{{row.f_hand_state}}</td>
|
|
123
|
+
<td style="text-align:center">{{row.f_inputtor}}</td>
|
|
124
|
+
<td style="text-align:center">{{row.f_input_person}}</td>
|
|
125
|
+
<td style="text-align:center">{{row.f_address}}</td>
|
|
126
|
+
</tr>
|
|
127
|
+
</template>
|
|
128
|
+
<template partial='foot'></template>
|
|
129
|
+
</data-grid>
|
|
130
|
+
</criteria-paged>
|
|
131
|
+
|
|
132
|
+
</div>
|
|
133
|
+
<table class="table-hover">
|
|
134
|
+
<tr class="table-bordered" style="position: relative">
|
|
135
|
+
<td
|
|
136
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
137
|
+
汇总信息
|
|
138
|
+
</td>
|
|
139
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
|
|
140
|
+
用气量合计: {{model.sums.f_oughtamount}}
|
|
141
|
+
</td>
|
|
142
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
|
|
143
|
+
用气金额合计: {{model.sums.f_oughtfee}}
|
|
144
|
+
</td>
|
|
145
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
|
|
146
|
+
一阶用气量合计: {{model.sums.f_stairamount1}}
|
|
147
|
+
</td>
|
|
148
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
|
|
149
|
+
一阶用气金额合计: {{model.sums.f_stair1fee}}
|
|
150
|
+
</td>
|
|
151
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
|
|
152
|
+
二阶用气量合计: {{model.sums.f_stair2amount}}
|
|
153
|
+
</td>
|
|
154
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
|
|
155
|
+
二阶用气金额合计: {{model.sums.f_stair2fee}}
|
|
156
|
+
</td>
|
|
157
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
|
|
158
|
+
三阶用气量合计: {{model.sums.f_stair3amount}}
|
|
159
|
+
</td>
|
|
160
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
|
|
161
|
+
三阶用气金额合计: {{model.sums.f_stair3fee}}
|
|
162
|
+
</td>
|
|
163
|
+
</tr>
|
|
164
|
+
</table>
|
|
165
|
+
</div>
|
|
166
|
+
|
|
167
|
+
</template>
|
|
168
|
+
|
|
169
|
+
<script>
|
|
170
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
171
|
+
|
|
172
|
+
export default {
|
|
173
|
+
title: '抄表',
|
|
174
|
+
data () {
|
|
175
|
+
return {
|
|
176
|
+
condition: '1=1',
|
|
177
|
+
model: new PagedList(`${this.row.f_meter_type === '物联网表'?'api/af-revenue/sql/sale_WebHandplanQuery':'api/af-revenue/sql/sale_HandplanQuery'}`, 20, {f_user_id: this.row.f_user_id}, {
|
|
178
|
+
f_oughtfee: 0,
|
|
179
|
+
f_oughtamount: 0,
|
|
180
|
+
f_stairamount1: 0,
|
|
181
|
+
f_stair1fee: 0,
|
|
182
|
+
f_stair2amount: 0,
|
|
183
|
+
f_stair2fee: 0,
|
|
184
|
+
f_stair3amount: 0,
|
|
185
|
+
f_stair3fee: 0
|
|
186
|
+
}),
|
|
187
|
+
show: false,
|
|
188
|
+
f_calculation: '',
|
|
189
|
+
lists: [],
|
|
190
|
+
meterstates: this.$appdata.getParam('抄表状态') ? [{
|
|
191
|
+
label: '全部',
|
|
192
|
+
value: ''
|
|
193
|
+
}, ...this.$appdata.getParam('抄表状态')] : [],
|
|
194
|
+
handstates: this.$appdata.getParam('表单状态') ? [{
|
|
195
|
+
label: '全部',
|
|
196
|
+
value: ''
|
|
197
|
+
}, ...this.$appdata.getParam('表单状态')] : [],
|
|
198
|
+
// 控制单选
|
|
199
|
+
radio: [],
|
|
200
|
+
// 选中的页
|
|
201
|
+
all: [],
|
|
202
|
+
// row数据
|
|
203
|
+
rowsdata: [],
|
|
204
|
+
sqlname: `${this.row.f_meter_type === '物联网表' ? 'sale_WebHandplanQuery' : 'sale_HandplanQuery'}`,
|
|
205
|
+
searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
|
|
206
|
+
starthead: '',
|
|
207
|
+
fields: {
|
|
208
|
+
'f_userinfo_code': '用户编号',
|
|
209
|
+
'f_user_name': '姓名',
|
|
210
|
+
'f_last_tablebase': '上期底数',
|
|
211
|
+
'f_tablebase': '本期底数',
|
|
212
|
+
'f_balance': '上期余额',
|
|
213
|
+
'f_curbalance': '本期余额',
|
|
214
|
+
'f_oughtamount': '用气量',
|
|
215
|
+
'f_oughtfee': '用气金额',
|
|
216
|
+
'f_detailprice': '结算明细',
|
|
217
|
+
'datas': '用气周期',
|
|
218
|
+
'money1': '违约金',
|
|
219
|
+
'f_stair1price': '一阶单价',
|
|
220
|
+
'f_stair1fee': '一阶用气金额',
|
|
221
|
+
'f_stairamount1': '一阶用量',
|
|
222
|
+
'f_stair2price': '二阶单价',
|
|
223
|
+
'f_stair2fee': '二阶用气金额',
|
|
224
|
+
'f_stair2amount': '二阶用量',
|
|
225
|
+
'f_stair3price': '三阶单价',
|
|
226
|
+
'f_stair3fee': '三阶用气金额',
|
|
227
|
+
'f_stair3amount': '三阶用量',
|
|
228
|
+
'f_oughtfee1': '应交金额',
|
|
229
|
+
'f_inputtor': '抄表员',
|
|
230
|
+
'f_input_date': '抄表日期',
|
|
231
|
+
'f_hand_date': '录入时间',
|
|
232
|
+
'f_address': '详细地址'},
|
|
233
|
+
defaultfield: [
|
|
234
|
+
'datas', 'f_last_tablebase', 'f_last_tablebase', 'f_oughtamount', 'f_oughtfee', 'f_oughtfee1', 'money1', 'price1'
|
|
235
|
+
],
|
|
236
|
+
fooinfo: [
|
|
237
|
+
'单位',
|
|
238
|
+
'收款人'
|
|
239
|
+
],
|
|
240
|
+
printModel: {
|
|
241
|
+
rows: []
|
|
242
|
+
},
|
|
243
|
+
other: [],
|
|
244
|
+
footer: [],
|
|
245
|
+
// 合计数据
|
|
246
|
+
sumsmodel: {}
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
props: ['row'],
|
|
250
|
+
ready () {
|
|
251
|
+
this.$refs.paged.$refs.criteria.model.f_hand_state = ['有效']
|
|
252
|
+
this.f_calculation = this.row.f_calculation
|
|
253
|
+
this.$refs.paged.$refs.criteria.search()
|
|
254
|
+
this.sumsmodel= this.$refs.paged.$refs.grid.model.sums
|
|
255
|
+
for (let i in this.all) {
|
|
256
|
+
this.money += i.f_oughtamount
|
|
257
|
+
this.gas += i.f_oughtfee
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
methods: {
|
|
261
|
+
getotherfooter () {
|
|
262
|
+
// this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
263
|
+
// this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
264
|
+
this.other = []
|
|
265
|
+
this.footer = []
|
|
266
|
+
// let exportdata = this.getCondition;
|
|
267
|
+
let otherInData = []
|
|
268
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
|
|
269
|
+
let footerData = [], exportfield = this.fields
|
|
270
|
+
footerData.push('合计')
|
|
271
|
+
let self = this
|
|
272
|
+
for (var field in self.sumsmodel) {
|
|
273
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
|
|
274
|
+
}
|
|
275
|
+
this.footer.push(footerData)
|
|
276
|
+
this.other.push(otherInData)
|
|
277
|
+
},
|
|
278
|
+
// search() {
|
|
279
|
+
// this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}'`
|
|
280
|
+
// this.model.search(this.condition, this.model)
|
|
281
|
+
// },
|
|
282
|
+
async search () {
|
|
283
|
+
this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' and f_orgid = '${this.$login.f.orgid}'`
|
|
284
|
+
this.model.search(this.condition, this.model)
|
|
285
|
+
let http = new HttpResetClass()
|
|
286
|
+
let res = await http.load('POST', `${this.row.f_meter_type === '物联网表'?'api/af-revenue/sql/sale_WebHandplanQuery':'api/af-revenue/sql/sale_HandplanQuery'}`, {
|
|
287
|
+
data: {
|
|
288
|
+
f_user_id: this.row.f_user_id,
|
|
289
|
+
condition: this.condition
|
|
290
|
+
}
|
|
291
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
292
|
+
this.printModel.rows = res.data
|
|
293
|
+
|
|
294
|
+
this.starthead = '用户编号:' + this.row.f_userinfo_code + '  用户姓名:' + this.row.f_user_name + '  用户地址:' + this.row.f_address
|
|
295
|
+
},
|
|
296
|
+
// 多选框初始化
|
|
297
|
+
selectInit () {
|
|
298
|
+
this.rowsdata = []
|
|
299
|
+
this.all = []
|
|
300
|
+
this.radio = []
|
|
301
|
+
},
|
|
302
|
+
print () {
|
|
303
|
+
console.log('====================================')
|
|
304
|
+
console.log('print')
|
|
305
|
+
console.log(this.printModel)
|
|
306
|
+
this.selectInit()
|
|
307
|
+
},
|
|
308
|
+
select () {
|
|
309
|
+
let index = this.model.pageIndex - 1
|
|
310
|
+
if (!this.radio[index]) {
|
|
311
|
+
this.radio.$set(index, [])
|
|
312
|
+
}
|
|
313
|
+
if (this.all[index]) {
|
|
314
|
+
// 数据
|
|
315
|
+
this.rowsdata[index] = Object.assign([], this.model.rows)
|
|
316
|
+
// 勾选
|
|
317
|
+
for (var i = 0; i < this.model.rows.length; i++) {
|
|
318
|
+
this.radio[index].$set(i, true)
|
|
319
|
+
}
|
|
320
|
+
} else {
|
|
321
|
+
// 数据
|
|
322
|
+
this.rowsdata[index] = []
|
|
323
|
+
// 不勾选
|
|
324
|
+
for (var i = 0; i < this.model.rows.length; i++) {
|
|
325
|
+
this.radio[index].$set(i, false)
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
let z = 0
|
|
329
|
+
for (let i = 0; i < this.all.length; i++) {
|
|
330
|
+
for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
|
|
331
|
+
this.printModel.rows[z++] = this.rowsdata[i][j]
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
selectOne (event, row, i) {
|
|
336
|
+
let index = this.model.pageIndex - 1
|
|
337
|
+
if (!this.rowsdata[index]) {
|
|
338
|
+
this.rowsdata[index] = []
|
|
339
|
+
}
|
|
340
|
+
if (!this.radio[index]) {
|
|
341
|
+
this.radio.$set(index, [])
|
|
342
|
+
}
|
|
343
|
+
if (event.target.checked) {
|
|
344
|
+
// 数据
|
|
345
|
+
this.rowsdata[index][i] = row
|
|
346
|
+
// 勾选
|
|
347
|
+
this.radio[index].$set(i, true)
|
|
348
|
+
// 判断是否全部选中
|
|
349
|
+
var allState = true
|
|
350
|
+
if (this.model.rows.length != this.radio[index].length) {
|
|
351
|
+
allState = false
|
|
352
|
+
}
|
|
353
|
+
for (var state of this.radio[index]) {
|
|
354
|
+
if (!state) {
|
|
355
|
+
allState = false
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
if (allState) {
|
|
359
|
+
this.all.$set(index, true)
|
|
360
|
+
} else {
|
|
361
|
+
this.all.$set(index, false)
|
|
362
|
+
}
|
|
363
|
+
} else {
|
|
364
|
+
// 数据
|
|
365
|
+
this.rowsdata[index][i] = []
|
|
366
|
+
// 不勾选
|
|
367
|
+
this.radio[index].$set(i, false)
|
|
368
|
+
// 任意取消一个则全选状态设为false
|
|
369
|
+
this.all.$set(index, false)
|
|
370
|
+
}
|
|
371
|
+
let z = 0
|
|
372
|
+
this.printModel.rows = []
|
|
373
|
+
for (let i = 0; i < this.all.length; i++) {
|
|
374
|
+
for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
|
|
375
|
+
if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
|
|
376
|
+
this.printModel.rows[z++] = this.rowsdata[i][j]
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
computed: {
|
|
383
|
+
whetherpaies () {
|
|
384
|
+
return [
|
|
385
|
+
{label: '全部', value: ''},
|
|
386
|
+
{label: '已缴费', value: '是'},
|
|
387
|
+
{label: '未缴费', value: '否'}
|
|
388
|
+
]
|
|
389
|
+
},
|
|
390
|
+
ischecked () {
|
|
391
|
+
return function (index, i) {
|
|
392
|
+
if (!this.radio[index]) {
|
|
393
|
+
return false
|
|
394
|
+
}
|
|
395
|
+
return this.radio[index][i]
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
getCondition () {
|
|
399
|
+
return {
|
|
400
|
+
condition: this.condition
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
watch: {
|
|
405
|
+
sumsmodel: {
|
|
406
|
+
handler: function (val) {
|
|
407
|
+
this.getotherfooter()
|
|
408
|
+
},
|
|
409
|
+
deep: true
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
</script>
|
|
414
|
+
|
package/src/main.js
CHANGED
|
@@ -2,7 +2,7 @@ import Vue from 'vue'
|
|
|
2
2
|
import all from 'vue-client/src/all'
|
|
3
3
|
import App from './App'
|
|
4
4
|
import system from 'system-clients/src/system'
|
|
5
|
-
import FilialeSale from './filiale/
|
|
5
|
+
import FilialeSale from './filiale/hongYa/sale'
|
|
6
6
|
import sale from './sale'
|
|
7
7
|
import address from 'address-client/src/address'
|
|
8
8
|
import ldap from 'ldap-clients/src/ldap'
|