sale-client 3.4.112 → 3.4.113

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 (93) hide show
  1. package/.gradle/{5.2.1 → 4.4}/fileChanges/last-build.bin +0 -0
  2. package/.gradle/{6.1.1 → 4.4}/fileHashes/fileHashes.bin +0 -0
  3. package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
  4. package/build/dev-server.js +3 -3
  5. package/{.gradle/5.2.1/gc.properties → npm} +0 -0
  6. package/package.json +1 -1
  7. package/src/components/FilesManage/MeterinfoTest.vue +904 -905
  8. package/src/components/FilesManage/TemplateManage.vue +167 -167
  9. package/src/components/FilesManage/UserGeneralInfoTest.vue +642 -640
  10. package/src/components/charge/business/CardChangeFill.vue +612 -612
  11. package/src/components/charge/business/CardMeterCenter.vue +899 -899
  12. package/src/components/charge/business/FilesComplete.vue +253 -253
  13. package/src/components/charge/business/refund/IOTRefund.vue +236 -236
  14. package/src/components/charge/business/refund/RefundManage.vue +28 -28
  15. package/src/components/charge/gasloss/gasLossOperate.vue +357 -357
  16. package/src/components/chargeNew/thirdSurplus.vue +2 -0
  17. package/src/components/revenue/Common/MeterMessage.vue +184 -184
  18. package/src/components/revenue/HandManager/MeterBookManage.vue +153 -153
  19. package/src/components/revenue/base/leftview/MixPriceInfo.vue +60 -60
  20. package/src/components/revenue/base/leftview/Mulitinfo.vue +74 -74
  21. package/src/components/revenue/base/leftview/SafeCheck.vue +311 -311
  22. package/src/components/revenue/base/leftview/Stairinfo.vue +156 -156
  23. package/src/components/revenue/base/leftview/meterinfodetail.vue +195 -195
  24. package/src/components/revenue/base/rightview/CardList.vue +477 -477
  25. package/src/components/revenue/comprehen/ComprehenOperation/MeterDisable/DisableManage.vue +93 -93
  26. package/src/components/revenue/comprehen/ComprehenOperation/MeterEnable/EnableManage.vue +184 -184
  27. package/src/components/revenue/comprehen/ComprehenOperation/OtherGas/OtherGas.vue +5 -1
  28. package/src/components/revenue/comprehen/ComprehenOperation/removeTable.vue +1 -1
  29. package/src/components/revenue/comprehen/Maintenance/hand/handListMaintain.vue +638 -638
  30. package/src/components/revenue/comprehen/Maintenance/revenue/StockListmain.vue +7 -7
  31. package/src/components/revenue/comprehen/Message/MessageList.vue +587 -587
  32. package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackList.vue +1 -1
  33. package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackListManage.vue +1 -1
  34. package/src/components/revenue/comprehen/StairPrice/GasPriceList.vue +303 -303
  35. package/src/components/revenue/comprehen/replacement/replacementHandInfoRecord.vue +155 -155
  36. package/src/components/revenue/comprehen/wechatpay/WeChat.vue +62 -62
  37. package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +8 -4
  38. package/src/filiale/alashan/PrintBill.vue +116 -116
  39. package/src/filiale/jingwei/CardHand.vue +742 -742
  40. package/src/filiale/macheng/FilesManageNew/FileUserFiles.vue +743 -0
  41. package/src/filiale/macheng/FilesManageNew/UserEssentialInfoTest.vue +371 -371
  42. package/src/filiale/macheng/FilesManageNew/UserGeneralInfoTest.vue +596 -596
  43. package/src/filiale/macheng/UserEssentialInfoTest.vue +368 -366
  44. package/src/filiale/meihekou/MeterinfoTest.vue +0 -1
  45. package/src/filiale/meihekou/PrintBill.vue +140 -140
  46. package/src/filiale/meihekou/ReissueBill.vue +322 -322
  47. package/src/filiale/qianneng/FilesManage/MeterinfoTest.vue +0 -1
  48. package/src/filiale/qianneng/GasPriceList.vue +330 -330
  49. package/src/filiale/qianneng/HandManager.vue +1838 -1838
  50. package/src/filiale/qianneng/OtherChargeNew.vue +6 -2
  51. package/src/filiale/qianneng/sale.js +30 -32
  52. package/src/filiale/qingtongxia/UserGeneralInfoTest.vue +538 -533
  53. package/src/filiale/rongcheng/FilesManageNew/UserGeneralInfoTest.vue +608 -608
  54. package/src/filiale/rongchuang/OtherGas.vue +329 -329
  55. package/src/filiale/tongchuan/CardList.vue +482 -482
  56. package/src/filiale/tongchuan/MeterinfoTest.vue +892 -892
  57. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/AutomaticPurse.vue +298 -298
  58. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/CardHandRecord.vue +267 -267
  59. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/ChangeMeterQueryUser.vue +240 -240
  60. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/ChangeRecord.vue +235 -235
  61. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/ChargeQueryUser.vue +372 -372
  62. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/DeveiceRecord.vue +251 -251
  63. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/FillCardQueryUser.vue +209 -209
  64. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/HandQueryUser.vue +365 -365
  65. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +252 -252
  66. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/OtherChargeQueryUser.vue +250 -250
  67. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/RecordQueryUser.vue +249 -249
  68. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/TransferQueryUser.vue +222 -222
  69. package/src/filiale/tongchuan/sale.js +107 -107
  70. package/src/filiale/zhongsheng/rightview/CardList.vue +492 -492
  71. package/src/filiale/zhongsheng/wechatpay/WeChatPayDetail.vue +469 -469
  72. package/src/main.js +1 -1
  73. package/src/plugins/CardService.js +1798 -1798
  74. package/src/plugins/ChangeMeterService.js +756 -756
  75. package/src/plugins/FileManageService.js +366 -366
  76. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  77. package/.gradle/6.1.1/executionHistory/executionHistory.bin +0 -0
  78. package/.gradle/6.1.1/executionHistory/executionHistory.lock +0 -0
  79. package/.gradle/6.1.1/fileChanges/last-build.bin +0 -0
  80. package/.gradle/6.1.1/fileHashes/fileHashes.lock +0 -0
  81. package/.gradle/6.1.1/gc.properties +0 -0
  82. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  83. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  84. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  85. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  86. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  87. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  88. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  89. package/.gradle/7.1/gc.properties +0 -0
  90. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  91. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  92. package/.gradle/checksums/checksums.lock +0 -0
  93. package/.gradle/vcs-1/gc.properties +0 -0
