manage-client 3.3.255 → 3.3.257

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.
@@ -97,25 +97,25 @@
97
97
  close-on-select></v-select>
98
98
  </div>
99
99
  <div class="col-sm-2 form-group" >
100
- <label for="startDate1" class="font_normal_body" title="抄表开始日期">抄表日期</label>
101
- <datepicker id="startDate1" placeholder="抄表开始日期" style="width:60%"
102
- v-model="model.startDate1"
103
- :value.sync="model.startDate1"
104
- :format="'yyyy-MM-dd'"
105
- :show-reset-button="true"
106
- condition="f_hand_date >= '{} 00:00:00'">
107
- </datepicker>
108
- </div>
109
- <div class="col-sm-2 form-group" >
110
- <label for="endDate1" class="font_normal_body" title="抄表结束日期">&emsp;至&emsp;&emsp;</label>
111
- <datepicker id="endDate1" placeholder="抄表结束日期" style="width:60%"
112
- v-model="model.endDate1"
113
- :value.sync="model.endDate1"
114
- :format="'yyyy-MM-dd'"
115
- :show-reset-button="true"
116
- condition="f_hand_date <= '{} 23:59:59'">
117
- </datepicker>
118
- </div>
100
+ <label for="startDate1" class="font_normal_body" title="抄表开始日期">抄表日期</label>
101
+ <datepicker id="startDate1" placeholder="抄表开始日期" style="width:60%"
102
+ v-model="model.startDate1"
103
+ :value.sync="model.startDate1"
104
+ :format="'yyyy-MM-dd'"
105
+ :show-reset-button="true"
106
+ condition="f_hand_date >= '{} 00:00:00'">
107
+ </datepicker>
108
+ </div>
109
+ <div class="col-sm-2 form-group" >
110
+ <label for="endDate1" class="font_normal_body" title="抄表结束日期">&emsp;至&emsp;&emsp;</label>
111
+ <datepicker id="endDate1" placeholder="抄表结束日期" style="width:60%"
112
+ v-model="model.endDate1"
113
+ :value.sync="model.endDate1"
114
+ :format="'yyyy-MM-dd'"
115
+ :show-reset-button="true"
116
+ condition="f_hand_date <= '{} 23:59:59'">
117
+ </datepicker>
118
+ </div>
119
119
  <div class="col-sm-2 form-group">
120
120
  <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
121
121
  <v-select :value.sync="model.f_residential_area"
@@ -295,6 +295,32 @@
295
295
  <input type="text" style="width:60%" class="input_search" v-model="model.f_street"
296
296
  condition="f_street like '%{}%'" placeholder='区域'>
297
297
  </div>
298
+
299
+
300
+ <div class="col-sm-2 form-group">
301
+ <label class="font_normal_body">是否安装报警器</label>
302
+ <v-select :value.sync="model.f_has_bjq" v-model="model.f_has_bjq"
303
+ :options='$parent.$parent.bjq' placeholder='请选择'
304
+ condition="f_has_bjq = '{}'"
305
+ close-on-select
306
+ style="width: 125px !important; min-width: 125px; max-width: 125px;"></v-select>
307
+ </div>
308
+ <div class="col-sm-2 form-group">
309
+ <label class="font_normal_body">是否有切断阀</label>
310
+ <v-select :value.sync="model.f_has_qdf" v-model="model.f_has_qdf"
311
+ :options='$parent.$parent.qdf' placeholder='请选择'
312
+ condition="f_has_qdf = '{}'"
313
+ close-on-select
314
+ style="width: 139px !important; min-width: 139px; max-width: 139px;"></v-select>
315
+ </div>
316
+ <div class="col-sm-2 form-group">
317
+ <label class="font_normal_body" >是否有自闭阀</label>
318
+ <v-select :value.sync="model.f_has_zbf" v-model="model.f_has_zbf"
319
+ :options='$parent.$parent.zbf' placeholder='请选择'
320
+ condition="f_has_zbf = '{}'"
321
+ close-on-select
322
+ style="width: 139px !important; min-width: 139px; max-width: 139px;"></v-select>
323
+ </div>
298
324
  </div>
