manage-client 3.2.196 → 3.2.198

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.
@@ -3,10 +3,11 @@
3
3
  <div class="basic-main" @keyup.enter="search">
4
4
  <div class="flex" v-if="!show">
5
5
  <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
7
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
8
  <div class="row">
9
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
9
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"
10
+ v-ref:sel></res-select-group>
10
11
 
11
12
  <div class="span" style="float:right;">
12
13
  <button class="button_search button_spacing" @click="search()">查询</button>
@@ -21,12 +22,13 @@
21
22
  template-name='用户欠费查询导出'
22
23
  :choose-col="true"></export-excel>
23
24
 
24
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
25
- :defaultfield="$parent.$parent.defaultfield"
25
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model"
26
+ :field="$parent.$parent.getfield"
27
+ :defaultfield="$parent.$parent.defaultfield"
26
28
  titletable="用户欠费查询导出"
27
29
  :sumsmodel="$parent.$parent.sumsmodel"></print-data>
28
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
29
- 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
30
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
31
+ 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
30
32
 
31
33
  </div>
32
34
  </div>
@@ -88,9 +90,9 @@
88
90
  </div>
89
91
 
90
92
  <!--<div class="col-sm-2 form-group">-->
91
- <!--<label class="font_normal_body">收费编号</label>-->
92
- <!--<input type="text" style="width:60%" class="input_search" v-model="model.id"-->
93
- <!--condition="id = '{}'" placeholder="收费编号">-->
93
+ <!--<label class="font_normal_body">收费编号</label>-->
94
+ <!--<input type="text" style="width:60%" class="input_search" v-model="model.id"-->
95
+ <!--condition="id = '{}'" placeholder="收费编号">-->
94
96
  <!--</div>-->
95
97
  <div class="col-sm-2 form-group">
96
98
  <label class="font_normal_body">客户电话</label>
@@ -98,9 +100,9 @@
98
100
  condition="f_user_phone like '%{}%'" placeholder="客户电话">
99
101
  </div>
100
102
  <!--<div class="col-sm-2 form-group">-->
101
- <!--<label class="font_normal_body">身份证号</label>-->
102
- <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"-->
103
- <!--condition="f_idnumber like '%{}%'" placeholder="身份证号">-->
103
+ <!--<label class="font_normal_body">身份证号</label>-->
104
+ <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"-->
105
+ <!--condition="f_idnumber like '%{}%'" placeholder="身份证号">-->
104
106
  <!--</div>-->
105
107
  <div class="col-sm-2 form-group">
106
108
  <label class="font_normal_body">客户地址</label>
@@ -122,7 +124,7 @@
122
124
  </v-select>
123
125
  </div>
124
126
  <div class="col-sm-2 form-group">
125
- <label class="font_normal_body" >缴费类型</label>
127
+ <label class="font_normal_body">缴费类型</label>
126
128
  <v-select :value.sync="model.f_payment" multiple
127
129
  v-model="model.f_payment"
128
130
  :options='$parent.$parent.dypayment' placeholder='请选择'
@@ -130,25 +132,25 @@
130
132
  close-on-select></v-select>
131
133
  </div>
132
134
  <!--<div class="col-sm-2 form-group">-->
133
- <!--<label class="font_normal_body" title="参数:付款方式查询">付款方式</label>-->
134
- <!--<v-select :value.sync="model.f_payment" multiple-->
135
- <!--v-model="model.f_payment"-->
136
- <!--:options='$parent.$parent.payment' placeholder='请选择'-->
137
- <!--condition="f_payment in {}"-->
138
- <!--close-on-select></v-select>-->
135
+ <!--<label class="font_normal_body" title="参数:付款方式查询">付款方式</label>-->
136
+ <!--<v-select :value.sync="model.f_payment" multiple-->
137
+ <!--v-model="model.f_payment"-->
138
+ <!--:options='$parent.$parent.payment' placeholder='请选择'-->
139
+ <!--condition="f_payment in {}"-->
140
+ <!--close-on-select></v-select>-->
139
141
  <!--</div>-->
140
142
  <!--<div class="col-sm-2 form-group">-->
141
- <!--<label class="font_normal_body">收费类型</label>-->
142
- <!--&lt;!&ndash; <v-select :value.sync="model.f_type"-->
143
- <!--v-model="model.f_type"-->
144
- <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
145
- <!--condition="f_type = '{}'"-->
146
- <!--close-on-select></v-select>&ndash;&gt;-->
147
- <!--<v-select :value.sync="model.f_type" multiple-->
148
- <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
149
- <!--close-on-select clear-button-->
150
- <!--condition="f_type in {}"-->
151
- <!--v-model="model.f_type"></v-select>-->
143
+ <!--<label class="font_normal_body">收费类型</label>-->
144
+ <!--&lt;!&ndash; <v-select :value.sync="model.f_type"-->
145
+ <!--v-model="model.f_type"-->
146
+ <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
147
+ <!--condition="f_type = '{}'"-->
148
+ <!--close-on-select></v-select>&ndash;&gt;-->
149
+ <!--<v-select :value.sync="model.f_type" multiple-->
150
+ <!--:options='$parent.$parent.chargetype' placeholder='请选择'-->
151
+ <!--close-on-select clear-button-->
152
+ <!--condition="f_type in {}"-->
153
+ <!--v-model="model.f_type"></v-select>-->
152
154
  <!--</div>-->
