manage-client 4.0.30 → 4.0.31

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 (29) hide show
  1. package/.gradle/8.5/checksums/checksums.lock +0 -0
  2. package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/8.5/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/8.5/fileChanges/last-build.bin +0 -0
  7. package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/8.5/gc.properties +0 -0
  10. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  11. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  12. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  13. package/.gradle/file-system.probe +0 -0
  14. package/.gradle/vcs-1/gc.properties +0 -0
  15. package/package.json +1 -1
  16. package/src/filiale/fugou/OtherChargeDetailQuery.vue +74 -0
  17. package/src/filiale/fugou/OtherChargeQuery.vue +731 -0
  18. package/src/filiale/fugou/config/exportConfig.js +1 -0
  19. package/src/filiale/fugou/sale.js +4 -0
  20. package/src/filiale/ningjin/GasStatistics.vue +4 -4
  21. package/src/filiale/ningjin/config/exportConfig.js +1099 -386
  22. package/src/filiale/ningjin/report/ReportList.vue +2 -2
  23. package/src/filiale/yangchun/ArchivesManage.vue +89 -0
  24. package/src/filiale/yangchun/DeviceQuery.vue +1 -1
  25. package/src/filiale/yangchun/RecordInfoQuery.vue +1 -1
  26. package/src/filiale/yangchun/sale.js +2 -0
  27. package/src/filiale/jinbin/exportConfig.js +0 -1110
  28. package/src/filiale/jinbin/sale/businessquery/ChargeQuery.vue +0 -1372
  29. package/src/filiale/jinbin/sale.js +0 -7