299
325
  </div>
300
326
  </criteria>
@@ -381,6 +407,9 @@
381
407
 
382
408
  <th><nobr>表同步状态</nobr></th>
383
409
  <th><nobr>微信绑定</nobr></th>
410
+ <th><nobr>是否安装报警器</nobr></th>
411
+ <th><nobr>是否有切断阀</nobr></th>
412
+ <th><nobr>是否有自闭阀</nobr></th>
384
413
 
385
414
  </tr>
386
415
  </template>
@@ -465,6 +494,9 @@
465
494
  <!-- <td style="text-align: center;"><nobr>{{row.f_sell_number}}</nobr></td>-->
466
495
  <td style="text-align: center;"><nobr>{{row.f_sendsuccess}}</nobr></td>
467
496
  <td style="text-align: center;"><nobr>{{row.f_isband}}</nobr></td>
497
+ <td style="text-align: center;"><nobr>{{row.f_has_bjq}}</nobr></td>
498
+ <td style="text-align: center;"><nobr>{{row.f_has_qdf}}</nobr></td>
499
+ <td style="text-align: center;"><nobr>{{row.f_has_zbf}}</nobr></td>
468
500
 
469
501
  </template>
470
502
  <template partial='foot'>
@@ -514,361 +546,370 @@
514
546
  </template>
515
547
 
516
548
  <script>
