manage-client 3.2.273 → 3.2.275
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
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>
|
|
@@ -147,7 +147,11 @@ export default {
|
|
|
147
147
|
setMoney (arrparams, moneydata) {
|
|
148
148
|
console.log('进入组件')
|
|
149
149
|
let option = {
|
|
150
|
-
color: ['#
|
|
150
|
+
color: ['#894BE5', '#FFA500',
|
|
151
|
+
'#FF00A1', '#00BFFF',
|
|
152
|
+
'#00FFC8', '#FF0000',
|
|
153
|
+
'#FFE400', '#9FDB1D',
|
|
154
|
+
'#165DFF', '#00FF2A'],
|
|
151
155
|
title: [
|
|
152
156
|
{
|
|
153
157
|
text: '',
|