manage-client 4.1.58-lsrh → 4.1.58-lsys

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "4.1.58-lsrh",
3
+ "version": "4.1.58-lsys",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -24,7 +24,40 @@
24
24
  :show-reset-button="reset">
25
25
  </datepicker>
26
26
  </div>
27
- <res-select-group :show-component="$parent.$parent.resshow" :selectin="true" :initres="$parent.$parent.initres" :cascade =true @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
27
+ <res-select-group :show-component="$parent.$parent.resshow"
28
+ :selectin="true" :initres="$parent.$parent.initres"
29
+ :cascade =true @re-res="$parent.$parent.getRes" v-ref:sel>
30
+ </res-select-group>
31
+ <div class="col-sm-2 form-group">
32
+ <label class="font_normal_body" title="参数:报表1收费类型">收费类型</label>
33
+ <v-select :value.sync="$parent.$parent.f_charge_type"
34
+ v-ref:f_charge_type
35
+ v-model="$parent.$parent.f_charge_type"
36
+ :options='$parent.$parent.chargeTypes'
37
+ placeholder='请选择'
38
+ :multiple="true">
39
+ </v-select>
40
+ </div>
41
+ <div class="col-sm-2 form-group">
42
+ <label class="font_normal_body" title="参数:报表1用气性质">用气性质</label>
43
+ <v-select :value.sync="$parent.$parent.f_gasproperties"
44
+ v-ref:gasproperties
45
+ v-model="$parent.$parent.f_gasproperties"
46
+ :options='$parent.$parent.gasproperties'
47
+ placeholder='请选择'
48
+ :multiple="true">
49
+ </v-select>
50
+ </div>
51
+ <div class="col-sm-2 form-group">
52
+ <label class="font_normal_body" title="参数:付款方式">收费方式</label>
53
+ <v-select :value.sync="$parent.$parent.f_payment"
54
+ v-ref:payment
55
+ v-model="$parent.$parent.f_payment"
56
+ :options='$parent.$parent.payments'
57
+ placeholder='请选择'
58
+ :multiple="true">
59
+ </v-select>
60
+ </div>
28
61
  </div>
29
62
  <div class="span" style = "float:right;">
30
63
  <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
@@ -73,7 +106,7 @@
73
106
  </tr>
74
107
  </tfoot>
75
108
  </table>
76
- {{{ $parent.reportStr}}}
109
+ {{{ $parent.reportStr }}}
77
110
  </div>
78
111
  </criteria-paged>
79
112
  </div>
@@ -98,13 +131,22 @@ export default {
98
131
  depid: [],
99
132
  orgname: '',
100
133
  depname: '',
134
+ f_charge_type: '',
135
+ f_gasproperties: '',
136
+ f_payment: '',
101
137
  criteriaShow: false,
102
138
  operatorname: '',
103
139
  orgCondtionStr: '1=1',
104
- model: new DataModel('api/af-revenue/report/dayReport', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
105
- f_orgid: 'this.model.f_orgid'}),
140
+ model: new DataModel('api/af-revenue/report/dayReport', {
141
+ startDate: 'this.model.startDate',
142
+ endDate: 'this.model.endDate',
143
+ f_orgid: 'this.model.f_orgid',
144
+ f_charge_type: 'this.model.f_charge_type',
145
+ f_gasproperties: 'this.model.f_gasproperties',
146
+ f_payment: 'this.model.f_payment'
147
+ }),
106
148
  reportStr: null,
107
- resshow:['company','department','operator'],
149
+ resshow: ['company', 'department', 'operator'],
108
150
  spans: 0,