517
- import {HttpResetClass, PagedList} from 'vue-client'
518
- import defaultPrint from './../../components/sale/config/DefaultPrint'
519
- import exportConfig from './exportConfig'
520
-
521
- let readySomething = async function (self) {
522
- self.initParams()
523
- self.smallareas=[{label: '全部',value: ''},...await self.$MagGetSaleParam.getsmallarea(self.$login.f.orgid)]
524
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
525
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
526
- // await self.$refs.paged.$refs.cri.search()
527
- }
528
- export default {
529
- data() {
530
- return {
531
- other:[],
532
- footer:[],
533
- model: new PagedList('api/af-revenue/sql/compreQuery', 20),
534
- criteriaShow: false,
535
- orgCondtionStr:'',
536
- residentialArea: [],
537
- smallareas:[{label: '全部',value: ''}], //区域
538
- gasproperties:[],
539
- meterbrands: [],
540
- modelval: [],
541
- prices: [],
542
- printshow: false,
543
- all: false,
544
- fields: {},
545
- thead: '',
546
- tfoot: '',
547
- area: [],
548
- inputtouPerson: [],
549
- bookinputtorperson:[],
550
- conditon2:'',
551
- show:false,
552
- rowdata:{},
553
- f_filialeid: this.$login.f.orgid,
554
- // 下拉框参数
555
- userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
556
- bandstates:this.$appdata.getParam('微信绑定') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('微信绑定')] : [],
557
- initres: {
558
- org:[this.$login.f.orgid],
559
- dep:[],
560
- user:[],
561
- },
562
- // 合计数据
563
- sumsmodel: {}
564
- }
549
+ import {HttpResetClass, PagedList} from 'vue-client'
550
+ import defaultPrint from './../../components/sale/config/DefaultPrint'
551
+ import exportConfig from './exportConfig'
552
+
553
+ let readySomething = async function (self) {
554
+ self.initParams()
555
+ self.smallareas=[{label: '全部',value: ''},...await self.$MagGetSaleParam.getsmallarea(self.$login.f.orgid)]
556
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
557
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
558
+ // await self.$refs.paged.$refs.cri.search()
559
+ }
560
+ export default {
561
+ data() {
562
+ return {
563
+ other:[],
564
+ footer:[],
565
+ model: new PagedList('api/af-revenue/sql/compreQuery', 20),
566
+ criteriaShow: false,
567
+ orgCondtionStr:'',
568
+ residentialArea: [],
569
+ smallareas:[{label: '全部',value: ''}], //区域
570
+ gasproperties:[],
571
+ meterbrands: [],
572
+ modelval: [],
573
+ prices: [],
574
+ printshow: false,
575
+ all: false,
576
+ fields: {},
577
+ thead: '',
578
+ tfoot: '',
579
+ area: [],
580
+ inputtouPerson: [],
581
+ bookinputtorperson:[],
582
+ conditon2:'',
583
+ show:false,
584
+ rowdata:{},
585
+ f_filialeid: this.$login.f.orgid,
586
+ // 下拉框参数
587
+ userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
588
+ bandstates:this.$appdata.getParam('微信绑定') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('微信绑定')] : [],
589
+ initres: {
590
+ org:[this.$login.f.orgid],
591
+ dep:[],
592
+ user:[],
593
+ },
594
+ // 合计数据
595
+ sumsmodel: {}
596
+ }
597
+ },
598
+ ready(){
599
+ this.getaddress()
600
+ readySomething(this).then(() => {
601
+ this.$emit('ready')
602
+ }).catch((error) => {
603
+ this.$emit('error', error)
604
+ })
605
+ },
606
+ methods: {
607
+ getotherfooter () {
608
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
609
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
610
+ this.other = [];
611
+ this.footer = [];
612
+ let exportdata = this.getCondition;
613
+ let otherInData = [];
614
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
615
+ // let footerData = [], exportfield = this.getExportField;
616
+ // footerData.push("合计");
617
+ // let self = this;
618
+ // for (var field in self.sumsmodel) {
619
+ // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
620
+ // }
621
+ // this.footer.push(footerData);
622
+ this.other.push(otherInData);
565
623
  },
566
- ready(){
567
- this.getaddress()
568
- readySomething(this).then(() => {
569
- this.$emit('ready')
570
- }).catch((error) => {
571
- this.$emit('error', error)
624
+ initParams() {
625
+ // 初始化气表品牌
626
+ let brandArr = []
627
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
628
+ let temp = {}
629
+ temp.label = item.label
630
+ temp.value = item.value.f_meter_brand
631
+ brandArr.push(temp)
572
632
  })
633
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
634
+ //初始化气表价格
635
+ this.prices = this.$MagGetSaleParam.getPrices();
573
636
  },
574
- methods: {
575
- getotherfooter () {
576
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
577
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
578
- this.other = [];
579
- this.footer = [];
580
- let exportdata = this.getCondition;
581
- let otherInData = [];
582
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
583
- // let footerData = [], exportfield = this.getExportField;
584
- // footerData.push("合计");
585
- // let self = this;
586
- // for (var field in self.sumsmodel) {
587
- // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
588
- // }
589
- // this.footer.push(footerData);
590
- this.other.push(otherInData);
591
- },
592
- initParams() {
593
- // 初始化气表品牌
594
- let brandArr = []
595
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
596
- let temp = {}
597
- temp.label = item.label
598
- temp.value = item.value.f_meter_brand
599
- brandArr.push(temp)
600
- })
601
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
602
- //初始化气表价格
603
- this.prices = this.$MagGetSaleParam.getPrices();
604
- },
605
- async getaddress(){
606
- console.log('开始获取小区')
607
- let HttpReset = new HttpResetClass()
608
- var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
609
- data: {
610
- condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
611
- }
612
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
613
- console.log('小区',data)
614
- let house = [{label: '全部', value: ''}]
615
- for (let row of data.data){
616
- console.log('开始保存小区')
617
- house.push({label: row.f_residential_area, value: row.f_residential_area})
618
- }
619
- this.residentialArea = house
620
- },
621
- search(){
622
- this.$refs.paged.$refs.cri.search()
623
- },
624
- cancel() {
625
- this.show = false
626
- },
627
- showmsg(obj){
628
- this.rowdata=obj
629
- this.show=true
630
- },
631
- selfSearch (args) {
632
-
633
- //抄表员查询条件
634
- this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
635
- if(this.inputtouPerson.length !== 0){
636
- let str = JSON.stringify(this.inputtouPerson)
637
- str = str.replace(/"/g,`'`)
638
- str = str.replace(/\[/g,``)
639
- str = str.replace(/\]/g,``)
640
- console.log("=====抄表员model22222222222绑定====",str)
641
- //查询多个抄表员时条件
642
- args.condition += ` and f_inputtor in ( ${str} )`
643
- }
644
- //
645
- debugger
646
- this.bookinputtorperson = this.$refs.paged.$refs.cri.model.f_book_inputtor;
647
- if(this.bookinputtorperson.length !== 0){
648
- let str = JSON.stringify(this.bookinputtorperson)
649
- str = str.replace(/"/g,`'`)
650
- str = str.replace(/\[/g,``)
651
- str = str.replace(/\]/g,``)
652
- console.log("=====抄表员model22222222222绑定====",str)
653
- //查询多个抄表员时条件
654
- args.condition += ` and f_book_inputtor in ( ${str} )`
637
+ async getaddress(){
638
+ console.log('开始获取小区')
639
+ let HttpReset = new HttpResetClass()
640
+ var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
641
+ data: {
642
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
655
643
  }
644
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
645
+ console.log('小区',data)
646
+ let house = [{label: '全部', value: ''}]
647
+ for (let row of data.data){
648
+ console.log('开始保存小区')
649
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
650
+ }
651
+ this.residentialArea = house
652
+ },
653
+ search(){
654
+ this.$refs.paged.$refs.cri.search()
655
+ },
656
+ cancel() {
657
+ this.show = false
658
+ },
659
+ showmsg(obj){
660
+ this.rowdata=obj
661
+ this.show=true
662
+ },
663
+ selfSearch (args) {
664
+
665
+ //抄表员查询条件
666
+ this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
667
+ if(this.inputtouPerson.length !== 0){
668
+ let str = JSON.stringify(this.inputtouPerson)
669
+ str = str.replace(/"/g,`'`)
670
+ str = str.replace(/\[/g,``)
671
+ str = str.replace(/\]/g,``)
672
+ console.log("=====抄表员model22222222222绑定====",str)
673
+ //查询多个抄表员时条件
674
+ args.condition += ` and f_inputtor in ( ${str} )`
675
+ }
676
+ //
677
+ debugger
678
+ this.bookinputtorperson = this.$refs.paged.$refs.cri.model.f_book_inputtor;
679
+ if(this.bookinputtorperson.length !== 0){
680
+ let str = JSON.stringify(this.bookinputtorperson)
681
+ str = str.replace(/"/g,`'`)
682
+ str = str.replace(/\[/g,``)
683
+ str = str.replace(/\]/g,``)
684
+ console.log("=====抄表员model22222222222绑定====",str)
685
+ //查询多个抄表员时条件
686
+ args.condition += ` and f_book_inputtor in ( ${str} )`
687
+ }
656
688
 
657
- //小区查询条件
658
- this.area = this.$refs.paged.$refs.cri.model.f_residential_area
659
- console.log("=====小区model绑定====",this.area)
660
- if(this.area.length !== 0){
661
- let str = JSON.stringify(this.area)
662
- str = str.replace(/"/g,`'`)
663
- str = str.replace(/\[/g,``)
664
- str = str.replace(/\]/g,``)
665
- console.log("=====小区model22222222222绑定====",str)
666
- //查询多个小区时条件
667
- args.condition += ` and f_residential_area in ( ${str} )`
668
- }
689
+ //小区查询条件
690
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
691
+ console.log("=====小区model绑定====",this.area)
692
+ if(this.area.length !== 0){
693
+ let str = JSON.stringify(this.area)
694
+ str = str.replace(/"/g,`'`)
695
+ str = str.replace(/\[/g,``)
696
+ str = str.replace(/\]/g,``)
697
+ console.log("=====小区model22222222222绑定====",str)
698
+ //查询多个小区时条件
699
+ args.condition += ` and f_residential_area in ( ${str} )`
700
+ }
669
701
 
670
702
 
671
- if (!this.orgCondtionStr) {
672
- args.condition = `${args.condition}` + " and uf.f_orgid = " + this.$login.f.orgid
673
- } else {
674
- args.condition = `${args.condition}` + this.orgCondtionStr
675
- }
676
- this.conditon2 = args.condition
677
- console.log("查看条件",this.conditon2)
678
- this.model.search(args.condition, args.model)
679
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
680
- console.log('合计字段',this.sumsmodel)
703
+ if (!this.orgCondtionStr) {
704
+ args.condition = `${args.condition}` + " and uf.f_orgid = " + this.$login.f.orgid
705
+ } else {
706
+ args.condition = `${args.condition}` + this.orgCondtionStr
707
+ }
708
+ this.conditon2 = args.condition
709
+ console.log("查看条件",this.conditon2)
710
+ this.model.search(args.condition, args.model)
711
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
712
+ console.log('合计字段',this.sumsmodel)
681
713
 
682
- },
683
- clear(){
684
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
685
- this.$refs.paged.$refs.cri.model[key] = []
686
- })
687
- },
688
- hidden(){
689
- this.criteriaShow = !this.criteriaShow
690
- },
691
- getRes(obj) {
692
- this.orgCondtionStr = obj
693
- },
694
- stamp () {
695
- this.all = false
696
- //默认选择要打印的列
697
- this.modelval = defaultPrint.config
698
- this.fields = this.getfield
699
- console.log('所有打印字段',this.fields)
700
- this.printshow = true
701
- this.put()
702
- },
703
- put () {
704
- // 对Modelval进行排序
705
- this.sortModelval()
706
- this.thead = `<tr><th colspan=${this.modelval.length}>设备查询统计报表</th></tr><tr>`
707
- for (let key of this.modelval) {
708
- this.thead += '<th>' + this.fields[key] + '</th>'
709
- }
710
- this.thead += '</tr>'
711
- },
712
- print () {
713
- this.$refs.print.PrintAsFile()
714
- this.printshow = false
715
- },
716
- close () {
717
- this.printshow = false
718
- this.all = false
719
- },
720
- userTypeChange () {
721
- this.gasproperties=[]
722
- if(this.$refs.paged.$refs.cri.model !==null) {
723
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
724
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
725
- // this.gasproperties.push({label: '全部', value: ''})
726
- }
727
- else{
728
- this.gasproperties =[{label: '全部', value: ''}]
729
- }
730
- },
731
- // 对选择的列进行排序
732
- sortModelval () {
733
- let sortModel = []
734
- Object.keys(this.fields).forEach((key) => {
735
- if (this.modelval.includes(key)) {
736
- sortModel.push(key)
737
- }
738
- })
739
- this.modelval = sortModel
740
- console.log('选择的打印的字段', this.modelval)
714
+ },
715
+ clear(){
716
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
717
+ this.$refs.paged.$refs.cri.model[key] = []
718
+ })
719
+ },
720
+ hidden(){
721
+ this.criteriaShow = !this.criteriaShow
722
+ },
723
+ getRes(obj) {
724
+ this.orgCondtionStr = obj
725
+ },
726
+ stamp () {
727
+ this.all = false
728
+ //默认选择要打印的列
729
+ this.modelval = defaultPrint.config
730
+ this.fields = this.getfield
731
+ console.log('所有打印字段',this.fields)
732
+ this.printshow = true
733
+ this.put()
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
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
742
751
  },
743
- watch:{
744
- 'all' (val) {
745
- if (val) {
746
- this.modelval = this.bodyData
747
- } else {
748
- this.modelval = defaultPrint.config
749
- this.put()
752
+ userTypeChange () {
753
+ this.gasproperties=[]
754
+ if(this.$refs.paged.$refs.cri.model !==null) {
755
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
756
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
757
+ // this.gasproperties.push({label: '全部', value: ''})
758
+ }
759
+ else{
760
+ this.gasproperties =[{label: '全部', value: ''}]
761
+ }
762
+ },
763
+ // 对选择的列进行排序
764
+ sortModelval () {
765
+ let sortModel = []
766
+ Object.keys(this.fields).forEach((key) => {
767
+ if (this.modelval.includes(key)) {
768
+ sortModel.push(key)
750
769
  }
751
- },
752
- 'modelval.length' () {
770
+ })
771
+ this.modelval = sortModel
772
+ console.log('选择的打印的字段', this.modelval)
773
+ }
774
+ },
775
+ watch:{
776
+ 'all' (val) {
777
+ if (val) {
778
+ this.modelval = this.bodyData
779
+ } else {
780
+ this.modelval = defaultPrint.config
753
781
  this.put()
782
+ }
783
+ },
784
+ 'modelval.length' () {
785
+ this.put()
786
+ },
787
+ sumsmodel:{
788
+ handler: function(val) {
789
+ this.getotherfooter();
754
790
  },
755
- sumsmodel:{
756
- handler: function(val) {
757
- this.getotherfooter();
758
- },
759
- deep: true
760
- },
791
+ deep: true
761
792
  },
762
- computed:{
793
+ },
794
+ computed: {
763
795
 
764
- bgl(){
765
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('壁挂炉')]
766
- },
767
- houseTypes(){
768
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('房屋类型')]
769
- },
770
- whetherCard(){
771
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('发卡状态')]
772
- },
773
- usertypes() {
774
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
775
- },
776
- positions() {
777
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('安装位置')]
778
- },
779
- meterbooks(){
780
- return [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
781
- },
782
- // gasproperties() {
783
- // return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
784
- // },
796
+ bgl() {
797
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('壁挂炉')]
798
+ },
799
+ bjq() {
800
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('报警器')]
801
+ },
802
+ qdf() {
803
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('切断阀')]
804
+ },
805
+ zbf() {
806
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('自闭阀')]
807
+ },
808
+ houseTypes() {
809
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('房屋类型')]
810
+ },
811
+ whetherCard() {
812
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('发卡状态')]
813
+ },
814
+ usertypes() {
815
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
816
+ },
817
+ positions() {
818
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('安装位置')]
819
+ },
820
+ meterbooks() {
821
+ return [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
822
+ },
823
+ // gasproperties() {
824
+ // return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
825
+ // },
785
826
 
786
- metertypes() {
787
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
788
- },
789
- pricetypes() {
790
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
791
- },
792
- tablestate() {
793
- return [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}]
794
- },
795
- getPricenames() {
796
- let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
797
- let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
798
- let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
799
- // console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
800
- if(this.$refs.paged.$refs.cri.model !==null) {
801
- console.log(1111)
802
- console.log(11112, this.prices)
803
- let rs = []
804
- let priceArr = []
805
- if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
806
- let params = {
807
- f_user_type: f_user_type[0],
808
- f_gasproperties: f_gasproperties[0],
809
- f_price_type: pricetype[0],
810
- filter: this.f_filialeid,
811
- prices: this.prices
812
- }
813
- console.log(11113,params,this.$login.f)
814
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
815
- let temp = {}
816
- temp.label = item.label
817
- temp.value = item.value.f_price_name
818
- priceArr.push(temp)
819
- })
820
- rs = [{label: '全部', value: ''}, ...priceArr]
821
- }
822
- if (rs.length === 0) {
823
- console.log('rs读出来是空')
824
- this.$refs.paged.$refs.cri.model.f_price_name = ''
827
+ metertypes() {
828
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
829
+ },
830
+ pricetypes() {
831
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
832
+ },
833
+ tablestate() {
834
+ return [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}]
835
+ },
836
+ getPricenames() {
837
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
838
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
839
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
840
+ // console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
841
+ if (this.$refs.paged.$refs.cri.model !== null) {
842
+ console.log(1111)
843
+ console.log(11112, this.prices)
844
+ let rs = []
845
+ let priceArr = []
846
+ if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length > 0) {
847
+ let params = {
848
+ f_user_type: f_user_type[0],
849
+ f_gasproperties: f_gasproperties[0],
850
+ f_price_type: pricetype[0],
851
+ filter: this.f_filialeid,
852
+ prices: this.prices
825
853
  }
826
- return rs
854
+ console.log(11113, params, this.$login.f)
855
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
856
+ let temp = {}
857
+ temp.label = item.label
858
+ temp.value = item.value.f_price_name
859
+ priceArr.push(temp)
860
+ })
861
+ rs = [{label: '全部', value: ''}, ...priceArr]
827
862
  }
