manage-client 3.3.2 → 3.3.5

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 (63) hide show
  1. package/build/dev-server.js +180 -180
  2. package/package.json +1 -1
  3. package/src/components/sale/businessquery/GroupChargeQuery.vue +481 -481
  4. package/src/components/sale/businessquery/NewAreaGeneralQuery.vue +633 -633
  5. package/src/components/webmeter/recharge/RechargeList.vue +346 -346
  6. package/src/filiale/gehua/GroupChargeQuery.vue +486 -486
  7. package/src/filiale/huayin/ChargeQuery.vue +1305 -1305
  8. package/src/filiale/macheng/config/exportConfig.js +1 -1
  9. package/src/filiale/rongcheng/AreaBuildingDetailInfo.vue +281 -281
  10. package/src/filiale/rongcheng/AreaBuildingInfoSummary.vue +301 -301
  11. package/src/filiale/rongcheng/exportConfig.js +536 -536
  12. package/src/filiale/rongcheng/sale.js +22 -22
  13. package/src/filiale/shanxian/CancellationQuery.vue +426 -0
  14. package/src/filiale/shanxian/ChangeUserQuery.vue +395 -0
  15. package/src/filiale/shanxian/DeviceQuery.vue +586 -0
  16. package/src/filiale/shanxian/DisableQuery.vue +528 -0
  17. package/src/filiale/shanxian/EnableQuery.vue +461 -0
  18. package/src/filiale/shanxian/FMYGasQuery.vue +731 -0
  19. package/src/filiale/shanxian/FillCardQuery.vue +569 -569
  20. package/src/filiale/shanxian/FillGasQuery.vue +588 -588
  21. package/src/filiale/shanxian/FmyGasDeviceQuery.vue +68 -33
  22. package/src/filiale/shanxian/InspectListUserNew.vue +18 -16
  23. package/src/filiale/shanxian/LostContactAnalysisList.vue +633 -632
  24. package/src/filiale/shanxian/MeterQuery.vue +968 -0
  25. package/src/filiale/shanxian/MonthGasQuery.vue +481 -0
  26. package/src/filiale/shanxian/NewQueryInstruct.vue +457 -0
  27. package/src/filiale/shanxian/OtherChargeQuery.vue +684 -684
  28. package/src/filiale/shanxian/ReverseQuery.vue +454 -0
  29. package/src/filiale/shanxian/TransferQuery.vue +469 -0
  30. package/src/filiale/shanxian/UserGasAll.vue +15 -14
  31. package/src/filiale/shanxian/UserLostContactAnalysis.vue +584 -583
  32. package/src/filiale/shanxian/UserQuery.vue +960 -959
  33. package/src/filiale/shanxian/config/exportConfig.js +100 -100
  34. package/src/filiale/shanxian/newwebmeter/TotalExceptionByMeter.vue +608 -0
  35. package/src/filiale/shanxian/sale.js +46 -26
  36. package/src/filiale/shanxian/webmeterManage.js +4 -0
  37. package/src/filiale/wenxi/ChangeMeterQuery.vue +704 -704
  38. package/src/filiale/wenxi/ChangeUserQuery.vue +371 -371
  39. package/src/filiale/wenxi/ChargeQuery.vue +1260 -1260
  40. package/src/filiale/wenxi/FmyGasDeviceQuery.vue +944 -944
  41. package/src/filiale/wenxi/GasDeviceQuery.vue +1041 -1041
  42. package/src/filiale/wenxi/GasStatistics.vue +515 -515
  43. package/src/filiale/wenxi/GetNoMetereadData.vue +374 -374
  44. package/src/filiale/wenxi/HandplanQuery.vue +1370 -1370
  45. package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
  46. package/src/filiale/wenxi/MeterQuery.vue +937 -964
  47. package/src/filiale/wenxi/NewGasStatistics.vue +522 -522
  48. package/src/filiale/wenxi/RecordInfoQuery.vue +1213 -1213
  49. package/src/filiale/wenxi/WebHandQuery.vue +475 -475
  50. package/src/filiale/wenxi/config/exportConfig.js +916 -916
  51. package/src/filiale/wenxi/sale.js +24 -24
  52. package/src/filiale/wenxi/webmeterManage.js +13 -13
  53. package/src/filiale/xinkang/EchartsBox.vue +139 -139
  54. package/src/filiale/xinkang/ManageBrandHouseCount.vue +347 -347
  55. package/src/filiale/xinkang/NewGasStatistics.vue +526 -526
  56. package/src/filiale/xinkang/exportConfig.js +1998 -1998
  57. package/src/filiale/xinkang/meterFaultChangeSummary.vue +196 -196
  58. package/src/filiale/xinkang/reportManage.js +15 -15
  59. package/src/filiale/xinkang/sale.js +13 -13
  60. package/src/filiale/xinkang/webmeterManage.js +9 -9
  61. package/src/filiale/zhongyi/GasStatistics.vue +521 -521
  62. package/src/main.js +66 -72
  63. package/lib/package_2022-12-01-14-30-50.json +0 -109
