manage-client 3.2.281 → 3.2.283-1

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.
@@ -18,7 +18,7 @@
18
18
  <div class="col-sm-2">
19
19
  <label class="font_normal_body">客户编号</label>
20
20
  <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
21
- condition="f_userinfo_code = '{}'" v-next-el='f_userinfo_code' v-el:meternumber
21
+ condition="f_userinfo_code = '{}'" v-next-el='f_userinfo_code' v-el:meternumber @change="$parent.$parent.inputChange"
22
22
  >
23
23
  </div>
24
24
  <div class="col-sm-2">
@@ -281,7 +281,7 @@
281
281
  orgCondtionStr: '',
282
282
  model: new PagedList('rs/sql/manage_webmeterHandQuery', 50,{
283
283
  startDate: 'this.model.startDate',
284
- endDate: 'this.model.endDate'
284
+ endDate: 'this.model.endDate',f_userinfo_code: 'this.model.f_userinfo_code'
285
285
  }),
286
286
  showbottomsum:false //页面下方是否有合计: 默认为false, 在watch修改
287
287
  }
@@ -293,11 +293,20 @@
293
293
  }).catch((error) => {
294
294
  this.$emit('error', error)
295
295
  })
296
- // this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),0).substring(0,10) + ' 00:00:00'
297
- // this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),0).substring(0,10) + ' 23:59:59'
296
+ this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),0).substring(0,10) + ' 00:00:00'
297
+ this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),0).substring(0,10) + ' 23:59:59'
298
298
  // this.$refs.paged.$refs.criteria.search()
299
299
  },
300
300
  methods: {
301
+ inputChange () {
302
+ if (this.$refs.paged.$refs.criteria.model.f_userinfo_code){
303
+ this.$refs.paged.$refs.criteria.model.startDate = ''
304
+ this.$refs.paged.$refs.criteria.model.endDate = ''
305
+ }else{
306
+ this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),0).substring(0,10) + ' 00:00:00'
307
+ this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),0).substring(0,10) + ' 23:59:59'
308
+ }
309
+ },
301
310
  initParams() {
302
311
  // 初始化气表品牌
303
312
  let brandArr = []
@@ -354,15 +363,6 @@
354
363
  },
355
364
 
356
365
  search (args) {
357
- if (this.$refs.paged.$refs.criteria.model.startDate == '' || this.$refs.paged.$refs.criteria.model.endDate == ''){
358
- if (this.$refs.paged.$refs.criteria.model.f_userinfo_code){
359
- this.$refs.paged.$refs.criteria.model.startDate = '1990-01-01 00:00:00'
360
- this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),1).substring(0,10) + ' 00:00:00'
361
- }else{
362
- this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),0).substring(0,10) + ' 00:00:00'
363
- this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),0).substring(0,10) + ' 23:59:59'
364
- }
365
- }
366
366
  args.condition = `${args.condition}`+this.orgcondition
367
367
  this.condition = args.condition
368
368
  this.model.search(args.condition, args.model)
@@ -867,22 +867,22 @@ export default{
867
867
  },
868
868
  // 物联网表抄表
