manage-client 3.3.1 → 3.3.2

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/build/dev-server.js +180 -180
  2. package/lib/package_2022-12-01-14-30-50.json +109 -0
  3. package/package.json +1 -1
  4. package/src/components/sale/businessquery/GroupChargeQuery.vue +481 -481
  5. package/src/components/sale/businessquery/NewAreaGeneralQuery.vue +633 -633
  6. package/src/components/webmeter/recharge/RechargeList.vue +346 -346
  7. package/src/filiale/gehua/GroupChargeQuery.vue +486 -486
  8. package/src/filiale/huayin/ChargeQuery.vue +1305 -1305
  9. package/src/filiale/rongcheng/AreaBuildingDetailInfo.vue +281 -281
  10. package/src/filiale/rongcheng/AreaBuildingInfoSummary.vue +301 -301
  11. package/src/filiale/rongcheng/exportConfig.js +536 -536
  12. package/src/filiale/rongcheng/sale.js +22 -22
  13. package/src/filiale/shanxian/FillCardQuery.vue +569 -569
  14. package/src/filiale/shanxian/FillGasQuery.vue +588 -588
  15. package/src/filiale/shanxian/LostContactAnalysisList.vue +632 -632
  16. package/src/filiale/shanxian/OtherChargeQuery.vue +684 -684
  17. package/src/filiale/shanxian/UserLostContactAnalysis.vue +583 -583
  18. package/src/filiale/shanxian/UserQuery.vue +959 -959
  19. package/src/filiale/shanxian/sale.js +26 -26
  20. package/src/filiale/wenxi/ChangeMeterQuery.vue +704 -704
  21. package/src/filiale/wenxi/ChangeUserQuery.vue +371 -371
  22. package/src/filiale/wenxi/ChargeQuery.vue +1260 -1260
  23. package/src/filiale/wenxi/FmyGasDeviceQuery.vue +944 -944
  24. package/src/filiale/wenxi/GasDeviceQuery.vue +1041 -1041
  25. package/src/filiale/wenxi/GasStatistics.vue +515 -515
  26. package/src/filiale/wenxi/GetNoMetereadData.vue +374 -374
  27. package/src/filiale/wenxi/HandplanQuery.vue +1370 -1370
  28. package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
  29. package/src/filiale/wenxi/MeterQuery.vue +964 -964
  30. package/src/filiale/wenxi/NewGasStatistics.vue +522 -522
  31. package/src/filiale/wenxi/RecordInfoQuery.vue +1213 -1213
  32. package/src/filiale/wenxi/WebHandQuery.vue +475 -475
  33. package/src/filiale/wenxi/config/exportConfig.js +916 -916
  34. package/src/filiale/wenxi/sale.js +24 -24
  35. package/src/filiale/wenxi/webmeterManage.js +13 -13
  36. package/src/filiale/xinkang/EchartsBox.vue +139 -139
  37. package/src/filiale/xinkang/ManageBrandHouseCount.vue +347 -347
  38. package/src/filiale/xinkang/NewGasStatistics.vue +526 -526
  39. package/src/filiale/xinkang/exportConfig.js +1998 -1998
  40. package/src/filiale/xinkang/meterFaultChangeSummary.vue +196 -196
  41. package/src/filiale/xinkang/reportManage.js +15 -15
  42. package/src/filiale/xinkang/sale.js +13 -13
  43. package/src/filiale/xinkang/webmeterManage.js +9 -9
  44. package/src/filiale/zhongyi/GasStatistics.vue +521 -521
  45. package/src/main.js +72 -66
  46. package/.gradle/4.4/fileChanges/last-build.bin +0 -0
  47. package/.gradle/6.1/executionHistory/executionHistory.bin +0 -0
  48. package/.gradle/6.1/executionHistory/executionHistory.lock +0 -0
  49. package/.gradle/6.1/fileChanges/last-build.bin +0 -0
  50. package/.gradle/6.1/fileHashes/fileHashes.bin +0 -0
  51. package/.gradle/6.1/fileHashes/fileHashes.lock +0 -0
