manage-client 4.0.91 → 4.0.93

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "4.0.91",
3
+ "version": "4.0.93",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -224,16 +224,12 @@
224
224
  <th style="text-align:center">
225
225
  <nobr>指令类型</nobr>
226
226
  </th>
227
- <th style="text-align:center">
228
- <nobr>指令标题</nobr>
229
- </th>
227
+
230
228
  <th style="text-align:center">
231
229
  <nobr>执行状态</nobr>
232
230
  </th>
233
231
  <th style="text-align:center"><nobr>执行结果</nobr></th>
234
- <th style="text-align:center"><nobr>指令生成人</nobr></th>
235
232
  <th style="text-align:center"><nobr>指令生成时间</nobr></th>
236
- <th style="text-align:center"><nobr>指令发送时间</nobr></th>
237
233
  <th style="text-align:center"><nobr>上表时间</nobr></th>
238
234
  <th style="text-align:center">
239
235
  <nobr>充值金额</nobr>
@@ -283,22 +279,15 @@
283
279
  <td style="text-align:center">
284
280
  <nobr>{{row.f_instruct_type}}</nobr>
285
281
  </td>
286
- <td style="text-align:center">
287
- <nobr>{{row.f_instruct_title}}</nobr>
288
- </td>
289
282
  <td style="text-align:center">
290
283
  <nobr>{{row.f_instruct_state}}</nobr>
291
284
  </td>
292
285
  <td style="text-align:center">
293
286
  <nobr>{{row.f_receive_state}}</nobr>
294
287
  </td>
295
- <td style="text-align:center">
296
- <nobr>{{row.f_inputtor}}</nobr>
297
- </td>
298
288
  <td style="text-align:center">
299
289
  <nobr>{{row.f_instruct_date}}</nobr>
300
290
  </td>
301
- <td style="text-align:center"><nobr>{{row.f_send_date}}</nobr></td>
302
291
  <td style="text-align:center"><nobr>{{row.f_callback_date}}</nobr></td>
303
292
  <th style="text-align:center">
304
293
  <nobr>{{row.f_collection}}</nobr>
@@ -382,7 +371,7 @@
382
371
  excelHeaders: {
383
372
  'f_userinfo_code': '客户编号','f_address': '客户地址','f_user_name': '客户姓名',
384
373
  'f_meternumber': '表号','f_meter_brand': '气表品牌','f_instruct_type': '指令类型',
385
- 'f_instruct_state': '执行状态','f_receive_state': '执行结果','f_inputtor': '指令生成人','f_instruct_date': '指令时间',
374
+ 'f_instruct_state': '执行状态','f_receive_state': '执行结果','f_instruct_date': '指令时间',
386
375
  'note':'操作内容','f_info':'操作原因','f_operator':'操作人(记录)','f_operate_date':'操作时间(记录)','f_operate_type':'操作类型','f_state':'操作状态',
387
376
  'f_orgname': '组织机构'
388
377
  }
@@ -337,6 +337,14 @@
337
337
  close-on-select
338
338
  condition="f_usetype = '{}'"></v-select>
339
339
  </div>
340
+ <div class="col-sm-2 form-group">
341
+ <label class="font_normal_body">是否换表安检</label>
342
+ <v-select :value.sync="model.f_ischange_check" v-model="model.f_ischange_check"
343
+ :options='$parent.$parent.ischangecheck' placeholder='请选择'
344
+ style="width:60%"
345
+ close-on-select
346
+ condition="f_ischange_check = '{}' "></v-select>
347
+ </div>
340
348
  </div>
341
349
  </div>
342
350
  </criteria>
@@ -402,6 +410,7 @@
402
410
 
403
411
  <th><nobr>气表型号</nobr></th>
404
412
  <th><nobr>表状态</nobr></th>
413
+ <th><nobr>是否换表安检</nobr></th>
405
414
  <th><nobr>初始气表底数</nobr></th>
406
415
  <th><nobr>累计用气金额</nobr></th>
407
416
  <th><nobr>表累购气量</nobr></th>
@@ -492,6 +501,7 @@
492
501
 
493
502
  <td style="text-align: center;"><nobr>{{row.f_meter_style}}</nobr></td>
494
503
  <td style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></td>
