sale-client 3.7.47 → 3.7.49

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 (51) hide show
  1. package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
  2. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/5.2.1/gc.properties +0 -0
  4. package/.gradle/8.10/checksums/checksums.lock +0 -0
  5. package/.gradle/8.10/dependencies-accessors/gc.properties +0 -0
  6. package/.gradle/8.10/executionHistory/executionHistory.bin +0 -0
  7. package/.gradle/8.10/executionHistory/executionHistory.lock +0 -0
  8. package/.gradle/8.10/fileChanges/last-build.bin +0 -0
  9. package/.gradle/8.10/fileHashes/fileHashes.bin +0 -0
  10. package/.gradle/8.10/fileHashes/fileHashes.lock +0 -0
  11. package/.gradle/8.10/gc.properties +0 -0
  12. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  13. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  14. package/.gradle/file-system.probe +0 -0
  15. package/.gradle/vcs-1/gc.properties +0 -0
  16. package/package.json +1 -1
  17. package/src/filiale/jingyang/EticketPrint.vue +1 -1
  18. package/src/filiale/kelai/UserInfoDetailManageNew.vue +230 -0
  19. package/src/filiale/kelai/ic_detail/AutomaticPurse.vue +300 -0
  20. package/src/filiale/kelai/ic_detail/CardHandRecord.vue +308 -0
  21. package/src/filiale/kelai/ic_detail/ChangeMeterQueryUser.vue +240 -0
  22. package/src/filiale/kelai/ic_detail/ChangeRecord.vue +235 -0
  23. package/src/filiale/kelai/ic_detail/ChargeQueryUser.vue +544 -0
  24. package/src/filiale/kelai/ic_detail/ChargeRecordQuery.vue +102 -0
  25. package/src/filiale/kelai/ic_detail/DeveiceRecord.vue +251 -0
  26. package/src/filiale/kelai/ic_detail/FillCardQueryUser.vue +210 -0
  27. package/src/filiale/kelai/ic_detail/FillGasQueryUser.vue +229 -0
  28. package/src/filiale/kelai/ic_detail/HandQueryUser.vue +390 -0
  29. package/src/filiale/kelai/ic_detail/MachineRecordQuery.vue +261 -0
  30. package/src/filiale/kelai/ic_detail/MeterParam.vue +152 -0
  31. package/src/filiale/kelai/ic_detail/OtherChargeQueryUser.vue +251 -0
  32. package/src/filiale/kelai/ic_detail/OtherChargeQueryUserDetail.vue +81 -0
  33. package/src/filiale/kelai/ic_detail/PriceAdjustmentQueryUser.vue +313 -0
  34. package/src/filiale/kelai/ic_detail/PriceChangeQueryUser.vue +194 -0
  35. package/src/filiale/kelai/ic_detail/RecordQueryUser.vue +266 -0
  36. package/src/filiale/kelai/ic_detail/Repurchase.vue +132 -0
  37. package/src/filiale/kelai/ic_detail/TransferQueryUser.vue +223 -0
  38. package/src/filiale/kelai/ic_detail/UserDeviceQuery.vue +252 -0
  39. package/src/filiale/kelai/ic_detail/UserKeyRecord.vue +152 -0
  40. package/src/filiale/kelai/ic_detail/WebAutomaticPurse.vue +298 -0
  41. package/src/filiale/kelai/ic_detail/WebChargeQueryUser.vue +389 -0
  42. package/src/filiale/kelai/ic_detail/WebHandQueryUser.vue +411 -0
  43. package/src/filiale/kelai/ic_detail/contractSigningList.vue +117 -0
  44. package/src/filiale/kelai/ic_detail/insertKeyUser.vue +386 -0
  45. package/src/filiale/kelai/iot_detail/QueryHistoryInstruct.vue +304 -0
  46. package/src/filiale/kelai/iot_detail/QueryInstruct.vue +342 -0
  47. package/src/filiale/kelai/iot_detail/WatchCollection.vue +127 -0
  48. package/src/filiale/kelai/iot_detail/WatchDealWarning.vue +236 -0
  49. package/src/filiale/kelai/iot_detail/WatchWarning.vue +24 -0
  50. package/src/filiale/kelai/sale.js +1 -0
  51. package/src/plugins/GetSaleParams.js +5 -5
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ #Wed Mar 18 10:18:57 CST 2026
2
+ gradle.version=5.2.1
Binary file
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.7.47",
3
+ "version": "3.7.49",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -84,7 +84,7 @@ export default {
84
84
  retry,
85
85
  isTax: is_tax === '不征税' ? 0 : 1,
86
86
  invoice_kind: invoice_type,
87
- eticket_id: model.id,
87
+ // eticket_id: model.id,
88
88
  f_buy_openbank: model.f_paper_account,
89
89
  f_buy_phone: model.f_buy_phone,
90
90
  bill_type: model.f_print ? model.f_print : null,
@@ -0,0 +1,230 @@
1
+ <template>
2
+ <div class="binary flex" >
3
+ <div class="row binary-left flex" style="width:99%;height:98%;margin-bottom:0px">
4
+ <div class="auto">
5
+ <user-base-info-new :row="row" :buttonshow="buttonshow"
6
+ @refresh="search"
7
+ @cancel-main="cancel"
8
+ @cancel-re="cancelRe"
9
+ @search-main="search"></user-base-info-new></div>
10
+ <saletabbut v-if="row" v-ref:list style="height:72%;margin-top: 1%;overflow-y: scroll">
11
+ <saletab header="流水查询" v-if="permission('流水查询')">
12
+ <record-query-user :row="row"></record-query-user>
13
+ </saletab>
14
+ <saletab header="机表流水查询" v-if="permission('机表流水查询')&&row.f_meter_type.includes('机表')">
15
+ <machine-record-query :row="row" v-if="show == '机表流水查询'" @deal-msg="dealMsg"></machine-record-query>
16
+ </saletab>
17
+ <saletab header="收费查询" v-if="!newWebHand && permission('收费查询')">
18
+ <charge-query-user :row="row" v-if="show == '收费查询'" @deal-msg="dealMsg"></charge-query-user>
19
+ </saletab>
20
+ <saletab header="收费查询" v-if="newWebHand && permission('收费查询')">
21
+ <charge-query-user :row="row" v-if="show == '收费查询'" @deal-msg="dealMsg"></charge-query-user>
22
+ </saletab>
23
+ <saletab header="累购查询" v-if="permission('累购查询')">
24
+ <Repurchase :row="row" v-if="show == '累购查询'" @deal-msg="dealMsg"></Repurchase>
25
+ </saletab>
26
+ <saletab header="下账查询" v-if="!newWebHand && row.f_meter_type.includes('物联网表')&&permission('自动下账查询')">
27
+ <automatic-purse :row="row" @deal-msg="dealMsg"></automatic-purse>
28
+ </saletab>
29
+ <saletab header="下账查询" v-if="newWebHand && row.f_meter_type.includes('物联网表')&&permission('自动下账查询')">
30
+ <web-automatic-purse :row="row" @deal-msg="dealMsg"></web-automatic-purse>
31
+ </saletab>
32
+ <saletab header="抄表记录" v-if="row.f_meter_type.includes('卡表')&&permission('抄表记录')">
33
+ <card-hand-record :row="row" v-if="show == '抄表记录'" @deal-msg="dealMsg"></card-hand-record>
34
+ </saletab>
35
+ <saletab header="抄表记录" v-if="!newWebHand && !row.f_meter_type.includes('卡表')&&permission('抄表记录')">
36
+ <hand-query-user :row="row" v-if="show == '抄表记录'" @deal-msg="dealMsg"></hand-query-user>
37
+ </saletab>
38
+ <saletab header="抄表记录" v-if="newWebHand && !row.f_meter_type.includes('卡表')&&permission('抄表记录')">
39
+ <web-hand-query-user :row="row" v-if="show == '抄表记录'" @deal-msg="dealMsg"></web-hand-query-user>
40
+ </saletab>
41
+ <saletab header="补卡查询" v-if="row.f_meter_type.includes('卡表')&&permission('补卡查询')">
42
+ <fill-card-query-user :row="row" v-if="show == '补卡查询'" @deal-msg="dealMsg"></fill-card-query-user>
43
+ </saletab>
44
+ <saletab header="补气查询" v-if="permission('补气查询')">
45
+ <fill-gas-query-user :row="row" v-if="show == '补气查询'" @deal-msg="dealMsg"></fill-gas-query-user>
46
+ </saletab>
47
+ <saletab header="换表查询" v-if="permission('换表查询')">
48
+ <change-meter-query-user :row="row" v-if="show == '换表查询'" @deal-msg="dealMsg"></change-meter-query-user>
49
+ </saletab>
50
+ <saletab header="其他收费" v-if="permission('其他收费')">
51
+ <other-charge-query-user :row="row" v-if="show == '其他收费'" @deal-msg="dealMsg"></other-charge-query-user>
52
+ </saletab>
53
+ <saletab header="过户查询" v-if="permission('过户查询')">
54
+ <transfer-query-user :row="row" v-if="show == '过户查询'" @deal-msg="dealMsg"></transfer-query-user>
55
+ </saletab>
56
+ <saletab header="价格调整" v-if="permission('价格调整')">
57
+ <price-change-query-user :row="row" v-if="show == '价格调整'" @deal-msg="dealMsg"></price-change-query-user>
58
+ </saletab>
59
+ <saletab header="附件查看" v-if="permission('附件查看')">
60
+ <upload-file-history :row="row" v-if="show == '附件查看'" @deal-msg="dealMsg"></upload-file-history>
61
+ </saletab>
62
+ <saletab header="变更记录" v-if="permission('变更记录')">
63
+ <change-record :row="row" v-if="show == '变更记录'" @deal-msg="dealMsg"></change-record>
64
+ </saletab>
65
+ <saletab header="指令查看" v-if="row.f_meter_type.includes('物联网表')&&permission('指令查看')">
66
+ <query-instruct :row="row" v-if="show == '指令查看'" @deal-msg="dealMsg"></query-instruct>
67
+ </saletab>
68
+ <saletab header="历史指令查看" v-if="row.f_meter_type.includes('物联网表')&&permission('历史指令查看')">
69
+ <query-history-instruct :row="row" v-if="show == '历史指令查看'" @deal-msg="dealMsg"></query-history-instruct>
70
+ </saletab>
71
+ <saletab header="异常报警" v-if="row.f_meter_type.includes('物联网表')&&permission('异常报警')">
72
+ <watch-warning :row="row" v-if="show == '异常报警'" @deal-msg="dealMsg"></watch-warning>
73
+ </saletab>
74
+ <saletab header="表具采集" v-if="row.f_meter_type.includes('物联网表')&&permission('表具采集')">
75
+ <watch-collection :row="row" v-if="show == '表具采集'" @deal-msg="dealMsg"></watch-collection>
76
+ </saletab>
77
+ <saletab header="调价补差" v-if="permission('调价补差')">
78
+ <price-adjustment-query-user :row="row" v-if="show == '调价补差'" @deal-msg="dealMsg"></price-adjustment-query-user>
79
+ </saletab>
80
+ <saletab header="设备查询" v-if="permission('设备查询')">
81
+ <deveice-record :row="row" v-if="show == '设备查询'" @deal-msg="dealMsg"></deveice-record>
82
+ </saletab>
83
+ <saletab header="流量计参数查看" v-if="permission('流量计参数查看')">
84
+ <meter-param :row="row" v-if="show == '流量计参数查看'" @deal-msg="dealMsg"></meter-param>
85
+ </saletab>
86
+ <saletab header="表使用量图表" v-if="permission('流量计参数查看')">
87
+ <table-usage-chart :row="row" v-if="show == '表使用量图表'" @deal-msg="dealMsg"></table-usage-chart>
88
+ </saletab>
89
+ <saletab header="用户设备查询" v-if="permission('用户设备查看')">
90
+ <user-device-query :row="row" v-if="show == '用户设备查询'" @deal-msg="dealMsg"></user-device-query>
91
+ </saletab>
92
+ <saletab header="合同查看" v-if="permission('合同查看')">
93
+ <contract-signing-list :row="row" v-if="show == '合同查看'" @deal-msg="dealMsg"></contract-signing-list>
94
+ </saletab>
95
+ <!-- <saletab header="报装流转记录" v-if="permission('报装流转记录查看')">-->
96
+ <!-- <supervisory-control :row="row" ></supervisory-control>-->
97
+ <!-- </saletab>-->
98
+ <!-- <saletab header="报装收费记录" v-if="permission('报装收费记录查看')">-->
99
+ <!-- <apply-charge-search :row="row" ></apply-charge-search>-->
100
+ <!-- </saletab>-->
101
+ </saletabbut>
102
+ </div>
103
+ </div>
104
+ </template>
105
+
106
+ <script>
107
+ import {HttpResetClass} from 'vue-client'
108
+ // 导入IC卡相关查询界面
109
+ import ChangeMeterQueryUser from './ic_detail/ChangeMeterQueryUser'
110
+ import ChargeQueryUser from './ic_detail/ChargeQueryUser'
111
+ import ChargeRecordQueryUser from './ic_detail/ChargeRecordQuery'
112
+ import FillCardQueryUser from './ic_detail/FillCardQueryUser'
113
+ import HandQueryUser from './ic_detail/HandQueryUser'
114
+ import OtherChargeQueryUser from './ic_detail/OtherChargeQueryUser'
115
+ import RecordQueryUser from './ic_detail/RecordQueryUser'
116
+ import TransferQueryUser from './ic_detail/TransferQueryUser'
117
+ import CardHandRecord from './ic_detail/CardHandRecord'
118
+ import AutomaticPurse from './ic_detail/AutomaticPurse'
119
+ import Repurchase from './ic_detail/Repurchase'
120
+ import MachineRecordQuery from './ic_detail/MachineRecordQuery'
121
+ import WebAutomaticPurse from './ic_detail/WebAutomaticPurse'
122
+ import WebChargeQueryUser from './ic_detail/WebChargeQueryUser'
123
+ import WebHandQueryUser from './ic_detail/WebHandQueryUser'
124
+ import UserDeviceQuery from './ic_detail/UserDeviceQuery'
125
+ import contractSigningList from './ic_detail/contractSigningList'
126
+ import UserKeyRecord from './ic_detail/UserKeyRecord'
127
+ // import SupervisoryControl from './apply_detail/Supervisory/SupervisoryControl'
128
+ // import ApplyChargeSearch from './apply_detail/applyCharge/ApplyChargeSearch'
129
+ // 导入物联网相关查询
130
+ import QueryInstruct from './iot_detail/QueryInstruct'
131
+ import QueryHistoryInstruct from './iot_detail/QueryHistoryInstruct'
132
+ import WatchCollection from './iot_detail/WatchCollection'
133
+ import WatchWarning from './iot_detail/WatchWarning'
134
+ import PriceChangeQueryUser from './ic_detail/PriceChangeQueryUser'
135
+ import ChangeRecord from './ic_detail/ChangeRecord'
136
+ import PriceAdjustmentQueryUser from './ic_detail/PriceAdjustmentQueryUser'
137
+ import MeterParam from './ic_detail/MeterParam'
138
+ import DeveiceRecord from './ic_detail/DeveiceRecord'
139
+
140
+ export default {
141
+ title: '用户详细信息',
142
+ props: ['f_userfiles_id', 'f_userinfo_id', 'f_userinfo_code', 'parentname', 'buttonshow'],
143
+ components: {
144
+ PriceAdjustmentQueryUser,
145
+ PriceChangeQueryUser,
146
+ AutomaticPurse,
147
+ WebAutomaticPurse,
148
+ WebChargeQueryUser,
149
+ WebHandQueryUser,
150
+ Repurchase,
151
+ ChangeMeterQueryUser,
152
+ ChargeQueryUser,
153
+ ChargeRecordQueryUser,
154
+ FillCardQueryUser,
155
+ HandQueryUser,
156
+ OtherChargeQueryUser,
157
+ RecordQueryUser,
158
+ TransferQueryUser,
159
+ WatchWarning,
160
+ WatchCollection,
161
+ QueryInstruct,
162
+ QueryHistoryInstruct,
163
+ ChangeRecord,
164
+ CardHandRecord,
165
+ MeterParam,
166
+ DeveiceRecord,
167
+ MachineRecordQuery,
168
+ UserDeviceQuery,
169
+ contractSigningList,
170
+ UserKeyRecord
171
+ // SupervisoryControl,
172
+ // ApplyChargeSearch
173
+ },
174
+ data () {
175
+ return {
176
+ row: null,
177
+ name: '自动下账查询',
178
+ newWebHand: this.$appdata.getSingleValue('新抄表'),
179
+ show: ''
180
+ }
181
+ },
182
+ ready () {
183
+ this.search()
184
+ console.log(this.$login)
185
+ },
186
+ methods: {
187
+ permission (name) {
188
+ if (this.$login.r.find(value => value == '收费综合查询')) {
189
+ if (!this.$login.r.find(value => value == name)) {
190
+ return false
191
+ }
192
+ }
193
+ return true
194
+ },
195
+ async search () {
196
+ let http = new HttpResetClass()
197
+ let condition = ' 1 = 1'
198
+ if (this.f_userfiles_id) {
199
+ condition = `f_userfiles_id = '${this.f_userfiles_id}'`
200
+ } else if (this.f_userinfo_id) {
201
+ condition = `f_userinfo_id = '${this.f_userinfo_id}'`
202
+ } else if (this.f_userinfo_code) {
203
+ condition = `f_userinfo_code = '${this.f_userinfo_code}'`
204
+ }
205
+
206
+ let getBaseInfo = await http.load('POST', 'rs/sql/iot_getUserBaseData',
207
+ {data: {condition: condition}}, {resolveMsg: null, rejectMsg: '获取基本信息出错'})
208
+ this.row = getBaseInfo.data[0]
209
+ this.row.parentname = this.parentname || ''
210
+ },
211
+
212
+ cancel (val) {
213
+ this.$emit('cancel-main', val)
214
+ },
215
+
216
+ cancelRe (val) {
217
+ this.$emit('cancel-re', val)
218
+ },
219
+
220
+ butOper (val) {
221
+ this.name = val
222
+ }
223
+ },
224
+ watch: {
225
+ 'f_userinfo_id' () {
226
+ this.search()
227
+ }
228
+ }
229
+ }
230
+ </script>
@@ -0,0 +1,300 @@
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" width="100%">
8
+ <div class="col-sm-2 form-group">
9
+ <label class="font_normal_body">开始时间</label>
10
+ <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_start_date"
11
+ class="datepicker"
12
+ condition="f_operate_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" >结束时间</label>
20
+ <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_end_date"
21
+ class="datepicker"
22
+ condition="f_operate_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_state" v-model='model.f_state'
31
+ style="width:60%"
32
+ :options='$parent.$parent.jiaofeistates' placeholder='缴费状态'
33
+ close-on-select
34
+ condition="s.f_state = '{}'"></v-select>
35
+ </div>
36
+
37
+ <div style="float: right">
38
+ <button @click="search()" class="button_search" style="margin-right: 10px" v-el:cba>查询</button>
39
+ <print-data :defaultfield="$parent.$parent.defaultfield" :field="$parent.$parent.fields" :is-selected="true" :model="$parent.$parent.printModel"
40
+ @print-data="$parent.$parent.print()" print-name="购气流水"></print-data>
41
+ </div>
42
+ </div>
43
+ </div>
44
+
45
+
46
+ </criteria>
47
+ <data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
48
+ <template partial='head'>
49
+ <tr>
50
+ <th><nobr>缴费日期</nobr></th>
51
+ <th><nobr>缴费时间</nobr></th>
52
+ <!-- <th><nobr>表号</nobr></th>-->
53
+ <th><nobr>上期指数</nobr></th>
54
+ <th><nobr>本期指数</nobr></th>
55
+ <th>使用方量</th>
56
+ <th><nobr>扣费单价</nobr></th>
57
+ <th><nobr>扣费金额</nobr></th>
58
+ <th><nobr>表内余额</nobr></th>
59
+ </tr>
60
+ </template>
61
+ <template partial='body' partial='list' v-ref:grid>
62
+ <tr >
63
+ <td style="text-align:center">{{row.f_operate_date.substring(0,10)}}</td>
64
+ <td style="text-align:center">{{row.f_operate_date.substring(11,19)}}</td>
65
+ <td style="text-align:center">{{row.f_last_tablebase}}</td>
66
+ <td style="text-align:center">{{row.f_tablebase}}</td>
67
+ <td style="text-align:center">{{row.f_pregas}}</td>
68
+ <td style="text-align:center">{{row.f_price}}</td>
69
+ <td style="text-align:center">{{row.f_preamount}}</td>
70
+ <td style="text-align:center">{{row.f_meterBalanceAmt}}</td>
71
+ </tr>
72
+ </template>
73
+ <template partial='foot'></template>
74
+ </data-grid>
75
+ </criteria-paged>
76
+ </div>
77
+ <table class="table-hover">
78
+ <tr class="table-bordered" style="position: relative">
79
+ <td
80
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
81
+ 汇总信息
82
+ </td>
83
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
84
+ 气量合计:&emsp;{{model.sums.f_pregas}}
85
+ </td>
86
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
87
+ 金额合计:&emsp;{{model.sums.f_preamount}}
88
+ </td>
89
+ </tr>
90
+ </table>
91
+ <reissue-bill :data="reissue_data" :show.sync="reissue_show" @cancel="reissueOper()" @reissue-success="reissueSucc()" v-if="reissue_show"></reissue-bill>
92
+
93
+ </div>
94
+ </template>
95
+
96
+ <script>
97
+ import {HttpResetClass, PagedList} from 'vue-client'
98
+ import co from 'co'
99
+ let reprintGen = function *(self, row) {
100
+ try {
101
+ let reissueData = {}
102
+ reissueData = Object.assign({}, reissueData, row)
103
+
104
+ reissueData.f_bill_type = row.type
105
+ reissueData.f_bill_style = '普通收据'
106
+ reissueData.f_operator = self.$login.f.name
107
+ reissueData.f_operatorid = self.$login.f.id
108
+ reissueData.f_orgid = self.$login.f.orgid
109
+ reissueData.f_orgname = self.$login.f.orgs
110
+ reissueData.f_depid = self.$login.f.depids
111
+ reissueData.f_depname = self.$login.f.deps
112
+ reissueData.billUrl = self.getBillUrl(row.type)
113
+
114
+ self.reissue_data = reissueData
115
+ self.reissue_show = true
116
+ } catch (error) {
117
+ if (error.status) {
118
+ self.$warn(`加载数据出错, ${JSON.stringify(error)}`, 'CardList')
119
+ }
120
+ throw error
121
+ }
122
+ }
123
+ export default {
124
+ title: '自动下账',
125
+ data () {
126
+ return {
127
+ reissue_show: false,
128
+ reissue_data: null,
129
+ condition: '1=1',
130
+ model: new PagedList('rs/sql/sale_AutomaticPurse', 20, {}, {
131
+ f_preamount: 0,
132
+ f_pregas: 0
133
+ }),
134
+ show: false,
135
+ list: [],
136
+ jiaofeistates: this.$appdata.getParam('缴费状态') ? [{
137
+ label: '全部',
138
+ value: ''
139
+ }, ...this.$appdata.getParam('缴费状态')] : [],
140
+ // 控制单选
141
+ radio: [],
142
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
143
+ // 选中的页
144
+ all: [],
145
+ // row数据
146
+ rowsdata: [],
147
+ fields: {'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_preamount': '购气金额', 'f_pregas': '购气量', 'f_operate_date,': '缴费时间', 'f_operator': '操作员', 'f_comments': '备注'},
148
+ defaultfield: [
149
+ 'f_userinfo_code', 'f_user_name', 'f_preamount', 'f_pregas', 'f_operate_date', 'f_operator', 'f_comments'
150
+ ],
151
+ printModel: {
152
+ rows: []
153
+ }
154
+ }
155
+ },
156
+ props: ['row'],
157
+ ready () {
158
+ this.$refs.paged.$refs.criteria.model.f_state = ['有效']
159
+ this.$refs.paged.$refs.criteria.search()
160
+ },
161
+ methods: {
162
+ async search () {
163
+ console.log('aaa:', this.$refs.paged.$refs.criteria.condition)
164
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' `
165
+ this.model.search(this.condition, this.model)
166
+ let http = new HttpResetClass()
167
+ let res = await http.load('POST', 'rs/sql/sale_AutomaticPurse', {
168
+ data: {
169
+ f_user_id: this.row.f_user_id,
170
+ condition: this.condition
171
+ }
172
+ }, {resolveMsg: null, rejectMsg: null})
173
+ this.printModel.rows = res.data
174
+ },
175
+ // 多选框初始化
176
+ selectInit () {
177
+ this.rowsdata = []
178
+ this.all = []
179
+ this.radio = []
180
+ },
181
+ reissueSucc () {
182
+ this.reissue_show = false
183
+ this.$dispatch('refresh')
184
+ },
185
+ reissueOper () {
186
+ this.reissue_data = null
187
+ this.reissue_show = false
188
+ },
189
+ getBillUrl (type) {
190
+ let name = ''
191
+ // 根据type数据 选择调用的Logic
192
+ if (type === '机表收费') {
193
+ name = 'rs/report/machine_bill'
194
+ } else if (type === '物联网收费') {
195
+ name = 'rs/report/iot_bill'
196
+ } else if (type === '超用收费') {
197
+ name = 'rs/report/overuse_bill'
198
+ } else if (type === '其他收费') {
199
+ name = 'rs/report/otherCharge_bill'
200
+ } else if (type === '发卡售气') {
201
+ name = 'rs/report/sendCard_bill'
202
+ } else if (type === '卡表收费') {
203
+ name = 'rs/report/card_bill'
204
+ }
205
+ return name
206
+ },
207
+ report (row) {
208
+ let reprint = reprintGen(this, row)
209
+ return co(reprint)
210
+ },
211
+ print () {
212
+ this.selectInit()
213
+ },
214
+ select () {
215
+ let index = this.model.pageIndex - 1
216
+ if (!this.radio[index]) {
217
+ this.radio.$set(index, [])
218
+ }
219
+ if (this.all[index]) {
220
+ // 数据
221
+ this.rowsdata[index] = Object.assign([], this.model.rows)
222
+ // 勾选
223
+ for (var i = 0; i < this.model.rows.length; i++) {
224
+ this.radio[index].$set(i, true)
225
+ }
226
+ } else {
227
+ // 数据
228
+ this.rowsdata[index] = []
229
+ // 不勾选
230
+ for (var i = 0; i < this.model.rows.length; i++) {
231
+ this.radio[index].$set(i, false)
232
+ }
233
+ }
234
+ let z = 0
235
+ for (let i = 0; i < this.all.length; i++) {
236
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
237
+ this.printModel.rows[z++] = this.rowsdata[i][j]
238
+ }
239
+ }
240
+ },
241
+ selectOne (event, row, i) {
242
+ let index = this.model.pageIndex - 1
243
+ if (!this.rowsdata[index]) {
244
+ this.rowsdata[index] = []
245
+ }
246
+ if (!this.radio[index]) {
247
+ this.radio.$set(index, [])
248
+ }
249
+ if (event.target.checked) {
250
+ // 数据
251
+ this.rowsdata[index][i] = row
252
+ // 勾选
253
+ this.radio[index].$set(i, true)
254
+ // 判断是否全部选中
255
+ var allState = true
256
+ if (this.model.rows.length != this.radio[index].length) {
257
+ allState = false
258
+ }
259
+ for (var state of this.radio[index]) {
260
+ if (!state) {
261
+ allState = false
262
+ }
263
+ }
264
+ if (allState) {
265
+ this.all.$set(index, true)
266
+ } else {
267
+ this.all.$set(index, false)
268
+ }
269
+ } else {
270
+ // 数据
271
+ this.rowsdata[index][i] = []
272
+ // 不勾选
273
+ this.radio[index].$set(i, false)
274
+ // 任意取消一个则全选状态设为false
275
+ this.all.$set(index, false)
276
+ }
277
+ let z = 0
278
+ this.printModel.rows = []
279
+ for (let i = 0; i < this.all.length; i++) {
280
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
281
+ if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
282
+ this.printModel.rows[z++] = this.rowsdata[i][j]
283
+ }
284
+ }
285
+ }
286
+ }
287
+ },
288
+ computed: {
289
+ ischecked () {
290
+ return function (index, i) {
291
+ if (!this.radio[index]) {
292
+ return false
293
+ }
294
+ return this.radio[index][i]
295
+ }
296
+ }
297
+ }
298
+ }
299
+ </script>
300
+