@@ -1,365 +1,365 @@
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
- </div>
61
- </div>
62
-
63
-
64
- </div>
65
-
66
- </criteria>
67
- <data-grid :model="model" class="list_area table_sy" class="list_area table_sy" partial='list' v-ref:grid>
68
- <template partial='head'>
69
- <tr>
70
-
71
- <th v-show="false"><nobr>抄表月份</nobr></th>
72
- <th v-show="false"><nobr>用气周期</nobr></th>
73
- <th><nobr>抄表日期</nobr></th>
74
- <th><nobr>录入日期</nobr></th>
75
- <th><nobr>上期底数</nobr></th>
76
- <th><nobr>本期底数</nobr></th>
77
- <th><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><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
- <th><nobr>录入员</nobr></th>
93
- </tr>
94
- </template>
95
- <template partial='body' partial='list' v-ref:grid>
96
- <tr>
97
- <td style="text-align:center" v-show="false">{{row.f_hand_date.substring(0,7)}}</td>
98
- <th v-show="false"><nobr >{{row.datas}}</nobr></th>
99
- <td style="text-align:center">{{row.f_input_date}}</td>
100
- <td style="text-align:center">{{row.f_hand_date}}</td>
101
- <td style="text-align:center">{{row.f_last_tablebase}}</td>
102
- <td style="text-align:center">{{row.f_tablebase}}</td>
103
- <td style="text-align:center">{{row.f_balance}}</td>
104
- <td style="text-align:center">{{row.f_oughtamount}}</td>
105
- <td style="text-align:center">{{row.f_oughtfee}}</td>
106
- <td style="text-align:center">{{row.f_curbalance}}</td>
107
- <td style="text-align:center">{{row.f_whether_pay}}</td>
108
- <td style="text-align:center">{{row.f_stair1price}}</td>
109
- <td style="text-align:center">{{row.f_stairamount1}}</td>
110
- <td style="text-align:center">{{row.f_stair2price}}</td>
111
- <td style="text-align:center">{{row.f_stair2amount}}</td>
112
- <td style="text-align:center">{{row.f_stair3price}}</td>
113
- <td style="text-align:center">{{row.f_stair3amount}}</td>
114
- <td style="text-align:center">{{row.f_meter_state}}</td>
115
- <td style="text-align:center">{{row.f_result_state?row.f_result_state:''}}</td>
116
- <td style="text-align:center">{{row.f_hand_state}}</td>
117
- <td style="text-align:center">{{row.f_inputtor}}</td>
118
- <td style="text-align:center">{{row.f_input_person}}</td>
119
- </tr>
120
- </template>
121
- <template partial='foot'></template>
122
- </data-grid>
123
- </criteria-paged>
124
-
125
- </div>
126
- <table class="table-hover">
127
- <tr class="table-bordered" style="position: relative">
128
- <td
129
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
130
- 汇总信息
131
- </td>
132
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
133
- 用气量合计:&emsp;{{model.sums.f_oughtamount}}
134
- </td>
135
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
136
- 用气金额合计:&emsp;{{model.sums.f_oughtfee}}
137
- </td>
138
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
139
- 一阶用气量合计:&emsp;{{model.sums.f_stairamount1}}
140
- </td>
141
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
142
- 一阶用气金额合计:&emsp;{{model.sums.f_stair1fee}}
143
- </td>
144
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
145
- 二阶用气量合计:&emsp;{{model.sums.f_stair2amount}}
146
- </td>
147
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
148
- 二阶用气金额合计:&emsp;{{model.sums.f_stair2fee}}
149
- </td>
150
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
151
- 三阶用气金额合计:&emsp;{{model.sums.f_stair3amount}}
152
- </td>
153
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
154
- 三阶用气金额合计:&emsp;{{model.sums.f_stair3fee}}
155
- </td>
156
- <!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">-->
157
- <!--欠费气量合计:&emsp;{{model.sums.f_totalowe_gas}}-->
158
- <!--</td>-->
159
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
160
- 欠费金额合计:&emsp;{{model.sums.f_qianfei_fee}}
161
- </td>
162
- </tr>
163
- </table>
164
- </div>
165
-
166
- </template>
167
-
168
- <script>
169
- import {HttpResetClass, PagedList} from 'vue-client'
170
-
171
- export default {
172
- title: '抄表',
173
- data () {
174
- return {
175
- condition: '1=1',
176
- model: new PagedList('rs/sql/sale_HandplanQuery', 20, {}, {
177
- f_oughtfee: 0,
178
- f_oughtamount: 0,
179
- f_qianfei_fee: 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
- lists: [],
189
- meterstates: this.$appdata.getParam('抄表状态') ? [{
190
- label: '全部',
191
- value: ''
192
- }, ...this.$appdata.getParam('抄表状态')] : [],
193
- handstates: this.$appdata.getParam('表单状态') ? [{
194
- label: '全部',
195
- value: ''
196
- }, ...this.$appdata.getParam('表单状态')] : [],
197
- // 控制单选
198
- radio: [],
199
- // 选中的页
200
- all: [],
201
- // row数据
202
- rowsdata: [],
203
- starthead: '',
204
- fields: {'f_userinfo_code': '用户编号',
205
- 'f_user_name': '姓名',
206
- 'f_last_tablebase': '上期底数',
207
- 'f_tablebase': '本期底数',
208
- 'f_oughtamount': '用气量',
209
- 'f_oughtfee': '用气金额',
210
- 'f_qianfei_fee': '欠费金额合计',
211
- 'f_detailprice': '结算明细',
212
- 'datas': '用气周期',
213
- 'money1': '滞纳金',
214
- 'price1': '单价',
215
- 'f_oughtfee1': '应交金额',
216
- 'f_inputtor': '抄表员',
217
- 'f_input_date': '抄表日期',
218
- 'f_whether_pay': '是否缴费',
219
- 'f_hand_date': '录入时间'},
220
- defaultfield: [
221
- 'datas', 'f_last_tablebase', 'f_last_tablebase', 'f_oughtamount', 'f_oughtfee', 'f_oughtfee1', 'money1', 'price1'
222
- ],
223
- fooinfo: [
224
- '单位',
225
- '收款人'
226
- ],
227
- printModel: {
228
- rows: []
229
- }
230
- }
231
- },
232
- props: ['row'],
233
- ready () {
234
- this.$refs.paged.$refs.criteria.model.f_hand_state = ['有效']
235
- this.$refs.paged.$refs.criteria.search()
236
- // this.sumgasandmoney= this.$refs.paged.$refs.grid.model.sums
237
- for (let i in this.all) {
238
- this.money += i.f_oughtamount
239
- this.gas += i.f_oughtfee
240
- }
241
- },
242
- methods: {
243
- // search() {
244
- // this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}'`
245
- // this.model.search(this.condition, this.model)
246
- // },
247
- async search () {
248
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' `
249
- this.model.search(this.condition, this.model)
250
- let http = new HttpResetClass()
251
- let res = await http.load('POST', 'rs/sql/sale_HandplanQuery', {
252
- data: {
253
- condition: this.condition
254
- }
255
- }, {resolveMsg: null, rejectMsg: null})
256
- this.printModel.rows = res.data
257
-
258
- this.starthead = '用户编号:' + this.row.f_userinfo_code + '&emsp;&emsp;用户姓名:' + this.row.f_user_name + '&emsp;&emsp;用户地址:' + this.row.f_address
259
- },
260
- // 多选框初始化
261
- selectInit () {
262
- this.rowsdata = []
263
- this.all = []
264
- this.radio = []
265
- },
266
- print () {
267
- console.log('====================================')
268
- console.log('print')
269
- console.log(this.printModel)
270
- this.selectInit()
271
- },
272
- select () {
273
- let index = this.model.pageIndex - 1
274
- if (!this.radio[index]) {
275
- this.radio.$set(index, [])
276
- }
277
- if (this.all[index]) {
278
- // 数据
279
- this.rowsdata[index] = Object.assign([], this.model.rows)
280
- // 勾选
281
- for (var i = 0; i < this.model.rows.length; i++) {
282
- this.radio[index].$set(i, true)
283
- }
284
- } else {
285
- // 数据
286
- this.rowsdata[index] = []
287
- // 不勾选
288
- for (var i = 0; i < this.model.rows.length; i++) {
289
- this.radio[index].$set(i, false)
290
- }
291
- }
292
- let z = 0
293
- for (let i = 0; i < this.all.length; i++) {
294
- for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
295
- this.printModel.rows[z++] = this.rowsdata[i][j]
296
- }
297
- }
298
- },
299
- selectOne (event, row, i) {
300
- let index = this.model.pageIndex - 1
301
- if (!this.rowsdata[index]) {
302
- this.rowsdata[index] = []
303
- }
304
- if (!this.radio[index]) {
305
- this.radio.$set(index, [])
306
- }
307
- if (event.target.checked) {
308
- // 数据
309
- this.rowsdata[index][i] = row
310
- // 勾选
311
- this.radio[index].$set(i, true)
312
- // 判断是否全部选中
313
- var allState = true
314
- if (this.model.rows.length != this.radio[index].length) {
315
- allState = false
316
- }
317
- for (var state of this.radio[index]) {
318
- if (!state) {
319
- allState = false
320
- }
321
- }
322
- if (allState) {
323
- this.all.$set(index, true)
324
- } else {
325
- this.all.$set(index, false)
326
- }
327
- } else {
328
- // 数据
329
- this.rowsdata[index][i] = []
330
- // 不勾选
331
- this.radio[index].$set(i, false)
332
- // 任意取消一个则全选状态设为false
333
- this.all.$set(index, false)
334
- }
335
- let z = 0
336
- this.printModel.rows = []
337
- for (let i = 0; i < this.all.length; i++) {
338
- for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
339
- if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
340
- this.printModel.rows[z++] = this.rowsdata[i][j]
341
- }
342
- }
343
- }
344
- }
345
- },
346
- computed: {
347
- whetherpaies () {
348
- return [
349
- {label: '全部', value: ''},
350
- {label: '已缴费', value: '是'},
351
- {label: '未缴费', value: '否'}
352
- ]
353
- },
354
- ischecked () {
355
- return function (index, i) {
356
- if (!this.radio[index]) {
357
- return false
358
- }
359
- return this.radio[index][i]
360
- }
361
- }
362
- }
363
- }
364
- </script>
365
-
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
+ </div>
61
+ </div>
62
+
63
+
64
+ </div>
65
+
66
+ </criteria>
67
+ <data-grid :model="model" class="list_area table_sy" class="list_area table_sy" partial='list' v-ref:grid>
68
+ <template partial='head'>
69
+ <tr>
70
+
71
+ <th v-show="false"><nobr>抄表月份</nobr></th>
72
+ <th v-show="false"><nobr>用气周期</nobr></th>
73
+ <th><nobr>抄表日期</nobr></th>
74
+ <th><nobr>录入日期</nobr></th>
75
+ <th><nobr>上期底数</nobr></th>
76
+ <th><nobr>本期底数</nobr></th>
77
+ <th><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><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
+ <th><nobr>录入员</nobr></th>
93
+ </tr>
94
+ </template>
95
+ <template partial='body' partial='list' v-ref:grid>
96
+ <tr>
97
+ <td style="text-align:center" v-show="false">{{row.f_hand_date.substring(0,7)}}</td>
98
+ <th v-show="false"><nobr >{{row.datas}}</nobr></th>
99
+ <td style="text-align:center">{{row.f_input_date}}</td>
100
+ <td style="text-align:center">{{row.f_hand_date}}</td>
101
+ <td style="text-align:center">{{row.f_last_tablebase}}</td>
102
+ <td style="text-align:center">{{row.f_tablebase}}</td>
103
+ <td style="text-align:center">{{row.f_balance}}</td>
104
+ <td style="text-align:center">{{row.f_oughtamount}}</td>
105
+ <td style="text-align:center">{{row.f_oughtfee}}</td>
106
+ <td style="text-align:center">{{row.f_curbalance}}</td>
107
+ <td style="text-align:center">{{row.f_whether_pay}}</td>
108
+ <td style="text-align:center">{{row.f_stair1price}}</td>
109
+ <td style="text-align:center">{{row.f_stairamount1}}</td>
110
+ <td style="text-align:center">{{row.f_stair2price}}</td>
111
+ <td style="text-align:center">{{row.f_stair2amount}}</td>
112
+ <td style="text-align:center">{{row.f_stair3price}}</td>
113
+ <td style="text-align:center">{{row.f_stair3amount}}</td>
114
+ <td style="text-align:center">{{row.f_meter_state}}</td>
115
+ <td style="text-align:center">{{row.f_result_state?row.f_result_state:''}}</td>
116
+ <td style="text-align:center">{{row.f_hand_state}}</td>
117
+ <td style="text-align:center">{{row.f_inputtor}}</td>
118
+ <td style="text-align:center">{{row.f_input_person}}</td>
119
+ </tr>
120
+ </template>
121
+ <template partial='foot'></template>
122
+ </data-grid>
123
+ </criteria-paged>
124
+
125
+ </div>
126
+ <table class="table-hover">
127
+ <tr class="table-bordered" style="position: relative">
128
+ <td
129
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
130
+ 汇总信息
131
+ </td>
132
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
133
+ 用气量合计:&emsp;{{model.sums.f_oughtamount}}
134
+ </td>
135
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
136
+ 用气金额合计:&emsp;{{model.sums.f_oughtfee}}
137
+ </td>
138
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
139
+ 一阶用气量合计:&emsp;{{model.sums.f_stairamount1}}
140
+ </td>
141
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
142
+ 一阶用气金额合计:&emsp;{{model.sums.f_stair1fee}}
143
+ </td>
144
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
145
+ 二阶用气量合计:&emsp;{{model.sums.f_stair2amount}}
146
+ </td>
147
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
148
+ 二阶用气金额合计:&emsp;{{model.sums.f_stair2fee}}
149
+ </td>
150
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
151
+ 三阶用气金额合计:&emsp;{{model.sums.f_stair3amount}}
152
+ </td>
153
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
154
+ 三阶用气金额合计:&emsp;{{model.sums.f_stair3fee}}
155
+ </td>
156
+ <!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">-->
157
+ <!--欠费气量合计:&emsp;{{model.sums.f_totalowe_gas}}-->
158
+ <!--</td>-->
159
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
160
+ 欠费金额合计:&emsp;{{model.sums.f_qianfei_fee}}
161
+ </td>
162
+ </tr>
163
+ </table>
164
+ </div>
165
+
166
+ </template>
167
+
168
+ <script>
169
+ import {HttpResetClass, PagedList} from 'vue-client'
170
+
171
+ export default {
172
+ title: '抄表',
173
+ data () {
174
+ return {
175
+ condition: '1=1',
176
+ model: new PagedList('rs/sql/sale_HandplanQuery', 20, {}, {
177
+ f_oughtfee: 0,
178
+ f_oughtamount: 0,
179
+ f_qianfei_fee: 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
+ lists: [],
189
+ meterstates: this.$appdata.getParam('抄表状态') ? [{
190
+ label: '全部',
191
+ value: ''
192
+ }, ...this.$appdata.getParam('抄表状态')] : [],
193
+ handstates: this.$appdata.getParam('表单状态') ? [{
194
+ label: '全部',
195
+ value: ''
196
+ }, ...this.$appdata.getParam('表单状态')] : [],
197
+ // 控制单选
198
+ radio: [],
199
+ // 选中的页
200
+ all: [],
201
+ // row数据
202
+ rowsdata: [],
203
+ starthead: '',
204
+ fields: {'f_userinfo_code': '用户编号',
205
+ 'f_user_name': '姓名',
206
+ 'f_last_tablebase': '上期底数',
207
+ 'f_tablebase': '本期底数',
208
+ 'f_oughtamount': '用气量',
209
+ 'f_oughtfee': '用气金额',
210
+ 'f_qianfei_fee': '欠费金额合计',
211
+ 'f_detailprice': '结算明细',
212
+ 'datas': '用气周期',
213
+ 'money1': '滞纳金',
214
+ 'price1': '单价',
215
+ 'f_oughtfee1': '应交金额',
216
+ 'f_inputtor': '抄表员',
217
+ 'f_input_date': '抄表日期',
218
+ 'f_whether_pay': '是否缴费',
219
+ 'f_hand_date': '录入时间'},
220
+ defaultfield: [
221
+ 'datas', 'f_last_tablebase', 'f_last_tablebase', 'f_oughtamount', 'f_oughtfee', 'f_oughtfee1', 'money1', 'price1'
222
+ ],
223
+ fooinfo: [
224
+ '单位',
225
+ '收款人'
226
+ ],
227
+ printModel: {
228
+ rows: []
229
+ }
230
+ }
231
+ },
232
+ props: ['row'],
233
+ ready () {
234
+ this.$refs.paged.$refs.criteria.model.f_hand_state = ['有效']
235
+ this.$refs.paged.$refs.criteria.search()
236
+ // this.sumgasandmoney= this.$refs.paged.$refs.grid.model.sums
237
+ for (let i in this.all) {
238
+ this.money += i.f_oughtamount
239
+ this.gas += i.f_oughtfee
240
+ }
241
+ },
242
+ methods: {
243
+ // search() {
244
+ // this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}'`
245
+ // this.model.search(this.condition, this.model)
246
+ // },
247
+ async search () {
248
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' `
249
+ this.model.search(this.condition, this.model)
250
+ let http = new HttpResetClass()
251
+ let res = await http.load('POST', 'rs/sql/sale_HandplanQuery', {
252
+ data: {
253
+ condition: this.condition
254
+ }
255
+ }, {resolveMsg: null, rejectMsg: null})
256
+ this.printModel.rows = res.data
257
+
258
+ this.starthead = '用户编号:' + this.row.f_userinfo_code + '&emsp;&emsp;用户姓名:' + this.row.f_user_name + '&emsp;&emsp;用户地址:' + this.row.f_address
259
+ },
260
+ // 多选框初始化
261
+ selectInit () {
262
+ this.rowsdata = []
263
+ this.all = []
264
+ this.radio = []
265
+ },
266
+ print () {
267
+ console.log('====================================')
268
+ console.log('print')
269
+ console.log(this.printModel)
270
+ this.selectInit()
271
+ },
272
+ select () {
273
+ let index = this.model.pageIndex - 1
274
+ if (!this.radio[index]) {
275
+ this.radio.$set(index, [])
276
+ }
277
+ if (this.all[index]) {
278
+ // 数据
279
+ this.rowsdata[index] = Object.assign([], this.model.rows)
280
+ // 勾选
281
+ for (var i = 0; i < this.model.rows.length; i++) {
282
+ this.radio[index].$set(i, true)
283
+ }
284
+ } else {
285
+ // 数据
286
+ this.rowsdata[index] = []
287
+ // 不勾选
288
+ for (var i = 0; i < this.model.rows.length; i++) {
289
+ this.radio[index].$set(i, false)
290
+ }
291
+ }
292
+ let z = 0
293
+ for (let i = 0; i < this.all.length; i++) {
294
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
295
+ this.printModel.rows[z++] = this.rowsdata[i][j]
296
+ }
297
+ }
298
+ },
299
+ selectOne (event, row, i) {
300
+ let index = this.model.pageIndex - 1
301
+ if (!this.rowsdata[index]) {
302
+ this.rowsdata[index] = []
303
+ }
304
+ if (!this.radio[index]) {
305
+ this.radio.$set(index, [])
306
+ }
307
+ if (event.target.checked) {
308
+ // 数据
309
+ this.rowsdata[index][i] = row
310
+ // 勾选
311
+ this.radio[index].$set(i, true)
312
+ // 判断是否全部选中
313
+ var allState = true
314
+ if (this.model.rows.length != this.radio[index].length) {
315
+ allState = false
316
+ }
317
+ for (var state of this.radio[index]) {
318
+ if (!state) {
319
+ allState = false
320
+ }
321
+ }
322
+ if (allState) {
323
+ this.all.$set(index, true)
324
+ } else {
325
+ this.all.$set(index, false)
326
+ }
327
+ } else {
328
+ // 数据
329
+ this.rowsdata[index][i] = []
330
+ // 不勾选
331
+ this.radio[index].$set(i, false)
332
+ // 任意取消一个则全选状态设为false
333
+ this.all.$set(index, false)
334
+ }
335
+ let z = 0
336
+ this.printModel.rows = []
337
+ for (let i = 0; i < this.all.length; i++) {
338
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
339
+ if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
340
+ this.printModel.rows[z++] = this.rowsdata[i][j]
341
+ }
342
+ }
343
+ }
344
+ }
345
+ },
346
+ computed: {
347
+ whetherpaies () {
348
+ return [
349
+ {label: '全部', value: ''},
350
+ {label: '已缴费', value: '是'},
351
+ {label: '未缴费', value: '否'}
352
+ ]
353
+ },
354
+ ischecked () {
355
+ return function (index, i) {
356
+ if (!this.radio[index]) {
357
+ return false
358
+ }
359
+ return this.radio[index][i]
360
+ }
361
+ }
362
+ }
363
+ }
364
+ </script>
365
+