manage-client 3.2.134 → 3.2.135

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": "3.2.134",
3
+ "version": "3.2.135",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -0,0 +1,221 @@
1
+ <template>
2
+ <div class="basic-main" style="height: 100%">
3
+ <criteria-paged :model="model" :pager='false' v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
6
+ <div class="row">
7
+ <div class="col-sm-2 form-group" >
8
+ <label class="font_normal_body" for="startDate">开始日期:</label>
9
+ <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
10
+ v-model="model.startDate"
11
+ :value.sync="model.startDate"
12
+ :disabled-days-of-Week="[]"
13
+ :format="'yyyy-MM-dd HH:mm:ss'"
14
+ :show-reset-button="reset">
15
+ </datepicker>
16
+ </div>
17
+ <div class="col-sm-2 form-group" >
18
+ <label class="font_normal_body" for="endDate">结束日期:</label>
19
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
20
+ v-model="model.endDate"
21
+ :value.sync="model.endDate"
22
+ :disabled-days-of-Week="[]"
23
+ :format="'yyyy-MM-dd HH:mm:ss'"
24
+ :show-reset-button="reset">
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" style="width: 60%"></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
+ is-mul="false"
35
+ @res-select="$parent.$parent.getdep"
36
+ :parentresid="$parent.$parent.depresid"
37
+ :initresid='$parent.$parent.depid'>
38
+ </res-select>
39
+
40
+ </div>
41
+ <div class="col-sm-2 form-group">
42
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
43
+ <res-select restype='user'
44
+ is-mul="false"
45
+ @res-select="$parent.$parent.getuser"
46
+ :parentresid="$parent.$parent.userresid"
47
+ :initresid='$parent.$parent.operatorid'>
48
+ </res-select>
49
+ </div>
50
+ -->
51
+ <res-select-group :show-component="$parent.$parent.resshow" :selectin="true" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
52
+ </div>
53
+ <div class="span" style = "float:right;">
54
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
55
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
56
+ <report-excel id='gasprice'></report-excel>
57
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
58
+ 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
59
+ </div>
60
+ <div class="row" v-show="$parent.$parent.criteriaShow">
61
+ <div class="col-sm-2 form-group">
62
+ <label class="font_normal_body">收费状态</label>
63
+ <v-select :value.sync="$parent.$parent.f_state" multiple
64
+ v-model="$parent.$parent.f_state"
65
+ :options='$parent.$parent.charge_state' placeholder='请选择'
66
+ condition="f_state in {}"
67
+ close-on-select></v-select>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ </criteria>
72
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
73
+ <table class='tableprint' style="margin: 0px auto">
74
+ <thead>
75
+ <tr>
76
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
77
+ <h3 style="text-align: center">铜川售气占比报表</h3>
78
+ </th>
79
+ </tr>
80
+ <tr>
81
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
82
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
83
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;<br/>
84
+ <!--打印时间:{{{$parent.printTime}}}-->
85
+ 打印时间:{{$parent.printTime}}
86
+ <!--收费员:{{// $parent.operatorname}}-->
87
+ </th>
88
+ </tr>
89
+ <tr>
90
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
91
+ <div>
92
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
93
+ <span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
94
+ <!-- <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$refs.criteria.$refs.res.obj.operatornames[0]">人员:{{$parent.operatorname}}</span>-->
95
+ </div>
96
+ </th>
97
+ </tr>
98
+ </thead>
99
+ <tr>
100
+ <td :colspan='$parent.spans' class="noborder">
101
+ {{{ model.data.substring(26,model.data.length-8) }}}
102
+ </td>
103
+ </tr>
104
+ <tfoot>
105
+ <tr style="text-align: left">
106
+ <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
107
+ <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
108
+ <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
109
+ </tr>
110
+ </tfoot>
111
+ </table>
112
+ {{{ $parent.reportStr}}}
113
+ </div>
114
+ </criteria-paged>
115
+ </div>
116
+ </template>
117
+
118
+ <script>
119
+ import { DataModel } from 'vue-client'
120
+ import co from 'co'
121
+
122
+ export default {
123
+ title: '铜川售气占比报表',
124
+ props: ['data'],
125
+ data () {
126
+ return {
127
+ printTime: this.$login.toStandardTimeString(),
128
+ depresid: [],
129
+ userresid: [],
130
+ f_orgid: this.$login.f.orgid,
131
+ f_depid: this.$login.f.depids,
132
+ f_operatorid: this.$login.f.id,
133
+ operatorid: [],
134
+ depid: [],
135
+ orgname: '',
136
+ depname: '',
137
+ criteriaShow: false,
138
+ operatorname: '',
139
+ orgCondtionStr: '1=1',
140
+ f_state:['有效'],
141
+ model: new DataModel('rs/report/esaleMonthReport', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
142
+ f_orgid: 'this.model.f_orgid'}),
143
+ reportStr: null,
144
+ resshow:['company','department','operator'],
145
+ spans: 0,
146
+ initres: {
147
+ org: [this.$login.f.orgid],
148
+ dep: [],
149
+ user: []
150
+ }
151
+ }
152
+ },
153
+ ready () {
154
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
155
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
156
+ console.log(this.$login.f)
157
+ },
158
+ methods: {
159
+ searchData () {
160
+ this.$refs.paged.$refs.criteria.search()
161
+ },
162
+ selfSearch (args) {
163
+ this.printTime = this.$login.toStandardTimeString()
164
+ let orgcondition = '1=1'
165
+ let orgstr = this.orgCondtionStr
166
+ orgcondition = orgcondition + orgstr
167
+ /* if (this.f_orgid && this.f_orgid[0]) {
168
+ orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
169
+ }
170
+ if (this.f_depid && this.f_depid[0]) {
171
+ orgcondition += ' and f_depid in (' + this.f_depid + ')'
172
+ }
173
+ if(this.f_operatorid && this.f_operatorid[0]) {
174
+ orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
175
+ }*/
176
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
177
+ this.$refs.paged.search(args)
178
+ },
179
+
180
+ hidden() {
181
+ this.criteriaShow = !this.criteriaShow
182
+ },
183
+ getRes (condition, obj) {
184
+ this.orgCondtionStr = condition
185
+ this.orgname = obj.orgnames[0]
186
+ this.depname = obj.depnames[0]
187
+ },
188
+ getdep (obj, val) {
189
+ this.depname = val[0]
190
+ this.userresid = obj
191
+ this.f_depid = obj
192
+ },
193
+ getuser ( obj, val) {
194
+ this.operatorname = val[0]
195
+ this.f_operatorid = obj
196
+ }
197
+ },
198
+ watch: {
199
+ 'model.data' (val) {
200
+ let len=0
201
+ let a=val.split('</tr>')
202
+ for(let i=0;i<a.length;i++){
203
+ if(a[i].split('</td>').length-1>len){
204
+ len=a[i].split('</td>').length-1
205
+ }
206
+ }
207
+ this.spans = len
208
+ }
209
+ },
210
+ computed: {
211
+ charge_state() {
212
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
213
+ }
214
+ }
215
+ }
216
+ </script>
217
+ <style scoped>
218
+ .noborder{
219
+ border: none;
220
+ }
221
+ </style>
@@ -69,6 +69,9 @@
69
69
  <tabs header="用户参保查询" v-if="permission('用户参保查询')">
70
70
  <user-insured v-if="show.includes('用户参保查询')" @deal-msg="dealMsg" :data="data"></user-insured>
71
71
  </tabs>
72
+ <tabs header="开户查询" v-if="permission('开户查询')">
73
+ <new-account-query v-if="show == '开户查询'" @deal-msg="dealMsg"></new-account-query>
74
+ </tabs>
72
75
  <!-- <tabs header="资源操作记录查询" v-if="permission('资源操作记录查询')">-->
73
76
  <!-- <resource-operating-query v-if="show == '资源操作记录查询'" @deal-msg="dealMsg" :data="data"></resource-operating-query>-->
74
77
  <!-- </tabs>-->
@@ -0,0 +1,432 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
4
+ <div class="flex" v-if="!showinfo">
5
+
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-2 form-group">
11
+ <label for="startDate" class="font_normal_body">开始日期</label>
12
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
+ v-model="model.startDate"
14
+ :value.sync="model.startDate"
15
+ :format="'yyyy-MM-dd'"
16
+ :show-reset-button="true"
17
+ condition="f_open_date >= '{} 00:00:00'">
18
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="endDate" class="font_normal_body">结束日期</label>
22
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
+ v-model="model.endDate"
24
+ :value.sync="model.endDate"
25
+ :format="'yyyy-MM-dd'"
26
+ :show-reset-button="true"
27
+ condition="f_open_date <= '{} 23:59:59'">
28
+ </datepicker>
29
+ </div>
30
+ <div class="span" style="float:right;">
31
+ <button class="button_search button_spacing" @click="search()">查询</button>
32
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
33
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
34
+
35
+ <!--v-if="$parent.$parent.authArr.includes('开户查询导出')"-->
36
+ <export-excel :data="$parent.$parent.getCondition"
37
+ :field="$parent.$parent.getfield"
38
+ sqlurl="rs/logic/exportfile" sql-name="newAccountQuery" template-name='开户查询导出'
39
+ :choose-col="true"></export-excel>
40
+
41
+ <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>
42
+ </div>
43
+ </div>
44
+ <div class="row" v-show="$parent.$parent.criteriaShow">
45
+ <div class="col-sm-2 form-group">
46
+ <label class="font_normal_body">客户编号</label>
47
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
48
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
49
+ </div>
50
+ <div class="col-sm-2 form-group">
51
+ <label class="font_normal_body">客户名称</label>
52
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
53
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
54
+ </div>
55
+ <div class="col-sm-2 form-group">
56
+ <label class="font_normal_body">用户类型</label>
57
+ <v-select :value.sync="model.f_user_type"
58
+ @change="$parent.$parent.userTypeChange()"
59
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
60
+ condition="f_user_type = '{}'"
61
+ close-on-select>
62
+ </v-select>
63
+ </div>
64
+ <div class="col-sm-2 form-group">
65
+ <label class="font_normal_body">用气性质</label>
66
+ <v-select :value.sync="model.f_gasproperties"
67
+ v-model="model.f_gasproperties"
68
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
69
+ condition=" f_gasproperties = '{}'"
70
+ close-on-select></v-select>
71
+ </div>
72
+ <div class="col-sm-2 form-group">
73
+ <label class="font_normal_body">气价类型</label>
74
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
75
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
76
+ condition="f_price_type = '{}'"
77
+ close-on-select>
78
+ </v-select>
79
+ </div>
80
+ <div class="col-sm-2 form-group">
81
+ <label class="font_normal_body">气表品牌</label>
82
+ <v-select :value.sync="model.f_meter_brand"
83
+ v-model="model.f_meter_brand"
84
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
85
+ condition="f_meter_brand = '{}'"
86
+ close-on-select></v-select>
87
+ </div>
88
+ <div class="col-sm-2 form-group">
89
+ <label class="font_normal_body">客户地址</label>
90
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
91
+ condition="f_address like '%{}%'" placeholder='客户地址'>
92
+ </div>
93
+ <div class="col-sm-2 form-group">
94
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
95
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"
96
+ condition="f_residential_area like '%{}%'" placeholder="小区"/>
97
+ </div>
98
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
99
+ </div>
100
+ </div>
101
+ </criteria>
102
+
103
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
104
+ <template partial='head'>
105
+ <tr>
106
+ <th>
107
+ <nobr>客户编号</nobr>
108
+ </th>
109
+ <th>
110
+ <nobr>客户名称</nobr>
111
+ </th>
112
+ <th>
113
+ <data-order field="f_address" name="客户地址"></data-order>
114
+ </th>
115
+ <th>
116
+ <nobr>客户电话</nobr>
117
+ </th>
118
+ <th>
119
+ <nobr>身份证号</nobr>
120
+ </th>
121
+ <th>
122
+ <nobr>气价名称</nobr>
123
+ </th>
124
+ <th>
125
+ <nobr>开户时间</nobr>
126
+ </th>
127
+ <th>
128
+ <nobr>表号</nobr>
129
+ </th>
130
+ <th>
131
+ <nobr>置换员</nobr>
132
+ </th>
133
+ <th>
134
+ <nobr>通气时间</nobr>
135
+ </th>
136
+ <th>
137
+ <nobr>用气性质</nobr>
138
+ </th>
139
+ <th>
140
+ <nobr>累购气量</nobr>
141
+ </th>
142
+ <th>
143
+ <nobr>气表品牌</nobr>
144
+ </th>
145
+ <th>
146
+ <nobr>开户地点</nobr>
147
+ </th>
148
+ <th>
149
+ <nobr>是否有壁挂炉</nobr>
150
+ </th>
151
+ <th>
152
+ <nobr>开户人</nobr>
153
+ </th>
154
+ </tr>
155
+ </template>
156
+ <template partial='body'>
157
+ <td style="text-align: center;">
158
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
159
+ </td>
160
+ <td style="text-align: center;">
161
+ <nobr>{{row.f_user_name}}</nobr>
162
+ </td>
163
+ <td style="text-align: center;">
164
+ <nobr>{{row.f_address}}</nobr>
165
+ </td>
166
+ <td style="text-align: center;">
167
+ <nobr>{{row.f_user_phone}}</nobr>
168
+ </td>
169
+ <td style="text-align: center;">
170
+ <nobr>{{row.f_idnumber}}</nobr>
171
+ </td>
172
+ <td style="text-align: center;">
173
+ <nobr>{{row.f_price_name}}</nobr>
174
+ </td>
175
+ <td style="text-align: center;">
176
+ <nobr>{{row.f_open_date}}</nobr>
177
+ </td>
178
+ <td style="text-align: center;">
179
+ <nobr>{{row.f_meternumber}}</nobr>
180
+ </td>
181
+ <td style="text-align: center;">
182
+ <nobr>{{row.f_gas_person}}</nobr>
183
+ </td>
184
+ <td style="text-align: center;">
185
+ <nobr>{{row.f_gas_date}}</nobr>
186
+ </td>
187
+ <td style="text-align: center;">
188
+ <nobr>{{row.f_gasproperties}}</nobr>
189
+ </td>
190
+ <td style="text-align: center;">
191
+ <nobr>{{row.f_total_gas}}</nobr>
192
+ </td>
193
+ <td style="text-align: center;">
194
+ <nobr>{{row.f_meter_brand}}</nobr>
195
+ </td>
196
+ <td style="text-align: center;">
197
+ <nobr>{{row.f_depname}}</nobr>
198
+ </td>
199
+ <td style="text-align: center;">
200
+ <nobr>{{row.isbgl}}</nobr>
201
+ </td>
202
+ <td style="text-align: center;">
203
+ <nobr>{{row.f_operator}}</nobr>
204
+ </td>
205
+ </template>
206
+ <template partial='foot'></template>
207
+ </data-grid>
208
+ </criteria-paged>
209
+ </div>
210
+ <div v-if="showinfo">
211
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
212
+ </div>
213
+ </div>
214
+ </div>
215
+ </template>
216
+
217
+ <script>
218
+ import {PagedList} from 'vue-client'
219
+ import defaultPrint from '../config/DefaultPrint'
220
+ import exportConfig from '../config/exportConfig'
221
+
222
+ let readySomething = async function (self) {
223
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
224
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
225
+ await self.$MagLoadParams.loadParam()
226
+ self.initParams()
227
+
228
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
229
+ }
230
+ export default {
231
+ title: '开户查询',
232
+ data() {
233
+ return {
234
+ data: {},
235
+ initres: {
236
+ org:[this.$login.f.orgid],
237
+ dep:[],
238
+ user:[],
239
+ },
240
+ orderFields: {
241
+ f_address: 'no'
242
+ },
243
+ orderDefault: "'f_open_date desc'",
244
+ model: new PagedList('rs/sql/newAccountQuery', 20,{orderitem: "'f_open_date desc'"}),
245
+ f_orgid: this.$login.f.orgid,
246
+ criteriaShow: false,
247
+ modelval: [],
248
+ printshow: false,
249
+ all: false,
250
+ fields: {},
251
+ thead: '',
252
+ tfoot: '',
253
+ orgCondtionStr: '(' + this.$login.f.orgid + ')',
254
+ // orgCondtionStr: ` and f_orgid = '${this.$login.f.orgid}'`,
255
+ meterbrands: [],
256
+ showinfo:false,
257
+ rowdata:{},
258
+ //合计数据
259
+ sumsmodel: {},
260
+ gasproperties:[],
261
+ }
262
+ },
263
+ ready() {
264
+ readySomething(this).then(() => {
265
+ this.$emit('ready')
266
+ }).catch((error) => {
267
+ this.$emit('error', error)
268
+ })
269
+ },
270
+ methods: {
271
+ cancel() {
272
+ this.showinfo = false
273
+ },
274
+ search() {
275
+ this.$refs.paged.$refs.cri.search()
276
+ },
277
+ getRes(obj) {
278
+ console.log(obj,"========")
279
+ this.orgCondtionStr = obj
280
+ },
281
+ selfSearch(args) {
282
+ args.condition = `${args.condition}` + this.orgCondtionStr
283
+ this.model.search(args.condition, args.model)
284
+ },
285
+ showmsg(obj){
286
+ this.rowdata=obj
287
+ this.showinfo=true
288
+ },
289
+ initParams() {
290
+ // 初始化气表品牌
291
+ let brandArr = []
292
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
293
+ let temp = {}
294
+ temp.label = item.label
295
+ temp.value = item.value.f_meter_brand
296
+ brandArr.push(temp)
297
+ })
298
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
299
+ },
300
+
301
+ clear() {
302
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
303
+ this.$refs.paged.$refs.cri.model[key] = []
304
+ })
305
+ },
306
+ show() {
307
+ this.criteriaShow = true
308
+ },
309
+ hidden() {
310
+ this.criteriaShow = !this.criteriaShow
311
+ },
312
+ dealmsg(val) {
313
+ console.log('---------------dealmsg')
314
+ this.rowdata=val
315
+ this.show=true
316
+ val.model = this.model.model
317
+ this.$dispatch('deal-msg', val)
318
+ },
319
+ stamp() {
320
+ this.all = false
321
+ //默认选择要打印的列
322
+ this.modelval = defaultPrint.config
323
+ this.fields = this.getfield
324
+ console.log('所有打印字段', this.fields)
325
+ this.printshow = true
326
+ this.put()
327
+ },
328
+ put() {
329
+ // 对Modelval进行排序
330
+ this.sortModelval()
331
+ this.thead = `<tr><th colspan=${this.modelval.length}>开户查询</th></tr><tr>`
332
+ for (let key of this.modelval) {
333
+ this.thead += '<th>' + this.fields[key] + '</th>'
334
+ }
335
+ this.thead += '</tr>'
336
+ },
337
+ print() {
338
+ this.$refs.print.PrintAsFile()
339
+ this.printshow = false
340
+ },
341
+ close() {
342
+ this.printshow = false
343
+ this.all = false
344
+ },
345
+ // 对选择的列进行排序
346
+ sortModelval() {
347
+ let sortModel = []
348
+ Object.keys(this.fields).forEach((key) => {
349
+ if (this.modelval.includes(key)) {
350
+ sortModel.push(key)
351
+ }
352
+ })
353
+ this.modelval = sortModel
354
+ console.log('选择的打印的字段', this.modelval)
355
+ },
356
+ async updateParams() {
357
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
358
+ this.initParams()
359
+ },
360
+ sort (field, rule) {
361
+ // 将所有排序方式设为不排序,实现相互排斥
362
+ for (let key in this.orderFields) {
363
+ if (key === field) {
364
+ this.orderFields[key] = rule
365
+ } else {
366
+ this.orderFields[key] = 'no'
367
+ }
368
+ }
369
+ // 如果新规则不排序,还原为默认排序
370
+ if (rule === 'no') {
371
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
372
+ } else {
373
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
374
+ }
375
+
376
+ this.search()
377
+ },
378
+ userTypeChange () {
379
+ this.gasproperties=[]
380
+ if(this.$refs.paged.$refs.cri.model !==null) {
381
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
382
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
383
+ }
384
+ else{
385
+ this.gasproperties =[{label: '全部', value: ''}]
386
+ }
387
+ }
388
+ },
389
+ watch: {
390
+ 'all'(val) {
391
+ if (val) {
392
+ this.modelval = this.bodyData
393
+ } else {
394
+ this.modelval = defaultPrint.config
395
+ this.put()
396
+ }
397
+ },
398
+ 'modelval.length'() {
399
+ this.put()
400
+ }
401
+ },
402
+ computed: {
403
+ authArr () {
404
+ return this.$login.r ? this.$login.r : []
405
+ },
406
+ getCondition () {
407
+ var con = ""
408
+ if (this.orgCondtionStr) {
409
+ con = `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr
410
+ }
411
+ else {
412
+ con = `${this.$refs.paged.$refs.cri.condition} and f_orgid in ('${this.$login.f.orgid}' )`
413
+ }
414
+ return {
415
+ condition: con
416
+ }
417
+ },
418
+ getfield() {
419
+ return exportConfig.NewAccountConfig
420
+ },
421
+ usertypes() {
422
+ return this.$appdata.getParam('用户类型')
423
+ },
424
+ pricetypes() {
425
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
426
+ },
427
+ gaspropertyTypes() {
428
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
429
+ }
430
+ }
431
+ }
432
+ </script>
@@ -33,8 +33,10 @@ let specialComp = {
33
33
  // 销户查询
34
34
  'cancellation-query':(resolve) => {require(['./CancellationQuery'], resolve)},
35
35
  // 汇总查询
36
- 'collect-manage':(resolve) => {require(['./CollectManage'], resolve)
37
- }
36
+ 'collect-manage':(resolve) => {require(['./CollectManage'], resolve)},
37
+ // 开户查询
38
+ 'new-account-query':(resolve) => {require(['./NewAccountQuery'], resolve)
39
+ }
38
40
  }
39
41
  exports.specialComp = specialComp
40
42
 
@@ -543,6 +543,10 @@ export default function (filiale) {
543
543
  // Vue.component('bill-use-report', (resolve) => {
544
544
  // require(['./components/SellReport/BillUseReport'], resolve)
545
545
  // })
546
+ // 铜川售气占比报表
547
+ Vue.component('eSale-Month-Report', (resolve) => {
548
+ require(['./components/SellReport/ESaleMonthReport.vue'], resolve)
549
+ })
546
550
  // 报表展示组件(日结账报表)
547
551
  Vue.component('bus-summaryes', (resolve) => {
548
552
  require(['./components/SellReport/BusSummaryes'], resolve)