153
155
  <div class="col-sm-2 form-group">
154
156
  <label class="font_normal_body">客户类型</label>
@@ -201,7 +203,7 @@
201
203
  condition="c > '{}'" placeholder='欠费期数大于'>
202
204
  </div>
203
205
  <div class="col-sm-2 form-group">
204
- <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
206
+ <label class="font_normal_body">抄&nbsp;&nbsp;表&nbsp;员</label>
205
207
  <v-select :value.sync="model.f_inputtor"
206
208
  v-model="model.f_inputtor"
207
209
  :options='$parent.$parent.inputtores' placeholder='请选择'
@@ -219,24 +221,24 @@
219
221
  condition="f_meter_book_num = '{}'"></v-select>
220
222
  </div>
221
223
  <!--<div class="col-sm-2 form-group">-->
222
- <!--<label class="font_normal_body">气价类型</label>-->
223
- <!--<v-select :value.sync="model.pricetype" v-model="model.pricetype"-->
224
- <!--placeholder='气价类型' :options="$parent.$parent.pricetypes"-->
225
- <!--close-on-select v-ref:type>-->
226
- <!--</v-select>-->
224
+ <!--<label class="font_normal_body">气价类型</label>-->
225
+ <!--<v-select :value.sync="model.pricetype" v-model="model.pricetype"-->
226
+ <!--placeholder='气价类型' :options="$parent.$parent.pricetypes"-->
227
+ <!--close-on-select v-ref:type>-->
228
+ <!--</v-select>-->
227
229
  <!--</div>-->
228
230
  <!--<div class="col-sm-2 form-group">-->
229
- <!--<label class="font_normal_body">气价名称</label>-->
230
- <!--<v-select :value.sync="model.f_price_name"-->
231
- <!--v-model="model.f_price_name"-->
232
- <!--:options="$parent.$parent.getPricenames"-->
233
- <!--condition="f_price_name = '{}'"-->
234
- <!--close-on-select></v-select>-->
231
+ <!--<label class="font_normal_body">气价名称</label>-->
232
+ <!--<v-select :value.sync="model.f_price_name"-->
233
+ <!--v-model="model.f_price_name"-->
234
+ <!--:options="$parent.$parent.getPricenames"-->
235
+ <!--condition="f_price_name = '{}'"-->
236
+ <!--close-on-select></v-select>-->
235
237
  <!--</div>-->
236
238
  <!--<div class="col-sm-2 form-group">-->
237
- <!--<label class="font_normal_body">&nbsp;&nbsp;&nbsp;表编号</label>-->
238
- <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_user_id"-->
239
- <!--condition="f_user_id = '{}'" placeholder='表编号'>-->
239
+ <!--<label class="font_normal_body">&nbsp;&nbsp;&nbsp;表编号</label>-->
240
+ <!--<input type="text" style="width:60%" class="input_search" v-model="model.f_user_id"-->
241
+ <!--condition="f_user_id = '{}'" placeholder='表编号'>-->
240
242
  <!--</div>-->
241
243
  </div>
242
244
  </div>
@@ -290,7 +292,7 @@
290
292
  <nobr>已交金额</nobr>
291
293
  </th>
292
294
  <!--<th>-->
293
- <!--<nobr>回收率</nobr>-->
295
+ <!--<nobr>回收率</nobr>-->
294
296
  <!--</th>-->
295
297
  <th>
296
298
  <nobr>应交气费</nobr>
@@ -326,80 +328,80 @@
326
328
  </template>
327
329
  <template partial='body'>
328
330
  <td style="text-align:center">
329
- <nobr>{{$index+1}}</nobr>
331
+ <nobr>{{ $index + 1 }}</nobr>
330
332
  </td>
331
333
  <td style="text-align: center;">
332
- <nobr>{{row.f_userinfo_code}}</nobr>
334
+ <nobr>{{ row.f_userinfo_code }}</nobr>
333
335
  </td>
334
336
  <td style="text-align: center;">
335
- <nobr>{{row.f_user_name}}</nobr>
337
+ <nobr>{{ row.f_user_name }}</nobr>
336
338
  </td>
337
339
  <td style="text-align: center;">
338
- <nobr>{{row.f_residential_area}}</nobr>
340
+ <nobr>{{ row.f_residential_area }}</nobr>
339
341
  </td>
340
342
  <td style="text-align: center;">
341
- <nobr>{{row.f_address}}</nobr>
343
+ <nobr>{{ row.f_address }}</nobr>
342
344
  </td>
343
345
  <td style="text-align: center;">