869
869
  webmeterHandConfig: {
870
- 'f_userinfo_code': '用户编号',
871
- 'f_user_name': '用户名称',
870
+ 'f_userinfo_code': '客户编号',
871
+ 'f_user_name': '客户名称',
872
872
  'f_residential_area': '小区名称',
873
873
  'f_address': '地址',
874
- 'f_meter_brand': '气表品牌',
875
874
  'f_meternumber': '表号',
876
- 'f_oughtamount': '本期气量',
877
- 'f_oughtfee': '本期金额',
878
- 'f_jval': '表内剩余余额',
875
+ 'f_meter_brand': '气表品牌',
879
876
  'f_hand_date': '抄表日期',
880
877
  'f_total_fee': '累计购气金额',
881
878
  'f_last_tablebase': '上期底数',
882
879
  'f_tablebase': '本期底数',
883
- 'f_balance_amount': '系统余额',
880
+ 'f_curbalance': '系统余额',
881
+ 'f_jval': '表上余额',
884
882
  'cyclegas': '当前周期已用气量',
885
883
  'cyclefee': '当前周期消费金额',
884
+ 'f_oughtamount': '本次气量',
885
+ 'f_oughtfee': '本次金额',
886
886
  'f_stair1price': '一阶气价',
887
887
  'f_stairamount1': '一阶气量',
888
888
  'f_stair1fee': '一阶金额',
@@ -0,0 +1,197 @@
1
+ <template lang="html">
2
+ <div id="charts">
3
+ <div id="bm" :style="{width:'100%',height:'100%'}"></div>
4
+ </div>
5
+ </template>
6
+
7
+ <script>
8
+ import * as Util from '../../Util'
9
+ import co from 'co'
10
+ import echarts from 'echarts'
11
+ import {HttpResetClass} from 'vue-client'
12
+
13
+ let getData = function* (self) {
14
+ let load = new HttpResetClass()
15
+ load.load('POST', 'rs/sql/userfilesvalues',
16
+ {data: {startDate: self.startdate, endDate: self.enddate, f_orgid: self.orgid}},
17
+ {resolveMsg: null, rejectMsg: null})
18
+ .then((res) => {
19
+ self.texttile = '用户类型'
20
+ // let arrparams = []
21
+ console.log('获取数据。。', res.data)
22
+ let org = []
23
+ let numgf = []
24
+ let numjm = []
25
+ let numsy = []
26
+ let numbg = []
27
+ let numgy = []
28
+ let numjm2 = []
29
+ for (var i = 0; i < res.data.length; i++) {
30
+ if (!org.includes(res.data[i].org)) {
31
+ org.push(res.data[i].org)
32
+ }
33
+ if (res.data[i].name === '工业用气') {
34
+ numgy[org.indexOf(res.data[i].org)] = res.data[i].num
35
+ } else if (res.data[i].name === '公福用气') {
36
+ numgf[org.indexOf(res.data[i].org)] = res.data[i].num
37
+ } else if (res.data[i].name === '商业用气') {
38
+ numsy[org.indexOf(res.data[i].org)] = res.data[i].num
39
+ } else if (res.data[i].name === '壁挂炉用气') {
40
+ numbg[org.indexOf(res.data[i].org)] = res.data[i].num
41
+ } else if (res.data[i].name === '居民用气') {
42
+ numjm[org.indexOf(res.data[i].org)] = res.data[i].num
43
+ } else {
44
+ numjm2[org.indexOf(res.data[i].org)] = res.data[i].num
45
+ }
46
+ }
47
+ self.set(org, numgy, numjm, numbg, numsy, numgf, numjm2)
48
+ })
49
+ }
50
+ export default {
51
+ props: {
52
+ startdate: {
53
+ type: String,
54
+ default: Util.toStandardDateString()
55
+ },
56
+ enddate: {
57
+ type: String,
58
+ default: Util.toStandardDateString()
59
+ },
60
+ orgid: {
61
+ type: String
62
+ }
63
+ },
64
+ data () {
65
+ title: '银行管理'
66
+ return {
67
+ texttile: '',
68
+ xc: ''
69
+ }
70
+ },
71
+ methods: {
72
+ set (org, numgy, numjm, numbg, numsy, numgf, numjm2) {
73
+ this.xc = echarts.init(document.getElementById('bm'))
74
+ this.xc.setOption({
75
+ title: {
76
+ text: '用户散列图',
77
+ subtext: '数据查询来源',
78
+ x: 'left'
79
+ },
80
+ tooltip: {
81
+ trigger: 'item',
82
+ formatter: function (params) {
83
+ return params.name + '</br>' + params.seriesName + ': ' + params.value + '户'
84
+ }
85
+ },
86
+ legend: {
87
+ x: 'left',
88
+ y: 'bottom',
89
+ data: ['居民用气', '公福用气', '商业用气', '工业用气', '壁挂炉用气', '供暖锅炉']
90
+ },
91
+ toolbox: {
92
+ show: true,
93
+ feature: {
94
+ dataView: {show: true, readOnly: false},
95
+ magicType: {show: true, type: ['line', 'bar']},
96
+ restore: {show: true},
97
+ saveAsImage: {show: true}
98
+ }
99
+ },
100
+ calculable: true,
101
+ xAxis: [
102
+ {
103
+ type: 'category',
104
+ data: org
105
+ }
106
+ ],
107
+ yAxis: [
108
+ {
109
+ type: 'value'
110
+ }
111
+ ],
112
+ series: [
113
+ {
114
+ name: '居民用气',
115
+ type: 'bar',
116
+ data: numjm,
117
+ markLine: {
118
+ data: [
119
+ {type: 'average', name: '平均值'}
120
+ ]
121
+ }
122
+ },
123
+ {
124
+ name: '公福用气',
125
+ type: 'bar',
126
+ data: numgf,
127
+ markLine: {
128
+ data: [
129
+ {type: 'average', name: '平均值'}
130
+ ]
131
+ }
132
+ },
133
+ {
134
+ name: '商业用气',
135
+ type: 'bar',
136
+ data: numsy,
137
+ markLine: {
138
+ data: [
139
+ {type: 'average', name: '平均值'}
140
+ ]
141
+ }
142
+ },
143
+ {
144
+ name: '工业用气',
145
+ type: 'bar',
146
+ data: numgy,
147
+ markLine: {
148
+ data: [
149
+ {type: 'average', name: '平均值'}
150
+ ]
151
+ }
152
+ },
153
+ {
154
+ name: '壁挂炉用气',
155
+ type: 'bar',
156
+ data: numbg,
157
+ markLine: {
158
+ data: [
159
+ {type: 'average', name: '平均值'}
160
+ ]
161
+ }
162
+ },
163
+ {
164
+ name: '供暖锅炉',
165
+ type: 'bar',
166
+ data: numjm2,
167
+ markLine: {
168
+ data: [
169
+ {type: 'average', name: '平均值'}
170
+ ]
171
+ }
172
+ }
173
+ ]
174
+ })
175
+ },
176
+ searchdata () {
177
+ let getGen = getData(this)
178
+ co(getGen)
179
+ }
180
+ },
181
+ ready () {
182
+ this.searchdata()
183
+ },
184
+ watch: {
185
+ 'startdate' (val) {
186
+ this.searchdata()
187
+ },
188
+ 'enddate' (val) {
189
+ this.searchdata()
190
+ },
191
+ 'orgid' (val) {
192
+ this.searchdata()
193
+ }
194
+ }
195
+
196
+ }
197
+ </script>
@@ -39,12 +39,12 @@
39
39
  <div style="height: 97%;" v-if="showPage === 1">
40
40
  <div class="flex-row" style="flex: 1;border-bottom: 1px dashed #888;height: 48%">
41
41
  <div style="flex: 1;border-right: 1px dashed #888;width: 50%">
42
- <households-type :startdate='model.startDate' :enddate='model.endDate' :orgid='model.orgid[0]'
42
+ <households-type :startdate='processedStartDate' :enddate='model.endDate' :orgid='model.orgid[0]'
43
43
  v-ref:pay></households-type>
44
44
  <!-- <test></test>-->
45
45
  </div>
46
46
  <div style="flex: 1;width: 50%">
47
- <bank-manager :startdate='model.startDate' :enddate='model.endDate' :orgid='model.orgid[0]'
47
+ <bank-manager :startdate='processedStartDate' :enddate='model.endDate' :orgid='model.orgid[0]'
48
48
  v-ref:pay></bank-manager>
49
49
  </div>
50
50
  </div>
@@ -52,7 +52,7 @@
52
52
 
53
53
  <div class="flex-row" style="flex: 1;width: 50%;border-right: 1px dashed #888;">
54
54
  <div style="flex: 1;">
55
- <paymentpie :startdate='model.startDate' :enddate='model.endDate' :orgid='model.orgid[0]'
55
+ <paymentpie :startdate='processedStartDate' :enddate='model.endDate' :orgid='model.orgid[0]'
56
56
  v-ref:pay></paymentpie>
57
57
  </div>
58
58
  <!-- <div style="flex: 1;">-->
@@ -61,7 +61,7 @@
61
61
  </div>
62
62
 
63
63
  <div style="flex: 1;width: 50%">
64
- <data-acquisition-type :startdate='model.startDate' :enddate='model.endDate' :orgid='model.orgid[0]'
64
+ <data-acquisition-type :startdate='processedStartDate' :enddate='model.endDate' :orgid='model.orgid[0]'
65
65
  v-ref:pay></data-acquisition-type>
66
66
  </div>
67
67
  </div>
@@ -69,7 +69,7 @@
69
69
  <div style="height: 97%;" v-if="showPage === 2">
70
70
  <div class="flex-row" style="flex: 1;height: 96%">
71
71
  <div style="flex: 1">
72
- <gas-properties-manager :startdate='model.startDate' :enddate='model.endDate' :orgid='model.orgid[0]'></gas-properties-manager>
72
+ <gas-properties-manager :startdate='processedStartDate' :enddate='model.endDate' :orgid='model.orgid[0]'></gas-properties-manager>
73
73
  </div>
74
74
  </div>
75
75
  </div>
@@ -106,7 +106,7 @@ export default {
106
106
  model: {
107
107
  id: [this.$login.f.orgid],
108
108
  orgid: [this.$login.f.orgid],
109
- startDate: Util.toStandardDateString(),
109
+ startDate: '',
110
110
  endDate: Util.toStandardDateString()
111
111
  }
112
112
  }
@@ -126,6 +126,11 @@ export default {
126
126
  getRes (obj) {
127
127
  this.model.orgid = obj
128
128
  }
129
+ },
130
+ computed: {
131
+ processedStartDate () {
132
+ return this.model.startDate || Util.toStandardDateString() // 手动处理 startDate
133
+ }
129
134
  }
130
135
  }
