manage-client 3.2.99 → 3.2.100

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 (45) hide show
  1. package/.gradle/4.4/fileContent/fileContent.lock +0 -0
  2. package/.gradle/4.4/taskHistory/taskHistory.bin +0 -0
  3. package/.gradle/4.4/taskHistory/taskHistory.lock +0 -0
  4. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  5. package/build/dev-server.js +176 -177
  6. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  7. package/build/tmp/jar/MANIFEST.MF +2 -0
  8. package/package.json +1 -1
  9. package/src/components/SellReport/GasMoneyPublicMoney.vue +251 -251
  10. package/src/components/SellReport/NonResidentGas.vue +216 -216
  11. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +507 -507
  12. package/src/components/SellReport/ReportItems.vue +246 -246
  13. package/src/components/sale/businessquery/ArrearsQuery.vue +934 -934
  14. package/src/components/sale/businessquery/ChangeMeterQuery.vue +676 -676
  15. package/src/components/sale/businessquery/InspectListGas.vue +552 -552
  16. package/src/components/sale/businessquery/InspectListUser.vue +449 -449
  17. package/src/components/webmeter/instruction/NewQueryInstruct.vue +446 -446
  18. package/src/filiale/liaoyuan/HandplanQuery.vue +1288 -0
  19. package/src/filiale/liaoyuan/MeterQuery.vue +905 -905
  20. package/src/filiale/liaoyuan/RecordInfoQuery.vue +1163 -1163
  21. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  22. package/src/filiale/liaoyuan/sale.js +13 -10
  23. package/src/filiale/macheng/FxGasTable.vue +236 -236
  24. package/src/filiale/macheng/ManageDayGas.vue +248 -248
  25. package/src/filiale/macheng/ManageHandSellMoney.vue +249 -249
  26. package/src/filiale/macheng/ManageMonthGas.vue +250 -250
  27. package/src/filiale/macheng/ManageOtherCharge.vue +251 -251
  28. package/src/filiale/macheng/ManageSellType.vue +287 -287
  29. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  30. package/src/filiale/macheng/SellingTable.vue +219 -219
  31. package/src/filiale/macheng/UserBalanceReport.vue +178 -178
  32. package/src/filiale/macheng/config/exportConfig.js +67 -67
  33. package/src/filiale/macheng/reportManage.js +19 -19
  34. package/src/filiale/macheng/sale.js +11 -11
  35. package/src/filiale/meihekou/HandplanQuery.vue +1234 -1234
  36. package/src/filiale/meihekou/UserQuery.vue +773 -773
  37. package/src/filiale/qianneng/MeterQuery.vue +1016 -0
  38. package/src/filiale/qianneng/OtherChargeQuery.vue +646 -646
  39. package/src/filiale/qianneng/sale.js +3 -1
  40. package/src/filiale/rongchuang/SellingTable.vue +251 -250
  41. package/src/filiale/shaoguan/RecordInfoQuery.vue +1150 -1108
  42. package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
  43. package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
  44. package/.gradle/buildOutputCleanup/built.bin +0 -0
  45. package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
