manage-client 3.3.204 → 3.3.205
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_kl.vue +400 -0
- package/src/filiale/kelai/reportManage.js +4 -0
- package/.npmignore +0 -10
- package/build/.npmignore +0 -1
- package/package-lock.json +0 -28484
package/package.json
CHANGED
|
@@ -0,0 +1,400 @@
|
|
|
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="span" style="float:right;">
|
|
28
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
29
|
+
|
|
30
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
31
|
+
:field="$parent.$parent.getfield"
|
|
32
|
+
:footer="$parent.$parent.footer"
|
|
33
|
+
:header="$parent.$parent.other"
|
|
34
|
+
sqlurl="api/af-revenue/logic/openapi/exportfile"
|
|
35
|
+
sql-name="feimin_style"
|
|
36
|
+
template-name='非民用卡表购气使用查询'
|
|
37
|
+
:choose-col="true"></export-excel>
|
|
38
|
+
<print-data-self :model="$parent.model" :field="$parent.$parent.getfield"
|
|
39
|
+
:defaultfield="$parent.$parent.defaultfield" printName="非民用卡表购气使用查询"
|
|
40
|
+
:sumsmodel="$parent.$parent.sumsmodel" :sum-field="$parent.$parent.sumField" :page-sum="$parent.$parent.pageSum"
|
|
41
|
+
:start-date="$parent.$parent.startDate" :end-date="$parent.$parent.endDate"
|
|
42
|
+
></print-data-self>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</criteria>
|
|
47
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
|
|
48
|
+
<template partial='head'>
|
|
49
|
+
<tr>
|
|
50
|
+
<th>
|
|
51
|
+
<nobr>序号</nobr>
|
|
52
|
+
</th>
|
|
53
|
+
<th>
|
|
54
|
+
<nobr>用户编号</nobr>
|
|
55
|
+
</th>
|
|
56
|
+
<th>
|
|
57
|
+
<nobr>所属片区</nobr>
|
|
58
|
+
</th>
|
|
59
|
+
<th>
|
|
60
|
+
<nobr>用户名称</nobr>
|
|
61
|
+
</th>
|
|
62
|
+
<th>
|
|
63
|
+
<nobr>档案编号</nobr>
|
|
64
|
+
</th>
|
|
65
|
+
<th>
|
|
66
|
+
<nobr>单价</nobr>
|
|
67
|
+
</th>
|
|
68
|
+
<th>
|
|
69
|
+
<nobr>户总购气量</nobr>
|
|
70
|
+
</th>
|
|
71
|
+
<th>
|
|
72
|
+
<nobr>本月购气量</nobr>
|
|
73
|
+
</th>
|
|
74
|
+
<th>
|
|
75
|
+
<nobr>补气量</nobr>
|
|
76
|
+
</th>
|
|
77
|
+
<th>
|
|
78
|
+
<nobr>上月表数</nobr>
|
|
79
|
+
</th>
|
|
80
|
+
<th>
|
|
81
|
+
<nobr>本月表数</nobr>
|
|
82
|
+
</th>
|
|
83
|
+
<th>
|
|
84
|
+
<nobr>表余量</nobr>
|
|
85
|
+
</th>
|
|
86
|
+
<th>
|
|
87
|
+
<nobr>用气量</nobr>
|
|
88
|
+
</th>
|
|
89
|
+
<th>
|
|
90
|
+
<nobr>备注</nobr>
|
|
91
|
+
</th>
|
|
92
|
+
</tr>
|
|
93
|
+
</template>
|
|
94
|
+
<template partial='body'>
|
|
95
|
+
<td style="text-align:center">
|
|
96
|
+
<nobr>{{$index+1}}</nobr>
|
|
97
|
+
</td>
|
|
98
|
+
<td style="text-align: center;">
|
|
99
|
+
<nobr>{{row.f_userinfo_code}}</nobr>
|
|
100
|
+
</td>
|
|
101
|
+
<td style="text-align: center;">
|
|
102
|
+
<nobr>{{row.f_slice_area}}</nobr>
|
|
103
|
+
</td>
|
|
104
|
+
<td style="text-align: center;">
|
|
105
|
+
<nobr>{{row.f_user_name}}</nobr>
|
|
106
|
+
</td>
|
|
107
|
+
<td style="text-align: center;">
|
|
108
|
+
<nobr>{{row.f_olduserinfo_code}}</nobr>
|
|
109
|
+
</td>
|
|
110
|
+
<td style="text-align: center;">
|
|
111
|
+
<nobr>{{row.f_price}}</nobr>
|
|
112
|
+
</td>
|
|
113
|
+
<td style="text-align: center;">
|
|
114
|
+
<nobr>{{row.zgougas}}</nobr>
|
|
115
|
+
</td>
|
|
116
|
+
<td style="text-align: center;">
|
|
117
|
+
<nobr>{{row.gougas}}</nobr>
|
|
118
|
+
</td>
|
|
119
|
+
<td style="text-align: center;">
|
|
120
|
+
<nobr>{{row.bugas}}</nobr>
|
|
121
|
+
</td>
|
|
122
|
+
<td style="text-align: center;">
|
|
123
|
+
<nobr>{{row.lastgas}}</nobr>
|
|
124
|
+
</td>
|
|
125
|
+
<td style="text-align: center;">
|
|
126
|
+
<nobr>{{row.thisgas}}</nobr>
|
|
127
|
+
</td>
|
|
128
|
+
<td style="text-align: center;">
|
|
129
|
+
<nobr>{{row.yugas}}</nobr>
|
|
130
|
+
</td>
|
|
131
|
+
<td style="text-align: center;">
|
|
132
|
+
<nobr>{{row.yonggas}}</nobr>
|
|
133
|
+
</td>
|
|
134
|
+
<td style="text-align: center;">
|
|
135
|
+
<nobr>{{row.beizhu}}</nobr>
|
|
136
|
+
</td>
|
|
137
|
+
</template>
|
|
138
|
+
<template partial='foot'></template>
|
|
139
|
+
</data-grid>
|
|
140
|
+
</criteria-paged>
|
|
141
|
+
<table class="table-hover">
|
|
142
|
+
<tr style="position: relative" class="table-bordered">
|
|
143
|
+
<td
|
|
144
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold" >
|
|
145
|
+
报表统计时间
|
|
146
|
+
</td>
|
|
147
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-if="startDate==endDate">
|
|
148
|
+
{{startDate}}
|
|
149
|
+
</td>
|
|
150
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-else>
|
|
151
|
+
{{startDate+" 至 "+endDate}}
|
|
152
|
+
</td>
|
|
153
|
+
</tr>
|
|
154
|
+
<tr style="position: relative" class="table-bordered">
|
|
155
|
+
<td
|
|
156
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
157
|
+
汇总信息
|
|
158
|
+
</td>
|
|
159
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
160
|
+
户总购气量汇总: {{sumsmodel.zgougas.toFixed(2)}}
|
|
161
|
+
</td>
|
|
162
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
163
|
+
本月购气量汇总: {{sumsmodel.gougas.toFixed(2)}}
|
|
164
|
+
</td>
|
|
165
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
166
|
+
补气汇总: {{sumsmodel.bugas.toFixed(2)}}
|
|
167
|
+
</td>
|
|
168
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
169
|
+
表余量汇总: {{sumsmodel.yugas.toFixed(2)}}
|
|
170
|
+
</td>
|
|
171
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
172
|
+
用气量汇总: {{sumsmodel.yonggas.toFixed(2)}}
|
|
173
|
+
</td>
|
|
174
|
+
</tr>
|
|
175
|
+
</table>
|
|
176
|
+
</div>
|
|
177
|
+
</div>
|
|
178
|
+
</div>
|
|
179
|
+
</template>
|
|
180
|
+
<script>
|
|
181
|
+
import {PagedList, HttpResetClass} from 'vue-client'
|
|
182
|
+
import defaultPrint from '../../components/sale/config/DefaultPrint'
|
|
183
|
+
import exportConfig from './exportConfig'
|
|
184
|
+
import PrintDataSelf from '../../components/sale/common/PrintDataSelf'
|
|
185
|
+
|
|
186
|
+
let readySomething = async function (self) {
|
|
187
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
|
|
188
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
189
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
190
|
+
}
|
|
191
|
+
export default {
|
|
192
|
+
title: '非民用购气使用查询',
|
|
193
|
+
props: ['data'],
|
|
194
|
+
data() {
|
|
195
|
+
return {
|
|
196
|
+
depresid: [],
|
|
197
|
+
userresid: [],
|
|
198
|
+
f_orgid: this.$login.f.orgid,
|
|
199
|
+
f_depid: this.$login.f.depids,
|
|
200
|
+
f_operatorid: this.$login.f.id,
|
|
201
|
+
operatorid: [],
|
|
202
|
+
depid: [],
|
|
203
|
+
orgname: '',
|
|
204
|
+
depname: [],
|
|
205
|
+
operatorname: '',
|
|
206
|
+
orgCondtionStr: '1=1',
|
|
207
|
+
data: {},
|
|
208
|
+
other:[],
|
|
209
|
+
footer:[],
|
|
210
|
+
model: new PagedList('api/af-revenue/sql/feimin_style_kl', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate', f_orgid: 'this.model.f_orgid'},{
|
|
211
|
+
zgougas:0,
|
|
212
|
+
gougas:0,
|
|
213
|
+
bugas:0,
|
|
214
|
+
yugas:0,
|
|
215
|
+
yonggas:0
|
|
216
|
+
}),
|
|
217
|
+
gasproperties:[],
|
|
218
|
+
show:false,
|
|
219
|
+
rowdata:{},
|
|
220
|
+
residentialArea: [],
|
|
221
|
+
modelval: [],
|
|
222
|
+
startDate:"",
|
|
223
|
+
endDate:"",
|
|
224
|
+
inputtouPerson: [],
|
|
225
|
+
printshow: false,
|
|
226
|
+
all: false,
|
|
227
|
+
fields: {},
|
|
228
|
+
thead: '',
|
|
229
|
+
tfoot: '',
|
|
230
|
+
|
|
231
|
+
// 下拉框
|
|
232
|
+
|
|
233
|
+
//合计数据
|
|
234
|
+
sumsmodel: {},
|
|
235
|
+
sumField: {
|
|
236
|
+
'zgougas': '总购气量汇总', 'gougas': '本月购气量汇总','bugas': '补气汇总','yugas': '表余量汇总','yonggas': '用气量汇总'
|
|
237
|
+
},
|
|
238
|
+
pageSum: {
|
|
239
|
+
'zgougas': '0.00',
|
|
240
|
+
'gougas': '0.00',
|
|
241
|
+
'bugas': '0.00',
|
|
242
|
+
'yugas': '0.00',
|
|
243
|
+
'yonggas': '0.00'
|
|
244
|
+
},
|
|
245
|
+
defaultfield: [],
|
|
246
|
+
config: {
|
|
247
|
+
defaultPrint: ['f_userinfo_code', 'f_user_name']
|
|
248
|
+
},
|
|
249
|
+
batchmoneyShow:false
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
ready() {
|
|
253
|
+
readySomething(this).then(() => {
|
|
254
|
+
this.$emit('ready')
|
|
255
|
+
}).catch((error) => {
|
|
256
|
+
this.$emit('error', error)
|
|
257
|
+
})
|
|
258
|
+
},
|
|
259
|
+
methods: {
|
|
260
|
+
getotherfooter(){
|
|
261
|
+
// this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
262
|
+
// this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
263
|
+
this.other=[];
|
|
264
|
+
this.footer=[];
|
|
265
|
+
let exportdata = this.getCondition;
|
|
266
|
+
let otherInData=[];
|
|
267
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
268
|
+
let footerData=[],exportfield=this.getfield;
|
|
269
|
+
footerData.push("合计");
|
|
270
|
+
let self =this;
|
|
271
|
+
for(var field in self.sumsmodel){
|
|
272
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
273
|
+
}
|
|
274
|
+
this.footer.push(footerData);
|
|
275
|
+
this.other.push(otherInData);
|
|
276
|
+
},
|
|
277
|
+
search(){
|
|
278
|
+
this.$refs.paged.$refs.cri.search()
|
|
279
|
+
},
|
|
280
|
+
selfSearch(args) {
|
|
281
|
+
this.startDate=this.$refs.paged.$refs.cri.model.startDate.substring(0,10)
|
|
282
|
+
this.endDate=this.$refs.paged.$refs.cri.model.endDate.substring(0,10)
|
|
283
|
+
this.model.search(args.f_orgid, args.model)
|
|
284
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
285
|
+
},
|
|
286
|
+
getRes (obj) {
|
|
287
|
+
this.orgname = obj.res[0]
|
|
288
|
+
this.depresid = obj.resids
|
|
289
|
+
this.f_orgid = obj.resids
|
|
290
|
+
},
|
|
291
|
+
getdep (obj, val) {
|
|
292
|
+
this.depname = val
|
|
293
|
+
this.userresid = obj
|
|
294
|
+
this.f_depid = obj
|
|
295
|
+
},
|
|
296
|
+
getuser ( obj, val) {
|
|
297
|
+
this.operatorname = val[0]
|
|
298
|
+
this.f_operatorid = obj
|
|
299
|
+
},
|
|
300
|
+
stamp() {
|
|
301
|
+
this.all = false
|
|
302
|
+
//默认选择要打印的列
|
|
303
|
+
this.modelval = defaultPrint.config
|
|
304
|
+
this.fields = this.getfield
|
|
305
|
+
console.log('所有打印字段', this.fields)
|
|
306
|
+
this.printshow = true
|
|
307
|
+
this.put()
|
|
308
|
+
},
|
|
309
|
+
put() {
|
|
310
|
+
// 对Modelval进行排序
|
|
311
|
+
this.sortModelval()
|
|
312
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>非民用购气使用查询</th></tr><tr>`
|
|
313
|
+
for (let key of this.modelval) {
|
|
314
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
315
|
+
}
|
|
316
|
+
this.thead += '</tr>'
|
|
317
|
+
},
|
|
318
|
+
print() {
|
|
319
|
+
this.$refs.print.PrintAsFile()
|
|
320
|
+
this.printshow = false
|
|
321
|
+
},
|
|
322
|
+
dealmsg(val) {
|
|
323
|
+
console.log('---------------dealmsg')
|
|
324
|
+
this.rowdata=val
|
|
325
|
+
this.show=true
|
|
326
|
+
val.model = this.model.model
|
|
327
|
+
this.$dispatch('deal-msg', val)
|
|
328
|
+
},
|
|
329
|
+
close() {
|
|
330
|
+
this.printshow = false
|
|
331
|
+
this.all = false
|
|
332
|
+
},
|
|
333
|
+
// 对选择的列进行排序
|
|
334
|
+
sortModelval() {
|
|
335
|
+
let sortModel = []
|
|
336
|
+
Object.keys(this.fields).forEach((key) => {
|
|
337
|
+
if (this.modelval.includes(key)) {
|
|
338
|
+
sortModel.push(key)
|
|
339
|
+
}
|
|
340
|
+
})
|
|
341
|
+
this.modelval = sortModel
|
|
342
|
+
console.log('选择的打印的字段', this.modelval)
|
|
343
|
+
},
|
|
344
|
+
userTypeChange () {
|
|
345
|
+
this.gasproperties=[]
|
|
346
|
+
if(this.$refs.paged.$refs.criteria.model !==null) {
|
|
347
|
+
this.$refs.paged.$refs.criteria.model.f_gasproperties=''
|
|
348
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
|
|
349
|
+
}
|
|
350
|
+
else{
|
|
351
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
},
|
|
355
|
+
watch: {
|
|
356
|
+
'all'(val) {
|
|
357
|
+
if (val) {
|
|
358
|
+
this.modelval = this.bodyData
|
|
359
|
+
} else {
|
|
360
|
+
this.modelval = defaultPrint.config
|
|
361
|
+
this.put()
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
'modelval.length'() {
|
|
365
|
+
this.put()
|
|
366
|
+
},
|
|
367
|
+
sumsmodel:{
|
|
368
|
+
handler: function(val) {
|
|
369
|
+
this.getotherfooter();
|
|
370
|
+
},
|
|
371
|
+
deep: true
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
computed: {
|
|
375
|
+
getCondition() {
|
|
376
|
+
return {
|
|
377
|
+
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
378
|
+
endDate: this.$refs.paged.$refs.cri.model.endDate,
|
|
379
|
+
f_orgid: this.orgCondtionStr
|
|
380
|
+
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
},
|
|
384
|
+
getfield() {
|
|
385
|
+
return exportConfig.feimin_style
|
|
386
|
+
},
|
|
387
|
+
whetherpaies () {
|
|
388
|
+
return [
|
|
389
|
+
{label: '全部', value: ''},
|
|
390
|
+
{label: '已缴费', value: '是'},
|
|
391
|
+
{label: '未缴费', value: '否'}
|
|
392
|
+
]
|
|
393
|
+
},
|
|
394
|
+
usertypes() {
|
|
395
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
</script>
|
package/.npmignore
DELETED
package/build/.npmignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|