manage-client 3.3.192 → 3.3.193

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.
@@ -0,0 +1,755 @@
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
+ </th>
271
+ <th>
272
+ <nobr>收款</nobr>
273
+ </th>
274
+ <th>
275
+ <nobr>付款方式</nobr>
276
+ </th>
277
+ <th>
278
+ <nobr>状态</nobr>
279
+ </th>
280
+ <th>
281
+ <!-- <nobr>收费日期</nobr>-->
282
+ <data-order field="f_operate_date" name="收费日期"
283
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
284
+ </th>
285
+ <th>
286
+ <nobr>服务人员</nobr>
287
+ </th>
288
+ <th>
289
+ <nobr>备注</nobr>
290
+ </th>
291
+ <th>
292
+ <nobr>人员</nobr>
293
+ </th>
294
+ <th>
295
+ <nobr>部门</nobr>
296
+ </th>
297
+ <th>
298
+ <nobr>公司</nobr>
299
+ </th>
300
+ <th><nobr>附件</nobr></th>
301
+ <!--<th><nobr>查看详情</nobr></th>-->
302
+ </tr>
303
+ </template>
304
+ <template partial='body'>
305
+ <td style="text-align: center;">
306
+ <nobr>
307
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
308
+ </td>
309
+ <td style="text-align: center;">
310
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
311
+ </td>
312
+ <td style="text-align: center;">
313
+ <nobr>{{row.id}}</nobr>
314
+ </td>
315
+ <td style="text-align: center;">
316
+ <nobr>{{row.f_user_name}}</nobr>
317
+ </td>
318
+ <td style="text-align: center;">
319
+ <nobr>{{row.f_idnumber}}</nobr>
320
+ </td>
321
+ <td style="text-align: center;">
322
+ <nobr>{{row.f_address}}</nobr>
323
+ </td>
324
+ <td style="text-align: center;">
325
+ <nobr>{{row.f_meternumber}}</nobr>
326
+ </td>
327
+ <td style="text-align: center;">
328
+ <nobr>{{row.f_user_phone}}</nobr>
329
+ </td>
330
+ <td style="text-align: center;">
331
+ <nobr>{{row.f_meter_classify}}</nobr>
332
+ </td>
333
+ <td style="text-align: center;">
334
+ <nobr>{{row.f_meter_brand}}</nobr>
335
+ </td>
336
+ <td style="text-align: center;">
337
+ <nobr>{{row.f_card_id}}</nobr>
338
+ </td>
339
+
340
+ <td style="text-align: center;">
341
+ <nobr>{{row.f_bill_number}}</nobr>
342
+ </td>
343
+ <td style="text-align: center;">
344
+ <nobr>{{row.f_brand_spec}}</nobr>
345
+ </td>
346
+ <td style="text-align: center;">
347
+ <nobr>{{row.f_typename}}</nobr>
348
+ </td>
349
+ <td style="text-align: center;">
350
+ <nobr>{{row.f_typenumber}}</nobr>
351
+ </td>
352
+ <td style="text-align: center;">
353
+ <nobr>{{row.f_unitprice}}</nobr>
354
+ </td>
355
+ <td style="text-align: center;">
356
+ <nobr>{{row.f_number}}</nobr>
357
+ </td>
358
+ <td style="text-align: center;">
359
+ <nobr>{{row.f_overlength_unitprice}}</nobr>
360
+ </td>
361
+ <td style="text-align: center;">
362
+ <nobr>{{row.f_overlength_number}}</nobr>
363
+ </td>
364
+ <td style="text-align: center;">
365
+ <nobr>{{row.f_discounts_money_detail}}</nobr>
366
+ </td>
367
+ <td style="text-align: center;">
368
+ <nobr>{{row.f_actual_materials_detail}}</nobr>
369
+ </td>
370
+ <td style="text-align: center;">
371
+ <nobr>{{row.f_disc_money}}</nobr>
372
+ </td>
373
+ <td style="text-align: center;">
374
+ <nobr>{{row.f_money}}</nobr>
375
+ </td>
376
+ <td style="text-align: center;">
377
+ <nobr>{{row.f_payment}}</nobr>
378
+ </td>
379
+ <td style="text-align: center;">
380
+ <nobr>{{row.f_state}}</nobr>
381
+ </td>
382
+ <td style="text-align: center;">
383
+ <nobr>{{row.f_operate_date}}</nobr>
384
+ </td>
385
+ <td style="text-align: center;">
386
+ <nobr>{{row.f_service_person}}</nobr>
387
+ </td>
388
+ <td style="text-align: center;">
389
+ <nobr>{{row.f_comments}}</nobr>
390
+ </td>
391
+ <td style="text-align: center;">
392
+ <nobr>{{row.f_operator}}</nobr>
393
+ </td>
394
+ <td style="text-align: center;">
395
+ <nobr>{{row.f_depname}}</nobr>
396
+ </td>
397
+ <td style="text-align: center;">
398
+ <nobr>{{row.f_orgname}}</nobr>
399
+ </td>
400
+ <td style="text-align: center;"><nobr>
401
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
402
+ </nobr></td>
403
+ <!--<td style="text-align: center;">-->
404
+ <!--<button class="btn btn-link" @click.stop="$parent.$parent.$parent.showchargedetail(row)">查看</button>-->
405
+ <!--</td>-->
406
+ </template>
407
+ <template partial='foot'></template>
408
+ </data-grid>
409
+
410
+ </criteria-paged>
411
+
412
+ <table class="table-hover">
413
+ <tr style="position: relative" class="table-bordered">
414
+ <td
415
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
416
+ 汇总信息
417
+ </td>
418
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
419
+ 收款合计:&emsp;{{sumsmodel.f_money}}
420
+ </td>
421
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
422
+ 总户数合计:&emsp;{{sumsmodel.hushu}}
423
+ </td>
424
+ </tr>
425
+ </table>
426
+
427
+ </div>
428
+ <div class="flex" v-if="show">
429
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
430
+ </div>
431
+ </div>
432
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
433
+ <article slot="modal-body">
434
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="收费" :isremark="false" style="width:auto" ></upload>
435
+ </article>
436
+ <footer slot="modal-footer" class="modal-footer">
437
+ </footer>
438
+ </modal>
439
+ </div>
440
+
441
+ <modal v-if="showdetail" :show.sync="showdetail" title="详细记录" v-ref:modal large backdrop="false">
442
+ <article slot="modal-body" class="modal-body">
443
+ <other-charge-detail-query :otherchargeid="otherchargeid" ></other-charge-detail-query>
444
+ </article>
445
+ <footer slot="modal-footer" class="modal-footer">
446
+ </footer>
447
+ </modal>
448
+
449
+ </template>
450
+
451
+ <script>
452
+ import {PagedList,HttpResetClass} from 'vue-client'
453
+ import defaultPrint from './config/DefaultPrint'
454
+ import exportConfig from './config/exportConfig'
455
+ import OtherChargeDetailQuery from "./OtherChargeDetailQuery";
456
+
457
+ let readySomething = async function (self) {
458
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
459
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
460
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
461
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
462
+ // await self.$refs.paged.$refs.cri.search()
463
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
464
+ await self.$MagLoadParams.loadParam()
465
+
466
+ self.initParams()
467
+ self.initSecuritypersons()
468
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
469
+ }
470
+ export default {
471
+ components: {
472
+ OtherChargeDetailQuery
473
+ },
474
+ props:['data'],
475
+ title: '其他收费查询',
476
+ data() {
477
+ return {
478
+ data: {},
479
+ other:[],
480
+ footer:[],
481
+ model: new PagedList('api/af-revenue/sql/otherChargeQuery', 20, {orderitem: this.orderitem?`${this.orderitem}`: " 'f_operate_date desc'"}, {f_money: 0,hushu:0}),
482
+ criteriaShow: false,
483
+ orgCondtionStr: '',
484
+ modelval: [],
485
+ printshow: false,
486
+ all: false,
487
+ fields: {},
488
+ config: {
489
+ 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']
490
+ },
491
+ //排序
492
+ orderitem:'f_operate_date desc',
493
+ orderFields: {
494
+ f_operate_date: 'no'
495
+ },
496
+ //默认打印列
497
+ defaultfield: [],
498
+ thead: '',
499
+ tfoot: '',
500
+ initres: {
501
+ org:[this.$login.f.orgid],
502
+ dep:[],
503
+ user:[],
504
+ },
505
+ show:false,
506
+ showdetail:false,
507
+ otherchargeid:'',
508
+ rowdata:{},
509
+ meterbrands: [],
510
+ services:[],
511
+ //合计数据
512
+ sumsmodel: {},
513
+ showupload:false,
514
+ selected:{},
515
+ // 用气性质
516
+ gasproperties: [],
517
+ // 品名规格
518
+ typeNameList: [],
519
+ // 型号
520
+ typenumberList: []
521
+ }
522
+ },
523
+ ready() {
524
+ readySomething(this).then(() => {
525
+ this.$emit('ready')
526
+ }).catch((error) => {
527
+ this.$emit('error', error)
528
+ })
529
+ },
530
+ methods: {
531
+ view(row){
532
+ this.showupload = true
533
+ this.selected= row
534
+ },
535
+ initParams() {
536
+ // 初始化气表品牌
537
+ let brandArr = []
538
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
539
+ let temp = {}
540
+ temp.label = item.label
541
+ temp.value = item.value.f_meter_brand
542
+ brandArr.push(temp)
543
+ })
544
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
545
+ },
546
+ // 初始化安检人
547
+ initSecuritypersons () {
548
+ let origin = this.$appdata.getSingleValue('服务人员来源')
549
+ if (origin) {
550
+ try {
551
+ this.services = []
552
+ let http = new HttpResetClass()
553
+ http.load('post', '/rs/search', {
554
+ source: `this.getParentByType($organization$).getChildByName($${origin}$).getUsers()`,
555
+ userid: this.$login.f.id
556
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
557
+ console.log('获取安检人员', res.data)
558
+ for (let i = 0; i < res.data.length; i++) {
559
+ this.services.push({label: res.data[i].name, value: res.data[i].name})
560
+ }
561
+ })
562
+ } catch (e) {
563
+ console.log('获取安检人员失败')
564
+ }
565
+ }else {
566
+ this.services = [{label: '全部', value: ''}, ...this.$appdata.getParam('服务人员')]
567
+ }
568
+ },
569
+ getotherfooter(){
570
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
571
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
572
+ this.other=[];
573
+ this.footer=[];
574
+ let exportdata = this.getCondition;
575
+ let otherInData=[];
576
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
577
+ let footerData=[],exportfield=this.getfield;
578
+ footerData.push("合计");
579
+ let self = this;
580
+ for(var field in self.sumsmodel){
581
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
582
+ }
583
+ this.footer.push(footerData);
584
+ this.other.push(otherInData);
585
+ },
586
+ search(){
587
+ this.$refs.paged.$refs.cri.search()
588
+ },
589
+ async selfSearch(args) {
590
+ if (this.data) {
591
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
592
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
593
+ }
594
+ args.condition = `${args.condition}` + this.orgCondtionStr
595
+ await this.model.search(args.condition, args.model)
596
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
597
+ this.sumsmodel.hushu =[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
598
+ if(this.sumsmodel.hushu===null){
599
+ this.sumsmodel.hushu = 0
600
+ }
601
+ },
602
+ clear() {
603
+ //清空部门和人员
604
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
605
+ //部门和人员变为全选
606
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
607
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
608
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
609
+ this.$refs.paged.$refs.cri.model[key] = []
610
+ })
611
+ },
612
+ show() {
613
+ this.criteriaShow = true
614
+ },
615
+ hidden() {
616
+ this.criteriaShow = !this.criteriaShow
617
+ },
618
+ getRes(obj) {
619
+ this.orgCondtionStr = obj
620
+ },
621
+ cancel() {
622
+ this.show = false
623
+ },
624
+ dealmsg(val) {
625
+ console.log('---------------dealmsg')
626
+ this.rowdata=val
627
+ this.show=true
628
+ val.model = this.model.model
629
+ this.$dispatch('deal-msg', val)
630
+ },
631
+ stamp() {
632
+ this.all = false
633
+ //默认选择要打印的列
634
+ this.modelval = defaultPrint.config
635
+ this.fields = this.getfield
636
+ console.log('所有打印字段', this.fields)
637
+ this.printshow = true
638
+ this.put()
639
+ },
640
+ put() {
641
+ // 对Modelval进行排序
642
+ this.sortModelval()
643
+ this.thead = `<tr><th colspan=${this.modelval.length}>其他收费查询统计报表</th></tr><tr>`
644
+ for (let key of this.modelval) {
645
+ this.thead += '<th>' + this.fields[key] + '</th>'
646
+ }
647
+ this.thead += '</tr>'
648
+ },
649
+ print() {
650
+ this.$refs.print.PrintAsFile()
651
+ this.printshow = false
652
+ },
653
+ close() {
654
+ this.printshow = false
655
+ this.all = false
656
+ },
657
+ // 对选择的列进行排序
658
+ sortModelval() {
659
+ let sortModel = []
660
+ Object.keys(this.fields).forEach((key) => {
661
+ if (this.modelval.includes(key)) {
662
+ sortModel.push(key)
663
+ }
664
+ })
665
+ this.modelval = sortModel
666
+ console.log('选择的打印的字段', this.modelval)
667
+ },
668
+ showchargedetail(row){
669
+ this.showdetail=true
670
+ this.otherchargeid=row.id
671
+ },
672
+ userTypeChange (f_user_type) {
673
+ this.gasproperties = []
674
+ if (f_user_type) {
675
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
676
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
677
+ } else {
678
+ this.gasproperties = [{label: '全部', value: ''}]
679
+ }
680
+ },
681
+ setTypename (val) {
682
+ this.typenumberList = []
683
+ this.typeNameList = this.$appdata.getParam(val)
684
+ },
685
+ setTypenumber (val) {
686
+ this.typenumberList = this.$appdata.getParam(val)
687
+ },
688
+ sort (field, rule) {
689
+ // 将所有排序方式设为不排序,实现相互排斥
690
+ for (let key in this.orderFields) {
691
+ if (key === field) {
692
+ this.orderFields[key] = rule
693
+ } else {
694
+ this.orderFields[key] = 'no'
695
+ }
696
+ }
697
+ // 如果新规则不排序,还原为默认排序
698
+ if (rule === 'no') {
699
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
700
+ } else {
701
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
702
+ }
703
+
704
+ this.search()
705
+ }
706
+ },
707
+ watch: {
708
+ 'all'(val) {
709
+ if (val) {
710
+ this.modelval = this.bodyData
711
+ } else {
712
+ this.modelval = defaultPrint.config
713
+ this.put()
714
+ }
715
+ },
716
+ 'modelval.length'() {
717
+ this.put()
718
+ },
719
+ sumsmodel:{
720
+ handler: function(val) {
721
+ this.getotherfooter();
722
+ },
723
+ deep: true
724
+ }
725
+ },
726
+ computed: {
727
+ getCondition() {
728
+ return {
729
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
730
+ orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
731
+ },
732
+ service_person() {
733
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('服务人员')]
734
+ },
735
+ getfield() {
736
+ return exportConfig.otherchargeConfig
737
+ },
738
+ chargetype() {
739
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('品名及规格')]
740
+ },
741
+ userTypes() {
742
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
743
+ },
744
+ chargeState() {
745
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
746
+ },
747
+ metertypes() {
748
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
749
+ },
750
+ payments() {
751
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
752
+ }
753
+ }
754
+ }
755
+ </script>