828
- },
829
- inputtores () {
830
- // 获取抄表员
831
- console.log('获取抄表员', this.$login.f)
832
- let rs = []
833
- if (this.$login.f.f_gasman.length > 0) {
834
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
835
- let temp = {
836
- label: this.$login.f.f_gasman[i].name,
837
- value: this.$login.f.f_gasman[i].name
838
- }
839
- rs.push(temp)
863
+ if (rs.length === 0) {
864
+ console.log('rs读出来是空')
865
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
866
+ }
867
+ return rs
868
+ }
869
+ },
870
+ inputtores() {
871
+ // 获取抄表员
872
+ console.log('获取抄表员', this.$login.f)
873
+ let rs = []
874
+ if (this.$login.f.f_gasman.length > 0) {
875
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
876
+ let temp = {
877
+ label: this.$login.f.f_gasman[i].name,
878
+ value: this.$login.f.f_gasman[i].name
840
879
  }
880
+ rs.push(temp)
841
881
  }
882
+ }
842
883
 
843
- return [{label: '全部', value: ''}, ...rs]
844
- },
845
- authArr () {
846
- return this.$login.r ? this.$login.r : []
847
- },
848
- getCondition(){
884
+ return [{label: '全部', value: ''}, ...rs]
885
+ },
886
+ authArr() {
887
+ return this.$login.r ? this.$login.r : []
888
+ },
889
+ getCondition() {
849
890
 
850
- return {condition:this.conditon2}
851
- },
852
- getfield(){
853
- let data = {}
854
- this.bodyData.forEach((value, index)=>{
855
- data[this.bodyData[index]] = this.headData[index]
891
+ return {condition: this.conditon2}
892
+ },
893
+ getfield() {
894
+ let data = {}
895
+ this.bodyData.forEach((value, index) => {
896
+ data[this.bodyData[index]] = this.headData[index]
897
+ })
898
+ //合计字段打印
899
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
900
+ if (this.sumsmodel) {
901
+ Object.keys(this.sumsmodel).forEach((key) => {
902
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
856
903
  })
857
- //合计字段打印
858
- this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
859
- if(this.sumsmodel){
860
- Object.keys(this.sumsmodel).forEach((key) => {
861
- this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
862
- })
863
- }else{
864
- this.tfoot += '暂无'
865
- }
866
- this.tfoot += '</th></tr>'
867
- return data
868
- },
869
- getExportField() {
870
- return exportConfig.compreConfig
904
+ } else {
905
+ this.tfoot += '暂无'
871
906
  }
907
+ this.tfoot += '</th></tr>'
908
+ return data
909
+ },
910
+ getExportField() {
911
+ return exportConfig.compreConfig
872
912
  }
873
913
  }
914
+ }
874
915
  </script>