sale-client 4.2.40 → 4.2.41

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.
Files changed (58) hide show
  1. package/build/dev-server.js +40 -26
  2. package/index.html +7 -2
  3. package/package.json +3 -2
  4. package/src/App.vue +1 -1
  5. package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
  6. package/src/components/revenue/comprehen/ComprehenOperation/QrPay/QrPaymentDetailed.vue +423 -423
  7. package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +469 -469
  8. package/src/components/revenue/machineHandManage/ArrearsQuery.vue +938 -938
  9. package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +970 -970
  10. package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
  11. package/src/filiale/bayan/ChargeList.vue +1010 -1010
  12. package/src/filiale/bayan/StockListmain.vue +543 -543
  13. package/src/filiale/bazhong/UserInfoDetailManageNew.vue +245 -245
  14. package/src/filiale/bazhong/ic_detail/ChangeMeterQueryUser.vue +370 -370
  15. package/src/filiale/bazhong/sale.js +8 -8
  16. package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
  17. package/src/filiale/jinhong/machineHand.vue +2099 -2099
  18. package/src/filiale/jinhong/plugins/GetSaleParams.js +302 -302
  19. package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
  20. package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
  21. package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
  22. package/src/filiale/qianneng/revenue/sms/AccountMessageList.vue +508 -508
  23. package/src/filiale/qingjian/SafeCheck.vue +3 -3
  24. package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
  25. package/src/filiale/ronghao/CardService.js +2144 -2144
  26. package/src/filiale/ronghao/InsuranceManage.vue +58 -58
  27. package/src/filiale/ronghao/MachineChargeService.js +149 -149
  28. package/src/filiale/ronghao/NoCardMeterCenter.vue +534 -534
  29. package/src/filiale/ronghao/PaymentCode.vue +174 -174
  30. package/src/filiale/ronghao/PriceChangeCompensation/CompensationManage.vue +26 -26
  31. package/src/filiale/ronghao/PriceChangeCompensation/IotCompensation.vue +318 -318
  32. package/src/filiale/ronghao/PriceChangeCompensation/JbCompensation.vue +343 -343
  33. package/src/filiale/ronghao/PriceChangeCompensation/SurplusRecordDetail.vue +74 -74
  34. package/src/filiale/ronghao/ReplaceCardManage.vue +415 -415
  35. package/src/filiale/ronghao/Upload.vue +654 -654
  36. package/src/filiale/ronghao/cardDown.vue +1141 -1141
  37. package/src/filiale/ronghao/changemeterOperate.vue +315 -315
  38. package/src/filiale/ronghao/fillgasSpecific.vue +313 -313
  39. package/src/filiale/ronghao/ic_detail/ChargeRecordQuery.vue +106 -106
  40. package/src/filiale/ronghao/ic_detail/WatchCollection.vue +115 -115
  41. package/src/filiale/ronghao/ic_detail/WebHandQueryUser.vue +411 -411
  42. package/src/filiale/ronghao/machineDown.vue +1176 -1176
  43. package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
  44. package/src/filiale/ronghao/specificInformation.vue +537 -537
  45. package/src/filiale/yangchun/ChargeList.vue +954 -954
  46. package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
  47. package/src/filiale/zhongsheng/BlackListList.vue +293 -293
  48. package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
  49. package/src/main.js +1 -1
  50. package/src/plugins/CardService.js +2217 -2217
  51. package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
  52. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  53. package/.gradle/5.2.1/gc.properties +0 -0
  54. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  55. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  56. package/.gradle/vcs-1/gc.properties +0 -0
  57. package/hs_err_pid32452.log +0 -625
  58. package/hs_err_pid36896.log +0 -249