344
- <nobr>{{row.f_user_phone}}</nobr>
346
+ <nobr>{{ row.f_user_phone }}</nobr>
345
347
  </td>
346
348
  <td style="text-align: center;">
347
- <nobr>{{row.f_rent_phone}}</nobr>
349
+ <nobr>{{ row.f_rent_phone }}</nobr>
348
350
  </td>
349
351
 
350
352
  <td style="text-align: center;">
351
- <nobr>{{row.c}}</nobr>
353
+ <nobr>{{ row.c }}</nobr>
352
354
  </td>
353
355
  <td style="text-align: center;">
354
- <nobr>{{row.f_hand_date}}</nobr>
356
+ <nobr>{{ row.f_hand_date }}</nobr>
355
357
  </td>
356
358
  <td style="text-align: center;">
357
- <nobr>{{row.f_last_tablebase}}</nobr>
359
+ <nobr>{{ row.f_last_tablebase }}</nobr>
358
360
  </td>
359
361
  <td style="text-align: center;">
360
- <nobr>{{row.f_tablebase}}</nobr>
362
+ <nobr>{{ row.f_tablebase }}</nobr>
361
363
  </td>
362
364
  <td style="text-align: center;">
363
- <nobr>{{row.f_oughtamount}}</nobr>
365
+ <nobr>{{ row.f_oughtamount }}</nobr>
364
366
  </td>
365
367
  <td style="text-align: center;">
366
- <nobr>{{row.f_oughtfee}}</nobr>
368
+ <nobr>{{ row.f_oughtfee }}</nobr>
367
369
  </td>
368
370
  <td style="text-align: center;">
369
- <nobr>{{row.f_debt_money}}</nobr>
371
+ <nobr>{{ row.f_debt_money }}</nobr>
370
372
  </td>
371
373
  <!--<td style="text-align: center;">-->
372
- <!--<nobr>{{row.f_hand_bv}}</nobr>-->
374
+ <!--<nobr>{{row.f_hand_bv}}</nobr>-->
373
375
  <!--</td>-->
374
376
  <td style="text-align: center;">
375
- <nobr>{{row.f_oughtfee_new}}</nobr>
377
+ <nobr>{{ row.f_oughtfee_new }}</nobr>
376
378
  </td>
377
379
  <td style="text-align: center;">
378
- <nobr>{{row.overdue}}</nobr>
380
+ <nobr>{{ row.overdue }}</nobr>
379
381
  </td>
380
382
  <td style="text-align: center;">
381
- <nobr>{{row.f_garbage_fee}}</nobr>
383
+ <nobr>{{ row.f_garbage_fee }}</nobr>
382
384
  </td>
383
385
  <td style="text-align: center;">
384
- <nobr>{{row.f_oughtfee_all}}</nobr>
386
+ <nobr>{{ row.f_oughtfee_all }}</nobr>
385
387
  </td>
386
388
  <td style="text-align: center;">
387
- <nobr>{{row.f_inputtor}}</nobr>
389
+ <nobr>{{ row.f_inputtor }}</nobr>
388
390
  </td>
389
391
  <td style="text-align: center;">
390
- <nobr>{{row.f_book_name}}</nobr>
392
+ <nobr>{{ row.f_book_name }}</nobr>
391
393
  </td>
392
394
  <td style="text-align: center;">
393
- <nobr>{{row.f_user_type}}</nobr>
395
+ <nobr>{{ row.f_user_type }}</nobr>
394
396
  </td>
395
397
  <td style="text-align: center;">
396
- <nobr>{{row.f_gasproperties}}</nobr>
398
+ <nobr>{{ row.f_gasproperties }}</nobr>
397
399
  </td>
398
400
  <td style="text-align: center;">
399
- <nobr>{{row.f_cost_type}}</nobr>
401
+ <nobr>{{ row.f_cost_type }}</nobr>
400
402
  </td>
401
403
  <td style="text-align: center;">
402
- <nobr>{{row.f_comments}}</nobr>
404
+ <nobr>{{ row.f_comments }}</nobr>
403
405
  </td>
404
406
  </template>
405
407
  <template partial='foot'></template>
@@ -411,399 +413,416 @@
411
413
  style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
412
414
  汇总信息
413
415
  </td>
414
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
415
- 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
416
+ <td
417
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
418
+ 用气量合计:&emsp;{{ sumsmodel.f_oughtamount }}
416
419
  </td>
417
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
418
- 用气金额合计:&emsp;{{sumsmodel.f_oughtfee}}
420
+ <td
421
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
422
+ 用气金额合计:&emsp;{{ sumsmodel.f_oughtfee }}
419
423
  </td>
420
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
421
- 已交金额合计:&emsp;{{sumsmodel.f_debt_money}}
424
+ <td
425
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
426
+ 已交金额合计:&emsp;{{ sumsmodel.f_debt_money }}
422
427
  </td>
