manage-client 3.2.102 → 3.2.103-test
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/build/dev-server.js +176 -177
- package/build/webpack.base.conf.js +83 -82
- package/package.json +2 -2
- package/src/components/ManageHomeCS/Home/ShanxiMap.vue +432 -432
- package/src/components/daping/DataManagement.vue +536 -537
- package/src/components/sale/businessquery/BusinessManage.vue +191 -179
- package/src/components/sale/businessquery/FillCardQuery.vue +39 -2
- package/src/components/sale/config/exportConfig.js +1008 -988
- package/src/components/sale/config/tableConfig.js +48 -48
- package/src/components/valueaddinfo/ValueAddinfoQuery.vue +408 -0
- package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -0
- package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -0
- package/src/components/valueaddinfo/valueAddUserQuery.vue +392 -0
- package/src/components/webmeter/DrillData/UserGasAll.vue +1 -1
- package/src/components/webmeter/WebmeterQuery.vue +3 -0
- package/src/components/webmeter/gasAnalysis/WebmeterSettlementAnalysis.vue +432 -0
- package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +8 -1
- package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +566 -506
- package/src/components/webmeter/report/ReportList.vue +4 -4
- package/src/components/webmeter/reportdata/ReportDataQuery.vue +279 -279
- package/src/filiale/qianneng/BusinessManage.vue +179 -0
- package/src/filiale/qianneng/ChargeQuery.vue +191 -184
- package/src/filiale/qianneng/HandplanQuery.vue +130 -117
- package/src/filiale/qianneng/OtherChargeQuery.vue +33 -31
- package/src/filiale/qianneng/SellDepReport.vue +27 -7
- package/src/filiale/qianneng/UserQuery.vue +938 -0
- package/src/filiale/qianneng/sale.js +5 -1
- package/src/filiale/shaoguan/TransferQuery.vue +8 -3
- package/src/newmanage.js +535 -525
- package/src/saleManage.js +572 -558
- package/src/webmeterManage.js +2 -0
- package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
- package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
- package/.gradle/buildOutputCleanup/built.bin +0 -0
- package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main" @keyup.enter="search">
|
|
4
|
+
<div class="flex" v-if="!show">
|
|
5
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
|
|
7
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
+
<div class="row">
|
|
9
|
+
<div class="col-sm-2 form-group">
|
|
10
|
+
<label class="font_normal_body">公 司</label>
|
|
11
|
+
<right-tree @re-res="$parent.$parent.getorg"
|
|
12
|
+
:initresid='$parent.$parent.org'></right-tree>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="col-sm-2 form-group">
|
|
15
|
+
<label class="font_normal_body">客户编号</label>
|
|
16
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
17
|
+
condition="f_userinfo_code = '{}'"
|
|
18
|
+
placeholder="客户编号">
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<div class="col-sm-2 form-group">
|
|
22
|
+
<label class="font_normal_body">客户名称</label>
|
|
23
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
24
|
+
condition="f_user_name = '{}'"
|
|
25
|
+
placeholder="客户名称">
|
|
26
|
+
</div>
|
|
27
|
+
<div class="col-sm-2 form-group">
|
|
28
|
+
<label for="f_date" class="font_normal_body">查询时间</label>
|
|
29
|
+
<datepicker placeholder="查询时间" style="width:60%"
|
|
30
|
+
v-model="model.f_date"
|
|
31
|
+
:value.sync="model.f_date"
|
|
32
|
+
:format="'yyyy'"
|
|
33
|
+
:show-reset-button="true"
|
|
34
|
+
:select-year="true">
|
|
35
|
+
</datepicker>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="col-sm-2 form-group">
|
|
38
|
+
<label class="font_normal_body">客户类型</label>
|
|
39
|
+
<v-select :value.sync="model.f_user_type"
|
|
40
|
+
@change="$parent.$parent.userTypeChange()"
|
|
41
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
42
|
+
condition="f_user_type = '{}'"
|
|
43
|
+
close-on-select></v-select>
|
|
44
|
+
</div>
|
|
45
|
+
<div class="span" style="float:right;">
|
|
46
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
47
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
48
|
+
<export-excel-plus :data="$parent.$parent.getCondition"
|
|
49
|
+
:defaultselect="$parent.$parent.selectfields"
|
|
50
|
+
:field="$parent.$parent.getfield"
|
|
51
|
+
:exportprogress="true"
|
|
52
|
+
sqlurl="rs/logic/exportfileplus"
|
|
53
|
+
sql-name='getValueaddInfo'
|
|
54
|
+
template-name="续保用户增值业务信息" :choose-col="true"></export-excel-plus>
|
|
55
|
+
<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>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
59
|
+
<div class="col-sm-2 form-group">
|
|
60
|
+
<label class="font_normal_body">用气性质</label>
|
|
61
|
+
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
62
|
+
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
63
|
+
condition="f_gasproperties = '{}'"
|
|
64
|
+
close-on-select></v-select>
|
|
65
|
+
</div>
|
|
66
|
+
<div class="col-sm-2 form-group">
|
|
67
|
+
<label for="yearenddate_s" class="font_normal_body">购买时间</label>
|
|
68
|
+
<datepicker placeholder="开始时间" style="width:60%"
|
|
69
|
+
v-model="model.yearenddate_s"
|
|
70
|
+
:value.sync="model.yearenddate_s"
|
|
71
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
72
|
+
condition="yearenddatesearch >= '{}'"
|
|
73
|
+
:show-reset-button="true">
|
|
74
|
+
</datepicker>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="col-sm-2 form-group">
|
|
77
|
+
<label for="yearenddate_d" class="font_normal_body"> 至 </label>
|
|
78
|
+
<datepicker placeholder="结束时间" style="width:60%"
|
|
79
|
+
v-model="model.yearenddate_d"
|
|
80
|
+
:value.sync="model.yearenddate_d"
|
|
81
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
82
|
+
condition="yearenddatesearch <= '{}'"
|
|
83
|
+
:show-reset-button="true">
|
|
84
|
+
</datepicker>
|
|
85
|
+
</div>
|
|
86
|
+
<div class="col-sm-2 form-group">
|
|
87
|
+
<label class="font_normal_body">增值服务类型</label>
|
|
88
|
+
<v-select :value.sync="model.f_field_name"
|
|
89
|
+
v-model="model.f_field_name"
|
|
90
|
+
:options='$parent.$parent.valuetypeoptions' placeholder='请选择'
|
|
91
|
+
condition="f_value_name = '{}'"
|
|
92
|
+
close-on-select></v-select>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</criteria>
|
|
97
|
+
|
|
98
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
99
|
+
<template partial='head'>
|
|
100
|
+
<tr>
|
|
101
|
+
<th>
|
|
102
|
+
<nobr>客户编号</nobr>
|
|
103
|
+
</th>
|
|
104
|
+
<th>
|
|
105
|
+
<nobr>客户名称</nobr>
|
|
106
|
+
</th>
|
|
107
|
+
<th>
|
|
108
|
+
<nobr>用户类型</nobr>
|
|
109
|
+
</th>
|
|
110
|
+
<th>
|
|
111
|
+
<nobr>用气性质</nobr>
|
|
112
|
+
</th>
|
|
113
|
+
<th>
|
|
114
|
+
<nobr>气表类型</nobr>
|
|
115
|
+
</th>
|
|
116
|
+
<th>
|
|
117
|
+
<nobr>增值服务类型</nobr>
|
|
118
|
+
</th>
|
|
119
|
+
<th>
|
|
120
|
+
<nobr>上次购买时间</nobr>
|
|
121
|
+
</th>
|
|
122
|
+
<th>
|
|
123
|
+
<nobr>本次购买时间</nobr>
|
|
124
|
+
</th>
|
|
125
|
+
<th>
|
|
126
|
+
<nobr>所属公司</nobr>
|
|
127
|
+
</th>
|
|
128
|
+
</tr>
|
|
129
|
+
</template>
|
|
130
|
+
<template partial='body'>
|
|
131
|
+
<td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
|
|
132
|
+
<span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
|
|
133
|
+
</td>
|
|
134
|
+
<td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
|
|
135
|
+
<nobr>{{row.f_user_name}}</nobr>
|
|
136
|
+
</td>
|
|
137
|
+
<td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
|
|
138
|
+
<nobr>{{row.f_user_type}}</nobr>
|
|
139
|
+
</td>
|
|
140
|
+
<td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
|
|
141
|
+
<nobr>{{row.f_gasproperties}}</nobr>
|
|
142
|
+
</td>
|
|
143
|
+
<td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
|
|
144
|
+
<nobr>{{row.f_meter_classify}}</nobr>
|
|
145
|
+
</td>
|
|
146
|
+
<td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
|
|
147
|
+
<nobr>{{row.f_value_name}}</nobr>
|
|
148
|
+
</td>
|
|
149
|
+
<td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
|
|
150
|
+
<nobr>{{row.yearstartdate}}</nobr>
|
|
151
|
+
</td>
|
|
152
|
+
<td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
|
|
153
|
+
<nobr>{{row.yearenddate}}</nobr>
|
|
154
|
+
</td>
|
|
155
|
+
<td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
|
|
156
|
+
<nobr>{{row.f_orgname}}</nobr>
|
|
157
|
+
</td>
|
|
158
|
+
</template>
|
|
159
|
+
<template partial='foot'></template>
|
|
160
|
+
</data-grid>
|
|
161
|
+
</criteria-paged>
|
|
162
|
+
</div>
|
|
163
|
+
<div v-if="show">
|
|
164
|
+
<user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
</template>
|
|
169
|
+
|
|
170
|
+
<script>
|
|
171
|
+
import {PagedList} from 'vue-client'
|
|
172
|
+
import exportConfig from '../sale/config/exportConfig'
|
|
173
|
+
import defaultPrint from "../sale/config/DefaultPrint";
|
|
174
|
+
import plugin from "system-clients/src/plugins/GetLoginInfoService";
|
|
175
|
+
|
|
176
|
+
let readySomething = async function (self) {
|
|
177
|
+
self.$refs.paged.$refs.cri.model.f_date = new Date().getFullYear();
|
|
178
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
179
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
180
|
+
}
|
|
181
|
+
export default {
|
|
182
|
+
title: '增值业务查询',
|
|
183
|
+
|
|
184
|
+
data() {
|
|
185
|
+
return {
|
|
186
|
+
org:[this.$login.f.orgid],
|
|
187
|
+
filialeCodeStr: `and f_filialeid = ${this.$login.f.orgid}`,
|
|
188
|
+
config: {
|
|
189
|
+
defaultPrint: ['f_userinfo_code', 'f_address', 'f_pregas', 'f_preamount']
|
|
190
|
+
},
|
|
191
|
+
//f_price_name:[],
|
|
192
|
+
gasproperties:[],
|
|
193
|
+
showinfo: false,
|
|
194
|
+
data: {},
|
|
195
|
+
show:false,
|
|
196
|
+
rowdata:{},
|
|
197
|
+
initres: {
|
|
198
|
+
org:[this.$login.f.orgid],
|
|
199
|
+
dep:[],
|
|
200
|
+
user:[],
|
|
201
|
+
},
|
|
202
|
+
model: new PagedList('rs/sql/renewalgetValueaddInfo', 20, {}, ),
|
|
203
|
+
criteriaShow: true,
|
|
204
|
+
orgCondtionStr: '',
|
|
205
|
+
//合计数据
|
|
206
|
+
defaultfield: [],
|
|
207
|
+
sumsmodel: {},
|
|
208
|
+
f_filialeid: this.$login.f.f_orgid,
|
|
209
|
+
selectfields:[],
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
props:['selectorg'],
|
|
213
|
+
ready() {
|
|
214
|
+
if(this.selectorg != null && this.selectorg != null != ''){
|
|
215
|
+
this.initres.org=[]
|
|
216
|
+
this.initres.org.push(this.selectorg);
|
|
217
|
+
}
|
|
218
|
+
readySomething(this).then(() => {
|
|
219
|
+
this.$emit('ready')
|
|
220
|
+
}).catch((error) => {
|
|
221
|
+
this.$emit('error', error)
|
|
222
|
+
})
|
|
223
|
+
for(var item in exportConfig.renewalvalueuserinfoConfig){
|
|
224
|
+
this.selectfields.push(item)
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
methods: {
|
|
228
|
+
getorg (obj) {
|
|
229
|
+
if(obj.resids.length>0){
|
|
230
|
+
this.filialeCodeStr =" and f_filialeid in " + plugin.convertToIn(obj.resids)
|
|
231
|
+
}
|
|
232
|
+
else{
|
|
233
|
+
this.filialeCodeStr= " and f_filialeid = " + this.$login.f.orgid
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
search(){
|
|
237
|
+
this.$refs.paged.$refs.cri.search()
|
|
238
|
+
},
|
|
239
|
+
cancel() {
|
|
240
|
+
this.show = false
|
|
241
|
+
},
|
|
242
|
+
showmsg(obj){
|
|
243
|
+
this.rowdata=obj
|
|
244
|
+
this.show=true
|
|
245
|
+
},
|
|
246
|
+
userTypeChange () {
|
|
247
|
+
this.gasproperties=[]
|
|
248
|
+
if(this.$refs.paged.model.model !==null) {
|
|
249
|
+
this.$refs.paged.model.model.f_gasproperties=''
|
|
250
|
+
|
|
251
|
+
console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
252
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
253
|
+
// this.gasproperties.push({label: '全部', value: ''})
|
|
254
|
+
}
|
|
255
|
+
else{
|
|
256
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
|
|
260
|
+
selfSearch(args) {
|
|
261
|
+
args.condition = args.condition+ ` ${this.filialeCodeStr}`
|
|
262
|
+
this.model.params.f_start_year = this.$refs.paged.$refs.cri.model.f_date ==null|| this.$refs.paged.$refs.cri.model.f_date==''?'': this.$refs.paged.$refs.cri.model.f_date
|
|
263
|
+
if(this.model.params.f_start_year && this.model.params.f_start_year!=''){
|
|
264
|
+
this.model.params.f_end_year = `${parseInt(this.model.params.f_start_year)-1}`
|
|
265
|
+
} else{
|
|
266
|
+
this.$showAlert('请选择查询时间!', 'warning', 2000);
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
this.model.search(args.condition, args.model)
|
|
270
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
271
|
+
},
|
|
272
|
+
clear() {
|
|
273
|
+
// this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
274
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
275
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
276
|
+
});
|
|
277
|
+
this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
278
|
+
this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
279
|
+
|
|
280
|
+
},
|
|
281
|
+
dealmsg(val) {
|
|
282
|
+
val.model = this.model.model
|
|
283
|
+
this.$dispatch('deal-msg', val)
|
|
284
|
+
},
|
|
285
|
+
show() {
|
|
286
|
+
this.criteriaShow = true
|
|
287
|
+
},
|
|
288
|
+
hidden() {
|
|
289
|
+
this.criteriaShow = !this.criteriaShow
|
|
290
|
+
},
|
|
291
|
+
getRes(condition,obj) {
|
|
292
|
+
this.orgCondtionStr = condition
|
|
293
|
+
this.f_orgid = obj.resids
|
|
294
|
+
},
|
|
295
|
+
stamp() {
|
|
296
|
+
this.all = false
|
|
297
|
+
//默认选择要打印的列
|
|
298
|
+
this.modelval = defaultPrint.config
|
|
299
|
+
this.fields = this.getfield
|
|
300
|
+
console.log('所有打印字段', this.fields)
|
|
301
|
+
this.printshow = true
|
|
302
|
+
this.put()
|
|
303
|
+
},
|
|
304
|
+
put() {
|
|
305
|
+
// 对Modelval进行排序
|
|
306
|
+
this.sortModelval()
|
|
307
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
|
|
308
|
+
for (let key of this.modelval) {
|
|
309
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
310
|
+
}
|
|
311
|
+
this.thead += '</tr>'
|
|
312
|
+
},
|
|
313
|
+
print() {
|
|
314
|
+
this.$refs.print.PrintAsFile()
|
|
315
|
+
this.printshow = false
|
|
316
|
+
},
|
|
317
|
+
close() {
|
|
318
|
+
this.printshow = false
|
|
319
|
+
this.all = false
|
|
320
|
+
},
|
|
321
|
+
// 对选择的列进行排序
|
|
322
|
+
sortModelval() {
|
|
323
|
+
let sortModel = []
|
|
324
|
+
Object.keys(this.fields).forEach((key) => {
|
|
325
|
+
if (this.modelval.includes(key)) {
|
|
326
|
+
sortModel.push(key)
|
|
327
|
+
}
|
|
328
|
+
})
|
|
329
|
+
this.modelval = sortModel
|
|
330
|
+
console.log('选择的打印的字段', this.modelval)
|
|
331
|
+
},
|
|
332
|
+
|
|
333
|
+
},
|
|
334
|
+
watch: {
|
|
335
|
+
'model'(val) {
|
|
336
|
+
console.log(val, "12222222222222222222")
|
|
337
|
+
},
|
|
338
|
+
'filialeCodeStr'(val) {
|
|
339
|
+
let res = val.match(/'(.*?)'/)
|
|
340
|
+
console.log('正则提取:',res && res[1])
|
|
341
|
+
if (res) {
|
|
342
|
+
this.f_filialeid = res[1]
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
computed: {
|
|
347
|
+
getCondition() {
|
|
348
|
+
let params={}
|
|
349
|
+
params.f_start_year = this.$refs.paged.$refs.cri.model.f_date ==null|| this.$refs.paged.$refs.cri.model.f_date==''?'': this.$refs.paged.$refs.cri.model.f_date
|
|
350
|
+
if(this.$refs.paged.$refs.cri.model.f_date && this.$refs.paged.$refs.cri.model.f_date!=''){
|
|
351
|
+
params.f_end_year = `${parseInt(this.$refs.paged.$refs.cri.model.f_date)-1}`
|
|
352
|
+
}
|
|
353
|
+
params.condition = `${this.$refs.paged.$refs.cri.condition}`;
|
|
354
|
+
return params;
|
|
355
|
+
},
|
|
356
|
+
valuetypeoptions(){
|
|
357
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('增值服务类型')]
|
|
358
|
+
},
|
|
359
|
+
stateoptions(){
|
|
360
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('增值服务状态')]
|
|
361
|
+
},
|
|
362
|
+
usertypes() {
|
|
363
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
364
|
+
},
|
|
365
|
+
getfield() {
|
|
366
|
+
return exportConfig.renewalvalueuserinfoConfig
|
|
367
|
+
},
|
|
368
|
+
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
</script>
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main" @keyup.enter="search">
|
|
4
|
+
<div class="flex" v-if="!show">
|
|
5
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
|
|
7
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
+
<div class="row">
|
|
9
|
+
<div class="col-sm-2 form-group">
|
|
10
|
+
<label class="font_normal_body">公 司</label>
|
|
11
|
+
<right-tree @re-res="$parent.$parent.getorg"
|
|
12
|
+
:initresid='$parent.$parent.org'></right-tree>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="col-sm-2 form-group">
|
|
15
|
+
<label class="font_normal_body">客户编号</label>
|
|
16
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
17
|
+
condition="f_userinfo_code = '{}'"
|
|
18
|
+
placeholder="客户编号">
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<div class="col-sm-2 form-group">
|
|
22
|
+
<label class="font_normal_body">客户名称</label>
|
|
23
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
24
|
+
condition="f_user_name = '{}'"
|
|
25
|
+
placeholder="客户名称">
|
|
26
|
+
</div>
|
|
27
|
+
<div class="col-sm-2 form-group">
|
|
28
|
+
<label class="font_normal_body">增值类型</label>
|
|
29
|
+
<v-select :value.sync="model.f_field_name"
|
|
30
|
+
v-model="model.f_field_name"
|
|
31
|
+
:options='$parent.$parent.valuetypeoptions' placeholder='请选择'
|
|
32
|
+
condition="itemname = '{}'"
|
|
33
|
+
close-on-select></v-select>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<div class="span" style="float:right;">
|
|
37
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
38
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
39
|
+
|
|
40
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
41
|
+
:defaultselect="$parent.$parent.selectfields"
|
|
42
|
+
:field="$parent.$parent.getfield"
|
|
43
|
+
:exportprogress="true"
|
|
44
|
+
sqlurl="rs/logic/exportfile"
|
|
45
|
+
sql-name='addValueQuery'
|
|
46
|
+
template-name="用户增值业务汇总信息" :choose-col="true"></export-excel>
|
|
47
|
+
<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>
|
|
48
|
+
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
52
|
+
<div class="col-sm-2 form-group">
|
|
53
|
+
<label class="font_normal_body">小区名称</label>
|
|
54
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"
|
|
55
|
+
condition="f_residential_area = '{}'"
|
|
56
|
+
placeholder="小区名称">
|
|
57
|
+
</div>
|
|
58
|
+
<div class="col-sm-2 form-group">
|
|
59
|
+
<label class="font_normal_body">客户类型</label>
|
|
60
|
+
<v-select :value.sync="model.f_user_type"
|
|
61
|
+
|
|
62
|
+
condition="f_user_type = '{}'"
|
|
63
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
64
|
+
close-on-select></v-select>
|
|
65
|
+
</div>
|
|
66
|
+
<!-- <div class="col-sm-2 form-group">
|
|
67
|
+
<label class="font_normal_body">用气性质</label>
|
|
68
|
+
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
69
|
+
condition="f_gasproperties = '{}'"
|
|
70
|
+
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
71
|
+
close-on-select></v-select>
|
|
72
|
+
</div> -->
|
|
73
|
+
<div class="col-sm-2 form-group">
|
|
74
|
+
<label class="font_normal_body">有无增值</label>
|
|
75
|
+
<v-select :value.sync="model.f_open_state"
|
|
76
|
+
v-model="model.f_open_state"
|
|
77
|
+
:options='$parent.$parent.backstates' placeholder='请选择'
|
|
78
|
+
condition="ishas = '{}'"
|
|
79
|
+
close-on-select></v-select>
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
</criteria>
|
|
85
|
+
|
|
86
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
87
|
+
<template partial='head'>
|
|
88
|
+
<tr>
|
|
89
|
+
<th>
|
|
90
|
+
<nobr>增值业务名称</nobr>
|
|
91
|
+
</th>
|
|
92
|
+
<th>
|
|
93
|
+
<nobr>户数</nobr>
|
|
94
|
+
</th>
|
|
95
|
+
</tr>
|
|
96
|
+
</template>
|
|
97
|
+
<template partial='body'>
|
|
98
|
+
<td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
|
|
99
|
+
<nobr>{{row.itemname}}</nobr>
|
|
100
|
+
</td>
|
|
101
|
+
<td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
|
|
102
|
+
<nobr>{{row.num}}</nobr>
|
|
103
|
+
</td>
|
|
104
|
+
|
|
105
|
+
</template>
|
|
106
|
+
<template partial='foot'></template>
|
|
107
|
+
</data-grid>
|
|
108
|
+
</criteria-paged>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
</template>
|
|
113
|
+
|
|
114
|
+
<script>
|
|
115
|
+
import {PagedList} from 'vue-client'
|
|
116
|
+
import exportConfig from '../sale/config/exportConfig'
|
|
117
|
+
import defaultPrint from "../sale/config/DefaultPrint";
|
|
118
|
+
import plugin from "system-clients/src/plugins/GetLoginInfoService";
|
|
119
|
+
|
|
120
|
+
let readySomething = async function (self) {
|
|
121
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
|
|
122
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
123
|
+
// self.$refs.paged.$refs.cri.search()
|
|
124
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
125
|
+
await self.$MagLoadParams.loadParam()
|
|
126
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
127
|
+
}
|
|
128
|
+
export default {
|
|
129
|
+
title: '增值业务汇总查询',
|
|
130
|
+
data() {
|
|
131
|
+
return {
|
|
132
|
+
org:[this.$login.f.orgid],
|
|
133
|
+
filialeCodeStr: `and f_orgid = ${this.$login.f.orgid}`,
|
|
134
|
+
config: {
|
|
135
|
+
defaultPrint: ['f_userinfo_code', 'f_address', 'f_pregas', 'f_preamount']
|
|
136
|
+
},
|
|
137
|
+
//f_price_name:[],
|
|
138
|
+
gasproperties:[],
|
|
139
|
+
showinfo: false,
|
|
140
|
+
data: {},
|
|
141
|
+
show:false,
|
|
142
|
+
rowdata:{},
|
|
143
|
+
initres: {
|
|
144
|
+
org:[this.$login.f.orgid],
|
|
145
|
+
dep:[],
|
|
146
|
+
user:[],
|
|
147
|
+
},
|
|
148
|
+
model: new PagedList('rs/sql/addValueQuery', 20, {}, ),
|
|
149
|
+
criteriaShow: true,
|
|
150
|
+
orgCondtionStr: '',
|
|
151
|
+
// 下拉框
|
|
152
|
+
meterbrands: [],
|
|
153
|
+
pricenames: [],
|
|
154
|
+
prices: [],
|
|
155
|
+
//合计数据
|
|
156
|
+
defaultfield: [],
|
|
157
|
+
sumsmodel: {},
|
|
158
|
+
f_filialeid: this.$login.f.f_orgid,
|
|
159
|
+
selectfields:[],
|
|
160
|
+
istrueoptions:[{label:"全部",value:""},{label:"是",value:"0"},{label:"否",value:"1"}],
|
|
161
|
+
backstates:[{label: '全部', value: ''},{label: '有', value: '有'},{label: '无', value: '无'}],
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
props:['selectorg'],
|
|
165
|
+
ready() {
|
|
166
|
+
if(this.selectorg != null && this.selectorg != null != ''){
|
|
167
|
+
this.initres.org=[]
|
|
168
|
+
this.initres.org.push(this.selectorg);
|
|
169
|
+
}
|
|
170
|
+
readySomething(this).then(() => {
|
|
171
|
+
this.$emit('ready')
|
|
172
|
+
}).catch((error) => {
|
|
173
|
+
this.$emit('error', error)
|
|
174
|
+
})
|
|
175
|
+
for(var item in exportConfig.valueuserinfoConfig){
|
|
176
|
+
this.selectfields.push(item)
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
methods: {
|
|
180
|
+
getorg (obj) {
|
|
181
|
+
if(obj.resids.length>0){
|
|
182
|
+
this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
|
|
183
|
+
}
|
|
184
|
+
else{
|
|
185
|
+
this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
search(){
|
|
189
|
+
this.$refs.paged.$refs.cri.search()
|
|
190
|
+
},
|
|
191
|
+
cancel() {
|
|
192
|
+
this.show = false
|
|
193
|
+
},
|
|
194
|
+
showmsg(obj){
|
|
195
|
+
this.rowdata=obj
|
|
196
|
+
this.show=true
|
|
197
|
+
},
|
|
198
|
+
userTypeChange () {
|
|
199
|
+
this.gasproperties=[]
|
|
200
|
+
if(this.$refs.paged.model.model !==null) {
|
|
201
|
+
this.$refs.paged.model.model.f_gasproperties=''
|
|
202
|
+
|
|
203
|
+
console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
204
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
205
|
+
// this.gasproperties.push({label: '全部', value: ''})
|
|
206
|
+
}
|
|
207
|
+
else{
|
|
208
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
|
|
212
|
+
selfSearch(args) {
|
|
213
|
+
this.model.params.f_filialeid = this.f_filialeid == null || this.f_filialeid=='' ? this.$login.f.orgid: this.f_filialeid
|
|
214
|
+
this.model.search(args.condition, args.model)
|
|
215
|
+
},
|
|
216
|
+
clear() {
|
|
217
|
+
// this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
218
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
219
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
220
|
+
});
|
|
221
|
+
this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
222
|
+
this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
223
|
+
|
|
224
|
+
},
|
|
225
|
+
dealmsg(val) {
|
|
226
|
+
val.model = this.model.model
|
|
227
|
+
this.$dispatch('deal-msg', val)
|
|
228
|
+
},
|
|
229
|
+
show() {
|
|
230
|
+
this.criteriaShow = true
|
|
231
|
+
},
|
|
232
|
+
hidden() {
|
|
233
|
+
this.criteriaShow = !this.criteriaShow
|
|
234
|
+
},
|
|
235
|
+
getRes(condition,obj) {
|
|
236
|
+
this.orgCondtionStr = condition
|
|
237
|
+
this.f_orgid = obj.resids
|
|
238
|
+
},
|
|
239
|
+
stamp() {
|
|
240
|
+
this.all = false
|
|
241
|
+
//默认选择要打印的列
|
|
242
|
+
this.modelval = defaultPrint.config
|
|
243
|
+
this.fields = this.getfield
|
|
244
|
+
console.log('所有打印字段', this.fields)
|
|
245
|
+
this.printshow = true
|
|
246
|
+
this.put()
|
|
247
|
+
},
|
|
248
|
+
put() {
|
|
249
|
+
// 对Modelval进行排序
|
|
250
|
+
this.sortModelval()
|
|
251
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
|
|
252
|
+
for (let key of this.modelval) {
|
|
253
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
254
|
+
}
|
|
255
|
+
this.thead += '</tr>'
|
|
256
|
+
},
|
|
257
|
+
print() {
|
|
258
|
+
this.$refs.print.PrintAsFile()
|
|
259
|
+
this.printshow = false
|
|
260
|
+
},
|
|
261
|
+
close() {
|
|
262
|
+
this.printshow = false
|
|
263
|
+
this.all = false
|
|
264
|
+
},
|
|
265
|
+
// 对选择的列进行排序
|
|
266
|
+
sortModelval() {
|
|
267
|
+
let sortModel = []
|
|
268
|
+
Object.keys(this.fields).forEach((key) => {
|
|
269
|
+
if (this.modelval.includes(key)) {
|
|
270
|
+
sortModel.push(key)
|
|
271
|
+
}
|
|
272
|
+
})
|
|
273
|
+
this.modelval = sortModel
|
|
274
|
+
console.log('选择的打印的字段', this.modelval)
|
|
275
|
+
},
|
|
276
|
+
|
|
277
|
+
},
|
|
278
|
+
watch: {
|
|
279
|
+
'model'(val) {
|
|
280
|
+
console.log(val, "12222222222222222222")
|
|
281
|
+
},
|
|
282
|
+
'filialeCodeStr'(val) {
|
|
283
|
+
let res = val.match(/'(.*?)'/)
|
|
284
|
+
console.log('正则提取:',res && res[1])
|
|
285
|
+
if (res) {
|
|
286
|
+
this.f_filialeid = res[1]
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
computed: {
|
|
291
|
+
getCondition() {
|
|
292
|
+
let params={}
|
|
293
|
+
params.f_filialeid = this.f_filialeid == null || this.f_filialeid=='' ? this.$login.f.orgid: this.f_filialeid;
|
|
294
|
+
params.condition = `${this.$refs.paged.$refs.cri.condition}`;
|
|
295
|
+
return params;
|
|
296
|
+
},
|
|
297
|
+
valuetypeoptions(){
|
|
298
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('增值服务类型')]
|
|
299
|
+
},
|
|
300
|
+
stateoptions(){
|
|
301
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('增值服务状态')]
|
|
302
|
+
},
|
|
303
|
+
usertypes() {
|
|
304
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
305
|
+
},
|
|
306
|
+
pricetypeoptions(){
|
|
307
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气价类型')]
|
|
308
|
+
},
|
|
309
|
+
getfield() {
|
|
310
|
+
return exportConfig.valueuserinfoConfig
|
|
311
|
+
},
|
|
312
|
+
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
</script>
|