manage-client 3.2.272 → 3.2.274
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/filiale/kelai/feimin_style.vue +428 -0
- package/src/filiale/kelai/reportManage.js +9 -0
- package/src/filiale/shanxian/BankManager.vue +1 -1
- package/src/filiale/shanxian/Paymentpie.vue +31 -12
- package/src/filiale/shanxian/SiteManager.vue +44 -20
- package/src/filiale/wenxi/WebHandQuery.vue +17 -5
- package/src/filiale/wenxi/sale.js +2 -0
package/package.json
CHANGED
|
@@ -0,0 +1,428 @@
|
|
|
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 for="startDate" class="font_normal_body">开始日期</label>
|
|
11
|
+
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
12
|
+
v-model="model.startDate"
|
|
13
|
+
:value.sync="model.startDate"
|
|
14
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
15
|
+
:show-reset-button="true">
|
|
16
|
+
</datepicker>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="col-sm-2 form-group">
|
|
19
|
+
<label for="endDate" class="font_normal_body">结束日期</label>
|
|
20
|
+
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
21
|
+
v-model="model.endDate"
|
|
22
|
+
:value.sync="model.endDate"
|
|
23
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
24
|
+
:show-reset-button="true">
|
|
25
|
+
</datepicker>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="col-sm-2 form-group">
|
|
28
|
+
<label class="font_normal_body"> 公司 </label>
|
|
29
|
+
<right-tree @re-res="$parent.$parent.getRes"></right-tree>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="col-sm-2 form-group">
|
|
32
|
+
<label class="font_normal_body"> 部门 </label>
|
|
33
|
+
<res-select restype='department'
|
|
34
|
+
@res-select="$parent.$parent.getdep"
|
|
35
|
+
:parentresid="$parent.$parent.depresid"
|
|
36
|
+
:initresid='$parent.$parent.depid'>
|
|
37
|
+
</res-select>
|
|
38
|
+
|
|
39
|
+
</div>
|
|
40
|
+
<div class="col-sm-2 form-group">
|
|
41
|
+
<label class="font_normal_body"> 人员 </label>
|
|
42
|
+
<res-select restype='user'
|
|
43
|
+
is-mul="false"
|
|
44
|
+
@res-select="$parent.$parent.getuser"
|
|
45
|
+
:parentresid="$parent.$parent.userresid"
|
|
46
|
+
:initresid='$parent.$parent.operatorid'>
|
|
47
|
+
</res-select>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="span" style="float:right;">
|
|
50
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
51
|
+
|
|
52
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
53
|
+
:field="$parent.$parent.getfield"
|
|
54
|
+
:footer="$parent.$parent.footer"
|
|
55
|
+
:header="$parent.$parent.other"
|
|
56
|
+
sqlurl="rs/logic/exportfile"
|
|
57
|
+
sql-name="feimin_style"
|
|
58
|
+
template-name='非民用购气使用查询'
|
|
59
|
+
:choose-col="true"></export-excel>
|
|
60
|
+
<print-data-self :model="$parent.model" :field="$parent.$parent.getfield"
|
|
61
|
+
:defaultfield="$parent.$parent.defaultfield" printName="非民用购气使用查询"
|
|
62
|
+
:sumsmodel="$parent.$parent.sumsmodel" :sum-field="$parent.$parent.sumField" :page-sum="$parent.$parent.pageSum"
|
|
63
|
+
:start-date="$parent.$parent.startDate" :end-date="$parent.$parent.endDate"
|
|
64
|
+
></print-data-self>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
</criteria>
|
|
69
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
|
|
70
|
+
<template partial='head'>
|
|
71
|
+
<tr>
|
|
72
|
+
<th>
|
|
73
|
+
<nobr>序号</nobr>
|
|
74
|
+
</th>
|
|
75
|
+
<th>
|
|
76
|
+
<nobr>用户编号</nobr>
|
|
77
|
+
</th>
|
|
78
|
+
<th>
|
|
79
|
+
<nobr>用户名称</nobr>
|
|
80
|
+
</th>
|
|
81
|
+
<th>
|
|
82
|
+
<nobr>档案编号</nobr>
|
|
83
|
+
</th>
|
|
84
|
+
<th>
|
|
85
|
+
<nobr>用户名称</nobr>
|
|
86
|
+
</th>
|
|
87
|
+
<th>
|
|
88
|
+
<nobr>单价</nobr>
|
|
89
|
+
</th>
|
|
90
|
+
<th>
|
|
91
|
+
<nobr>总购气量</nobr>
|
|
92
|
+
</th>
|
|
93
|
+
<th>
|
|
94
|
+
<nobr>本月购气量</nobr>
|
|
95
|
+
</th>
|
|
96
|
+
<th>
|
|
97
|
+
<nobr>补气量</nobr>
|
|
98
|
+
</th>
|
|
99
|
+
<th>
|
|
100
|
+
<nobr>上月表数</nobr>
|
|
101
|
+
</th>
|
|
102
|
+
<th>
|
|
103
|
+
<nobr>本月表数</nobr>
|
|
104
|
+
</th>
|
|
105
|
+
<th>
|
|
106
|
+
<nobr>表余量</nobr>
|
|
107
|
+
</th>
|
|
108
|
+
<th>
|
|
109
|
+
<nobr>用气量</nobr>
|
|
110
|
+
</th>
|
|
111
|
+
<th>
|
|
112
|
+
<nobr>备注</nobr>
|
|
113
|
+
</th>
|
|
114
|
+
</tr>
|
|
115
|
+
</template>
|
|
116
|
+
<template partial='body'>
|
|
117
|
+
<td style="text-align:center">
|
|
118
|
+
<nobr>{{$index+1}}</nobr>
|
|
119
|
+
</td>
|
|
120
|
+
<td style="text-align: center;">
|
|
121
|
+
<nobr>{{row.f_userinfo_code}}</nobr>
|
|
122
|
+
</td>
|
|
123
|
+
<td style="text-align: center;">
|
|
124
|
+
<nobr>{{row.f_user_name}}</nobr>
|
|
125
|
+
</td>
|
|
126
|
+
<td style="text-align: center;">
|
|
127
|
+
<nobr>{{row.f_olduserinfo_code}}</nobr>
|
|
128
|
+
</td>
|
|
129
|
+
<td style="text-align: center;">
|
|
130
|
+
<nobr>{{row.f_price}}</nobr>
|
|
131
|
+
</td>
|
|
132
|
+
<td style="text-align: center;">
|
|
133
|
+
<nobr>{{row.zgougas}}</nobr>
|
|
134
|
+
</td>
|
|
135
|
+
<td style="text-align: center;">
|
|
136
|
+
<nobr>{{row.gougas}}</nobr>
|
|
137
|
+
</td>
|
|
138
|
+
<td style="text-align: center;">
|
|
139
|
+
<nobr>{{row.bugas}}</nobr>
|
|
140
|
+
</td>
|
|
141
|
+
<td style="text-align: center;">
|
|
142
|
+
<nobr>{{row.lastgas}}</nobr>
|
|
143
|
+
</td>
|
|
144
|
+
<td style="text-align: center;">
|
|
145
|
+
<nobr>{{row.thisgas}}</nobr>
|
|
146
|
+
</td>
|
|
147
|
+
<td style="text-align: center;">
|
|
148
|
+
<nobr>{{row.yugas}}</nobr>
|
|
149
|
+
</td>
|
|
150
|
+
<td style="text-align: center;">
|
|
151
|
+
<nobr>{{row.yonggas}}</nobr>
|
|
152
|
+
</td>
|
|
153
|
+
<td style="text-align: center;">
|
|
154
|
+
<nobr>{{row.beizhu}}</nobr>
|
|
155
|
+
</td>
|
|
156
|
+
</template>
|
|
157
|
+
<template partial='foot'></template>
|
|
158
|
+
</data-grid>
|
|
159
|
+
</criteria-paged>
|
|
160
|
+
<table class="table-hover">
|
|
161
|
+
<tr style="position: relative" class="table-bordered">
|
|
162
|
+
<td
|
|
163
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold" >
|
|
164
|
+
报表统计时间
|
|
165
|
+
</td>
|
|
166
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-if="startDate==endDate">
|
|
167
|
+
{{startDate}}
|
|
168
|
+
</td>
|
|
169
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-else>
|
|
170
|
+
{{startDate+" 至 "+endDate}}
|
|
171
|
+
</td>
|
|
172
|
+
</tr>
|
|
173
|
+
<tr style="position: relative" class="table-bordered">
|
|
174
|
+
<td
|
|
175
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
176
|
+
汇总信息
|
|
177
|
+
</td>
|
|
178
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
179
|
+
总购气量汇总: {{sumsmodel.zgougas.toFixed(2)}}
|
|
180
|
+
</td>
|
|
181
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
182
|
+
本月购气量汇总: {{sumsmodel.gougas.toFixed(2)}}
|
|
183
|
+
</td>
|
|
184
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
185
|
+
补气汇总: {{sumsmodel.bugas.toFixed(2)}}
|
|
186
|
+
</td>
|
|
187
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
188
|
+
表余量汇总: {{sumsmodel.yugas.toFixed(2)}}
|
|
189
|
+
</td>
|
|
190
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
191
|
+
用气量汇总: {{sumsmodel.yonggas.toFixed(2)}}
|
|
192
|
+
</td>
|
|
193
|
+
</tr>
|
|
194
|
+
</table>
|
|
195
|
+
</div>
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
|
+
</template>
|
|
199
|
+
<script>
|
|
200
|
+
import {PagedList, HttpResetClass} from 'vue-client'
|
|
201
|
+
import defaultPrint from '../../components/sale/config/DefaultPrint'
|
|
202
|
+
import exportConfig from './exportConfig'
|
|
203
|
+
import PrintDataSelf from '../../components/sale/common/PrintDataSelf'
|
|
204
|
+
|
|
205
|
+
let readySomething = async function (self) {
|
|
206
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
|
|
207
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
208
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
209
|
+
}
|
|
210
|
+
export default {
|
|
211
|
+
title: '非民用购气使用查询',
|
|
212
|
+
props: ['data'],
|
|
213
|
+
data() {
|
|
214
|
+
return {
|
|
215
|
+
depresid: [],
|
|
216
|
+
userresid: [],
|
|
217
|
+
f_orgid: this.$login.f.orgid,
|
|
218
|
+
f_depid: this.$login.f.depids,
|
|
219
|
+
f_operatorid: this.$login.f.id,
|
|
220
|
+
operatorid: [],
|
|
221
|
+
depid: [],
|
|
222
|
+
orgname: '',
|
|
223
|
+
depname: [],
|
|
224
|
+
operatorname: '',
|
|
225
|
+
orgCondtionStr: '1=1',
|
|
226
|
+
data: {},
|
|
227
|
+
other:[],
|
|
228
|
+
footer:[],
|
|
229
|
+
model: new PagedList('rs/sql/feimin_style', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate', f_orgid: 'this.model.f_orgid'},{
|
|
230
|
+
zgougas:0,
|
|
231
|
+
gougas:0,
|
|
232
|
+
bugas:0,
|
|
233
|
+
yugas:0,
|
|
234
|
+
yonggas:0
|
|
235
|
+
}),
|
|
236
|
+
gasproperties:[],
|
|
237
|
+
show:false,
|
|
238
|
+
rowdata:{},
|
|
239
|
+
residentialArea: [],
|
|
240
|
+
modelval: [],
|
|
241
|
+
startDate:"",
|
|
242
|
+
endDate:"",
|
|
243
|
+
inputtouPerson: [],
|
|
244
|
+
printshow: false,
|
|
245
|
+
all: false,
|
|
246
|
+
fields: {},
|
|
247
|
+
thead: '',
|
|
248
|
+
tfoot: '',
|
|
249
|
+
|
|
250
|
+
// 下拉框
|
|
251
|
+
|
|
252
|
+
//合计数据
|
|
253
|
+
sumsmodel: {},
|
|
254
|
+
sumField: {
|
|
255
|
+
'zgougas': '总购气量汇总', 'gougas': '本月购气量汇总','bugas': '补气汇总','yugas': '表余量汇总','yonggas': '用气量汇总'
|
|
256
|
+
},
|
|
257
|
+
pageSum: {
|
|
258
|
+
'zgougas': '0.00',
|
|
259
|
+
'gougas': '0.00',
|
|
260
|
+
'bugas': '0.00',
|
|
261
|
+
'yugas': '0.00',
|
|
262
|
+
'yonggas': '0.00'
|
|
263
|
+
},
|
|
264
|
+
defaultfield: [],
|
|
265
|
+
config: {
|
|
266
|
+
defaultPrint: ['f_userinfo_code', 'f_user_name']
|
|
267
|
+
},
|
|
268
|
+
batchmoneyShow:false
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
ready() {
|
|
272
|
+
readySomething(this).then(() => {
|
|
273
|
+
this.$emit('ready')
|
|
274
|
+
}).catch((error) => {
|
|
275
|
+
this.$emit('error', error)
|
|
276
|
+
})
|
|
277
|
+
},
|
|
278
|
+
methods: {
|
|
279
|
+
getotherfooter(){
|
|
280
|
+
// this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
281
|
+
// this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
282
|
+
this.other=[];
|
|
283
|
+
this.footer=[];
|
|
284
|
+
let exportdata = this.getCondition;
|
|
285
|
+
let otherInData=[];
|
|
286
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
287
|
+
let footerData=[],exportfield=this.getfield;
|
|
288
|
+
footerData.push("合计");
|
|
289
|
+
let self =this;
|
|
290
|
+
for(var field in self.sumsmodel){
|
|
291
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
292
|
+
}
|
|
293
|
+
this.footer.push(footerData);
|
|
294
|
+
this.other.push(otherInData);
|
|
295
|
+
},
|
|
296
|
+
search(){
|
|
297
|
+
this.$refs.paged.$refs.cri.search()
|
|
298
|
+
},
|
|
299
|
+
selfSearch(args) {
|
|
300
|
+
let orgcondition = ' uf.f_orgid in (' + this.f_orgid + ')'
|
|
301
|
+
if (this.f_depid[0]) {
|
|
302
|
+
orgcondition += " and uf.f_depid in("+this.f_depid.toString()+')'
|
|
303
|
+
}
|
|
304
|
+
if(this.f_operatorid[0]) {
|
|
305
|
+
orgcondition += ' and ts2.f_operatorid in (' + this.f_operatorid + ')'
|
|
306
|
+
}
|
|
307
|
+
this.startDate=this.$refs.paged.$refs.cri.model.startDate.substring(0,10)
|
|
308
|
+
this.endDate=this.$refs.paged.$refs.cri.model.endDate.substring(0,10)
|
|
309
|
+
this.orgCondtionStr=orgcondition
|
|
310
|
+
this.$refs.paged.$refs.cri.model.f_orgid = orgcondition
|
|
311
|
+
this.model.search(args.f_orgid, args.model)
|
|
312
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
313
|
+
},
|
|
314
|
+
getRes (obj) {
|
|
315
|
+
this.orgname = obj.res[0]
|
|
316
|
+
this.depresid = obj.resids
|
|
317
|
+
this.f_orgid = obj.resids
|
|
318
|
+
},
|
|
319
|
+
getdep (obj, val) {
|
|
320
|
+
this.depname = val
|
|
321
|
+
this.userresid = obj
|
|
322
|
+
this.f_depid = obj
|
|
323
|
+
},
|
|
324
|
+
getuser ( obj, val) {
|
|
325
|
+
this.operatorname = val[0]
|
|
326
|
+
this.f_operatorid = obj
|
|
327
|
+
},
|
|
328
|
+
stamp() {
|
|
329
|
+
this.all = false
|
|
330
|
+
//默认选择要打印的列
|
|
331
|
+
this.modelval = defaultPrint.config
|
|
332
|
+
this.fields = this.getfield
|
|
333
|
+
console.log('所有打印字段', this.fields)
|
|
334
|
+
this.printshow = true
|
|
335
|
+
this.put()
|
|
336
|
+
},
|
|
337
|
+
put() {
|
|
338
|
+
// 对Modelval进行排序
|
|
339
|
+
this.sortModelval()
|
|
340
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>非民用购气使用查询</th></tr><tr>`
|
|
341
|
+
for (let key of this.modelval) {
|
|
342
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
343
|
+
}
|
|
344
|
+
this.thead += '</tr>'
|
|
345
|
+
},
|
|
346
|
+
print() {
|
|
347
|
+
this.$refs.print.PrintAsFile()
|
|
348
|
+
this.printshow = false
|
|
349
|
+
},
|
|
350
|
+
dealmsg(val) {
|
|
351
|
+
console.log('---------------dealmsg')
|
|
352
|
+
this.rowdata=val
|
|
353
|
+
this.show=true
|
|
354
|
+
val.model = this.model.model
|
|
355
|
+
this.$dispatch('deal-msg', val)
|
|
356
|
+
},
|
|
357
|
+
close() {
|
|
358
|
+
this.printshow = false
|
|
359
|
+
this.all = false
|
|
360
|
+
},
|
|
361
|
+
// 对选择的列进行排序
|
|
362
|
+
sortModelval() {
|
|
363
|
+
let sortModel = []
|
|
364
|
+
Object.keys(this.fields).forEach((key) => {
|
|
365
|
+
if (this.modelval.includes(key)) {
|
|
366
|
+
sortModel.push(key)
|
|
367
|
+
}
|
|
368
|
+
})
|
|
369
|
+
this.modelval = sortModel
|
|
370
|
+
console.log('选择的打印的字段', this.modelval)
|
|
371
|
+
},
|
|
372
|
+
userTypeChange () {
|
|
373
|
+
this.gasproperties=[]
|
|
374
|
+
if(this.$refs.paged.$refs.criteria.model !==null) {
|
|
375
|
+
this.$refs.paged.$refs.criteria.model.f_gasproperties=''
|
|
376
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
|
|
377
|
+
}
|
|
378
|
+
else{
|
|
379
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
},
|
|
383
|
+
watch: {
|
|
384
|
+
'all'(val) {
|
|
385
|
+
if (val) {
|
|
386
|
+
this.modelval = this.bodyData
|
|
387
|
+
} else {
|
|
388
|
+
this.modelval = defaultPrint.config
|
|
389
|
+
this.put()
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
'modelval.length'() {
|
|
393
|
+
this.put()
|
|
394
|
+
},
|
|
395
|
+
sumsmodel:{
|
|
396
|
+
handler: function(val) {
|
|
397
|
+
this.getotherfooter();
|
|
398
|
+
},
|
|
399
|
+
deep: true
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
computed: {
|
|
403
|
+
getCondition() {
|
|
404
|
+
return {
|
|
405
|
+
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
406
|
+
endDate: this.$refs.paged.$refs.cri.model.endDate,
|
|
407
|
+
f_orgid: this.orgCondtionStr
|
|
408
|
+
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
},
|
|
412
|
+
getfield() {
|
|
413
|
+
return exportConfig.feimin_style
|
|
414
|
+
},
|
|
415
|
+
whetherpaies () {
|
|
416
|
+
return [
|
|
417
|
+
{label: '全部', value: ''},
|
|
418
|
+
{label: '已缴费', value: '是'},
|
|
419
|
+
{label: '未缴费', value: '否'}
|
|
420
|
+
]
|
|
421
|
+
},
|
|
422
|
+
usertypes() {
|
|
423
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
</script>
|
|
@@ -17,17 +17,32 @@ let getData = function* (self) {
|
|
|
17
17
|
{data: {startDate: self.startdate, endDate: self.enddate, key: 'f_user_nature', f_orgid: self.orgid}},
|
|
18
18
|
{resolveMsg: null, rejectMsg: null})
|
|
19
19
|
.then((res) => {
|
|
20
|
-
let
|
|
21
|
-
let
|
|
20
|
+
let arrparams1 = ''
|
|
21
|
+
let moneydata1 = ''
|
|
22
|
+
let arrparams2 = ''
|
|
23
|
+
let moneydata2 = null
|
|
24
|
+
let arrparams3 = null
|
|
25
|
+
let moneydata3 = null
|
|
26
|
+
let color1 = null
|
|
27
|
+
let color2 = null
|
|
28
|
+
let color3 = null
|
|
22
29
|
for (var i = 0; i < res.data.length; i++) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
if (res.data[i].name == '民用') {
|
|
31
|
+
arrparams1 = res.data[i].name
|
|
32
|
+
moneydata1 = res.data[i].money_value
|
|
33
|
+
color1 = res.data[i].color
|
|
34
|
+
} else if (res.data[i].name == '工业') {
|
|
35
|
+
arrparams2 = res.data[i].name
|
|
36
|
+
moneydata2 = res.data[i].money_value
|
|
37
|
+
color2 = res.data[i].color
|
|
38
|
+
} else if (res.data[i].name == '商业') {
|
|
39
|
+
arrparams3 = res.data[i].name
|
|
40
|
+
moneydata3 = res.data[i].money_value
|
|
41
|
+
color3 = res.data[i].color
|
|
42
|
+
}
|
|
28
43
|
}
|
|
29
44
|
console.log('加载echars组件')
|
|
30
|
-
self.setGas(
|
|
45
|
+
self.setGas(arrparams1, moneydata1, arrparams2, moneydata2, arrparams3, moneydata3, color1, color2, color3)
|
|
31
46
|
})
|
|
32
47
|
let load1 = new HttpResetClass()
|
|
33
48
|
load1.load('POST', 'rs/sql/sellinggasvalueroute',
|
|
@@ -69,10 +84,9 @@ export default {
|
|
|
69
84
|
},
|
|
70
85
|
methods: {
|
|
71
86
|
|
|
72
|
-
setGas (
|
|
87
|
+
setGas (arrparams1, moneydata1, arrparams2, moneydata2, arrparams3, moneydata3, color1, color2, color3) {
|
|
73
88
|
console.log('进入组件')
|
|
74
89
|
let option1 = {
|
|
75
|
-
color: ['#FE974B', '#3D72FF', '#00C953'],
|
|
76
90
|
title: [
|
|
77
91
|
{
|
|
78
92
|
text: '售气金额饼状图',
|
|
@@ -105,7 +119,7 @@ export default {
|
|
|
105
119
|
padding: [0, 0, 0, 4],
|
|
106
120
|
color: '#010606'
|
|
107
121
|
},
|
|
108
|
-
data:
|
|
122
|
+
data: [arrparams1, arrparams2, arrparams3]
|
|
109
123
|
},
|
|
110
124
|
series: [
|
|
111
125
|
{
|
|
@@ -118,7 +132,11 @@ export default {
|
|
|
118
132
|
startAngle: 60, // 起始角度
|
|
119
133
|
label: {normal: {show: true}},
|
|
120
134
|
labelLine: {normal: {show: true}},
|
|
121
|
-
data:
|
|
135
|
+
data: [
|
|
136
|
+
{value: moneydata1, name: arrparams1, itemStyle: {color: color1}},
|
|
137
|
+
{value: moneydata2, name: arrparams2, itemStyle: {color: color2}},
|
|
138
|
+
{value: moneydata3, name: arrparams3, itemStyle: {color: color3}}
|
|
139
|
+
]
|
|
122
140
|
}
|
|
123
141
|
]
|
|
124
142
|
|
|
@@ -129,6 +147,7 @@ export default {
|
|
|
129
147
|
setMoney (arrparams, moneydata) {
|
|
130
148
|
console.log('进入组件')
|
|
131
149
|
let option = {
|
|
150
|
+
color: ['#fc8251', '#5470c6', '#91cd77', '#ef6567', '#f9c956', '#75bedc'],
|
|
132
151
|
title: [
|
|
133
152
|
{
|
|
134
153
|
text: '',
|
|
@@ -17,23 +17,39 @@ let getData = function* (self) {
|
|
|
17
17
|
{data: {startDate: self.startdate, endDate: self.enddate, key: 'f_user_nature', f_orgid: self.orgid}},
|
|
18
18
|
{resolveMsg: null, rejectMsg: null})
|
|
19
19
|
.then((res) => {
|
|
20
|
-
let
|
|
21
|
-
let
|
|
22
|
-
let
|
|
20
|
+
let arrparams1 = ''
|
|
21
|
+
let gasdata1 = null
|
|
22
|
+
let numdata1 = null
|
|
23
|
+
let arrparams2 = ''
|
|
24
|
+
let gasdata2 = null
|
|
25
|
+
let numdata2 = null
|
|
26
|
+
let arrparams3 = ''
|
|
27
|
+
let gasdata3 = null
|
|
28
|
+
let numdata3 = null
|
|
29
|
+
let color1 = null
|
|
30
|
+
let color2 = null
|
|
31
|
+
let color3 = null
|
|
23
32
|
for (var i = 0; i < res.data.length; i++) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
if (res.data[i].name == '民用') {
|
|
34
|
+
arrparams1 = res.data[i].name
|
|
35
|
+
numdata1 = res.data[i].num_value
|
|
36
|
+
gasdata1 = res.data[i].gas_value
|
|
37
|
+
color1 = res.data[i].color
|
|
38
|
+
} else if (res.data[i].name == '工业') {
|
|
39
|
+
arrparams2 = res.data[i].name
|
|
40
|
+
numdata2 = res.data[i].num_value
|
|
41
|
+
gasdata2 = res.data[i].gas_value
|
|
42
|
+
color2 = res.data[i].color
|
|
43
|
+
} else if (res.data[i].name == '商业') {
|
|
44
|
+
arrparams3 = res.data[i].name
|
|
45
|
+
numdata3 = res.data[i].num_value
|
|
46
|
+
gasdata3 = res.data[i].gas_value
|
|
47
|
+
color3 = res.data[i].color
|
|
48
|
+
}
|
|
33
49
|
}
|
|
34
50
|
console.log('加载echars组件')
|
|
35
|
-
self.
|
|
36
|
-
self.
|
|
51
|
+
self.setGas(arrparams1, gasdata1, arrparams2, gasdata2, arrparams3, gasdata3, color1, color2, color3)
|
|
52
|
+
self.setNum(arrparams1, numdata1, arrparams2, numdata2, arrparams3, numdata3, color1, color2, color3)
|
|
37
53
|
})
|
|
38
54
|
}
|
|
39
55
|
export default {
|
|
@@ -58,7 +74,7 @@ export default {
|
|
|
58
74
|
},
|
|
59
75
|
methods: {
|
|
60
76
|
|
|
61
|
-
setNum (
|
|
77
|
+
setNum (arrparams1, numdata1, arrparams2, numdata2, arrparams3, numdata3, color1, color2, color3) {
|
|
62
78
|
console.log('进入组件')
|
|
63
79
|
let option1 = {
|
|
64
80
|
color: ['#FE974B', '#3D72FF', '#00C953'],
|
|
@@ -94,7 +110,7 @@ export default {
|
|
|
94
110
|
padding: [0, 0, 0, 4],
|
|
95
111
|
color: '#010606'
|
|
96
112
|
},
|
|
97
|
-
data:
|
|
113
|
+
data: [arrparams1, arrparams2, arrparams3]
|
|
98
114
|
},
|
|
99
115
|
series: [
|
|
100
116
|
{
|
|
@@ -107,7 +123,11 @@ export default {
|
|
|
107
123
|
startAngle: 60, // 起始角度
|
|
108
124
|
label: {normal: {show: true}},
|
|
109
125
|
labelLine: {normal: {show: true}},
|
|
110
|
-
data:
|
|
126
|
+
data: [
|
|
127
|
+
{value: numdata1, name: arrparams1, itemStyle: {color: color1}},
|
|
128
|
+
{value: numdata2, name: arrparams2, itemStyle: {color: color2}},
|
|
129
|
+
{value: numdata3, name: arrparams3, itemStyle: {color: color3}}
|
|
130
|
+
],
|
|
111
131
|
percentPrecision: 4
|
|
112
132
|
}
|
|
113
133
|
]
|
|
@@ -116,7 +136,7 @@ export default {
|
|
|
116
136
|
this.xd = echarts.init(document.getElementById('num'))
|
|
117
137
|
this.xd.setOption(option1, true)
|
|
118
138
|
},
|
|
119
|
-
setGas (
|
|
139
|
+
setGas (arrparams1, gasdata1, arrparams2, gasdata2, arrparams3, gasdata3, color1, color2, color3) {
|
|
120
140
|
console.log('进入组件')
|
|
121
141
|
let option = {
|
|
122
142
|
color: ['#FE974B', '#3D72FF', '#00C953'],
|
|
@@ -152,7 +172,7 @@ export default {
|
|
|
152
172
|
padding: [0, 0, 0, 4],
|
|
153
173
|
color: '#010606'
|
|
154
174
|
},
|
|
155
|
-
data:
|
|
175
|
+
data: [arrparams1, arrparams2, arrparams3]
|
|
156
176
|
},
|
|
157
177
|
series: [
|
|
158
178
|
{
|
|
@@ -165,7 +185,11 @@ export default {
|
|
|
165
185
|
startAngle: 60, // 起始角度
|
|
166
186
|
label: {normal: {show: true}},
|
|
167
187
|
labelLine: {normal: {show: true}},
|
|
168
|
-
data:
|
|
188
|
+
data: [
|
|
189
|
+
{value: gasdata1, name: arrparams1, itemStyle: {color: color1}},
|
|
190
|
+
{value: gasdata2, name: arrparams2, itemStyle: {color: color2}},
|
|
191
|
+
{value: gasdata3, name: arrparams3, itemStyle: {color: color3}}
|
|
192
|
+
],
|
|
169
193
|
percentPrecision: 4
|
|
170
194
|
}
|
|
171
195
|
]
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
condition="f_collection <= {} " placeholder="">
|
|
115
115
|
</div>
|
|
116
116
|
</div>
|
|
117
|
-
<div class="col-sm-2 form-group"
|
|
117
|
+
<div class="col-sm-2 form-group">
|
|
118
118
|
<label class="font_normal_body" for="startDate">抄表日期</label>
|
|
119
119
|
<datepicker id="startDate" placeholder="开始日期" style="width: 60%"
|
|
120
120
|
v-model="model.startDate"
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
:show-reset-button="reset">
|
|
125
125
|
</datepicker>
|
|
126
126
|
</div>
|
|
127
|
-
<div class="col-sm-2 form-group"
|
|
127
|
+
<div class="col-sm-2 form-group">
|
|
128
128
|
<label class="font_normal_body" for="endDate">抄表日期</label>
|
|
129
129
|
<datepicker id="endDate" placeholder="结束日期" style="width: 60%"
|
|
130
130
|
v-model="model.endDate"
|
|
@@ -293,9 +293,9 @@
|
|
|
293
293
|
}).catch((error) => {
|
|
294
294
|
this.$emit('error', error)
|
|
295
295
|
})
|
|
296
|
-
this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date()
|
|
297
|
-
this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date()
|
|
298
|
-
this.$refs.paged.$refs.criteria.search()
|
|
296
|
+
// this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),0).substring(0,10) + ' 00:00:00'
|
|
297
|
+
// this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),0).substring(0,10) + ' 23:59:59'
|
|
298
|
+
// this.$refs.paged.$refs.criteria.search()
|
|
299
299
|
},
|
|
300
300
|
methods: {
|
|
301
301
|
initParams() {
|
|
@@ -354,6 +354,16 @@
|
|
|
354
354
|
},
|
|
355
355
|
|
|
356
356
|
search (args) {
|
|
357
|
+
let isUserinfoCodeEdit = (this.$refs.paged.$refs.criteria.model.f_userinfo_code !== '')
|
|
358
|
+
if (this.$refs.paged.$refs.criteria.model.startDate == '' && this.$refs.paged.$refs.criteria.model.endDate == ''){
|
|
359
|
+
if (isUserinfoCodeEdit){
|
|
360
|
+
this.$refs.paged.$refs.criteria.model.startDate = '1990-01-01 00:00:00'
|
|
361
|
+
this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),1).substring(0,10) + ' 00:00:00'
|
|
362
|
+
}else{
|
|
363
|
+
this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),0).substring(0,10) + ' 00:00:00'
|
|
364
|
+
this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),0).substring(0,10) + ' 23:59:59'
|
|
365
|
+
}
|
|
366
|
+
}
|
|
357
367
|
args.condition = `${args.condition}`+this.orgcondition
|
|
358
368
|
this.condition = args.condition
|
|
359
369
|
this.model.search(args.condition, args.model)
|
|
@@ -364,6 +374,7 @@
|
|
|
364
374
|
// else
|
|
365
375
|
// args.condition = `${args.condition}` + 'and m.f_orgid in ' + '(' + this.$login.f.orgid + ')'
|
|
366
376
|
// this.model.search(args.condition, args.model)
|
|
377
|
+
|
|
367
378
|
}
|
|
368
379
|
},
|
|
369
380
|
watch: {
|
|
@@ -385,6 +396,7 @@
|
|
|
385
396
|
}
|
|
386
397
|
},
|
|
387
398
|
computed: {
|
|
399
|
+
|
|
388
400
|
getCondition() {
|
|
389
401
|
|
|
390
402
|
return {
|