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,250 +1,250 @@
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
-
9
- <div class="col-sm-2 form-group">
10
- <label class="font_normal_body">开始时间</label>
11
- <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_start_date"
12
- class="datepicker"
13
- condition="f_operate_date >= '{} 00:00:00' "
14
- placeholder="起始时间"
15
- style="width:60%"
16
- v-model="model.f_start_date"
17
- ></datepicker>
18
- </div>
19
- <div class="col-sm-2 form-group" >
20
- <label class="font_normal_body" >结束时间</label>
21
- <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_end_date"
22
- class="datepicker"
23
- condition="f_operate_date <= '{} 23:59:59' "
24
- placeholder="结束时间"
25
- style="width:60%"
26
- v-model="model.f_end_date"
27
- ></datepicker>
28
- </div>
29
- <div class="col-sm-2 form-group">
30
- <label class="font_normal_body">是否有效</label>
31
- <v-select :value.sync="model.f_state" v-model='model.f_state'
32
- style="width:60%"
33
- :options='$parent.$parent.isstates' placeholder='是否有效'
34
- close-on-select
35
- condition="f_state = '{}'"></v-select>
36
- </div>
37
-
38
- <div style="float: right">
39
- <button @click="search()" class="button_search" style="margin-right: 10px" v-el:cba>查询</button>
40
- <print-data :defaultfield="$parent.$parent.defaultfield" :field="$parent.$parent.fields" :is-selected="true" :model="$parent.$parent.printModel"
41
- @print-data="$parent.$parent.print()" print-name="其他收费流水"></print-data>
42
- </div>
43
- </div>
44
-
45
- </div>
46
- </criteria>
47
- <data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
48
- <template partial='head'>
49
- <tr>
50
-
51
- <th><nobr>收费类型</nobr></th>
52
- <th><nobr>品名规格</nobr></th>
53
- <th><nobr>型号</nobr></th>
54
- <th><nobr>数量</nobr></th>
55
- <th><nobr>单价</nobr></th>
56
- <th><nobr>金额</nobr></th>
57
- <th><nobr>操作员</nobr></th>
58
- <th><nobr>操作日期</nobr></th>
59
- <th><nobr>状态</nobr></th>
60
- <th><nobr>备注</nobr></th>
61
- </tr>
62
- </template>
63
- <template partial='body' partial='list' v-ref:grid>
64
- <tr >
65
- <th style="text-align:center">{{row.f_brand_spec}}</th>
66
- <th style="text-align:center">{{row.f_typename}}</th>
67
- <th style="text-align:center">{{row.f_typenumber}}</th>
68
- <th style="text-align:center">{{row.f_number}}</th>
69
- <th style="text-align:center">{{row.f_unitprice}}</th>
70
- <th style="text-align:center">{{row.f_unitprice*row.f_number}}</th>
71
- <th style="text-align:center">{{row.f_operator}}</th>
72
- <th style="text-align:center">{{row.f_operate_date}}</th>
73
- <td style="text-align: center;">{{row.f_state}}</td>
74
- <th style="text-align:center">{{row.f_comments}}</th>
75
- </tr>
76
- </template>
77
- <template partial='foot'></template>
78
- </data-grid>
79
- </criteria-paged>
80
-
81
- </div>
82
- <table class="table-hover">
83
- <tr class="table-bordered" style="position: relative">
84
- <td
85
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
86
- 汇总信息
87
- </td>
88
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
89
- 金额合计:&emsp;{{model.sums.f_collection}}
90
- </td>
91
- </tr>
92
- </table>
93
- </div>
94
- <other-charge-query-user-detail v-if="showdetail" :otherchargeid="otherchargeid" :showdetail.sync="showdetail"></other-charge-query-user-detail>
95
- </template>
96
-
97
- <script>
98
- import {HttpResetClass, PagedList} from 'vue-client'
99
- import OtherChargeQueryUserDetail from './OtherChargeQueryUserDetail'
100
-
101
- export default {
102
- title: '其他收费查询',
103
- components: {
104
- OtherChargeQueryUserDetail
105
- },
106
- data () {
107
- return {
108
- condition: '1=1',
109
- model: new PagedList('rs/sql/sale_OtherChargeQuery', 20, {}, {
110
- f_collection: 0
111
- }),
112
- isstates: this.$appdata.getParam('是否有效') ? [{
113
- label: '全部',
114
- value: ''
115
- }, ...this.$appdata.getParam('是否有效')] : [],
116
- // 控制单选
117
- radio: [],
118
- showdetail: false,
119
- otherchargeid: '',
120
- // 选中的页
121
- all: [],
122
- // row数据
123
- rowsdata: [],
124
- // fields:{'f_brand_spec': '品牌','f_number': '数量','f_unitprice': '单价','f_collection':'收款','f_operator':'操作员', 'f_operate_date':'操作日期'},
125
- fields: {'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_brand_spec': '品牌', 'f_collection': '收款', 'f_operator': '操作员', 'f_operate_date': '操作日期'},
126
- defaultfield: [
127
- // "f_brand_spec","f_number","f_unitprice",'f_collection','f_operator',"f_operate_date"
128
- 'f_userinfo_code', 'f_user_name', 'f_brand_spec', 'f_collection', 'f_operator', 'f_operate_date'
129
- ],
130
- printModel: {
131
- rows: []
132
- }
133
- }
134
- },
135
- props: ['row'],
136
- ready () {
137
- this.$refs.paged.$refs.criteria.model.f_state = ['有效']
138
- this.$refs.paged.$refs.criteria.search()
139
- },
140
- methods: {
141
- async search () {
142
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' `
143
- this.model.search(this.condition, this.model)
144
- let http = new HttpResetClass()
145
- let res = await http.load('POST', 'rs/sql/sale_OtherChargeQuery', {
146
- data: {
147
- condition: this.condition
148
- }
149
- }, {resolveMsg: null, rejectMsg: null})
150
- this.printModel.rows = res.data
151
- },
152
- // 多选框初始化
153
- selectInit () {
154
- this.rowsdata = []
155
- this.all = []
156
- this.radio = []
157
- },
158
- print () {
159
- this.selectInit()
160
- },
161
- select () {
162
- let index = this.model.pageIndex - 1
163
- if (!this.radio[index]) {
164
- this.radio.$set(index, [])
165
- }
166
- if (this.all[index]) {
167
- // 数据
168
- this.rowsdata[index] = Object.assign([], this.model.rows)
169
- // 勾选
170
- for (var i = 0; i < this.model.rows.length; i++) {
171
- this.radio[index].$set(i, true)
172
- }
173
- } else {
174
- // 数据
175
- this.rowsdata[index] = []
176
- // 不勾选
177
- for (var i = 0; i < this.model.rows.length; i++) {
178
- this.radio[index].$set(i, false)
179
- }
180
- }
181
- let z = 0
182
- for (let i = 0; i < this.all.length; i++) {
183
- for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
184
- this.printModel.rows[z++] = this.rowsdata[i][j]
185
- }
186
- }
187
- },
188
- selectOne (event, row, i) {
189
- let index = this.model.pageIndex - 1
190
- if (!this.rowsdata[index]) {
191
- this.rowsdata[index] = []
192
- }
193
- if (!this.radio[index]) {
194
- this.radio.$set(index, [])
195
- }
196
- if (event.target.checked) {
197
- // 数据
198
- this.rowsdata[index][i] = row
199
- // 勾选
200
- this.radio[index].$set(i, true)
201
- // 判断是否全部选中
202
- var allState = true
203
- if (this.model.rows.length != this.radio[index].length) {
204
- allState = false
205
- }
206
- for (var state of this.radio[index]) {
207
- if (!state) {
208
- allState = false
209
- }
210
- }
211
- if (allState) {
212
- this.all.$set(index, true)
213
- } else {
214
- this.all.$set(index, false)
215
- }
216
- } else {
217
- // 数据
218
- this.rowsdata[index][i] = []
219
- // 不勾选
220
- this.radio[index].$set(i, false)
221
- // 任意取消一个则全选状态设为false
222
- this.all.$set(index, false)
223
- }
224
- let z = 0
225
- this.printModel.rows = []
226
- for (let i = 0; i < this.all.length; i++) {
227
- for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
228
- if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
229
- this.printModel.rows[z++] = this.rowsdata[i][j]
230
- }
231
- }
232
- }
233
- },
234
- showchargedetail (row) {
235
- this.showdetail = true
236
- this.otherchargeid = row.id
237
- }
238
- },
239
- computed: {
240
- ischecked () {
241
- return function (index, i) {
242
- if (!this.radio[index]) {
243
- return false
244
- }
245
- return this.radio[index][i]
246
- }
247
- }
248
- }
249
- }
250
- </script>
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
+
9
+ <div class="col-sm-2 form-group">
10
+ <label class="font_normal_body">开始时间</label>
11
+ <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_start_date"
12
+ class="datepicker"
13
+ condition="f_operate_date >= '{} 00:00:00' "
14
+ placeholder="起始时间"
15
+ style="width:60%"
16
+ v-model="model.f_start_date"
17
+ ></datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group" >
20
+ <label class="font_normal_body" >结束时间</label>
21
+ <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_end_date"
22
+ class="datepicker"
23
+ condition="f_operate_date <= '{} 23:59:59' "
24
+ placeholder="结束时间"
25
+ style="width:60%"
26
+ v-model="model.f_end_date"
27
+ ></datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">是否有效</label>
31
+ <v-select :value.sync="model.f_state" v-model='model.f_state'
32
+ style="width:60%"
33
+ :options='$parent.$parent.isstates' placeholder='是否有效'
34
+ close-on-select
35
+ condition="f_state = '{}'"></v-select>
36
+ </div>
37
+
38
+ <div style="float: right">
39
+ <button @click="search()" class="button_search" style="margin-right: 10px" v-el:cba>查询</button>
40
+ <print-data :defaultfield="$parent.$parent.defaultfield" :field="$parent.$parent.fields" :is-selected="true" :model="$parent.$parent.printModel"
41
+ @print-data="$parent.$parent.print()" print-name="其他收费流水"></print-data>
42
+ </div>
43
+ </div>
44
+
45
+ </div>
46
+ </criteria>
47
+ <data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
48
+ <template partial='head'>
49
+ <tr>
50
+
51
+ <th><nobr>收费类型</nobr></th>
52
+ <th><nobr>品名规格</nobr></th>
53
+ <th><nobr>型号</nobr></th>
54
+ <th><nobr>数量</nobr></th>
55
+ <th><nobr>单价</nobr></th>
56
+ <th><nobr>金额</nobr></th>
57
+ <th><nobr>操作员</nobr></th>
58
+ <th><nobr>操作日期</nobr></th>
59
+ <th><nobr>状态</nobr></th>
60
+ <th><nobr>备注</nobr></th>
61
+ </tr>
62
+ </template>
63
+ <template partial='body' partial='list' v-ref:grid>
64
+ <tr >
65
+ <th style="text-align:center">{{row.f_brand_spec}}</th>
66
+ <th style="text-align:center">{{row.f_typename}}</th>
67
+ <th style="text-align:center">{{row.f_typenumber}}</th>
68
+ <th style="text-align:center">{{row.f_number}}</th>
69
+ <th style="text-align:center">{{row.f_unitprice}}</th>
70
+ <th style="text-align:center">{{row.f_unitprice*row.f_number}}</th>
71
+ <th style="text-align:center">{{row.f_operator}}</th>
72
+ <th style="text-align:center">{{row.f_operate_date}}</th>
73
+ <td style="text-align: center;">{{row.f_state}}</td>
74
+ <th style="text-align:center">{{row.f_comments}}</th>
75
+ </tr>
76
+ </template>
77
+ <template partial='foot'></template>
78
+ </data-grid>
79
+ </criteria-paged>
80
+
81
+ </div>
82
+ <table class="table-hover">
83
+ <tr class="table-bordered" style="position: relative">
84
+ <td
85
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
86
+ 汇总信息
87
+ </td>
88
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
89
+ 金额合计:&emsp;{{model.sums.f_collection}}
90
+ </td>
91
+ </tr>
92
+ </table>
93
+ </div>
94
+ <other-charge-query-user-detail v-if="showdetail" :otherchargeid="otherchargeid" :showdetail.sync="showdetail"></other-charge-query-user-detail>
95
+ </template>
96
+
97
+ <script>
98
+ import {HttpResetClass, PagedList} from 'vue-client'
99
+ import OtherChargeQueryUserDetail from './OtherChargeQueryUserDetail'
100
+
101
+ export default {
102
+ title: '其他收费查询',
103
+ components: {
104
+ OtherChargeQueryUserDetail
105
+ },
106
+ data () {
107
+ return {
108
+ condition: '1=1',
109
+ model: new PagedList('rs/sql/sale_OtherChargeQuery', 20, {}, {
110
+ f_collection: 0
111
+ }),
112
+ isstates: this.$appdata.getParam('是否有效') ? [{
113
+ label: '全部',
114
+ value: ''
115
+ }, ...this.$appdata.getParam('是否有效')] : [],
116
+ // 控制单选
117
+ radio: [],
118
+ showdetail: false,
119
+ otherchargeid: '',
120
+ // 选中的页
121
+ all: [],
122
+ // row数据
123
+ rowsdata: [],
124
+ // fields:{'f_brand_spec': '品牌','f_number': '数量','f_unitprice': '单价','f_collection':'收款','f_operator':'操作员', 'f_operate_date':'操作日期'},
125
+ fields: {'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_brand_spec': '品牌', 'f_collection': '收款', 'f_operator': '操作员', 'f_operate_date': '操作日期'},
126
+ defaultfield: [
127
+ // "f_brand_spec","f_number","f_unitprice",'f_collection','f_operator',"f_operate_date"
128
+ 'f_userinfo_code', 'f_user_name', 'f_brand_spec', 'f_collection', 'f_operator', 'f_operate_date'
129
+ ],
130
+ printModel: {
131
+ rows: []
132
+ }
133
+ }
134
+ },
135
+ props: ['row'],
136
+ ready () {
137
+ this.$refs.paged.$refs.criteria.model.f_state = ['有效']
138
+ this.$refs.paged.$refs.criteria.search()
139
+ },
140
+ methods: {
141
+ async search () {
142
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' `
143
+ this.model.search(this.condition, this.model)
144
+ let http = new HttpResetClass()
145
+ let res = await http.load('POST', 'rs/sql/sale_OtherChargeQuery', {
146
+ data: {
147
+ condition: this.condition
148
+ }
149
+ }, {resolveMsg: null, rejectMsg: null})
150
+ this.printModel.rows = res.data
151
+ },
152
+ // 多选框初始化
153
+ selectInit () {
154
+ this.rowsdata = []
155
+ this.all = []
156
+ this.radio = []
157
+ },
158
+ print () {
159
+ this.selectInit()
160
+ },
161
+ select () {
162
+ let index = this.model.pageIndex - 1
163
+ if (!this.radio[index]) {
164
+ this.radio.$set(index, [])
165
+ }
166
+ if (this.all[index]) {
167
+ // 数据
168
+ this.rowsdata[index] = Object.assign([], this.model.rows)
169
+ // 勾选
170
+ for (var i = 0; i < this.model.rows.length; i++) {
171
+ this.radio[index].$set(i, true)
172
+ }
173
+ } else {
174
+ // 数据
175
+ this.rowsdata[index] = []
176
+ // 不勾选
177
+ for (var i = 0; i < this.model.rows.length; i++) {
178
+ this.radio[index].$set(i, false)
179
+ }
180
+ }
181
+ let z = 0
182
+ for (let i = 0; i < this.all.length; i++) {
183
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
184
+ this.printModel.rows[z++] = this.rowsdata[i][j]
185
+ }
186
+ }
187
+ },
188
+ selectOne (event, row, i) {
189
+ let index = this.model.pageIndex - 1
190
+ if (!this.rowsdata[index]) {
191
+ this.rowsdata[index] = []
192
+ }
193
+ if (!this.radio[index]) {
194
+ this.radio.$set(index, [])
195
+ }
196
+ if (event.target.checked) {
197
+ // 数据
198
+ this.rowsdata[index][i] = row
199
+ // 勾选
200
+ this.radio[index].$set(i, true)
201
+ // 判断是否全部选中
202
+ var allState = true
203
+ if (this.model.rows.length != this.radio[index].length) {
204
+ allState = false
205
+ }
206
+ for (var state of this.radio[index]) {
207
+ if (!state) {
208
+ allState = false
209
+ }
210
+ }
211
+ if (allState) {
212
+ this.all.$set(index, true)
213
+ } else {
214
+ this.all.$set(index, false)
215
+ }
216
+ } else {
217
+ // 数据
218
+ this.rowsdata[index][i] = []
219
+ // 不勾选
220
+ this.radio[index].$set(i, false)
221
+ // 任意取消一个则全选状态设为false
222
+ this.all.$set(index, false)
223
+ }
224
+ let z = 0
225
+ this.printModel.rows = []
226
+ for (let i = 0; i < this.all.length; i++) {
227
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
228
+ if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
229
+ this.printModel.rows[z++] = this.rowsdata[i][j]
230
+ }
231
+ }
232
+ }
233
+ },
234
+ showchargedetail (row) {
235
+ this.showdetail = true
236
+ this.otherchargeid = row.id
237
+ }
238
+ },
239
+ computed: {
240
+ ischecked () {
241
+ return function (index, i) {
242
+ if (!this.radio[index]) {
243
+ return false
244
+ }
245
+ return this.radio[index][i]
246
+ }
247
+ }
248
+ }
249
+ }
250
+ </script>