@@ -1,646 +1,646 @@
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>
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">客户名称</label>
37
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
- condition="f_user_name like '%{}%'" 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="rs/logic/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" @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_address"
63
- condition="f_address like '%{}%'" placeholder='客户地址'>
64
- </div>
65
- <div class="col-sm-2 form-group">
66
- <label class="font_normal_body" title="其他收费收费类型查询">收费类型</label>
67
- <v-select v-model="model.f_brand_spec"
68
- placeholder='请选择'
69
- condition="f_brand_spec in {}"
70
- :value.sync="model.f_brand_spec" multiple
71
- :options='$parent.$parent.chargetype'
72
- @change="$parent.$parent.setTypename"
73
- close-on-select clear-button></v-select>
74
- </div>
75
- <div class="col-sm-2 form-group">
76
- <label class="font_normal_body">品名规格</label>
77
- <v-select v-model="model.f_typename"
78
- placeholder='请选择'
79
- condition="f_typename in {}"
80
- :value.sync="model.f_typename" multiple
81
- :options='$parent.$parent.typeNameList'
82
- @change="$parent.$parent.setTypenumber"
83
- close-on-select clear-button>
84
- </v-select>
85
- </div>
86
- <div class="col-sm-2 form-group">
87
- <label class="font_normal_body">型&emsp;&emsp;号</label>
88
- <v-select v-model="model.f_typenumber"
89
- placeholder='请选择'
90
- condition="f_typenumber = '{}'"
91
- :value.sync="model.f_typenumber"
92
- :options='$parent.$parent.typenumberList'
93
- close-on-select clear-button>
94
- </v-select>
95
- </div>
96
- <div class="col-sm-2 form-group">
97
- <label class="font_normal_body">表&emsp;&emsp;号</label>
98
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
99
- condition="f_meternumber = '{}'" placeholder='表号'>
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_card_id"
104
- condition="f_card_id = '{}'" placeholder='卡号'>
105
- </div>
106
- <div class="col-sm-2 form-group">
107
- <label class="font_normal_body">用户类型</label>
108
- <v-select id="f_user_type"
109
- v-model="model.f_user_type"
110
- placeholder='请选择'
111
- condition="f_user_type ='{}'"
112
- :value.sync="model.f_user_type"
113
- @change="$parent.$parent.userTypeChange(model.f_user_type)"
114
- :options='$parent.$parent.userTypes'
115
- close-on-select clear-button></v-select>
116
- </div>
117
- <div class="col-sm-2 form-group">
118
- <label class="font_normal_body">用气性质</label>
119
- <v-select id="f_gasproperties"
120
- v-model="model.f_gasproperties"
121
- placeholder='请选择'
122
- condition="f_gasproperties ='{}'"
123
- :value.sync="model.f_gasproperties"
124
- :options='$parent.$parent.gasproperties'
125
- close-on-select clear-button></v-select>
126
- </div>
127
- <div class="col-sm-2 form-group">
128
- <label class="font_normal_body">收费状态</label>
129
- <v-select id="f_state"
130
- v-model="model.f_state"
131
- placeholder='请选择'
132
- condition="f_state in {}"
133
- multiple="true"
134
- :value.sync="model.f_state"
135
- :options='$parent.$parent.chargeState'
136
- close-on-select clear-button>
137
- </v-select>
138
- </div>
139
-
140
- <div class="col-sm-2 form-group">
141
- <label class="font_normal_body">付款方式</label>
142
- <v-select id="f_payment"
143
- v-model="model.f_payment"
144
- placeholder='请选择'
145
- condition="f_payment in {}"
146
- multiple="true"
147
- :value.sync="model.f_payment"
148
- :options='$parent.$parent.payments'
149
- close-on-select clear-button>
150
- </v-select>
151
- </div>
152
- <div class="col-sm-2 form-group">
153
- <label class="font_normal_body">服务人员</label>
154
- <v-select id="f_service_person"
155
- v-model="model.f_service_person"
156
- placeholder='请选择'
157
- condition="f_service_person ='{}'"
158
- :value.sync="model.f_service_person"
159
- :options='$parent.$parent.service_person'
160
- close-on-select clear-button>
161
- </v-select>
162
- </div>
163
- <div class="col-sm-2 form-group">
164
- <label class="font_normal_body">气表类型</label>
165
- <v-select :value.sync="model.f_meter_classify" multiple
166
- :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_classify"
167
- condition="f_meter_classify in {}"
168
- close-on-select></v-select>
169
- </div>
170
- <div class="col-sm-2 form-group">
171
- <label class="font_normal_body">气表品牌</label>
172
- <v-select :value.sync="model.f_meter_brand" multiple
173
- v-model="model.f_meter_brand"
174
- :options='$parent.$parent.meterbrands' placeholder='请选择'
175
- condition="f_meter_brand in {}"
176
- close-on-select></v-select>
177
- </div>
178
- </div>
179
- </div>
180
- </criteria>
181
-
182
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
183
- <template partial='head'>
184
- <tr>
185
- <th>
186
- <nobr>客户编号</nobr>
187
- </th>
188
- <th>
189
- <nobr>收费编号</nobr>
190
- </th>
191
- <th>
192
- <nobr>客户名称</nobr>
193
- </th>
194
- <th>
195
- <nobr>客户地址</nobr>
196
- </th>
197
- <th>
198
- <nobr>客户电话</nobr>
199
- </th>
200
- <th>
201
- <nobr>气表类型</nobr>
202
- </th>
203
- <th>
204
- <nobr>气表品牌</nobr>
205
- </th>
206
- <th>
207
- <nobr>卡号</nobr>
208
- </th>
209
- <th>
210
- <nobr>收据票号</nobr>
211
- </th>
212
-
213
- <th>
214
- <nobr>收费类型</nobr>
215
- </th>
216
- <th>
217
- <nobr>品名规格</nobr>
218
- </th>
219
- <th>
220
- <nobr>型号</nobr>
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
- <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
- </th>
255
- <th>
256
- <nobr>部门</nobr>
257
- </th>
258
- <th>
259
- <nobr>公司</nobr>
260
- </th>
261
- <th><nobr>附件</nobr></th>
262
- <!--<th><nobr>查看详情</nobr></th>-->
263
- </tr>
264
- </template>
265
- <template partial='body'>
266
- <td style="text-align: center;">
267
- <nobr>
268
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
269
- </td>
270
- <td style="text-align: center;">
271
- <nobr>{{row.id}}</nobr>
272
- </td>
273
- <td style="text-align: center;">
274
- <nobr>{{row.f_user_name}}</nobr>
275
- </td>
276
- <td style="text-align: center;">
277
- <nobr>{{row.f_address}}</nobr>
278
- </td>
279
- <td style="text-align: center;">
280
- <nobr>{{row.f_user_phone}}</nobr>
281
- </td>
282
- <td style="text-align: center;">
283
- <nobr>{{row.f_meter_classify}}</nobr>
284
- </td>
285
- <td style="text-align: center;">
286
- <nobr>{{row.f_meter_brand}}</nobr>
287
- </td>
288
- <td style="text-align: center;">
289
- <nobr>{{row.f_card_id}}</nobr>
290
- </td>
291
-
292
- <td style="text-align: center;">
293
- <nobr>{{row.f_bill_number}}</nobr>
294
- </td>
295
- <td style="text-align: center;">
296
- <nobr>{{row.f_brand_spec}}</nobr>
297
- </td>
298
- <td style="text-align: center;">
299
- <nobr>{{row.f_typename}}</nobr>
300
- </td>
301
- <td style="text-align: center;">
302
- <nobr>{{row.f_typenumber}}</nobr>
303
- </td>
304
- <td style="text-align: center;">
305
- <nobr>{{row.f_unitprice}}</nobr>
306
- </td>
307
- <td style="text-align: center;">
308
- <nobr>{{row.f_number}}</nobr>
309
- </td>
310
- <td style="text-align: center;">
311
- <nobr>{{row.f_money}}</nobr>
312
- </td>
313
- <td style="text-align: center;">
314
- <nobr>{{row.f_newbalance}}</nobr>
315
- </td>
316
- <td style="text-align: center;">
317
- <nobr>{{row.f_newcurbalance}}</nobr>
318
- </td>
319
- <td style="text-align: center;">
320
- <nobr>{{row.f_payment}}</nobr>
321
- </td>
322
- <td style="text-align: center;">
323
- <nobr>{{row.f_state}}</nobr>
324
- </td>
325
- <td style="text-align: center;">
326
- <nobr>{{row.f_operate_date}}</nobr>
327
- </td>
328
- <td style="text-align: center;">
329
- <nobr>{{row.f_service_person}}</nobr>
330
- </td>
331
- <td style="text-align: center;">
332
- <nobr>{{row.f_comments}}</nobr>
333
- </td>
334
- <td style="text-align: center;">
335
- <nobr>{{row.f_operator}}</nobr>
336
- </td>
337
- <td style="text-align: center;">
338
- <nobr>{{row.f_depname}}</nobr>
339
- </td>
340
- <td style="text-align: center;">
341
- <nobr>{{row.f_orgname}}</nobr>
342
- </td>
343
- <td style="text-align: center;"><nobr>
344
- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
345
- </nobr></td>
346
- <!--<td style="text-align: center;">-->
347
- <!--<button class="btn btn-link" @click.stop="$parent.$parent.$parent.showchargedetail(row)">查看</button>-->
348
- <!--</td>-->
349
- </template>
350
- <template partial='foot'></template>
351
- </data-grid>
352
-
353
- </criteria-paged>
354
-
355
- <table class="table-hover">
356
- <tr style="position: relative" class="table-bordered">
357
- <td
358
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
359
- 汇总信息
360
- </td>
361
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
362
- 收款合计:&emsp;{{sumsmodel.f_money}}
363
- </td>
364
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
365
- 户数合计:&emsp;{{sumsmodel.hushu}}
366
- </td>
367
- </tr>
368
- </table>
369
-
370
- </div>
371
- <div class="flex" v-if="show">
372
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
373
- </div>
374
- </div>
375
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
376
- <article slot="modal-body">
377
- <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="收费" :isremark="false" style="width:auto" ></upload>
378
- </article>
379
- <footer slot="modal-footer" class="modal-footer">
380
- </footer>
381
- </modal>
382
- </div>
383
-
384
- <modal v-if="showdetail" :show.sync="showdetail" title="详细记录" v-ref:modal large backdrop="false">
385
- <article slot="modal-body" class="modal-body">
386
- <other-charge-detail-query :otherchargeid="otherchargeid" ></other-charge-detail-query>
387
- </article>
388
- <footer slot="modal-footer" class="modal-footer">
389
- </footer>
390
- </modal>
391
-
392
- </template>
393
-
394
- <script>
395
- import {PagedList} from 'vue-client'
396
- import defaultPrint from '../../components/sale/config/DefaultPrint'
397
- import exportConfig from './exportConfig'
398
- import OtherChargeDetailQuery from "./OtherChargeDetailQuery";
399
-
400
- let readySomething = async function (self) {
401
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
402
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
403
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
404
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
405
- // await self.$refs.paged.$refs.cri.search()
406
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
407
- await self.$MagLoadParams.loadParam()
408
-
409
- self.initParams()
410
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
411
- }
412
- export default {
413
- components: {
414
- OtherChargeDetailQuery
415
- },
416
- props:['data'],
417
- title: '其他收费查询',
418
- data() {
419
- return {
420
- data: {},
421
- other:[],
422
- footer:[],
423
- model: new PagedList('rs/sql/otherChargeQuery', 20, {}, {f_money: 0,hushu:0}),
424
- criteriaShow: false,
425
- orgCondtionStr: '',
426
- modelval: [],
427
- printshow: false,
428
- all: false,
429
- fields: {},
430
- config: {
431
- 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']
432
- },
433
- //默认打印列
434
- defaultfield: [],
435
- thead: '',
436
- tfoot: '',
437
- initres: {
438
- org:[this.$login.f.orgid],
439
- dep:[],
440
- user:[],
441
- },
442
- show:false,
443
- showdetail:false,
444
- otherchargeid:'',
445
- rowdata:{},
446
- meterbrands: [],
447
- //合计数据
448
- sumsmodel: {},
449
- showupload:false,
450
- selected:{},
451
- // 用气性质
452
- gasproperties: [],
453
- // 品名规格
454
- typeNameList: [],
455
- // 型号
456
- typenumberList: []
457
- }
458
- },
459
- ready() {
460
- readySomething(this).then(() => {
461
- this.$emit('ready')
462
- }).catch((error) => {
463
- this.$emit('error', error)
464
- })
465
- },
466
- methods: {
467
- view(row){
468
- this.showupload = true
469
- this.selected= row
470
- },
471
- initParams() {
472
- // 初始化气表品牌
473
- let brandArr = []
474
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
475
- let temp = {}
476
- temp.label = item.label
477
- temp.value = item.value.f_meter_brand
478
- brandArr.push(temp)
479
- })
480
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
481
- },
482
- getotherfooter(){
483
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
484
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
485
- this.other=[];
486
- this.footer=[];
487
- let exportdata = this.getCondition;
488
- let otherInData=[];
489
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
490
- let footerData=[],exportfield=this.getfield;
491
- footerData.push("合计");
492
- let self = this;
493
- for(var field in self.sumsmodel){
494
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
495
- }
496
- this.footer.push(footerData);
497
- this.other.push(otherInData);
498
- },
499
- search(){
500
- this.$refs.paged.$refs.cri.search()
501
- },
502
- async selfSearch(args) {
503
- if (this.data) {
504
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
505
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
506
- }
507
- args.condition = `${args.condition}` + this.orgCondtionStr
508
- await this.model.search(args.condition, args.model)
509
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
510
- this.sumsmodel.hushu=[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
511
-
512
- },
513
- clear() {
514
- //清空部门和人员
515
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
516
- //部门和人员变为全选
517
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
518
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
519
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
520
- this.$refs.paged.$refs.cri.model[key] = []
521
- })
522
- },
523
- show() {
524
- this.criteriaShow = true
525
- },
526
- hidden() {
527
- this.criteriaShow = !this.criteriaShow
528
- },
529
- getRes(obj) {
530
- this.orgCondtionStr = obj
531
- },
532
- cancel() {
533
- this.show = false
534
- },
535
- dealmsg(val) {
536
- console.log('---------------dealmsg')
537
- this.rowdata=val
538
- this.show=true
539
- val.model = this.model.model
540
- this.$dispatch('deal-msg', val)
541
- },
542
- stamp() {
543
- this.all = false
544
- //默认选择要打印的列
545
- this.modelval = defaultPrint.config
546
- this.fields = this.getfield
547
- console.log('所有打印字段', this.fields)
548
- this.printshow = true
549
- this.put()
550
- },
551
- put() {
552
- // 对Modelval进行排序
553
- this.sortModelval()
554
- this.thead = `<tr><th colspan=${this.modelval.length}>其他收费查询统计报表</th></tr><tr>`
555
- for (let key of this.modelval) {
556
- this.thead += '<th>' + this.fields[key] + '</th>'
557
- }
558
- this.thead += '</tr>'
559
- },
560
- print() {
561
- this.$refs.print.PrintAsFile()
562
- this.printshow = false
563
- },
564
- close() {
565
- this.printshow = false
566
- this.all = false
567
- },
568
- // 对选择的列进行排序
569
- sortModelval() {
570
- let sortModel = []
571
- Object.keys(this.fields).forEach((key) => {
572
- if (this.modelval.includes(key)) {
573
- sortModel.push(key)
574
- }
575
- })
576
- this.modelval = sortModel
577
- console.log('选择的打印的字段', this.modelval)
578
- },
579
- showchargedetail(row){
580
- this.showdetail=true
581
- this.otherchargeid=row.id
582
- },
583
- userTypeChange (f_user_type) {
584
- this.gasproperties = []
585
- if (f_user_type) {
586
- this.$refs.paged.$refs.cri.model.f_gasproperties = ''
587
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
588
- } else {
589
- this.gasproperties = [{label: '全部', value: ''}]
590
- }
591
- },
592
- setTypename (val) {
593
- this.typenumberList = []
594
- this.typeNameList = this.$appdata.getParam(val)
595
- },
596
- setTypenumber (val) {
597
- this.typenumberList = this.$appdata.getParam(val)
598
- }
599
- },
600
- watch: {
601
- 'all'(val) {
602
- if (val) {
603
- this.modelval = this.bodyData
604
- } else {
605
- this.modelval = defaultPrint.config
606
- this.put()
607
- }
608
- },
609
- 'modelval.length'() {
610
- this.put()
611
- },
612
- sumsmodel:{
613
- handler: function(val) {
614
- this.getotherfooter();
615
- },
616
- deep: true
617
- }
618
- },
619
- computed: {
620
- getCondition() {
621
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
622
- },
623
- service_person() {
624
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('服务人员')]
625
- },
626
- getfield() {
627
- return exportConfig.otherchargeConfig
628
- },
629
- chargetype() {
630
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('其他收费收费类型查询')]
631
- },
632
- userTypes() {
633
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
634
- },
635
- chargeState() {
636
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
637
- },
638
- metertypes() {
639
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
640
- },
641
- payments() {
642
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
643
- }
644
- }
645
- }
646
- </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>
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">客户名称</label>
37
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
+ condition="f_user_name like '%{}%'" 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="rs/logic/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" @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_address"
63
+ condition="f_address like '%{}%'" placeholder='客户地址'>
64
+ </div>
65
+ <div class="col-sm-2 form-group">
66
+ <label class="font_normal_body" title="其他收费收费类型查询">收费类型</label>
67
+ <v-select v-model="model.f_brand_spec"
68
+ placeholder='请选择'
69
+ condition="f_brand_spec in {}"
70
+ :value.sync="model.f_brand_spec" multiple
71
+ :options='$parent.$parent.chargetype'
72
+ @change="$parent.$parent.setTypename"
73
+ close-on-select clear-button></v-select>
74
+ </div>
75
+ <div class="col-sm-2 form-group">
76
+ <label class="font_normal_body">品名规格</label>
77
+ <v-select v-model="model.f_typename"
78
+ placeholder='请选择'
79
+ condition="f_typename in {}"
80
+ :value.sync="model.f_typename" multiple
81
+ :options='$parent.$parent.typeNameList'
82
+ @change="$parent.$parent.setTypenumber"
83
+ close-on-select clear-button>
84
+ </v-select>
85
+ </div>
86
+ <div class="col-sm-2 form-group">
87
+ <label class="font_normal_body">型&emsp;&emsp;号</label>
88
+ <v-select v-model="model.f_typenumber"
89
+ placeholder='请选择'
90
+ condition="f_typenumber = '{}'"
91
+ :value.sync="model.f_typenumber"
92
+ :options='$parent.$parent.typenumberList'
93
+ close-on-select clear-button>
94
+ </v-select>
95
+ </div>
96
+ <div class="col-sm-2 form-group">
97
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
98
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
99
+ condition="f_meternumber = '{}'" placeholder='表号'>
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_card_id"
104
+ condition="f_card_id = '{}'" placeholder='卡号'>
105
+ </div>
106
+ <div class="col-sm-2 form-group">
107
+ <label class="font_normal_body">用户类型</label>
108
+ <v-select id="f_user_type"
109
+ v-model="model.f_user_type"
110
+ placeholder='请选择'
111
+ condition="f_user_type ='{}'"
112
+ :value.sync="model.f_user_type"
113
+ @change="$parent.$parent.userTypeChange(model.f_user_type)"
114
+ :options='$parent.$parent.userTypes'
115
+ close-on-select clear-button></v-select>
116
+ </div>
117
+ <div class="col-sm-2 form-group">
118
+ <label class="font_normal_body">用气性质</label>
119
+ <v-select id="f_gasproperties"
120
+ v-model="model.f_gasproperties"
121
+ placeholder='请选择'
122
+ condition="f_gasproperties ='{}'"
123
+ :value.sync="model.f_gasproperties"
124
+ :options='$parent.$parent.gasproperties'
125
+ close-on-select clear-button></v-select>
126
+ </div>
127
+ <div class="col-sm-2 form-group">
128
+ <label class="font_normal_body">收费状态</label>
129
+ <v-select id="f_state"
130
+ v-model="model.f_state"
131
+ placeholder='请选择'
132
+ condition="f_state in {}"
133
+ multiple="true"
134
+ :value.sync="model.f_state"
135
+ :options='$parent.$parent.chargeState'
136
+ close-on-select clear-button>
137
+ </v-select>
138
+ </div>
139
+
140
+ <div class="col-sm-2 form-group">
141
+ <label class="font_normal_body">付款方式</label>
142
+ <v-select id="f_payment"
143
+ v-model="model.f_payment"
144
+ placeholder='请选择'
145
+ condition="f_payment in {}"
146
+ multiple="true"
147
+ :value.sync="model.f_payment"
148
+ :options='$parent.$parent.payments'
149
+ close-on-select clear-button>
150
+ </v-select>
151
+ </div>
152
+ <div class="col-sm-2 form-group">
153
+ <label class="font_normal_body">服务人员</label>
154
+ <v-select id="f_service_person"
155
+ v-model="model.f_service_person"
156
+ placeholder='请选择'
157
+ condition="f_service_person ='{}'"
158
+ :value.sync="model.f_service_person"
159
+ :options='$parent.$parent.service_person'
160
+ close-on-select clear-button>
161
+ </v-select>
162
+ </div>
163
+ <div class="col-sm-2 form-group">
164
+ <label class="font_normal_body">气表类型</label>
165
+ <v-select :value.sync="model.f_meter_classify" multiple
166
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_classify"
167
+ condition="f_meter_classify in {}"
168
+ close-on-select></v-select>
169
+ </div>
170
+ <div class="col-sm-2 form-group">
171
+ <label class="font_normal_body">气表品牌</label>
172
+ <v-select :value.sync="model.f_meter_brand" multiple
173
+ v-model="model.f_meter_brand"
174
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
175
+ condition="f_meter_brand in {}"
176
+ close-on-select></v-select>
177
+ </div>
178
+ </div>
179
+ </div>
180
+ </criteria>
181
+
182
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
183
+ <template partial='head'>
184
+ <tr>
185
+ <th>
186
+ <nobr>客户编号</nobr>
187
+ </th>
188
+ <th>
189
+ <nobr>收费编号</nobr>
190
+ </th>
191
+ <th>
192
+ <nobr>客户名称</nobr>
193
+ </th>
194
+ <th>
195
+ <nobr>客户地址</nobr>
196
+ </th>
197
+ <th>
198
+ <nobr>客户电话</nobr>
199
+ </th>
200
+ <th>
201
+ <nobr>气表类型</nobr>
202
+ </th>
203
+ <th>
204
+ <nobr>气表品牌</nobr>
205
+ </th>
206
+ <th>
207
+ <nobr>卡号</nobr>
208
+ </th>
209
+ <th>
210
+ <nobr>收据票号</nobr>
211
+ </th>
212
+
213
+ <th>
214
+ <nobr>收费类型</nobr>
215
+ </th>
216
+ <th>
217
+ <nobr>品名规格</nobr>
218
+ </th>
219
+ <th>
220
+ <nobr>型号</nobr>
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
+ <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
+ </th>
255
+ <th>
256
+ <nobr>部门</nobr>
257
+ </th>
258
+ <th>
259
+ <nobr>公司</nobr>
260
+ </th>
261
+ <th><nobr>附件</nobr></th>
262
+ <!--<th><nobr>查看详情</nobr></th>-->
263
+ </tr>
264
+ </template>
265
+ <template partial='body'>
266
+ <td style="text-align: center;">
267
+ <nobr>
268
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
269
+ </td>
270
+ <td style="text-align: center;">
271
+ <nobr>{{row.id}}</nobr>
272
+ </td>
273
+ <td style="text-align: center;">
274
+ <nobr>{{row.f_user_name}}</nobr>
275
+ </td>
276
+ <td style="text-align: center;">
277
+ <nobr>{{row.f_address}}</nobr>
278
+ </td>
279
+ <td style="text-align: center;">
280
+ <nobr>{{row.f_user_phone}}</nobr>
281
+ </td>
282
+ <td style="text-align: center;">
283
+ <nobr>{{row.f_meter_classify}}</nobr>
284
+ </td>
285
+ <td style="text-align: center;">
286
+ <nobr>{{row.f_meter_brand}}</nobr>
287
+ </td>
288
+ <td style="text-align: center;">
289
+ <nobr>{{row.f_card_id}}</nobr>
290
+ </td>
291
+
292
+ <td style="text-align: center;">
293
+ <nobr>{{row.f_bill_number}}</nobr>
294
+ </td>
295
+ <td style="text-align: center;">
296
+ <nobr>{{row.f_brand_spec}}</nobr>
297
+ </td>
298
+ <td style="text-align: center;">
299
+ <nobr>{{row.f_typename}}</nobr>
300
+ </td>
301
+ <td style="text-align: center;">
302
+ <nobr>{{row.f_typenumber}}</nobr>
303
+ </td>
304
+ <td style="text-align: center;">
305
+ <nobr>{{row.f_unitprice}}</nobr>
306
+ </td>
307
+ <td style="text-align: center;">
308
+ <nobr>{{row.f_number}}</nobr>
309
+ </td>
310
+ <td style="text-align: center;">
311
+ <nobr>{{row.f_money}}</nobr>
312
+ </td>
313
+ <td style="text-align: center;">
314
+ <nobr>{{row.f_newbalance}}</nobr>
315
+ </td>
316
+ <td style="text-align: center;">
317
+ <nobr>{{row.f_newcurbalance}}</nobr>
318
+ </td>
319
+ <td style="text-align: center;">
320
+ <nobr>{{row.f_payment}}</nobr>
321
+ </td>
322
+ <td style="text-align: center;">
323
+ <nobr>{{row.f_state}}</nobr>
324
+ </td>
325
+ <td style="text-align: center;">
326
+ <nobr>{{row.f_operate_date}}</nobr>
327
+ </td>
328
+ <td style="text-align: center;">
329
+ <nobr>{{row.f_service_person}}</nobr>
330
+ </td>
331
+ <td style="text-align: center;">
332
+ <nobr>{{row.f_comments}}</nobr>
333
+ </td>
334
+ <td style="text-align: center;">
335
+ <nobr>{{row.f_operator}}</nobr>
336
+ </td>
337
+ <td style="text-align: center;">
338
+ <nobr>{{row.f_depname}}</nobr>
339
+ </td>
340
+ <td style="text-align: center;">
341
+ <nobr>{{row.f_orgname}}</nobr>
342
+ </td>
343
+ <td style="text-align: center;"><nobr>
344
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
345
+ </nobr></td>
346
+ <!--<td style="text-align: center;">-->
347
+ <!--<button class="btn btn-link" @click.stop="$parent.$parent.$parent.showchargedetail(row)">查看</button>-->
348
+ <!--</td>-->
349
+ </template>
350
+ <template partial='foot'></template>
351
+ </data-grid>
352
+
353
+ </criteria-paged>
354
+
355
+ <table class="table-hover">
356
+ <tr style="position: relative" class="table-bordered">
357
+ <td
358
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
359
+ 汇总信息
360
+ </td>
361
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
362
+ 收款合计:&emsp;{{sumsmodel.f_money}}
363
+ </td>
364
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
365
+ 户数合计:&emsp;{{sumsmodel.hushu}}
366
+ </td>
367
+ </tr>
368
+ </table>
369
+
370
+ </div>
371
+ <div class="flex" v-if="show">
372
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
373
+ </div>
374
+ </div>
375
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
376
+ <article slot="modal-body">
377
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="收费" :isremark="false" style="width:auto" ></upload>
378
+ </article>
379
+ <footer slot="modal-footer" class="modal-footer">
380
+ </footer>
381
+ </modal>
382
+ </div>
383
+
384
+ <modal v-if="showdetail" :show.sync="showdetail" title="详细记录" v-ref:modal large backdrop="false">
385
+ <article slot="modal-body" class="modal-body">
386
+ <other-charge-detail-query :otherchargeid="otherchargeid" ></other-charge-detail-query>
387
+ </article>
388
+ <footer slot="modal-footer" class="modal-footer">
389
+ </footer>
390
+ </modal>
391
+
392
+ </template>
393
+
394
+ <script>
395
+ import {PagedList} from 'vue-client'
396
+ import defaultPrint from '../../components/sale/config/DefaultPrint'
397
+ import exportConfig from './exportConfig'
398
+ import OtherChargeDetailQuery from "./OtherChargeDetailQuery";
399
+
400
+ let readySomething = async function (self) {
401
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
402
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
403
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
404
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
405
+ // await self.$refs.paged.$refs.cri.search()
406
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
407
+ await self.$MagLoadParams.loadParam()
408
+
409
+ self.initParams()
410
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
411
+ }
412
+ export default {
413
+ components: {
414
+ OtherChargeDetailQuery
415
+ },
416
+ props:['data'],
417
+ title: '其他收费查询',
418
+ data() {
419
+ return {
420
+ data: {},
421
+ other:[],
422
+ footer:[],
423
+ model: new PagedList('rs/sql/otherChargeQuery', 20, {}, {f_money: 0,hushu:0}),
424
+ criteriaShow: false,
425
+ orgCondtionStr: '',
426
+ modelval: [],
427
+ printshow: false,
428
+ all: false,
429
+ fields: {},
430
+ config: {
431
+ 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']
432
+ },
433
+ //默认打印列
434
+ defaultfield: [],
435
+ thead: '',
436
+ tfoot: '',
437
+ initres: {
438
+ org:[this.$login.f.orgid],
439
+ dep:[],
440
+ user:[],
441
+ },
442
+ show:false,
443
+ showdetail:false,
444
+ otherchargeid:'',
445
+ rowdata:{},
446
+ meterbrands: [],
447
+ //合计数据
448
+ sumsmodel: {},
449
+ showupload:false,
450
+ selected:{},
451
+ // 用气性质
452
+ gasproperties: [],
453
+ // 品名规格
454
+ typeNameList: [],
455
+ // 型号
456
+ typenumberList: []
457
+ }
458
+ },
459
+ ready() {
460
+ readySomething(this).then(() => {
461
+ this.$emit('ready')
462
+ }).catch((error) => {
463
+ this.$emit('error', error)
464
+ })
465
+ },
466
+ methods: {
467
+ view(row){
468
+ this.showupload = true
469
+ this.selected= row
470
+ },
471
+ initParams() {
472
+ // 初始化气表品牌
473
+ let brandArr = []
474
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
475
+ let temp = {}
476
+ temp.label = item.label
477
+ temp.value = item.value.f_meter_brand
478
+ brandArr.push(temp)
479
+ })
480
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
481
+ },
482
+ getotherfooter(){
483
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
484
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
485
+ this.other=[];
486
+ this.footer=[];
487
+ let exportdata = this.getCondition;
488
+ let otherInData=[];
489
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
490
+ let footerData=[],exportfield=this.getfield;
491
+ footerData.push("合计");
492
+ let self = this;
493
+ for(var field in self.sumsmodel){
494
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
495
+ }
496
+ this.footer.push(footerData);
497
+ this.other.push(otherInData);
498
+ },
499
+ search(){
500
+ this.$refs.paged.$refs.cri.search()
501
+ },
502
+ async selfSearch(args) {
503
+ if (this.data) {
504
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
505
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
506
+ }
507
+ args.condition = `${args.condition}` + this.orgCondtionStr
508
+ await this.model.search(args.condition, args.model)
509
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
510
+ this.sumsmodel.hushu=[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
511
+
512
+ },
513
+ clear() {
514
+ //清空部门和人员
515
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
516
+ //部门和人员变为全选
517
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
518
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
519
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
520
+ this.$refs.paged.$refs.cri.model[key] = []
521
+ })
522
+ },
523
+ show() {
524
+ this.criteriaShow = true
525
+ },
526
+ hidden() {
527
+ this.criteriaShow = !this.criteriaShow
528
+ },
529
+ getRes(obj) {
530
+ this.orgCondtionStr = obj
531
+ },
532
+ cancel() {
533
+ this.show = false
534
+ },
535
+ dealmsg(val) {
536
+ console.log('---------------dealmsg')
537
+ this.rowdata=val
538
+ this.show=true
539
+ val.model = this.model.model
540
+ this.$dispatch('deal-msg', val)
541
+ },
542
+ stamp() {
543
+ this.all = false
544
+ //默认选择要打印的列
545
+ this.modelval = defaultPrint.config
546
+ this.fields = this.getfield
547
+ console.log('所有打印字段', this.fields)
548
+ this.printshow = true
549
+ this.put()
550
+ },
551
+ put() {
552
+ // 对Modelval进行排序
553
+ this.sortModelval()
554
+ this.thead = `<tr><th colspan=${this.modelval.length}>其他收费查询统计报表</th></tr><tr>`
555
+ for (let key of this.modelval) {
556
+ this.thead += '<th>' + this.fields[key] + '</th>'
557
+ }
558
+ this.thead += '</tr>'
559
+ },
560
+ print() {
561
+ this.$refs.print.PrintAsFile()
562
+ this.printshow = false
563
+ },
564
+ close() {
565
+ this.printshow = false
566
+ this.all = false
567
+ },
568
+ // 对选择的列进行排序
569
+ sortModelval() {
570
+ let sortModel = []
571
+ Object.keys(this.fields).forEach((key) => {
572
+ if (this.modelval.includes(key)) {
573
+ sortModel.push(key)
574
+ }
575
+ })
576
+ this.modelval = sortModel
577
+ console.log('选择的打印的字段', this.modelval)
578
+ },
579
+ showchargedetail(row){
580
+ this.showdetail=true
581
+ this.otherchargeid=row.id
582
+ },
583
+ userTypeChange (f_user_type) {
584
+ this.gasproperties = []
585
+ if (f_user_type) {
586
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
587
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
588
+ } else {
589
+ this.gasproperties = [{label: '全部', value: ''}]
590
+ }
591
+ },
592
+ setTypename (val) {
593
+ this.typenumberList = []
594
+ this.typeNameList = this.$appdata.getParam(val)
595
+ },
596
+ setTypenumber (val) {
597
+ this.typenumberList = this.$appdata.getParam(val)
598
+ }
599
+ },
600
+ watch: {
601
+ 'all'(val) {
602
+ if (val) {
603
+ this.modelval = this.bodyData
604
+ } else {
605
+ this.modelval = defaultPrint.config
606
+ this.put()
607
+ }
608
+ },
609
+ 'modelval.length'() {
610
+ this.put()
611
+ },
612
+ sumsmodel:{
613
+ handler: function(val) {
614
+ this.getotherfooter();
615
+ },
616
+ deep: true
617
+ }
618
+ },
619
+ computed: {
620
+ getCondition() {
621
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
622
+ },
623
+ service_person() {
624
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('服务人员')]
625
+ },
626
+ getfield() {
627
+ return exportConfig.otherchargeConfig
628
+ },
629
+ chargetype() {
630
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('其他收费收费类型查询')]
631
+ },
632
+ userTypes() {
633
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
634
+ },
635
+ chargeState() {
636
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
637
+ },
638
+ metertypes() {
639
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
640
+ },
641
+ payments() {
642
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
643
+ }
644
+ }
645
+ }
646
+ </script>