manage-client 3.2.24 → 3.2.25
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/dev-server.js +7 -9
- package/package.json +1 -1
- package/src/components/sale/businessquery/InspectListUser.vue +433 -433
- package/src/components/sale/config/exportConfig.js +8 -0
- package/src/components/webmeter/gasStatistics/GasStatistics.vue +467 -0
- package/src/components/webmeter/newwebmeter/ArrearageQuery.vue +307 -0
- package/src/components/webmeter/recharge/RechargeList.vue +0 -2
- package/src/components/webmeter/report/ReportList.vue +420 -434
- package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1029
- package/src/main.js +1 -1
- package/src/webmeterManage.js +6 -2
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main">
|
|
4
|
+
<div class="flex" v-if="!show">
|
|
5
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
+
<criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
|
|
7
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
+
<div class="row" >
|
|
9
|
+
<div class="col-sm-2">
|
|
10
|
+
<label class="font_normal_body">组织机构</label>
|
|
11
|
+
<res-select :initresid="$parent.$parent.org"
|
|
12
|
+
style="width:60%"
|
|
13
|
+
@res-select="$parent.$parent.getorg"
|
|
14
|
+
:is-mul=false
|
|
15
|
+
restype='organization'>
|
|
16
|
+
</res-select>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="col-sm-2">
|
|
19
|
+
<label class="font_normal_body">表 钢 号 </label>
|
|
20
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_meternumber" placeholder='表钢号'
|
|
21
|
+
condition="s.f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
|
|
22
|
+
>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="col-sm-2">
|
|
25
|
+
<label class="font_normal_body">客户编号</label>
|
|
26
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
|
|
27
|
+
condition="s.f_userinfo_code like '%{}%'" v-next-el='f_userinfo_code' v-el:meternumber
|
|
28
|
+
>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="col-sm-2">
|
|
31
|
+
<label class="font_normal_body">客户名称</label>
|
|
32
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'
|
|
33
|
+
condition="s.f_user_name like '%{}%'" v-next-el='userid' v-el:username>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<div class="span" style="float:right;margin-top:10px">
|
|
37
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
38
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
|
|
39
|
+
<export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
|
|
40
|
+
:field="$parent.$parent.getfield"
|
|
41
|
+
sqlurl="rs/logic/exportfile" sql-name="rechargeInstruct" template-name='欠费查询'
|
|
42
|
+
:choose-col="true"></export-excel>
|
|
43
|
+
<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>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
47
|
+
<div class="col-sm-2">
|
|
48
|
+
<label class="font_normal_body">客户地址</label>
|
|
49
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_address" placeholder='客户地址'
|
|
50
|
+
condition="s.f_address like '%{}%'" v-next-el='userid' v-el:username>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="col-sm-2 form-group">
|
|
53
|
+
<label class="font_normal_body">客户类型</label>
|
|
54
|
+
<v-select :value.sync="model.f_user_type"
|
|
55
|
+
@change="$parent.$parent.userTypeChange()"
|
|
56
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
57
|
+
condition="s.f_user_type = '{}'"
|
|
58
|
+
close-on-select></v-select>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="col-sm-2 form-group">
|
|
61
|
+
<label class="font_normal_body">用气性质</label>
|
|
62
|
+
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
63
|
+
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
64
|
+
condition="s.f_gasproperties = '{}'"
|
|
65
|
+
closfe-on-select></v-select>
|
|
66
|
+
</div>
|
|
67
|
+
<div class="col-sm-2 form-group">
|
|
68
|
+
<label class="font_normal_body">气表品牌</label>
|
|
69
|
+
<v-select :value.sync="model.f_meter_brand"
|
|
70
|
+
v-model="model.f_meter_brand"
|
|
71
|
+
:options="$parent.$parent.meterbrands"
|
|
72
|
+
condition="s.f_meter_brand = '{}'"
|
|
73
|
+
close-on-select></v-select>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="col-sm-2 form-group" >
|
|
76
|
+
<label class="font_normal_body" for="startDate">开始时间</label>
|
|
77
|
+
<datepicker id="startDate" placeholder="开始日期" style="width: 60%"
|
|
78
|
+
v-model="model.startDate"
|
|
79
|
+
:value.sync="model.startDate"
|
|
80
|
+
:disabled-days-of-Week="[]"
|
|
81
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
82
|
+
:show-reset-button="reset">
|
|
83
|
+
</datepicker>
|
|
84
|
+
</div>
|
|
85
|
+
<div class="col-sm-2 form-group" >
|
|
86
|
+
<label class="font_normal_body" for="endDate">结束时间</label>
|
|
87
|
+
<datepicker id="endDate" placeholder="结束日期" style="width: 60%"
|
|
88
|
+
v-model="model.endDate"
|
|
89
|
+
:value.sync="model.endDate"
|
|
90
|
+
:disabled-days-of-Week="[]"
|
|
91
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
92
|
+
:show-reset-button="reset">
|
|
93
|
+
</datepicker>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</criteria>
|
|
98
|
+
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
|
|
99
|
+
<template partial='head'>
|
|
100
|
+
<tr>
|
|
101
|
+
<th><nobr>客户编号</nobr></th>
|
|
102
|
+
<th><nobr>表号</nobr></th>
|
|
103
|
+
<th><nobr>客户姓名</nobr></th>
|
|
104
|
+
<th><nobr>客户地址</nobr></th>
|
|
105
|
+
|
|
106
|
+
<th><nobr>用户类型</nobr></th>
|
|
107
|
+
<th><nobr>用气性质</nobr></th>
|
|
108
|
+
<th><nobr>欠费金额</nobr></th>
|
|
109
|
+
<th><nobr>欠费气量</nobr></th>
|
|
110
|
+
</tr>
|
|
111
|
+
</template>
|
|
112
|
+
<template partial='body' partial='list'>
|
|
113
|
+
<tr >
|
|
114
|
+
<td style="text-align: left;"><nobr> <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr></td>
|
|
115
|
+
<td style="text-align: left;"><nobr>{{row.f_meternumber}}</nobr></td>
|
|
116
|
+
<td style="text-align: left;"><nobr>{{row.f_user_name}}</nobr></td>
|
|
117
|
+
<td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
|
|
118
|
+
|
|
119
|
+
<td style="text-align:center"><nobr>{{row.f_user_type}}</nobr></td>
|
|
120
|
+
<td style="text-align:center"><nobr>{{row.f_gasproperties}}</nobr></td>
|
|
121
|
+
<th style="text-align:center"><nobr>{{row.f_curbalance}}</nobr></th>
|
|
122
|
+
<th style="text-align:center"><nobr>{{row.f_oughtamount}}</nobr></th>
|
|
123
|
+
</tr>
|
|
124
|
+
</template>
|
|
125
|
+
<template partial='foot'></template>
|
|
126
|
+
</data-grid>
|
|
127
|
+
</criteria-paged>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
</template>
|
|
132
|
+
|
|
133
|
+
<script>
|
|
134
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
135
|
+
import exportConfig from '../../sale/config/exportConfig'
|
|
136
|
+
import plugins from '../../../plugins/GetLoginInfoService'
|
|
137
|
+
import defaultPrint from "../../sale/config/DefaultPrint";
|
|
138
|
+
import * as Util from '../../../Util'
|
|
139
|
+
|
|
140
|
+
let readySomething = async function (self) {
|
|
141
|
+
await self.$MagLoadParams.loadParam()
|
|
142
|
+
self.initParams()
|
|
143
|
+
// self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
|
|
144
|
+
}
|
|
145
|
+
export default {
|
|
146
|
+
title: '欠费查询',
|
|
147
|
+
data () {
|
|
148
|
+
return {
|
|
149
|
+
show:false,
|
|
150
|
+
org:[this.$login.f.orgid],
|
|
151
|
+
orgcondition: ' and s.f_orgid = ' + this.$login.f.orgid,
|
|
152
|
+
//f_filialeid: this.$login.f.f_orgid,
|
|
153
|
+
detaillist: [],
|
|
154
|
+
meterbrands: [],
|
|
155
|
+
prices: [],
|
|
156
|
+
gasproperties:[],
|
|
157
|
+
condition:'',
|
|
158
|
+
rowdata:{},
|
|
159
|
+
sumsmodel: {},
|
|
160
|
+
orgid:[this.$login.f.orgid],
|
|
161
|
+
criteriaShow:false,
|
|
162
|
+
orgCondtionStr: '',
|
|
163
|
+
model: new PagedList('rs/sql/arrearageQuery', 50,{
|
|
164
|
+
startDate: 'this.model.startDate',
|
|
165
|
+
endDate: 'this.model.endDate'
|
|
166
|
+
})
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
ready () {
|
|
170
|
+
readySomething(this).then(() => {
|
|
171
|
+
this.$emit('ready')
|
|
172
|
+
}).catch((error) => {
|
|
173
|
+
this.$emit('error', error)
|
|
174
|
+
})
|
|
175
|
+
this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),-1).substring(0,10) + ' 00:00:00'
|
|
176
|
+
this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),-1).substring(0,10) + ' 23:59:59'
|
|
177
|
+
this.$refs.paged.$refs.criteria.search()
|
|
178
|
+
},
|
|
179
|
+
methods: {
|
|
180
|
+
initParams() {
|
|
181
|
+
// 初始化气表品牌
|
|
182
|
+
let brandArr = []
|
|
183
|
+
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
184
|
+
let temp = {}
|
|
185
|
+
temp.label = item.label
|
|
186
|
+
temp.value = item.value.f_meter_brand
|
|
187
|
+
brandArr.push(temp)
|
|
188
|
+
})
|
|
189
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
190
|
+
//初始化气表价格
|
|
191
|
+
this.prices = this.$MagGetSaleParam.getPrices();
|
|
192
|
+
},
|
|
193
|
+
async updateParams() {
|
|
194
|
+
await this.$MagLoadParams.loadParam(this.f_filialeid)
|
|
195
|
+
this.initParams()
|
|
196
|
+
},
|
|
197
|
+
getorg(obj) {
|
|
198
|
+
if(plugins.convertToIn(obj)!==null&&plugins.convertToIn(obj)!==''){
|
|
199
|
+
this.orgcondition = " and s.f_orgid in " + plugins.convertToIn(obj)
|
|
200
|
+
}else{
|
|
201
|
+
this.orgcondition = " and s.f_orgid = " + this.$login.f.orgid
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
userTypeChange () {
|
|
205
|
+
this.gasproperties=[]
|
|
206
|
+
if(this.$refs.paged.$refs.criteria.model !==null) {
|
|
207
|
+
this.$refs.paged.$refs.criteria.model.f_gasproperties=''
|
|
208
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
|
|
209
|
+
}
|
|
210
|
+
else{
|
|
211
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
showdetail(val) {
|
|
215
|
+
console.log('24detail==', val)
|
|
216
|
+
if(val){
|
|
217
|
+
let detail = eval("("+val+")")
|
|
218
|
+
this.detaillist = detail
|
|
219
|
+
this.detail24 = true
|
|
220
|
+
}else{
|
|
221
|
+
console.log('无数据')
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
close() {
|
|
225
|
+
this.detail24 = false
|
|
226
|
+
},
|
|
227
|
+
hidden(){
|
|
228
|
+
this.criteriaShow = !this.criteriaShow
|
|
229
|
+
},
|
|
230
|
+
cancel() {
|
|
231
|
+
this.show = false
|
|
232
|
+
},
|
|
233
|
+
clearmsg () {
|
|
234
|
+
Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
|
|
235
|
+
this.$refs.paged.$refs.criteria.model[key] = []
|
|
236
|
+
})
|
|
237
|
+
},
|
|
238
|
+
getRes (obj) {
|
|
239
|
+
this.orgCondtionStr = condition
|
|
240
|
+
this.orgname = obj.orgnames[0]
|
|
241
|
+
this.depname = obj.depnames[0]
|
|
242
|
+
},
|
|
243
|
+
showmsg(obj){
|
|
244
|
+
this.rowdata=obj
|
|
245
|
+
this.show=true
|
|
246
|
+
},
|
|
247
|
+
|
|
248
|
+
search (args) {
|
|
249
|
+
args.condition = `${args.condition}`+this.orgcondition
|
|
250
|
+
console.log(args.condition+"args.condition")
|
|
251
|
+
this.condition = args.condition
|
|
252
|
+
this.model.search(args.condition, args.model)
|
|
253
|
+
// console.log(this.$refs.paged.$refs.grid.model.sums+"--this.$refs.paged.$refs.grid.model.sums")
|
|
254
|
+
// this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
255
|
+
// args.condition = `${args.condition}`
|
|
256
|
+
// if (this.orgcondition)
|
|
257
|
+
// args.condition = `${args.condition}` + this.orgcondition
|
|
258
|
+
// else
|
|
259
|
+
// args.condition = `${args.condition}` + 'and m.f_orgid in ' + '(' + this.$login.f.orgid + ')'
|
|
260
|
+
// this.model.search(args.condition, args.model)
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
watch: {
|
|
264
|
+
'orgCondtionStr'(val) {
|
|
265
|
+
let res = val.match(/'(.*?)'/)
|
|
266
|
+
console.log('正则提取:',res && res[1])
|
|
267
|
+
if (res) {
|
|
268
|
+
this.f_filialeid = res[1]
|
|
269
|
+
// this.updateParams()
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
computed: {
|
|
274
|
+
getfield () {
|
|
275
|
+
return exportConfig.ArrearageConfig
|
|
276
|
+
},
|
|
277
|
+
usertypes() {
|
|
278
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
279
|
+
},
|
|
280
|
+
getCondition () {
|
|
281
|
+
var con = ""
|
|
282
|
+
if (this.orgCondtionStr) {
|
|
283
|
+
con = `${this.$refs.paged.$refs.criteria.condition} and s.f_orgid in (${this.orgCondtionStr})`
|
|
284
|
+
}
|
|
285
|
+
else {
|
|
286
|
+
con = `${this.$refs.paged.$refs.criteria.condition}and s.f_orgid in ('${this.$login.f.orgid}' )`
|
|
287
|
+
}
|
|
288
|
+
return {
|
|
289
|
+
condition: con
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
</script>
|
|
295
|
+
|
|
296
|
+
<style>
|
|
297
|
+
.mystyle{
|
|
298
|
+
margin-left:80px;
|
|
299
|
+
}
|
|
300
|
+
.datapanel {
|
|
301
|
+
color: #333;
|
|
302
|
+
background-color: white;
|
|
303
|
+
box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
|
|
304
|
+
padding: 10px 10px 10px 10px;
|
|
305
|
+
border-radius:15px;
|
|
306
|
+
}
|
|
307
|
+
</style>
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
:is-mul=false
|
|
15
15
|
restype='organization'>
|
|
16
16
|
</res-select>
|
|
17
|
-
|
|
18
17
|
</div>
|
|
19
18
|
<div class="col-sm-2">
|
|
20
19
|
<label class="font_normal_body">表 钢 号 </label>
|
|
@@ -237,7 +236,6 @@
|
|
|
237
236
|
}else{
|
|
238
237
|
this.orgcondition = " and s.f_orgid = " + this.$login.f.orgid
|
|
239
238
|
}
|
|
240
|
-
|
|
241
239
|
},
|
|
242
240
|
userTypeChange () {
|
|
243
241
|
this.gasproperties=[]
|