manage-client 4.0.75 → 4.0.76
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/jingyang/config/exportConfig.js +5 -1
- package/src/filiale/jingyang/sale.js +4 -0
- package/src/filiale/jingyang/usergas.vue +355 -0
- package/src/filiale/yuncheng/FmyGasDeviceQuery.vue +844 -0
- package/src/filiale/yuncheng/GasDeviceQuery.vue +981 -0
- package/src/filiale/yuncheng/RecordInfoQuery.vue +1 -1
- package/src/filiale/yuncheng/sale.js +8 -0
- package/.gradle/8.5/checksums/checksums.lock +0 -0
- package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/8.5/dependencies-accessors/gc.properties +0 -0
- package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
- package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
- package/.gradle/8.5/fileChanges/last-build.bin +0 -0
- package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
- package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
- package/.gradle/8.5/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/file-system.probe +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
package/package.json
CHANGED
|
@@ -1372,8 +1372,12 @@ export default {
|
|
|
1372
1372
|
'f_operator': '操作员名称'
|
|
1373
1373
|
},
|
|
1374
1374
|
usergas1: {
|
|
1375
|
+
'f_userinfo_code': '用户编号',
|
|
1376
|
+
'f_meternumber': '表号',
|
|
1375
1377
|
'f_user_name': '用户名称',
|
|
1376
|
-
'
|
|
1378
|
+
'f_address': '用户地址',
|
|
1379
|
+
'f_idnumber': '身份证号',
|
|
1380
|
+
'f_price_name': '气价名称',
|
|
1377
1381
|
'a': '售气量',
|
|
1378
1382
|
'b': '金额'
|
|
1379
1383
|
},
|
|
@@ -7,4 +7,8 @@ export default function () {
|
|
|
7
7
|
Vue.component('charge-query', (resolve) => { require(['./ChargeQuery'], resolve) })
|
|
8
8
|
// 物联网表用气量统计表新
|
|
9
9
|
Vue.component('new-use-gas-statistics', (resolve) => { require(['./NewGasStatistics'], resolve) })
|
|
10
|
+
// 用户用气收费情况
|
|
11
|
+
Vue.component('usergas', (resolve) => {
|
|
12
|
+
require(['./usergas'], resolve)
|
|
13
|
+
})
|
|
10
14
|
}
|
|
@@ -0,0 +1,355 @@
|
|
|
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-inline 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 HH:mm:ss'"
|
|
15
|
+
:show-reset-button="true"
|
|
16
|
+
>
|
|
17
|
+
</datepicker>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="col-sm-2 form-group">
|
|
20
|
+
<label for="endDate" class="font_normal_body">结束日期</label>
|
|
21
|
+
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
22
|
+
v-model="model.endDate"
|
|
23
|
+
:value.sync="model.endDate"
|
|
24
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
25
|
+
:show-reset-button="true"
|
|
26
|
+
>
|
|
27
|
+
</datepicker>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="col-sm-2 form-group">
|
|
30
|
+
<label class="font_normal_body">客户类型</label>
|
|
31
|
+
<v-select :value.sync="model.f_user_type"
|
|
32
|
+
:options='$parent.$parent.usertypes'
|
|
33
|
+
@change="$parent.$parent.userTypeChange()"
|
|
34
|
+
placeholder='请选择' v-model="model.f_user_type"
|
|
35
|
+
condition="f_user_type = '{}'"
|
|
36
|
+
close-on-select></v-select>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="col-sm-2 form-group">
|
|
39
|
+
<label class="font_normal_body">用户编号</label>
|
|
40
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
41
|
+
condition="f_userinfo_code = '{}' " placeholder="客户编号">
|
|
42
|
+
</div>
|
|
43
|
+
<div class="col-sm-2 form-group">
|
|
44
|
+
<label class="font_normal_body">表号</label>
|
|
45
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
|
|
46
|
+
condition="f_meternumber = '{}' " placeholder="表号">
|
|
47
|
+
</div>
|
|
48
|
+
<div class="col-sm-2 form-group">
|
|
49
|
+
<label class="font_normal_body">用户名称</label>
|
|
50
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
51
|
+
condition="f_user_name = '{}'" placeholder="客户名称">
|
|
52
|
+
</div>
|
|
53
|
+
<div class="span" style="float:right;">
|
|
54
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
55
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
56
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
57
|
+
:field="$parent.$parent.getfield"
|
|
58
|
+
:footer="$parent.$parent.footer"
|
|
59
|
+
:header="$parent.$parent.other"
|
|
60
|
+
sqlurl="api/af-revenue/logic/openapi/exportfile"
|
|
61
|
+
sql-name="usergaszong"
|
|
62
|
+
template-name='用户用气费用表'
|
|
63
|
+
:choose-col="true"></export-excel>
|
|
64
|
+
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
|
|
65
|
+
:defaultfield="$parent.$parent.defaultfield"
|
|
66
|
+
titletable="用户用气费用表"
|
|
67
|
+
:sumsmodel="$parent.$parent.sumsmodel"></print-data>
|
|
68
|
+
<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>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
72
|
+
<res-select-group :initres="$parent.$parent.initres" :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
73
|
+
<div class="col-sm-2 form-group">
|
|
74
|
+
<label class="font_normal_body">身份证号</label>
|
|
75
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"
|
|
76
|
+
condition="u.f_idnumber = '{}'" placeholder="身份证号">
|
|
77
|
+
</div>
|
|
78
|
+
<div class="col-sm-2 form-group">
|
|
79
|
+
<label class="font_normal_body">用户地址</label>
|
|
80
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_address"
|
|
81
|
+
condition="f_address = '{}'" placeholder="用户地址">
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
</criteria>
|
|
86
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
|
|
87
|
+
<template partial='head'>
|
|
88
|
+
<tr>
|
|
89
|
+
<th><nobr>用户编号</nobr></th>
|
|
90
|
+
<th><nobr>表号</nobr></th>
|
|
91
|
+
<th><nobr>用户地址</nobr></th>
|
|
92
|
+
<th><nobr>身份证号</nobr></th>
|
|
93
|
+
<th><nobr>用户名称</nobr></th>
|
|
94
|
+
<th><nobr>气价名称</nobr></th>
|
|
95
|
+
<th><nobr>售气量</nobr></th>
|
|
96
|
+
<th><nobr>金额</nobr></th>
|
|
97
|
+
</tr>
|
|
98
|
+
</template>
|
|
99
|
+
<template partial='body'>
|
|
100
|
+
<td style="text-align: center;">
|
|
101
|
+
<nobr>{{row.f_userinfo_code}}</nobr>
|
|
102
|
+
</td>
|
|
103
|
+
<td style="text-align: center;">
|
|
104
|
+
<nobr>{{row.f_meternumber}}</nobr>
|
|
105
|
+
</td>
|
|
106
|
+
<td style="text-align: center;">
|
|
107
|
+
<nobr>{{row.f_address}}</nobr>
|
|
108
|
+
</td>
|
|
109
|
+
<td style="text-align: center;">
|
|
110
|
+
<nobr>{{row.f_idnumber}}</nobr>
|
|
111
|
+
</td>
|
|
112
|
+
<td style="text-align: center;">
|
|
113
|
+
<nobr>{{row.f_user_name}}</nobr>
|
|
114
|
+
</td>
|
|
115
|
+
<td style="text-align: center;">
|
|
116
|
+
<nobr>{{row.f_price_name}}</nobr>
|
|
117
|
+
</td>
|
|
118
|
+
<td style="text-align: center;">
|
|
119
|
+
<nobr>{{row.a}}</nobr>
|
|
120
|
+
</td>
|
|
121
|
+
<td style="text-align: center;">
|
|
122
|
+
<nobr>{{row.b}}</nobr>
|
|
123
|
+
</td>
|
|
124
|
+
</template>
|
|
125
|
+
<template partial='foot'></template>
|
|
126
|
+
</data-grid>
|
|
127
|
+
</criteria-paged>
|
|
128
|
+
<table class="table-hover">
|
|
129
|
+
<tr style="position: relative" class="table-bordered">
|
|
130
|
+
<td
|
|
131
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
132
|
+
汇总信息
|
|
133
|
+
</td>
|
|
134
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
135
|
+
累计售气量合计: {{sumsmodel.a}}
|
|
136
|
+
</td>
|
|
137
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
138
|
+
累计金额合计: {{sumsmodel.b}}
|
|
139
|
+
</td>
|
|
140
|
+
</tr>
|
|
141
|
+
</table>
|
|
142
|
+
</div>
|
|
143
|
+
<div v-if="show">
|
|
144
|
+
<user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
</template>
|
|
149
|
+
<script>
|
|
150
|
+
import { PagedList } from 'vue-client'
|
|
151
|
+
import defaultPrint from '../config/DefaultPrint'
|
|
152
|
+
import exportConfig from './config/exportConfig.js'
|
|
153
|
+
let readySomething = async function(self) {
|
|
154
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
155
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
|
|
156
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
157
|
+
await self.$MagLoadParams.loadParam()
|
|
158
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
159
|
+
}
|
|
160
|
+
export default {
|
|
161
|
+
title: '用户用气查询',
|
|
162
|
+
name: 'userags',
|
|
163
|
+
data () {
|
|
164
|
+
return {
|
|
165
|
+
defaultfield: [],
|
|
166
|
+
config: {
|
|
167
|
+
defaultPrint: ['f_price','f_user_type']
|
|
168
|
+
},
|
|
169
|
+
model: new PagedList('api/af-revenue/sql/usergaszong', 30, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
|
|
170
|
+
a: 0,
|
|
171
|
+
b: 0,
|
|
172
|
+
}),
|
|
173
|
+
other: [],
|
|
174
|
+
footer: [],
|
|
175
|
+
gasproperties:[],
|
|
176
|
+
show:false,
|
|
177
|
+
rowdata:{},
|
|
178
|
+
criteriaShow: false,
|
|
179
|
+
orgCondtionStr: '',
|
|
180
|
+
modelval: [],
|
|
181
|
+
printshow: false,
|
|
182
|
+
all: false,
|
|
183
|
+
fields: {},
|
|
184
|
+
thead: '',
|
|
185
|
+
tfoot: '',
|
|
186
|
+
//合计数据
|
|
187
|
+
sumsmodel: {},
|
|
188
|
+
f_filialeid: this.$login.f.f_orgid,
|
|
189
|
+
f_orgid: this.$login.f.orgid,
|
|
190
|
+
f_depid: this.$login.f.depids,
|
|
191
|
+
f_operatorid: this.$login.f.id
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
ready () {
|
|
195
|
+
console.log('选择的打印的字段')
|
|
196
|
+
console.log('hhhhhhhhh'+ this.$login.f.orgid)
|
|
197
|
+
// readySomething(this)
|
|
198
|
+
readySomething(this).then(() => {
|
|
199
|
+
this.$emit('ready')
|
|
200
|
+
}).catch((error) => {
|
|
201
|
+
this.$emit('error', error)
|
|
202
|
+
})
|
|
203
|
+
},
|
|
204
|
+
methods: {
|
|
205
|
+
getotherfooter() {
|
|
206
|
+
// this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
207
|
+
// this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
208
|
+
this.other = [];
|
|
209
|
+
this.footer = [];
|
|
210
|
+
// let exportdata = this.getCondition;
|
|
211
|
+
let otherInData = [];
|
|
212
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
213
|
+
let footerData = [], exportfield = this.getfield;
|
|
214
|
+
footerData.push("合计");
|
|
215
|
+
let self = this;
|
|
216
|
+
for (var field in self.sumsmodel) {
|
|
217
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
218
|
+
}
|
|
219
|
+
this.footer.push(footerData);
|
|
220
|
+
this.other.push(otherInData);
|
|
221
|
+
let date = []
|
|
222
|
+
date.push(`起始时间:${this.$refs.paged.$refs.cri.model.startDate}`)
|
|
223
|
+
date.push(`终止时间:${this.$refs.paged.$refs.cri.model.endDate}`)
|
|
224
|
+
this.other.push(date)
|
|
225
|
+
},
|
|
226
|
+
userTypeChange () {
|
|
227
|
+
this.gasproperties=[]
|
|
228
|
+
if(this.$refs.paged.$refs.cri.model !==null) {
|
|
229
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties=''
|
|
230
|
+
|
|
231
|
+
console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
232
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
233
|
+
}
|
|
234
|
+
else{
|
|
235
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
search(){
|
|
239
|
+
this.$refs.paged.$refs.cri.search()
|
|
240
|
+
},
|
|
241
|
+
cancel() {
|
|
242
|
+
this.show = false
|
|
243
|
+
},
|
|
244
|
+
selfSearch(args) {
|
|
245
|
+
args.condition = `${args.condition} ` + this.orgCondtionStr
|
|
246
|
+
this.model.search(args.condition, args.model)
|
|
247
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
248
|
+
},
|
|
249
|
+
clear() {
|
|
250
|
+
//清空部门和人员
|
|
251
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
252
|
+
//部门和人员变为全选
|
|
253
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
254
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
255
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
256
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
257
|
+
})
|
|
258
|
+
},
|
|
259
|
+
show() {
|
|
260
|
+
this.criteriaShow = true
|
|
261
|
+
},
|
|
262
|
+
hidden() {
|
|
263
|
+
this.criteriaShow = !this.criteriaShow
|
|
264
|
+
},
|
|
265
|
+
showmsg(obj){
|
|
266
|
+
this.rowdata=obj
|
|
267
|
+
this.show=true
|
|
268
|
+
},
|
|
269
|
+
getRes(condition,obj) {
|
|
270
|
+
this.orgCondtionStr = condition
|
|
271
|
+
this.orgname = obj.orgnames[0]
|
|
272
|
+
this.depname = obj.depnames[0]
|
|
273
|
+
},
|
|
274
|
+
put() {
|
|
275
|
+
// 对Modelval进行排序
|
|
276
|
+
this.sortModelval()
|
|
277
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
|
|
278
|
+
for (let key of this.modelval) {
|
|
279
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
280
|
+
}
|
|
281
|
+
this.thead += '</tr>'
|
|
282
|
+
},
|
|
283
|
+
print() {
|
|
284
|
+
this.$refs.print.PrintAsFile()
|
|
285
|
+
this.printshow = false
|
|
286
|
+
},
|
|
287
|
+
dealmsg(val) {
|
|
288
|
+
this.rowdata=val
|
|
289
|
+
this.show=true
|
|
290
|
+
val.model = this.model.model
|
|
291
|
+
this.$dispatch('deal-msg', val)
|
|
292
|
+
},
|
|
293
|
+
close() {
|
|
294
|
+
this.printshow = false
|
|
295
|
+
this.all = false
|
|
296
|
+
},
|
|
297
|
+
// 对选择的列进行排序
|
|
298
|
+
sortModelval() {
|
|
299
|
+
let sortModel = []
|
|
300
|
+
Object.keys(this.fields).forEach((key) => {
|
|
301
|
+
if (this.modelval.includes(key)) {
|
|
302
|
+
sortModel.push(key)
|
|
303
|
+
}
|
|
304
|
+
})
|
|
305
|
+
this.modelval = sortModel
|
|
306
|
+
console.log('选择的打印的字段', this.modelval)
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
computed: {
|
|
310
|
+
getCondition() {
|
|
311
|
+
return {
|
|
312
|
+
condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
|
|
313
|
+
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
314
|
+
endDate: this.$refs.paged.$refs.cri.model.endDate
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
getfield() {
|
|
318
|
+
return exportConfig.usergas1
|
|
319
|
+
},
|
|
320
|
+
usertypes() {
|
|
321
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
322
|
+
},
|
|
323
|
+
},
|
|
324
|
+
events: {
|
|
325
|
+
|
|
326
|
+
},
|
|
327
|
+
watch: {
|
|
328
|
+
'all'(val) {
|
|
329
|
+
if (val) {
|
|
330
|
+
this.modelval = this.bodyData
|
|
331
|
+
} else {
|
|
332
|
+
this.modelval = defaultPrint.config
|
|
333
|
+
this.put()
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
'modelval.length'() {
|
|
337
|
+
this.put()
|
|
338
|
+
},
|
|
339
|
+
sumsmodel: {
|
|
340
|
+
handler: function (val) {
|
|
341
|
+
this.getotherfooter();
|
|
342
|
+
},
|
|
343
|
+
deep: true
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
</script>
|
|
348
|
+
<style>
|
|
349
|
+
.datapanel {
|
|
350
|
+
color: #333;
|
|
351
|
+
background-color: white;
|
|
352
|
+
padding: 10px 20px;
|
|
353
|
+
border-radius:15px;
|
|
354
|
+
}
|
|
355
|
+
</style>
|