131
136
  </script>
@@ -0,0 +1,347 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
8
+ <div class="row">
9
+ <!-- <div class="col-sm-2 form-group">-->
10
+ <!-- <label for="startDate" class="font_normal_body">开始日期</label>-->
11
+ <!-- <datepicker id="startDate" placeholder="开始日期" style="width:60%"-->
12
+ <!-- v-model="model.startDate"-->
13
+ <!-- :value.sync="model.startDate"-->
14
+ <!-- :format="'yyyy-MM-dd 00:00:00'"-->
15
+ <!-- :show-reset-button="true">-->
16
+ <!-- </datepicker>-->
17
+ <!-- </div>-->
18
+ <!-- <div class="col-sm-2 form-group">-->
19
+ <!-- <label for="endDate" class="font_normal_body">结束日期</label>-->
20
+ <!-- <datepicker id="endDate" placeholder="结束日期" style="width:60%"-->
21
+ <!-- v-model="model.endDate"-->
22
+ <!-- :value.sync="model.endDate"-->
23
+ <!-- :format="'yyyy-MM-dd 23:59:59'"-->
24
+ <!-- :show-reset-button="true">-->
25
+ <!-- </datepicker>-->
26
+ <!-- </div>-->
27
+ <div class="col-sm-2 form-group">
28
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp; </label>
29
+ <right-tree @re-res="$parent.$parent.getRes"></right-tree>
30
+ </div>
31
+ <div class="col-sm-2 form-group">
32
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
33
+ <res-select restype='department'
34
+ @res-select="$parent.$parent.getdep"
35
+ :parentresid="$parent.$parent.depresid"
36
+ :initresid='$parent.$parent.depid'>
37
+ </res-select>
38
+
39
+ </div>
40
+ <div class="col-sm-2 form-group">
41
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
42
+ <res-select restype='user'
43
+ is-mul="false"
44
+ @res-select="$parent.$parent.getuser"
45
+ :parentresid="$parent.$parent.userresid"
46
+ :initresid='$parent.$parent.operatorid'>
47
+ </res-select>
48
+ </div>
49
+ <div class="span" style="float:right;">
50
+ <button class="button_search button_spacing" @click="search()">查询</button>
51
+
52
+ <export-excel :data="$parent.$parent.getCondition"
53
+ :field="$parent.$parent.getfield"
54
+ :header="$parent.$parent.other"
55
+ :footer="$parent.$parent.footer"
56
+ sqlurl="rs/logic/exportfile"
57
+ sql-name="manageBrandHouseCount"
58
+ template-name='用户查询报表'
59
+ :choose-col="true"></export-excel>
60
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
61
+ titletable="用户查询" :starthead="$parent.$parent.startDate" :defaultfield="$parent.$parent.defaultfield"
62
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
63
+ </div>
64
+ </div>
65
+ </div>
66
+ </criteria>
67
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
68
+ <template partial='head'>
69
+ <tr>
70
+ <th>
71
+ <nobr>气表品牌</nobr>
72
+ </th>
73
+ <th>
74
+ <nobr>总用户数</nobr>
75
+ </th>
76
+ <th>
77
+ <nobr>民用户数</nobr>
78
+ </th>
79
+ <th>
80
+ <nobr>非民用户数</nobr>
81
+ </th>
82
+ <th>
83
+ <nobr>机表户数</nobr>
84
+ </th>
85
+ <th>
86
+ <nobr>卡表户数</nobr>
87
+ </th>
88
+ <th>
89
+ <nobr>物联网表户数</nobr>
90
+ </th>
91
+
92
+ </tr>
93
+ </template>
94
+ <template partial='body'>
95
+ <td style="text-align:center">
96
+ <nobr>{{row.f_meter_brand}}</nobr>
97
+ </td>
98
+ <td style="text-align: center;">
99
+ <nobr>{{row.f_total_users}}</nobr>
100
+ </td>
101
+ <td style="text-align: center;">
102
+ <nobr>{{row.f_civilian_users}}</nobr>
103
+ </td>
104
+ <td style="text-align: center;">
105
+ <nobr>{{row.f_non_civilian_users}}</nobr>
106
+ </td>
107
+ <td style="text-align: center;">
108
+ <nobr>{{row.f_mechanical_meter_users}}</nobr>
109
+ </td>
110
+ <td style="text-align: center;">
111
+ <nobr>{{row.f_card_meter_users}}</nobr>
112
+ </td>
113
+ <td style="text-align: center;">
114
+ <nobr>{{row.f_iot_meter_users}}</nobr>
115
+ </td>
116
+ </template>
117
+ <template partial='foot'></template>
118
+ </data-grid>
119
+ </criteria-paged>
120
+ <table class="table-hover">
121
+ <tr style="position: relative" class="table-bordered">
122
+ <td
123
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
124
+ 汇总信息
125
+ </td>
126
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
127
+ 综合总用户数:&emsp;{{sumsmodel.f_total_users}}
128
+ </td>
129
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
130
+ 总民用用户数:&emsp;{{sumsmodel.f_civilian_users}}
131
+ </td>
132
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
133
+ 总非民用用户数:&emsp;{{sumsmodel.f_non_civilian_users}}
134
+ </td>
135
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
136
+ 总机表用户数:&emsp;{{sumsmodel.f_mechanical_meter_users}}
137
+ </td>
138
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
139
+ 总卡表用户数:&emsp;{{sumsmodel.f_card_meter_users}}
140
+ </td>
141
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
142
+ 总物联网表用户数:&emsp;{{sumsmodel.f_iot_meter_users}}
143
+ </td>
144
+ </tr>
145
+ </table>
146
+ </div>
147
+ </div>
148
+ </div>
149
+ </template>
150
+ <script>
151
+ import {PagedList, HttpResetClass} from 'vue-client'
152
+ import defaultPrint from '../../components/sale/config/DefaultPrint'
153
+ import exportConfig from './exportConfig'
154
+ import PrintDataSelf from '../../components/sale/common/PrintDataSelf'
155
+
156
+ let readySomething = async function (self) {
157
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
158
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
159
+ }
160
+ export default {
161
+ title: '用户查询',
162
+ data() {
163
+ return {
164
+ depresid: [],
165
+ userresid: [],
166
+ f_orgid: this.$login.f.orgid,
167
+ f_depid: this.$login.f.depids,
168
+ f_operatorid: this.$login.f.id,
169
+ operatorid: [],
170
+ depid: [],
171
+ orgname: '',
172
+ depname: [],
173
+ operatorname: '',
174
+ orgCondtionStr: '1=1',
175
+ data: {},
176
+ other:[],
177
+ footer:[],
178
+ model: new PagedList('rs/sql/manageBrandHouseCount', 20, { f_orgid: 'this.model.f_orgid'},{
179
+ f_total_users: 0,
180
+ f_civilian_users: 0,
181
+ f_non_civilian_users: 0,
182
+ f_mechanical_meter_users :0,
183
+ f_card_meter_users: 0,
184
+ f_iot_meter_users: 0
185
+ }),
186
+ gasproperties:[],
187
+ show:false,
188
+ rowdata:{},
189
+ residentialArea: [],
190
+ modelval: [],
191
+ startDate:"",
192
+ endDate:"",
193
+ inputtouPerson: [],
194
+ printshow: false,
195
+ all: false,
196
+ fields: {},
197
+ thead: '',
198
+ tfoot: '',
199
+ defaultfield: [],
200
+ sumsmodel: {}
201
+ }
202
+ },
203
+ ready() {
204
+ readySomething(this).then(() => {
205
+ this.$emit('ready')
206
+ }).catch((error) => {
207
+ this.$emit('error', error)
208
+ })
209
+ },
210
+ methods: {
211
+ getotherfooter(){
212
+ this.other = [];
213
+ this.footer = [];
214
+ let exportdata = this.getCondition;
215
+ let otherInData = [];
216
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
217
+ let footerData = [], exportfield = this.getfield;
218
+ footerData.push("合计");
219
+ let self = this;
220
+ for (var field in self.sumsmodel) {
221
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
222
+ }
223
+ this.footer.push(footerData);
224
+ this.other.push(otherInData);
225
+ },
226
+ search(){
227
+ this.$refs.paged.$refs.cri.search()
228
+ },
229
+ selfSearch(args) {
230
+ let orgcondition = ' ui.f_orgid in (' + this.f_orgid + ')'
231
+ if (this.f_depid[0]) {
232
+ orgcondition += " and ui.f_depid in("+this.f_depid.toString()+')'
233
+ }
234
+ if(this.f_operatorid[0]) {
235
+ orgcondition += ' and ui.f_operatorid in (' + this.f_operatorid + ')'
236
+ }
237
+ this.startDate=this.$refs.paged.$refs.cri.model.startDate.substring(0,10)
238
+ this.endDate=this.$refs.paged.$refs.cri.model.endDate.substring(0,10)
239
+ this.orgCondtionStr=orgcondition
240
+ this.$refs.paged.$refs.cri.model.f_orgid = orgcondition
241
+ this.model.search(args.f_orgid, args.model)
242
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
243
+ console.log('合计字段', this.sumsmodel)
244
+ },
245
+ getRes (obj) {
246
+ this.orgname = obj.res[0]
247
+ this.depresid = obj.resids
248
+ this.f_orgid = obj.resids
249
+ },
250
+ getdep (obj, val) {
251
+ this.depname = val
252
+ this.userresid = obj
253
+ this.f_depid = obj
254
+ },
255
+ getuser ( obj, val) {
256
+ this.operatorname = val[0]
257
+ this.f_operatorid = obj
258
+ },
259
+ stamp() {
260
+ this.all = false
261
+ //默认选择要打印的列
262
+ this.modelval = defaultPrint.config
263
+ this.fields = this.getfield
264
+ console.log('所有打印字段', this.fields)
265
+ this.printshow = true
266
+ this.put()
267
+ },
268
+ put() {
269
+ // 对Modelval进行排序
270
+ this.sortModelval()
271
+ this.thead = `<tr><th colspan=${this.modelval.length}>用户查询</th></tr><tr>`
272
+ for (let key of this.modelval) {
273
+ this.thead += '<th>' + this.fields[key] + '</th>'
274
+ }
275
+ this.thead += '</tr>'
276
+ },
277
+ print() {
278
+ this.$refs.print.PrintAsFile()
279
+ this.printshow = false
280
+ },
281
+ dealmsg(val) {
282
+ console.log('---------------dealmsg')
283
+ this.rowdata=val
284
+ this.show=true
285
+ val.model = this.model.model
286
+ this.$dispatch('deal-msg', val)
287
+ },
288
+ close() {
289
+ this.printshow = false
290
+ this.all = false
291
+ },
292
+ // 对选择的列进行排序
293
+ sortModelval() {
294
+ let sortModel = []
295
+ Object.keys(this.fields).forEach((key) => {
296
+ if (this.modelval.includes(key)) {
297
+ sortModel.push(key)
298
+ }
299
+ })
300
+ this.modelval = sortModel
301
+ console.log('选择的打印的字段', this.modelval)
302
+ }
303
+ },
304
+ watch: {
305
+ 'all'(val) {
306
+ if (val) {
307
+ this.modelval = this.bodyData
308
+ } else {
309
+ this.modelval = defaultPrint.config
310
+ this.put()
311
+ }
312
+ },
313
+ sumsmodel:{
314
+ handler: function(val) {
315
+ this.getotherfooter();
316
+ },
317
+ deep: true
318
+ },
319
+ 'modelval.length'() {
320
+ this.put()
321
+ }
322
+ },
323
+ computed: {
324
+ getCondition() {
325
+ return {
326
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
327
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
328
+ f_orgid: this.orgCondtionStr
329
+ }
330
+ },
331
+ getfield() {
332
+ return exportConfig.brandHouseCount
333
+ },
334
+ whetherpaies () {
335
+ return [
336
+ {label: '全部', value: ''},
337
+ {label: '已缴费', value: '是'},
338
+ {label: '未缴费', value: '否'}
339
+ ]
340
+ },
341
+ usertypes() {
342
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
343
+ }
344
+
345
+ }
346
+ }
347
+ </script>