manage-client 3.3.176 → 3.3.177

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.3.176",
3
+ "version": "3.3.177",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -1,525 +1,536 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main">
4
- <div class="flex" :class="{showbottom:showbottomsum}" v-if="!show">
5
- <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row" >
9
- <div class="col-sm-2">
10
- <label class="font_normal_body">组织机构</label>
11
- <res-select :initresid="$parent.$parent.org"
12
- style="width:60%"
13
- @res-select="$parent.$parent.getorg"
14
- :is-mul=false
15
- restype='organization'>
16
- </res-select>
17
- </div>
18
- <div class="col-sm-2">
19
- <label class="font_normal_body">客户编号</label>
20
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
21
- condition="ss.f_userinfo_code like '%{}%'" v-next-el='f_userinfo_code' v-el:meternumber
22
- >
23
- </div>
24
- <div class="col-sm-2">
25
- <label class="font_normal_body">客户名称</label>
26
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'
27
- condition="ss.f_user_name like '%{}%'" v-next-el='userid' v-el:username>
28
- </div>
29
- <div class="col-sm-2">
30
- <label class="font_normal_body">客户地址</label>
31
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_address" placeholder='客户地址'
32
- condition="ss.f_address like '%{}%'" v-next-el='f_address' v-el:f_address>
33
- </div>
34
- <div class="span" style="float:right;margin-top:10px">
35
- <button class="button_search button_spacing" @click="search()">查询</button>
36
- <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
37
- <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
38
- :field="$parent.$parent.getfield"
39
- sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="gasStatisticsQuery" template-name='用气量统计表'
40
- :choose-col="true"></export-excel>
41
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
42
- :defaultfield="$parent.$parent.defaultfield"
43
- titletable="缴费记录报表" :starthead="$parent.$parent.getstart"
44
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
45
- <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>
46
- </div>
47
- </div>
48
- <div class="row" v-show="$parent.$parent.criteriaShow">
49
- <div class="col-sm-2">
50
- <label class="font_normal_body">电&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;话</label>
51
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_user_phone" placeholder='电话'
52
- condition="ss.f_user_phone like '%{}%'" v-next-el='f_user_phone' v-el:f_user_phone
53
- >
54
- </div>
55
- <div class="col-sm-2">
56
- <label class="font_normal_body">小&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区</label>
57
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_residential_area" placeholder='小区'
58
- condition="ss.f_residential_area like '%{}%'" v-next-el='f_residential_area' v-el:f_residential_area>
59
- </div>
60
- <div class="col-sm-2">
61
- <label class="font_normal_body">表&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
62
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_meternumber" placeholder='表号'
63
- condition="ss.f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
64
- >
65
- </div>
66
- <div class="col-sm-2">
67
- <label class="font_normal_body">燃气证号</label>
68
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_gascode" placeholder='燃气证号'
69
- condition="ss.f_gascode like '%{}%'" v-next-el='f_gascode' v-el:f_gascode
70
- >
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
- close-on-select>
77
- </v-select>
78
- </div>
79
- <div class="col-sm-2 form-group">
80
- <label class="font_normal_body">气价名称</label>
81
- <v-select :value.sync="model.f_price_name"
82
- v-model="model.f_price_name"
83
- :options="$parent.$parent.getPricenames"
84
- condition="ss.f_price_name = '{}'"
85
- close-on-select></v-select>
86
- </div>
87
- <div class="col-sm-2 form-group">
88
- <label class="font_normal_body">气表品牌</label>
89
- <v-select :value.sync="model.f_meter_brand"
90
- v-model="model.f_meter_brand"
91
- :options="$parent.$parent.meterbrands"
92
- condition="ss.f_meter_brand in {}"
93
- multiple></v-select>
94
- </div>
95
- <div class="col-sm-2 form-group">
96
- <label class="font_normal_body">是否换表</label>
97
- <v-select :value.sync="model.f_changetable_state"
98
- v-model="model.f_changetable_state"
99
- :options="$parent.$parent.isChange"
100
- condition="ss.f_changetable_state = '{}'"
101
- close-on-select></v-select>
102
- </div>
103
- <div class="col-sm-2 form-group">
104
- <label class="font_normal_body">用气状态</label>
105
- <v-select :value.sync="model.f_gas_state"
106
- v-model="model.f_gas_state"
107
- :options="$parent.$parent.gasState"
108
- condition="ss.f_gas_state = '{}'"
109
- close-on-select></v-select>
110
- </div>
111
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
112
- <label class="font_normal_body">用气量区间</label>
113
- <div class="row">
114
- <input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount1"
115
- condition="ss.f_oughtamount >= {} " placeholder="">
116
- <label class="font_normal_body"> ≤ x ≤ </label>
117
- <input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount2"
118
- condition="ss.f_oughtamount <= {} " placeholder="">
119
- </div>
120
- </div>
121
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
122
- <label class="font_normal_body">&nbsp;充值区间&nbsp;&nbsp;</label>
123
- <div class="row">
124
- <input type="text" style="width:27%" class="input_search" v-model="model.f_collection1"
125
- condition="ss.f_collection >= {} " placeholder="">
126
- <label class="font_normal_body"> ≤ x ≤ </label>
127
- <input type="text" style="width:27%" class="input_search" v-model="model.f_collection2"
128
- condition="ss.f_collection <= {} " placeholder="">
129
- </div>
130
- </div>
131
- <div class="col-sm-2 form-group" >
132
- <label class="font_normal_body" for="startDate">开始时间</label>
133
- <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
134
- v-model="model.startDate"
135
- :value.sync="model.startDate"
136
- :disabled-days-of-Week="[]"
137
- :format="'yyyy-MM-dd 00:00:00'"
138
- :show-reset-button="reset">
139
- </datepicker>
140
- </div>
141
- <div class="col-sm-2 form-group" >
142
- <label class="font_normal_body" for="endDate">结束时间</label>
143
- <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
144
- v-model="model.endDate"
145
- :value.sync="model.endDate"
146
- :disabled-days-of-Week="[]"
147
- :format="'yyyy-MM-dd 23:59:59'"
148
- :show-reset-button="reset">
149
- </datepicker>
150
- </div>
151
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
152
- <label class="font_normal_body">余额区间</label>
153
- <div class="row">
154
- <input type="text" style="width:27%" class="input_search" v-model="model.f_balance_amount_sta"
155
- condition="ss.f_balance_amount >= {} " placeholder="">
156
- <label class="font_normal_body"> ≤ x ≤ </label>
157
- <input type="text" style="width:27%" class="input_search" v-model="model.f_balance_amount_end"
158
- condition="ss.f_balance_amount <= {} " placeholder="">
159
- </div>
160
- </div>
161
- <div class="col-sm-2 form-group">
162
- <label class="font_normal_body">客户类型</label>
163
- <v-select :value.sync="model.f_user_type"
164
- v-model="model.f_user_type"
165
- @change="$parent.$parent.userTypeChange()"
166
- :options="$parent.$parent.usertypes"
167
- condition="ss.f_user_type = '{}'"
168
- close-on-select></v-select>
169
- </div>
170
- <div class="col-sm-2 form-group">
171
- <label class="font_normal_body">用气性质</label>
172
- <v-select :value.sync="model.f_gasproperties"
173
- v-model="model.f_gasproperties"
174
- :options="$parent.$parent.gasproperties"
175
- condition="ss.f_gasproperties = '{}'"
176
- close-on-select></v-select>
177
- </div>
178
- </div>
179
- </div>
180
- </criteria>
181
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
182
- <template partial='head'>
183
- <tr>
184
- <th><nobr>客户编号</nobr></th>
185
- <th><nobr>客户名称</nobr></th>
186
- <th><nobr>小区</nobr></th>
187
- <th><nobr>地址</nobr></th>
188
- <th><nobr>电话</nobr></th>
189
-
190
- <th><nobr>燃气证号</nobr></th>
191
- <th><nobr>表号</nobr></th>
192
- <th><nobr>表具类型</nobr></th>
193
- <th><nobr>表描述</nobr></th>
194
- <th><nobr>气价名称</nobr></th>
195
-
196
- <th><nobr>一阶气价</nobr></th>
197
- <th><nobr>二阶气价</nobr></th>
198
- <th><nobr>三阶气价</nobr></th>
199
-
200
- <th><nobr>客户类型</nobr></th>
201
- <th><nobr>用气性质</nobr></th>
202
- <th><nobr>期初余额</nobr></th>
203
- <th><nobr>起方</nobr></th>
204
- <th><nobr>止方</nobr></th>
205
- <th><nobr>期间用气量</nobr></th>
206
-
207
- <th><nobr>期间用气金额</nobr></th>
208
- <th><nobr>期间充值金额</nobr></th>
209
- <th><nobr>期末余额</nobr></th>
210
- <th><nobr>用气状态</nobr></th>
211
- <th><nobr>是否换表</nobr></th>
212
- <th><nobr>最后通讯日期</nobr></th>
213
- </tr>
214
- </template>
215
- <template partial='body' partial='list'>
216
- <tr >
217
- <td style="text-align: left;"><nobr> <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr></td>
218
- <td style="text-align: left;"><nobr>{{row.f_user_name}}</nobr></td>
219
- <td style="text-align: left;"><nobr>{{row.f_residential_area}}</nobr></td>
220
- <td style="text-align: left;"><nobr>{{row.f_address}}</nobr></td>
221
- <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
222
-
223
- <td style="text-align:center"><nobr>{{row.f_gascode}}</nobr></td>
224
- <th style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></th>
225
- <th style="text-align:center"><nobr>{{row.f_meter_classify}}</nobr></th>
226
- <th style="text-align:center"><nobr>{{row.f_meter_title}}</nobr></th>
227
- <th style="text-align:center"><nobr>{{row.f_price_name}}</nobr></th>
228
-
229
- <th style="text-align:center"><nobr>{{row.f_stair1price}}</nobr></th>
230
- <th style="text-align:center"><nobr>{{row.f_stair2price}}</nobr></th>
231
- <th style="text-align:center"><nobr>{{row.f_stair3price}}</nobr></th>
232
-
233
- <th style="text-align:center"><nobr>{{row.f_user_type}}</nobr></th>
234
- <th style="text-align:center"><nobr>{{row.f_gasproperties}}</nobr></th>
235
-
236
-
237
- <th style="text-align:center"><nobr>{{row.f_balance}}</nobr></th>
238
- <th style="text-align:center"><nobr>{{row.f_last_tablebase}}</nobr></th>
239
- <th style="text-align:center"><nobr>{{row.f_tablebase}}</nobr></th>
240
- <th style="text-align:center"><nobr>{{row.f_oughtamount}}</nobr></th>
241
- <th style="text-align:center"><nobr>{{row.f_oughtfee}}</nobr></th>
242
-
243
- <th style="text-align:center"><nobr>{{row.f_collection}}</nobr></th>
244
- <th style="text-align:center"><nobr>{{row.f_curbalance}}</nobr></th>
245
- <th style="text-align:center"><nobr>{{row.f_gas_state}}</nobr></th>
246
- <th style="text-align:center"><nobr>{{row.f_changetable_state}}</nobr></th>
247
- <th style="text-align:center"><nobr>{{row.f_input_date}}</nobr></th>
248
- </tr>
249
- </template>
250
- <template partial='foot'></template>
251
- </data-grid>
252
- </criteria-paged>
253
- <table class="table-hover">
254
- <tr style="position: relative" class="table-bordered">
255
- <td
256
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
257
- 汇总信息
258
- </td>
259
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
260
- 期间用气量:&emsp;{{sumsmodel.f_oughtamount}}
261
- </td>
262
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
263
- 期间用气金额:&emsp;{{sumsmodel.f_oughtfee}}
264
- </td>
265
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
266
- 期间充值金额:&emsp;{{sumsmodel.f_collection}}
267
- </td>
268
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
269
- 一阶气量合计:&emsp;{{sumsmodel.f_stairamount1}}
270
- </td>
271
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
272
- 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
273
- </td>
274
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
275
- 二阶气量合计:&emsp;{{sumsmodel.f_stairamount2}}
276
- </td>
277
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
278
- 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
279
- </td>
280
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
281
- 三阶气量合计:&emsp;{{sumsmodel.f_stairamount3}}
282
- </td>
283
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
284
- 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
285
- </td>
286
- </tr>
287
- </table>
288
- </div>
289
- <div class="flex" style="width:99%;height:98%;margin-bottom:0px" v-if="show">
290
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
291
- </div>
292
- </div>
293
- </div>
294
- </template>
295
-
296
- <script>
297
- import {HttpResetClass, PagedList} from 'vue-client'
298
- import exportConfig from './exportConfig'
299
- import * as Util from '../../Util'
300
- import plugins from '../../plugins/GetLoginInfoService'
301
-
302
- let readySomething = async function (self) {
303
- await self.$MagLoadParams.loadParam()
304
- self.initParams()
305
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
306
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
307
- }
308
- export default {
309
- title: '用气量统计表',
310
- data () {
311
- return {
312
- show:false,
313
- org:[this.$login.f.orgid],
314
- orgcondition: ' and ss.f_orgid = ' + this.$login.f.orgid,
315
- //f_filialeid: this.$login.f.f_orgid,
316
- detaillist: [],
317
- meterbrands: [],
318
- prices: [],
319
- gasproperties:[],
320
- condition:'',
321
- rowdata:{},
322
- getstart:'',
323
- config: {
324
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_meternumber', 'f_gasproperties', 'f_balance', 'f_last_tablebase','f_tablebase',
325
- 'f_oughtamount', 'f_oughtfee', 'f_collection', 'f_curbalance', 'f_gas_state', 'f_changetable_state', 'f_input_date']
326
- },
327
- sumsmodel: {},
328
- orgid:[this.$login.f.orgid],
329
- criteriaShow:false,
330
- //默认打印列
331
- defaultfield: [],
332
- orgCondtionStr: '',
333
- model: new PagedList('api/af-revenue/sql/gasStatisticsQuery', 50,{
334
- startDate: 'this.model.startDate',
335
- endDate: 'this.model.endDate'
336
- },{
337
- f_oughtamount: 0,
338
- f_oughtfee: 0,
339
- f_collection:0,
340
- f_stairamount1:0,
341
- f_stair1fee:0,
342
- f_stairamount2:0,
343
- f_stair2fee:0,
344
- f_stairamount3:0,
345
- f_stair3fee:0
346
- }),
347
- showbottomsum:false //页面下方是否有合计: 默认为false, 在watch修改
348
- }
349
- },
350
- ready () {
351
- // this.$refs.paged.$refs.criteria.search()
352
- readySomething(this).then(() => {
353
- this.$emit('ready')
354
- }).catch((error) => {
355
- this.$emit('error', error)
356
- })
357
- this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),-1).substring(0,10) + ' 00:00:00'
358
- this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),-1).substring(0,10) + ' 23:59:59'
359
- this.$refs.paged.$refs.criteria.model.inputStartDate = Util.addDate(new Date(),-1).substring(0,10) + ' 00:00:00'
360
- this.$refs.paged.$refs.criteria.model.inputEndDate = Util.addDate(new Date(),-1).substring(0,10) + ' 23:59:59'
361
- // this.$refs.paged.$refs.criteria.search()
362
- },
363
- methods: {
364
- initParams() {
365
- // 初始化气表品牌
366
- let brandArr = []
367
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
368
- let temp = {}
369
- temp.label = item.label
370
- temp.value = item.value.f_meter_brand
371
- brandArr.push(temp)
372
- })
373
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
374
- //初始化气表价格
375
- this.prices = this.$MagGetSaleParam.getPrices();
376
- },
377
- async updateParams() {
378
- await this.$MagLoadParams.loadParam(this.f_filialeid)
379
- this.initParams()
380
- },
381
- getorg(obj) {
382
- if(plugins.convertToIn(obj)!==null&&plugins.convertToIn(obj)!==''){
383
- this.orgcondition = " and ss.f_orgid in " + plugins.convertToIn(obj)
384
- }else{
385
- this.orgcondition = " and ss.f_orgid = " + this.$login.f.orgid
386
- }
387
- },
388
- userTypeChange () {
389
- this.gasproperties=[]
390
- if(this.$refs.paged.$refs.criteria.model !==null) {
391
- this.$refs.paged.$refs.criteria.model.f_gasproperties=''
392
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
393
- }
394
- else{
395
- this.gasproperties =[{label: '全部', value: ''}]
396
- }
397
- },
398
- hidden(){
399
- this.criteriaShow = !this.criteriaShow
400
- },
401
- cancel() {
402
- this.show = false
403
- },
404
- clearmsg () {
405
- Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
406
- this.$refs.paged.$refs.criteria.model[key] = []
407
- })
408
- },
409
- getRes (obj) {
410
- this.orgCondtionStr = condition
411
- this.orgname = obj.orgnames[0]
412
- this.depname = obj.depnames[0]
413
- },
414
- showmsg(obj){
415
- console.log(1)
416
- this.rowdata=obj
417
- this.show=true
418
- },
419
-
420
- search (args) {
421
- args.condition = `${args.condition}`+this.orgcondition
422
- this.condition = args.condition
423
- this.model.search(args.condition, args.model)
424
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
425
- // args.condition = `${args.condition}`
426
- // if (this.orgcondition)
427
- // args.condition = `${args.condition}` + this.orgcondition
428
- // else
429
- // args.condition = `${args.condition}` + 'and m.f_orgid in ' + '(' + this.$login.f.orgid + ')'
430
- // this.model.search(args.condition, args.model)
431
- }
432
- },
433
- watch: {
434
- 'model.rows'(val) {
435
- //如果有合计 这里为true, 其他为false ,反正相反
436
- this.showbottomsum=true;
437
- if(val.length === 0){
438
- this.sumsmodel = {}
439
- this.showbottomsum=false;
440
- }
441
- },
442
- 'orgCondtionStr'(val) {
443
- let res = val.match(/'(.*?)'/)
444
- console.log('正则提取:',res && res[1])
445
- if (res) {
446
- this.f_filialeid = res[1]
447
- // this.updateParams()
448
- }
449
- }
450
- },
451
- computed: {
452
- getCondition() {
453
-
454
- return {
455
- condition: this.condition,
456
- startDate:`${this.$refs.paged.$refs.criteria.model.startDate}`,
457
- endDate:`${this.$refs.paged.$refs.criteria.model.endDate}`
458
- }
459
- },
460
- getstart(){
461
- return `开始时间:${this.$refs.paged.$refs.criteria.model.startDate} 结束时间:${this.$refs.paged.$refs.criteria.model.endDate}`
462
- },
463
- getPricenames() {
464
- let f_user_type = this.$refs.paged.$refs.criteria.model.f_user_type;
465
- let f_gasproperties = this.$refs.paged.$refs.criteria.model.f_gasproperties;
466
- let pricetype = this.$refs.paged.$refs.criteria.model.pricetype;
467
- console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
468
- console.log("查看f_orgid:",this.$login.f.f_orgid)
469
- if(this.$refs.paged.$refs.criteria.model !==null) {
470
- let rs = []
471
- let priceArr = []
472
- if ( pricetype.length >0) {
473
- let params = {
474
- f_price_type: pricetype[0],
475
- filter: this.org[0],
476
- prices: this.prices
477
- }
478
- console.log("打印一下params:",params)
479
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
480
- console.log("====================================》")
481
- let temp = {}
482
- temp.label = item.label
483
- temp.value = item.value.f_price_name
484
- priceArr.push(temp)
485
- console.log("打印一下temp:",temp)
486
- })
487
-
488
- rs = [{label: '全部', value: ''}, ...priceArr]
489
- }
490
- if (rs.length === 0) {
491
- console.log('rs读出来是空')
492
- this.$refs.paged.$refs.criteria.model.f_price_name = ''
493
- }
494
- return rs
495
- }
496
- },
497
- getfield () {
498
- return exportConfig.GasStatistics
499
- },
500
- usertypes() {
501
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
502
- },
503
- pricetypes() {
504
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
505
- },
506
- gasState() {
507
- return [{label:'正常', value:'正常'},
508
- {label:'异常', value:'异常'},
509
- ]
510
- },
511
- isChange() {
512
- return [{label:'', value:''},
513
- {label:'否', value:'否'},
514
- ]
515
- }
516
- }
517
- }
518
- </script>
519
-
520
- <style>
521
- .showbottom{
522
- height:95%
523
- }
524
- </style>
525
-
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
4
+ <div class="flex" :class="{showbottom:showbottomsum}" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row" >
9
+ <div class="col-sm-2">
10
+ <label class="font_normal_body">组织机构</label>
11
+ <res-select :initresid="$parent.$parent.org"
12
+ style="width:60%"
13
+ @res-select="$parent.$parent.getorg"
14
+ :is-mul=false
15
+ restype='organization'>
16
+ </res-select>
17
+ </div>
18
+ <div class="col-sm-2">
19
+ <label class="font_normal_body">客户编号</label>
20
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
21
+ condition="ss.f_userinfo_code like '%{}%'" v-next-el='f_userinfo_code' v-el:meternumber
22
+ >
23
+ </div>
24
+ <div class="col-sm-2">
25
+ <label class="font_normal_body">客户名称</label>
26
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'
27
+ condition="ss.f_user_name like '%{}%'" v-next-el='userid' v-el:username>
28
+ </div>
29
+ <div class="col-sm-2">
30
+ <label class="font_normal_body">客户地址</label>
31
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_address" placeholder='客户地址'
32
+ condition="ss.f_address like '%{}%'" v-next-el='f_address' v-el:f_address>
33
+ </div>
34
+ <div class="span" style="float:right;margin-top:10px">
35
+ <button class="button_search button_spacing" @click="search()">查询</button>
36
+ <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
37
+ <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
38
+ :field="$parent.$parent.getfield"
39
+ sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="gasStatisticsQuery" template-name='用气量统计表'
40
+ :choose-col="true"></export-excel>
41
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
42
+ :defaultfield="$parent.$parent.defaultfield"
43
+ titletable="缴费记录报表" :starthead="$parent.$parent.getstart"
44
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
45
+ <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>
46
+ </div>
47
+ </div>
48
+ <div class="row" v-show="$parent.$parent.criteriaShow">
49
+ <div class="col-sm-2">
50
+ <label class="font_normal_body">电&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;话</label>
51
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_user_phone" placeholder='电话'
52
+ condition="ss.f_user_phone like '%{}%'" v-next-el='f_user_phone' v-el:f_user_phone
53
+ >
54
+ </div>
55
+ <div class="col-sm-2">
56
+ <label class="font_normal_body">小&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区</label>
57
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_residential_area" placeholder='小区'
58
+ condition="ss.f_residential_area like '%{}%'" v-next-el='f_residential_area' v-el:f_residential_area>
59
+ </div>
60
+ <div class="col-sm-2">
61
+ <label class="font_normal_body">表&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
62
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_meternumber" placeholder='表号'
63
+ condition="ss.f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
64
+ >
65
+ </div>
66
+ <div class="col-sm-2">
67
+ <label class="font_normal_body">燃气证号</label>
68
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_gascode" placeholder='燃气证号'
69
+ condition="ss.f_gascode like '%{}%'" v-next-el='f_gascode' v-el:f_gascode
70
+ >
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
+ close-on-select>
77
+ </v-select>
78
+ </div>
79
+ <div class="col-sm-2 form-group">
80
+ <label class="font_normal_body">气价名称</label>
81
+ <v-select :value.sync="model.f_price_name"
82
+ v-model="model.f_price_name"
83
+ :options="$parent.$parent.getPricenames"
84
+ condition="ss.f_price_name = '{}'"
85
+ close-on-select></v-select>
86
+ </div>
87
+ <div class="col-sm-2 form-group">
88
+ <label class="font_normal_body">气表品牌</label>
89
+ <v-select :value.sync="model.f_meter_brand"
90
+ v-model="model.f_meter_brand"
91
+ :options="$parent.$parent.meterbrands"
92
+ condition="ss.f_meter_brand in {}"
93
+ multiple></v-select>
94
+ </div>
95
+ <div class="col-sm-2 form-group">
96
+ <label class="font_normal_body">是否换表</label>
97
+ <v-select :value.sync="model.f_changetable_state"
98
+ v-model="model.f_changetable_state"
99
+ :options="$parent.$parent.isChange"
100
+ condition="ss.f_changetable_state = '{}'"
101
+ close-on-select></v-select>
102
+ </div>
103
+ <div class="col-sm-2 form-group">
104
+ <label class="font_normal_body">用气状态</label>
105
+ <v-select :value.sync="model.f_gas_state"
106
+ v-model="model.f_gas_state"
107
+ :options="$parent.$parent.gasState"
108
+ condition="ss.f_gas_state = '{}'"
109
+ close-on-select></v-select>
110
+ </div>
111
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
112
+ <label class="font_normal_body">用气量区间</label>
113
+ <div class="row">
114
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount1"
115
+ condition="ss.f_oughtamount >= {} " placeholder="">
116
+ <label class="font_normal_body"> ≤ x ≤ </label>
117
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount2"
118
+ condition="ss.f_oughtamount <= {} " placeholder="">
119
+ </div>
120
+ </div>
121
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
122
+ <label class="font_normal_body">&nbsp;充值区间&nbsp;&nbsp;</label>
123
+ <div class="row">
124
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_collection1"
125
+ condition="ss.f_collection >= {} " placeholder="">
126
+ <label class="font_normal_body"> ≤ x ≤ </label>
127
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_collection2"
128
+ condition="ss.f_collection <= {} " placeholder="">
129
+ </div>
130
+ </div>
131
+ <div class="col-sm-2 form-group" >
132
+ <label class="font_normal_body" for="startDate">开始时间</label>
133
+ <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
134
+ v-model="model.startDate"
135
+ :value.sync="model.startDate"
136
+ :disabled-days-of-Week="[]"
137
+ :format="'yyyy-MM-dd 00:00:00'"
138
+ :show-reset-button="reset">
139
+ </datepicker>
140
+ </div>
141
+ <div class="col-sm-2 form-group" >
142
+ <label class="font_normal_body" for="endDate">结束时间</label>
143
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
144
+ v-model="model.endDate"
145
+ :value.sync="model.endDate"
146
+ :disabled-days-of-Week="[]"
147
+ :format="'yyyy-MM-dd 23:59:59'"
148
+ :show-reset-button="reset">
149
+ </datepicker>
150
+ </div>
151
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
152
+ <label class="font_normal_body">余额区间</label>
153
+ <div class="row">
154
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_balance_amount_sta"
155
+ condition="ss.f_balance_amount >= {} " placeholder="">
156
+ <label class="font_normal_body"> ≤ x ≤ </label>
157
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_balance_amount_end"
158
+ condition="ss.f_balance_amount <= {} " placeholder="">
159
+ </div>
160
+ </div>
161
+ <div class="col-sm-2 form-group">
162
+ <label class="font_normal_body">客户类型</label>
163
+ <v-select :value.sync="model.f_user_type"
164
+ v-model="model.f_user_type"
165
+ :value-single="true"
166
+ @change="$parent.$parent.userTypeChange()"
167
+ :options="$parent.$parent.usertypes"
168
+ close-on-select></v-select>
169
+ </div>
170
+ <div class="col-sm-2 form-group">
171
+ <label class="font_normal_body">用气性质</label>
172
+ <v-select :value.sync="model.f_gasproperties"
173
+ v-model="model.f_gasproperties"
174
+ :options="$parent.$parent.gasproperties"
175
+ condition="ss.f_gasproperties = '{}'"
176
+ close-on-select></v-select>
177
+ </div>
178
+ </div>
179
+ </div>
180
+ </criteria>
181
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
182
+ <template partial='head'>
183
+ <tr>
184
+ <th><nobr>客户编号</nobr></th>
185
+ <th><nobr>客户名称</nobr></th>
186
+ <th><nobr>小区</nobr></th>
187
+ <th><nobr>地址</nobr></th>
188
+ <th><nobr>电话</nobr></th>
189
+
190
+ <th><nobr>燃气证号</nobr></th>
191
+ <th><nobr>表号</nobr></th>
192
+ <th><nobr>表具类型</nobr></th>
193
+ <th><nobr>表描述</nobr></th>
194
+ <th><nobr>气价名称</nobr></th>
195
+
196
+ <th><nobr>一阶气价</nobr></th>
197
+ <th><nobr>二阶气价</nobr></th>
198
+ <th><nobr>三阶气价</nobr></th>
199
+
200
+ <th><nobr>客户类型</nobr></th>
201
+ <th><nobr>用气性质</nobr></th>
202
+ <th><nobr>期初余额</nobr></th>
203
+ <th><nobr>起方</nobr></th>
204
+ <th><nobr>止方</nobr></th>
205
+ <th><nobr>期间用气量</nobr></th>
206
+
207
+ <th><nobr>期间用气金额</nobr></th>
208
+ <th><nobr>期间充值金额</nobr></th>
209
+ <th><nobr>期末余额</nobr></th>
210
+ <th><nobr>用气状态</nobr></th>
211
+ <th><nobr>是否换表</nobr></th>
212
+ <th><nobr>最后通讯日期</nobr></th>
213
+ </tr>
214
+ </template>
215
+ <template partial='body' partial='list'>
216
+ <tr >
217
+ <td style="text-align: left;"><nobr> <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr></td>
218
+ <td style="text-align: left;"><nobr>{{row.f_user_name}}</nobr></td>
219
+ <td style="text-align: left;"><nobr>{{row.f_residential_area}}</nobr></td>
220
+ <td style="text-align: left;"><nobr>{{row.f_address}}</nobr></td>
221
+ <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
222
+
223
+ <td style="text-align:center"><nobr>{{row.f_gascode}}</nobr></td>
224
+ <th style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></th>
225
+ <th style="text-align:center"><nobr>{{row.f_meter_classify}}</nobr></th>
226
+ <th style="text-align:center"><nobr>{{row.f_meter_title}}</nobr></th>
227
+ <th style="text-align:center"><nobr>{{row.f_price_name}}</nobr></th>
228
+
229
+ <th style="text-align:center"><nobr>{{row.f_stair1price}}</nobr></th>
230
+ <th style="text-align:center"><nobr>{{row.f_stair2price}}</nobr></th>
231
+ <th style="text-align:center"><nobr>{{row.f_stair3price}}</nobr></th>
232
+
233
+ <th style="text-align:center"><nobr>{{row.f_user_type}}</nobr></th>
234
+ <th style="text-align:center"><nobr>{{row.f_gasproperties}}</nobr></th>
235
+
236
+
237
+ <th style="text-align:center"><nobr>{{row.f_balance}}</nobr></th>
238
+ <th style="text-align:center"><nobr>{{row.f_last_tablebase}}</nobr></th>
239
+ <th style="text-align:center"><nobr>{{row.f_tablebase}}</nobr></th>
240
+ <th style="text-align:center"><nobr>{{row.f_oughtamount}}</nobr></th>
241
+ <th style="text-align:center"><nobr>{{row.f_oughtfee}}</nobr></th>
242
+
243
+ <th style="text-align:center"><nobr>{{row.f_collection}}</nobr></th>
244
+ <th style="text-align:center"><nobr>{{row.f_curbalance}}</nobr></th>
245
+ <th style="text-align:center"><nobr>{{row.f_gas_state}}</nobr></th>
246
+ <th style="text-align:center"><nobr>{{row.f_changetable_state}}</nobr></th>
247
+ <th style="text-align:center"><nobr>{{row.f_input_date}}</nobr></th>
248
+ </tr>
249
+ </template>
250
+ <template partial='foot'></template>
251
+ </data-grid>
252
+ </criteria-paged>
253
+ <table class="table-hover">
254
+ <tr style="position: relative" class="table-bordered">
255
+ <td
256
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
257
+ 汇总信息
258
+ </td>
259
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
260
+ 期间用气量:&emsp;{{sumsmodel.f_oughtamount}}
261
+ </td>
262
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
263
+ 期间用气金额:&emsp;{{sumsmodel.f_oughtfee}}
264
+ </td>
265
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
266
+ 期间充值金额:&emsp;{{sumsmodel.f_collection}}
267
+ </td>
268
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
269
+ 一阶气量合计:&emsp;{{sumsmodel.f_stairamount1}}
270
+ </td>
271
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
272
+ 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
273
+ </td>
274
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
275
+ 二阶气量合计:&emsp;{{sumsmodel.f_stairamount2}}
276
+ </td>
277
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
278
+ 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
279
+ </td>
280
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
281
+ 三阶气量合计:&emsp;{{sumsmodel.f_stairamount3}}
282
+ </td>
283
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
284
+ 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
285
+ </td>
286
+ </tr>
287
+ </table>
288
+ </div>
289
+ <div class="flex" style="width:99%;height:98%;margin-bottom:0px" v-if="show">
290
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
291
+ </div>
292
+ </div>
293
+ </div>
294
+ </template>
295
+
296
+ <script>
297
+ import {HttpResetClass, PagedList} from 'vue-client'
298
+ import exportConfig from './exportConfig'
299
+ import * as Util from '../../Util'
300
+ import plugins from '../../plugins/GetLoginInfoService'
301
+
302
+ let readySomething = async function (self) {
303
+ await self.$MagLoadParams.loadParam()
304
+ self.initParams()
305
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
306
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
307
+ }
308
+ export default {
309
+ title: '用气量统计表',
310
+ data () {
311
+ return {
312
+ show:false,
313
+ org:[this.$login.f.orgid],
314
+ orgcondition: ' and ss.f_orgid = ' + this.$login.f.orgid,
315
+ //f_filialeid: this.$login.f.f_orgid,
316
+ detaillist: [],
317
+ meterbrands: [],
318
+ prices: [],
319
+ gasproperties:[],
320
+ condition:'',
321
+ rowdata:{},
322
+ getstart:'',
323
+ config: {
324
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_meternumber', 'f_gasproperties', 'f_balance', 'f_last_tablebase','f_tablebase',
325
+ 'f_oughtamount', 'f_oughtfee', 'f_collection', 'f_curbalance', 'f_gas_state', 'f_changetable_state', 'f_input_date']
326
+ },
327
+ sumsmodel: {},
328
+ orgid:[this.$login.f.orgid],
329
+ criteriaShow:false,
330
+ //默认打印列
331
+ defaultfield: [],
332
+ orgCondtionStr: '',
333
+ model: new PagedList('api/af-revenue/sql/gasStatisticsQuery', 50,{
334
+ startDate: 'this.model.startDate',
335
+ endDate: 'this.model.endDate'
336
+ },{
337
+ f_oughtamount: 0,
338
+ f_oughtfee: 0,
339
+ f_collection:0,
340
+ f_stairamount1:0,
341
+ f_stair1fee:0,
342
+ f_stairamount2:0,
343
+ f_stair2fee:0,
344
+ f_stairamount3:0,
345
+ f_stair3fee:0
346
+ }),
347
+ showbottomsum:false //页面下方是否有合计: 默认为false, 在watch修改
348
+ }
349
+ },
350
+ ready () {
351
+ // this.$refs.paged.$refs.criteria.search()
352
+ readySomething(this).then(() => {
353
+ this.$emit('ready')
354
+ }).catch((error) => {
355
+ this.$emit('error', error)
356
+ })
357
+ this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),-1).substring(0,10) + ' 00:00:00'
358
+ this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),-1).substring(0,10) + ' 23:59:59'
359
+ this.$refs.paged.$refs.criteria.model.inputStartDate = Util.addDate(new Date(),-1).substring(0,10) + ' 00:00:00'
360
+ this.$refs.paged.$refs.criteria.model.inputEndDate = Util.addDate(new Date(),-1).substring(0,10) + ' 23:59:59'
361
+ // this.$refs.paged.$refs.criteria.search()
362
+ },
363
+ methods: {
364
+ initParams() {
365
+ // 初始化气表品牌
366
+ let brandArr = []
367
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
368
+ let temp = {}
369
+ temp.label = item.label
370
+ temp.value = item.value.f_meter_brand
371
+ brandArr.push(temp)
372
+ })
373
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
374
+ //初始化气表价格
375
+ this.prices = this.$MagGetSaleParam.getPrices();
376
+ },
377
+ async updateParams() {
378
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
379
+ this.initParams()
380
+ },
381
+ getorg(obj) {
382
+ if(plugins.convertToIn(obj)!==null&&plugins.convertToIn(obj)!==''){
383
+ this.orgcondition = " and ss.f_orgid in " + plugins.convertToIn(obj)
384
+ }else{
385
+ this.orgcondition = " and ss.f_orgid = " + this.$login.f.orgid
386
+ }
387
+ },
388
+ userTypeChange () {
389
+ this.gasproperties=[]
390
+ if(this.$refs.paged.$refs.criteria.model !==null) {
391
+ this.$refs.paged.$refs.criteria.model.f_gasproperties=''
392
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type)
393
+ }
394
+ else{
395
+ this.gasproperties =[{label: '全部', value: ''}]
396
+ }
397
+ },
398
+ hidden(){
399
+ this.criteriaShow = !this.criteriaShow
400
+ },
401
+ cancel() {
402
+ this.show = false
403
+ },
404
+ clearmsg () {
405
+ Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
406
+ this.$refs.paged.$refs.criteria.model[key] = []
407
+ })
408
+ },
409
+ getRes (obj) {
410
+ this.orgCondtionStr = condition
411
+ this.orgname = obj.orgnames[0]
412
+ this.depname = obj.depnames[0]
413
+ },
414
+ showmsg(obj){
415
+ console.log(1)
416
+ this.rowdata=obj
417
+ this.show=true
418
+ },
419
+
420
+ search (args) {
421
+ args.condition = `${args.condition}`+this.orgcondition
422
+
423
+ this.condition = args.condition
424
+ if(this.$refs.paged.$refs.criteria.model.f_user_type){
425
+ this.model.params.f_user_type = `f_user_type ='${this.$refs.paged.$refs.criteria.model.f_user_type}'`
426
+ } else {
427
+ this.model.params.f_user_type = ' 1=1 '
428
+ }
429
+ this.model.search(args.condition, args.model)
430
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
431
+
432
+ // args.condition = `${args.condition}`
433
+ // if (this.orgcondition)
434
+ // args.condition = `${args.condition}` + this.orgcondition
435
+ // else
436
+ // args.condition = `${args.condition}` + 'and m.f_orgid in ' + '(' + this.$login.f.orgid + ')'
437
+ // this.model.search(args.condition, args.model)
438
+ }
439
+ },
440
+ watch: {
441
+ 'model.rows'(val) {
442
+ //如果有合计 这里为true, 其他为false ,反正相反
443
+ this.showbottomsum=true;
444
+ if(val.length === 0){
445
+ this.sumsmodel = {}
446
+ this.showbottomsum=false;
447
+ }
448
+ },
449
+ 'orgCondtionStr'(val) {
450
+ let res = val.match(/'(.*?)'/)
451
+ console.log('正则提取:',res && res[1])
452
+ if (res) {
453
+ this.f_filialeid = res[1]
454
+ // this.updateParams()
455
+ }
456
+ }
457
+ },
458
+ computed: {
459
+ getCondition() {
460
+ let f_user_type = '1=1'
461
+ if(this.$refs.paged.$refs.criteria.model.f_user_type){
462
+ this.model.params.f_user_type = `f_user_type ='${this.$refs.paged.$refs.criteria.model.f_user_type}'`
463
+ }
464
+ return {
465
+ condition: this.condition,
466
+ startDate:`${this.$refs.paged.$refs.criteria.model.startDate}`,
467
+ endDate:`${this.$refs.paged.$refs.criteria.model.endDate}`,
468
+ f_user_type:f_user_type
469
+ }
470
+ },
471
+ getstart(){
472
+ return `开始时间:${this.$refs.paged.$refs.criteria.model.startDate} 结束时间:${this.$refs.paged.$refs.criteria.model.endDate}`
473
+ },
474
+ getPricenames() {
475
+ let f_user_type = this.$refs.paged.$refs.criteria.model.f_user_type;
476
+ let f_gasproperties = this.$refs.paged.$refs.criteria.model.f_gasproperties;
477
+ let pricetype = this.$refs.paged.$refs.criteria.model.pricetype;
478
+ console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
479
+ console.log("查看f_orgid:",this.$login.f.f_orgid)
480
+ if(this.$refs.paged.$refs.criteria.model !==null) {
481
+ let rs = []
482
+ let priceArr = []
483
+ if ( pricetype.length >0) {
484
+ let params = {
485
+ f_price_type: pricetype[0],
486
+ filter: this.org[0],
487
+ prices: this.prices
488
+ }
489
+ console.log("打印一下params:",params)
490
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
491
+ console.log("====================================》")
492
+ let temp = {}
493
+ temp.label = item.label
494
+ temp.value = item.value.f_price_name
495
+ priceArr.push(temp)
496
+ console.log("打印一下temp:",temp)
497
+ })
498
+
499
+ rs = [{label: '全部', value: ''}, ...priceArr]
500
+ }
501
+ if (rs.length === 0) {
502
+ console.log('rs读出来是空')
503
+ this.$refs.paged.$refs.criteria.model.f_price_name = ''
504
+ }
505
+ return rs
506
+ }
507
+ },
508
+ getfield () {
509
+ return exportConfig.GasStatistics
510
+ },
511
+ usertypes() {
512
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
513
+ },
514
+ pricetypes() {
515
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
516
+ },
517
+ gasState() {
518
+ return [{label:'正常', value:'正常'},
519
+ {label:'异常', value:'异常'},
520
+ ]
521
+ },
522
+ isChange() {
523
+ return [{label:'是', value:'是'},
524
+ {label:'否', value:'否'},
525
+ ]
526
+ }
527
+ }
528
+ }
529
+ </script>
530
+
531
+ <style>
532
+ .showbottom{
533
+ height:95%
534
+ }
535
+ </style>
536
+
@@ -115,6 +115,13 @@
115
115
  userid: this.$login.f.id
116
116
  }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
117
117
  let arr = getAllArea.data.filter((res) => {
118
+ if(Array.isArray(val)){
119
+ for (let i = 0; i <val.length ; i++) {
120
+ if(res.parentid == val[i]){
121
+ return true
122
+ }
123
+ }
124
+ }
118
125
  return res.parentid == val
119
126
  })
120
127
  console.log('过滤之后的片区', arr)
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- #Thu Mar 28 18:36:49 CST 2024
2
- gradle.version=7.4
Binary file
File without changes