423
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
424
- 气费金额合计:&emsp;{{sumsmodel.f_oughtfee_new}}
428
+ <td
429
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
430
+ 气费金额合计:&emsp;{{ sumsmodel.f_oughtfee_new }}
425
431
  </td>
426
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
427
- 滞纳金合计:&emsp;{{sumsmodel.overdue}}
432
+ <td
433
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
434
+ 滞纳金合计:&emsp;{{ sumsmodel.overdue }}
428
435
  </td>
429
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
430
- 附加费合计:&emsp;{{sumsmodel.f_garbage_fee}}
436
+ <td
437
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
438
+ 附加费合计:&emsp;{{ sumsmodel.f_garbage_fee }}
431
439
  </td>
432
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
433
- 合计欠费:&emsp;{{sumsmodel.f_oughtfee_all}}
440
+ <td
441
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
442
+ 合计欠费:&emsp;{{ sumsmodel.f_oughtfee_all }}
434
443
  </td>
435
444
  </tr>
436
445
  </table>
437
446
  </div>
438
447
  <div v-if="show">
439
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
448
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id"
449
+ @cancel-main="cancel"></user-info-detail-manage-new>
440
450
  </div>
441
451
  </div>
442
452
  </div>
443
453
  </template>
444
454
 
445
455
  <script>
446
- import {HttpResetClass, PagedList} from 'vue-client'
447
- import exportConfig from './config/exportConfig'
456
+ import {HttpResetClass, PagedList} from 'vue-client'
457
+ import exportConfig from './config/exportConfig'
448
458
 