109
151
  initres: {
110
152
  org: [this.$login.f.orgid],
@@ -122,7 +164,36 @@ export default {
122
164
  searchData () {
123
165
  this.$refs.paged.$refs.criteria.search()
124
166
  },
167
+ appendCondition (data) {
168
+ let stringValue = '('
169
+ for (let i = 0; i < data.length; i++) {
170
+ if (data[i]) {
171
+ if (i === data.length - 1) {
172
+ stringValue = stringValue + "'" + data[i] + "'"
173
+ } else {
174
+ stringValue = stringValue + "'" + data[i] + "',"
175
+ }
176
+ }
177
+ }
178
+ stringValue = stringValue + ')'
179
+ return stringValue
180
+ },
125
181
  selfSearch (args) {
182
+ if (this.f_charge_type.length > 0) {
183
+ this.$refs.paged.$refs.criteria.model.f_charge_type = this.appendCondition(this.f_charge_type)
184
+ } else {
185
+ this.$refs.paged.$refs.criteria.model.f_charge_type = ''
186
+ }
187
+ if (this.f_gasproperties.length > 0) {
188
+ this.$refs.paged.$refs.criteria.model.f_gasproperties = this.appendCondition(this.f_gasproperties)
189
+ } else {
190
+ this.$refs.paged.$refs.criteria.model.f_gasproperties = ''
191
+ }
192
+ if (this.f_payment.length > 0) {
193
+ this.$refs.paged.$refs.criteria.model.f_payment = this.appendCondition(this.f_payment)
194
+ } else {
195
+ this.$refs.paged.$refs.criteria.model.f_payment = ''
196
+ }
126
197
  this.printTime = this.$login.toStandardTimeString()
127
198
  let orgcondition = '1=1'
128
199
  let orgstr = this.orgCondtionStr
@@ -130,7 +201,7 @@ export default {
130
201
  this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
131
202
  this.$refs.paged.search(args)
132
203
  },
133
- hidden() {
204
+ hidden () {
134
205
  this.criteriaShow = !this.criteriaShow
135
206
  },
136
207
  getRes (condition, obj) {
@@ -144,24 +215,33 @@ export default {
144
215
  this.userresid = obj
145
216
  this.f_depid = obj
146
217
  },
147
- getuser ( obj, val) {
218
+ getuser (obj, val) {
148
219
  this.operatorname = val[0]
149
220
  this.f_operatorid = obj
150
221
  }
151
222
  },
152
223
  watch: {
153
224
  'model.data' (val) {
154
- let len=0
155
- let a=val.split('</tr>')
156
- for(let i=0;i<a.length;i++){
157
- if(a[i].split('</td>').length-1>len){
158
- len=a[i].split('</td>').length-1
225
+ let len = 0
226
+ let a = val.split('</tr>')
227
+ for (let i = 0; i < a.length; i++) {
228
+ if (a[i].split('</td>').length - 1 > len) {
229
+ len = a[i].split('</td>').length - 1
159
230
  }
160
231
  }
161
232
  this.spans = len
162
233
  }
163
234
  },
164
235
  computed: {
236
+ payments () {
237
+ return this.$appdata.getParam('付款方式')
238
+ },
239
+ gasproperties () {
240
+ return this.$appdata.getParam('报表1用气性质')
241
+ },
242
+ chargeTypes () {
243
+ return this.$appdata.getParam('报表1收费类型')
244
+ }
165
245
  }
166
246
  }
167
247
  </script>
@@ -132,9 +132,9 @@
132
132
  depresid: [],
133
133
  userresid: [],
134
134
  initres: {
135
- org:[this.$login.f.orgid],
136
- dep:[],
137
- user:[]
135
+ org: [this.$login.f.orgid],
136
+ dep: [],
137
+ user: []
138
138
  },
139
139
  f_public_group1: '',
140
140
  f_public_group2: '',
@@ -149,15 +149,15 @@
149
149
  depname: '',
150
150
  operatorname: '',
151
151
  orgCondtionStr: '1=1',
152
- model: new DataModel('api/af-revenue/report/jinHongPublicGasPriceReport2',
153
- {startDate: 'this.model.startDate',
154
- endDate: 'this.model.endDate',
155
- f_orgid: 'this.model.f_orgid',
156
- f_public_group1: 'this.model.f_public_group1[0]',
157
- f_public_group2: 'this.model.f_public_group2[0]',
158
- group1Name: 'this.model.group1Name',
159
- group2Name: 'this.model.group2Name'
160
- }
152
+ model: new DataModel('api/af-revenue/report/jinHongPublicGasPriceReport2', {
153
+ startDate: 'this.model.startDate',
154
+ endDate: 'this.model.endDate',
155
+ f_orgid: 'this.model.f_orgid',
156
+ f_public_group1: 'this.model.f_public_group1[0]',
157
+ f_public_group2: 'this.model.f_public_group2[0]',
158
+ group1Name: 'this.model.group1Name',
159
+ group2Name: 'this.model.group2Name'
160
+ }
161
161
  ),
162
162
  reportStr: null,
163
163
  show: false,
@@ -170,6 +170,20 @@
170
170
  // this.$refs.paged.$refs.criteria.search()
171
171
  },
172
172
  methods: {
173
+ appendCondition (data) {
174
+ let stringValue = '('
175
+ for (let i = 0; i < data.length; i++) {
176
+ if (data[i]) {
177
+ if (i === data.length - 1) {
178
+ stringValue = stringValue + "'" + data[i] + "'"
179
+ } else {
180
+ stringValue = stringValue + "'" + data[i] + "',"
181
+ }
182
+ }
183
+ }
184
+ stringValue = stringValue + ')'
185
+ return stringValue
186
+ },
173
187
  searchData () {
174
188
  this.$refs.paged.$refs.criteria.search()
175
189
  },
@@ -179,22 +193,22 @@
179
193
  this.$refs.paged.$refs.criteria.model.group2Name = this.$refs.paged.$refs.criteria.$refs.grouptwo.selectedItems
180
194
  let orgcondition = '1 = 1'
181
195
  if (this.f_orgid[0]) {
182
- orgcondition += ` and f_orgid in ('${this.f_orgid}')`
196
+ orgcondition += ` and f_orgid in ${this.appendCondition(this.f_orgid)}`
183
197
  }
184
198
  if (this.f_depid[0]) {
185
- orgcondition += ` and f_depid in ('${this.f_depid}')`
199
+ orgcondition += ` and f_depid in ${this.appendCondition(this.f_depid)}`
186
200
  }
187
- if(this.f_operatorid[0]) {
188
- orgcondition += ` and f_operatorid in ('${this.f_operatorid}')`
201
+ if (this.f_operatorid[0]) {
202
+ orgcondition += ` and f_operatorid in ${this.appendCondition(this.f_operatorid)}`
189
203
  }
190
204
  let name1 = args.model.f_public_group1
191
205
  let name2 = args.model.f_public_group2
192
- if (name1 == null || name1 == '' || name2 == null || name2 == ''){
193
- alert("请选择分组项!!!")
206
+ if (name1 == null || name1 == '' || name2 == null || name2 == '') {
207
+ alert('请选择分组项!!!')
194
208
  return
195
209
  }
196
- if (name2.toString() == name1.toString()){
197
- alert("分组项一与分组项二不能重复!!!")
210
+ if (name2.toString() == name1.toString()) {
211
+ alert('分组项一与分组项二不能重复!!!')
198
212
  return
199
213
  }
200
214
  console.log(args.model.f_public_group1)
@@ -211,7 +225,7 @@
211
225
  this.userresid = obj
212
226
  this.f_depid = obj
213
227
  },
214
- getuser ( obj, val) {
228
+ getuser (obj, val) {
215
229
  this.operatorname = val[0]
216
230
  this.f_operatorid = obj
217
231
  }
@@ -230,26 +244,30 @@
230
244
  var num = 0
231
245
  for (let td of tds) {
232
246
  let span = td.getAttribute('colspan')
233
- num = num + ((span ? span : 1) - 0)
247
+ num = num + ((span || 1) - 0)
234
248
  }
235
249
  this.spans = num
236
250
  }
237
251
  },
238
252
  computed: {
239
- group1() {
240
- return [{label:'用户类型', value:'f_user_type'},
241
- {label:'用气性质', value:'f_gasproperties'},
242
- {label:'用户标签', value:'f_user_tags'},
243
- {label:'用气类型', value:'f_user_gas_type'},
244
- {label:'气价名称 ', value:'f_price_name'}]
253
+ group1 () {
254
+ return [
255
+ {label: '用户类型', value: 'f_user_type'},
256
+ {label: '用气性质', value: 'f_gasproperties'},
257
+ {label: '用户标签', value: 'f_user_tags'},
258
+ {label: '用气类型', value: 'f_user_gas_type'},
259
+ {label: '气价名称 ', value: 'f_price_name'}
260
+ ]
245
261
  },
246
- group2() {
247
- return [{label:'用户类型', value:'f_user_type'},
248
- {label:'用气性质', value:'f_gasproperties'},
249
- {label:'气价名称', value:'f_price_name'},
250
- {label:'用户标签', value:'f_user_tags'},
251
- {label:'用气类型', value:'f_user_gas_type'},
252
- {label:'单价', value:'f_stair_price'}]
262
+ group2 () {
263
+ return [
264
+ {label: '用户类型', value: 'f_user_type'},
265
+ {label: '用气性质', value: 'f_gasproperties'},
266
+ {label: '气价名称', value: 'f_price_name'},
267
+ {label: '用户标签', value: 'f_user_tags'},
268
+ {label: '用气类型', value: 'f_user_gas_type'},
269
+ {label: '单价', value: 'f_stair_price'}
270
+ ]
253
271
  }
254
272
  }
255
273
  }
@@ -14,8 +14,4 @@ export default function () {
14
14
  Vue.component('fmygas-query', (resolve) => {
15
15
  require(['./FMYGasQuery'], resolve)
16
16
  })
17
- // 收费查询
18
- Vue.component('charge-query', (resolve) => {
19
- require(['./ChargeQuery'], resolve)
20
- })
21
17
  }
@@ -667,11 +667,11 @@
667
667
  fileName: '非民用用气设备查询'
668
668
  }
669
669
  let HttpReset = new HttpResetClass()
670
- let res = await HttpReset.load('POST', 'rs/deviceExport/gasDevices', {
670
+ let res = await HttpReset.load('POST', 'api/af-revenue/deviceExport/gasDevices', {
671
671
  data: data
672
672
  }, {resolveMsg: null, rejectMsg: null})
673
673
  if (res){
674
- let downurl = 'rs/deviceExport/download?filename=非民用用气设备查询.xlsx';
674
+ let downurl = 'api/af-revenue/deviceExport/download?filename=非民用用气设备查询.xlsx';
675
675
  this.$resetget(downurl, {}).then(res => {
676
676
  var link = document.createElement('a');
677
677
  link.target = "_blank"
@@ -47,7 +47,7 @@
47
47
  <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
48
48
  <export-excel :data="$parent.$parent.getCondition"
49
49
  :field="$parent.$parent.getExportField"
50
- sqlurl="rs/easyExcel/gasDeviceExport" sql-name="myGasDeviceQuery" template-name='民用用气设备查询'
50
+ sqlurl="api/af-revenue/easyExcel/gasDeviceExport" sql-name="myGasDeviceQuery" template-name='民用用气设备查询'
51
51
  :choose-col="true"></export-excel>
52
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
53
  </div>
@@ -776,11 +776,11 @@
776
776
  fileName: '民用用气设备查询'
777
777
  }
778
778
  let HttpReset = new HttpResetClass()
779
- let res = await HttpReset.load('POST', 'rs/deviceExport/gasDevices', {
779
+ let res = await HttpReset.load('POST', 'api/af-revenue/deviceExport/gasDevices', {
780
780
  data: data
781
781
  }, {resolveMsg: null, rejectMsg: null})
782
782
  if (res){
783
- let downurl = 'rs/deviceExport/download?filename=民用用气设备查询.xlsx';
783
+ let downurl = 'api/af-revenue/deviceExport/download?filename=民用用气设备查询.xlsx';
784
784
  this.$resetget(downurl, {}).then(res => {
785
785
  var link = document.createElement('a');
786
786
  link.target = "_blank"
@@ -47,7 +47,7 @@
47
47
  :field="$parent.$parent.getfield"
48
48
  :header="$parent.$parent.other"
49
49
  v-if="$parent.$parent.authArr.includes('档案查询导出')"
50
- sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="changeuserquery" template-name='档案变更导出'
50
+ sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="pricechangequery" template-name='档案变更导出'
51
51
  :choose-col="true"></export-excel>
52
52
  <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
53
53
  :defaultfield="$parent.$parent.defaultfield"
@@ -398,7 +398,7 @@
398
398
  return this.$login.r ? this.$login.r : []
399
399
  },
400
400
  getCondition() {
401
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
401
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,orderitem:this.orderitem}
402
402
  },
403
403
  getfield() {
404
404
  return exportConfig.changUserConfig
@@ -0,0 +1,236 @@
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
+ <res-select-group :show-component="$parent.$parent.resshow" :selectin="true" :initres="$parent.$parent.initres" :cascade =true @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">用户类型</label>
31
+ <v-select :value.sync="model.f_user_type"
32
+ v-model="model.f_user_type"
33
+ :options='$parent.$parent.user_type' placeholder='请选择'
34
+ condition="f_user_type = '{}'"
35
+ close-on-select></v-select>
36
+ </div>
37
+ <div class="col-sm-2 form-group">
38
+ <label class="font_normal_body" title="参数:付款方式查询">气表品牌</label>
39
+ <v-select :value.sync="model.gasbrand" multiple
40
+ v-model="model.gasbrand"
41
+ :options='$parent.$parent.meterbrands'
42
+ placeholder='请选择'
43
+ condition="f_meter_brand in {}"
44
+ close-on-select></v-select>
45
+ </div>
46
+ <div class="span" style = "float:right;">
47
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
48
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
49
+ <report-excel id='gasprice'></report-excel>
50
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
51
+ 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
52
+ </div>
53
+ <div class="row" v-show="$parent.$parent.criteriaShow">
54
+
55
+ </div>
56
+ </div>
57
+ </criteria>
58
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
59
+ <table class='tableprint' style="margin: 0px auto">
60
+ <thead>
61
+ <tr>
62
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
63
+ <h3 style="text-align: center">用气分项汇总表</h3>
64
+ </th>
65
+ </tr>
66
+ <tr>
67
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
68
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
69
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;<br/>
70
+ <!--打印时间:{{{$parent.printTime}}}-->
71
+ 打印时间:{{$parent.printTime}}
72
+ <!--收费员:{{// $parent.operatorname}}-->
73
+ </th>
74
+ </tr>
75
+ <tr>
76
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
77
+ <div>
78
+ <span yle="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
79
+ <span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
80
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.operatorname">人员:{{$parent.operatorname}}</span>
81
+ </div>
82
+ </th>
83
+ </tr>
84
+ </thead>
85
+ <tr>
86
+ <td :colspan='$parent.spans' class="noborder">
87
+ {{{ model.data.substring(26,model.data.length-8) }}}
88
+ </td>
89
+ </tr>
90
+ <tfoot>
91
+ <tr style="text-align: left">
92
+ <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
93
+ <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
94
+ <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
95
+ </tr>
96
+ </tfoot>
97
+ </table>
98
+ {{{ $parent.reportStr}}}
99
+ </div>
100
+ </criteria-paged>
101
+ </div>
102
+ </template>
103
+
104
+ <script>
105
+ import { DataModel } from 'vue-client'
106
+ import co from 'co'
107
+
108
+ let readySomething = async function (self) {
109
+ await self.$MagLoadParams.loadParam()
110
+ self.initParams()
111
+ }
112
+ export default {
113
+ title: '用气分项汇总表',
114
+ props: ['data'],
115
+ data () {
116
+ return {
117
+ meterbrands:[{label: '全部',value: ''}],
118
+ printTime: this.$login.toStandardTimeString(),
119
+ depresid: [],
120
+ userresid: [],
121
+ f_orgid: this.$login.f.orgid,
122
+ f_depid: this.$login.f.depids,
123
+ // f_operatorid: this.$login.f.id,
124
+ operatorid: [],
125
+ depid: [],
126
+ orgname: '',
127
+ depname: '',
128
+ criteriaShow: false,
129
+ operatorname: '',
130
+ orgCondtionStr: '1=1',
131
+ f_user_type: '',
132
+ f_state:['有效'],
133
+ model: new DataModel('api/af-revenue/report/xk_gas_usage_Summary', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
134
+ f_orgid: 'this.model.f_orgid'}),
135
+ reportStr: null,
136
+ resshow:['company','department','operator'],
137
+ spans: 0,
138
+ user_type:[],
139
+ initres: {
140
+ org: [this.$login.f.orgid],
141
+ dep: [],
142
+ user: []
143
+ }
144
+ }
145
+ },
146
+ ready () {
147
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
148
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
149
+ console.log(this.$login.f)
150
+ readySomething(this).then(() => {
151
+ this.$emit('ready')
152
+ }).catch((error) => {
153
+ this.$emit('error', error)
154
+ })
155
+ },
156
+ methods: {
157
+ searchData () {
158
+ this.$refs.paged.$refs.criteria.search()
159
+ },
160
+ initParams() {
161
+ // 初始化气表品牌
162
+ let brandArr = []
163
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
164
+ let temp = {}
165
+ temp.label = item.label
166
+ temp.value = item.value.f_meter_brand
167
+ brandArr.push(temp)
168
+ })
169
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
170
+
171
+ },
172
+ selfSearch (args) {
173
+ this.printTime = this.$login.toStandardTimeString()
174
+ let orgcondition = '1=1'
175
+ console.log("args:",args)
176
+ let orgstr = this.orgCondtionStr
177
+ orgcondition = orgcondition + orgstr
178
+ /* if (this.f_orgid && this.f_orgid[0]) {
179
+ orgcondition += ` and f_orgid in ('${this.f_orgid}')`
180
+ }
181
+ if (this.f_depid && this.f_depid[0]) {
182
+ orgcondition += ` and f_depid in ('${this.f_depid}')`
183
+ }
184
+ if(this.f_operatorid && this.f_operatorid[0]) {
185
+ orgcondition += ` and f_operatorid in ('${this.f_operatorid}')`
186
+ }*/
187
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition.replace('1=1','') + ' and ' + args.condition
188
+ this.$refs.paged.search(args)
189
+ },
190
+
191
+ hidden() {
192
+ this.criteriaShow = !this.criteriaShow
193
+ },
194
+ getRes (condition, obj) {
195
+ this.orgCondtionStr = condition
196
+ this.orgname = obj.orgnames[0]
197
+ this.depname = obj.depnames[0]
198
+ },
199
+ getdep (obj, val) {
200
+ this.depname = val[0]
201
+ this.userresid = obj
202
+ this.f_depid = obj
203
+ },
204
+ getuser ( obj, val) {
205
+ this.operatorname = val[0]
206
+ this.f_operatorid = obj
207
+ }
208
+ },
209
+ watch: {
210
+ 'model.data' (val) {
211
+ let len=0
212
+ let a=val.split('</tr>')
213
+ for(let i=0;i<a.length;i++){
214
+ if(a[i].split('</td>').length-1>len){
215
+ len=a[i].split('</td>').length-1
216
+ }
217
+ }
218
+ this.spans = len
219
+ }
220
+ },
221
+ computed: {
222
+ user_type () {
223
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
224
+ },
225
+ charge_state () {
226
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
227
+ }
228
+
229
+ }
230
+ }
231
+ </script>
232
+ <style scoped>
233
+ .noborder{
234
+ border: none;
235
+ }
236
+ </style>
@@ -12,4 +12,6 @@ export default function () {
12
12
  Vue.component('bank-manager', (resolve) => { require(['./BankManager'], resolve) })
13
13
  // 换表故障统计报表
14
14
  Vue.component('change-meter-fault-summary', (resolve) => { require(['./meterFaultChangeSummary'], resolve) })
15
+ // 用气汇总报表
16
+ Vue.component('gas-usage-summary', (resolve) => { require(['./GasUsageSummary'], resolve) })
15
17
  }