manage-client 3.2.133 → 3.2.136
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/webpack.prod.conf.js +143 -143
- package/package.json +2 -2
- package/src/ManageHome.js +258 -263
- package/src/components/SellReport/ESaleMonthReport.vue +221 -0
- package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
- package/src/filiale/WEINAN/BusinessManage.vue +3 -0
- package/src/filiale/WEINAN/NewAccountQuery.vue +432 -0
- package/src/filiale/WEINAN/sale.js +4 -2
- package/src/filiale/macheng/WebmeterSettlementAnalysis.vue +28 -7
- package/src/index.js +11 -11
- package/src/main.js +5 -6
- package/src/newmanage.js +503 -508
- package/src/plugins/GetLoginInfoService.js +505 -505
- package/src/reportManage.js +565 -566
- package/src/saleManage.js +563 -568
- package/src/stores/MagGetSaleParams.js +156 -156
- package/src/stores/MagLoadParams.js +63 -63
- package/src/webmeterManage.js +99 -104
- 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
|
@@ -1,303 +1,303 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id='app' class="flex bg-white p-10 datapanel" >
|
|
3
|
-
<criteria-paged :model="model" :pager='true' v-ref:paged>
|
|
4
|
-
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
5
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
|
|
6
|
-
<p class="bg-info text-center" style="padding: 8px;">用户用气明细</p>
|
|
7
|
-
<div class="row">
|
|
8
|
-
<div class="col-sm-2">
|
|
9
|
-
<label class="control-label">时间区间</label>
|
|
10
|
-
<datepicker id="startDate" placeholder="开始时间"
|
|
11
|
-
v-model="model.startDate"
|
|
12
|
-
:value.sync="model.startDate"
|
|
13
|
-
:disabled-days-of-Week="[]"
|
|
14
|
-
:format="'yyyy-MM-dd 00:00:00'"
|
|
15
|
-
:show-reset-button="reset">
|
|
16
|
-
</datepicker>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="col-sm-2">
|
|
19
|
-
<label class="control-label" style="word-break:keep-all;"> 至 </label>
|
|
20
|
-
<datepicker id="endDate" placeholder="结束日期"
|
|
21
|
-
v-model="model.endDate"
|
|
22
|
-
:value.sync="model.endDate"
|
|
23
|
-
:disabled-days-of-Week="[]"
|
|
24
|
-
:format="'yyyy-MM-dd 23:59:59'"
|
|
25
|
-
:show-reset-button="reset">
|
|
26
|
-
</datepicker>
|
|
27
|
-
</div>
|
|
28
|
-
<div class="col-sm-2">
|
|
29
|
-
<label class="control-label">客户编号</label>
|
|
30
|
-
<input type="text" class="form-control" v-model="model.f_userinfo_code" placeholder='客户编号'
|
|
31
|
-
condition="f_userinfo_code = '{}'" v-next-el='username'>
|
|
32
|
-
</div>
|
|
33
|
-
<div class="col-sm-2">
|
|
34
|
-
<label class="control-label">客户名称</label>
|
|
35
|
-
<input type="text" class="form-control" v-model="model.f_username" placeholder='客户名称'
|
|
36
|
-
condition="f_user_name like '%{}%'" v-next-el='userid' v-el:username>
|
|
37
|
-
</div>
|
|
38
|
-
<div class="col-sm-2">
|
|
39
|
-
<label class="control-label">客户地址</label>
|
|
40
|
-
<input type="text" class="form-control" v-model="model.f_address" placeholder='地址'
|
|
41
|
-
condition="f_address like '%{}%'" v-el:xq v-next-el='address' v-el:area
|
|
42
|
-
>
|
|
43
|
-
</div>
|
|
44
|
-
<res-select-group @re-res="$parent.$parent.getRes" style="col-sm-2"></res-select-group>
|
|
45
|
-
<div class="col-sm-2">
|
|
46
|
-
<label class="control-label">是否欠费</label>
|
|
47
|
-
<v-select id="f_meter_brand"
|
|
48
|
-
v-model="model.f_curbalance"
|
|
49
|
-
placeholder='是否欠费'
|
|
50
|
-
:value.sync="model.f_curbalance"
|
|
51
|
-
:options='$parent.$parent.isArrear'
|
|
52
|
-
condition="{}"
|
|
53
|
-
close-on-select >
|
|
54
|
-
</v-select>
|
|
55
|
-
</div>
|
|
56
|
-
<div class="row" style="float: right">
|
|
57
|
-
<button class="btn btn-success " @click="search()">查询</button>
|
|
58
|
-
<button class="btn btn-default width-100" @click="$parent.$parent.clearmsg">清空</button>
|
|
59
|
-
<export-excel :data="$parent.$parent.getCondition"
|
|
60
|
-
:field="$parent.$parent.getfield"
|
|
61
|
-
sqlurl="rs/logic/exportfile" sql-name="gasAnalysisQuery" template-name='用气分析导出' :choose-col="true"></export-excel>
|
|
62
|
-
<button class="btn btn-success" v-if="$parent.$parent.eformsShowButton" @click="$parent.$parent.showTotalForm()" >显示汇总</button>
|
|
63
|
-
<button class="btn btn-success" v-if="!$parent.$parent.eformsShowButton" @click="$parent.$parent.notShowTotalForm()" >隐藏汇总</button>
|
|
64
|
-
</div>
|
|
65
|
-
</div>
|
|
66
|
-
</div>
|
|
67
|
-
</criteria>
|
|
68
|
-
<data-grid id="usergasall" :model="model" partial='list' v-ref:grid>
|
|
69
|
-
<template partial='head'>
|
|
70
|
-
<tr>
|
|
71
|
-
<th rowspan="2" style="text-align:center" ><nobr>序号</nobr></th>
|
|
72
|
-
<th rowspan="2" style="text-align:center"><nobr>客户编号</nobr></th>
|
|
73
|
-
<th rowspan="2" style="text-align:center"><nobr>客户名称</nobr></th>
|
|
74
|
-
<th rowspan="2" style="text-align:center"><nobr>期初余额(元)</nobr></th>
|
|
75
|
-
<th rowspan="2" style="text-align:center"><nobr>用气气量(m³)</nobr></th>
|
|
76
|
-
<th rowspan="2" style="text-align:center"><nobr>用气金额(元)</nobr></th>
|
|
77
|
-
<th rowspan="2" style="text-align:center"><nobr>收款</nobr></th>
|
|
78
|
-
<th rowspan="2" style="text-align:center"><nobr>期末结余(元)</nobr></th>
|
|
79
|
-
<th rowspan="2" style="text-align:center"><nobr>地址</nobr></th>
|
|
80
|
-
</tr>
|
|
81
|
-
</template>
|
|
82
|
-
<template partial='body'>
|
|
83
|
-
<td style="text-align:center">{{$index+1}}</td>
|
|
84
|
-
<td style="text-align:center"><nobr>{{row.f_userinfo_code}}</nobr></td>
|
|
85
|
-
<td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
|
|
86
|
-
<!--<td style="text-align:center"><nobr>{{row.f_user_type}}</nobr></td>-->
|
|
87
|
-
<!--<td style="text-align:center"><nobr>{{row.f_gasproperties}}</nobr></td>-->
|
|
88
|
-
<td style="text-align:center"><nobr>{{row.f_balance}}</nobr></td>
|
|
89
|
-
<!--<td style="text-align:center"><nobr>{{row.f_last_tablebase}}</nobr></td>-->
|
|
90
|
-
<!--<td style="text-align:center"><nobr>{{row.f_tablebase}}</nobr></td>-->
|
|
91
|
-
<!--<td style="text-align:center"><nobr>{{row.f_avg_price}}</nobr></td>-->
|
|
92
|
-
<td style="text-align:center"><nobr>{{row.f_pregas}}</nobr></td>
|
|
93
|
-
<td style="text-align:center"><nobr>{{row.f_preamount}}</nobr></td>
|
|
94
|
-
<td style="text-align:center"><nobr>{{row.f_charge_money}}</nobr></td>
|
|
95
|
-
<td style="text-align:center"><nobr>{{row.f_curbalance}}</nobr></td>
|
|
96
|
-
<!--<td style="text-align:center"><nobr>{{row.f_hand_date}}</nobr></td>-->
|
|
97
|
-
<!--<td style="text-align:center">{{row.f_userfiles_id}}</td>-->
|
|
98
|
-
<td style="text-align:center"><nobr>{{row.f_address}}</nobr></td>
|
|
99
|
-
</template>
|
|
100
|
-
</data-grid>
|
|
101
|
-
</criteria-paged>
|
|
102
|
-
<!-- <!– 图显示模板–>-->
|
|
103
|
-
<!-- <div class="mystyle" v-show="echarts">-->
|
|
104
|
-
<!-- <label class="control-label">图表统计项</label>-->
|
|
105
|
-
<!-- <v-select id="groupname" v-model="groupname"-->
|
|
106
|
-
<!-- placeholder='分组项'-->
|
|
107
|
-
<!-- value-single="true"-->
|
|
108
|
-
<!-- :value.sync="groupname"-->
|
|
109
|
-
<!-- :options='getgroupname'-->
|
|
110
|
-
<!-- close-on-select></v-select>-->
|
|
111
|
-
<!-- </div>-->
|
|
112
|
-
<!-- <div class="span " v-show="echarts">-->
|
|
113
|
-
<!-- <gas-analysis-echarts :groupname="groupname[0]" :condition="condition" :startdate="startDate" :enddate="endDate"></gas-analysis-echarts>-->
|
|
114
|
-
<!-- </div>-->
|
|
115
|
-
|
|
116
|
-
<!--汇总表显示模板-->
|
|
117
|
-
<div class="span" v-show="isActiveTotalForm">
|
|
118
|
-
<gas-analysis-summary ></gas-analysis-summary>
|
|
119
|
-
</div>
|
|
120
|
-
|
|
121
|
-
</div>
|
|
122
|
-
</template>
|
|
123
|
-
|
|
124
|
-
<script>
|
|
125
|
-
import Vue from 'vue'
|
|
126
|
-
import { PagedList } from 'vue-client'
|
|
127
|
-
import GasAnalysisEcharts from './GasAnalysisEcharts'
|
|
128
|
-
import GasAnalysisSummary from './GasAnalysisSummary'
|
|
129
|
-
import defaultPrint from '../../sale/config/DefaultPrint'
|
|
130
|
-
import exportConfig from '../../sale/config/exportConfig'
|
|
131
|
-
|
|
132
|
-
let readySomething = async function (self) {
|
|
133
|
-
await self.$getConfig(self, 'GasAnalysisManageConfig')
|
|
134
|
-
console.log('获取默认配置', self.config)
|
|
135
|
-
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
136
|
-
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardYearMonth() + '-01 00:00:00'
|
|
137
|
-
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
138
|
-
self.$refs.paged.$refs.cri.search()
|
|
139
|
-
}
|
|
140
|
-
// let loadmeter = async function (self) {
|
|
141
|
-
// console.log('开始加载参数,。。')
|
|
142
|
-
// await self.$resetpost('rs/logic/getSaleInitData', {data: {f_filialeids: Vue.$login.f.f_orgids}}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'}).then((res) => {
|
|
143
|
-
// console.log(res.data)
|
|
144
|
-
// let arr = []
|
|
145
|
-
// res.data.gasbrands.forEach((item) => {
|
|
146
|
-
// let temp = {}
|
|
147
|
-
// temp.label = item.f_meter_brand
|
|
148
|
-
// temp.value = item.f_meter_brand
|
|
149
|
-
// arr.push(temp)
|
|
150
|
-
// })
|
|
151
|
-
// self.meterbrand = arr
|
|
152
|
-
// })
|
|
153
|
-
// }
|
|
154
|
-
|
|
155
|
-
export default {
|
|
156
|
-
title: '',
|
|
157
|
-
props: ['data'],
|
|
158
|
-
components: {GasAnalysisEcharts, GasAnalysisSummary},
|
|
159
|
-
data () {
|
|
160
|
-
return {
|
|
161
|
-
model: new PagedList('rs/sql/gasAnalysisQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}),
|
|
162
|
-
groupNameByDate: [],
|
|
163
|
-
getGroupNameByDate: [
|
|
164
|
-
{label: '年份', value: 'year'},
|
|
165
|
-
{label: '月份', value: 'month'},
|
|
166
|
-
{label: '周', value: 'week'}
|
|
167
|
-
],
|
|
168
|
-
reportStr: null,
|
|
169
|
-
show: false,
|
|
170
|
-
outlets: [],
|
|
171
|
-
operator: [],
|
|
172
|
-
filename: '',
|
|
173
|
-
// echarts: true,
|
|
174
|
-
searchshow: false,
|
|
175
|
-
startDate: '',
|
|
176
|
-
endDate: '',
|
|
177
|
-
// echartsShowButton: false,
|
|
178
|
-
eformsShowButton: true,
|
|
179
|
-
isActiveTotalForm: false,
|
|
180
|
-
condition: '1=1',
|
|
181
|
-
groupname: 'year',
|
|
182
|
-
getgroupname: [
|
|
183
|
-
{label: '年份', value: 'year'},
|
|
184
|
-
{label: '月份', value: 'month'},
|
|
185
|
-
{label: '周', value: 'week'},
|
|
186
|
-
{label: '日', value: 'day'}
|
|
187
|
-
],
|
|
188
|
-
orgCondtionStr:'',
|
|
189
|
-
defaultfield: [],
|
|
190
|
-
config: {
|
|
191
|
-
defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
|
|
192
|
-
},
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
ready () {
|
|
196
|
-
readySomething(this).then(() => {
|
|
197
|
-
this.$emit('ready')
|
|
198
|
-
}).catch((error) => {
|
|
199
|
-
this.$emit('error', error)
|
|
200
|
-
})
|
|
201
|
-
|
|
202
|
-
},
|
|
203
|
-
methods: {
|
|
204
|
-
selfSearch (args) {
|
|
205
|
-
args.condition = `${args.condition} ` + this.orgCondtionStr
|
|
206
|
-
this.model.search(args.condition, args.model)
|
|
207
|
-
this.startDate = this.$refs.paged.$refs.cri.model.startDate
|
|
208
|
-
this.endDate = this.$refs.paged.$refs.cri.model.endDate
|
|
209
|
-
this.condition = args.condition
|
|
210
|
-
},
|
|
211
|
-
// 查询开关
|
|
212
|
-
seachchange () {
|
|
213
|
-
this.searchshow = !this.searchshow
|
|
214
|
-
},
|
|
215
|
-
clearmsg () {
|
|
216
|
-
this.$refs.paged.$refs.cri.model = {}
|
|
217
|
-
},
|
|
218
|
-
/*getdata () {
|
|
219
|
-
this.startDate = this.$refs.paged.$refs.cri.model.startDate
|
|
220
|
-
this.endDate = this.$refs.paged.$refs.cri.model.endDate
|
|
221
|
-
this.$refs.paged.$refs.cri.search()
|
|
222
|
-
this.condition = this.$refs.paged.$refs.cri.condition
|
|
223
|
-
},*/
|
|
224
|
-
// 显示柱状图
|
|
225
|
-
// showEcharts () {
|
|
226
|
-
// this.echarts = true
|
|
227
|
-
// this.echartsShowButton = false
|
|
228
|
-
// this.isActiveTotalForm = false
|
|
229
|
-
// },
|
|
230
|
-
notShowTotalForm () {
|
|
231
|
-
// this.echarts = false
|
|
232
|
-
// this.echartsShowButton = true
|
|
233
|
-
this.eformsShowButton = true
|
|
234
|
-
this.isActiveTotalForm = false
|
|
235
|
-
},
|
|
236
|
-
// 不显示柱状图
|
|
237
|
-
notShowEcharts () {
|
|
238
|
-
// this.echarts = false
|
|
239
|
-
// this.echartsShowButton = true
|
|
240
|
-
this.eformsShowButton = true
|
|
241
|
-
this.isActiveTotalForm = false
|
|
242
|
-
},
|
|
243
|
-
// 显示汇总数据表格
|
|
244
|
-
showTotalForm () {
|
|
245
|
-
// this.echarts = false
|
|
246
|
-
// this.echartsShowButton = true
|
|
247
|
-
this.eformsShowButton = false
|
|
248
|
-
this.isActiveTotalForm = true
|
|
249
|
-
},
|
|
250
|
-
close () {
|
|
251
|
-
this.show = false
|
|
252
|
-
},
|
|
253
|
-
getMeterBrand () {
|
|
254
|
-
loadmeter (this)
|
|
255
|
-
},
|
|
256
|
-
getRes(obj) {
|
|
257
|
-
this.orgCondtionStr = obj
|
|
258
|
-
},
|
|
259
|
-
},
|
|
260
|
-
watch: {
|
|
261
|
-
'data' (val) {
|
|
262
|
-
if (val.f_files_path) {
|
|
263
|
-
this.getFileContent(val.f_files_path)
|
|
264
|
-
} else {
|
|
265
|
-
this.reportStr = null
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
},
|
|
269
|
-
computed: {
|
|
270
|
-
getCondition(){
|
|
271
|
-
return {condition: `${this.$refs.paged.$refs.cri.condition}`+this.orgCondtionStr,startDate:this.startDate,endDate:this.endDate}
|
|
272
|
-
},
|
|
273
|
-
getfield(){
|
|
274
|
-
return exportConfig.GasAnalysisManageConfig
|
|
275
|
-
},
|
|
276
|
-
usertypes () {
|
|
277
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
278
|
-
},
|
|
279
|
-
isArrear () {
|
|
280
|
-
return [{label: '全部', value: ''}, {label: '是', value: 'f_curbalance<0'}, {label: '否', value: 'f_curbalance>=0'},]
|
|
281
|
-
},
|
|
282
|
-
Gasproperties () {
|
|
283
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
</script>
|
|
288
|
-
<style>
|
|
289
|
-
.mystyle {
|
|
290
|
-
width: 100%;
|
|
291
|
-
height: 35px;
|
|
292
|
-
/*background: #00A3F0;*/
|
|
293
|
-
padding-left: 85%;
|
|
294
|
-
float: left;
|
|
295
|
-
}
|
|
296
|
-
.datapanel {
|
|
297
|
-
color: #333;
|
|
298
|
-
background-color: white;
|
|
299
|
-
box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
|
|
300
|
-
padding: 10px 10px 10px 10px;
|
|
301
|
-
border-radius:15px;
|
|
302
|
-
}
|
|
303
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div id='app' class="flex bg-white p-10 datapanel" >
|
|
3
|
+
<criteria-paged :model="model" :pager='true' v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
|
|
6
|
+
<p class="bg-info text-center" style="padding: 8px;">用户用气明细</p>
|
|
7
|
+
<div class="row">
|
|
8
|
+
<div class="col-sm-2">
|
|
9
|
+
<label class="control-label">时间区间</label>
|
|
10
|
+
<datepicker id="startDate" placeholder="开始时间"
|
|
11
|
+
v-model="model.startDate"
|
|
12
|
+
:value.sync="model.startDate"
|
|
13
|
+
:disabled-days-of-Week="[]"
|
|
14
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
15
|
+
:show-reset-button="reset">
|
|
16
|
+
</datepicker>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="col-sm-2">
|
|
19
|
+
<label class="control-label" style="word-break:keep-all;"> 至 </label>
|
|
20
|
+
<datepicker id="endDate" placeholder="结束日期"
|
|
21
|
+
v-model="model.endDate"
|
|
22
|
+
:value.sync="model.endDate"
|
|
23
|
+
:disabled-days-of-Week="[]"
|
|
24
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
25
|
+
:show-reset-button="reset">
|
|
26
|
+
</datepicker>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="col-sm-2">
|
|
29
|
+
<label class="control-label">客户编号</label>
|
|
30
|
+
<input type="text" class="form-control" v-model="model.f_userinfo_code" placeholder='客户编号'
|
|
31
|
+
condition="f_userinfo_code = '{}'" v-next-el='username'>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="col-sm-2">
|
|
34
|
+
<label class="control-label">客户名称</label>
|
|
35
|
+
<input type="text" class="form-control" v-model="model.f_username" placeholder='客户名称'
|
|
36
|
+
condition="f_user_name like '%{}%'" v-next-el='userid' v-el:username>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="col-sm-2">
|
|
39
|
+
<label class="control-label">客户地址</label>
|
|
40
|
+
<input type="text" class="form-control" v-model="model.f_address" placeholder='地址'
|
|
41
|
+
condition="f_address like '%{}%'" v-el:xq v-next-el='address' v-el:area
|
|
42
|
+
>
|
|
43
|
+
</div>
|
|
44
|
+
<res-select-group @re-res="$parent.$parent.getRes" style="col-sm-2"></res-select-group>
|
|
45
|
+
<div class="col-sm-2">
|
|
46
|
+
<label class="control-label">是否欠费</label>
|
|
47
|
+
<v-select id="f_meter_brand"
|
|
48
|
+
v-model="model.f_curbalance"
|
|
49
|
+
placeholder='是否欠费'
|
|
50
|
+
:value.sync="model.f_curbalance"
|
|
51
|
+
:options='$parent.$parent.isArrear'
|
|
52
|
+
condition="{}"
|
|
53
|
+
close-on-select >
|
|
54
|
+
</v-select>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="row" style="float: right">
|
|
57
|
+
<button class="btn btn-success " @click="search()">查询</button>
|
|
58
|
+
<button class="btn btn-default width-100" @click="$parent.$parent.clearmsg">清空</button>
|
|
59
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
60
|
+
:field="$parent.$parent.getfield"
|
|
61
|
+
sqlurl="rs/logic/exportfile" sql-name="gasAnalysisQuery" template-name='用气分析导出' :choose-col="true"></export-excel>
|
|
62
|
+
<button class="btn btn-success" v-if="$parent.$parent.eformsShowButton" @click="$parent.$parent.showTotalForm()" >显示汇总</button>
|
|
63
|
+
<button class="btn btn-success" v-if="!$parent.$parent.eformsShowButton" @click="$parent.$parent.notShowTotalForm()" >隐藏汇总</button>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</criteria>
|
|
68
|
+
<data-grid id="usergasall" :model="model" partial='list' v-ref:grid>
|
|
69
|
+
<template partial='head'>
|
|
70
|
+
<tr>
|
|
71
|
+
<th rowspan="2" style="text-align:center" ><nobr>序号</nobr></th>
|
|
72
|
+
<th rowspan="2" style="text-align:center"><nobr>客户编号</nobr></th>
|
|
73
|
+
<th rowspan="2" style="text-align:center"><nobr>客户名称</nobr></th>
|
|
74
|
+
<th rowspan="2" style="text-align:center"><nobr>期初余额(元)</nobr></th>
|
|
75
|
+
<th rowspan="2" style="text-align:center"><nobr>用气气量(m³)</nobr></th>
|
|
76
|
+
<th rowspan="2" style="text-align:center"><nobr>用气金额(元)</nobr></th>
|
|
77
|
+
<th rowspan="2" style="text-align:center"><nobr>收款</nobr></th>
|
|
78
|
+
<th rowspan="2" style="text-align:center"><nobr>期末结余(元)</nobr></th>
|
|
79
|
+
<th rowspan="2" style="text-align:center"><nobr>地址</nobr></th>
|
|
80
|
+
</tr>
|
|
81
|
+
</template>
|
|
82
|
+
<template partial='body'>
|
|
83
|
+
<td style="text-align:center">{{$index+1}}</td>
|
|
84
|
+
<td style="text-align:center"><nobr>{{row.f_userinfo_code}}</nobr></td>
|
|
85
|
+
<td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
|
|
86
|
+
<!--<td style="text-align:center"><nobr>{{row.f_user_type}}</nobr></td>-->
|
|
87
|
+
<!--<td style="text-align:center"><nobr>{{row.f_gasproperties}}</nobr></td>-->
|
|
88
|
+
<td style="text-align:center"><nobr>{{row.f_balance}}</nobr></td>
|
|
89
|
+
<!--<td style="text-align:center"><nobr>{{row.f_last_tablebase}}</nobr></td>-->
|
|
90
|
+
<!--<td style="text-align:center"><nobr>{{row.f_tablebase}}</nobr></td>-->
|
|
91
|
+
<!--<td style="text-align:center"><nobr>{{row.f_avg_price}}</nobr></td>-->
|
|
92
|
+
<td style="text-align:center"><nobr>{{row.f_pregas}}</nobr></td>
|
|
93
|
+
<td style="text-align:center"><nobr>{{row.f_preamount}}</nobr></td>
|
|
94
|
+
<td style="text-align:center"><nobr>{{row.f_charge_money}}</nobr></td>
|
|
95
|
+
<td style="text-align:center"><nobr>{{row.f_curbalance}}</nobr></td>
|
|
96
|
+
<!--<td style="text-align:center"><nobr>{{row.f_hand_date}}</nobr></td>-->
|
|
97
|
+
<!--<td style="text-align:center">{{row.f_userfiles_id}}</td>-->
|
|
98
|
+
<td style="text-align:center"><nobr>{{row.f_address}}</nobr></td>
|
|
99
|
+
</template>
|
|
100
|
+
</data-grid>
|
|
101
|
+
</criteria-paged>
|
|
102
|
+
<!-- <!– 图显示模板–>-->
|
|
103
|
+
<!-- <div class="mystyle" v-show="echarts">-->
|
|
104
|
+
<!-- <label class="control-label">图表统计项</label>-->
|
|
105
|
+
<!-- <v-select id="groupname" v-model="groupname"-->
|
|
106
|
+
<!-- placeholder='分组项'-->
|
|
107
|
+
<!-- value-single="true"-->
|
|
108
|
+
<!-- :value.sync="groupname"-->
|
|
109
|
+
<!-- :options='getgroupname'-->
|
|
110
|
+
<!-- close-on-select></v-select>-->
|
|
111
|
+
<!-- </div>-->
|
|
112
|
+
<!-- <div class="span " v-show="echarts">-->
|
|
113
|
+
<!-- <gas-analysis-echarts :groupname="groupname[0]" :condition="condition" :startdate="startDate" :enddate="endDate"></gas-analysis-echarts>-->
|
|
114
|
+
<!-- </div>-->
|
|
115
|
+
|
|
116
|
+
<!--汇总表显示模板-->
|
|
117
|
+
<div class="span" v-show="isActiveTotalForm">
|
|
118
|
+
<gas-analysis-summary ></gas-analysis-summary>
|
|
119
|
+
</div>
|
|
120
|
+
|
|
121
|
+
</div>
|
|
122
|
+
</template>
|
|
123
|
+
|
|
124
|
+
<script>
|
|
125
|
+
import Vue from 'vue'
|
|
126
|
+
import { PagedList } from 'vue-client'
|
|
127
|
+
import GasAnalysisEcharts from './GasAnalysisEcharts'
|
|
128
|
+
import GasAnalysisSummary from './GasAnalysisSummary'
|
|
129
|
+
import defaultPrint from '../../sale/config/DefaultPrint'
|
|
130
|
+
import exportConfig from '../../sale/config/exportConfig'
|
|
131
|
+
|
|
132
|
+
let readySomething = async function (self) {
|
|
133
|
+
await self.$getConfig(self, 'GasAnalysisManageConfig')
|
|
134
|
+
console.log('获取默认配置', self.config)
|
|
135
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
136
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardYearMonth() + '-01 00:00:00'
|
|
137
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
138
|
+
self.$refs.paged.$refs.cri.search()
|
|
139
|
+
}
|
|
140
|
+
// let loadmeter = async function (self) {
|
|
141
|
+
// console.log('开始加载参数,。。')
|
|
142
|
+
// await self.$resetpost('rs/logic/getSaleInitData', {data: {f_filialeids: Vue.$login.f.f_orgids}}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'}).then((res) => {
|
|
143
|
+
// console.log(res.data)
|
|
144
|
+
// let arr = []
|
|
145
|
+
// res.data.gasbrands.forEach((item) => {
|
|
146
|
+
// let temp = {}
|
|
147
|
+
// temp.label = item.f_meter_brand
|
|
148
|
+
// temp.value = item.f_meter_brand
|
|
149
|
+
// arr.push(temp)
|
|
150
|
+
// })
|
|
151
|
+
// self.meterbrand = arr
|
|
152
|
+
// })
|
|
153
|
+
// }
|
|
154
|
+
|
|
155
|
+
export default {
|
|
156
|
+
title: '',
|
|
157
|
+
props: ['data'],
|
|
158
|
+
components: {GasAnalysisEcharts, GasAnalysisSummary},
|
|
159
|
+
data () {
|
|
160
|
+
return {
|
|
161
|
+
model: new PagedList('rs/sql/gasAnalysisQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}),
|
|
162
|
+
groupNameByDate: [],
|
|
163
|
+
getGroupNameByDate: [
|
|
164
|
+
{label: '年份', value: 'year'},
|
|
165
|
+
{label: '月份', value: 'month'},
|
|
166
|
+
{label: '周', value: 'week'}
|
|
167
|
+
],
|
|
168
|
+
reportStr: null,
|
|
169
|
+
show: false,
|
|
170
|
+
outlets: [],
|
|
171
|
+
operator: [],
|
|
172
|
+
filename: '',
|
|
173
|
+
// echarts: true,
|
|
174
|
+
searchshow: false,
|
|
175
|
+
startDate: '',
|
|
176
|
+
endDate: '',
|
|
177
|
+
// echartsShowButton: false,
|
|
178
|
+
eformsShowButton: true,
|
|
179
|
+
isActiveTotalForm: false,
|
|
180
|
+
condition: '1=1',
|
|
181
|
+
groupname: 'year',
|
|
182
|
+
getgroupname: [
|
|
183
|
+
{label: '年份', value: 'year'},
|
|
184
|
+
{label: '月份', value: 'month'},
|
|
185
|
+
{label: '周', value: 'week'},
|
|
186
|
+
{label: '日', value: 'day'}
|
|
187
|
+
],
|
|
188
|
+
orgCondtionStr:'',
|
|
189
|
+
defaultfield: [],
|
|
190
|
+
config: {
|
|
191
|
+
defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
|
|
192
|
+
},
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
ready () {
|
|
196
|
+
readySomething(this).then(() => {
|
|
197
|
+
this.$emit('ready')
|
|
198
|
+
}).catch((error) => {
|
|
199
|
+
this.$emit('error', error)
|
|
200
|
+
})
|
|
201
|
+
|
|
202
|
+
},
|
|
203
|
+
methods: {
|
|
204
|
+
selfSearch (args) {
|
|
205
|
+
args.condition = `${args.condition} ` + this.orgCondtionStr
|
|
206
|
+
this.model.search(args.condition, args.model)
|
|
207
|
+
this.startDate = this.$refs.paged.$refs.cri.model.startDate
|
|
208
|
+
this.endDate = this.$refs.paged.$refs.cri.model.endDate
|
|
209
|
+
this.condition = args.condition
|
|
210
|
+
},
|
|
211
|
+
// 查询开关
|
|
212
|
+
seachchange () {
|
|
213
|
+
this.searchshow = !this.searchshow
|
|
214
|
+
},
|
|
215
|
+
clearmsg () {
|
|
216
|
+
this.$refs.paged.$refs.cri.model = {}
|
|
217
|
+
},
|
|
218
|
+
/*getdata () {
|
|
219
|
+
this.startDate = this.$refs.paged.$refs.cri.model.startDate
|
|
220
|
+
this.endDate = this.$refs.paged.$refs.cri.model.endDate
|
|
221
|
+
this.$refs.paged.$refs.cri.search()
|
|
222
|
+
this.condition = this.$refs.paged.$refs.cri.condition
|
|
223
|
+
},*/
|
|
224
|
+
// 显示柱状图
|
|
225
|
+
// showEcharts () {
|
|
226
|
+
// this.echarts = true
|
|
227
|
+
// this.echartsShowButton = false
|
|
228
|
+
// this.isActiveTotalForm = false
|
|
229
|
+
// },
|
|
230
|
+
notShowTotalForm () {
|
|
231
|
+
// this.echarts = false
|
|
232
|
+
// this.echartsShowButton = true
|
|
233
|
+
this.eformsShowButton = true
|
|
234
|
+
this.isActiveTotalForm = false
|
|
235
|
+
},
|
|
236
|
+
// 不显示柱状图
|
|
237
|
+
notShowEcharts () {
|
|
238
|
+
// this.echarts = false
|
|
239
|
+
// this.echartsShowButton = true
|
|
240
|
+
this.eformsShowButton = true
|
|
241
|
+
this.isActiveTotalForm = false
|
|
242
|
+
},
|
|
243
|
+
// 显示汇总数据表格
|
|
244
|
+
showTotalForm () {
|
|
245
|
+
// this.echarts = false
|
|
246
|
+
// this.echartsShowButton = true
|
|
247
|
+
this.eformsShowButton = false
|
|
248
|
+
this.isActiveTotalForm = true
|
|
249
|
+
},
|
|
250
|
+
close () {
|
|
251
|
+
this.show = false
|
|
252
|
+
},
|
|
253
|
+
getMeterBrand () {
|
|
254
|
+
loadmeter (this)
|
|
255
|
+
},
|
|
256
|
+
getRes(obj) {
|
|
257
|
+
this.orgCondtionStr = obj
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
watch: {
|
|
261
|
+
'data' (val) {
|
|
262
|
+
if (val.f_files_path) {
|
|
263
|
+
this.getFileContent(val.f_files_path)
|
|
264
|
+
} else {
|
|
265
|
+
this.reportStr = null
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
computed: {
|
|
270
|
+
getCondition(){
|
|
271
|
+
return {condition: `${this.$refs.paged.$refs.cri.condition}`+this.orgCondtionStr,startDate:this.startDate,endDate:this.endDate}
|
|
272
|
+
},
|
|
273
|
+
getfield(){
|
|
274
|
+
return exportConfig.GasAnalysisManageConfig
|
|
275
|
+
},
|
|
276
|
+
usertypes () {
|
|
277
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
278
|
+
},
|
|
279
|
+
isArrear () {
|
|
280
|
+
return [{label: '全部', value: ''}, {label: '是', value: 'f_curbalance<0'}, {label: '否', value: 'f_curbalance>=0'},]
|
|
281
|
+
},
|
|
282
|
+
Gasproperties () {
|
|
283
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
</script>
|
|
288
|
+
<style>
|
|
289
|
+
.mystyle {
|
|
290
|
+
width: 100%;
|
|
291
|
+
height: 35px;
|
|
292
|
+
/*background: #00A3F0;*/
|
|
293
|
+
padding-left: 85%;
|
|
294
|
+
float: left;
|
|
295
|
+
}
|
|
296
|
+
.datapanel {
|
|
297
|
+
color: #333;
|
|
298
|
+
background-color: white;
|
|
299
|
+
box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
|
|
300
|
+
padding: 10px 10px 10px 10px;
|
|
301
|
+
border-radius:15px;
|
|
302
|
+
}
|
|
303
|
+
</style>
|
|
@@ -69,6 +69,9 @@
|
|
|
69
69
|
<tabs header="用户参保查询" v-if="permission('用户参保查询')">
|
|
70
70
|
<user-insured v-if="show.includes('用户参保查询')" @deal-msg="dealMsg" :data="data"></user-insured>
|
|
71
71
|
</tabs>
|
|
72
|
+
<tabs header="开户查询" v-if="permission('开户查询')">
|
|
73
|
+
<new-account-query v-if="show == '开户查询'" @deal-msg="dealMsg"></new-account-query>
|
|
74
|
+
</tabs>
|
|
72
75
|
<!-- <tabs header="资源操作记录查询" v-if="permission('资源操作记录查询')">-->
|
|
73
76
|
<!-- <resource-operating-query v-if="show == '资源操作记录查询'" @deal-msg="dealMsg" :data="data"></resource-operating-query>-->
|
|
74
77
|
<!-- </tabs>-->
|