@@ -1,684 +1,684 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" v-if="!show">
5
-
6
- <criteria-paged :model="model" v-ref:paged @sort="sort">
7
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
- <div class="col-sm-2 form-group">
10
- <label class="font_normal_body">用户编号</label>
11
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
12
- condition="f_userinfo_code = '{}' " placeholder="用户编号">
13
- </div>
14
- <div class="row">
15
- <div class="col-sm-2 form-group">
16
- <label class="font_normal_body">用户名称</label>
17
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
- condition="f_user_name like '%{}%'" placeholder="用户名称">
19
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label class="font_normal_body">用户地址</label>
22
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
23
- condition="f_address like '%{}%'" placeholder='用户地址'>
24
- </div>
25
- <div class="col-sm-2 form-group">
26
- <label class="font_normal_body" title="旧用户编号">档案编号</label>
27
- <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
28
- condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
29
- </div>
30
-
31
- <div class="span" style="float:right;">
32
- <button class="button_search button_spacing" @click="search()">查询</button>
33
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
34
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
35
-
36
- <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
37
- :field="$parent.$parent.getfield" :header="$parent.$parent.other"
38
- sqlurl="rs/logic/exportfile" sql-name="otherChargeQuery" template-name='其他收费查询导出'
39
- :choose-col="true"></export-excel>
40
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
41
- :defaultfield="$parent.$parent.defaultfield"
42
- titletable="其他收费记录"
43
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
44
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
45
- </div>
46
- </div>
47
-
48
- <div class="row" v-show="$parent.$parent.criteriaShow">
49
- <div class="col-sm-2 form-group">
50
- <label for="startDate" class="font_normal_body">开始日期</label>
51
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
52
- v-model="model.startDate"
53
- :value.sync="model.startDate"
54
- :format="'yyyy-MM-dd HH:mm:ss'"
55
- :show-reset-button="true"
56
- condition="f_operate_date >= '{}'">
57
- </datepicker>
58
- </div>
59
- <div class="col-sm-2 form-group">
60
- <label for="endDate" class="font_normal_body">结束日期</label>
61
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
62
- v-model="model.endDate"
63
- :value.sync="model.endDate"
64
- :format="'yyyy-MM-dd HH:mm:ss'"
65
- :show-reset-button="true"
66
- condition="f_operate_date <= '{}'">
67
- </datepicker>
68
- </div>
69
- <res-select-group :initres="$parent.$parent.initres" :cascade =true @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
70
- <div class="col-sm-2 form-group">
71
- <label class="font_normal_body">收费类型</label>
72
- <v-select v-model="model.f_brand_spec"
73
- placeholder='请选择'
74
- condition="f_brand_spec in {}"
75
- :value.sync="model.f_brand_spec" multiple
76
- :options='$parent.$parent.chargetype'
77
- @change="$parent.$parent.setTypename"
78
- close-on-select clear-button></v-select>
79
- </div>
80
- <div class="col-sm-2 form-group">
81
- <label class="font_normal_body">品名规格</label>
82
- <v-select v-model="model.f_typename"
83
- placeholder='请选择'
84
- condition="f_typename in {}"
85
- :value.sync="model.f_typename" multiple
86
- :options='$parent.$parent.typeNameList'
87
- @change="$parent.$parent.setTypenumber"
88
- close-on-select clear-button>
89
- </v-select>
90
- </div>
91
- <div class="col-sm-2 form-group">
92
- <label class="font_normal_body">型&emsp;&emsp;号</label>
93
- <v-select v-model="model.f_typenumber"
94
- placeholder='请选择'
95
- condition="f_typenumber = '{}'"
96
- :value.sync="model.f_typenumber"
97
- :options='$parent.$parent.typenumberList'
98
- close-on-select clear-button>
99
- </v-select>
100
- </div>
101
- <div class="col-sm-2 form-group">
102
- <label class="font_normal_body">表&emsp;&emsp;号</label>
103
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
104
- condition="f_meternumber = '{}'" placeholder='表号'>
105
- </div>
106
- <div class="col-sm-2 form-group">
107
- <label class="font_normal_body">卡&emsp;&emsp;号</label>
108
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
109
- condition="f_card_id = '{}'" placeholder='卡号'>
110
- </div>
111
- <div class="col-sm-2 form-group">
112
- <label class="font_normal_body">用户类型</label>
113
- <v-select id="f_user_type"
114
- v-model="model.f_user_type"
115
- placeholder='请选择'
116
- condition="f_user_type ='{}'"
117
- :value.sync="model.f_user_type"
118
- @change="$parent.$parent.userTypeChange(model.f_user_type)"
119
- :options='$parent.$parent.userTypes'
120
- close-on-select clear-button></v-select>
121
- </div>
122
- <div class="col-sm-2 form-group">
123
- <label class="font_normal_body">用气性质</label>
124
- <v-select id="f_gasproperties"
125
- v-model="model.f_gasproperties"
126
- placeholder='请选择'
127
- condition="f_gasproperties ='{}'"
128
- :value.sync="model.f_gasproperties"
129
- :options='$parent.$parent.gasproperties'
130
- close-on-select clear-button></v-select>
131
- </div>
132
- <div class="col-sm-2 form-group">
133
- <label class="font_normal_body">收费状态</label>
134
- <v-select id="f_state"
135
- v-model="model.f_state"
136
- placeholder='请选择'
137
- condition="f_state in {}"
138
- multiple="true"
139
- :value.sync="model.f_state"
140
- :options='$parent.$parent.chargeState'
141
- close-on-select clear-button>
142
- </v-select>
143
- </div>
144
-
145
- <div class="col-sm-2 form-group">
146
- <label class="font_normal_body">付款方式</label>
147
- <v-select id="f_payment"
148
- v-model="model.f_payment"
149
- placeholder='请选择'
150
- condition="f_payment in {}"
151
- multiple="true"
152
- :value.sync="model.f_payment"
153
- :options='$parent.$parent.payments'
154
- close-on-select clear-button>
155
- </v-select>
156
- </div>
157
- <div class="col-sm-2 form-group">
158
- <label class="font_normal_body">服务人员</label>
159
- <v-select id="f_service_person"
160
- v-model="model.f_service_person"
161
- placeholder='请选择'
162
- condition="f_service_person ='{}'"
163
- :value.sync="model.f_service_person"
164
- :options='$parent.$parent.service_person'
165
- close-on-select clear-button>
166
- </v-select>
167
- </div>
168
- <div class="col-sm-2 form-group">
169
- <label class="font_normal_body">气表类型</label>
170
- <v-select :value.sync="model.f_meter_classify" multiple
171
- :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_classify"
172
- condition="f_meter_classify in {}"
173
- close-on-select></v-select>
174
- </div>
175
- <div class="col-sm-2 form-group">
176
- <label class="font_normal_body">气表品牌</label>
177
- <v-select :value.sync="model.f_meter_brand" multiple
178
- v-model="model.f_meter_brand"
179
- :options='$parent.$parent.meterbrands' placeholder='请选择'
180
- condition="f_meter_brand in {}"
181
- close-on-select></v-select>
182
- </div>
183
- </div>
184
- </div>
185
- </criteria>
186
-
187
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
188
- <template partial='head'>
189
- <tr>
190
- <th>
191
- <!-- <nobr>用户编号</nobr>-->
192
- <data-order field="f_userinfo_code" name="用户编号"
193
- :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
194
- </th>
195
- <th>
196
- <nobr>用户名称</nobr>
197
- </th>
198
- <th>
199
- <!-- <nobr>用户地址</nobr>-->
200
- <data-order field="f_address" name="用户地址"
201
- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
202
- </th>
203
- <th>
204
- <nobr>档案编号</nobr>
205
- </th>
206
- <th>
207
- <nobr>收费编号</nobr>
208
- </th>
209
- <th>
210
- <nobr>表号</nobr>
211
- </th>
212
- <th>
213
- <nobr>用户电话</nobr>
214
- </th>
215
- <th>
216
- <nobr>气表类型</nobr>
217
- </th>
218
- <th>
219
- <nobr>气表品牌</nobr>
220
- </th>
221
- <th>
222
- <nobr>卡号</nobr>
223
- </th>
224
- <th>
225
- <nobr>收据票号</nobr>
226
- </th>
227
-
228
- <th>
229
- <nobr>收费类型</nobr>
230
- </th>
231
- <th>
232
- <nobr>品名规格</nobr>
233
- </th>
234
- <th>
235
- <nobr>型号</nobr>
236
- </th>
237
- <th>
238
- <nobr>单价</nobr>
239
- </th>
240
- <th>
241
- <nobr>数量</nobr>
242
- </th>
243
- <th>
244
- <nobr>收款</nobr>
245
- </th>
246
- <th>
247
- <nobr>付款方式</nobr>
248
- </th>
249
- <th>
250
- <nobr>状态</nobr>
251
- </th>
252
- <th>
253
- <!-- <nobr>收费日期</nobr>-->
254
- <data-order field="f_operate_date" name="收费日期"
255
- :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
256
- </th>
257
- <th>
258
- <nobr>服务人员</nobr>
259
- </th>
260
- <th>
261
- <nobr>备注</nobr>
262
- </th>
263
- <th>
264
- <nobr>人员</nobr>
265
- </th>
266
- <th>
267
- <nobr>部门</nobr>
268
- </th>
269
- <th>
270
- <nobr>公司</nobr>
271
- </th>
272
- <th><nobr>附件</nobr></th>
273
- <!--<th><nobr>查看详情</nobr></th>-->
274
- </tr>
275
- </template>
276
- <template partial='body'>
277
- <td style="text-align: center;">
278
- <nobr>
279
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
280
- </td>
281
- <td style="text-align: center;">
282
- <nobr>{{row.f_user_name}}</nobr>
283
- </td>
284
- <td style="text-align: center;">
285
- <nobr>{{row.f_address}}</nobr>
286
- </td>
287
- <td style="text-align: center;">
288
- <nobr>{{row.f_olduserinfo_code}}</nobr>
289
- </td>
290
- <td style="text-align: center;">
291
- <nobr>{{row.id}}</nobr>
292
- </td>
293
- <td style="text-align: center;">
294
- <nobr>{{row.f_meternumber}}</nobr>
295
- </td>
296
- <td style="text-align: center;">
297
- <nobr>{{row.f_user_phone}}</nobr>
298
- </td>
299
- <td style="text-align: center;">
300
- <nobr>{{row.f_meter_classify}}</nobr>
301
- </td>
302
- <td style="text-align: center;">
303
- <nobr>{{row.f_meter_brand}}</nobr>
304
- </td>
305
- <td style="text-align: center;">
306
- <nobr>{{row.f_card_id}}</nobr>
307
- </td>
308
-
309
- <td style="text-align: center;">
310
- <nobr>{{row.f_bill_number}}</nobr>
311
- </td>
312
- <td style="text-align: center;">
313
- <nobr>{{row.f_brand_spec}}</nobr>
314
- </td>
315
- <td style="text-align: center;">
316
- <nobr>{{row.f_typename}}</nobr>
317
- </td>
318
- <td style="text-align: center;">
319
- <nobr>{{row.f_typenumber}}</nobr>
320
- </td>
321
- <td style="text-align: center;">
322
- <nobr>{{row.f_unitprice}}</nobr>
323
- </td>
324
- <td style="text-align: center;">
325
- <nobr>{{row.f_number}}</nobr>
326
- </td>
327
- <td style="text-align: center;">
328
- <nobr>{{row.f_money}}</nobr>
329
- </td>
330
- <td style="text-align: center;">
331
- <nobr>{{row.f_payment}}</nobr>
332
- </td>
333
- <td style="text-align: center;">
334
- <nobr>{{row.f_state}}</nobr>
335
- </td>
336
- <td style="text-align: center;">
337
- <nobr>{{row.f_operate_date}}</nobr>
338
- </td>
339
- <td style="text-align: center;">
340
- <nobr>{{row.f_service_person}}</nobr>
341
- </td>
342
- <td style="text-align: center;">
343
- <nobr>{{row.f_comments}}</nobr>
344
- </td>
345
- <td style="text-align: center;">
346
- <nobr>{{row.f_operator}}</nobr>
347
- </td>
348
- <td style="text-align: center;">
349
- <nobr>{{row.f_depname}}</nobr>
350
- </td>
351
- <td style="text-align: center;">
352
- <nobr>{{row.f_orgname}}</nobr>
353
- </td>
354
- <td style="text-align: center;"><nobr>
355
- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
356
- </nobr></td>
357
- <!--<td style="text-align: center;">-->
358
- <!--<button class="btn btn-link" @click.stop="$parent.$parent.$parent.showchargedetail(row)">查看</button>-->
359
- <!--</td>-->
360
- </template>
361
- <template partial='foot'></template>
362
- </data-grid>
363
-
364
- </criteria-paged>
365
-
366
- <table class="table-hover">
367
- <tr style="position: relative" class="table-bordered">
368
- <td
369
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
370
- 汇总信息
371
- </td>
372
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
373
- 收款合计:&emsp;{{sumsmodel.f_money}}
374
- </td>
375
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
376
- 总户数合计:&emsp;{{sumsmodel.hushu}}
377
- </td>
378
- </tr>
379
- </table>
380
-
381
- </div>
382
- <div class="flex" v-if="show">
383
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
384
- </div>
385
- </div>
386
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
387
- <article slot="modal-body">
388
- <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="收费" :isremark="false" style="width:auto" ></upload>
389
- </article>
390
- <footer slot="modal-footer" class="modal-footer">
391
- </footer>
392
- </modal>
393
- </div>
394
-
395
- <modal v-if="showdetail" :show.sync="showdetail" title="详细记录" v-ref:modal large backdrop="false">
396
- <article slot="modal-body" class="modal-body">
397
- <other-charge-detail-query :otherchargeid="otherchargeid" ></other-charge-detail-query>
398
- </article>
399
- <footer slot="modal-footer" class="modal-footer">
400
- </footer>
401
- </modal>
402
-
403
- </template>
404
-
405
- <script>
406
- import {PagedList} from 'vue-client'
407
- import defaultPrint from './config/DefaultPrint'
408
- import exportConfig from './config/exportConfig'
409
- import OtherChargeDetailQuery from "./OtherChargeDetailQuery";
410
-
411
- let readySomething = async function (self) {
412
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
413
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
414
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
415
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
416
- // await self.$refs.paged.$refs.cri.search()
417
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
418
- await self.$MagLoadParams.loadParam()
419
-
420
- self.initParams()
421
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
422
- }
423
- export default {
424
- components: {
425
- OtherChargeDetailQuery
426
- },
427
- props:['data'],
428
- title: '其他收费查询',
429
- data() {
430
- return {
431
- data: {},
432
- other:[],
433
- footer:[],
434
- model: new PagedList('rs/sql/otherChargeQuery', 20, {orderitem: this.orderitem?`${this.orderitem}`: " 'f_operate_date desc'"}, {f_money: 0,hushu:0}),
435
- criteriaShow: false,
436
- orgCondtionStr: '',
437
- modelval: [],
438
- printshow: false,
439
- all: false,
440
- fields: {},
441
- config: {
442
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_brand_spec', 'f_typename', 'f_typenumber', 'f_unitprice', 'f_number', 'f_money','f_operate_date', 'f_operator']
443
- },
444
- //排序
445
- orderitem:'f_operate_date desc',
446
- orderFields: {
447
- f_operate_date: 'no'
448
- },
449
- //默认打印列
450
- defaultfield: [],
451
- thead: '',
452
- tfoot: '',
453
- initres: {
454
- org:[this.$login.f.orgid],
455
- dep:[],
456
- user:[],
457
- },
458
- show:false,
459
- showdetail:false,
460
- otherchargeid:'',
461
- rowdata:{},
462
- meterbrands: [],
463
- //合计数据
464
- sumsmodel: {},
465
- showupload:false,
466
- selected:{},
467
- // 用气性质
468
- gasproperties: [],
469
- // 品名规格
470
- typeNameList: [],
471
- // 型号
472
- typenumberList: []
473
- }
474
- },
475
- ready() {
476
- readySomething(this).then(() => {
477
- this.$emit('ready')
478
- }).catch((error) => {
479
- this.$emit('error', error)
480
- })
481
- },
482
- methods: {
483
- view(row){
484
- this.showupload = true
485
- this.selected= row
486
- },
487
- initParams() {
488
- // 初始化气表品牌
489
- let brandArr = []
490
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
491
- let temp = {}
492
- temp.label = item.label
493
- temp.value = item.value.f_meter_brand
494
- brandArr.push(temp)
495
- })
496
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
497
- },
498
- getotherfooter(){
499
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
500
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
501
- this.other=[];
502
- this.footer=[];
503
- let exportdata = this.getCondition;
504
- let otherInData=[];
505
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
506
- let footerData=[],exportfield=this.getfield;
507
- footerData.push("合计");
508
- let self = this;
509
- for(var field in self.sumsmodel){
510
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
511
- }
512
- this.footer.push(footerData);
513
- this.other.push(otherInData);
514
- },
515
- search(){
516
- this.$refs.paged.$refs.cri.search()
517
- },
518
- async selfSearch(args) {
519
- if (this.data) {
520
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
521
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
522
- }
523
- args.condition = `${args.condition}` + this.orgCondtionStr
524
- await this.model.search(args.condition, args.model)
525
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
526
- this.sumsmodel.hushu =[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
527
- if(this.sumsmodel.hushu===null){
528
- this.sumsmodel.hushu = 0
529
- }
530
- },
531
- clear() {
532
- //清空部门和人员
533
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
534
- //部门和人员变为全选
535
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
536
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
537
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
538
- this.$refs.paged.$refs.cri.model[key] = []
539
- })
540
- },
541
- show() {
542
- this.criteriaShow = true
543
- },
544
- hidden() {
545
- this.criteriaShow = !this.criteriaShow
546
- },
547
- getRes(obj) {
548
- this.orgCondtionStr = obj
549
- },
550
- cancel() {
551
- this.show = false
552
- },
553
- dealmsg(val) {
554
- console.log('---------------dealmsg')
555
- this.rowdata=val
556
- this.show=true
557
- val.model = this.model.model
558
- this.$dispatch('deal-msg', val)
559
- },
560
- stamp() {
561
- this.all = false
562
- //默认选择要打印的列
563
- this.modelval = defaultPrint.config
564
- this.fields = this.getfield
565
- console.log('所有打印字段', this.fields)
566
- this.printshow = true
567
- this.put()
568
- },
569
- put() {
570
- // 对Modelval进行排序
571
- this.sortModelval()
572
- this.thead = `<tr><th colspan=${this.modelval.length}>其他收费查询统计报表</th></tr><tr>`
573
- for (let key of this.modelval) {
574
- this.thead += '<th>' + this.fields[key] + '</th>'
575
- }
576
- this.thead += '</tr>'
577
- },
578
- print() {
579
- this.$refs.print.PrintAsFile()
580
- this.printshow = false
581
- },
582
- close() {
583
- this.printshow = false
584
- this.all = false
585
- },
586
- // 对选择的列进行排序
587
- sortModelval() {
588
- let sortModel = []
589
- Object.keys(this.fields).forEach((key) => {
590
- if (this.modelval.includes(key)) {
591
- sortModel.push(key)
592
- }
593
- })
594
- this.modelval = sortModel
595
- console.log('选择的打印的字段', this.modelval)
596
- },
597
- showchargedetail(row){
598
- this.showdetail=true
599
- this.otherchargeid=row.id
600
- },
601
- userTypeChange (f_user_type) {
602
- this.gasproperties = []
603
- if (f_user_type) {
604
- this.$refs.paged.$refs.cri.model.f_gasproperties = ''
605
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
606
- } else {
607
- this.gasproperties = [{label: '全部', value: ''}]
608
- }
609
- },
610
- setTypename (val) {
611
- this.typenumberList = []
612
- this.typeNameList = this.$appdata.getParam(val)
613
- },
614
- setTypenumber (val) {
615
- this.typenumberList = this.$appdata.getParam(val)
616
- },
617
- sort (field, rule) {
618
- // 将所有排序方式设为不排序,实现相互排斥
619
- for (let key in this.orderFields) {
620
- if (key === field) {
621
- this.orderFields[key] = rule
622
- } else {
623
- this.orderFields[key] = 'no'
624
- }
625
- }
626
- // 如果新规则不排序,还原为默认排序
627
- if (rule === 'no') {
628
- this.model.paramSource.orderitem = `'${this.orderitem}'`
629
- } else {
630
- this.model.paramSource.orderitem = `'${field} ${rule}'`
631
- }
632
-
633
- this.search()
634
- }
635
- },
636
- watch: {
637
- 'all'(val) {
638
- if (val) {
639
- this.modelval = this.bodyData
640
- } else {
641
- this.modelval = defaultPrint.config
642
- this.put()
643
- }
644
- },
645
- 'modelval.length'() {
646
- this.put()
647
- },
648
- sumsmodel:{
649
- handler: function(val) {
650
- this.getotherfooter();
651
- },
652
- deep: true
653
- }
654
- },
655
- computed: {
656
- getCondition() {
657
- return {
658
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
659
- orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
660
- },
661
- service_person() {
662
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('服务人员')]
663
- },
664
- getfield() {
665
- return exportConfig.otherchargeConfig
666
- },
667
- chargetype() {
668
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('品名及规格')]
669
- },
670
- userTypes() {
671
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
672
- },
673
- chargeState() {
674
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
675
- },
676
- metertypes() {
677
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
678
- },
679
- payments() {
680
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
681
- }
682
- }
683
- }
684
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
5
+
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="col-sm-2 form-group">
10
+ <label class="font_normal_body">用户编号</label>
11
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
12
+ condition="f_userinfo_code = '{}' " placeholder="用户编号">
13
+ </div>
14
+ <div class="row">
15
+ <div class="col-sm-2 form-group">
16
+ <label class="font_normal_body">用户名称</label>
17
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
+ condition="f_user_name like '%{}%'" placeholder="用户名称">
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label class="font_normal_body">用户地址</label>
22
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
23
+ condition="f_address like '%{}%'" placeholder='用户地址'>
24
+ </div>
25
+ <div class="col-sm-2 form-group">
26
+ <label class="font_normal_body" title="旧用户编号">档案编号</label>
27
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
28
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
29
+ </div>
30
+
31
+ <div class="span" style="float:right;">
32
+ <button class="button_search button_spacing" @click="search()">查询</button>
33
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
34
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
35
+
36
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
37
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
38
+ sqlurl="rs/logic/exportfile" sql-name="otherChargeQuery" template-name='其他收费查询导出'
39
+ :choose-col="true"></export-excel>
40
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
41
+ :defaultfield="$parent.$parent.defaultfield"
42
+ titletable="其他收费记录"
43
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
44
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
45
+ </div>
46
+ </div>
47
+
48
+ <div class="row" v-show="$parent.$parent.criteriaShow">
49
+ <div class="col-sm-2 form-group">
50
+ <label for="startDate" class="font_normal_body">开始日期</label>
51
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
52
+ v-model="model.startDate"
53
+ :value.sync="model.startDate"
54
+ :format="'yyyy-MM-dd HH:mm:ss'"
55
+ :show-reset-button="true"
56
+ condition="f_operate_date >= '{}'">
57
+ </datepicker>
58
+ </div>
59
+ <div class="col-sm-2 form-group">
60
+ <label for="endDate" class="font_normal_body">结束日期</label>
61
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
62
+ v-model="model.endDate"
63
+ :value.sync="model.endDate"
64
+ :format="'yyyy-MM-dd HH:mm:ss'"
65
+ :show-reset-button="true"
66
+ condition="f_operate_date <= '{}'">
67
+ </datepicker>
68
+ </div>
69
+ <res-select-group :initres="$parent.$parent.initres" :cascade =true @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
70
+ <div class="col-sm-2 form-group">
71
+ <label class="font_normal_body">收费类型</label>
72
+ <v-select v-model="model.f_brand_spec"
73
+ placeholder='请选择'
74
+ condition="f_brand_spec in {}"
75
+ :value.sync="model.f_brand_spec" multiple
76
+ :options='$parent.$parent.chargetype'
77
+ @change="$parent.$parent.setTypename"
78
+ close-on-select clear-button></v-select>
79
+ </div>
80
+ <div class="col-sm-2 form-group">
81
+ <label class="font_normal_body">品名规格</label>
82
+ <v-select v-model="model.f_typename"
83
+ placeholder='请选择'
84
+ condition="f_typename in {}"
85
+ :value.sync="model.f_typename" multiple
86
+ :options='$parent.$parent.typeNameList'
87
+ @change="$parent.$parent.setTypenumber"
88
+ close-on-select clear-button>
89
+ </v-select>
90
+ </div>
91
+ <div class="col-sm-2 form-group">
92
+ <label class="font_normal_body">型&emsp;&emsp;号</label>
93
+ <v-select v-model="model.f_typenumber"
94
+ placeholder='请选择'
95
+ condition="f_typenumber = '{}'"
96
+ :value.sync="model.f_typenumber"
97
+ :options='$parent.$parent.typenumberList'
98
+ close-on-select clear-button>
99
+ </v-select>
100
+ </div>
101
+ <div class="col-sm-2 form-group">
102
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
103
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
104
+ condition="f_meternumber = '{}'" placeholder='表号'>
105
+ </div>
106
+ <div class="col-sm-2 form-group">
107
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
108
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
109
+ condition="f_card_id = '{}'" placeholder='卡号'>
110
+ </div>
111
+ <div class="col-sm-2 form-group">
112
+ <label class="font_normal_body">用户类型</label>
113
+ <v-select id="f_user_type"
114
+ v-model="model.f_user_type"
115
+ placeholder='请选择'
116
+ condition="f_user_type ='{}'"
117
+ :value.sync="model.f_user_type"
118
+ @change="$parent.$parent.userTypeChange(model.f_user_type)"
119
+ :options='$parent.$parent.userTypes'
120
+ close-on-select clear-button></v-select>
121
+ </div>
122
+ <div class="col-sm-2 form-group">
123
+ <label class="font_normal_body">用气性质</label>
124
+ <v-select id="f_gasproperties"
125
+ v-model="model.f_gasproperties"
126
+ placeholder='请选择'
127
+ condition="f_gasproperties ='{}'"
128
+ :value.sync="model.f_gasproperties"
129
+ :options='$parent.$parent.gasproperties'
130
+ close-on-select clear-button></v-select>
131
+ </div>
132
+ <div class="col-sm-2 form-group">
133
+ <label class="font_normal_body">收费状态</label>
134
+ <v-select id="f_state"
135
+ v-model="model.f_state"
136
+ placeholder='请选择'
137
+ condition="f_state in {}"
138
+ multiple="true"
139
+ :value.sync="model.f_state"
140
+ :options='$parent.$parent.chargeState'
141
+ close-on-select clear-button>
142
+ </v-select>
143
+ </div>
144
+
145
+ <div class="col-sm-2 form-group">
146
+ <label class="font_normal_body">付款方式</label>
147
+ <v-select id="f_payment"
148
+ v-model="model.f_payment"
149
+ placeholder='请选择'
150
+ condition="f_payment in {}"
151
+ multiple="true"
152
+ :value.sync="model.f_payment"
153
+ :options='$parent.$parent.payments'
154
+ close-on-select clear-button>
155
+ </v-select>
156
+ </div>
157
+ <div class="col-sm-2 form-group">
158
+ <label class="font_normal_body">服务人员</label>
159
+ <v-select id="f_service_person"
160
+ v-model="model.f_service_person"
161
+ placeholder='请选择'
162
+ condition="f_service_person ='{}'"
163
+ :value.sync="model.f_service_person"
164
+ :options='$parent.$parent.service_person'
165
+ close-on-select clear-button>
166
+ </v-select>
167
+ </div>
168
+ <div class="col-sm-2 form-group">
169
+ <label class="font_normal_body">气表类型</label>
170
+ <v-select :value.sync="model.f_meter_classify" multiple
171
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_classify"
172
+ condition="f_meter_classify in {}"
173
+ close-on-select></v-select>
174
+ </div>
175
+ <div class="col-sm-2 form-group">
176
+ <label class="font_normal_body">气表品牌</label>
177
+ <v-select :value.sync="model.f_meter_brand" multiple
178
+ v-model="model.f_meter_brand"
179
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
180
+ condition="f_meter_brand in {}"
181
+ close-on-select></v-select>
182
+ </div>
183
+ </div>
184
+ </div>
185
+ </criteria>
186
+
187
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
188
+ <template partial='head'>
189
+ <tr>
190
+ <th>
191
+ <!-- <nobr>用户编号</nobr>-->
192
+ <data-order field="f_userinfo_code" name="用户编号"
193
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
194
+ </th>
195
+ <th>
196
+ <nobr>用户名称</nobr>
197
+ </th>
198
+ <th>
199
+ <!-- <nobr>用户地址</nobr>-->
200
+ <data-order field="f_address" name="用户地址"
201
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
202
+ </th>
203
+ <th>
204
+ <nobr>档案编号</nobr>
205
+ </th>
206
+ <th>
207
+ <nobr>收费编号</nobr>
208
+ </th>
209
+ <th>
210
+ <nobr>表号</nobr>
211
+ </th>
212
+ <th>
213
+ <nobr>用户电话</nobr>
214
+ </th>
215
+ <th>
216
+ <nobr>气表类型</nobr>
217
+ </th>
218
+ <th>
219
+ <nobr>气表品牌</nobr>
220
+ </th>
221
+ <th>
222
+ <nobr>卡号</nobr>
223
+ </th>
224
+ <th>
225
+ <nobr>收据票号</nobr>
226
+ </th>
227
+
228
+ <th>
229
+ <nobr>收费类型</nobr>
230
+ </th>
231
+ <th>
232
+ <nobr>品名规格</nobr>
233
+ </th>
234
+ <th>
235
+ <nobr>型号</nobr>
236
+ </th>
237
+ <th>
238
+ <nobr>单价</nobr>
239
+ </th>
240
+ <th>
241
+ <nobr>数量</nobr>
242
+ </th>
243
+ <th>
244
+ <nobr>收款</nobr>
245
+ </th>
246
+ <th>
247
+ <nobr>付款方式</nobr>
248
+ </th>
249
+ <th>
250
+ <nobr>状态</nobr>
251
+ </th>
252
+ <th>
253
+ <!-- <nobr>收费日期</nobr>-->
254
+ <data-order field="f_operate_date" name="收费日期"
255
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
256
+ </th>
257
+ <th>
258
+ <nobr>服务人员</nobr>
259
+ </th>
260
+ <th>
261
+ <nobr>备注</nobr>
262
+ </th>
263
+ <th>
264
+ <nobr>人员</nobr>
265
+ </th>
266
+ <th>
267
+ <nobr>部门</nobr>
268
+ </th>
269
+ <th>
270
+ <nobr>公司</nobr>
271
+ </th>
272
+ <th><nobr>附件</nobr></th>
273
+ <!--<th><nobr>查看详情</nobr></th>-->
274
+ </tr>
275
+ </template>
276
+ <template partial='body'>
277
+ <td style="text-align: center;">
278
+ <nobr>
279
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
280
+ </td>
281
+ <td style="text-align: center;">
282
+ <nobr>{{row.f_user_name}}</nobr>
283
+ </td>
284
+ <td style="text-align: center;">
285
+ <nobr>{{row.f_address}}</nobr>
286
+ </td>
287
+ <td style="text-align: center;">
288
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
289
+ </td>
290
+ <td style="text-align: center;">
291
+ <nobr>{{row.id}}</nobr>
292
+ </td>
293
+ <td style="text-align: center;">
294
+ <nobr>{{row.f_meternumber}}</nobr>
295
+ </td>
296
+ <td style="text-align: center;">
297
+ <nobr>{{row.f_user_phone}}</nobr>
298
+ </td>
299
+ <td style="text-align: center;">
300
+ <nobr>{{row.f_meter_classify}}</nobr>
301
+ </td>
302
+ <td style="text-align: center;">
303
+ <nobr>{{row.f_meter_brand}}</nobr>
304
+ </td>
305
+ <td style="text-align: center;">
306
+ <nobr>{{row.f_card_id}}</nobr>
307
+ </td>
308
+
309
+ <td style="text-align: center;">
310
+ <nobr>{{row.f_bill_number}}</nobr>
311
+ </td>
312
+ <td style="text-align: center;">
313
+ <nobr>{{row.f_brand_spec}}</nobr>
314
+ </td>
315
+ <td style="text-align: center;">
316
+ <nobr>{{row.f_typename}}</nobr>
317
+ </td>
318
+ <td style="text-align: center;">
319
+ <nobr>{{row.f_typenumber}}</nobr>
320
+ </td>
321
+ <td style="text-align: center;">
322
+ <nobr>{{row.f_unitprice}}</nobr>
323
+ </td>
324
+ <td style="text-align: center;">
325
+ <nobr>{{row.f_number}}</nobr>
326
+ </td>
327
+ <td style="text-align: center;">
328
+ <nobr>{{row.f_money}}</nobr>
329
+ </td>
330
+ <td style="text-align: center;">
331
+ <nobr>{{row.f_payment}}</nobr>
332
+ </td>
333
+ <td style="text-align: center;">
334
+ <nobr>{{row.f_state}}</nobr>
335
+ </td>
336
+ <td style="text-align: center;">
337
+ <nobr>{{row.f_operate_date}}</nobr>
338
+ </td>
339
+ <td style="text-align: center;">
340
+ <nobr>{{row.f_service_person}}</nobr>
341
+ </td>
342
+ <td style="text-align: center;">
343
+ <nobr>{{row.f_comments}}</nobr>
344
+ </td>
345
+ <td style="text-align: center;">
346
+ <nobr>{{row.f_operator}}</nobr>
347
+ </td>
348
+ <td style="text-align: center;">
349
+ <nobr>{{row.f_depname}}</nobr>
350
+ </td>
351
+ <td style="text-align: center;">
352
+ <nobr>{{row.f_orgname}}</nobr>
353
+ </td>
354
+ <td style="text-align: center;"><nobr>
355
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
356
+ </nobr></td>
357
+ <!--<td style="text-align: center;">-->
358
+ <!--<button class="btn btn-link" @click.stop="$parent.$parent.$parent.showchargedetail(row)">查看</button>-->
359
+ <!--</td>-->
360
+ </template>
361
+ <template partial='foot'></template>
362
+ </data-grid>
363
+
364
+ </criteria-paged>
365
+
366
+ <table class="table-hover">
367
+ <tr style="position: relative" class="table-bordered">
368
+ <td
369
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
370
+ 汇总信息
371
+ </td>
372
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
373
+ 收款合计:&emsp;{{sumsmodel.f_money}}
374
+ </td>
375
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
376
+ 总户数合计:&emsp;{{sumsmodel.hushu}}
377
+ </td>
378
+ </tr>
379
+ </table>
380
+
381
+ </div>
382
+ <div class="flex" v-if="show">
383
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
384
+ </div>
385
+ </div>
386
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
387
+ <article slot="modal-body">
388
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="收费" :isremark="false" style="width:auto" ></upload>
389
+ </article>
390
+ <footer slot="modal-footer" class="modal-footer">
391
+ </footer>
392
+ </modal>
393
+ </div>
394
+
395
+ <modal v-if="showdetail" :show.sync="showdetail" title="详细记录" v-ref:modal large backdrop="false">
396
+ <article slot="modal-body" class="modal-body">
397
+ <other-charge-detail-query :otherchargeid="otherchargeid" ></other-charge-detail-query>
398
+ </article>
399
+ <footer slot="modal-footer" class="modal-footer">
400
+ </footer>
401
+ </modal>
402
+
403
+ </template>
404
+
405
+ <script>
406
+ import {PagedList} from 'vue-client'
407
+ import defaultPrint from './config/DefaultPrint'
408
+ import exportConfig from './config/exportConfig'
409
+ import OtherChargeDetailQuery from "./OtherChargeDetailQuery";
410
+
411
+ let readySomething = async function (self) {
412
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
413
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
414
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
415
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
416
+ // await self.$refs.paged.$refs.cri.search()
417
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
418
+ await self.$MagLoadParams.loadParam()
419
+
420
+ self.initParams()
421
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
422
+ }
423
+ export default {
424
+ components: {
425
+ OtherChargeDetailQuery
426
+ },
427
+ props:['data'],
428
+ title: '其他收费查询',
429
+ data() {
430
+ return {
431
+ data: {},
432
+ other:[],
433
+ footer:[],
434
+ model: new PagedList('rs/sql/otherChargeQuery', 20, {orderitem: this.orderitem?`${this.orderitem}`: " 'f_operate_date desc'"}, {f_money: 0,hushu:0}),
435
+ criteriaShow: false,
436
+ orgCondtionStr: '',
437
+ modelval: [],
438
+ printshow: false,
439
+ all: false,
440
+ fields: {},
441
+ config: {
442
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_brand_spec', 'f_typename', 'f_typenumber', 'f_unitprice', 'f_number', 'f_money','f_operate_date', 'f_operator']
443
+ },
444
+ //排序
445
+ orderitem:'f_operate_date desc',
446
+ orderFields: {
447
+ f_operate_date: 'no'
448
+ },
449
+ //默认打印列
450
+ defaultfield: [],
451
+ thead: '',
452
+ tfoot: '',
453
+ initres: {
454
+ org:[this.$login.f.orgid],
455
+ dep:[],
456
+ user:[],
457
+ },
458
+ show:false,
459
+ showdetail:false,
460
+ otherchargeid:'',
461
+ rowdata:{},
462
+ meterbrands: [],
463
+ //合计数据
464
+ sumsmodel: {},
465
+ showupload:false,
466
+ selected:{},
467
+ // 用气性质
468
+ gasproperties: [],
469
+ // 品名规格
470
+ typeNameList: [],
471
+ // 型号
472
+ typenumberList: []
473
+ }
474
+ },
475
+ ready() {
476
+ readySomething(this).then(() => {
477
+ this.$emit('ready')
478
+ }).catch((error) => {
479
+ this.$emit('error', error)
480
+ })
481
+ },
482
+ methods: {
483
+ view(row){
484
+ this.showupload = true
485
+ this.selected= row
486
+ },
487
+ initParams() {
488
+ // 初始化气表品牌
489
+ let brandArr = []
490
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
491
+ let temp = {}
492
+ temp.label = item.label
493
+ temp.value = item.value.f_meter_brand
494
+ brandArr.push(temp)
495
+ })
496
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
497
+ },
498
+ getotherfooter(){
499
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
500
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
501
+ this.other=[];
502
+ this.footer=[];
503
+ let exportdata = this.getCondition;
504
+ let otherInData=[];
505
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
506
+ let footerData=[],exportfield=this.getfield;
507
+ footerData.push("合计");
508
+ let self = this;
509
+ for(var field in self.sumsmodel){
510
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
511
+ }
512
+ this.footer.push(footerData);
513
+ this.other.push(otherInData);
514
+ },
515
+ search(){
516
+ this.$refs.paged.$refs.cri.search()
517
+ },
518
+ async selfSearch(args) {
519
+ if (this.data) {
520
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
521
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
522
+ }
523
+ args.condition = `${args.condition}` + this.orgCondtionStr
524
+ await this.model.search(args.condition, args.model)
525
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
526
+ this.sumsmodel.hushu =[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
527
+ if(this.sumsmodel.hushu===null){
528
+ this.sumsmodel.hushu = 0
529
+ }
530
+ },
531
+ clear() {
532
+ //清空部门和人员
533
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
534
+ //部门和人员变为全选
535
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
536
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
537
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
538
+ this.$refs.paged.$refs.cri.model[key] = []
539
+ })
540
+ },
541
+ show() {
542
+ this.criteriaShow = true
543
+ },
544
+ hidden() {
545
+ this.criteriaShow = !this.criteriaShow
546
+ },
547
+ getRes(obj) {
548
+ this.orgCondtionStr = obj
549
+ },
550
+ cancel() {
551
+ this.show = false
552
+ },
553
+ dealmsg(val) {
554
+ console.log('---------------dealmsg')
555
+ this.rowdata=val
556
+ this.show=true
557
+ val.model = this.model.model
558
+ this.$dispatch('deal-msg', val)
559
+ },
560
+ stamp() {
561
+ this.all = false
562
+ //默认选择要打印的列
563
+ this.modelval = defaultPrint.config
564
+ this.fields = this.getfield
565
+ console.log('所有打印字段', this.fields)
566
+ this.printshow = true
567
+ this.put()
568
+ },
569
+ put() {
570
+ // 对Modelval进行排序
571
+ this.sortModelval()
572
+ this.thead = `<tr><th colspan=${this.modelval.length}>其他收费查询统计报表</th></tr><tr>`
573
+ for (let key of this.modelval) {
574
+ this.thead += '<th>' + this.fields[key] + '</th>'
575
+ }
576
+ this.thead += '</tr>'
577
+ },
578
+ print() {
579
+ this.$refs.print.PrintAsFile()
580
+ this.printshow = false
581
+ },
582
+ close() {
583
+ this.printshow = false
584
+ this.all = false
585
+ },
586
+ // 对选择的列进行排序
587
+ sortModelval() {
588
+ let sortModel = []
589
+ Object.keys(this.fields).forEach((key) => {
590
+ if (this.modelval.includes(key)) {
591
+ sortModel.push(key)
592
+ }
593
+ })
594
+ this.modelval = sortModel
595
+ console.log('选择的打印的字段', this.modelval)
596
+ },
597
+ showchargedetail(row){
598
+ this.showdetail=true
599
+ this.otherchargeid=row.id
600
+ },
601
+ userTypeChange (f_user_type) {
602
+ this.gasproperties = []
603
+ if (f_user_type) {
604
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
605
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
606
+ } else {
607
+ this.gasproperties = [{label: '全部', value: ''}]
608
+ }
609
+ },
610
+ setTypename (val) {
611
+ this.typenumberList = []
612
+ this.typeNameList = this.$appdata.getParam(val)
613
+ },
614
+ setTypenumber (val) {
615
+ this.typenumberList = this.$appdata.getParam(val)
616
+ },
617
+ sort (field, rule) {
618
+ // 将所有排序方式设为不排序,实现相互排斥
619
+ for (let key in this.orderFields) {
620
+ if (key === field) {
621
+ this.orderFields[key] = rule
622
+ } else {
623
+ this.orderFields[key] = 'no'
624
+ }
625
+ }
626
+ // 如果新规则不排序,还原为默认排序
627
+ if (rule === 'no') {
628
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
629
+ } else {
630
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
631
+ }
632
+
633
+ this.search()
634
+ }
635
+ },
636
+ watch: {
637
+ 'all'(val) {
638
+ if (val) {
639
+ this.modelval = this.bodyData
640
+ } else {
641
+ this.modelval = defaultPrint.config
642
+ this.put()
643
+ }
644
+ },
645
+ 'modelval.length'() {
646
+ this.put()
647
+ },
648
+ sumsmodel:{
649
+ handler: function(val) {
650
+ this.getotherfooter();
651
+ },
652
+ deep: true
653
+ }
654
+ },
655
+ computed: {
656
+ getCondition() {
657
+ return {
658
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
659
+ orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
660
+ },
661
+ service_person() {
662
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('服务人员')]
663
+ },
664
+ getfield() {
665
+ return exportConfig.otherchargeConfig
666
+ },
667
+ chargetype() {
668
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('品名及规格')]
669
+ },
670
+ userTypes() {
671
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
672
+ },
673
+ chargeState() {
674
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
675
+ },
676
+ metertypes() {
677
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
678
+ },
679
+ payments() {
680
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
681
+ }
682
+ }
683
+ }
684
+ </script>