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,267 +1,267 @@
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_hand_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_hand_date <= '{} 23:59:59' "
24
- placeholder="结束时间"
25
- style="width:60%"
26
- v-model="model.f_end_date"
27
- ></datepicker>
28
- </div>
29
-
30
- <div style="float: right">
31
- <button @click="search()" class="button_search" style="margin-right: 10px" v-el:cba>查询</button>
32
- <print-data :defaultfield="$parent.$parent.defaultfield" :field="$parent.$parent.fields" :is-selected="true" :model="$parent.$parent.printModel"
33
- @print-data="$parent.$parent.print()" print-name="其他收费流水"></print-data>
34
- </div>
35
- </div>
36
-
37
- </div>
38
- </criteria>
39
- <data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
40
- <template partial='head'>
41
- <tr>
42
- <th>
43
- <nobr>表号</nobr>
44
- </th>
45
- <th>
46
- <nobr>上期底数</nobr>
47
- </th>
48
- <th>
49
- <nobr>本期底数</nobr>
50
- </th>
51
- <th>
52
- <nobr>用气量</nobr>
53
- </th>
54
- <th>
55
- <nobr>补差气量</nobr>
56
- </th>
57
- <th>
58
- <nobr>补差单价</nobr>
59
- </th>
60
- <th>
61
- <nobr>补差金额</nobr>
62
- </th>
63
- <th>
64
- <nobr>录入日期</nobr>
65
- </th>
66
- <th>
67
- <nobr>抄表员</nobr>
68
- </th>
69
-
70
- <th>
71
- <nobr>抄表状态</nobr>
72
- </th>
73
- <th>
74
- <nobr>操作人</nobr>
75
- </th>
76
- </tr>
77
- </template>
78
- <template partial='body' partial='list' v-ref:grid>
79
- <tr >
80
- <td style="text-align: center;">
81
- <nobr>{{row.f_meternumber}}</nobr>
82
- </td>
83
- <td style="text-align: center;">
84
- <nobr>{{row.f_last_tablebase}}</nobr>
85
- </td>
86
- <td style="text-align: center;">
87
- <nobr>{{row.f_tablebase}}</nobr>
88
- </td>
89
-
90
- <td style="text-align: center;">
91
- <nobr>{{row.f_real_amount}}</nobr>
92
- </td>
93
- <td style="text-align: center;">
94
- <nobr>{{row.f_real_amount}}</nobr>
95
- </td>
96
- <td style="text-align: center;">
97
- <nobr>{{row.f_change_price}}</nobr>
98
- </td>
99
- <td style="text-align: center;">
100
- <nobr>{{row.f_real_fee}}</nobr>
101
- </td>
102
- <td style="text-align: center;">
103
- <nobr>{{row.f_hand_date}}</nobr>
104
- </td>
105
- <td style="text-align: center;">
106
- <nobr>{{row.f_inputtor}}</nobr>
107
- </td>
108
-
109
- <td style="text-align: center;">
110
- <nobr>{{row.f_meter_state}}</nobr>
111
- </td>
112
- <td style="text-align: center;">
113
- <nobr>{{row.f_operator}}</nobr>
114
- </td>
115
- </tr>
116
- </template>
117
- <template partial='foot'></template>
118
- </data-grid>
119
- </criteria-paged>
120
-
121
- </div>
122
-
123
- </div>
124
- </template>
125
-
126
- <script>
127
- import {HttpResetClass, PagedList} from 'vue-client'
128
-
129
- export default {
130
- title: '抄表',
131
-
132
- data () {
133
- return {
134
- condition: '1=1',
135
- model: new PagedList('rs/sql/sale_cardhandplanQuery', 20, {}),
136
- // 控制单选
137
- radio: [],
138
- showdetail: false,
139
- otherchargeid: '',
140
- // 选中的页
141
- all: [],
142
- // row数据
143
- rowsdata: [],
144
- fields: {'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_meternumber': '表号', 'f_last_tablebase': '上期底数', 'f_tablebase': '本期底数', 'f_real_amount': '用气量', 'f_real_amount': '补差气量', 'f_change_price': '补差单价', 'f_real_fee': '补差金额', 'f_hand_date': '录入日期', 'f_inputtor': '抄表员', 'f_meter_state': '抄表状态', 'f_operator': '操作人'},
145
- defaultfield: [
146
- 'f_userinfo_code', 'f_user_name', 'f_meternumber', 'f_last_tablebase', 'f_tablebase', 'f_real_amount', 'f_real_amount', 'f_change_price', 'f_change_price', 'f_real_fee', 'f_hand_date', 'f_inputtor', 'f_meter_state', 'f_inputtor', 'f_operator'
147
- ],
148
- printModel: {
149
- rows: []
150
- }
151
- }
152
- },
153
- props: ['row'],
154
- ready () {
155
- this.$refs.paged.$refs.criteria.search()
156
- },
157
- methods: {
158
- async search () {
159
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' `
160
- this.model.search(this.condition, this.model)
161
- let http = new HttpResetClass()
162
- let res = await http.load('POST', 'rs/sql/sale_cardhandplanQuery', {
163
- data: {
164
- condition: this.condition
165
- }
166
- }, {resolveMsg: null, rejectMsg: null})
167
- this.printModel.rows = res.data
168
- },
169
- // 多选框初始化
170
- selectInit () {
171
- this.rowsdata = []
172
- this.all = []
173
- this.radio = []
174
- },
175
- print () {
176
- this.selectInit()
177
- },
178
- select () {
179
- let index = this.model.pageIndex - 1
180
- if (!this.radio[index]) {
181
- this.radio.$set(index, [])
182
- }
183
- if (this.all[index]) {
184
- // 数据
185
- this.rowsdata[index] = Object.assign([], this.model.rows)
186
- // 勾选
187
- for (var i = 0; i < this.model.rows.length; i++) {
188
- this.radio[index].$set(i, true)
189
- }
190
- } else {
191
- // 数据
192
- this.rowsdata[index] = []
193
- // 不勾选
194
- for (var i = 0; i < this.model.rows.length; i++) {
195
- this.radio[index].$set(i, false)
196
- }
197
- }
198
- let z = 0
199
- for (let i = 0; i < this.all.length; i++) {
200
- for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
201
- this.printModel.rows[z++] = this.rowsdata[i][j]
202
- }
203
- }
204
- },
205
- selectOne (event, row, i) {
206
- let index = this.model.pageIndex - 1
207
- if (!this.rowsdata[index]) {
208
- this.rowsdata[index] = []
209
- }
210
- if (!this.radio[index]) {
211
- this.radio.$set(index, [])
212
- }
213
- if (event.target.checked) {
214
- // 数据
215
- this.rowsdata[index][i] = row
216
- // 勾选
217
- this.radio[index].$set(i, true)
218
- // 判断是否全部选中
219
- var allState = true
220
- if (this.model.rows.length != this.radio[index].length) {
221
- allState = false
222
- }
223
- for (var state of this.radio[index]) {
224
- if (!state) {
225
- allState = false
226
- }
227
- }
228
- if (allState) {
229
- this.all.$set(index, true)
230
- } else {
231
- this.all.$set(index, false)
232
- }
233
- } else {
234
- // 数据
235
- this.rowsdata[index][i] = []
236
- // 不勾选
237
- this.radio[index].$set(i, false)
238
- // 任意取消一个则全选状态设为false
239
- this.all.$set(index, false)
240
- }
241
- let z = 0
242
- this.printModel.rows = []
243
- for (let i = 0; i < this.all.length; i++) {
244
- for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
245
- if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
246
- this.printModel.rows[z++] = this.rowsdata[i][j]
247
- }
248
- }
249
- }
250
- },
251
- showchargedetail (row) {
252
- this.showdetail = true
253
- this.otherchargeid = row.id
254
- }
255
- },
256
- computed: {
257
- ischecked () {
258
- return function (index, i) {
259
- if (!this.radio[index]) {
260
- return false
261
- }
262
- return this.radio[index][i]
263
- }
264
- }
265
- }
266
- }
267
- </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_hand_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_hand_date <= '{} 23:59:59' "
24
+ placeholder="结束时间"
25
+ style="width:60%"
26
+ v-model="model.f_end_date"
27
+ ></datepicker>
28
+ </div>
29
+
30
+ <div style="float: right">
31
+ <button @click="search()" class="button_search" style="margin-right: 10px" v-el:cba>查询</button>
32
+ <print-data :defaultfield="$parent.$parent.defaultfield" :field="$parent.$parent.fields" :is-selected="true" :model="$parent.$parent.printModel"
33
+ @print-data="$parent.$parent.print()" print-name="其他收费流水"></print-data>
34
+ </div>
35
+ </div>
36
+
37
+ </div>
38
+ </criteria>
39
+ <data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
40
+ <template partial='head'>
41
+ <tr>
42
+ <th>
43
+ <nobr>表号</nobr>
44
+ </th>
45
+ <th>
46
+ <nobr>上期底数</nobr>
47
+ </th>
48
+ <th>
49
+ <nobr>本期底数</nobr>
50
+ </th>
51
+ <th>
52
+ <nobr>用气量</nobr>
53
+ </th>
54
+ <th>
55
+ <nobr>补差气量</nobr>
56
+ </th>
57
+ <th>
58
+ <nobr>补差单价</nobr>
59
+ </th>
60
+ <th>
61
+ <nobr>补差金额</nobr>
62
+ </th>
63
+ <th>
64
+ <nobr>录入日期</nobr>
65
+ </th>
66
+ <th>
67
+ <nobr>抄表员</nobr>
68
+ </th>
69
+
70
+ <th>
71
+ <nobr>抄表状态</nobr>
72
+ </th>
73
+ <th>
74
+ <nobr>操作人</nobr>
75
+ </th>
76
+ </tr>
77
+ </template>
78
+ <template partial='body' partial='list' v-ref:grid>
79
+ <tr >
80
+ <td style="text-align: center;">
81
+ <nobr>{{row.f_meternumber}}</nobr>
82
+ </td>
83
+ <td style="text-align: center;">
84
+ <nobr>{{row.f_last_tablebase}}</nobr>
85
+ </td>
86
+ <td style="text-align: center;">
87
+ <nobr>{{row.f_tablebase}}</nobr>
88
+ </td>
89
+
90
+ <td style="text-align: center;">
91
+ <nobr>{{row.f_real_amount}}</nobr>
92
+ </td>
93
+ <td style="text-align: center;">
94
+ <nobr>{{row.f_real_amount}}</nobr>
95
+ </td>
96
+ <td style="text-align: center;">
97
+ <nobr>{{row.f_change_price}}</nobr>
98
+ </td>
99
+ <td style="text-align: center;">
100
+ <nobr>{{row.f_real_fee}}</nobr>
101
+ </td>
102
+ <td style="text-align: center;">
103
+ <nobr>{{row.f_hand_date}}</nobr>
104
+ </td>
105
+ <td style="text-align: center;">
106
+ <nobr>{{row.f_inputtor}}</nobr>
107
+ </td>
108
+
109
+ <td style="text-align: center;">
110
+ <nobr>{{row.f_meter_state}}</nobr>
111
+ </td>
112
+ <td style="text-align: center;">
113
+ <nobr>{{row.f_operator}}</nobr>
114
+ </td>
115
+ </tr>
116
+ </template>
117
+ <template partial='foot'></template>
118
+ </data-grid>
119
+ </criteria-paged>
120
+
121
+ </div>
122
+
123
+ </div>
124
+ </template>
125
+
126
+ <script>
127
+ import {HttpResetClass, PagedList} from 'vue-client'
128
+
129
+ export default {
130
+ title: '抄表',
131
+
132
+ data () {
133
+ return {
134
+ condition: '1=1',
135
+ model: new PagedList('rs/sql/sale_cardhandplanQuery', 20, {}),
136
+ // 控制单选
137
+ radio: [],
138
+ showdetail: false,
139
+ otherchargeid: '',
140
+ // 选中的页
141
+ all: [],
142
+ // row数据
143
+ rowsdata: [],
144
+ fields: {'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_meternumber': '表号', 'f_last_tablebase': '上期底数', 'f_tablebase': '本期底数', 'f_real_amount': '用气量', 'f_real_amount': '补差气量', 'f_change_price': '补差单价', 'f_real_fee': '补差金额', 'f_hand_date': '录入日期', 'f_inputtor': '抄表员', 'f_meter_state': '抄表状态', 'f_operator': '操作人'},
145
+ defaultfield: [
146
+ 'f_userinfo_code', 'f_user_name', 'f_meternumber', 'f_last_tablebase', 'f_tablebase', 'f_real_amount', 'f_real_amount', 'f_change_price', 'f_change_price', 'f_real_fee', 'f_hand_date', 'f_inputtor', 'f_meter_state', 'f_inputtor', 'f_operator'
147
+ ],
148
+ printModel: {
149
+ rows: []
150
+ }
151
+ }
152
+ },
153
+ props: ['row'],
154
+ ready () {
155
+ this.$refs.paged.$refs.criteria.search()
156
+ },
157
+ methods: {
158
+ async search () {
159
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' `
160
+ this.model.search(this.condition, this.model)
161
+ let http = new HttpResetClass()
162
+ let res = await http.load('POST', 'rs/sql/sale_cardhandplanQuery', {
163
+ data: {
164
+ condition: this.condition
165
+ }
166
+ }, {resolveMsg: null, rejectMsg: null})
167
+ this.printModel.rows = res.data
168
+ },
169
+ // 多选框初始化
170
+ selectInit () {
171
+ this.rowsdata = []
172
+ this.all = []
173
+ this.radio = []
174
+ },
175
+ print () {
176
+ this.selectInit()
177
+ },
178
+ select () {
179
+ let index = this.model.pageIndex - 1
180
+ if (!this.radio[index]) {
181
+ this.radio.$set(index, [])
182
+ }
183
+ if (this.all[index]) {
184
+ // 数据
185
+ this.rowsdata[index] = Object.assign([], this.model.rows)
186
+ // 勾选
187
+ for (var i = 0; i < this.model.rows.length; i++) {
188
+ this.radio[index].$set(i, true)
189
+ }
190
+ } else {
191
+ // 数据
192
+ this.rowsdata[index] = []
193
+ // 不勾选
194
+ for (var i = 0; i < this.model.rows.length; i++) {
195
+ this.radio[index].$set(i, false)
196
+ }
197
+ }
198
+ let z = 0
199
+ for (let i = 0; i < this.all.length; i++) {
200
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
201
+ this.printModel.rows[z++] = this.rowsdata[i][j]
202
+ }
203
+ }
204
+ },
205
+ selectOne (event, row, i) {
206
+ let index = this.model.pageIndex - 1
207
+ if (!this.rowsdata[index]) {
208
+ this.rowsdata[index] = []
209
+ }
210
+ if (!this.radio[index]) {
211
+ this.radio.$set(index, [])
212
+ }
213
+ if (event.target.checked) {
214
+ // 数据
215
+ this.rowsdata[index][i] = row
216
+ // 勾选
217
+ this.radio[index].$set(i, true)
218
+ // 判断是否全部选中
219
+ var allState = true
220
+ if (this.model.rows.length != this.radio[index].length) {
221
+ allState = false
222
+ }
223
+ for (var state of this.radio[index]) {
224
+ if (!state) {
225
+ allState = false
226
+ }
227
+ }
228
+ if (allState) {
229
+ this.all.$set(index, true)
230
+ } else {
231
+ this.all.$set(index, false)
232
+ }
233
+ } else {
234
+ // 数据
235
+ this.rowsdata[index][i] = []
236
+ // 不勾选
237
+ this.radio[index].$set(i, false)
238
+ // 任意取消一个则全选状态设为false
239
+ this.all.$set(index, false)
240
+ }
241
+ let z = 0
242
+ this.printModel.rows = []
243
+ for (let i = 0; i < this.all.length; i++) {
244
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
245
+ if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
246
+ this.printModel.rows[z++] = this.rowsdata[i][j]
247
+ }
248
+ }
249
+ }
250
+ },
251
+ showchargedetail (row) {
252
+ this.showdetail = true
253
+ this.otherchargeid = row.id
254
+ }
255
+ },
256
+ computed: {
257
+ ischecked () {
258
+ return function (index, i) {
259
+ if (!this.radio[index]) {
260
+ return false
261
+ }
262
+ return this.radio[index][i]
263
+ }
264
+ }
265
+ }
266
+ }
267
+ </script>