@@ -0,0 +1,731 @@
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="row">
10
+ <div class="col-sm-2 form-group">
11
+ <label for="startDate" class="font_normal_body">开始日期</label>
12
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
+ v-model="model.startDate"
14
+ :value.sync="model.startDate"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="true"
17
+ condition="f_operate_date >= '{}'">
18
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="endDate" class="font_normal_body">结束日期</label>
22
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
+ v-model="model.endDate"
24
+ :value.sync="model.endDate"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="true"
27
+ condition="f_operate_date <= '{}'">
28
+ </datepicker>
29
+ </div>
30
+ <div class="col-sm-2 form-group">
31
+ <label class="font_normal_body">客户编号</label>
32
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
33
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
34
+ </div>
35
+ <div class="col-sm-2 form-group">
36
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
37
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
38
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
39
+ </div>
40
+
41
+ <div class="span" style="float:right;">
42
+ <button class="button_search button_spacing" @click="search()">查询</button>
43
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
+
46
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
47
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
48
+ sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="otherChargeQuery" template-name='其他收费查询导出'
49
+ :choose-col="true"></export-excel>
50
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
51
+ :defaultfield="$parent.$parent.defaultfield"
52
+ titletable="其他收费记录"
53
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
54
+ <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>
55
+ </div>
56
+ </div>
57
+
58
+ <div class="row" v-show="$parent.$parent.criteriaShow">
59
+ <res-select-group :initres="$parent.$parent.initres" :cascade =true @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
60
+ <div class="col-sm-2 form-group">
61
+ <label class="font_normal_body">客户名称</label>
62
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
63
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
64
+ </div>
65
+ <div class="col-sm-2 form-group">
66
+ <label class="font_normal_body">客户地址</label>
67
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
68
+ condition="f_address like '%{}%'" placeholder='客户地址'>
69
+ </div>
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.services'
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 class="col-sm-2 form-group">
184
+ <label class="font_normal_body" title="收据起始编号">收据票号</label>
185
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_bill_number_start"
186
+ condition="f_bill_number >= '{}'" placeholder="收据起始编号">
187
+ </div>
188
+ <div class="col-sm-2 form-group">
189
+ <label class="font_normal_body" title="收据终止编号">收据票号</label>
190
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_bill_number_end"
191
+ condition="f_bill_number <= '{}'" placeholder="收据终止编号">
192
+ </div>
193
+ </div>
194
+ </div>
195
+ </criteria>
196
+
197
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
198
+ <template partial='head'>
199
+ <tr>
200
+ <th>
201
+ <!-- <nobr>客户编号</nobr>-->
202
+ <data-order field="f_userinfo_code" name="客户编号"
203
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
204
+ </th>
205
+ <th>
206
+ <nobr>档案编号</nobr>
207
+ </th>
208
+ <th>
209
+ <nobr>收费编号</nobr>
210
+ </th>
211
+ <th>
212
+ <nobr>客户名称</nobr>
213
+ </th>
214
+ <th>
215
+ <nobr>身份证号</nobr>
216
+ </th>
217
+ <th>
218
+ <!-- <nobr>客户地址</nobr>-->
219
+ <data-order field="f_address" name="客户地址"
220
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
221
+ </th>
222
+ <th>
223
+ <nobr>表号</nobr>
224
+ </th>
225
+ <th>
226
+ <nobr>客户电话</nobr>
227
+ </th>
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
+
241
+ <th>
242
+ <nobr>收费类型</nobr>
243
+ </th>
244
+ <th>
245
+ <nobr>品名规格</nobr>
246
+ </th>
247
+ <th>
248
+ <nobr>型号</nobr>
249
+ </th>
250
+ <th>
251
+ <nobr>单价</nobr>
252
+ </th>
253
+ <th>
254
+ <nobr>数量</nobr>
255
+ </th>
256
+ <th>
257
+ <nobr>优惠金额</nobr>
258
+ </th>
259
+ <th>
260
+ <nobr>收款</nobr>
261
+ </th>
262
+ <th>
263
+ <nobr>付款方式</nobr>
264
+ </th>
265
+ <th>
266
+ <nobr>状态</nobr>
267
+ </th>
268
+ <th>
269
+ <!-- <nobr>收费日期</nobr>-->
270
+ <data-order field="f_operate_date" name="收费日期"
271
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
272
+ </th>
273
+ <th>
274
+ <nobr>服务人员</nobr>
275
+ </th>
276
+ <th>
277
+ <nobr>备注</nobr>
278
+ </th>
279
+ <th>
280
+ <nobr>人员</nobr>
281
+ </th>
282
+ <th>
283
+ <nobr>部门</nobr>
284
+ </th>
285
+ <th>
286
+ <nobr>公司</nobr>
287
+ </th>
288
+ <th><nobr>附件</nobr></th>
289
+ <!--<th><nobr>查看详情</nobr></th>-->
290
+ </tr>
291
+ </template>
292
+ <template partial='body'>
293
+ <td style="text-align: center;">
294
+ <nobr>
295
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
296
+ </td>
297
+ <td style="text-align: center;">
298
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
299
+ </td>
300
+ <td style="text-align: center;">
301
+ <nobr>{{row.id}}</nobr>
302
+ </td>
303
+ <td style="text-align: center;">
304
+ <nobr>{{row.f_user_name}}</nobr>
305
+ </td>
306
+ <td style="text-align: center;">
307
+ <nobr>{{row.f_idnumber}}</nobr>
308
+ </td>
309
+ <td style="text-align: center;">
310
+ <nobr>{{row.f_address}}</nobr>
311
+ </td>
312
+ <td style="text-align: center;">
313
+ <nobr>{{row.f_meternumber}}</nobr>
314
+ </td>
315
+ <td style="text-align: center;">
316
+ <nobr>{{row.f_user_phone}}</nobr>
317
+ </td>
318
+ <td style="text-align: center;">
319
+ <nobr>{{row.f_meter_classify}}</nobr>
320
+ </td>
321
+ <td style="text-align: center;">
322
+ <nobr>{{row.f_meter_brand}}</nobr>
323
+ </td>
324
+ <td style="text-align: center;">
325
+ <nobr>{{row.f_card_id}}</nobr>
326
+ </td>
327
+
328
+ <td style="text-align: center;">
329
+ <nobr>{{row.f_bill_number}}</nobr>
330
+ </td>
331
+ <td style="text-align: center;">
332
+ <nobr>{{row.f_brand_spec}}</nobr>
333
+ </td>
334
+ <td style="text-align: center;">
335
+ <nobr>{{row.f_typename}}</nobr>
336
+ </td>
337
+ <td style="text-align: center;">
338
+ <nobr>{{row.f_typenumber}}</nobr>
339
+ </td>
340
+ <td style="text-align: center;">
341
+ <nobr>{{row.f_unitprice}}</nobr>
342
+ </td>
343
+ <td style="text-align: center;">
344
+ <nobr>{{row.f_number}}</nobr>
345
+ </td>
346
+ <td style="text-align: center;">
347
+ <nobr>{{row.f_discount_amount}}</nobr>
348
+ </td>
349
+ <td style="text-align: center;">
350
+ <nobr>{{row.f_money}}</nobr>
351
+ </td>
352
+ <td style="text-align: center;">
353
+ <nobr>{{row.f_payment}}</nobr>
354
+ </td>
355
+ <td style="text-align: center;">
356
+ <nobr>{{row.f_state}}</nobr>
357
+ </td>
358
+ <td style="text-align: center;">
359
+ <nobr>{{row.f_operate_date}}</nobr>
360
+ </td>
361
+ <td style="text-align: center;">
362
+ <nobr>{{row.f_service_person}}</nobr>
363
+ </td>
364
+ <td style="text-align: center;">
365
+ <nobr>{{row.f_comments}}</nobr>
366
+ </td>
367
+ <td style="text-align: center;">
368
+ <nobr>{{row.f_operator}}</nobr>
369
+ </td>
370
+ <td style="text-align: center;">
371
+ <nobr>{{row.f_depname}}</nobr>
372
+ </td>
373
+ <td style="text-align: center;">
374
+ <nobr>{{row.f_orgname}}</nobr>
375
+ </td>
376
+ <td style="text-align: center;"><nobr>
377
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
378
+ </nobr></td>
379
+ <!--<td style="text-align: center;">-->
380
+ <!--<button class="btn btn-link" @click.stop="$parent.$parent.$parent.showchargedetail(row)">查看</button>-->
381
+ <!--</td>-->
382
+ </template>
383
+ <template partial='foot'></template>
384
+ </data-grid>
385
+
386
+ </criteria-paged>
387
+
388
+ <table class="table-hover">
389
+ <tr style="position: relative" class="table-bordered">
390
+ <td
391
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
392
+ 汇总信息
393
+ </td>
394
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
395
+ 收款合计:&emsp;{{sumsmodel.f_money}}
396
+ </td>
397
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
398
+ 总户数合计:&emsp;{{sumsmodel.hushu}}
399
+ </td>
400
+ </tr>
401
+ </table>
402
+
403
+ </div>
404
+ <div class="flex" v-if="show">
405
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
406
+ </div>
407
+ </div>
408
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
409
+ <article slot="modal-body">
410
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="收费" :isremark="false" style="width:auto" ></upload>
411
+ </article>
412
+ <footer slot="modal-footer" class="modal-footer">
413
+ </footer>
414
+ </modal>
415
+ </div>
416
+
417
+ <modal v-if="showdetail" :show.sync="showdetail" title="详细记录" v-ref:modal large backdrop="false">
418
+ <article slot="modal-body" class="modal-body">
419
+ <other-charge-detail-query :otherchargeid="otherchargeid" ></other-charge-detail-query>
420
+ </article>
421
+ <footer slot="modal-footer" class="modal-footer">
422
+ </footer>
423
+ </modal>
424
+
425
+ </template>
426
+
427
+ <script>
428
+ import {PagedList,HttpResetClass} from 'vue-client'
429
+ import defaultPrint from './config/DefaultPrint'
430
+ import exportConfig from './config/exportConfig'
431
+ import OtherChargeDetailQuery from "./OtherChargeDetailQuery";
432
+
433
+ let readySomething = async function (self) {
434
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
435
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
436
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
437
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
438
+ // await self.$refs.paged.$refs.cri.search()
439
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
440
+ await self.$MagLoadParams.loadParam()
441
+
442
+ self.initParams()
443
+ self.initSecuritypersons()
444
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
445
+ }
446
+ export default {
447
+ components: {
448
+ OtherChargeDetailQuery
449
+ },
450
+ props:['data'],
451
+ title: '其他收费查询',
452
+ data() {
453
+ return {
454
+ data: {},
455
+ other:[],
456
+ footer:[],
457
+ model: new PagedList('api/af-revenue/sql/otherChargeQuery', 20, {orderitem: this.orderitem?`${this.orderitem}`: " 'f_operate_date desc'"}, {f_money: 0,hushu:0}),
458
+ criteriaShow: false,
459
+ orgCondtionStr: '',
460
+ modelval: [],
461
+ printshow: false,
462
+ all: false,
463
+ fields: {},
464
+ config: {
465
+ 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']
466
+ },
467
+ //排序
468
+ orderitem:'f_operate_date desc',
469
+ orderFields: {
470
+ f_operate_date: 'no'
471
+ },
472
+ //默认打印列
473
+ defaultfield: [],
474
+ thead: '',
475
+ tfoot: '',
476
+ initres: {
477
+ org:[this.$login.f.orgid],
478
+ dep:[],
479
+ user:[],
480
+ },
481
+ show:false,
482
+ showdetail:false,
483
+ otherchargeid:'',
484
+ rowdata:{},
485
+ meterbrands: [],
486
+ services:[],
487
+ //合计数据
488
+ sumsmodel: {},
489
+ showupload:false,
490
+ selected:{},
491
+ // 用气性质
492
+ gasproperties: [],
493
+ // 品名规格
494
+ typeNameList: [],
495
+ // 型号
496
+ typenumberList: []
497
+ }
498
+ },
499
+ ready() {
500
+ readySomething(this).then(() => {
501
+ this.$emit('ready')
502
+ }).catch((error) => {
503
+ this.$emit('error', error)
504
+ })
505
+ },
506
+ methods: {
507
+ view(row){
508
+ this.showupload = true
509
+ this.selected= row
510
+ },
511
+ initParams() {
512
+ // 初始化气表品牌
513
+ let brandArr = []
514
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
515
+ let temp = {}
516
+ temp.label = item.label
517
+ temp.value = item.value.f_meter_brand
518
+ brandArr.push(temp)
519
+ })
520
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
521
+ },
522
+ // 初始化安检人
523
+ initSecuritypersons () {
524
+ let origin = this.$appdata.getSingleValue('服务人员来源')
525
+ if (origin) {
526
+ try {
527
+ this.services = []
528
+ let http = new HttpResetClass()
529
+ http.load('post', '/rs/search', {
530
+ source: `this.getParentByType($organization$).getChildByName($${origin}$).getUsers()`,
531
+ userid: this.$login.f.id
532
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
533
+ console.log('获取安检人员', res.data)
534
+ for (let i = 0; i < res.data.length; i++) {
535
+ this.services.push({label: res.data[i].name, value: res.data[i].name})
536
+ }
537
+ })
538
+ } catch (e) {
539
+ console.log('获取安检人员失败')
540
+ }
541
+ }else {
542
+ this.services = [{label: '全部', value: ''}, ...this.$appdata.getParam('服务人员')]
543
+ }
544
+ },
545
+ getotherfooter(){
546
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
547
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
548
+ this.other=[];
549
+ this.footer=[];
550
+ let exportdata = this.getCondition;
551
+ let otherInData=[];
552
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
553
+ let footerData=[],exportfield=this.getfield;
554
+ footerData.push("合计");
555
+ let self = this;
556
+ for(var field in self.sumsmodel){
557
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
558
+ }
559
+ this.footer.push(footerData);
560
+ this.other.push(otherInData);
561
+ },
562
+ search(){
563
+ this.$refs.paged.$refs.cri.search()
564
+ },
565
+ async selfSearch(args) {
566
+ if (this.data) {
567
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
568
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
569
+ }
570
+ args.condition = `${args.condition}` + this.orgCondtionStr
571
+ await this.model.search(args.condition, args.model)
572
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
573
+ this.sumsmodel.hushu =[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
574
+ if(this.sumsmodel.hushu===null){
575
+ this.sumsmodel.hushu = 0
576
+ }
577
+ },
578
+ clear() {
579
+ //清空部门和人员
580
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
581
+ //部门和人员变为全选
582
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
583
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
584
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
585
+ this.$refs.paged.$refs.cri.model[key] = []
586
+ })
587
+ },
588
+ show() {
589
+ this.criteriaShow = true
590
+ },
591
+ hidden() {
592
+ this.criteriaShow = !this.criteriaShow
593
+ },
594
+ getRes(obj) {
595
+ this.orgCondtionStr = obj
596
+ },
597
+ cancel() {
598
+ this.show = false
599
+ },
600
+ dealmsg(val) {
601
+ console.log('---------------dealmsg')
602
+ this.rowdata=val
603
+ this.show=true
604
+ val.model = this.model.model
605
+ this.$dispatch('deal-msg', val)
606
+ },
607
+ stamp() {
608
+ this.all = false
609
+ //默认选择要打印的列
610
+ this.modelval = defaultPrint.config
611
+ this.fields = this.getfield
612
+ console.log('所有打印字段', this.fields)
613
+ this.printshow = true
614
+ this.put()
615
+ },
616
+ put() {
617
+ // 对Modelval进行排序
618
+ this.sortModelval()
619
+ this.thead = `<tr><th colspan=${this.modelval.length}>其他收费查询统计报表</th></tr><tr>`
620
+ for (let key of this.modelval) {
621
+ this.thead += '<th>' + this.fields[key] + '</th>'
622
+ }
623
+ this.thead += '</tr>'
624
+ },
625
+ print() {
626
+ this.$refs.print.PrintAsFile()
627
+ this.printshow = false
628
+ },
629
+ close() {
630
+ this.printshow = false
631
+ this.all = false
632
+ },
633
+ // 对选择的列进行排序
634
+ sortModelval() {
635
+ let sortModel = []
636
+ Object.keys(this.fields).forEach((key) => {
637
+ if (this.modelval.includes(key)) {
638
+ sortModel.push(key)
639
+ }
640
+ })
641
+ this.modelval = sortModel
642
+ console.log('选择的打印的字段', this.modelval)
643
+ },
644
+ showchargedetail(row){
645
+ this.showdetail=true
646
+ this.otherchargeid=row.id
647
+ },
648
+ userTypeChange (f_user_type) {
649
+ this.gasproperties = []
650
+ if (f_user_type) {
651
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
652
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
653
+ } else {
654
+ this.gasproperties = [{label: '全部', value: ''}]
655
+ }
656
+ },
657
+ setTypename (val) {
658
+ this.typenumberList = []
659
+ this.typeNameList = this.$appdata.getParam(val)
660
+ },
661
+ setTypenumber (val) {
662
+ this.typenumberList = this.$appdata.getParam(val)
663
+ },
664
+ sort (field, rule) {
665
+ // 将所有排序方式设为不排序,实现相互排斥
666
+ for (let key in this.orderFields) {
667
+ if (key === field) {
668
+ this.orderFields[key] = rule
669
+ } else {
670
+ this.orderFields[key] = 'no'
671
+ }
672
+ }
673
+ // 如果新规则不排序,还原为默认排序
674
+ if (rule === 'no') {
675
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
676
+ } else {
677
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
678
+ }
679
+
680
+ this.search()
681
+ }
682
+ },
683
+ watch: {
684
+ 'all'(val) {
685
+ if (val) {
686
+ this.modelval = this.bodyData
687
+ } else {
688
+ this.modelval = defaultPrint.config
689
+ this.put()
690
+ }
691
+ },
692
+ 'modelval.length'() {
693
+ this.put()
694
+ },
695
+ sumsmodel:{
696
+ handler: function(val) {
697
+ this.getotherfooter();
698
+ },
699
+ deep: true
700
+ }
701
+ },
702
+ computed: {
703
+ getCondition() {
704
+ return {
705
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
706
+ orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
707
+ },
708
+ service_person() {
709
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('服务人员')]
710
+ },
711
+ getfield() {
712
+ return exportConfig.otherchargeConfig
713
+ },
714
+ chargetype() {
715
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('品名及规格')]
716
+ },
717
+ userTypes() {
718
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
719
+ },
720
+ chargeState() {
721
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
722
+ },
723
+ metertypes() {
724
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
725
+ },
726
+ payments() {
727
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
728
+ }
729
+ }
730
+ }
731
+ </script>