@@ -1,389 +1,389 @@
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 v-if="!row.f_meter_type.includes('物联网表')"><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
- </tr>
101
- </template>
102
- <template partial='body' partial='list' v-ref:grid>
103
- <tr>
104
- <td style="text-align:center" v-show="false">{{row.f_hand_date.substring(0,7)}}</td>
105
- <th v-show="false"><nobr >{{row.datas}}</nobr></th>
106
- <td style="text-align:center">{{row.f_hand_date}}</td>
107
- <td style="text-align:center">{{row.f_input_date}}</td>
108
- <td style="text-align:center">{{row.f_last_tablebase}}</td>
109
- <td style="text-align:center">{{row.f_tablebase}}</td>
110
- <td style="text-align:center">{{row.f_balance}}</td>
111
- <td style="text-align:center">{{row.f_oughtamount}}</td>
112
- <td style="text-align:center">{{row.f_oughtfee}}</td>
113
- <td style="text-align:center">{{row.f_curbalance}}</td>
114
- <td style="text-align:center" v-if="!row.f_meter_type.includes('物联网表')">{{row.f_whether_pay}}</td>
115
- <td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair1price}}</td>
116
- <td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stairamount1}}</td>
117
- <td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair2price}}</td>
118
- <td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair2amount}}</td>
119
- <td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair3price}}</td>
120
- <td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair3amount}}</td>
121
- <td style="text-align:center">{{row.f_meter_state}}</td>
122
- <td style="text-align:center">{{row.f_result_state?row.f_result_state:''}}</td>
123
- <td style="text-align:center">{{row.f_hand_state}}</td>
124
- <td style="text-align:center">{{row.f_inputtor}}</td>
125
- <td style="text-align:center">{{row.f_input_person}}</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
- 用气量合计:&emsp;{{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
- 用气金额合计:&emsp;{{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
- 一阶用气量合计:&emsp;{{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
- 一阶用气金额合计:&emsp;{{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
- 二阶用气量合计:&emsp;{{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
- 二阶用气金额合计:&emsp;{{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
- 三阶用气量合计:&emsp;{{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
- 三阶用气金额合计:&emsp;{{model.sums.f_stair3fee}}
162
- </td>
163
- <!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">-->
164
- <!--欠费气量合计:&emsp;{{model.sums.f_totalowe_gas}}-->
165
- <!--</td>-->
166
- <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">-->
167
- <!-- 欠费金额合计:&emsp;{{model.sums.f_qianfei_fee}}-->
168
- <!-- </td>-->
169
- </tr>
170
- </table>
171
- </div>
172
-
173
- </template>
174
-
175
- <script>
176
- import {HttpResetClass, PagedList} from 'vue-client'
177
-
178
- export default {
179
- title: '抄表',
180
- data () {
181
- return {
182
- condition: '1=1',
183
- model: new PagedList('api/af-revenue/sql/sale_HandplanQuery', 20, {f_user_id: this.row.f_user_id}, {
184
- f_oughtfee: 0,
185
- f_oughtamount: 0,
186
- f_qianfei_fee: 0,
187
- f_stairamount1: 0,
188
- f_stair1fee: 0,
189
- f_stair2amount: 0,
190
- f_stair2fee: 0,
191
- f_stair3amount: 0,
192
- f_stair3fee: 0
193
- }),
194
- show: false,
195
- lists: [],
196
- meterstates: this.$appdata.getParam('抄表状态') ? [{
197
- label: '全部',
198
- value: ''
199
- }, ...this.$appdata.getParam('抄表状态')] : [],
200
- handstates: this.$appdata.getParam('表单状态') ? [{
201
- label: '全部',
202
- value: ''
203
- }, ...this.$appdata.getParam('表单状态')] : [],
204
- // 控制单选
205
- radio: [],
206
- // 选中的页
207
- all: [],
208
- // row数据
209
- rowsdata: [],
210
- f_calculation: '',
211
- searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
212
- starthead: '',
213
- fields: {'f_userinfo_code': '用户编号',
214
- 'f_user_name': '姓名',
215
- 'f_last_tablebase': '上期底数',
216
- 'f_tablebase': '本期底数',
217
- 'f_balance': '上期余额',
218
- 'f_curbalance': '本期余额',
219
- 'f_oughtamount': '用气量',
220
- 'f_oughtfee': '用气金额',
221
- 'f_qianfei_fee': '欠费金额合计',
222
- 'f_detailprice': '结算明细',
223
- 'datas': '用气周期',
224
- 'money1': '违约金',
225
- 'f_stair1price': '一阶单价',
226
- 'f_stairamount1': '一阶用量',
227
- 'f_stair2price': '二阶单价',
228
- 'f_stair2amount': '二阶用量',
229
- 'f_stair3price': '三阶单价',
230
- 'f_stair3amount': '三阶用量',
231
- 'f_oughtfee1': '应交金额',
232
- 'f_inputtor': '抄表员',
233
- 'f_input_date': '抄表日期',
234
- 'f_whether_pay': '是否缴费',
235
- 'f_hand_date': '录入时间'},
236
- defaultfield: [
237
- 'datas', 'f_last_tablebase', 'f_last_tablebase', 'f_oughtamount', 'f_oughtfee', 'f_oughtfee1', 'money1', 'price1'
238
- ],
239
- fooinfo: [
240
- '单位',
241
- '收款人'
242
- ],
243
- printModel: {
244
- rows: []
245
- }
246
- }
247
- },
248
- props: ['row'],
249
- ready () {
250
- this.$refs.paged.$refs.criteria.model.f_hand_state = ['有效']
251
- this.f_calculation = this.row.f_calculation
252
- this.$refs.paged.$refs.criteria.search()
253
- // this.sumgasandmoney= this.$refs.paged.$refs.grid.model.sums
254
- for (let i in this.all) {
255
- this.money += i.f_oughtamount
256
- this.gas += i.f_oughtfee
257
- }
258
- },
259
- methods: {
260
- // search() {
261
- // this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}'`
262
- // this.model.search(this.condition, this.model)
263
- // },
264
- async search () {
265
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' `
266
- this.model.search(this.condition, this.model)
267
- let http = new HttpResetClass()
268
- let res = await http.load('POST', 'api/af-revenue/sql/sale_HandplanQuery', {
269
- data: {
270
- condition: this.condition,
271
- f_user_id: this.row.f_user_id
272
- }
273
- }, {resolveMsg: null, rejectMsg: null})
274
- this.printModel.rows = res.data
275
-
276
- this.starthead = '用户编号:' + this.row.f_userinfo_code + '&emsp;&emsp;用户姓名:' + this.row.f_user_name + '&emsp;&emsp;用户地址:' + this.row.f_address
277
- },
278
- // 多选框初始化
279
- selectInit () {
280
- this.rowsdata = []
281
- this.all = []
282
- this.radio = []
283
- },
284
- print () {
285
- console.log('====================================')
286
- console.log('print')
287
- console.log(this.printModel)
288
- this.selectInit()
289
- },
290
- select () {
291
- let index = this.model.pageIndex - 1
292
- if (!this.radio[index]) {
293
- this.radio.$set(index, [])
294
- }
295
- if (this.all[index]) {
296
- // 数据
297
- this.rowsdata[index] = Object.assign([], this.model.rows)
298
- // 勾选
299
- for (var i = 0; i < this.model.rows.length; i++) {
300
- this.radio[index].$set(i, true)
301
- }
302
- } else {
303
- // 数据
304
- this.rowsdata[index] = []
305
- // 不勾选
306
- for (var i = 0; i < this.model.rows.length; i++) {
307
- this.radio[index].$set(i, false)
308
- }
309
- }
310
- let z = 0
311
- for (let i = 0; i < this.all.length; i++) {
312
- for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
313
- this.printModel.rows[z++] = this.rowsdata[i][j]
314
- }
315
- }
316
- },
317
- selectOne (event, row, i) {
318
- let index = this.model.pageIndex - 1
319
- if (!this.rowsdata[index]) {
320
- this.rowsdata[index] = []
321
- }
322
- if (!this.radio[index]) {
323
- this.radio.$set(index, [])
324
- }
325
- if (event.target.checked) {
326
- // 数据
327
- this.rowsdata[index][i] = row
328
- // 勾选
329
- this.radio[index].$set(i, true)
330
- // 判断是否全部选中
331
- var allState = true
332
- if (this.model.rows.length != this.radio[index].length) {
333
- allState = false
334
- }
335
- for (var state of this.radio[index]) {
336
- if (!state) {
337
- allState = false
338
- }
339
- }
340
- if (allState) {
341
- this.all.$set(index, true)
342
- } else {
343
- this.all.$set(index, false)
344
- }
345
- } else {
346
- // 数据
347
- this.rowsdata[index][i] = []
348
- // 不勾选
349
- this.radio[index].$set(i, false)
350
- // 任意取消一个则全选状态设为false
351
- this.all.$set(index, false)
352
- }
353
- let z = 0
354
- this.printModel.rows = []
355
- for (let i = 0; i < this.all.length; i++) {
356
- for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
357
- if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
358
- this.printModel.rows[z++] = this.rowsdata[i][j]
359
- }
360
- }
361
- }
362
- }
363
- },
364
- computed: {
365
- getCondition () {
366
- return {
367
- condition: this.condition,
368
- f_user_id: this.row.f_user_id
369
- }
370
- },
371
- whetherpaies () {
372
- return [
373
- {label: '全部', value: ''},
374
- {label: '已缴费', value: '是'},
375
- {label: '未缴费', value: '否'}
376
- ]
377
- },
378
- ischecked () {
379
- return function (index, i) {
380
- if (!this.radio[index]) {
381
- return false
382
- }
383
- return this.radio[index][i]
384
- }
385
- }
386
- }
387
- }
388
- </script>
389
-
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 v-if="!row.f_meter_type.includes('物联网表')"><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
+ </tr>
101
+ </template>
102
+ <template partial='body' partial='list' v-ref:grid>
103
+ <tr>
104
+ <td style="text-align:center" v-show="false">{{row.f_hand_date.substring(0,7)}}</td>
105
+ <th v-show="false"><nobr >{{row.datas}}</nobr></th>
106
+ <td style="text-align:center">{{row.f_hand_date}}</td>
107
+ <td style="text-align:center">{{row.f_input_date}}</td>
108
+ <td style="text-align:center">{{row.f_last_tablebase}}</td>
109
+ <td style="text-align:center">{{row.f_tablebase}}</td>
110
+ <td style="text-align:center">{{row.f_balance}}</td>
111
+ <td style="text-align:center">{{row.f_oughtamount}}</td>
112
+ <td style="text-align:center">{{row.f_oughtfee}}</td>
113
+ <td style="text-align:center">{{row.f_curbalance}}</td>
114
+ <td style="text-align:center" v-if="!row.f_meter_type.includes('物联网表')">{{row.f_whether_pay}}</td>
115
+ <td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair1price}}</td>
116
+ <td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stairamount1}}</td>
117
+ <td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair2price}}</td>
118
+ <td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair2amount}}</td>
119
+ <td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair3price}}</td>
120
+ <td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair3amount}}</td>
121
+ <td style="text-align:center">{{row.f_meter_state}}</td>
122
+ <td style="text-align:center">{{row.f_result_state?row.f_result_state:''}}</td>
123
+ <td style="text-align:center">{{row.f_hand_state}}</td>
124
+ <td style="text-align:center">{{row.f_inputtor}}</td>
125
+ <td style="text-align:center">{{row.f_input_person}}</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
+ 用气量合计:&emsp;{{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
+ 用气金额合计:&emsp;{{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
+ 一阶用气量合计:&emsp;{{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
+ 一阶用气金额合计:&emsp;{{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
+ 二阶用气量合计:&emsp;{{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
+ 二阶用气金额合计:&emsp;{{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
+ 三阶用气量合计:&emsp;{{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
+ 三阶用气金额合计:&emsp;{{model.sums.f_stair3fee}}
162
+ </td>
163
+ <!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">-->
164
+ <!--欠费气量合计:&emsp;{{model.sums.f_totalowe_gas}}-->
165
+ <!--</td>-->
166
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">-->
167
+ <!-- 欠费金额合计:&emsp;{{model.sums.f_qianfei_fee}}-->
168
+ <!-- </td>-->
169
+ </tr>
170
+ </table>
171
+ </div>
172
+
173
+ </template>
174
+
175
+ <script>
176
+ import {HttpResetClass, PagedList} from 'vue-client'
177
+
178
+ export default {
179
+ title: '抄表',
180
+ data () {
181
+ return {
182
+ condition: '1=1',
183
+ model: new PagedList('api/af-revenue/sql/sale_HandplanQuery', 20, {f_user_id: this.row.f_user_id}, {
184
+ f_oughtfee: 0,
185
+ f_oughtamount: 0,
186
+ f_qianfei_fee: 0,
187
+ f_stairamount1: 0,
188
+ f_stair1fee: 0,
189
+ f_stair2amount: 0,
190
+ f_stair2fee: 0,
191
+ f_stair3amount: 0,
192
+ f_stair3fee: 0
193
+ }),
194
+ show: false,
195
+ lists: [],
196
+ meterstates: this.$appdata.getParam('抄表状态') ? [{
197
+ label: '全部',
198
+ value: ''
199
+ }, ...this.$appdata.getParam('抄表状态')] : [],
200
+ handstates: this.$appdata.getParam('表单状态') ? [{
201
+ label: '全部',
202
+ value: ''
203
+ }, ...this.$appdata.getParam('表单状态')] : [],
204
+ // 控制单选
205
+ radio: [],
206
+ // 选中的页
207
+ all: [],
208
+ // row数据
209
+ rowsdata: [],
210
+ f_calculation: '',
211
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
212
+ starthead: '',
213
+ fields: {'f_userinfo_code': '用户编号',
214
+ 'f_user_name': '姓名',
215
+ 'f_last_tablebase': '上期底数',
216
+ 'f_tablebase': '本期底数',
217
+ 'f_balance': '上期余额',
218
+ 'f_curbalance': '本期余额',
219
+ 'f_oughtamount': '用气量',
220
+ 'f_oughtfee': '用气金额',
221
+ 'f_qianfei_fee': '欠费金额合计',
222
+ 'f_detailprice': '结算明细',
223
+ 'datas': '用气周期',
224
+ 'money1': '违约金',
225
+ 'f_stair1price': '一阶单价',
226
+ 'f_stairamount1': '一阶用量',
227
+ 'f_stair2price': '二阶单价',
228
+ 'f_stair2amount': '二阶用量',
229
+ 'f_stair3price': '三阶单价',
230
+ 'f_stair3amount': '三阶用量',
231
+ 'f_oughtfee1': '应交金额',
232
+ 'f_inputtor': '抄表员',
233
+ 'f_input_date': '抄表日期',
234
+ 'f_whether_pay': '是否缴费',
235
+ 'f_hand_date': '录入时间'},
236
+ defaultfield: [
237
+ 'datas', 'f_last_tablebase', 'f_last_tablebase', 'f_oughtamount', 'f_oughtfee', 'f_oughtfee1', 'money1', 'price1'
238
+ ],
239
+ fooinfo: [
240
+ '单位',
241
+ '收款人'
242
+ ],
243
+ printModel: {
244
+ rows: []
245
+ }
246
+ }
247
+ },
248
+ props: ['row'],
249
+ ready () {
250
+ this.$refs.paged.$refs.criteria.model.f_hand_state = ['有效']
251
+ this.f_calculation = this.row.f_calculation
252
+ this.$refs.paged.$refs.criteria.search()
253
+ // this.sumgasandmoney= this.$refs.paged.$refs.grid.model.sums
254
+ for (let i in this.all) {
255
+ this.money += i.f_oughtamount
256
+ this.gas += i.f_oughtfee
257
+ }
258
+ },
259
+ methods: {
260
+ // search() {
261
+ // this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}'`
262
+ // this.model.search(this.condition, this.model)
263
+ // },
264
+ async search () {
265
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' `
266
+ this.model.search(this.condition, this.model)
267
+ let http = new HttpResetClass()
268
+ let res = await http.load('POST', 'api/af-revenue/sql/sale_HandplanQuery', {
269
+ data: {
270
+ condition: this.condition,
271
+ f_user_id: this.row.f_user_id
272
+ }
273
+ }, {resolveMsg: null, rejectMsg: null})
274
+ this.printModel.rows = res.data
275
+
276
+ this.starthead = '用户编号:' + this.row.f_userinfo_code + '&emsp;&emsp;用户姓名:' + this.row.f_user_name + '&emsp;&emsp;用户地址:' + this.row.f_address
277
+ },
278
+ // 多选框初始化
279
+ selectInit () {
280
+ this.rowsdata = []
281
+ this.all = []
282
+ this.radio = []
283
+ },
284
+ print () {
285
+ console.log('====================================')
286
+ console.log('print')
287
+ console.log(this.printModel)
288
+ this.selectInit()
289
+ },
290
+ select () {
291
+ let index = this.model.pageIndex - 1
292
+ if (!this.radio[index]) {
293
+ this.radio.$set(index, [])
294
+ }
295
+ if (this.all[index]) {
296
+ // 数据
297
+ this.rowsdata[index] = Object.assign([], this.model.rows)
298
+ // 勾选
299
+ for (var i = 0; i < this.model.rows.length; i++) {
300
+ this.radio[index].$set(i, true)
301
+ }
302
+ } else {
303
+ // 数据
304
+ this.rowsdata[index] = []
305
+ // 不勾选
306
+ for (var i = 0; i < this.model.rows.length; i++) {
307
+ this.radio[index].$set(i, false)
308
+ }
309
+ }
310
+ let z = 0
311
+ for (let i = 0; i < this.all.length; i++) {
312
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
313
+ this.printModel.rows[z++] = this.rowsdata[i][j]
314
+ }
315
+ }
316
+ },
317
+ selectOne (event, row, i) {
318
+ let index = this.model.pageIndex - 1
319
+ if (!this.rowsdata[index]) {
320
+ this.rowsdata[index] = []
321
+ }
322
+ if (!this.radio[index]) {
323
+ this.radio.$set(index, [])
324
+ }
325
+ if (event.target.checked) {
326
+ // 数据
327
+ this.rowsdata[index][i] = row
328
+ // 勾选
329
+ this.radio[index].$set(i, true)
330
+ // 判断是否全部选中
331
+ var allState = true
332
+ if (this.model.rows.length != this.radio[index].length) {
333
+ allState = false
334
+ }
335
+ for (var state of this.radio[index]) {
336
+ if (!state) {
337
+ allState = false
338
+ }
339
+ }
340
+ if (allState) {
341
+ this.all.$set(index, true)
342
+ } else {
343
+ this.all.$set(index, false)
344
+ }
345
+ } else {
346
+ // 数据
347
+ this.rowsdata[index][i] = []
348
+ // 不勾选
349
+ this.radio[index].$set(i, false)
350
+ // 任意取消一个则全选状态设为false
351
+ this.all.$set(index, false)
352
+ }
353
+ let z = 0
354
+ this.printModel.rows = []
355
+ for (let i = 0; i < this.all.length; i++) {
356
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
357
+ if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
358
+ this.printModel.rows[z++] = this.rowsdata[i][j]
359
+ }
360
+ }
361
+ }
362
+ }
363
+ },
364
+ computed: {
365
+ getCondition () {
366
+ return {
367
+ condition: this.condition,
368
+ f_user_id: this.row.f_user_id
369
+ }
370
+ },
371
+ whetherpaies () {
372
+ return [
373
+ {label: '全部', value: ''},
374
+ {label: '已缴费', value: '是'},
375
+ {label: '未缴费', value: '否'}
376
+ ]
377
+ },
378
+ ischecked () {
379
+ return function (index, i) {
380
+ if (!this.radio[index]) {
381
+ return false
382
+ }
383
+ return this.radio[index][i]
384
+ }
385
+ }
386
+ }
387
+ }
388
+ </script>
389
+