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,240 +1,240 @@
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_changemeter_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_changemeter_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 :options='$parent.$parent.changeType' :value.sync="model.f_change_type"
32
- close-on-select
33
- condition="f_change_type='{}'"
34
- placeholder='换表类型'
35
- style="width:60%"
36
- v-model="model.f_change_type"
37
- ></v-select>
38
- </div>
39
- <div class="col-sm-2 form-group">
40
- <label class="font_normal_body">换表状态</label>
41
- <v-select :value.sync="model.f_state" v-model='model.f_state'
42
- style="width:60%"
43
- :options='$parent.$parent.isstates' placeholder='换表状态'
44
- close-on-select
45
- condition="f_state = '{}'"></v-select>
46
- </div>
47
- <div style="float: right">
48
- <button @click="search()" class="button_search" style="margin-right: 10px" v-el:cba>查询</button>
49
- <print-data :defaultfield="$parent.$parent.defaultfield" :field="$parent.$parent.fields" :is-selected="true" :model="$parent.$parent.printModel"
50
- @print-data="$parent.$parent.print()" print-name="换表流水" ></print-data>
51
- </div>
52
-
53
-
54
- </div>
55
- </div>
56
- </criteria>
57
- <data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
58
- <template partial='head'>
59
- <tr>
60
-
61
- <th><nobr>换表类型</nobr></th>
62
- <th><nobr>旧表底数</nobr></th>
63
- <th><nobr>旧表剩余</nobr></th>
64
- <th><nobr>旧表品牌</nobr></th>
65
- <th><nobr>新表品牌</nobr></th>
66
- <th><nobr>旧表号</nobr></th>
67
- <th><nobr>新表号</nobr></th>
68
- <th><nobr>换表费</nobr></th>
69
- <th><nobr>操作人</nobr></th>
70
- <th><nobr>状态</nobr></th>
71
- <th><nobr>换表日期</nobr></th>
72
- <th><nobr>换表原因</nobr></th>
73
- </tr>
74
- </template>
75
- <template partial='body' partial='list' v-ref:grid>
76
- <tr >
77
-
78
- <td style="text-align: center;"><nobr>{{row.f_type}}</nobr></td>
79
- <td style="text-align: center;"><nobr>{{row.f_using_base_old}}</nobr></td>
80
- <td style="text-align: center;"><nobr>{{row.f_remanent_gas}}</nobr></td>
81
- <td style="text-align: center;"><nobr>{{row.f_meter_brand_old}}</nobr></td>
82
- <td style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></td>
83
- <td style="text-align: center;"><nobr>{{row.f_meternumber_old}}</nobr></td>
84
- <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
85
- <td style="text-align: center;"><nobr>{{row.f_changemeter_fee}}</nobr></td>
86
- <td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
87
- <td style="text-align: center;"><nobr>{{row.f_state}}</nobr></td>
88
- <td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
89
- <td style="text-align: center;"><nobr>{{row.f_reason}}/{{row.f_othereason}}</nobr></td>
90
- </tr>
91
- </template>
92
- <template partial='foot'></template>
93
- </data-grid>
94
- </criteria-paged>
95
- </div>
96
- </div>
97
- </template>
98
-
99
- <script>
100
- import {HttpResetClass, PagedList} from 'vue-client'
101
-
102
- export default {
103
- title: '收费',
104
- data () {
105
- return {
106
- condition: '1=1',
107
- model: new PagedList('rs/sql/sale_ChangeMeterQuery', 20),
108
- // 控制单选
109
- radio: [],
110
- // 选中的页
111
- all: [],
112
- isstates: this.$appdata.getParam('是否有效') ? [{
113
- label: '全部',
114
- value: ''
115
- }, ...this.$appdata.getParam('是否有效')] : [],
116
- // row数据
117
- rowsdata: [],
118
- fields: {'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_type': '换表类型', 'f_meter_base': '旧表底数', 'f_newmeter_base': '新表底数', 'f_changemeter_fee': '换表费', 'f_operator': '操作员', 'f_changemeter_date': '换表日期'},
119
- defaultfield: [
120
- 'f_userinfo_code', 'f_user_name', 'f_type', 'f_meter_base', 'f_newmeter_base', 'f_changemeter_fee', 'f_operator', 'f_changemeter_date'
121
- ],
122
- printModel: {
123
- rows: []
124
- }
125
- }
126
- },
127
- props: ['row'],
128
- ready () {
129
- this.$refs.paged.$refs.criteria.search()
130
- },
131
- methods: {
132
- async search () {
133
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' `
134
- this.model.search(this.condition, this.model)
135
- let http = new HttpResetClass()
136
- let res = await http.load('POST', 'rs/sql/sale_ChangeMeterQuery', {
137
- data: {
138
- condition: this.condition
139
- }
140
- }, {resolveMsg: null, rejectMsg: null})
141
- this.printModel.rows = res.data
142
- },
143
- // 多选框初始化
144
- selectInit () {
145
- this.rowsdata = []
146
- this.all = []
147
- this.radio = []
148
- },
149
- print () {
150
- this.selectInit()
151
- },
152
- select () {
153
- let index = this.model.pageIndex - 1
154
- if (!this.radio[index]) {
155
- this.radio.$set(index, [])
156
- }
157
- if (this.all[index]) {
158
- // 数据
159
- this.rowsdata[index] = Object.assign([], this.model.rows)
160
- // 勾选
161
- for (var i = 0; i < this.model.rows.length; i++) {
162
- this.radio[index].$set(i, true)
163
- }
164
- } else {
165
- // 数据
166
- this.rowsdata[index] = []
167
- // 不勾选
168
- for (var i = 0; i < this.model.rows.length; i++) {
169
- this.radio[index].$set(i, false)
170
- }
171
- }
172
- let z = 0
173
- for (let i = 0; i < this.all.length; i++) {
174
- for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
175
- this.printModel.rows[z++] = this.rowsdata[i][j]
176
- }
177
- }
178
- },
179
- selectOne (event, row, i) {
180
- let index = this.model.pageIndex - 1
181
- if (!this.rowsdata[index]) {
182
- this.rowsdata[index] = []
183
- }
184
- if (!this.radio[index]) {
185
- this.radio.$set(index, [])
186
- }
187
- if (event.target.checked) {
188
- // 数据
189
- this.rowsdata[index][i] = row
190
- // 勾选
191
- this.radio[index].$set(i, true)
192
- // 判断是否全部选中
193
- var allState = true
194
- if (this.model.rows.length != this.radio[index].length) {
195
- allState = false
196
- }
197
- for (var state of this.radio[index]) {
198
- if (!state) {
199
- allState = false
200
- }
201
- }
202
- if (allState) {
203
- this.all.$set(index, true)
204
- } else {
205
- this.all.$set(index, false)
206
- }
207
- } else {
208
- // 数据
209
- this.rowsdata[index][i] = []
210
- // 不勾选
211
- this.radio[index].$set(i, false)
212
- // 任意取消一个则全选状态设为false
213
- this.all.$set(index, false)
214
- }
215
- let z = 0
216
- this.printModel.rows = []
217
- for (let i = 0; i < this.all.length; i++) {
218
- for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
219
- if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
220
- this.printModel.rows[z++] = this.rowsdata[i][j]
221
- }
222
- }
223
- }
224
- }
225
- },
226
- computed: {
227
- ischecked () {
228
- return function (index, i) {
229
- if (!this.radio[index]) {
230
- return false
231
- }
232
- return this.radio[index][i]
233
- }
234
- },
235
- changeType () {
236
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表类型')]
237
- }
238
- }
239
- }
240
- </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_changemeter_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_changemeter_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 :options='$parent.$parent.changeType' :value.sync="model.f_change_type"
32
+ close-on-select
33
+ condition="f_change_type='{}'"
34
+ placeholder='换表类型'
35
+ style="width:60%"
36
+ v-model="model.f_change_type"
37
+ ></v-select>
38
+ </div>
39
+ <div class="col-sm-2 form-group">
40
+ <label class="font_normal_body">换表状态</label>
41
+ <v-select :value.sync="model.f_state" v-model='model.f_state'
42
+ style="width:60%"
43
+ :options='$parent.$parent.isstates' placeholder='换表状态'
44
+ close-on-select
45
+ condition="f_state = '{}'"></v-select>
46
+ </div>
47
+ <div style="float: right">
48
+ <button @click="search()" class="button_search" style="margin-right: 10px" v-el:cba>查询</button>
49
+ <print-data :defaultfield="$parent.$parent.defaultfield" :field="$parent.$parent.fields" :is-selected="true" :model="$parent.$parent.printModel"
50
+ @print-data="$parent.$parent.print()" print-name="换表流水" ></print-data>
51
+ </div>
52
+
53
+
54
+ </div>
55
+ </div>
56
+ </criteria>
57
+ <data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
58
+ <template partial='head'>
59
+ <tr>
60
+
61
+ <th><nobr>换表类型</nobr></th>
62
+ <th><nobr>旧表底数</nobr></th>
63
+ <th><nobr>旧表剩余</nobr></th>
64
+ <th><nobr>旧表品牌</nobr></th>
65
+ <th><nobr>新表品牌</nobr></th>
66
+ <th><nobr>旧表号</nobr></th>
67
+ <th><nobr>新表号</nobr></th>
68
+ <th><nobr>换表费</nobr></th>
69
+ <th><nobr>操作人</nobr></th>
70
+ <th><nobr>状态</nobr></th>
71
+ <th><nobr>换表日期</nobr></th>
72
+ <th><nobr>换表原因</nobr></th>
73
+ </tr>
74
+ </template>
75
+ <template partial='body' partial='list' v-ref:grid>
76
+ <tr >
77
+
78
+ <td style="text-align: center;"><nobr>{{row.f_type}}</nobr></td>
79
+ <td style="text-align: center;"><nobr>{{row.f_using_base_old}}</nobr></td>
80
+ <td style="text-align: center;"><nobr>{{row.f_remanent_gas}}</nobr></td>
81
+ <td style="text-align: center;"><nobr>{{row.f_meter_brand_old}}</nobr></td>
82
+ <td style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></td>
83
+ <td style="text-align: center;"><nobr>{{row.f_meternumber_old}}</nobr></td>
84
+ <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
85
+ <td style="text-align: center;"><nobr>{{row.f_changemeter_fee}}</nobr></td>
86
+ <td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
87
+ <td style="text-align: center;"><nobr>{{row.f_state}}</nobr></td>
88
+ <td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
89
+ <td style="text-align: center;"><nobr>{{row.f_reason}}/{{row.f_othereason}}</nobr></td>
90
+ </tr>
91
+ </template>
92
+ <template partial='foot'></template>
93
+ </data-grid>
94
+ </criteria-paged>
95
+ </div>
96
+ </div>
97
+ </template>
98
+
99
+ <script>
100
+ import {HttpResetClass, PagedList} from 'vue-client'
101
+
102
+ export default {
103
+ title: '收费',
104
+ data () {
105
+ return {
106
+ condition: '1=1',
107
+ model: new PagedList('rs/sql/sale_ChangeMeterQuery', 20),
108
+ // 控制单选
109
+ radio: [],
110
+ // 选中的页
111
+ all: [],
112
+ isstates: this.$appdata.getParam('是否有效') ? [{
113
+ label: '全部',
114
+ value: ''
115
+ }, ...this.$appdata.getParam('是否有效')] : [],
116
+ // row数据
117
+ rowsdata: [],
118
+ fields: {'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_type': '换表类型', 'f_meter_base': '旧表底数', 'f_newmeter_base': '新表底数', 'f_changemeter_fee': '换表费', 'f_operator': '操作员', 'f_changemeter_date': '换表日期'},
119
+ defaultfield: [
120
+ 'f_userinfo_code', 'f_user_name', 'f_type', 'f_meter_base', 'f_newmeter_base', 'f_changemeter_fee', 'f_operator', 'f_changemeter_date'
121
+ ],
122
+ printModel: {
123
+ rows: []
124
+ }
125
+ }
126
+ },
127
+ props: ['row'],
128
+ ready () {
129
+ this.$refs.paged.$refs.criteria.search()
130
+ },
131
+ methods: {
132
+ async search () {
133
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' `
134
+ this.model.search(this.condition, this.model)
135
+ let http = new HttpResetClass()
136
+ let res = await http.load('POST', 'rs/sql/sale_ChangeMeterQuery', {
137
+ data: {
138
+ condition: this.condition
139
+ }
140
+ }, {resolveMsg: null, rejectMsg: null})
141
+ this.printModel.rows = res.data
142
+ },
143
+ // 多选框初始化
144
+ selectInit () {
145
+ this.rowsdata = []
146
+ this.all = []
147
+ this.radio = []
148
+ },
149
+ print () {
150
+ this.selectInit()
151
+ },
152
+ select () {
153
+ let index = this.model.pageIndex - 1
154
+ if (!this.radio[index]) {
155
+ this.radio.$set(index, [])
156
+ }
157
+ if (this.all[index]) {
158
+ // 数据
159
+ this.rowsdata[index] = Object.assign([], this.model.rows)
160
+ // 勾选
161
+ for (var i = 0; i < this.model.rows.length; i++) {
162
+ this.radio[index].$set(i, true)
163
+ }
164
+ } else {
165
+ // 数据
166
+ this.rowsdata[index] = []
167
+ // 不勾选
168
+ for (var i = 0; i < this.model.rows.length; i++) {
169
+ this.radio[index].$set(i, false)
170
+ }
171
+ }
172
+ let z = 0
173
+ for (let i = 0; i < this.all.length; i++) {
174
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
175
+ this.printModel.rows[z++] = this.rowsdata[i][j]
176
+ }
177
+ }
178
+ },
179
+ selectOne (event, row, i) {
180
+ let index = this.model.pageIndex - 1
181
+ if (!this.rowsdata[index]) {
182
+ this.rowsdata[index] = []
183
+ }
184
+ if (!this.radio[index]) {
185
+ this.radio.$set(index, [])
186
+ }
187
+ if (event.target.checked) {
188
+ // 数据
189
+ this.rowsdata[index][i] = row
190
+ // 勾选
191
+ this.radio[index].$set(i, true)
192
+ // 判断是否全部选中
193
+ var allState = true
194
+ if (this.model.rows.length != this.radio[index].length) {
195
+ allState = false
196
+ }
197
+ for (var state of this.radio[index]) {
198
+ if (!state) {
199
+ allState = false
200
+ }
201
+ }
202
+ if (allState) {
203
+ this.all.$set(index, true)
204
+ } else {
205
+ this.all.$set(index, false)
206
+ }
207
+ } else {
208
+ // 数据
209
+ this.rowsdata[index][i] = []
210
+ // 不勾选
211
+ this.radio[index].$set(i, false)
212
+ // 任意取消一个则全选状态设为false
213
+ this.all.$set(index, false)
214
+ }
215
+ let z = 0
216
+ this.printModel.rows = []
217
+ for (let i = 0; i < this.all.length; i++) {
218
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
219
+ if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
220
+ this.printModel.rows[z++] = this.rowsdata[i][j]
221
+ }
222
+ }
223
+ }
224
+ }
225
+ },
226
+ computed: {
227
+ ischecked () {
228
+ return function (index, i) {
229
+ if (!this.radio[index]) {
230
+ return false
231
+ }
232
+ return this.radio[index][i]
233
+ }
234
+ },
235
+ changeType () {
236
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表类型')]
237
+ }
238
+ }
239
+ }
240
+ </script>