504
+ <td style="text-align: center;"><nobr>{{row.f_ischange_check}}</nobr></td>
495
505
  <td style="text-align: center;"><nobr>{{row.f_initial_base}}</nobr></td>
496
506
  <td style="text-align: center;"><nobr>{{row.f_total_usegas_amount}}</nobr></td>
497
507
  <td style="text-align: center;"><nobr>{{row.f_total_gas}}</nobr></td>
@@ -576,6 +586,7 @@ let readySomething = async function (self) {
576
586
  // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
577
587
  // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
578
588
  // await self.$refs.paged.$refs.cri.search()
589
+ self.$refs.paged.$refs.cri.model.f_ischange_check = ['否']
579
590
  }
580
591
  export default {
581
592
  data() {
@@ -681,7 +692,7 @@ export default {
681
692
  this.show=true
682
693
  },
683
694
  selfSearch (args) {
684
-
695
+ console.log('看看选择框',this.$refs.paged.$refs.cri.model.f_table_state)
685
696
  //抄表员查询条件
686
697
  this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
687
698
  if(this.inputtouPerson.length !== 0){
@@ -736,6 +747,7 @@ export default {
736
747
  Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
737
748
  this.$refs.paged.$refs.cri.model[key] = []
738
749
  })
750
+ this.$refs.paged.$refs.cri.model.f_ischange_check = ['否']
739
751
  },
740
752
  hidden(){
741
753
  this.criteriaShow = !this.criteriaShow
@@ -825,6 +837,9 @@ export default {
825
837
  usetypes() {
826
838
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用类型')]
827
839
  },
840
+ ischangecheck() {
841
+ return [{label: '否', value: '否'},{label: '是', value: '是'}]
842
+ },
828
843
  zbf() {
829
844
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('自闭阀')]
830
845
  },
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div id="unit" class="flex-row" >
3
3
  <div class="basic-main" @keyup.enter="search" >
4
- <div class="flex" :class="{showbottom:showbottomsum}" v-if="!show">
4
+ <div class="flex" :class="{showbottom:showbottomsum}" v-show="!show">
5
5
  <criteria-paged :model="model" v-ref:paged @sort="sort">
6
6
  <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
7
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
@@ -108,14 +108,6 @@
108
108
  condition="f_type = '{}'"
109
109
  close-on-select></v-select>
110
110
  </div>
111
- <div class="col-sm-2 form-group">
112
- <label class="font_normal_body">换&nbsp;表&nbsp;&nbsp;人</label>
113
- <v-select :value.sync="model.f_change_operator"
114
- v-model="model.f_change_operator"
115
- :options='$parent.$parent.changePerson' placeholder='请选择'
116
- condition="f_change_operator = '{}'"
117
- close-on-select></v-select>
118
- </div>
119
111
  <div class="col-sm-2 form-group">
120
112
  <label class="font_normal_body">卡&emsp;&emsp;号</label>
121
113
  <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
@@ -199,9 +191,9 @@
199
191
  condition="f_meternumber_old = '{}'" placeholder='旧表号'>
200
192
  </div>
201
193
  <div class="col-sm-2 form-group">
202
- <label class="font_normal_body">旧&emsp;卡&emsp;号</label>
203
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_old"
204
- condition="f_card_old = '{}'" placeholder='旧卡号'>
194
+ <label class="font_normal_body">旧&emsp;卡&emsp;号</label>
195
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_old"
196
+ condition="f_card_old = '{}'" placeholder='旧卡号'>
205
197
  </div>
206
198
  </div>
207
199
  </div>
@@ -226,12 +218,7 @@
226
218
  <th>
227
219
  <nobr>付款方式</nobr>
228
220
  </th>
229
- <th>
230
- <nobr>上期底数</nobr>
231
- </th>
232
- <th>
233
- <nobr>本期底数</nobr>
234
- </th>
221
+
235
222
  <th>
236
223
  <nobr>表上余额</nobr>
237
224
  </th>
@@ -261,9 +248,9 @@
261
248
  <th>
262
249
  <nobr>新表号</nobr>
263
250
  </th>
264
- <!-- <th>-->
265
- <!-- <nobr>表封号</nobr>-->
266
- <!-- </th>-->
251
+ <!-- <th>-->
252
+ <!-- <nobr>表封号</nobr>-->
253
+ <!-- </th>-->
267
254
  <th>
268
255
  <nobr>旧气表品牌</nobr>
269
256
  </th>
@@ -276,15 +263,15 @@
276
263
  <th>
277
264
  <nobr>补气金额</nobr>
278
265
  </th>
279
- <!-- <th>-->
280
- <!-- <nobr>订单编号</nobr>-->
281
- <!-- </th>-->
266
+ <!-- <th>-->
267
+ <!-- <nobr>订单编号</nobr>-->
268
+ <!-- </th>-->
282
269
  <th>
283
270
  <nobr>备注</nobr>
284
271
  </th>
285
- <th>
286
- <nobr>换表人</nobr>
287
- </th>
272
+ <!-- <th>-->
273
+ <!-- <nobr>换表人</nobr>-->
274
+ <!-- </th>-->
288
275
  <th>
289
276
  <nobr>状态</nobr>
290
277
  </th>
@@ -340,12 +327,7 @@
340
327
  <td style="text-align: center;">
341
328
  <nobr>{{row.f_payment}}</nobr>
342
329
  </td>
343
- <td style="text-align: center;">
344
- <nobr>{{row.f_meter_base}}</nobr>
345
- </td>
346
- <td style="text-align: center;">
347
- <nobr>{{row.f_using_base_old}}</nobr>
348
- </td>
330
+
349
331
  <td style="text-align: center;">
350
332
  <nobr>{{row.f_balance_amount}}</nobr>
351
333
  </td>
@@ -374,9 +356,9 @@
374
356
  <td style="text-align: center;">
375
357
  <nobr>{{row.f_meternumber}}</nobr>
376
358
  </td>
377
- <!-- <td style="text-align: center;">-->
378
- <!-- <nobr>{{row.f_metertitles}}</nobr>-->
379
- <!-- </td>-->
359
+ <!-- <td style="text-align: center;">-->
360
+ <!-- <nobr>{{row.f_metertitles}}</nobr>-->
361
+ <!-- </td>-->
380
362
  <td style="text-align: center;">
381
363
  <nobr>{{row.f_meter_brand_old}}</nobr>
382
364
  </td>
@@ -389,15 +371,12 @@
389
371
  <td style="text-align: center;">
390
372
  <nobr>{{row.f_remanent_money}}</nobr>
391
373
  </td>
392
- <!-- <td style="text-align: center;">-->
393
- <!-- <nobr>{{row.f_serial_number}}</nobr>-->
394
- <!-- </td>-->
374
+ <!-- <td style="text-align: center;">-->
375
+ <!-- <nobr>{{row.f_serial_number}}</nobr>-->
376
+ <!-- </td>-->
395
377
  <td style="text-align: center;">
396
378
  <nobr>{{row.f_comments}}</nobr>
397
379
  </td>
398
- <td style="text-align: center;">
399
- <nobr>{{row.f_change_operator}}</nobr>
400
- </td>
401
380
  <td style="text-align: center;">
402
381
  <nobr>{{row.f_state}}</nobr>
403
382
  </td>
@@ -507,7 +486,7 @@
507
486
  </div>
508
487
  </div>
509
488
  <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
510
- <article slot="modal-body">
489
+ <article slot="modal-body" style="height:90vh">
511
490
  <upload :blodid="selected.f_userinfo_id" v-ref:upload :isremark="false" fusetype="换表" ></upload>
512
491
  </article>
513
492
  <footer slot="modal-footer" class="modal-footer">
@@ -550,234 +529,233 @@
550
529
  </div>
551
530
  </template>
552
531
  <script>
553
- import {PagedList} from 'vue-client'
554
- import defaultPrint from '../DefaultPrint'
555
- import exportConfig from '../exportConfig'
556
- let readySomething = async function (self) {
557
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
558
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
559
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
560
- // self.$refs.paged.$refs.cri.search()
561
- await self.$MagLoadParams.loadParam()
562
- self.initParams()
563
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
564
- }
565
- export default {
566
- props:['data'],
567
- title: '换表查询',
568
- data() {
569
- return {
570
- data: {},
571
- other:[],
572
- footer:[],
573
- check:{
574
- f_chagetables_check_state:'',
575
- f_changetables_check_reason:''
576
- },
577
- meterbrands: [],
578
- pricenames: [],
579
- model: new PagedList('api/af-revenue/sql/changeMeterQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}, {f_balance_amount: 0,f_changemeter_fee: 0,f_remanent_money:0,f_remanent_gas:0}),
580
- criteriaShow: false,
581
- orgCondtionStr: '',
582
- modelval: [],
583
- printshow: false,
584
- all: false,
585
- fields: {},
586
- initres: {
587
- org:[this.$login.f.orgid],
588
- dep:[],
589
- user:[],
590
- },
591
- config: {
592
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_type', 'f_changemeter_fee', 'f_meternumber_old', 'f_meternumber', 'f_change_operator', 'f_state', 'f_operate_date']
593
- },
594
- //排序
595
- orderitem:'f_operate_date desc',
596
- orderFields: {
597
- f_operate_date: 'no'
598
- },
599
- show:false,
600
- showCheck:false,
601
- rowdata:{},
602
- showupload:false,
603
- selected:{},
604
- thead: '',
605
- tfoot: '',
606
- defaultfield: [],
607
- // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
608
- //合计数据
609
- sumsmodel: {},
610
- changemeter_fee:[
611
- {label: '全部', value: ''},
612
- {label: '销售', value: '> 0'},
613
- {label: '免费', value: '= 0'}
614
- ]
615
- }
616
-
617
- },
618
- ready() {
619
- console.log(this.$login.r)
620
- this.startDate=this.$parent.startDate
621
- this.endDate=this.$parent.endDate
622
- readySomething(this)
623
- },
624
- methods: {
625
- checkData(obj){
626
- this.rowdata=obj
627
- this.showCheck=true
532
+ import {PagedList} from 'vue-client'
533
+ import defaultPrint from '../DefaultPrint'
534
+ import exportConfig from '../exportConfig'
535
+ let readySomething = async function (self) {
536
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
537
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
538
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
539
+ await self.$MagLoadParams.loadParam()
540
+ self.initParams()
541
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
542
+ }
543
+ export default {
544
+ props:['data'],
545
+ title: '换表查询',
546
+ data() {
547
+ return {
548
+ data: {},
549
+ other:[],
550
+ footer:[],
551
+ check:{
552
+ f_chagetables_check_state:'',
553
+ f_changetables_check_reason:''
628
554
  },
629
- view(row){
630
- this.showupload = true
631
- this.selected= row
632
- console.log("11",row)
555
+ meterbrands: [],
556
+ pricenames: [],
557
+ model: new PagedList('api/af-revenue/sql/changeMeterQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}, {f_balance_amount: 0,f_changemeter_fee: 0,f_remanent_money:0,f_remanent_gas:0}),
558
+ criteriaShow: false,
559
+ orgCondtionStr: '',
560
+ modelval: [],
561
+ printshow: false,
562
+ all: false,
563
+ fields: {},
564
+ initres: {
565
+ org:[this.$login.f.orgid],
566
+ dep:[],
567
+ user:[],
633
568
  },
634
- search(){
635
- this.$refs.paged.$refs.cri.search()
569
+ config: {
570
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_type', 'f_changemeter_fee', 'f_meternumber_old', 'f_meternumber', 'f_change_operator', 'f_state', 'f_operate_date']
636
571
  },
637
- cancel() {
638
- this.show = false
572
+ //排序
573
+ orderitem:'f_operate_date desc',
574
+ orderFields: {
575
+ f_operate_date: 'no'
639
576
  },
640
- confirmCheck(){
641
- this.rowdata.f_changetables_check_person = this.$login.f.name
642
- this.rowdata.f_changetables_check_reason = this.check.f_changetables_check_reason
643
- this.rowdata.f_changetables_check_state = this.check.f_changetables_check_state
644
- this.$resetpost('api/af-revenue/logic/changeTablesCheck',{data:this.rowdata}).then((res)=>{
645
- this.showCheck = false
646
- this.check={
647
- f_changetables_check_reason: '',
648
- f_chagetables_check_state: '',
649
- }
577
+ show:false,
578
+ showCheck:false,
579
+ rowdata:{},
580
+ showupload:false,
581
+ selected:{},
582
+ thead: '',
583
+ tfoot: '',
584
+ defaultfield: [],
585
+ // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
586
+ //合计数据
587
+ sumsmodel: {},
588
+ changemeter_fee:[
589
+ {label: '全部', value: ''},
590
+ {label: '销售', value: '> 0'},
591
+ {label: '免费', value: '= 0'}
592
+ ]
593
+ }
650
594
 
651
- this.search()
652
- })
653
- },
654
- cancelCheck(){
595
+ },
596
+ ready() {
597
+ console.log(this.$login.r)
598
+ this.startDate=this.$parent.startDate
599
+ this.endDate=this.$parent.endDate
600
+ readySomething(this)
601
+ },
602
+ methods: {
603
+ checkData(obj){
604
+ this.rowdata=obj
605
+ this.showCheck=true
606
+ },
607
+ view(row){
608
+ this.showupload = true
609
+ this.selected= row
610
+ console.log("11",row)
611
+ },
612
+ search(){
613
+ this.$refs.paged.$refs.cri.search()
614
+ },
615
+ cancel() {
616
+ this.show = false
617
+ },
618
+ confirmCheck(){
619
+ this.rowdata.f_changetables_check_person = this.$login.f.name
620
+ this.rowdata.f_changetables_check_reason = this.check.f_changetables_check_reason
621
+ this.rowdata.f_changetables_check_state = this.check.f_changetables_check_state
622
+ this.$resetpost('api/af-revenue/logic/changeTablesCheck',{data:this.rowdata}).then((res)=>{
655
623
  this.showCheck = false
656
- },
657
- showmsg(obj){
658
- this.rowdata=obj
659
- this.show=true
660
- },
661
- getotherfooter () {
662
- this.other = [];
663
- this.footer = [];
664
- let exportdata = this.getCondition;
665
- let otherInData = [];
666
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
667
- let footerData = [], exportfield = this.getfield;
668
- footerData.push("合计");
669
- let self = this;
670
- for (var field in self.sumsmodel) {
671
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
624
+ this.check={
625
+ f_changetables_check_reason: '',
626
+ f_chagetables_check_state: '',
672
627
  }
673
- this.footer.push(footerData);
674
- this.other.push(otherInData);
675
- let date = []
676
- date.push(`起始时间:${this.$refs.paged.$refs.cri.model.startDate}`)
677
- date.push(`终止时间:${this.$refs.paged.$refs.cri.model.endDate}`)
678
- this.other.push(date)
679
- },
680
- async initParams() {
681
- // 初始化气表品牌
682
- let brandArr = []
683
- await this.$MagGetSaleParam.getGasbrand().forEach((item) => {
684
- let temp = {}
685
- temp.label = item.label
686
- temp.value = item.value.f_meter_brand
687
- brandArr.push(temp)
688
- })
689
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
690
- },
691
- async selfSearch(args) {
692
- if (this.data) {
693
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
694
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
695
- }
696
- args.condition = `${args.condition}` + this.orgCondtionStr
697
- args.condition = args.condition.replace(/f_zones/, "f_slice_area")
698
- await this.model.search(args.condition, args.model)
699
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
700
628
 
701
- // this.sumsmodel.hushu=[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
629
+ this.search()
630
+ })
631
+ },
632
+ cancelCheck(){
633
+ this.showCheck = false
634
+ },
635
+ showmsg(obj){
636
+ this.rowdata=obj
637
+ this.show=true
638
+ },
639
+ getotherfooter () {
640
+ this.other = [];
641
+ this.footer = [];
642
+ let exportdata = this.getCondition;
643
+ let otherInData = [];
644
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
645
+ let footerData = [], exportfield = this.getfield;
646
+ footerData.push("合计");
647
+ let self = this;
648
+ for (var field in self.sumsmodel) {
649
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
650
+ }
651
+ this.footer.push(footerData);
652
+ this.other.push(otherInData);
653
+ let date = []
654
+ date.push(`起始时间:${this.$refs.paged.$refs.cri.model.startDate}`)
655
+ date.push(`终止时间:${this.$refs.paged.$refs.cri.model.endDate}`)
656
+ this.other.push(date)
657
+ },
658
+ async initParams() {
659
+ // 初始化气表品牌
660
+ let brandArr = []
661
+ await this.$MagGetSaleParam.getGasbrand().forEach((item) => {
662
+ let temp = {}
663
+ temp.label = item.label
664
+ temp.value = item.value.f_meter_brand
665
+ brandArr.push(temp)
666
+ })
667
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
668
+ },
669
+ async selfSearch(args) {
670
+ if (this.data) {
671
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
672
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
673
+ }
674
+ args.condition = `${args.condition}` + this.orgCondtionStr
675
+ args.condition = args.condition.replace(/f_zones/, "f_slice_area")
676
+ await this.model.search(args.condition, args.model)
677
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
702
678
 
703
- },
704
- clear() {
705
- //清空部门和人员
706
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
707
- //部门和人员变为全选
708
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
709
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
710
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
711
- this.$refs.paged.$refs.cri.model[key] = []
712
- })
713
- },
714
- show() {
715
- this.criteriaShow = true
716
- },
717
- hidden() {
718
- this.criteriaShow = !this.criteriaShow
719
- },
720
- getRes(obj) {
721
- this.orgCondtionStr = obj
722
- },
723
- stamp() {
724
- this.all = false
725
- //默认选择要打印的列
726
- this.modelval = defaultPrint.config
727
- this.fields = this.getfield
728
- this.printshow = true
729
- this.put()
730
- },
731
- dealmsg(val) {
732
- val.model = this.model.model
733
- this.$dispatch('deal-msg', val)
734
- },
735
- put() {
736
- // 对Modelval进行排序
737
- this.sortModelval()
738
- this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
739
- for (let key of this.modelval) {
740
- this.thead += '<th>' + this.fields[key] + '</th>'
741
- }
742
- this.thead += '</tr>'
743
- },
744
- print() {
745
- this.$refs.print.PrintAsFile()
746
- this.printshow = false
747
- },
748
- close() {
749
- this.printshow = false
750
- this.all = false
751
- },
752
- // 对选择的列进行排序
753
- sortModelval() {
754
- let sortModel = []
755
- Object.keys(this.fields).forEach((key) => {
756
- if (this.modelval.includes(key)) {
757
- sortModel.push(key)
758
- }
759
- })
760
- this.modelval = sortModel
761
- console.log('选择的打印的字段', this.modelval)
762
- },
763
- sort (field, rule) {
764
- // 将所有排序方式设为不排序,实现相互排斥
765
- for (let key in this.orderFields) {
766
- if (key === field) {
767
- this.orderFields[key] = rule
679
+ // this.sumsmodel.hushu=[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
680
+
681
+ },
682
+ clear() {
683
+ //清空部门和人员
684
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
685
+ //部门和人员变为全选
686
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
687
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
688
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
689
+ this.$refs.paged.$refs.cri.model[key] = []
690
+ })
691
+ },
692
+ show() {
693
+ this.criteriaShow = true
694
+ },
695
+ hidden() {
696
+ this.criteriaShow = !this.criteriaShow
697
+ },
698
+ getRes(obj) {
699
+ this.orgCondtionStr = obj
700
+ },
701
+ stamp() {
702
+ this.all = false
703
+ //默认选择要打印的列
704
+ this.modelval = defaultPrint.config
705
+ this.fields = this.getfield
706
+ this.printshow = true
707
+ this.put()
708
+ },
709
+ dealmsg(val) {
710
+ val.model = this.model.model
711
+ this.$dispatch('deal-msg', val)
712
+ },
713
+ put() {
714
+ // 对Modelval进行排序
715
+ this.sortModelval()
716
+ this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
717
+ for (let key of this.modelval) {
718
+ this.thead += '<th>' + this.fields[key] + '</th>'
719
+ }
720
+ this.thead += '</tr>'
721
+ },
722
+ print() {
723
+ this.$refs.print.PrintAsFile()
724
+ this.printshow = false
725
+ },
726
+ close() {
727
+ this.printshow = false
728
+ this.all = false
729
+ },
730
+ // 对选择的列进行排序
731
+ sortModelval() {
732
+ let sortModel = []
733
+ Object.keys(this.fields).forEach((key) => {
734
+ if (this.modelval.includes(key)) {
735
+ sortModel.push(key)
736
+ }
737
+ })
738
+ this.modelval = sortModel
739
+ console.log('选择的打印的字段', this.modelval)
740
+ },
741
+ sort (field, rule) {
742
+ // 将所有排序方式设为不排序,实现相互排斥
743
+ for (let key in this.orderFields) {
744
+ if (key === field) {
745
+ this.orderFields[key] = rule
746
+ } else {
747
+ this.orderFields[key] = 'no'
748
+ }
749
+ }
750
+ // 如果新规则不排序,还原为默认排序
751
+ if (rule === 'no') {
752
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
768
753
  } else {
769
- this.orderFields[key] = 'no'
754
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
770
755
  }
771
- }
772
- // 如果新规则不排序,还原为默认排序
773
- if (rule === 'no') {
774
- this.model.paramSource.orderitem = `'${this.orderitem}'`
775
- } else {
776
- this.model.paramSource.orderitem = `'${field} ${rule}'`
777
- }
778
756
 
779
- this.search()
780
- },
757
+ this.search()
758
+ },
781
759
  },
782
760
  watch: {
783
761
  'all'(val) {
@@ -845,10 +823,10 @@
845
823
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
846
824
  }
847
825
  }
848
- }
826
+ }
849
827
  </script>
850
828
  <style scoped>
851
- .showbottom{
852
- height:95%
853
- }
829
+ .showbottom{
830
+ height:95%
831
+ }
854
832
  </style>
@@ -171,6 +171,7 @@ export default {
171
171
  'f_meter_style': '气表型号',
172
172
  'f_meter_type': '气表类型',
173
173
  'f_table_state': '表状态',
174
+ 'f_ischange_check ': '是否换表安检',
174
175
  'f_initial_base': '初始气表底数',
175
176
  'f_meter_base': '气表底数',
176
177
  'f_total_usegas_amount': '累计用气金额',
@@ -488,16 +488,16 @@
488
488
  <nobr>{{row.f_checker_name}}</nobr>
489
489
  </td>
490
490
  <td style="text-align: center;">
491
- <nobr>{{row.f_total_gas}}</nobr>
491
+ <nobr>{{row.f_defect_content?row.f_total_gas:''}}</nobr>
492
492
  </td>
493
493
  <td style="text-align: center;">
494
- <nobr>{{row.c}}</nobr>
494
+ <nobr>{{row.f_defect_content?row.c:''}}</nobr>
495
495
  </td>
496
496
  <td style="text-align: center;">
497
497
  <nobr>{{$parent.$parent.$parent.getContent(row.f_defect_content)}}</nobr>
498
498
  </td>
499
499
  <td style="text-align: center;">
500
- <nobr>{{row.f_repair_date}}</nobr>
500
+ <nobr>{{row.f_defect_content?row.f_repair_date:''}}</nobr>
501
501
  </td>
502
502
 
503
503
  <td style="text-align: center;">
@@ -635,7 +635,7 @@
635
635
  getContent(defectContent){
636
636
 
637
637
  if(defectContent =='' || defectContent == null){
638
- return '正常'
638
+ return '未知'
639
639
  }
640
640
  const defectData = JSON.parse(defectContent);
641
641
  if (defectData.result === '正常') {
@@ -296,11 +296,16 @@
296
296
  ],
297
297
  styles:false,
298
298
  orgid:[this.$login.f.orgid],
299
- getfield:{"f_insert_date":"上报日期","anzhuang":"安装户数",
299
+ getfield:{
300
+ "rownumber":"序号",
301
+ "f_insert_date":"上报日期",
302
+ "anzhuang":"安装户数",
300
303
  "c0":"停用户数",
301
304
  "c":"在用户数","user_bv":"用户使用率",
302
305
  "c1":"抄表成功户数",
303
- "f_gas_all":"总用气量","f_gas":"日均户均用气量(成功)",
306
+ "f_gas_all":"总用气量",
307
+ "f_fee_all":"总用气金额",
308
+ "f_gas":"日均户均用气量(成功)",
304
309
  "f_gas1":"日均户均用气量(在用)",
305
310
  "f_bv1":"抄表成功率"
306
311
  },
@@ -1,2 +0,0 @@
1
- #Tue Apr 15 16:40:30 CST 2025
2
- gradle.version=8.5
File without changes