manage-client-xy 3.2.29 → 3.2.30
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 +2 -2
- package/package.json +1 -1
- package/src/components/sale/businessquery/AreaGeneralQuery.vue +715 -715
- package/src/components/sale/businessquery/CMHGasQuery.vue +441 -441
- package/src/components/sale/businessquery/ChangeMeterQuery.vue +659 -659
- package/src/components/sale/businessquery/ChangeUserQuery.vue +403 -403
- package/src/components/sale/businessquery/ChargeQuery.vue +1027 -1027
- package/src/components/sale/businessquery/DisableQuery.vue +433 -433
- package/src/components/sale/businessquery/EnableQuery.vue +422 -422
- package/src/components/sale/businessquery/FMYGasQuery.vue +440 -440
- package/src/components/sale/businessquery/FillCardQuery.vue +522 -522
- package/src/components/sale/businessquery/FillGasQuery.vue +506 -506
- package/src/components/sale/businessquery/HandplanQuery.vue +728 -728
- package/src/components/sale/businessquery/LogQuery.vue +301 -301
- package/src/components/sale/businessquery/NewAccountQuery.vue +518 -518
- package/src/components/sale/businessquery/OtherChargeQuery.vue +432 -432
- package/src/components/sale/businessquery/RecordQuery.vue +399 -399
- package/src/components/sale/businessquery/ResidentialQuery.vue +417 -417
- package/src/components/sale/businessquery/ReverseQuery.vue +459 -459
- package/src/components/sale/businessquery/SellingHand.vue +408 -408
- package/src/components/sale/businessquery/TransferQuery.vue +589 -589
- package/src/components/sale/businessquery/cancelAccountQuery.vue +518 -518
- package/src/components/sale/filesquery/UserQuery.vue +796 -796
|
@@ -1,408 +1,408 @@
|
|
|
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 class="font_normal_body">客户编号</label>
|
|
11
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
12
|
-
condition="f_userinfo_code = '{}' " placeholder="客户编号">
|
|
13
|
-
</div>
|
|
14
|
-
<div class="col-sm-2 form-group">
|
|
15
|
-
<label class="font_normal_body">收费票据id</label>
|
|
16
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.f_bill_sell_id"
|
|
17
|
-
condition="f_bill_sell_id = '{}' " placeholder="票据id">
|
|
18
|
-
</div>
|
|
19
|
-
<div class="col-sm-2 form-group">
|
|
20
|
-
<label for="startDate" class="font_normal_body">开始日期</label>
|
|
21
|
-
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
22
|
-
v-model="model.startDate"
|
|
23
|
-
:value.sync="model.startDate"
|
|
24
|
-
:format="'yyyy-MM-dd'"
|
|
25
|
-
:show-reset-button="true"
|
|
26
|
-
condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
|
|
27
|
-
</datepicker>
|
|
28
|
-
</div>
|
|
29
|
-
<div class="col-sm-2 form-group">
|
|
30
|
-
<label for="endDate" class="font_normal_body">结束日期</label>
|
|
31
|
-
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
32
|
-
v-model="model.endDate"
|
|
33
|
-
:value.sync="model.endDate"
|
|
34
|
-
:format="'yyyy-MM-dd'"
|
|
35
|
-
:show-reset-button="true"
|
|
36
|
-
condition="f_operate_date <= to_date('{} 23:59:59','yyyy-mm-dd hh24:mi:ss')">
|
|
37
|
-
</datepicker>
|
|
38
|
-
</div>
|
|
39
|
-
|
|
40
|
-
<div class="span" style="float:right;">
|
|
41
|
-
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
42
|
-
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
43
|
-
|
|
44
|
-
<export-excel :data="$parent.$parent.getCondition"
|
|
45
|
-
:field="$parent.$parent.getfield"
|
|
46
|
-
sqlurl="rs/logic/exportfile" sql-name="getSellingHand" template-name='收费抄表导出'
|
|
47
|
-
v-if ="$parent.$parent.jurisdiction.includes('excel导出')"
|
|
48
|
-
:choose-col="true"></export-excel>
|
|
49
|
-
<print-data :model="$parent.model" :field="$parent.$parent.getfield"
|
|
50
|
-
:defaultfield="$parent.$parent.defaultfield" print-name="收费抄表打印"
|
|
51
|
-
:sumsmodel="$parent.$parent.sumsmodel"></print-data>
|
|
52
|
-
<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>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
<div class="row">
|
|
56
|
-
<res-select-group style="col-sm-2 form-group" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
57
|
-
<div class="col-sm-2 form-group">
|
|
58
|
-
<label for="f_area_id" class="font_normal_body">小区编码</label>
|
|
59
|
-
<input id="f_area_id" type="text" style="width:60%" class="input_search" v-model="model.f_area_id"
|
|
60
|
-
condition="f_area_id = '{}'" placeholder='小区编码'>
|
|
61
|
-
</div>
|
|
62
|
-
<div class="col-sm-2 form-group">
|
|
63
|
-
<label class="font_normal_body"> 小区 </label>
|
|
64
|
-
<v-select :value.sync="model.f_residential_area"
|
|
65
|
-
class="select_list select"
|
|
66
|
-
enter-push
|
|
67
|
-
multiple = "true"
|
|
68
|
-
v-model="model.f_residential_area"
|
|
69
|
-
style="width: 60%"
|
|
70
|
-
:options='$parent.$parent.residentialArea' placeholder='选择小区'
|
|
71
|
-
close-on-select>
|
|
72
|
-
</v-select>
|
|
73
|
-
</div>
|
|
74
|
-
</div>
|
|
75
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
76
|
-
<div class="col-sm-2 form-group">
|
|
77
|
-
<label class="font_normal_body">收费状态</label>
|
|
78
|
-
<v-select :value.sync="model.f_state"
|
|
79
|
-
v-model="model.f_state"
|
|
80
|
-
:options='$parent.$parent.charge_state' placeholder='请选择'
|
|
81
|
-
condition="f_state = '{}'"
|
|
82
|
-
close-on-select></v-select>
|
|
83
|
-
</div>
|
|
84
|
-
<div class="col-sm-2 form-group">
|
|
85
|
-
<label class="font_normal_body">房产地址</label>
|
|
86
|
-
<input class="input_search" condition="f_house_address = '{}'"
|
|
87
|
-
placeholder='房产地址'
|
|
88
|
-
style="width:60%" type="text" v-model="model.f_house_address">
|
|
89
|
-
</div>
|
|
90
|
-
<div class="col-sm-2 form-group">
|
|
91
|
-
<label class="font_normal_body">用途</label>
|
|
92
|
-
<input class="input_search" condition="f_property_usage = '{}'"
|
|
93
|
-
placeholder='用途'
|
|
94
|
-
style="width:60%" type="text" v-model="model.f_property_usage">
|
|
95
|
-
</div>
|
|
96
|
-
<div class="col-sm-2 form-group">
|
|
97
|
-
<label class="font_normal_body">房型</label>
|
|
98
|
-
<input class="input_search" condition="f_house_type = '{}'"
|
|
99
|
-
placeholder='房型'
|
|
100
|
-
style="width:60%" type="text" v-model="model.f_house_type">
|
|
101
|
-
</div>
|
|
102
|
-
<div class="col-sm-2 form-group">
|
|
103
|
-
<label class="font_normal_body">是否一户多表</label>
|
|
104
|
-
<input class="input_search" condition="f_is_multi_meter = '{}'"
|
|
105
|
-
placeholder='是否一户多表'
|
|
106
|
-
style="width:60%" type="text" v-model="model.f_is_multi_meter">
|
|
107
|
-
</div>
|
|
108
|
-
<div class="col-sm-2 form-group">
|
|
109
|
-
<label class="font_normal_body">关联ID</label>
|
|
110
|
-
<input class="input_search" condition="f_house_id = '{}'"
|
|
111
|
-
placeholder='关联ID'
|
|
112
|
-
style="width:60%" type="text" v-model="model.f_house_id">
|
|
113
|
-
</div>
|
|
114
|
-
</div>
|
|
115
|
-
</div>
|
|
116
|
-
</criteria>
|
|
117
|
-
|
|
118
|
-
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
119
|
-
<template partial='head'>
|
|
120
|
-
<tr>
|
|
121
|
-
<th>
|
|
122
|
-
<nobr>客户编号</nobr>
|
|
123
|
-
</th>
|
|
124
|
-
<th>
|
|
125
|
-
<nobr>客户名称</nobr>
|
|
126
|
-
</th>
|
|
127
|
-
<th>
|
|
128
|
-
<nobr>上期结余</nobr>
|
|
129
|
-
</th>
|
|
130
|
-
<th>
|
|
131
|
-
<nobr>本期结余</nobr>
|
|
132
|
-
</th>
|
|
133
|
-
<th>
|
|
134
|
-
<nobr>气量</nobr>
|
|
135
|
-
</th>
|
|
136
|
-
<th>
|
|
137
|
-
<nobr>气费</nobr>
|
|
138
|
-
</th>
|
|
139
|
-
<th>
|
|
140
|
-
<nobr>收费金额</nobr>
|
|
141
|
-
</th>
|
|
142
|
-
<th>
|
|
143
|
-
<nobr>清欠金额</nobr>
|
|
144
|
-
</th>
|
|
145
|
-
<th>
|
|
146
|
-
<nobr>违约金金额</nobr>
|
|
147
|
-
</th>
|
|
148
|
-
<th>
|
|
149
|
-
<nobr>收费类型</nobr>
|
|
150
|
-
</th>
|
|
151
|
-
<th>
|
|
152
|
-
<nobr>收费状态</nobr>
|
|
153
|
-
</th>
|
|
154
|
-
<th>
|
|
155
|
-
<nobr>操作时间</nobr>
|
|
156
|
-
</th>
|
|
157
|
-
<th>
|
|
158
|
-
<nobr>公司</nobr>
|
|
159
|
-
</th>
|
|
160
|
-
</tr>
|
|
161
|
-
</template>
|
|
162
|
-
<template partial='body'>
|
|
163
|
-
<td style="text-align: center;"><nobr>
|
|
164
|
-
<span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
|
|
165
|
-
</nobr> </td>
|
|
166
|
-
<td style="text-align: center;">{{row.f_user_name}}</td>
|
|
167
|
-
<td style="text-align: center;">{{row.f_last_balance}}</td>
|
|
168
|
-
<th style="text-align: center;">{{row.f_balance}}</th>
|
|
169
|
-
<th style="text-align: center;">{{row.f_pregas}}</th>
|
|
170
|
-
<th style="text-align: center;">{{row.f_preamount}}</th>
|
|
171
|
-
<th style="text-align: center;">{{row.f_charge_money}}</th>
|
|
172
|
-
<th style="text-align: center;">{{row.f_debt_money}}</th>
|
|
173
|
-
<th style="text-align: center;">{{row.f_overdue}}</th>
|
|
174
|
-
<th style="text-align: center;">{{row.f_type}}</th>
|
|
175
|
-
<th style="text-align: center;">{{row.f_state}}</th>
|
|
176
|
-
<th style="text-align: center;">{{row.f_operate_date}}</th>
|
|
177
|
-
<td style="text-align: center;">{{row.f_orgname}}</td>
|
|
178
|
-
</template>
|
|
179
|
-
</data-grid>
|
|
180
|
-
</criteria-paged>
|
|
181
|
-
<table class="table-hover">
|
|
182
|
-
<tr style="position: relative" class="table-bordered">
|
|
183
|
-
<td
|
|
184
|
-
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
185
|
-
汇总信息
|
|
186
|
-
</td>
|
|
187
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
|
|
188
|
-
收费金额合计: {{sumsmodel.f_charge_money}}
|
|
189
|
-
</td>
|
|
190
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
|
|
191
|
-
清欠金额合计: {{sumsmodel.f_debt_money}}
|
|
192
|
-
</td>
|
|
193
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
|
|
194
|
-
违约金金额合计: {{sumsmodel.f_overdue}}
|
|
195
|
-
</td>
|
|
196
|
-
</tr>
|
|
197
|
-
</table>
|
|
198
|
-
</div>
|
|
199
|
-
<div v-if="show">
|
|
200
|
-
<user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
|
|
201
|
-
</div>
|
|
202
|
-
</div>
|
|
203
|
-
</div>
|
|
204
|
-
|
|
205
|
-
</template>
|
|
206
|
-
<script>
|
|
207
|
-
/**
|
|
208
|
-
*用户档案查询列表以及添加操作组件
|
|
209
|
-
*/
|
|
210
|
-
import {HttpResetClass, PagedList} from 'vue-client'
|
|
211
|
-
import defaultPrint from '../config/DefaultPrint'
|
|
212
|
-
import exportConfig from '../config/exportConfig'
|
|
213
|
-
|
|
214
|
-
let readySomething = async function (self) {
|
|
215
|
-
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
|
|
216
|
-
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
|
|
217
|
-
// await self.$refs.paged.$refs.cri.search()
|
|
218
|
-
await self.$getConfig(self, 'SellingHand')
|
|
219
|
-
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
220
|
-
|
|
221
|
-
await self.$MagLoadParams.loadParam()
|
|
222
|
-
|
|
223
|
-
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
224
|
-
console.log('self.sumsmodel', self.sumsmodel)
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
export default {
|
|
229
|
-
title: '收费抄表',
|
|
230
|
-
data() {
|
|
231
|
-
return {
|
|
232
|
-
rows: null,
|
|
233
|
-
criteriaShow: false,
|
|
234
|
-
model: new PagedList('rs/sql/getSellingHand', 50, {}, {f_charge_money: 0, f_debt_money: 0, f_overdue: 0}),
|
|
235
|
-
orgCondtionStr: '',
|
|
236
|
-
charge_state: this.$appdata.getParam('收费状态') ? [{
|
|
237
|
-
label: '全部',
|
|
238
|
-
value: ''
|
|
239
|
-
}, ...this.$appdata.getParam('收费状态')] : [],
|
|
240
|
-
getfield: '',
|
|
241
|
-
show:false,
|
|
242
|
-
jurisdiction:this.$login.r,
|
|
243
|
-
rowdata:{},
|
|
244
|
-
residentialArea:[],
|
|
245
|
-
area:[],
|
|
246
|
-
config: {
|
|
247
|
-
defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_last_balance', 'f_balance']
|
|
248
|
-
},
|
|
249
|
-
initres: {
|
|
250
|
-
org:[this.$login.f.orgid],
|
|
251
|
-
dep:[],
|
|
252
|
-
user:[],
|
|
253
|
-
},
|
|
254
|
-
defaultfield: [],
|
|
255
|
-
sumsmodel: {}
|
|
256
|
-
}
|
|
257
|
-
},
|
|
258
|
-
ready() {
|
|
259
|
-
this.getaddress()
|
|
260
|
-
|
|
261
|
-
readySomething(this).then(() => {
|
|
262
|
-
this.$emit('ready')
|
|
263
|
-
}).catch((error) => {
|
|
264
|
-
this.$emit('error', error)
|
|
265
|
-
})
|
|
266
|
-
},
|
|
267
|
-
methods: {
|
|
268
|
-
async getaddress(){
|
|
269
|
-
console.log('开始获取小区')
|
|
270
|
-
let HttpReset = new HttpResetClass()
|
|
271
|
-
var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
|
|
272
|
-
data: {
|
|
273
|
-
condition: '1=1'
|
|
274
|
-
}
|
|
275
|
-
}, {resolveMsg: null, rejectMsg: '获取小区失败!'})
|
|
276
|
-
console.log('小区',data)
|
|
277
|
-
let house = []
|
|
278
|
-
for (let row of data.data){
|
|
279
|
-
console.log('开始保存小区')
|
|
280
|
-
house.push({label: row.f_residential_area, value: row.f_residential_area})
|
|
281
|
-
}
|
|
282
|
-
this.residentialArea = house
|
|
283
|
-
},
|
|
284
|
-
search(){
|
|
285
|
-
this.$refs.paged.$refs.cri.search()
|
|
286
|
-
},
|
|
287
|
-
selfSearch(args) {
|
|
288
|
-
//小区查询条件
|
|
289
|
-
this.area = this.$refs.paged.$refs.cri.model.f_residential_area
|
|
290
|
-
console.log("=====小区model绑定====",this.area)
|
|
291
|
-
if(this.area.length !== 0){
|
|
292
|
-
let str = JSON.stringify(this.area)
|
|
293
|
-
str = str.replace(/"/g,`'`)
|
|
294
|
-
str = str.replace(/\[/g,``)
|
|
295
|
-
str = str.replace(/\]/g,``)
|
|
296
|
-
console.log("=====小区model22222222222绑定====",str)
|
|
297
|
-
//查询多个小区时条件
|
|
298
|
-
args.condition += ` and f_residential_area in ( ${str} )`
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
302
|
-
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
303
|
-
this.model.search(args.condition, args.model)
|
|
304
|
-
},
|
|
305
|
-
show() {
|
|
306
|
-
this.criteriaShow = true
|
|
307
|
-
},
|
|
308
|
-
cancel() {
|
|
309
|
-
this.show = false
|
|
310
|
-
},
|
|
311
|
-
showmsg(obj){
|
|
312
|
-
this.rowdata=obj
|
|
313
|
-
this.show=true
|
|
314
|
-
},
|
|
315
|
-
dealmsg(val) {
|
|
316
|
-
console.log('---------------dealmsg')
|
|
317
|
-
val.model = this.model.model
|
|
318
|
-
this.$dispatch('deal-msg', val)
|
|
319
|
-
},
|
|
320
|
-
hidden() {
|
|
321
|
-
this.criteriaShow = !this.criteriaShow
|
|
322
|
-
},
|
|
323
|
-
clear() {
|
|
324
|
-
//清空部门和人员
|
|
325
|
-
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
326
|
-
//部门和人员变为全选
|
|
327
|
-
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
328
|
-
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
329
|
-
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
330
|
-
this.$refs.paged.$refs.cri.model[key] = []
|
|
331
|
-
})
|
|
332
|
-
},
|
|
333
|
-
getRes(obj) {
|
|
334
|
-
this.orgCondtionStr = obj
|
|
335
|
-
},
|
|
336
|
-
stamp() {
|
|
337
|
-
this.all = false
|
|
338
|
-
//默认选择要打印的列
|
|
339
|
-
this.modelval = defaultPrint.config
|
|
340
|
-
this.fields = this.getfield
|
|
341
|
-
console.log('所有打印字段', this.fields)
|
|
342
|
-
this.printshow = true
|
|
343
|
-
this.put()
|
|
344
|
-
},
|
|
345
|
-
put() {
|
|
346
|
-
// 对Modelval进行排序
|
|
347
|
-
this.sortModelval()
|
|
348
|
-
this.thead = `<tr><th colspan=${this.modelval.length}>抄表收费统计报表</th></tr><tr>`
|
|
349
|
-
for (let key of this.modelval) {
|
|
350
|
-
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
351
|
-
}
|
|
352
|
-
this.thead += '</tr>'
|
|
353
|
-
},
|
|
354
|
-
print() {
|
|
355
|
-
this.$refs.print.PrintAsFile()
|
|
356
|
-
this.printshow = false
|
|
357
|
-
},
|
|
358
|
-
close() {
|
|
359
|
-
this.printshow = false
|
|
360
|
-
this.all = false
|
|
361
|
-
},
|
|
362
|
-
// 对选择的列进行排序
|
|
363
|
-
sortModelval() {
|
|
364
|
-
let sortModel = []
|
|
365
|
-
Object.keys(this.fields).forEach((key) => {
|
|
366
|
-
if (this.modelval.includes(key)) {
|
|
367
|
-
sortModel.push(key)
|
|
368
|
-
}
|
|
369
|
-
})
|
|
370
|
-
this.modelval = sortModel
|
|
371
|
-
console.log('选择的打印的字段', this.modelval)
|
|
372
|
-
}
|
|
373
|
-
},
|
|
374
|
-
watch: {
|
|
375
|
-
'all'(val) {
|
|
376
|
-
if (val) {
|
|
377
|
-
this.modelval = this.bodyData
|
|
378
|
-
} else {
|
|
379
|
-
this.modelval = defaultPrint.config
|
|
380
|
-
this.put()
|
|
381
|
-
}
|
|
382
|
-
},
|
|
383
|
-
'modelval.length'() {
|
|
384
|
-
this.put()
|
|
385
|
-
},
|
|
386
|
-
},
|
|
387
|
-
computed: {
|
|
388
|
-
getCondition() {
|
|
389
|
-
let result = {
|
|
390
|
-
condition: ''
|
|
391
|
-
}
|
|
392
|
-
result.condition = this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
|
|
393
|
-
return result
|
|
394
|
-
},
|
|
395
|
-
getfield() {
|
|
396
|
-
return exportConfig.sellingHandConfig
|
|
397
|
-
},
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
</script>
|
|
401
|
-
<style media="screen">
|
|
402
|
-
.divtext {
|
|
403
|
-
min-width: 50px;
|
|
404
|
-
max-width: 200px;
|
|
405
|
-
border: 1px solid green;
|
|
406
|
-
display: inline-block;
|
|
407
|
-
}
|
|
408
|
-
</style>
|
|
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 class="font_normal_body">客户编号</label>
|
|
11
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
12
|
+
condition="f_userinfo_code = '{}' " placeholder="客户编号">
|
|
13
|
+
</div>
|
|
14
|
+
<div class="col-sm-2 form-group">
|
|
15
|
+
<label class="font_normal_body">收费票据id</label>
|
|
16
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_bill_sell_id"
|
|
17
|
+
condition="f_bill_sell_id = '{}' " placeholder="票据id">
|
|
18
|
+
</div>
|
|
19
|
+
<div class="col-sm-2 form-group">
|
|
20
|
+
<label for="startDate" class="font_normal_body">开始日期</label>
|
|
21
|
+
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
22
|
+
v-model="model.startDate"
|
|
23
|
+
:value.sync="model.startDate"
|
|
24
|
+
:format="'yyyy-MM-dd'"
|
|
25
|
+
:show-reset-button="true"
|
|
26
|
+
condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
|
|
27
|
+
</datepicker>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="col-sm-2 form-group">
|
|
30
|
+
<label for="endDate" class="font_normal_body">结束日期</label>
|
|
31
|
+
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
32
|
+
v-model="model.endDate"
|
|
33
|
+
:value.sync="model.endDate"
|
|
34
|
+
:format="'yyyy-MM-dd'"
|
|
35
|
+
:show-reset-button="true"
|
|
36
|
+
condition="f_operate_date <= to_date('{} 23:59:59','yyyy-mm-dd hh24:mi:ss')">
|
|
37
|
+
</datepicker>
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
<div class="span" style="float:right;">
|
|
41
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
42
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
43
|
+
|
|
44
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
45
|
+
:field="$parent.$parent.getfield"
|
|
46
|
+
sqlurl="rs/logic/exportfile" sql-name="getSellingHand" template-name='收费抄表导出'
|
|
47
|
+
v-if ="$parent.$parent.jurisdiction.includes('excel导出')"
|
|
48
|
+
:choose-col="true"></export-excel>
|
|
49
|
+
<print-data :model="$parent.model" :field="$parent.$parent.getfield"
|
|
50
|
+
:defaultfield="$parent.$parent.defaultfield" print-name="收费抄表打印"
|
|
51
|
+
:sumsmodel="$parent.$parent.sumsmodel"></print-data>
|
|
52
|
+
<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>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
<div class="row">
|
|
56
|
+
<res-select-group style="col-sm-2 form-group" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
57
|
+
<div class="col-sm-2 form-group">
|
|
58
|
+
<label for="f_area_id" class="font_normal_body">小区编码</label>
|
|
59
|
+
<input id="f_area_id" type="text" style="width:60%" class="input_search" v-model="model.f_area_id"
|
|
60
|
+
condition="f_area_id = '{}'" placeholder='小区编码'>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="col-sm-2 form-group">
|
|
63
|
+
<label class="font_normal_body"> 小区 </label>
|
|
64
|
+
<v-select :value.sync="model.f_residential_area"
|
|
65
|
+
class="select_list select"
|
|
66
|
+
enter-push
|
|
67
|
+
multiple = "true"
|
|
68
|
+
v-model="model.f_residential_area"
|
|
69
|
+
style="width: 60%"
|
|
70
|
+
:options='$parent.$parent.residentialArea' placeholder='选择小区'
|
|
71
|
+
close-on-select>
|
|
72
|
+
</v-select>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
76
|
+
<div class="col-sm-2 form-group">
|
|
77
|
+
<label class="font_normal_body">收费状态</label>
|
|
78
|
+
<v-select :value.sync="model.f_state"
|
|
79
|
+
v-model="model.f_state"
|
|
80
|
+
:options='$parent.$parent.charge_state' placeholder='请选择'
|
|
81
|
+
condition="f_state = '{}'"
|
|
82
|
+
close-on-select></v-select>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="col-sm-2 form-group">
|
|
85
|
+
<label class="font_normal_body">房产地址</label>
|
|
86
|
+
<input class="input_search" condition="f_house_address = '{}'"
|
|
87
|
+
placeholder='房产地址'
|
|
88
|
+
style="width:60%" type="text" v-model="model.f_house_address">
|
|
89
|
+
</div>
|
|
90
|
+
<div class="col-sm-2 form-group">
|
|
91
|
+
<label class="font_normal_body">用途</label>
|
|
92
|
+
<input class="input_search" condition="f_property_usage = '{}'"
|
|
93
|
+
placeholder='用途'
|
|
94
|
+
style="width:60%" type="text" v-model="model.f_property_usage">
|
|
95
|
+
</div>
|
|
96
|
+
<div class="col-sm-2 form-group">
|
|
97
|
+
<label class="font_normal_body">房型</label>
|
|
98
|
+
<input class="input_search" condition="f_house_type = '{}'"
|
|
99
|
+
placeholder='房型'
|
|
100
|
+
style="width:60%" type="text" v-model="model.f_house_type">
|
|
101
|
+
</div>
|
|
102
|
+
<div class="col-sm-2 form-group">
|
|
103
|
+
<label class="font_normal_body">是否一户多表</label>
|
|
104
|
+
<input class="input_search" condition="f_is_multi_meter = '{}'"
|
|
105
|
+
placeholder='是否一户多表'
|
|
106
|
+
style="width:60%" type="text" v-model="model.f_is_multi_meter">
|
|
107
|
+
</div>
|
|
108
|
+
<div class="col-sm-2 form-group">
|
|
109
|
+
<label class="font_normal_body">关联ID</label>
|
|
110
|
+
<input class="input_search" condition="f_house_id = '{}'"
|
|
111
|
+
placeholder='关联ID'
|
|
112
|
+
style="width:60%" type="text" v-model="model.f_house_id">
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
</criteria>
|
|
117
|
+
|
|
118
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
119
|
+
<template partial='head'>
|
|
120
|
+
<tr>
|
|
121
|
+
<th>
|
|
122
|
+
<nobr>客户编号</nobr>
|
|
123
|
+
</th>
|
|
124
|
+
<th>
|
|
125
|
+
<nobr>客户名称</nobr>
|
|
126
|
+
</th>
|
|
127
|
+
<th>
|
|
128
|
+
<nobr>上期结余</nobr>
|
|
129
|
+
</th>
|
|
130
|
+
<th>
|
|
131
|
+
<nobr>本期结余</nobr>
|
|
132
|
+
</th>
|
|
133
|
+
<th>
|
|
134
|
+
<nobr>气量</nobr>
|
|
135
|
+
</th>
|
|
136
|
+
<th>
|
|
137
|
+
<nobr>气费</nobr>
|
|
138
|
+
</th>
|
|
139
|
+
<th>
|
|
140
|
+
<nobr>收费金额</nobr>
|
|
141
|
+
</th>
|
|
142
|
+
<th>
|
|
143
|
+
<nobr>清欠金额</nobr>
|
|
144
|
+
</th>
|
|
145
|
+
<th>
|
|
146
|
+
<nobr>违约金金额</nobr>
|
|
147
|
+
</th>
|
|
148
|
+
<th>
|
|
149
|
+
<nobr>收费类型</nobr>
|
|
150
|
+
</th>
|
|
151
|
+
<th>
|
|
152
|
+
<nobr>收费状态</nobr>
|
|
153
|
+
</th>
|
|
154
|
+
<th>
|
|
155
|
+
<nobr>操作时间</nobr>
|
|
156
|
+
</th>
|
|
157
|
+
<th>
|
|
158
|
+
<nobr>公司</nobr>
|
|
159
|
+
</th>
|
|
160
|
+
</tr>
|
|
161
|
+
</template>
|
|
162
|
+
<template partial='body'>
|
|
163
|
+
<td style="text-align: center;"><nobr>
|
|
164
|
+
<span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
|
|
165
|
+
</nobr> </td>
|
|
166
|
+
<td style="text-align: center;">{{row.f_user_name}}</td>
|
|
167
|
+
<td style="text-align: center;">{{row.f_last_balance}}</td>
|
|
168
|
+
<th style="text-align: center;">{{row.f_balance}}</th>
|
|
169
|
+
<th style="text-align: center;">{{row.f_pregas}}</th>
|
|
170
|
+
<th style="text-align: center;">{{row.f_preamount}}</th>
|
|
171
|
+
<th style="text-align: center;">{{row.f_charge_money}}</th>
|
|
172
|
+
<th style="text-align: center;">{{row.f_debt_money}}</th>
|
|
173
|
+
<th style="text-align: center;">{{row.f_overdue}}</th>
|
|
174
|
+
<th style="text-align: center;">{{row.f_type}}</th>
|
|
175
|
+
<th style="text-align: center;">{{row.f_state}}</th>
|
|
176
|
+
<th style="text-align: center;">{{row.f_operate_date}}</th>
|
|
177
|
+
<td style="text-align: center;">{{row.f_orgname}}</td>
|
|
178
|
+
</template>
|
|
179
|
+
</data-grid>
|
|
180
|
+
</criteria-paged>
|
|
181
|
+
<table class="table-hover">
|
|
182
|
+
<tr style="position: relative" class="table-bordered">
|
|
183
|
+
<td
|
|
184
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
185
|
+
汇总信息
|
|
186
|
+
</td>
|
|
187
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
|
|
188
|
+
收费金额合计: {{sumsmodel.f_charge_money}}
|
|
189
|
+
</td>
|
|
190
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
|
|
191
|
+
清欠金额合计: {{sumsmodel.f_debt_money}}
|
|
192
|
+
</td>
|
|
193
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
|
|
194
|
+
违约金金额合计: {{sumsmodel.f_overdue}}
|
|
195
|
+
</td>
|
|
196
|
+
</tr>
|
|
197
|
+
</table>
|
|
198
|
+
</div>
|
|
199
|
+
<div v-if="show">
|
|
200
|
+
<user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
|
|
201
|
+
</div>
|
|
202
|
+
</div>
|
|
203
|
+
</div>
|
|
204
|
+
|
|
205
|
+
</template>
|
|
206
|
+
<script>
|
|
207
|
+
/**
|
|
208
|
+
*用户档案查询列表以及添加操作组件
|
|
209
|
+
*/
|
|
210
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
211
|
+
import defaultPrint from '../config/DefaultPrint'
|
|
212
|
+
import exportConfig from '../config/exportConfig'
|
|
213
|
+
|
|
214
|
+
let readySomething = async function (self) {
|
|
215
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
|
|
216
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
|
|
217
|
+
// await self.$refs.paged.$refs.cri.search()
|
|
218
|
+
await self.$getConfig(self, 'SellingHand')
|
|
219
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
220
|
+
|
|
221
|
+
await self.$MagLoadParams.loadParam()
|
|
222
|
+
|
|
223
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
224
|
+
console.log('self.sumsmodel', self.sumsmodel)
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
export default {
|
|
229
|
+
title: '收费抄表',
|
|
230
|
+
data() {
|
|
231
|
+
return {
|
|
232
|
+
rows: null,
|
|
233
|
+
criteriaShow: false,
|
|
234
|
+
model: new PagedList('rs/sql/getSellingHand', 50, {}, {f_charge_money: 0, f_debt_money: 0, f_overdue: 0}),
|
|
235
|
+
orgCondtionStr: '',
|
|
236
|
+
charge_state: this.$appdata.getParam('收费状态') ? [{
|
|
237
|
+
label: '全部',
|
|
238
|
+
value: ''
|
|
239
|
+
}, ...this.$appdata.getParam('收费状态')] : [],
|
|
240
|
+
getfield: '',
|
|
241
|
+
show:false,
|
|
242
|
+
jurisdiction:this.$login.r,
|
|
243
|
+
rowdata:{},
|
|
244
|
+
residentialArea:[],
|
|
245
|
+
area:[],
|
|
246
|
+
config: {
|
|
247
|
+
defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_last_balance', 'f_balance']
|
|
248
|
+
},
|
|
249
|
+
initres: {
|
|
250
|
+
org:[this.$login.f.orgid],
|
|
251
|
+
dep:[],
|
|
252
|
+
user:[],
|
|
253
|
+
},
|
|
254
|
+
defaultfield: [],
|
|
255
|
+
sumsmodel: {}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
ready() {
|
|
259
|
+
this.getaddress()
|
|
260
|
+
|
|
261
|
+
readySomething(this).then(() => {
|
|
262
|
+
this.$emit('ready')
|
|
263
|
+
}).catch((error) => {
|
|
264
|
+
this.$emit('error', error)
|
|
265
|
+
})
|
|
266
|
+
},
|
|
267
|
+
methods: {
|
|
268
|
+
async getaddress(){
|
|
269
|
+
console.log('开始获取小区')
|
|
270
|
+
let HttpReset = new HttpResetClass()
|
|
271
|
+
var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
|
|
272
|
+
data: {
|
|
273
|
+
condition: '1=1'
|
|
274
|
+
}
|
|
275
|
+
}, {resolveMsg: null, rejectMsg: '获取小区失败!'})
|
|
276
|
+
console.log('小区',data)
|
|
277
|
+
let house = []
|
|
278
|
+
for (let row of data.data){
|
|
279
|
+
console.log('开始保存小区')
|
|
280
|
+
house.push({label: row.f_residential_area, value: row.f_residential_area})
|
|
281
|
+
}
|
|
282
|
+
this.residentialArea = house
|
|
283
|
+
},
|
|
284
|
+
search(){
|
|
285
|
+
this.$refs.paged.$refs.cri.search()
|
|
286
|
+
},
|
|
287
|
+
selfSearch(args) {
|
|
288
|
+
//小区查询条件
|
|
289
|
+
this.area = this.$refs.paged.$refs.cri.model.f_residential_area
|
|
290
|
+
console.log("=====小区model绑定====",this.area)
|
|
291
|
+
if(this.area.length !== 0){
|
|
292
|
+
let str = JSON.stringify(this.area)
|
|
293
|
+
str = str.replace(/"/g,`'`)
|
|
294
|
+
str = str.replace(/\[/g,``)
|
|
295
|
+
str = str.replace(/\]/g,``)
|
|
296
|
+
console.log("=====小区model22222222222绑定====",str)
|
|
297
|
+
//查询多个小区时条件
|
|
298
|
+
args.condition += ` and f_residential_area in ( ${str} )`
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
302
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
303
|
+
this.model.search(args.condition, args.model)
|
|
304
|
+
},
|
|
305
|
+
show() {
|
|
306
|
+
this.criteriaShow = true
|
|
307
|
+
},
|
|
308
|
+
cancel() {
|
|
309
|
+
this.show = false
|
|
310
|
+
},
|
|
311
|
+
showmsg(obj){
|
|
312
|
+
this.rowdata=obj
|
|
313
|
+
this.show=true
|
|
314
|
+
},
|
|
315
|
+
dealmsg(val) {
|
|
316
|
+
console.log('---------------dealmsg')
|
|
317
|
+
val.model = this.model.model
|
|
318
|
+
this.$dispatch('deal-msg', val)
|
|
319
|
+
},
|
|
320
|
+
hidden() {
|
|
321
|
+
this.criteriaShow = !this.criteriaShow
|
|
322
|
+
},
|
|
323
|
+
clear() {
|
|
324
|
+
//清空部门和人员
|
|
325
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
326
|
+
//部门和人员变为全选
|
|
327
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
328
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
329
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
330
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
331
|
+
})
|
|
332
|
+
},
|
|
333
|
+
getRes(obj) {
|
|
334
|
+
this.orgCondtionStr = obj
|
|
335
|
+
},
|
|
336
|
+
stamp() {
|
|
337
|
+
this.all = false
|
|
338
|
+
//默认选择要打印的列
|
|
339
|
+
this.modelval = defaultPrint.config
|
|
340
|
+
this.fields = this.getfield
|
|
341
|
+
console.log('所有打印字段', this.fields)
|
|
342
|
+
this.printshow = true
|
|
343
|
+
this.put()
|
|
344
|
+
},
|
|
345
|
+
put() {
|
|
346
|
+
// 对Modelval进行排序
|
|
347
|
+
this.sortModelval()
|
|
348
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>抄表收费统计报表</th></tr><tr>`
|
|
349
|
+
for (let key of this.modelval) {
|
|
350
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
351
|
+
}
|
|
352
|
+
this.thead += '</tr>'
|
|
353
|
+
},
|
|
354
|
+
print() {
|
|
355
|
+
this.$refs.print.PrintAsFile()
|
|
356
|
+
this.printshow = false
|
|
357
|
+
},
|
|
358
|
+
close() {
|
|
359
|
+
this.printshow = false
|
|
360
|
+
this.all = false
|
|
361
|
+
},
|
|
362
|
+
// 对选择的列进行排序
|
|
363
|
+
sortModelval() {
|
|
364
|
+
let sortModel = []
|
|
365
|
+
Object.keys(this.fields).forEach((key) => {
|
|
366
|
+
if (this.modelval.includes(key)) {
|
|
367
|
+
sortModel.push(key)
|
|
368
|
+
}
|
|
369
|
+
})
|
|
370
|
+
this.modelval = sortModel
|
|
371
|
+
console.log('选择的打印的字段', this.modelval)
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
watch: {
|
|
375
|
+
'all'(val) {
|
|
376
|
+
if (val) {
|
|
377
|
+
this.modelval = this.bodyData
|
|
378
|
+
} else {
|
|
379
|
+
this.modelval = defaultPrint.config
|
|
380
|
+
this.put()
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
'modelval.length'() {
|
|
384
|
+
this.put()
|
|
385
|
+
},
|
|
386
|
+
},
|
|
387
|
+
computed: {
|
|
388
|
+
getCondition() {
|
|
389
|
+
let result = {
|
|
390
|
+
condition: ''
|
|
391
|
+
}
|
|
392
|
+
result.condition = this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
|
|
393
|
+
return result
|
|
394
|
+
},
|
|
395
|
+
getfield() {
|
|
396
|
+
return exportConfig.sellingHandConfig
|
|
397
|
+
},
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
</script>
|
|
401
|
+
<style media="screen">
|
|
402
|
+
.divtext {
|
|
403
|
+
min-width: 50px;
|
|
404
|
+
max-width: 200px;
|
|
405
|
+
border: 1px solid green;
|
|
406
|
+
display: inline-block;
|
|
407
|
+
}
|
|
408
|
+
</style>
|