manage-client 3.2.219 → 3.2.221

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.
@@ -0,0 +1,157 @@
1
+ <template>
2
+ <tab-button v-ref:list :active="-1">
3
+ <tabs header="欠费查询" v-if="permission('欠费查询')">
4
+ <arrears-query v-if="show.includes('欠费查询')"></arrears-query>
5
+ </tabs>
6
+ <tabs header="非收费业务查询" v-if="permission('非收费业务查询')">
7
+ <no-business-query v-if="show.includes('非收费业务查询')" @deal-msg="dealMsg"></no-business-query>
8
+ </tabs>
9
+ <tabs header="小区综合查询" v-if="permission('小区综合查询')">
10
+ <area-general-query v-if="show.includes('小区综合查询')" @deal-msg="dealMsg"></area-general-query>
11
+ </tabs>
12
+ <tabs header="小区收费查询" v-if="permission('小区收费查询')">
13
+ <area-charge-query v-if="show.includes('小区收费查询')" @deal-msg="dealMsg"></area-charge-query>
14
+ </tabs>
15
+ <tabs header="小区汇总(机表)" v-if="permission('小区汇总(机表)')">
16
+ <residential-query v-if="show.includes('小区汇总(机表)')" @deal-msg="dealMsg"></residential-query>
17
+ </tabs>
18
+ <tabs header="小区汇总(卡表)" v-if="permission('小区汇总(卡表)')">
19
+ <residential-card-query v-if="show.includes('小区汇总(卡表)')" @deal-msg="dealMsg" ></residential-card-query>
20
+ </tabs>
21
+ <!--<tabs header="小区欠费汇总(机表)" v-if="permission('小区欠费汇总(机表)')">-->
22
+ <!--<residential-arrears-query v-if="show.includes('小区欠费汇总(机表)')" @deal-msg="dealMsg"></residential-arrears-query>-->
23
+ <!--</tabs>-->
24
+ <tabs header="收费员汇总表" v-if="permission('收费员汇总表')">
25
+ <sell-people-query v-if="show.includes('收费员汇总表')" @deal-msg="dealMsg"></sell-people-query>
26
+ </tabs>
27
+ <tabs header="分公司汇总表" v-if="permission('分公司汇总表')">
28
+ <sell-orgname-query v-if="show.includes('分公司汇总表')" @deal-msg="dealMsg"></sell-orgname-query>
29
+ </tabs>
30
+ <tabs header="抄表员统计" v-if="permission('抄表员统计')">
31
+ <hand-people-query v-if="show.includes('抄表员统计')" @deal-msg="dealMsg"></hand-people-query>
32
+ </tabs>
33
+ <!--<tabs header="开户查询" v-if="permission('开户查询')">-->
34
+ <!--<new-account-query v-if="show == '开户查询'" @deal-msg="dealMsg"></new-account-query>-->
35
+ <!--</tabs>-->
36
+ <tabs header="用气查询" v-if="permission('用气查询')">
37
+ <fmygas-query v-if="show.includes('用气查询')" @deal-msg="dealMsg"></fmygas-query>
38
+ </tabs>
39
+ <tabs header="气费回收率" v-if="permission('气费回收率')">
40
+ <hand-rate-query v-if="show.includes('气费回收率')" @deal-msg="dealMsg"></hand-rate-query>
41
+ </tabs>
42
+ <tabs header="收费抄表" v-if="permission('收费抄表')">
43
+ <selling-hand v-if="show.includes('收费抄表')" @deal-msg="dealMsg"></selling-hand>
44
+ </tabs>
45
+ <tabs header="月用气状况" v-if="permission('月用气状况')">
46
+ <month-gas-query v-if="show.includes('月用气状况')" @deal-msg="dealMsg"></month-gas-query>
47
+ </tabs>
48
+ <tabs header="日用气状况" v-if="permission('日用气状况')">
49
+ <day-gas-query v-if="show.includes('日用气状况')" @deal-msg="dealMsg"></day-gas-query>
50
+ </tabs>
51
+ <tabs header="用户余额分析" v-if="permission('用户余额分析')">
52
+ <user-sell-head-detail v-if="show.includes('用户余额分析')" @deal-msg="dealMsg"></user-sell-head-detail>
53
+ </tabs>
54
+ <!--<tabs header="年度月份用量分析" v-if="permission('年度月份用量分析')">-->
55
+ <!--<year-gas-query v-if="show == '年度月份用量分析'" @deal-msg="dealMsg"></year-gas-query>-->
56
+ <!--</tabs>-->
57
+ <!--<tabs header="余额统计查询" v-if="permission('余额统计查询')">-->
58
+ <!--<balance-query v-if="show == '余额统计查询'" @deal-msg="dealMsg"></balance-query>-->
59
+ <!--</tabs>-->
60
+ <tabs header="用户余额表" v-if="permission('用户余额表')">
61
+ <balance-table v-if="show.includes('用户余额表')" @deal-msg="dealMsg"></balance-table>
62
+ </tabs>
63
+ <tabs header="抄表册统计" v-if="permission('抄表册统计')">
64
+ <hand-book-query v-if="show.includes('抄表册统计')" @deal-msg="dealMsg"></hand-book-query>
65
+ </tabs>
66
+ <tabs header="抄表册统计2" v-if="permission('抄表册统计2')">
67
+ <hand-book-two-query v-if="show.includes('抄表册统计2')" @deal-msg="dealMsg"></hand-book-two-query>
68
+ </tabs>
69
+ <tabs header="用气性质抄表率统计" v-if="permission('用气性质抄表率统计')">
70
+ <hand-gas-properties-query v-if="show.includes('用气性质抄表率统计')" @deal-msg="dealMsg"></hand-gas-properties-query>
71
+ </tabs>
72
+ <tabs header="每月应收汇总统计" v-if="permission('每月应收汇总统计')">
73
+ <hand-gas-query v-if="show.includes('每月应收汇总统计')" @deal-msg="dealMsg"></hand-gas-query>
74
+ </tabs>
75
+ <tabs header="小区缴费汇总(机表)" v-if="permission('小区缴费汇总(机表)')">
76
+ <community-paymen v-if="show.includes('小区缴费汇总(机表)')" @deal-msg="dealMsg"></community-paymen>
77
+ </tabs>
78
+ <tabs header="预存明细查询" v-if="permission('预存明细查询')">
79
+ <deposit-detail v-if="show.includes('预存明细查询')" @deal-msg="dealMsg"></deposit-detail>
80
+ </tabs>
81
+ <tabs header="小区用户分布统计" v-if="permission('小区用户分布统计')">
82
+ <plot-summary-query v-if="show.includes('小区用户分布统计')" @deal-msg="dealMsg"></plot-summary-query>
83
+ </tabs>
84
+ <tabs header="用户用气收费情况" v-if="permission('用户用气收费情况')">
85
+ <usergas v-if="show.includes('用户用气收费情况')" @deal-msg="dealMsg"></usergas>
86
+ </tabs>
87
+ <tabs header="卡表用户结余明细" v-if="permission('卡表用户结余明细')">
88
+ <yonghu-jieyu v-if="show.includes('卡表用户结余明细')" @deal-msg="dealMsg"></yonghu-jieyu>
89
+ </tabs>
90
+ <tabs header="应收实收明细" v-if="permission('应收实收明细')">
91
+ <ying-shou-ming-xi v-if="show.includes('应收实收明细')" @deal-msg="dealMsg"></ying-shou-ming-xi>
92
+ </tabs>
93
+ <tabs header="操作员日结列表" v-if="permission('操作员日结列表')">
94
+ <proceeds-oper v-if="show.includes('操作员日结列表')" @deal-msg="dealMsg"></proceeds-oper>
95
+ </tabs>
96
+ <tabs header="抄表情况记录表" v-if="permission('抄表情况记录表')">
97
+ <handplan-info v-if="show.includes('抄表情况记录表')" @deal-msg="dealMsg"></handplan-info>
98
+ </tabs>
99
+ <tabs header="未抄表用户报表" v-if="permission('未抄表用户报表')">
100
+ <unhand-business @deal-msg="dealMsg"></unhand-business>
101
+ </tabs>
102
+ <tabs header="明细报表查询" v-if="permission('明细报表查询')">
103
+ <report-detail ></report-detail>
104
+ </tabs>
105
+ <tabs header="重点用户用气排行查询" v-if="permission('重点用户用气排行查询')">
106
+ <key-user-gas-ranking v-if="show.includes('重点用户用气排行查询')" @deal-msg="dealMsg" ></key-user-gas-ranking>
107
+ </tabs>
108
+ </tab-button>
109
+
110
+ </template>
111
+
112
+ <script>
113
+ import TabButton from '../../components/sale/common/TabButton'
114
+ import Tabs from '../../components/sale/common/Tabs'
115
+
116
+ export default {
117
+ title: '汇总查询',
118
+ data () {
119
+ return {
120
+ f_start_date: '',
121
+ f_end_date: '',
122
+ listpage: true,
123
+ width: {
124
+ left: '100%',
125
+ right: '0%'
126
+ },
127
+ // searchNumber:'',
128
+ rowData: {},
129
+ show: []
130
+ }
131
+ },
132
+ components: {Tabs, TabButton},
133
+ methods: {
134
+ permission (name) {
135
+ if (this.$login.r.find(value => value == '综合查询')) {
136
+ if (!this.$login.r.find(value => value == name)) {
137
+ return false
138
+ }
139
+ }
140
+ return true
141
+ },
142
+ cancel (obj) {
143
+ this.listpage = true
144
+ },
145
+ dealMsg(obj) {
146
+ this.rowData = obj
147
+ this.listpage = false
148
+ console.log(obj.model)
149
+ this.f_start_date = obj.model.startDate
150
+ this.f_end_date = obj.model.endDate
151
+ }
152
+ }
153
+ }
154
+ </script>
155
+
156
+ <style scoped>
157
+ </style>
@@ -0,0 +1,420 @@
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-inline 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 HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ >
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate" class="font_normal_body">结束日期</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ >
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">客户编号</label>
31
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
+ </div>
34
+
35
+
36
+
37
+ <div class="span" style="float:right;">
38
+ <button class="button_search button_spacing" @click="search()">查询</button>
39
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
40
+ <export-excel :data="$parent.$parent.getCondition"
41
+ :field="$parent.$parent.config.pageFields"
42
+ :header="$parent.$parent.other"
43
+ sqlurl="rs/logic/exportfile"
44
+ sql-name="DayGasQuery"
45
+ template-name='日用气导出'
46
+ :choose-col="true"></export-excel>
47
+
48
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.config.pageFields"
49
+ :defaultfield="$parent.$parent.defaultfield"
50
+ titletable="日用气导出"
51
+ ></print-data>
52
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
53
+ </div>
54
+ </div>
55
+ <div class="row" v-show="$parent.$parent.criteriaShow">
56
+ <div class="col-sm-2 form-group">
57
+ <label class="font_normal_body">客户名称</label>
58
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
59
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
60
+ </div>
61
+ <div class="col-sm-2 form-group">
62
+ <label class="font_normal_body">客户地址</label>
63
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
64
+ condition="f_address like '%{}%'" placeholder='客户地址'>
65
+ </div>
66
+
67
+ <div class="col-sm-2 form-group">
68
+ <label class="font_normal_body" title="参数名称:用户类型">客户类型</label>
69
+ <v-select :value.sync="model.f_user_type"
70
+ @change="$parent.$parent.userTypeChange()"
71
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
72
+ condition="f_user_type = '{}'"
73
+ close-on-select></v-select>
74
+ </div>
75
+
76
+ <div class="col-sm-2 form-group">
77
+ <label class="font_normal_body">用气性质</label>
78
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
79
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
80
+ condition="f_gasproperties = '{}'"
81
+ close-on-select></v-select>
82
+ </div>
83
+ <div class="col-sm-2 form-group">
84
+ <label class="font_normal_body">状态</label>
85
+ <v-select :value.sync="model.f_state" v-model="model.f_state"
86
+ :options='$parent.$parent.f_state' placeholder='请选择'
87
+ multiple
88
+ :search="false"
89
+ condition="f_state in {} "
90
+ close-on-select></v-select>
91
+ </div>
92
+ <div class="col-sm-2 form-group">
93
+ <label class="font_normal_body" title="参数名称:气表类型">气表类型</label>
94
+ <v-select :value.sync="model.f_meter_style"
95
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_style"
96
+ condition="f_meter_style = '{}'"
97
+ close-on-select></v-select>
98
+ </div>
99
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
100
+
101
+ </div>
102
+ </div>
103
+ </criteria>
104
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid >
105
+ <template partial='head'>
106
+ <tr>
107
+ <th v-for="(key,value ) in $parent.$parent.$parent.config.pageFields" ><nobr>{{value}}</nobr></th>
108
+ </tr>
109
+ </template>
110
+ <template partial='body'>
111
+ <td style="text-align: center;" v-for="(key,value ) in $parent.$parent.$parent.config.pageFields"><nobr>{{row[key]}}</nobr></td>
112
+ </template>
113
+ <template partial='foot'></template>
114
+ </data-grid>
115
+ </criteria-paged>
116
+ <table class="table-hover">
117
+ <tr style="position: relative" class="table-bordered">
118
+ <td
119
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
120
+ 汇总信息
121
+ </td>
122
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold"
123
+ v-for="(key,value ) in config.sumFields">
124
+ {{value}}合计:&emsp;{{sumsmodel[key]}}
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.sum_oughtamount}}
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_oughtfee}}
131
+ </td>
132
+ </tr>
133
+ </table>
134
+ </div>
135
+ <div v-if="show">
136
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
137
+ </div>
138
+ </div>
139
+ </div>
140
+ </template>
141
+ <script>
142
+ import { PagedList } from 'vue-client'
143
+ import * as Util from '../../Util'
144
+ import defaultPrint from './config/DefaultPrint'
145
+ import exportConfig from './config/exportConfig.js'
146
+ let readySomething = async function(self) {
147
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
148
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
149
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
150
+ await self.$MagLoadParams.loadParam()
151
+ self.smallareas=[{label: '全部',value: ''},...await self.$MagGetSaleParam.getsmallarea(self.$login.f.orgid)]
152
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
153
+ }
154
+ export default {
155
+ title: '日用气查询',
156
+ name: 'DayGasQuery',
157
+ data () {
158
+ return {
159
+ model: new PagedList('rs/sql/DayGasQuery', 30, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
160
+ f_day1: 0,
161
+ f_day2: 0,
162
+ f_day3: 0,
163
+ f_day4: 0,
164
+ f_day5: 0,
165
+ f_day6: 0,
166
+ f_day7: 0,
167
+ f_day8: 0,
168
+ f_day9: 0,
169
+ f_day10: 0,
170
+ f_day11: 0,
171
+ f_day12: 0,
172
+ f_day13: 0,
173
+ f_day14: 0,
174
+ f_day15: 0,
175
+ f_day16: 0,
176
+ f_day17: 0,
177
+ f_day18: 0,
178
+ f_day19: 0,
179
+ f_day20: 0,
180
+ f_day21: 0,
181
+ f_day22: 0,
182
+ f_day23: 0,
183
+ f_day24: 0,
184
+ f_day25: 0,
185
+ f_day26: 0,
186
+ f_day27: 0,
187
+ f_day28: 0,
188
+ f_day29: 0,
189
+ f_day30: 0,
190
+ f_day31: 0,
191
+ sum_oughtamount: 0,
192
+ f_oughtfee: 0
193
+ }),
194
+ initres: {
195
+ org:[this.$login.f.orgid],
196
+ dep:[],
197
+ user:[],
198
+ },
199
+ other: [],
200
+ footer: [],
201
+ gasproperties:[],
202
+ show:false,
203
+ rowdata:{},
204
+ criteriaShow: false,
205
+ orgCondtionStr: '',
206
+ modelval: [],
207
+ printshow: false,
208
+ all: false,
209
+ fields: {},
210
+ thead: '',
211
+ tfoot: '',
212
+ defaultfield: [],
213
+ config: {
214
+ pageFields:{
215
+ 'code': '客户编号', 'username': '客户名称','f_user_type':'客户类型','f_gasproperties':'用气性质',
216
+ 'sum_oughtamount': '累计气量', 'f_oughtfee': '累计金额'
217
+ },
218
+ sumFields:{
219
+ 'sum_oughtamount':'累计气量','f_oughtfee': '累计金额'
220
+ },
221
+ defaultPrint: ['f_oughtfee', 'avg_oughtamount']
222
+ },
223
+ smallareas:[{label: '全部',value: ''}], //区域
224
+ //合计数据
225
+ sumsmodel: {},
226
+ f_filialeid: this.$login.f.f_orgid,
227
+ f_orgid: this.$login.f.orgid,
228
+ f_depid: this.$login.f.depids,
229
+ f_operatorid: this.$login.f.id
230
+ }
231
+ },
232
+ ready () {
233
+ readySomething(this)
234
+ },
235
+ methods: {
236
+ getotherfooter() {
237
+ this.other = [];
238
+ this.footer = [];
239
+ let otherInData = [];
240
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
241
+ let footerData = [], exportfield = this.getfield;
242
+ footerData.push("合计");
243
+ let self = this;
244
+ // for (var field in self.sumsmodel) {
245
+ // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
246
+ // }
247
+ // this.footer.push(footerData);
248
+ this.other.push(otherInData);
249
+ },
250
+ userTypeChange () {
251
+ this.gasproperties=[]
252
+ if(this.$refs.paged.$refs.cri.model !==null) {
253
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
254
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
255
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
256
+ }
257
+ else{
258
+ this.gasproperties =[{label: '全部', value: ''}]
259
+ }
260
+ },
261
+ search(){
262
+ this.$refs.paged.$refs.cri.search()
263
+ },
264
+ cancel() {
265
+ this.show = false
266
+ },
267
+ selfSearch(args) {
268
+ this.synchronizationDate()
269
+ this.changePageFileds()
270
+ args.condition = `${args.condition} ` + this.orgCondtionStr
271
+ this.model.search(args.condition, args.model)
272
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
273
+ },
274
+ //同步年份月份
275
+ synchronizationDate() {
276
+ var startDate = new Date(this.$refs.paged.$refs.cri.model.startDate)
277
+ var endDate = new Date(this.$refs.paged.$refs.cri.model.endDate)
278
+ if (startDate.getFullYear()==endDate.getFullYear() && startDate.getMonth()== endDate.getMonth()){
279
+ }else {
280
+ endDate.setFullYear(startDate.getFullYear())
281
+ endDate.setMonth(startDate.getMonth())
282
+ endDate = Util.dateFormat('yyyy-MM-dd hh:mm:ss',endDate)
283
+ this.$showAlert('仅支持相同月份里查询,已为您默认开始日期的月份', 'warning', 3000)
284
+ this.$refs.paged.$refs.cri.model.endDate = endDate
285
+ }
286
+ },
287
+ // 格式化每月的天份
288
+ changePageFileds() {
289
+ let startDate = new Date(this.$refs.paged.$refs.cri.model.startDate)
290
+ let index =startDate.getDate()
291
+ let month = startDate.getMonth()+ 1
292
+ // let Days = new Date(startDate.getMonth(),startDate.getMonth() + 1,0).getDate()
293
+ let Days = new Date(this.$refs.paged.$refs.cri.model.endDate).getDate()
294
+ this.config.pageFields = {
295
+ 'code': '客户编号', 'username': '客户名称', 'f_user_type': '客户类型', 'f_gasproperties': '用气性质'
296
+ }
297
+ for(var i=index;i<=Days;i++){
298
+ this.$set('config.pageFields.f_day'+i,month + '月'+ i)
299
+ }
300
+ this.$set('config.pageFields.sum_oughtamount','累计气量')
301
+ this.$set('config.pageFields.f_oughtfee','累计金额')
302
+ this.config.sumFields = {
303
+ }
304
+ for(var i=index;i<=Days;i++){
305
+ this.$set('config.sumFields.f_day'+i,month + '月'+ i)
306
+ }
307
+ },
308
+ clear() {
309
+ //清空部门和人员
310
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
311
+ //部门和人员变为全选
312
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
313
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
314
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
315
+ this.$refs.paged.$refs.cri.model[key] = []
316
+ })
317
+ },
318
+ show() {
319
+ this.criteriaShow = true
320
+ },
321
+ hidden() {
322
+ this.criteriaShow = !this.criteriaShow
323
+ },
324
+ showmsg(obj){
325
+ this.rowdata=obj
326
+ this.show=true
327
+ },
328
+ getRes(condition,obj) {
329
+ this.orgCondtionStr = condition
330
+ this.orgname = obj.orgnames[0]
331
+ this.depname = obj.depnames[0]
332
+ },
333
+ put() {
334
+ // 对Modelval进行排序
335
+ this.sortModelval()
336
+ this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
337
+ for (let key of this.modelval) {
338
+ this.thead += '<th>' + this.fields[key] + '</th>'
339
+ }
340
+ this.thead += '</tr>'
341
+ },
342
+ print() {
343
+ this.$refs.print.PrintAsFile()
344
+ this.printshow = false
345
+ },
346
+ dealmsg(val) {
347
+ this.rowdata=val
348
+ this.show=true
349
+ val.model = this.model.model
350
+ this.$dispatch('deal-msg', val)
351
+ },
352
+ close() {
353
+ this.printshow = false
354
+ this.all = false
355
+ },
356
+ // 对选择的列进行排序
357
+ sortModelval() {
358
+ let sortModel = []
359
+ Object.keys(this.fields).forEach((key) => {
360
+ if (this.modelval.includes(key)) {
361
+ sortModel.push(key)
362
+ }
363
+ })
364
+ this.modelval = sortModel
365
+ console.log('选择的打印的字段', this.modelval)
366
+ }
367
+ },
368
+ computed: {
369
+ getCondition() {
370
+ return {
371
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
372
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
373
+ endDate: this.$refs.paged.$refs.cri.model.endDate
374
+ }
375
+ },
376
+ getfield() {
377
+ return exportConfig.monthGasConfig
378
+ },
379
+ usertypes() {
380
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
381
+ },
382
+ f_state() {
383
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费状态')]
384
+ },
385
+ metertypes() {
386
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
387
+ },
388
+ },
389
+ events: {
390
+
391
+ },
392
+ watch: {
393
+ 'all'(val) {
394
+ if (val) {
395
+ this.modelval = this.bodyData
396
+ } else {
397
+ this.modelval = defaultPrint.monthGasConfig
398
+ this.put()
399
+ }
400
+ },
401
+ 'modelval.length'() {
402
+ this.put()
403
+ },
404
+ sumsmodel: {
405
+ handler: function (val) {
406
+ this.getotherfooter();
407
+ },
408
+ deep: true
409
+ }
410
+ }
411
+ }
412
+ </script>
413
+ <style>
414
+ .datapanel {
415
+ color: #333;
416
+ background-color: white;
417
+ padding: 10px 20px;
418
+ border-radius:15px;
419
+ }
420
+ </style>
@@ -8,6 +8,9 @@ let specialComp = {
8
8
  'meter-query': (resolve) => { require(['./MeterQuery'], resolve) },
9
9
  'fmygas-query': (resolve) => { require(['./FMYGasQuery'], resolve) },
10
10
  'month-gas-query': (resolve) => { require(['./MonthGasQuery'], resolve) },
11
+ 'day-gas-query': (resolve) => { require(['./DayGasQuery'], resolve) },
12
+ // 汇总查询
13
+ 'collect-manage': (resolve) => { require(['./CollectManage'], resolve)},
11
14
  'transfer-query': (resolve) => { require(['./TransferQuery'], resolve) }
12
15
  }
13
16
  exports.specialComp = specialComp