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