@@ -1,481 +1,481 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" :class="{showbottom:showbottomsum}" v-if="!show">
5
- <criteria-paged :model="model" v-ref:paged @sort="sort">
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row">
9
- <res-select-group :show-component="['company','department']" :selectin="true" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
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="span" style="float:right;">
31
- <button class="button_search button_spacing" @click="search()">查询</button>
32
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
33
-
34
- <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
35
- :field="$parent.$parent.getfield" :header="$parent.$parent.other"
36
- :defaultselect="$parent.$parent.defaultexport"
37
- sqlurl="rs/logic/exportfile" sql-name="groupChargeQuery" template-name='团缴查询导出'
38
- :choose-col="true">
39
- </export-excel>
40
-
41
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
42
- :defaultfield="$parent.$parent.config.defaultPrint"
43
- titletable="团体缴费记录报表" :starthead="$parent.$parent.getstart"
44
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
45
- <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>
46
-
47
- </div>
48
- </div>
49
- <div class="row" v-show="$parent.$parent.criteriaShow">
50
- <div class="col-sm-2 form-group">
51
- <label class="font_normal_body">客户名称</label>
52
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
53
- condition="f_user_name like '%{}%'" placeholder="客户名称">
54
- </div>
55
- <div class="col-sm-2 form-group">
56
- <label class="font_normal_body">客户类型</label>
57
- <v-select :value.sync="model.f_user_type"
58
- :search="false"
59
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
60
- condition="f_user_type = '{}'"
61
- close-on-select></v-select>
62
- </div>
63
- <div class="col-sm-2 form-group">
64
- <label class="font_normal_body">客户地址</label>
65
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
66
- condition="f_address like '%{}%'" placeholder='客户地址'>
67
- </div>
68
- <div class="col-sm-2 form-group">
69
- <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
70
- <v-select :value.sync="model.f_payment" multiple
71
- v-model="model.f_payment"
72
- :options='$parent.$parent.payment' placeholder='请选择'
73
- condition="f_payment in {}"
74
- close-on-select></v-select>
75
- </div>
76
- <div class="col-sm-2 form-group">
77
- <label class="font_normal_body">收费类型</label>
78
- <v-select :value.sync="model.f_type" multiple
79
- :search="false"
80
- :options='$parent.$parent.chargetype' placeholder='请选择'
81
- close-on-select clear-button
82
- condition="f_type in {}"
83
- v-model="model.f_type"></v-select>
84
- </div>
85
- <div class="col-sm-2 form-group">
86
- <label class="font_normal_body">收费状态</label>
87
- <v-select :value.sync="model.f_state" multiple
88
- :search="false"
89
- v-model="model.f_state"
90
- :options='$parent.$parent.charge_state' placeholder='请选择'
91
- condition="f_state in {}"
92
- close-on-select></v-select>
93
- </div>
94
- </div>
95
- </div>
96
- </criteria>
97
-
98
- <data-grid :model="model" partial='list' class="list_area table_sy" style="height: 95%" v-ref:grid>
99
- <template partial='head'>
100
- <tr>
101
- <th>
102
- <nobr>收费编号</nobr>
103
- </th>
104
- <th>
105
- <nobr>客户姓名</nobr>
106
- </th>
107
- <th>
108
- <nobr>客户类型</nobr>
109
- </th>
110
- <th>
111
- <!--<nobr>客户地址</nobr>-->
112
- <data-order field="f_address" name="客户地址" :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
113
- </th>
114
- <th>
115
- <nobr>气量</nobr>
116
- </th>
117
- <th>
118
- <nobr>气费</nobr>
119
- </th>
120
- <!-- <th>-->
121
- <!-- <nobr>应交违约金</nobr>-->
122
- <!-- </th>-->
123
- <!-- <th>-->
124
- <!-- <nobr>实交违约金</nobr>-->
125
- <!-- </th>-->
126
- <th>
127
- <nobr>上期余额</nobr>
128
- </th>
129
- <th>
130
- <nobr>本期余额</nobr>
131
- </th>
132
- <th>
133
- <nobr>账户支出</nobr>
134
- </th>
135
- <th>
136
- <nobr>账户存入</nobr>
137
- </th>
138
- <th>
139
- <nobr>收款</nobr>
140
- </th>
141
- <th>
142
- <nobr>收费状态</nobr>
143
- </th>
144
- <th>
145
- <!--<nobr>收费日期</nobr>-->
146
- <data-order field="f_operate_date" name="收费日期" :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
147
- </th>
148
- <th>
149
- <nobr>付款方式</nobr>
150
- </th>
151
- <th>
152
- <nobr>收费类型</nobr>
153
- </th>
154
- <th>
155
- <nobr>备注</nobr>
156
- </th>
157
- <th>
158
- <nobr>收费人</nobr>
159
- </th>
160
- <th>
161
- <nobr>部门</nobr>
162
- </th>
163
- <th>
164
- <nobr>公司</nobr>
165
- </th>
166
- <th>
167
- <nobr>操作</nobr>
168
- </th>
169
- </tr>
170
- </template>
171
- <template partial='body'>
172
- <td style="text-align: center;">
173
- <nobr>{{row.id}}</nobr>
174
- </td>
175
- <td style="text-align: center;">
176
- <nobr>{{row.f_user_name}}</nobr>
177
- </td>
178
- <td style="text-align: center;">
179
- <nobr>{{row.f_user_type}}</nobr>
180
- </td>
181
- <td style="text-align: center;">
182
- <nobr>{{row.f_address}}</nobr>
183
- </td>
184
- <td style="text-align: center;">
185
- <nobr>{{row.f_pregas}}</nobr>
186
- </td>
187
- <td style="text-align: center;">
188
- <nobr>{{row.f_preamount}}</nobr>
189
- </td>
190
- <!-- <td style="text-align: center;">-->
191
- <!-- <nobr>{{row.f_delay}}</nobr>-->
192
- <!-- </td>-->
193
- <!-- <td style="text-align: center;">-->
194
- <!-- <nobr>{{row.f_delaypay}}</nobr>-->
195
- <!-- </td>-->
196
- <td style="text-align: center;">
197
- <nobr>{{row.f_balance}}</nobr>
198
- </td>
199
- <td style="text-align: center;">
200
- <nobr>{{row.f_curbalance}}</nobr>
201
- </td>
202
- <td style="text-align: center;">
203
- <nobr>{{row.f_newbalance}}</nobr>
204
- </td>
205
- <td style="text-align: center;">
206
- <nobr>{{row.f_newcurbalance}}</nobr>
207
- </td>
208
- <td style="text-align: center;">
209
- <nobr>{{row.f_collection}}</nobr>
210
- </td>
211
- <td style="text-align: center;">
212
- <nobr>{{row.f_state}}</nobr>
213
- </td>
214
- <td style="text-align: center;">
215
- <nobr>{{row.f_operate_date}}</nobr>
216
- </td>
217
- <td style="text-align: center;">
218
- <nobr>{{row.f_payment}}</nobr>
219
- </td>
220
- <td style="text-align: center;">
221
- <nobr>{{row.f_type}}</nobr>
222
- </td>
223
- <td style="text-align: center;">
224
- <nobr>{{row.f_comments}}</nobr>
225
- </td>
226
- <td style="text-align: center;">
227
- <nobr>{{row.f_operator}}</nobr>
228
- </td>
229
- <td style="text-align: center;">
230
- <nobr>{{row.f_orgname}}</nobr>
231
- </td>
232
- <td style="text-align: center;">
233
- <nobr>{{row.f_depname}}</nobr>
234
- </td>
235
- <td style="text-align: center;">
236
- <button class="btn btn-link" @click.stop="$parent.$parent.$parent.showchargedetail(row)">查看</button>
237
- </td>
238
- </template>
239
- <template partial='foot'></template>
240
- </data-grid>
241
- </criteria-paged>
242
- <table class="table-hover">
243
- <tr style="position: relative" class="table-bordered">
244
- <td
245
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
246
- 汇总信息
247
- </td>
248
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
249
- 气量合计:&emsp;{{sumsmodel.f_pregas}}
250
- </td>
251
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
252
- 燃气费合计:&emsp;{{sumsmodel.f_preamount}}
253
- </td>
254
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
255
- 收款合计:&emsp;{{sumsmodel.f_collection}}
256
- </td>
257
- </tr>
258
- </table>
259
- </div>
260
- </div>
261
- </div>
262
- <modal :show.sync="showdetail" width="80%" title="详细记录" v-ref:modal large backdrop="false">
263
- <article slot="modal-body" class="modal-body" style="height: 700px">
264
- <charge-query :batchid="f_batch_id" :data="data" v-if="showdetail"></charge-query>
265
- </article>
266
- <footer slot="modal-footer" class="modal-footer">
267
- </footer>
268
- </modal>
269
- </template>
270
-
271
- <script>
272
- import {PagedList} from 'vue-client'
273
- import exportConfig from '../config/exportConfig'
274
- let readySomething = async function (self) {
275
- //加载抄表册
276
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
277
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
278
- self.$refs.paged.$refs.cri.search()
279
- await self.$MagLoadParams.loadParam()
280
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
281
- }
282
- export default {
283
- props:['data'],
284
- title: '团缴查询',
285
- data() {
286
- return {
287
- f_batch_id: null,
288
- showdetail: false,
289
- isSingleUser: null,
290
- startDate1:'',
291
- endDate1:'',
292
- other:[],
293
- footer:[],
294
- config: {
295
- defaultPrint: ['f_user_name', 'f_pregas', 'f_collection', 'f_operate_date']
296
- },
297
- //排序
298
- orderitem:'f_operate_date desc',
299
- orderFields: {
300
- f_operate_date: 'no'
301
- },
302
- //f_price_name:[],
303
- gasproperties:[],
304
- showinfo: false,
305
- data: {},
306
- getstart:'',
307
- show:false,
308
- chargetype: [{label: '团体收费', value: '团体收费'}, {label: '团体退费', value: '团体退费'}],
309
- rowdata:{},
310
- initres: {
311
- org:[this.$login.f.orgid],
312
- dep:[],
313
- user:[]
314
- },
315
- model: new PagedList('rs/sql/groupChargeQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`},{
316
- f_pregas: 0,
317
- f_preamount: 0,
318
- f_collection: 0,
319
- }),
320
- criteriaShow: false,
321
- orgCondtionStr: '',
322
- area: [],
323
- sumsmodel: {},
324
- f_filialeid: this.$login.f.orgid,
325
- selected:{},
326
- showbottomsum:false //页面下方是否有合计: 默认为false, 在watch修改
327
- }
328
- },
329
- ready() {
330
- this.$refs.paged.$refs.cri.model.f_state=['有效']
331
- readySomething(this).then(() => {
332
- this.$emit('ready')
333
- }).catch((error) => {
334
- this.$emit('error', error)
335
- })
336
- },
337
- methods: {
338
- showchargedetail(row){
339
- this.showdetail = true
340
- this.f_batch_id = row.id
341
- },
342
- getotherfooter () {
343
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
344
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
345
- this.other = [];
346
- this.footer = [];
347
- let exportdata = this.getCondition;
348
- let otherInData = [];
349
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
350
- let footerData = [], exportfield = this.getfield;
351
- footerData.push("合计");
352
- let self = this;
353
- for (var field in self.sumsmodel) {
354
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
355
- }
356
- this.footer.push(footerData);
357
- this.other.push(otherInData);
358
- },
359
- search(){
360
- this.$refs.paged.$refs.cri.search()
361
- },
362
- selfSearch(args) {
363
- if (this.data) {
364
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
365
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
366
- }
367
-
368
- let f_orgstr = this.orgCondtionStr
369
- args.condition = `${args.condition} ` + f_orgstr
370
- this.model.search(args.condition, args.model)
371
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
372
- },
373
- clear() {
374
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
375
- this.$refs.paged.$refs.cri.model[key] = []
376
- })
377
- },
378
- dealmsg(val,startDate,endDate) {
379
- val.model = this.model.model
380
- startDate=this.startDate1
381
- endDate=this.endDate1
382
- this.$dispatch('deal-msg', val,startDate,endDate)
383
- },
384
- show() {
385
- this.criteriaShow = true
386
- },
387
- hidden() {
388
- this.criteriaShow = !this.criteriaShow
389
- },
390
- async getRes(condition,obj) {
391
- this.orgCondtionStr = condition
392
- this.orgname = obj.orgnames[0]
393
- this.depname = obj.depnames[0]
394
- this.operatorname = this.userresid.filter(x => obj.operatornames.includes(x.value)).map(x=>x.label).toString()
395
- },
396
- sort (field, rule) {
397
- // 将所有排序方式设为不排序,实现相互排斥
398
- for (let key in this.orderFields) {
399
- if (key === field) {
400
- this.orderFields[key] = rule
401
- } else {
402
- this.orderFields[key] = 'no'
403
- }
404
- }
405
- // 如果新规则不排序,还原为默认排序
406
- if (rule === 'no') {
407
- this.model.paramSource.orderitem = `'${this.orderitem}'`
408
- } else {
409
- this.model.paramSource.orderitem = `'${field} ${rule}'`
410
- }
411
-
412
- this.search()
413
- }
414
-
415
- },
416
- watch: {
417
- 'model.rows'(val) {
418
- //如果有合计 这里为true, 其他为false ,反正相反
419
- this.showbottomsum=true;
420
- if(val.length === 0){
421
- this.sumsmodel = {}
422
- this.showbottomsum=false;
423
- }
424
- },
425
- 'model.rows.length' () {
426
- this.isSingleUser = this.model.rows
427
- },
428
- sumsmodel:{
429
- handler: function(val) {
430
- this.getotherfooter();
431
- },
432
- deep: true
433
- }
434
- },
435
- computed: {
436
- getstart(){
437
- return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
438
- },
439
- chooserow(){
440
- let aaa= true
441
- if(this.$login.r && this.$login.r.includes('打印项选择')){
442
- aaa = false
443
- }
444
- return aaa
445
- },
446
- getCondition() {
447
- return {
448
- startDate: this.$refs.paged.$refs.cri.model.startDate,
449
- endDate: this.$refs.paged.$refs.cri.model.endDate,
450
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
451
- orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc",
452
- items: "*",
453
- tablename: "t_sellinggasbatch"
454
- }
455
- },
456
- getfield() {
457
- return exportConfig.GroupCharge
458
- },
459
- defaultexport() {
460
- return exportConfig.GroupCharge
461
- },
462
- usertypes() {
463
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
464
- },
465
- payment() {
466
- return [...this.$appdata.getParam('付款方式')]
467
- },
468
- banktype() {
469
- return [...this.$appdata.getParam('支付渠道查询')]
470
- },
471
- charge_state() {
472
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
473
- },
474
- bank(){
475
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('银行名称')]
476
- }
477
- }
478
- }
479
- </script>
480
- <style scoped>
481
- </style>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" :class="{showbottom:showbottomsum}" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <res-select-group :show-component="['company','department']" :selectin="true" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
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="span" style="float:right;">
31
+ <button class="button_search button_spacing" @click="search()">查询</button>
32
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
33
+
34
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
35
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
36
+ :defaultselect="$parent.$parent.defaultexport"
37
+ sqlurl="rs/logic/exportfile" sql-name="groupChargeQuery" template-name='团缴查询导出'
38
+ :choose-col="true">
39
+ </export-excel>
40
+
41
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
42
+ :defaultfield="$parent.$parent.config.defaultPrint"
43
+ titletable="团体缴费记录报表" :starthead="$parent.$parent.getstart"
44
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
45
+ <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>
46
+
47
+ </div>
48
+ </div>
49
+ <div class="row" v-show="$parent.$parent.criteriaShow">
50
+ <div class="col-sm-2 form-group">
51
+ <label class="font_normal_body">客户名称</label>
52
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
53
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
54
+ </div>
55
+ <div class="col-sm-2 form-group">
56
+ <label class="font_normal_body">客户类型</label>
57
+ <v-select :value.sync="model.f_user_type"
58
+ :search="false"
59
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
60
+ condition="f_user_type = '{}'"
61
+ close-on-select></v-select>
62
+ </div>
63
+ <div class="col-sm-2 form-group">
64
+ <label class="font_normal_body">客户地址</label>
65
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
66
+ condition="f_address like '%{}%'" placeholder='客户地址'>
67
+ </div>
68
+ <div class="col-sm-2 form-group">
69
+ <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
70
+ <v-select :value.sync="model.f_payment" multiple
71
+ v-model="model.f_payment"
72
+ :options='$parent.$parent.payment' placeholder='请选择'
73
+ condition="f_payment in {}"
74
+ close-on-select></v-select>
75
+ </div>
76
+ <div class="col-sm-2 form-group">
77
+ <label class="font_normal_body">收费类型</label>
78
+ <v-select :value.sync="model.f_type" multiple
79
+ :search="false"
80
+ :options='$parent.$parent.chargetype' placeholder='请选择'
81
+ close-on-select clear-button
82
+ condition="f_type in {}"
83
+ v-model="model.f_type"></v-select>
84
+ </div>
85
+ <div class="col-sm-2 form-group">
86
+ <label class="font_normal_body">收费状态</label>
87
+ <v-select :value.sync="model.f_state" multiple
88
+ :search="false"
89
+ v-model="model.f_state"
90
+ :options='$parent.$parent.charge_state' placeholder='请选择'
91
+ condition="f_state in {}"
92
+ close-on-select></v-select>
93
+ </div>
94
+ </div>
95
+ </div>
96
+ </criteria>
97
+
98
+ <data-grid :model="model" partial='list' class="list_area table_sy" style="height: 95%" v-ref:grid>
99
+ <template partial='head'>
100
+ <tr>
101
+ <th>
102
+ <nobr>收费编号</nobr>
103
+ </th>
104
+ <th>
105
+ <nobr>客户姓名</nobr>
106
+ </th>
107
+ <th>
108
+ <nobr>客户类型</nobr>
109
+ </th>
110
+ <th>
111
+ <!--<nobr>客户地址</nobr>-->
112
+ <data-order field="f_address" name="客户地址" :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
113
+ </th>
114
+ <th>
115
+ <nobr>气量</nobr>
116
+ </th>
117
+ <th>
118
+ <nobr>气费</nobr>
119
+ </th>
120
+ <!-- <th>-->
121
+ <!-- <nobr>应交违约金</nobr>-->
122
+ <!-- </th>-->
123
+ <!-- <th>-->
124
+ <!-- <nobr>实交违约金</nobr>-->
125
+ <!-- </th>-->
126
+ <th>
127
+ <nobr>上期余额</nobr>
128
+ </th>
129
+ <th>
130
+ <nobr>本期余额</nobr>
131
+ </th>
132
+ <th>
133
+ <nobr>账户支出</nobr>
134
+ </th>
135
+ <th>
136
+ <nobr>账户存入</nobr>
137
+ </th>
138
+ <th>
139
+ <nobr>收款</nobr>
140
+ </th>
141
+ <th>
142
+ <nobr>收费状态</nobr>
143
+ </th>
144
+ <th>
145
+ <!--<nobr>收费日期</nobr>-->
146
+ <data-order field="f_operate_date" name="收费日期" :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
147
+ </th>
148
+ <th>
149
+ <nobr>付款方式</nobr>
150
+ </th>
151
+ <th>
152
+ <nobr>收费类型</nobr>
153
+ </th>
154
+ <th>
155
+ <nobr>备注</nobr>
156
+ </th>
157
+ <th>
158
+ <nobr>收费人</nobr>
159
+ </th>
160
+ <th>
161
+ <nobr>部门</nobr>
162
+ </th>
163
+ <th>
164
+ <nobr>公司</nobr>
165
+ </th>
166
+ <th>
167
+ <nobr>操作</nobr>
168
+ </th>
169
+ </tr>
170
+ </template>
171
+ <template partial='body'>
172
+ <td style="text-align: center;">
173
+ <nobr>{{row.id}}</nobr>
174
+ </td>
175
+ <td style="text-align: center;">
176
+ <nobr>{{row.f_user_name}}</nobr>
177
+ </td>
178
+ <td style="text-align: center;">
179
+ <nobr>{{row.f_user_type}}</nobr>
180
+ </td>
181
+ <td style="text-align: center;">
182
+ <nobr>{{row.f_address}}</nobr>
183
+ </td>
184
+ <td style="text-align: center;">
185
+ <nobr>{{row.f_pregas}}</nobr>
186
+ </td>
187
+ <td style="text-align: center;">
188
+ <nobr>{{row.f_preamount}}</nobr>
189
+ </td>
190
+ <!-- <td style="text-align: center;">-->
191
+ <!-- <nobr>{{row.f_delay}}</nobr>-->
192
+ <!-- </td>-->
193
+ <!-- <td style="text-align: center;">-->
194
+ <!-- <nobr>{{row.f_delaypay}}</nobr>-->
195
+ <!-- </td>-->
196
+ <td style="text-align: center;">
197
+ <nobr>{{row.f_balance}}</nobr>
198
+ </td>
199
+ <td style="text-align: center;">
200
+ <nobr>{{row.f_curbalance}}</nobr>
201
+ </td>
202
+ <td style="text-align: center;">
203
+ <nobr>{{row.f_newbalance}}</nobr>
204
+ </td>
205
+ <td style="text-align: center;">
206
+ <nobr>{{row.f_newcurbalance}}</nobr>
207
+ </td>
208
+ <td style="text-align: center;">
209
+ <nobr>{{row.f_collection}}</nobr>
210
+ </td>
211
+ <td style="text-align: center;">
212
+ <nobr>{{row.f_state}}</nobr>
213
+ </td>
214
+ <td style="text-align: center;">
215
+ <nobr>{{row.f_operate_date}}</nobr>
216
+ </td>
217
+ <td style="text-align: center;">
218
+ <nobr>{{row.f_payment}}</nobr>
219
+ </td>
220
+ <td style="text-align: center;">
221
+ <nobr>{{row.f_type}}</nobr>
222
+ </td>
223
+ <td style="text-align: center;">
224
+ <nobr>{{row.f_comments}}</nobr>
225
+ </td>
226
+ <td style="text-align: center;">
227
+ <nobr>{{row.f_operator}}</nobr>
228
+ </td>
229
+ <td style="text-align: center;">
230
+ <nobr>{{row.f_orgname}}</nobr>
231
+ </td>
232
+ <td style="text-align: center;">
233
+ <nobr>{{row.f_depname}}</nobr>
234
+ </td>
235
+ <td style="text-align: center;">
236
+ <button class="btn btn-link" @click.stop="$parent.$parent.$parent.showchargedetail(row)">查看</button>
237
+ </td>
238
+ </template>
239
+ <template partial='foot'></template>
240
+ </data-grid>
241
+ </criteria-paged>
242
+ <table class="table-hover">
243
+ <tr style="position: relative" class="table-bordered">
244
+ <td
245
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
246
+ 汇总信息
247
+ </td>
248
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
249
+ 气量合计:&emsp;{{sumsmodel.f_pregas}}
250
+ </td>
251
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
252
+ 燃气费合计:&emsp;{{sumsmodel.f_preamount}}
253
+ </td>
254
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
255
+ 收款合计:&emsp;{{sumsmodel.f_collection}}
256
+ </td>
257
+ </tr>
258
+ </table>
259
+ </div>
260
+ </div>
261
+ </div>
262
+ <modal :show.sync="showdetail" width="80%" title="详细记录" v-ref:modal large backdrop="false">
263
+ <article slot="modal-body" class="modal-body" style="height: 700px">
264
+ <charge-query :batchid="f_batch_id" :data="data" v-if="showdetail"></charge-query>
265
+ </article>
266
+ <footer slot="modal-footer" class="modal-footer">
267
+ </footer>
268
+ </modal>
269
+ </template>
270
+
271
+ <script>
272
+ import {PagedList} from 'vue-client'
273
+ import exportConfig from '../config/exportConfig'
274
+ let readySomething = async function (self) {
275
+ //加载抄表册
276
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
277
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
278
+ self.$refs.paged.$refs.cri.search()
279
+ await self.$MagLoadParams.loadParam()
280
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
281
+ }
282
+ export default {
283
+ props:['data'],
284
+ title: '团缴查询',
285
+ data() {
286
+ return {
287
+ f_batch_id: null,
288
+ showdetail: false,
289
+ isSingleUser: null,
290
+ startDate1:'',
291
+ endDate1:'',
292
+ other:[],
293
+ footer:[],
294
+ config: {
295
+ defaultPrint: ['f_user_name', 'f_pregas', 'f_collection', 'f_operate_date']
296
+ },
297
+ //排序
298
+ orderitem:'f_operate_date desc',
299
+ orderFields: {
300
+ f_operate_date: 'no'
301
+ },
302
+ //f_price_name:[],
303
+ gasproperties:[],
304
+ showinfo: false,
305
+ data: {},
306
+ getstart:'',
307
+ show:false,
308
+ chargetype: [{label: '团体收费', value: '团体收费'}, {label: '团体退费', value: '团体退费'}],
309
+ rowdata:{},
310
+ initres: {
311
+ org:[this.$login.f.orgid],
312
+ dep:[],
313
+ user:[]
314
+ },
315
+ model: new PagedList('rs/sql/groupChargeQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`},{
316
+ f_pregas: 0,
317
+ f_preamount: 0,
318
+ f_collection: 0,
319
+ }),
320
+ criteriaShow: false,
321
+ orgCondtionStr: '',
322
+ area: [],
323
+ sumsmodel: {},
324
+ f_filialeid: this.$login.f.orgid,
325
+ selected:{},
326
+ showbottomsum:false //页面下方是否有合计: 默认为false, 在watch修改
327
+ }
328
+ },
329
+ ready() {
330
+ this.$refs.paged.$refs.cri.model.f_state=['有效']
331
+ readySomething(this).then(() => {
332
+ this.$emit('ready')
333
+ }).catch((error) => {
334
+ this.$emit('error', error)
335
+ })
336
+ },
337
+ methods: {
338
+ showchargedetail(row){
339
+ this.showdetail = true
340
+ this.f_batch_id = row.id
341
+ },
342
+ getotherfooter () {
343
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
344
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
345
+ this.other = [];
346
+ this.footer = [];
347
+ let exportdata = this.getCondition;
348
+ let otherInData = [];
349
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
350
+ let footerData = [], exportfield = this.getfield;
351
+ footerData.push("合计");
352
+ let self = this;
353
+ for (var field in self.sumsmodel) {
354
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
355
+ }
356
+ this.footer.push(footerData);
357
+ this.other.push(otherInData);
358
+ },
359
+ search(){
360
+ this.$refs.paged.$refs.cri.search()
361
+ },
362
+ selfSearch(args) {
363
+ if (this.data) {
364
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
365
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
366
+ }
367
+
368
+ let f_orgstr = this.orgCondtionStr
369
+ args.condition = `${args.condition} ` + f_orgstr
370
+ this.model.search(args.condition, args.model)
371
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
372
+ },
373
+ clear() {
374
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
375
+ this.$refs.paged.$refs.cri.model[key] = []
376
+ })
377
+ },
378
+ dealmsg(val,startDate,endDate) {
379
+ val.model = this.model.model
380
+ startDate=this.startDate1
381
+ endDate=this.endDate1
382
+ this.$dispatch('deal-msg', val,startDate,endDate)
383
+ },
384
+ show() {
385
+ this.criteriaShow = true
386
+ },
387
+ hidden() {
388
+ this.criteriaShow = !this.criteriaShow
389
+ },
390
+ async getRes(condition,obj) {
391
+ this.orgCondtionStr = condition
392
+ this.orgname = obj.orgnames[0]
393
+ this.depname = obj.depnames[0]
394
+ this.operatorname = this.userresid.filter(x => obj.operatornames.includes(x.value)).map(x=>x.label).toString()
395
+ },
396
+ sort (field, rule) {
397
+ // 将所有排序方式设为不排序,实现相互排斥
398
+ for (let key in this.orderFields) {
399
+ if (key === field) {
400
+ this.orderFields[key] = rule
401
+ } else {
402
+ this.orderFields[key] = 'no'
403
+ }
404
+ }
405
+ // 如果新规则不排序,还原为默认排序
406
+ if (rule === 'no') {
407
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
408
+ } else {
409
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
410
+ }
411
+
412
+ this.search()
413
+ }
414
+
415
+ },
416
+ watch: {
417
+ 'model.rows'(val) {
418
+ //如果有合计 这里为true, 其他为false ,反正相反
419
+ this.showbottomsum=true;
420
+ if(val.length === 0){
421
+ this.sumsmodel = {}
422
+ this.showbottomsum=false;
423
+ }
424
+ },
425
+ 'model.rows.length' () {
426
+ this.isSingleUser = this.model.rows
427
+ },
428
+ sumsmodel:{
429
+ handler: function(val) {
430
+ this.getotherfooter();
431
+ },
432
+ deep: true
433
+ }
434
+ },
435
+ computed: {
436
+ getstart(){
437
+ return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
438
+ },
439
+ chooserow(){
440
+ let aaa= true
441
+ if(this.$login.r && this.$login.r.includes('打印项选择')){
442
+ aaa = false
443
+ }
444
+ return aaa
445
+ },
446
+ getCondition() {
447
+ return {
448
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
449
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
450
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
451
+ orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc",
452
+ items: "*",
453
+ tablename: "t_sellinggasbatch"
454
+ }
455
+ },
456
+ getfield() {
457
+ return exportConfig.GroupCharge
458
+ },
459
+ defaultexport() {
460
+ return exportConfig.GroupCharge
461
+ },
462
+ usertypes() {
463
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
464
+ },
465
+ payment() {
466
+ return [...this.$appdata.getParam('付款方式')]
467
+ },
468
+ banktype() {
469
+ return [...this.$appdata.getParam('支付渠道查询')]
470
+ },
471
+ charge_state() {
472
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
473
+ },
474
+ bank(){
475
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('银行名称')]
476
+ }
477
+ }
478
+ }
479
+ </script>
480
+ <style scoped>
481
+ </style>