449
- let readySomething = async function (self) {
450
- self.$MagGetSaleParam.initinputtor();
451
- self.getinputtores();
452
- //加载抄表册
453
- self.initmeterbook();
454
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
455
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
456
- // self.$refs.paged.$refs.cri.search()
457
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
458
- await self.$MagLoadParams.loadParam()
459
- self.initParams()
460
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
461
- }
462
- export default {
463
- title: '欠费查询',
464
- data() {
465
- return {
466
- config: {
467
- defaultPrint: ['f_userinfo_code', 'f_address']
468
- },
469
- other:[],
470
- footer:[],
471
- //f_price_name:[],
472
- gasproperties:[],
473
- showinfo: false,
474
- data: {},
475
- show:false,
476
- rowdata:{},
477
- initres: {
478
- org:[this.$login.f.orgid],
479
- dep:[],
480
- user:[]
481
- },
482
- model: new PagedList('rs/sql/arrearsQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
483
- f_oughtamount: 0,
484
- f_oughtfee: 0,
485
- f_debt_money: 0,
486
- f_oughtfee_new: 0,
487
- overdue: 0,
488
- f_garbage_fee: 0,
489
- f_oughtfee_all: 0
490
- }),
491
- criteriaShow: false,
492
- orgCondtionStr: '',
493
- // 下拉框
494
- meterbrands: [],
495
- pricenames: [],
496
- prices: [],
497
- area: [],
498
- //合计数据
499
- defaultfield: [],
500
- //小区
501
- residentialArea: [],
502
- sumsmodel: {},
503
- f_filialeid: this.$login.f.f_orgid,
504
- meterbooks:[{label: '全部',value: ''}], //抄表册
505
- inputtores:[{label: '全部',value: ''}],
506
- allorgid:[],
507
- tempfalg :false,
508
- lastorgstr:'',
509
- dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
510
- }
511
- },
512
- ready() {
513
- this.getaddress()
514
- readySomething(this).then(() => {
515
- this.$emit('ready')
516
- }).catch((error) => {
517
- this.$emit('error', error)
518
- })
519
- },
520
- methods: {
521
- async inputtorchange(){
522
- let val = this.$refs.paged.$refs.cri.model.f_inputtor;
523
- if(val!=null && val !=""){
524
- let param={
525
- items:'*',
526
- tablename:'t_meter_book',
527
- condition:` 1=1 and f_inputtor = '${val}' and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `,
528
- orderitem:'id'
459
+ let readySomething = async function (self) {
460
+ self.$MagGetSaleParam.initinputtor();
461
+ self.getinputtores();
462
+ //加载抄表册
463
+ self.initmeterbook();
464
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
465
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
466
+ // self.$refs.paged.$refs.cri.search()
467
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
468
+ await self.$MagLoadParams.loadParam()
469
+ self.initParams()
470
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
471
+ }
472
+ export default {
473
+ title: '欠费查询',
474
+ data() {
475
+ return {
476
+ config: {
477
+ defaultPrint: ['f_userinfo_code', 'f_address']
478
+ },
479
+ other: [],
480
+ footer: [],
481
+ //f_price_name:[],
482
+ gasproperties: [],
483
+ showinfo: false,
484
+ data: {},
485
+ show: false,
486
+ rowdata: {},
487
+ initres: {
488
+ org: [this.$login.f.orgid],
489
+ dep: [],
490
+ user: []
491
+ },
492
+ model: new PagedList('rs/sql/arrearsQuery', 20, {
493
+ startDate: 'this.model.startDate',
494
+ endDate: 'this.model.endDate'
495
+ }, {
496
+ f_oughtamount: 0,
497
+ f_oughtfee: 0,
498
+ f_debt_money: 0,
499
+ f_oughtfee_new: 0,
500
+ overdue: 0,
501
+ f_garbage_fee: 0,
502
+ f_oughtfee_all: 0
503
+ }),
504
+ criteriaShow: false,
505
+ orgCondtionStr: '',
506
+ // 下拉框
507
+ meterbrands: [],
508
+ pricenames: [],
509
+ prices: [],
510
+ area: [],
511
+ //合计数据
512
+ defaultfield: [],
513
+ //小区
514
+ residentialArea: [],
515
+ sumsmodel: {},
516
+ f_filialeid: this.$login.f.f_orgid,
517
+ meterbooks: [{label: '全部', value: ''}], //抄表册
518
+ inputtores: [{label: '全部', value: ''}],
519
+ allorgid: [],
520
+ tempfalg: false,
521
+ lastorgstr: '',
522
+ dypayment: [{label: "全部", value: ""}, {label: "银行代扣", value: "银行代扣",}, {
523
+ label: "现金缴费",
524
+ value: "现金缴费",
525
+ }],
526
+ }
527
+ },
528
+ ready() {
529
+ this.getaddress()
530
+ readySomething(this).then(() => {
531
+ this.$emit('ready')
532
+ }).catch((error) => {
533
+ this.$emit('error', error)
534
+ })
535
+ },
536
+ methods: {
537
+ async inputtorchange() {
538
+ let val = this.$refs.paged.$refs.cri.model.f_inputtor;
539
+ if (val != null && val != "") {
540
+ let param = {
541
+ items: '*',
542
+ tablename: 't_meter_book',
543
+ condition: ` 1=1 and f_inputtor = '${val}' and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `,
544
+ orderitem: 'id'
529
545
 
530
- }
531
- let getMeterBooks = await this.$resetpost('rs/sql/manage_singleTable', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
532
- if (getMeterBooks.data) {
533
- if(getMeterBooks.data.length >0){
534
- let rs = [];
535
- getMeterBooks.data.forEach((item)=>{
536
- let temp = {
537
- label:item.f_book_name,
538
- value:item.id
539
- };
540
- rs.push(temp);
546
+ }
547
+ let getMeterBooks = await this.$resetpost('rs/sql/manage_singleTable', {data: param}, {
548
+ resolveMsg: null,
549
+ rejectMsg: '获取营收参数出错!!!'
550
+ })
551
+ if (getMeterBooks.data) {
552
+ if (getMeterBooks.data.length > 0) {
553
+ let rs = [];
554
+ getMeterBooks.data.forEach((item) => {
555
+ let temp = {
556
+ label: item.f_book_name,
557
+ value: item.id
558
+ };
559
+ rs.push(temp);
541
560
 
542
- })
543
- this.meterbooks = [{label: '全部',value: ''}, ...rs];
544
- this.$set('$refs.paged.$refs.cri.model.f_meter_book',[getMeterBooks.data[0].id]);
545
- }else{
546
- this.$set('$refs.paged.$refs.cri.model.f_meter_book','');
547
- this.meterbooks = [{label: '全部',value: ''}];
548
- }
561
+ })
562
+ this.meterbooks = [{label: '全部', value: ''}, ...rs];
563
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book', [getMeterBooks.data[0].id]);
564
+ } else {
565
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book', '');
566
+ this.meterbooks = [{label: '全部', value: ''}];
549
567
  }
550
- }else{
551
- this.$set('$refs.paged.$refs.cri.model.f_meter_book','');
552
- this.meterbooks = [{label: '全部',value: ''}];
553
- this.initmeterbook();
554
568
  }
555
- },
556
- async initmeterbook(orgstr){
557
- if(orgstr == null ){
558
- orgstr = this.f_filialeid;
559
- }
560
- //获取新的抄表册,先去清理所有的抄表册
561
- this.$GetSaleParam.meterbooks = [];
562
- //开始加载新的抄表册
563
- await this.$LoadParams.loadMeterBook(orgstr)
564
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
565
- },
566
- getinputtores () {
567
- // 获取抄表员
568
- let rs = []
569
- if (this.$login.f.f_gasman.length > 0) {
570
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
571
- let temp = {
572
- label: this.$login.f.f_gasman[i].name,
573
- value: this.$login.f.f_gasman[i].name
574
- }
575
- rs.push(temp)
569
+ } else {
570
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book', '');
571
+ this.meterbooks = [{label: '全部', value: ''}];
572
+ this.initmeterbook();
573
+ }
574
+ },
575
+ async initmeterbook(orgstr) {
576
+ if (orgstr == null) {
577
+ orgstr = this.f_filialeid;
578
+ }
579
+ //获取新的抄表册,先去清理所有的抄表册
580
+ this.$GetSaleParam.meterbooks = [];
581
+ //开始加载新的抄表册
582
+ await this.$LoadParams.loadMeterBook(orgstr)
583
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
584
+ },
585
+ getinputtores() {
586
+ // 获取抄表员
587
+ let rs = []
588
+ if (this.$login.f.f_gasman.length > 0) {
589
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
590
+ let temp = {
591
+ label: this.$login.f.f_gasman[i].name,
592
+ value: this.$login.f.f_gasman[i].name
576
593
  }
594
+ rs.push(temp)
577
595
  }
578
- return [{label: '全部', value: ''}, ...rs]
579
- },
580
- //加载抄表册
581
- loadMeterBooks(){
582
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
583
- },
584
- getotherfooter(){
585
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
586
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
587
- this.other=[];
588
- this.footer=[];
589
- let exportdata = this.getCondition;
590
- let otherInData=[];
591
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
592
- let footerData=[],exportfield=this.getfield;
593
- footerData.push("合计");
594
- let self =this;
595
- for(var field in self.sumsmodel){
596
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
597
- }
598
- this.footer.push(footerData);
599
- this.other.push(otherInData);
600
- },
601
- async getaddress(){
602
- console.log('开始获取小区')
603
- let HttpReset = new HttpResetClass()
604
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
605
- data: {
606
- condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
607
- }
608
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
609
- console.log('小区',data)
610
- let house = [{label: '全部', value: ''}]
611
- for (let row of data.data){
612
- console.log('开始保存小区')
613
- house.push({label: row.f_residential_area, value: row.f_residential_area})
596
+ }
597
+ return [{label: '全部', value: ''}, ...rs]
598
+ },
599
+ //加载抄表册
600
+ loadMeterBooks() {
601
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
602
+ },
603
+ getotherfooter() {
604
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
605
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
606
+ this.other = [];
607
+ this.footer = [];
608
+ let exportdata = this.getCondition;
609
+ let otherInData = [];
610
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
611
+ let footerData = [], exportfield = this.getfield;
612
+ footerData.push("合计");
613
+ let self = this;
614
+ for (var field in self.sumsmodel) {
615
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
616
+ }
617
+ this.footer.push(footerData);
618
+ this.other.push(otherInData);
619
+ },
620
+ async getaddress() {
621
+ console.log('开始获取小区')
622
+ let HttpReset = new HttpResetClass()
623
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
624
+ data: {
625
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
614
626
  }
615
- this.residentialArea = house
616
- },
617
- //把数据库查询数据转换为下拉数据
618
- calculate(rows){
619
- let data = []
620
- rows.forEach((row, n) => {
621
- data[n] = {label: row.f_residential_area, value: row.id}
622
- })
623
- return data
624
- },
627
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
628
+ console.log('小区', data)
629
+ let house = [{label: '全部', value: ''}]
630
+ for (let row of data.data) {
631
+ console.log('开始保存小区')
632
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
633
+ }
634
+ this.residentialArea = house
635
+ },
636
+ //把数据库查询数据转换为下拉数据
637
+ calculate(rows) {
638
+ let data = []
639
+ rows.forEach((row, n) => {
640
+ data[n] = {label: row.f_residential_area, value: row.id}
641
+ })
642
+ return data
643
+ },
625
644
 
626
- search(){
627
- this.$refs.paged.$refs.cri.search()
628
- },
629
- cancel() {
630
- this.show = false
631
- },
632
- showmsg(obj){
633
- this.rowdata=obj
634
- this.show=true
635
- },
636
- userTypeChange () {
637
- this.gasproperties=[]
638
- if(this.$refs.paged.$refs.cri.model !==null) {
639
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
645
+ search() {
646
+ this.$refs.paged.$refs.cri.search()
647
+ },
648
+ cancel() {
649
+ this.show = false
650
+ },
651
+ showmsg(obj) {
652
+ this.rowdata = obj
653
+ this.show = true
654
+ },
655
+ userTypeChange() {
656
+ this.gasproperties = []
657
+ if (this.$refs.paged.$refs.cri.model !== null) {
658
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
640
659
 
641
- console.log("查看客户类型是什么",this.$refs.paged.$refs.cri.model.f_user_type[0])
642
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
643
- // this.gasproperties.push({label: '全部', value: ''})
644
- }
645
- else{
646
- this.gasproperties =[{label: '全部', value: ''}]
647
- }
648
- },
649
- initParams() {
650
- // 初始化气表品牌
651
- let brandArr = []
652
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
653
- let temp = {}
654
- temp.label = item.label
655
- temp.value = item.value.f_meter_brand
656
- brandArr.push(temp)
657
- })
658
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
659
- //初始化气表价格
660
- this.prices = this.$MagGetSaleParam.getPrices();
661
- },
662
- selfSearch(args) {
663
- console.log('开始时间',this.$refs.paged.$refs.cri.model.startDate)
664
- if (this.$refs.paged.$refs.cri.model.startDate === '' || this.$refs.paged.$refs.cri.model.endDate === ''){
665
- this.$showAlert('请先选择开始时间、结束时间,再进行查询操作!', 'warning', 3000)
666
- } else {
667
- //小区查询条件
660
+ console.log("查看客户类型是什么", this.$refs.paged.$refs.cri.model.f_user_type[0])
661
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
662
+ // this.gasproperties.push({label: '全部', value: ''})
663
+ } else {
664
+ this.gasproperties = [{label: '全部', value: ''}]
665
+ }
666
+ },
667
+ initParams() {
668
+ // 初始化气表品牌
669
+ let brandArr = []
670
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
671
+ let temp = {}
672
+ temp.label = item.label
673
+ temp.value = item.value.f_meter_brand
674
+ brandArr.push(temp)
675
+ })
676
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
677
+ //初始化气表价格
678
+ this.prices = this.$MagGetSaleParam.getPrices();
679
+ },
680
+ selfSearch(args) {
681
+ console.log('开始时间', this.$refs.paged.$refs.cri.model.startDate)
682
+ if (this.$refs.paged.$refs.cri.model.startDate === '' || this.$refs.paged.$refs.cri.model.endDate === '') {
683
+ this.$showAlert('请先选择开始时间、结束时间,再进行查询操作!', 'warning', 3000)
684
+ } else {
685
+ //小区查询条件
668
686
 
669
- let f_orgstr = this.orgCondtionStr
670
- args.condition = `${args.condition} ` + f_orgstr
671
- this.model.search(args.condition, args.model)
672
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
673
- }
674
- },
675
- clear() {
676
- //清空部门和人员
677
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
678
- //部门和人员变为全选
679
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
680
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
681
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
682
- this.$refs.paged.$refs.cri.model[key] = []
683
- })
687
+ let f_orgstr = this.orgCondtionStr
688
+ args.condition = `${args.condition} ` + f_orgstr
689
+ this.model.search(args.condition, args.model)
690
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
691
+ }
692
+ },
693
+ clear() {
694
+ //清空部门和人员
695
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
696
+ //部门和人员变为全选
697
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
698
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
699
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
700
+ this.$refs.paged.$refs.cri.model[key] = []
701
+ })
684
702
 
685
- },
686
- dealmsg(val) {
687
- val.model = this.model.model
688
- this.$dispatch('deal-msg', val)
689
- },
690
- show() {
691
- this.criteriaShow = true
692
- },
693
- hidden() {
694
- this.criteriaShow = !this.criteriaShow
695
- },
696
- async getRes(condition,obj) {
697
- this.orgCondtionStr = condition
698
- this.orgname = obj.orgnames[0]
699
- this.depname = obj.depnames[0]
703
+ },
704
+ dealmsg(val) {
705
+ val.model = this.model.model
706
+ this.$dispatch('deal-msg', val)
707
+ },
708
+ show() {
709
+ this.criteriaShow = true
710
+ },
711
+ hidden() {
712
+ this.criteriaShow = !this.criteriaShow
713
+ },
714
+ async getRes(condition, obj) {
715
+ this.orgCondtionStr = condition
716
+ this.orgname = obj.orgnames[0]
717
+ this.depname = obj.depnames[0]
700
718
 
701
- },
702
- async updateParams() {
703
- await this.$MagLoadParams.loadParam(this.f_filialeid)
704
- this.inputtores = [];
705
- this.inputtores.push({label: "全部", value: ""})
706
- if(this.allorgid!=null){
707
- this.allorgid.forEach((res)=>{
708
- this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
709
- })
710
- }
711
- this.initParams()
712
- },
713
719
  },
