manage-client 3.2.59 → 3.2.63
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 +1 -1
- package/src/components/sale/businessquery/BusinessManage.vue +174 -171
- package/src/components/sale/businessquery/PrivilegeQuery.vue +341 -0
- package/src/components/sale/businessquery/gasPriceQuery.vue +71 -60
- package/src/components/sale/config/exportConfig.js +918 -913
- package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +9 -9
- package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
- package/src/components/webmeter/WebmeterAnalyse.vue +52 -0
- package/src/components/webmeter/WebmeterQuery.vue +61 -0
- package/src/components/webmeter/instruction/NewQueryInstructMain.vue +1 -1
- package/src/filiale/WEINAN/BankManager.vue +169 -0
- package/src/filiale/WEINAN/SiteManager.vue +1 -1
- package/src/filiale/WEINAN/reportManage.js +1 -0
- package/src/filiale/jingwei/RecordInfoQuery.vue +1163 -1142
- package/src/filiale/tongchuan/DeviceQuery.vue +581 -0
- package/src/filiale/tongchuan/MeterQuery.vue +970 -0
- package/src/filiale/tongchuan/PriceChangeQuery.vue +1 -3
- package/src/filiale/tongchuan/UserDeviceQuery.vue +1 -3
- package/src/filiale/tongchuan/sale.js +8 -2
- package/src/main.js +1 -1
- package/src/saleManage.js +546 -542
- package/src/stores/MagGetSaleParams.js +156 -156
- package/src/webmeterManage.js +119 -119
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row" class="foot_tabset" @keyup.enter="search">
|
|
3
|
+
<div class="basic-main">
|
|
4
|
+
<div class="flex">
|
|
5
|
+
|
|
6
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
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 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 00:00:00'"
|
|
16
|
+
:show-reset-button="true"
|
|
17
|
+
>
|
|
18
|
+
</datepicker>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="col-sm-2 form-group">
|
|
21
|
+
<label 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 23:59:59'"
|
|
26
|
+
:show-reset-button="true"
|
|
27
|
+
>
|
|
28
|
+
</datepicker>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="col-sm-2 form-group ">
|
|
31
|
+
<label class="font_normal_body">用户编号</label>
|
|
32
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
33
|
+
condition="f_userinfo_code = '{}' " placeholder="用户编号">
|
|
34
|
+
</div>
|
|
35
|
+
<div class="col-sm-2 form-group">
|
|
36
|
+
<label class="font_normal_body">用户名称</label>
|
|
37
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
38
|
+
condition="f_user_name like '%{}%'" placeholder="用户名称">
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<div class="span" style="float:right;">
|
|
42
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
43
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
44
|
+
|
|
45
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
46
|
+
:field="$parent.$parent.getfield"
|
|
47
|
+
:footer="$parent.$parent.footer"
|
|
48
|
+
:header="$parent.$parent.other"
|
|
49
|
+
sqlurl="rs/logic/exportfile"
|
|
50
|
+
sql-name="privilegeQuery"
|
|
51
|
+
template-name='免费送气操作记录'
|
|
52
|
+
:choose-col="true"></export-excel>
|
|
53
|
+
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
|
|
54
|
+
:defaultfield="$parent.$parent.defaultfield"
|
|
55
|
+
titletable="免费送气操作记录"
|
|
56
|
+
:sumsmodel="$parent.$parent.sumsmodel"></print-data>
|
|
57
|
+
<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>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
61
|
+
<res-select-group
|
|
62
|
+
:show-component="['company','department','operator']"
|
|
63
|
+
:initres="$parent.$parent.initres"
|
|
64
|
+
@re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
65
|
+
<div class="col-sm-2 ">
|
|
66
|
+
<label class="font_normal_body">用户类型</label>
|
|
67
|
+
<v-select :value.sync="model.f_user_type"
|
|
68
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
69
|
+
condition="f_user_type = '{}'"
|
|
70
|
+
close-on-select></v-select>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="col-sm-2 form-group">
|
|
73
|
+
<label class="font_normal_body">用气地址</label>
|
|
74
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_address"
|
|
75
|
+
condition="f_address like '%{}%'" placeholder='用气地址'>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
</criteria>
|
|
81
|
+
|
|
82
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
|
|
83
|
+
<template partial='head'>
|
|
84
|
+
<tr>
|
|
85
|
+
<th>
|
|
86
|
+
<nobr>用户编号</nobr>
|
|
87
|
+
</th>
|
|
88
|
+
<th>
|
|
89
|
+
<nobr>用户姓名</nobr>
|
|
90
|
+
</th>
|
|
91
|
+
<th>
|
|
92
|
+
<nobr>用户类型</nobr>
|
|
93
|
+
</th>
|
|
94
|
+
<th>
|
|
95
|
+
<nobr>用气地址</nobr>
|
|
96
|
+
</th>
|
|
97
|
+
<th>
|
|
98
|
+
<nobr>气表类型</nobr>
|
|
99
|
+
</th>
|
|
100
|
+
<th>
|
|
101
|
+
<nobr>赠送方量(方)</nobr>
|
|
102
|
+
</th>
|
|
103
|
+
<th>
|
|
104
|
+
<nobr>赠送金额(元)</nobr>
|
|
105
|
+
</th>
|
|
106
|
+
<th>
|
|
107
|
+
<nobr>操作员</nobr>
|
|
108
|
+
</th>
|
|
109
|
+
<th>
|
|
110
|
+
<nobr>时间</nobr>
|
|
111
|
+
</th>
|
|
112
|
+
</tr>
|
|
113
|
+
|
|
114
|
+
</template>
|
|
115
|
+
<template partial='body'>
|
|
116
|
+
<td style="text-align: center;"><nobr>
|
|
117
|
+
<span ><a>{{row.f_userinfo_code}}</a></span>
|
|
118
|
+
</nobr> </td>
|
|
119
|
+
<td style="text-align: center;">
|
|
120
|
+
<nobr>{{row.f_user_name}}</nobr>
|
|
121
|
+
</td>
|
|
122
|
+
<td style="text-align: center;">
|
|
123
|
+
<nobr>{{row.f_user_type}}</nobr>
|
|
124
|
+
</td>
|
|
125
|
+
<td style="text-align: center;">
|
|
126
|
+
<nobr>{{row.f_address}}</nobr>
|
|
127
|
+
</td>
|
|
128
|
+
<td style="text-align: center;">
|
|
129
|
+
<nobr>{{row.f_meter_type}}</nobr>
|
|
130
|
+
</td>
|
|
131
|
+
|
|
132
|
+
<td style="text-align: center;">
|
|
133
|
+
<nobr>{{row.f_privilege_gas}}</nobr>
|
|
134
|
+
</td>
|
|
135
|
+
|
|
136
|
+
<td style="text-align: center;">
|
|
137
|
+
<nobr>{{row.f_privilege_money}}</nobr>
|
|
138
|
+
</td>
|
|
139
|
+
<td style="text-align: center;">
|
|
140
|
+
<nobr>{{row.f_operator}}</nobr>
|
|
141
|
+
</td>
|
|
142
|
+
<td style="text-align: center;">
|
|
143
|
+
<nobr>{{row.f_operate_date}}</nobr>
|
|
144
|
+
</td>
|
|
145
|
+
</template>
|
|
146
|
+
</data-grid>
|
|
147
|
+
</criteria-paged>
|
|
148
|
+
<table class="table-hover">
|
|
149
|
+
<tr style="position: relative" class="table-bordered">
|
|
150
|
+
<td
|
|
151
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
152
|
+
汇总信息
|
|
153
|
+
</td>
|
|
154
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
155
|
+
赠送方量合计: {{sumsmodel.f_privilege_gas}}
|
|
156
|
+
</td>
|
|
157
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
158
|
+
赠送金额合计: {{sumsmodel.f_privilege_money}}
|
|
159
|
+
</td>
|
|
160
|
+
</tr>
|
|
161
|
+
</table>
|
|
162
|
+
|
|
163
|
+
</div>
|
|
164
|
+
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
</template>
|
|
168
|
+
|
|
169
|
+
<script>
|
|
170
|
+
import {PagedList} from 'vue-client'
|
|
171
|
+
import defaultPrint from '../config/DefaultPrint'
|
|
172
|
+
import exportConfig from '../config/exportConfig'
|
|
173
|
+
|
|
174
|
+
let readySomething = async function (self) {
|
|
175
|
+
|
|
176
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
|
|
177
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
178
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
179
|
+
}
|
|
180
|
+
export default {
|
|
181
|
+
title: '免费送气查询',
|
|
182
|
+
data() {
|
|
183
|
+
return {
|
|
184
|
+
data: {},
|
|
185
|
+
other:[],
|
|
186
|
+
footer:[],
|
|
187
|
+
model: new PagedList('rs/sql/privilegeQuery', 20,{startDate: 'this.model.startDate', endDate: 'this.model.endDate'},{
|
|
188
|
+
f_privilege_gas:0,
|
|
189
|
+
f_privilege_money:0
|
|
190
|
+
}),
|
|
191
|
+
criteriaShow: false,
|
|
192
|
+
orgCondtionStr: '',
|
|
193
|
+
modelval: [],
|
|
194
|
+
printshow: false,
|
|
195
|
+
all: false,
|
|
196
|
+
fields: {},
|
|
197
|
+
config: {
|
|
198
|
+
defaultPrint: ["f_userinfo_code", "f_user_name", "f_last_balance", "f_charge_money", "f_pre_deduct_money", "f_balance"]
|
|
199
|
+
},
|
|
200
|
+
//默认打印列
|
|
201
|
+
defaultfield: [],
|
|
202
|
+
initres: {
|
|
203
|
+
org:[this.$login.f.orgid],
|
|
204
|
+
dep:[],
|
|
205
|
+
user:[],
|
|
206
|
+
},
|
|
207
|
+
thead: '',
|
|
208
|
+
tfoot: '',
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
//合计数据
|
|
212
|
+
sumsmodel: {}
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
ready() {
|
|
216
|
+
readySomething(this)
|
|
217
|
+
},
|
|
218
|
+
methods: {
|
|
219
|
+
getotherfooter(){
|
|
220
|
+
this.other=[];
|
|
221
|
+
this.footer=[];
|
|
222
|
+
let exportdata = this.getCondition;
|
|
223
|
+
let otherInData=[];
|
|
224
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
225
|
+
let footerData=[],exportfield=this.getfield;
|
|
226
|
+
footerData.push("合计");
|
|
227
|
+
let self =this;
|
|
228
|
+
for(var field in self.sumsmodel){
|
|
229
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
230
|
+
}
|
|
231
|
+
this.footer.push(footerData);
|
|
232
|
+
this.other.push(otherInData);
|
|
233
|
+
},
|
|
234
|
+
search(){
|
|
235
|
+
this.$refs.paged.$refs.cri.search()
|
|
236
|
+
},
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
selfSearch(args) {
|
|
240
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
241
|
+
this.model.search(args.condition, args.model)
|
|
242
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
243
|
+
},
|
|
244
|
+
clear() {
|
|
245
|
+
//清空部门和人员
|
|
246
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
247
|
+
//部门和人员变为全选
|
|
248
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
249
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
250
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
251
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
252
|
+
})
|
|
253
|
+
},
|
|
254
|
+
show() {
|
|
255
|
+
this.criteriaShow = true
|
|
256
|
+
},
|
|
257
|
+
hidden() {
|
|
258
|
+
this.criteriaShow = !this.criteriaShow
|
|
259
|
+
},
|
|
260
|
+
getRes(obj) {
|
|
261
|
+
console.log(obj,"========")
|
|
262
|
+
this.orgCondtionStr = obj
|
|
263
|
+
},
|
|
264
|
+
stamp() {
|
|
265
|
+
this.all = false
|
|
266
|
+
//默认选择要打印的列
|
|
267
|
+
this.modelval = defaultPrint.config
|
|
268
|
+
this.fields = this.getfield
|
|
269
|
+
console.log('所有打印字段', this.fields)
|
|
270
|
+
this.printshow = true
|
|
271
|
+
this.put()
|
|
272
|
+
},
|
|
273
|
+
dealmsg(val) {
|
|
274
|
+
console.log('---------------dealmsg')
|
|
275
|
+
val.model = this.model.model
|
|
276
|
+
this.$dispatch('deal-msg', val)
|
|
277
|
+
},
|
|
278
|
+
put() {
|
|
279
|
+
// 对Modelval进行排序
|
|
280
|
+
this.sortModelval()
|
|
281
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
|
|
282
|
+
for (let key of this.modelval) {
|
|
283
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
284
|
+
}
|
|
285
|
+
this.thead += '</tr>'
|
|
286
|
+
},
|
|
287
|
+
print() {
|
|
288
|
+
this.$refs.print.PrintAsFile()
|
|
289
|
+
this.printshow = false
|
|
290
|
+
},
|
|
291
|
+
close() {
|
|
292
|
+
this.printshow = false
|
|
293
|
+
this.all = false
|
|
294
|
+
},
|
|
295
|
+
// 对选择的列进行排序
|
|
296
|
+
sortModelval() {
|
|
297
|
+
let sortModel = []
|
|
298
|
+
Object.keys(this.fields).forEach((key) => {
|
|
299
|
+
if (this.modelval.includes(key)) {
|
|
300
|
+
sortModel.push(key)
|
|
301
|
+
}
|
|
302
|
+
})
|
|
303
|
+
this.modelval = sortModel
|
|
304
|
+
console.log('选择的打印的字段', this.modelval)
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
watch: {
|
|
308
|
+
'all'(val) {
|
|
309
|
+
if (val) {
|
|
310
|
+
this.modelval = this.bodyData
|
|
311
|
+
} else {
|
|
312
|
+
this.modelval = defaultPrint.config
|
|
313
|
+
this.put()
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
'modelval.length'() {
|
|
317
|
+
this.put()
|
|
318
|
+
},
|
|
319
|
+
sumsmodel:{
|
|
320
|
+
handler: function(val) {
|
|
321
|
+
this.getotherfooter();
|
|
322
|
+
},
|
|
323
|
+
deep: true
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
computed: {
|
|
327
|
+
getCondition() {
|
|
328
|
+
return {
|
|
329
|
+
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
330
|
+
endDate: this.$refs.paged.$refs.cri.model.endDate,
|
|
331
|
+
condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
|
|
332
|
+
},
|
|
333
|
+
getfield() {
|
|
334
|
+
return exportConfig.PrivilegeQuery
|
|
335
|
+
},
|
|
336
|
+
usertypes() {
|
|
337
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
</script>
|
|
@@ -7,6 +7,30 @@
|
|
|
7
7
|
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
8
|
<div class="row">
|
|
9
9
|
<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>
|
|
10
|
+
<div class="col-sm-2 form-group">
|
|
11
|
+
<label class="font_normal_body" >气价名称</label>
|
|
12
|
+
<v-select :value.sync="model.f_price_name" v-model='model.f_price_name'
|
|
13
|
+
:options='$parent.$parent.priceNames'
|
|
14
|
+
condition="f_price_name = '{}'" @change="$parent.$parent.selectPrice()"
|
|
15
|
+
close-on-select style="width:60%"
|
|
16
|
+
v-el:cc></v-select>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="col-sm-2 form-group">
|
|
19
|
+
<label class="font_normal_body" >单  价</label>
|
|
20
|
+
<v-select :value.sync="model.f_price" v-model='model.f_price'
|
|
21
|
+
:options='$parent.$parent.pricesAll'
|
|
22
|
+
condition="detailvalue like '%{}%'"
|
|
23
|
+
close-on-select style="width:60%"
|
|
24
|
+
v-el:cc></v-select>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="col-sm-2 form-group">
|
|
27
|
+
<label class="font_normal_body">气价类型</label>
|
|
28
|
+
<v-select :value.sync="model.pricetype" v-model="model.pricetype"
|
|
29
|
+
@change="$parent.$parent.pricetypechanged"
|
|
30
|
+
placeholder='气价类型' :options="$parent.$parent.pricetypes"
|
|
31
|
+
close-on-select v-ref:type>
|
|
32
|
+
</v-select>
|
|
33
|
+
</div>
|
|
10
34
|
<div class="span" style="float:right;">
|
|
11
35
|
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
12
36
|
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
@@ -22,22 +46,6 @@
|
|
|
22
46
|
</div>
|
|
23
47
|
</div>
|
|
24
48
|
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
25
|
-
<div class="col-sm-2 form-group">
|
|
26
|
-
<label class="font_normal_body" :title="'参数名为:气价状态'">气价状态</label>
|
|
27
|
-
<v-select :value.sync="model.f_state" v-model='model.f_state'
|
|
28
|
-
:options='$parent.$parent.stateprice' placeholder='气价状态'
|
|
29
|
-
condition="f_state = '{}'"
|
|
30
|
-
close-on-select style="width:60%" :value-single="true"
|
|
31
|
-
v-el:cc></v-select>
|
|
32
|
-
</div>
|
|
33
|
-
<div class="col-sm-2 form-group">
|
|
34
|
-
<label class="font_normal_body">是否启用</label>
|
|
35
|
-
<v-select :value.sync="model.price_state" v-model='model.price_state'
|
|
36
|
-
:options='$parent.$parent.pricestate' placeholder='是否启用'
|
|
37
|
-
condition="price_state = '{}'"
|
|
38
|
-
close-on-select style="width:60%" :value-single="true"
|
|
39
|
-
v-el:cc></v-select>
|
|
40
|
-
</div>
|
|
41
49
|
<div class="col-sm-2 form-group">
|
|
42
50
|
<label class="font_normal_body">客户类型</label>
|
|
43
51
|
<v-select :value.sync="model.f_user_type"
|
|
@@ -54,12 +62,20 @@
|
|
|
54
62
|
close-on-select></v-select>
|
|
55
63
|
</div>
|
|
56
64
|
<div class="col-sm-2 form-group">
|
|
57
|
-
<label class="font_normal_body"
|
|
58
|
-
<v-select :value.sync="model.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
close-on-select
|
|
62
|
-
|
|
65
|
+
<label class="font_normal_body">是否启用</label>
|
|
66
|
+
<v-select :value.sync="model.price_state" v-model='model.price_state'
|
|
67
|
+
:options='$parent.$parent.pricestate'
|
|
68
|
+
condition="price_state = '{}'"
|
|
69
|
+
close-on-select style="width:60%" :value-single="true"
|
|
70
|
+
v-el:cc></v-select>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="col-sm-2 form-group">
|
|
73
|
+
<label class="font_normal_body" :title="'参数名为:气价状态'">气价状态</label>
|
|
74
|
+
<v-select :value.sync="model.f_state" v-model='model.f_state'
|
|
75
|
+
:options='$parent.$parent.stateprice' placeholder='气价状态'
|
|
76
|
+
condition="f_state = '{}'"
|
|
77
|
+
close-on-select style="width:60%" :value-single="true"
|
|
78
|
+
v-el:cc></v-select>
|
|
63
79
|
</div>
|
|
64
80
|
</div>
|
|
65
81
|
|
|
@@ -119,6 +135,7 @@
|
|
|
119
135
|
self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
|
|
120
136
|
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
121
137
|
await self.$MagLoadParams.loadParam()
|
|
138
|
+
self.getPricenames()
|
|
122
139
|
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
123
140
|
}
|
|
124
141
|
export default {
|
|
@@ -142,7 +159,7 @@
|
|
|
142
159
|
thead: '',
|
|
143
160
|
tfoot: '',
|
|
144
161
|
defaultfield: [],
|
|
145
|
-
resshow:['company'
|
|
162
|
+
resshow:['company'],
|
|
146
163
|
initres: {
|
|
147
164
|
org:[this.$login.f.orgid],
|
|
148
165
|
dep:[],
|
|
@@ -150,11 +167,13 @@
|
|
|
150
167
|
},
|
|
151
168
|
gasproperties1:[],
|
|
152
169
|
f_filialeid: this.$login.f.orgid,
|
|
153
|
-
|
|
170
|
+
priceNames: [],
|
|
154
171
|
config: {
|
|
155
172
|
defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_meternumber']
|
|
156
173
|
},
|
|
157
174
|
pricestate:[{label:'未启用',value:'未启用'},{label:'已启用',value:'已启用'}],
|
|
175
|
+
pricesSum:[],
|
|
176
|
+
pricesAll:[{label: '全部', value: ''}],
|
|
158
177
|
//合计数据
|
|
159
178
|
sumsmodel: {},
|
|
160
179
|
stateprice: this.$appdata.getParam('气价状态') ? [{label: '全部',value: ''}, ...this.$appdata.getParam('气价状态')] : [],
|
|
@@ -168,6 +187,34 @@
|
|
|
168
187
|
})
|
|
169
188
|
},
|
|
170
189
|
methods: {
|
|
190
|
+
getPricenames() {
|
|
191
|
+
this.priceNames = []
|
|
192
|
+
let priceArr = []
|
|
193
|
+
debugger
|
|
194
|
+
this.$MagGetSaleParam.prices.forEach((item) => {
|
|
195
|
+
console.log('111111111',item);
|
|
196
|
+
this.pricesSum.push(item)
|
|
197
|
+
let temp = {}
|
|
198
|
+
temp.label = item.f_price_name
|
|
199
|
+
temp.value = item.f_price_name
|
|
200
|
+
priceArr.push(temp)
|
|
201
|
+
})
|
|
202
|
+
this.priceNames = [{label: '全部', value: ''}, ...priceArr]
|
|
203
|
+
},
|
|
204
|
+
selectPrice(){
|
|
205
|
+
this.pricesAll=[{label: '全部', value: ''}]
|
|
206
|
+
this.$refs.paged.$refs.cri.model.f_price=''
|
|
207
|
+
this.pricesSum.forEach((item)=>{
|
|
208
|
+
if(this.$refs.paged.$refs.cri.model.f_price_name==item.f_price_name){
|
|
209
|
+
item.detailprice.forEach((item)=>{
|
|
210
|
+
let temp={}
|
|
211
|
+
temp.label=item.f_price
|
|
212
|
+
temp.value=item.f_price
|
|
213
|
+
this.pricesAll.push(temp)
|
|
214
|
+
})
|
|
215
|
+
}
|
|
216
|
+
})
|
|
217
|
+
},
|
|
171
218
|
pricetypechanged(){
|
|
172
219
|
this.$refs.paged.$refs.cri.model.f_price_name = []
|
|
173
220
|
},
|
|
@@ -286,39 +333,6 @@
|
|
|
286
333
|
},
|
|
287
334
|
},
|
|
288
335
|
computed: {
|
|
289
|
-
getPricenames() {
|
|
290
|
-
let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
|
|
291
|
-
let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
|
|
292
|
-
let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
|
|
293
|
-
console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
|
|
294
|
-
if(this.$refs.paged.$refs.cri.model !==null) {
|
|
295
|
-
let rs = []
|
|
296
|
-
let priceArr = []
|
|
297
|
-
if ( pricetype.length >0) {
|
|
298
|
-
let params = {
|
|
299
|
-
f_price_type: pricetype[0],
|
|
300
|
-
filter: this.f_filialeid,
|
|
301
|
-
prices: this.prices
|
|
302
|
-
}
|
|
303
|
-
this.$MagGetSaleParam.getPrice(params).forEach((item) => {
|
|
304
|
-
let temp = {}
|
|
305
|
-
temp.label = item.label
|
|
306
|
-
temp.value = item.value.f_price_name
|
|
307
|
-
priceArr.push(temp)
|
|
308
|
-
})
|
|
309
|
-
if(priceArr.length == 0 ){
|
|
310
|
-
rs= [{label: '全部', value: ''}]
|
|
311
|
-
}else{
|
|
312
|
-
rs = [ ...priceArr]
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
if (rs.length === 0) {
|
|
316
|
-
console.log('rs读出来是空')
|
|
317
|
-
this.$refs.paged.$refs.cri.model.f_price_name = ''
|
|
318
|
-
}
|
|
319
|
-
return rs
|
|
320
|
-
}
|
|
321
|
-
},
|
|
322
336
|
getCondition() {
|
|
323
337
|
return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
|
|
324
338
|
},
|
|
@@ -326,9 +340,6 @@
|
|
|
326
340
|
console.log('export',exportConfig.gasPriceConfig)
|
|
327
341
|
return exportConfig.gasPriceConfig
|
|
328
342
|
},
|
|
329
|
-
gasStates () {
|
|
330
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
|
|
331
|
-
},
|
|
332
343
|
pricetypes() {
|
|
333
344
|
return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
|
|
334
345
|
},
|