714
- events:{
715
- 'getidcard'(IdCard){
716
- this.$refs.paged.$refs.cri.model.f_info_idnumber=IdCard.strID
720
+ async updateParams() {
721
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
722
+ this.inputtores = [];
723
+ this.inputtores.push({label: "全部", value: ""})
724
+ if (this.allorgid != null) {
725
+ this.allorgid.forEach((res) => {
726
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
727
+ })
717
728
  }
729
+ this.initParams()
718
730
  },
719
- watch: {
720
- 'model'(val) {
721
- },
722
- async 'orgCondtionStr'(val) {
723
- this.meterbooks = [{label: '全部',value: ''}];
724
- if(this.lastorgstr != val){
725
- this.tempfalg = true;
726
- this.lastorgstr = val;
727
- }
728
- if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
729
- this.tempfalg = false;
730
- let a = val.substring(val.indexOf("(")+2)
731
- await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
732
- }
733
- let res = val.match(/'(.*?)'/)
734
- if (res) {
735
- this.f_filialeid = res[1]
736
- if(res.input !=null){
737
- let resorgid = res.input.substring(res.input.indexOf("'"));
738
- if(resorgid!= null && resorgid!=''){
739
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
740
- // resorgid = resorgid.replaceAll("'","");
741
- resorgid = resorgid.replace(/'/g,"");
742
- this.allorgid = resorgid.split(",")
743
- }
731
+ },
732
+ events: {
733
+ 'getidcard'(IdCard) {
734
+ this.$refs.paged.$refs.cri.model.f_info_idnumber = IdCard.strID
735
+ }
736
+ },
737
+ watch: {
738
+ 'model'(val) {
739
+ },
740
+ async 'orgCondtionStr'(val) {
741
+ this.meterbooks = [{label: '全部', value: ''}];
742
+ if (this.lastorgstr != val) {
743
+ this.tempfalg = true;
744
+ this.lastorgstr = val;
745
+ }
746
+ if (this.tempfalg && val != null && val != '' && val.indexOf("(") > -1) {
747
+ this.tempfalg = false;
748
+ let a = val.substring(val.indexOf("(") + 2)
749
+ await this.initmeterbook(a.substring(0, a.indexOf(")") - 1));
750
+ }
751
+ let res = val.match(/'(.*?)'/)
752
+ if (res) {
753
+ this.f_filialeid = res[1]
754
+ if (res.input != null) {
755
+ let resorgid = res.input.substring(res.input.indexOf("'"));
756
+ if (resorgid != null && resorgid != '') {
757
+ resorgid = resorgid.substring(0, resorgid.lastIndexOf("'") + 1);
758
+ // resorgid = resorgid.replaceAll("'","");
759
+ resorgid = resorgid.replace(/'/g, "");
760
+ this.allorgid = resorgid.split(",")
744
761
  }
745
- this.updateParams()
746
762
  }
747
- },
748
- sumsmodel:{
749
- handler: function(val) {
750
- this.getotherfooter();
751
- },
752
- deep: true
763
+ this.updateParams()
753
764
  }
754
765
  },
755
- computed: {
756
- pricetypes() {
757
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
766
+ sumsmodel: {
767
+ handler: function (val) {
768
+ this.getotherfooter();
758
769
  },
770
+ deep: true
771
+ }
772
+ },
773
+ computed: {
774
+ pricetypes() {
775
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
776
+ },
759
777
 
760
- getPricenames() {
761
- let f_user_type = this.$refs.paged.model.model.f_user_type;
762
- let f_gasproperties = this.$refs.paged.model.model.f_gasproperties;
763
- let pricetype = this.$refs.paged.model.model.pricetype;
764
- if(this.$refs.paged.model.model !==null) {
765
- let rs = []
766
- let priceArr = []
767
- if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
768
- let params = {
769
- f_user_type: f_user_type[0],
770
- f_gasproperties: f_gasproperties[0],
771
- f_price_type: pricetype[0],
772
- filter: this.f_filialeid,
773
- prices: this.prices
774
- }
775
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
776
- let temp = {}
777
- temp.label = item.label
778
- temp.value = item.value.f_price_name
779
- priceArr.push(temp)
780
- })
781
- rs = [{label: '全部', value: ''}, ...priceArr]
782
- }
783
- if (rs.length === 0) {
784
- this.$refs.paged.model.model.f_price_name = ''
778
+ getPricenames() {
779
+ let f_user_type = this.$refs.paged.model.model.f_user_type;
780
+ let f_gasproperties = this.$refs.paged.model.model.f_gasproperties;
781
+ let pricetype = this.$refs.paged.model.model.pricetype;
782
+ if (this.$refs.paged.model.model !== null) {
783
+ let rs = []
784
+ let priceArr = []
785
+ if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length > 0) {
786
+ let params = {
787
+ f_user_type: f_user_type[0],
788
+ f_gasproperties: f_gasproperties[0],
789
+ f_price_type: pricetype[0],
790
+ filter: this.f_filialeid,
791
+ prices: this.prices
785
792
  }
786
- return rs
793
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
794
+ let temp = {}
795
+ temp.label = item.label
796
+ temp.value = item.value.f_price_name
797
+ priceArr.push(temp)
798
+ })
799
+ rs = [{label: '全部', value: ''}, ...priceArr]
787
800
  }
788
- },
789
- getCondition() {
790
- return {
791
- startDate: this.$refs.paged.$refs.cri.model.startDate,
792
- endDate: this.$refs.paged.$refs.cri.model.endDate,
793
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
794
- },
795
- getfield() {
796
- return exportConfig.arrearsConfig
797
- },
798
- usertypes() {
799
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
800
- },
801
- metertypes() {
802
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
803
- },
804
- chargetype() {
805
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
801
+ if (rs.length === 0) {
802
+ this.$refs.paged.model.model.f_price_name = ''
803
+ }
804
+ return rs
806
805
  }
806
+ },
807
+ getCondition() {
808
+ return {
809
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
810
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
811
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr
812
+ }
813
+ },
814
+ getfield() {
815
+ return exportConfig.arrearsConfig
816
+ },
817
+ usertypes() {
818
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
819
+ },
820
+ metertypes() {
821
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
822
+ },
823
+ chargetype() {
824
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
807
825
  }
808
826
  }
827
+ }
809
828
  </script>