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,403 +1,403 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="unit" class="flex-row foot_tabset" @keyup.enter="search">
|
|
3
|
-
<div class="basic-main">
|
|
4
|
-
<div class="flex" v-if="!show">
|
|
5
|
-
|
|
6
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
7
|
-
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
8
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
9
|
-
<div class="row">
|
|
10
|
-
<div class="col-sm-2 form-group ">
|
|
11
|
-
<label class="font_normal_body">客户编号</label>
|
|
12
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
13
|
-
condition="f_userinfo_code = '{}' " placeholder="客户编号">
|
|
14
|
-
</div>
|
|
15
|
-
<div class="col-sm-2 form-group">
|
|
16
|
-
<label class="font_normal_body">客户名称</label>
|
|
17
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
18
|
-
condition="f_user_name like '%{}%'" placeholder="客户名称">
|
|
19
|
-
</div>
|
|
20
|
-
<div class="col-sm-2 form-group">
|
|
21
|
-
<label class="font_normal_body">开始日期</label>
|
|
22
|
-
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
23
|
-
v-model="model.startDate"
|
|
24
|
-
:value.sync="model.startDate"
|
|
25
|
-
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
26
|
-
:show-reset-button="true"
|
|
27
|
-
condition="f_operate_date >= to_date('{}','yyyy-mm-dd hh24:mi:ss')">
|
|
28
|
-
</datepicker>
|
|
29
|
-
</div>
|
|
30
|
-
<div class="col-sm-2 form-group">
|
|
31
|
-
<label class="font_normal_body">结束日期</label>
|
|
32
|
-
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
33
|
-
v-model="model.endDate"
|
|
34
|
-
:value.sync="model.endDate"
|
|
35
|
-
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
36
|
-
:show-reset-button="true"
|
|
37
|
-
condition="f_operate_date <= to_date('{}','yyyy-mm-dd hh24:mi:ss')">
|
|
38
|
-
</datepicker>
|
|
39
|
-
</div>
|
|
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
|
-
<!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
|
|
44
|
-
|
|
45
|
-
<export-excel :data="$parent.$parent.getCondition"
|
|
46
|
-
:field="$parent.$parent.getfield"
|
|
47
|
-
sqlurl="rs/logic/exportfile" sql-name="changeMeterQuery" template-name='换表查询导出'
|
|
48
|
-
v-if ="$parent.$parent.jurisdiction.includes('excel导出')"
|
|
49
|
-
:choose-col="true"></export-excel>
|
|
50
|
-
|
|
51
|
-
<div style="float: right" class="button_spacing"
|
|
52
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
53
|
-
@click="$parent.$parent.hidden()"></div>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
|
|
57
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
58
|
-
<res-select-group style="col-sm-2 form-group" :initres="$parent.$parent.initres"
|
|
59
|
-
@re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
60
|
-
<div class="col-sm-2 form-group">
|
|
61
|
-
<label class="font_normal_body">客户电话</label>
|
|
62
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
|
|
63
|
-
condition="f_user_phone like '%{}%'" placeholder="客户电话">
|
|
64
|
-
</div>
|
|
65
|
-
<div class="col-sm-2 form-group">
|
|
66
|
-
<label class="font_normal_body">更改内容</label>
|
|
67
|
-
<v-select :value.sync="model.f_field_name"
|
|
68
|
-
v-model="model.f_field_name"
|
|
69
|
-
:options='$parent.$parent.field_name' placeholder='请选择'
|
|
70
|
-
condition="f_field_name = '{}'"
|
|
71
|
-
close-on-select></v-select>
|
|
72
|
-
</div>
|
|
73
|
-
<div class="col-sm-2 form-group">
|
|
74
|
-
<label for="f_area_id" class="font_normal_body">小区编码</label>
|
|
75
|
-
<input id="f_area_id" type="text" style="width:60%" class="input_search" v-model="model.f_area_id"
|
|
76
|
-
condition="f_area_id = '{}'" placeholder='小区编码'>
|
|
77
|
-
</div>
|
|
78
|
-
<div class="col-sm-2 form-group">
|
|
79
|
-
<label class="font_normal_body"> 小区 </label>
|
|
80
|
-
<v-select :value.sync="model.f_residential_area"
|
|
81
|
-
class="select_list select"
|
|
82
|
-
enter-push
|
|
83
|
-
multiple="true"
|
|
84
|
-
v-model="model.f_residential_area"
|
|
85
|
-
style="width: 60%"
|
|
86
|
-
:options='$parent.$parent.residentialArea' placeholder='选择小区'
|
|
87
|
-
close-on-select>
|
|
88
|
-
</v-select>
|
|
89
|
-
</div>
|
|
90
|
-
<div class="col-sm-2 form-group">
|
|
91
|
-
<label class="font_normal_body">是否网厅</label>
|
|
92
|
-
<v-select :value.sync="$parent.$parent.f_online_hall"
|
|
93
|
-
:options="$parent.$parent.isOnlineHall"
|
|
94
|
-
:search="false"
|
|
95
|
-
placeholder='请选择'
|
|
96
|
-
condition="{}"
|
|
97
|
-
close-on-select></v-select>
|
|
98
|
-
</div>
|
|
99
|
-
<div class="col-sm-2 form-group">
|
|
100
|
-
<label class="font_normal_body">房产地址</label>
|
|
101
|
-
<input class="input_search" condition="f_house_address = '{}'"
|
|
102
|
-
placeholder='房产地址'
|
|
103
|
-
style="width:60%" type="text" v-model="model.f_house_address">
|
|
104
|
-
</div>
|
|
105
|
-
<div class="col-sm-2 form-group">
|
|
106
|
-
<label class="font_normal_body">用途</label>
|
|
107
|
-
<input class="input_search" condition="f_property_usage = '{}'"
|
|
108
|
-
placeholder='用途'
|
|
109
|
-
style="width:60%" type="text" v-model="model.f_property_usage">
|
|
110
|
-
</div>
|
|
111
|
-
<div class="col-sm-2 form-group">
|
|
112
|
-
<label class="font_normal_body">房型</label>
|
|
113
|
-
<input class="input_search" condition="f_house_type = '{}'"
|
|
114
|
-
placeholder='房型'
|
|
115
|
-
style="width:60%" type="text" v-model="model.f_house_type">
|
|
116
|
-
</div>
|
|
117
|
-
<div class="col-sm-2 form-group">
|
|
118
|
-
<label class="font_normal_body">是否一户多表</label>
|
|
119
|
-
<input class="input_search" condition="f_is_multi_meter = '{}'"
|
|
120
|
-
placeholder='是否一户多表'
|
|
121
|
-
style="width:60%" type="text" v-model="model.f_is_multi_meter">
|
|
122
|
-
</div>
|
|
123
|
-
<div class="col-sm-2 form-group">
|
|
124
|
-
<label class="font_normal_body">关联ID</label>
|
|
125
|
-
<input class="input_search" condition="f_house_id = '{}'"
|
|
126
|
-
placeholder='关联ID'
|
|
127
|
-
style="width:60%" type="text" v-model="model.f_house_id">
|
|
128
|
-
</div>
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
</criteria>
|
|
132
|
-
|
|
133
|
-
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid
|
|
134
|
-
@dblclick="$parent.$parent.toBusiness">
|
|
135
|
-
<template partial='head'>
|
|
136
|
-
<tr>
|
|
137
|
-
<th>
|
|
138
|
-
<nobr>客户编号</nobr>
|
|
139
|
-
</th>
|
|
140
|
-
<th>
|
|
141
|
-
<nobr>客户名称</nobr>
|
|
142
|
-
</th>
|
|
143
|
-
<th>
|
|
144
|
-
<nobr>客户电话</nobr>
|
|
145
|
-
</th>
|
|
146
|
-
<th>
|
|
147
|
-
<nobr>更改内容</nobr>
|
|
148
|
-
</th>
|
|
149
|
-
<th>
|
|
150
|
-
<nobr>更改前</nobr>
|
|
151
|
-
</th>
|
|
152
|
-
<th>
|
|
153
|
-
<nobr>更改后</nobr>
|
|
154
|
-
</th>
|
|
155
|
-
<th>
|
|
156
|
-
<nobr>操作人</nobr>
|
|
157
|
-
</th>
|
|
158
|
-
<th>
|
|
159
|
-
<nobr>操作日期</nobr>
|
|
160
|
-
</th>
|
|
161
|
-
<th>
|
|
162
|
-
<nobr>部门</nobr>
|
|
163
|
-
</th>
|
|
164
|
-
<th>
|
|
165
|
-
<nobr>公司</nobr>
|
|
166
|
-
</th>
|
|
167
|
-
</tr>
|
|
168
|
-
</template>
|
|
169
|
-
<template partial='body'>
|
|
170
|
-
<td style="text-align: center;">
|
|
171
|
-
<nobr>
|
|
172
|
-
<span @click="$parent.$parent.$parent.showmsg(row)"><a>{{ row.f_userinfo_code }}</a></span>
|
|
173
|
-
</nobr>
|
|
174
|
-
</td>
|
|
175
|
-
<td style="text-align: center;">
|
|
176
|
-
<nobr>{{ row.f_user_name }}</nobr>
|
|
177
|
-
</td>
|
|
178
|
-
<td style="text-align: center;">
|
|
179
|
-
<nobr>{{ row.f_user_phone }}</nobr>
|
|
180
|
-
</td>
|
|
181
|
-
<td style="text-align: center;">
|
|
182
|
-
<nobr>{{ row.f_field_name }}</nobr>
|
|
183
|
-
</td>
|
|
184
|
-
<td style="text-align: center;">
|
|
185
|
-
<nobr>{{ row.f_used_content }}</nobr>
|
|
186
|
-
</td>
|
|
187
|
-
<td style="text-align: center;">
|
|
188
|
-
<nobr>{{ row.f_new_content }}</nobr>
|
|
189
|
-
</td>
|
|
190
|
-
<td style="text-align: center;">
|
|
191
|
-
<nobr>{{ row.f_operator }}</nobr>
|
|
192
|
-
</td>
|
|
193
|
-
<td style="text-align: center;">
|
|
194
|
-
<nobr>{{ row.f_operate_date }}</nobr>
|
|
195
|
-
</td>
|
|
196
|
-
<td style="text-align: center;">
|
|
197
|
-
<nobr>{{ row.f_depname }}</nobr>
|
|
198
|
-
</td>
|
|
199
|
-
<td style="text-align: center;">
|
|
200
|
-
<nobr>{{ row.f_orgname }}</nobr>
|
|
201
|
-
</td>
|
|
202
|
-
</template>
|
|
203
|
-
<template partial='foot'></template>
|
|
204
|
-
</data-grid>
|
|
205
|
-
</criteria-paged>
|
|
206
|
-
</div>
|
|
207
|
-
|
|
208
|
-
</div>
|
|
209
|
-
</div>
|
|
210
|
-
</template>
|
|
211
|
-
|
|
212
|
-
<script>
|
|
213
|
-
import {HttpResetClass, PagedList} from 'vue-client'
|
|
214
|
-
import defaultPrint from '../config/DefaultPrint'
|
|
215
|
-
import exportConfig from '../config/exportConfig'
|
|
216
|
-
|
|
217
|
-
let readySomething = async function (self) {
|
|
218
|
-
|
|
219
|
-
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
|
|
220
|
-
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
221
|
-
// self.$refs.paged.$refs.cri.search()
|
|
222
|
-
await self.$MagLoadParams.loadParam()
|
|
223
|
-
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
224
|
-
}
|
|
225
|
-
export default {
|
|
226
|
-
data() {
|
|
227
|
-
return {
|
|
228
|
-
data: {},
|
|
229
|
-
meterbrands: [],
|
|
230
|
-
pricenames: [],
|
|
231
|
-
model: new PagedList('rs/sql/changeuserquery', 20),
|
|
232
|
-
criteriaShow: false,
|
|
233
|
-
orgCondtionStr: '',
|
|
234
|
-
modelval: [],
|
|
235
|
-
printshow: false,
|
|
236
|
-
jurisdiction:this.$login.r,
|
|
237
|
-
all: false,
|
|
238
|
-
fields: {},
|
|
239
|
-
initres: {
|
|
240
|
-
org: [this.$login.f.orgid],
|
|
241
|
-
dep: [],
|
|
242
|
-
user: [],
|
|
243
|
-
},
|
|
244
|
-
residentialArea:[],
|
|
245
|
-
area:[],
|
|
246
|
-
isOnlineHall: [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}],
|
|
247
|
-
f_online_hall: [],
|
|
248
|
-
show: false,
|
|
249
|
-
rowdata: {},
|
|
250
|
-
thead: '',
|
|
251
|
-
tfoot: '',
|
|
252
|
-
|
|
253
|
-
// tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
//合计数据
|
|
257
|
-
sumsmodel: {}
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
ready() {
|
|
261
|
-
this.getaddress()
|
|
262
|
-
readySomething(this)
|
|
263
|
-
},
|
|
264
|
-
methods: {
|
|
265
|
-
async getaddress(){
|
|
266
|
-
console.log('开始获取小区')
|
|
267
|
-
let HttpReset = new HttpResetClass()
|
|
268
|
-
var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
|
|
269
|
-
data: {
|
|
270
|
-
condition: '1=1'
|
|
271
|
-
}
|
|
272
|
-
}, {resolveMsg: null, rejectMsg: '获取小区失败!'})
|
|
273
|
-
console.log('小区',data)
|
|
274
|
-
let house = []
|
|
275
|
-
for (let row of data.data){
|
|
276
|
-
console.log('开始保存小区')
|
|
277
|
-
house.push({label: row.f_residential_area, value: row.f_residential_area})
|
|
278
|
-
}
|
|
279
|
-
this.residentialArea = house
|
|
280
|
-
},
|
|
281
|
-
search() {
|
|
282
|
-
this.$refs.paged.$refs.cri.search()
|
|
283
|
-
},
|
|
284
|
-
cancel() {
|
|
285
|
-
this.show = false
|
|
286
|
-
},
|
|
287
|
-
showmsg(obj) {
|
|
288
|
-
this.rowdata = obj
|
|
289
|
-
this.show = true
|
|
290
|
-
},
|
|
291
|
-
|
|
292
|
-
selfSearch(args) {
|
|
293
|
-
if(this.f_online_hall[0] === '是'){
|
|
294
|
-
args.condition += ` and f_source = '网厅'`
|
|
295
|
-
} else if (this.f_online_hall[0] === '否'){
|
|
296
|
-
args.condition += ` and f_source is null`
|
|
297
|
-
}
|
|
298
|
-
//小区查询条件
|
|
299
|
-
this.area = this.$refs.paged.$refs.cri.model.f_residential_area
|
|
300
|
-
console.log("=====小区model绑定====",this.area)
|
|
301
|
-
if(this.area.length !== 0){
|
|
302
|
-
let str = JSON.stringify(this.area)
|
|
303
|
-
str = str.replace(/"/g,`'`)
|
|
304
|
-
str = str.replace(/\[/g,``)
|
|
305
|
-
str = str.replace(/\]/g,``)
|
|
306
|
-
console.log("=====小区model22222222222绑定====",str)
|
|
307
|
-
//查询多个小区时条件
|
|
308
|
-
args.condition += ` and f_residential_area in ( ${str} )`
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
312
|
-
this.model.search(args.condition, args.model)
|
|
313
|
-
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
314
|
-
},
|
|
315
|
-
clear() {
|
|
316
|
-
//清空部门和人员
|
|
317
|
-
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
318
|
-
//部门和人员变为全选
|
|
319
|
-
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
320
|
-
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
321
|
-
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
322
|
-
this.$refs.paged.$refs.cri.model[key] = ''
|
|
323
|
-
})
|
|
324
|
-
},
|
|
325
|
-
show() {
|
|
326
|
-
this.criteriaShow = true
|
|
327
|
-
},
|
|
328
|
-
hidden() {
|
|
329
|
-
this.criteriaShow = !this.criteriaShow
|
|
330
|
-
},
|
|
331
|
-
getRes(obj) {
|
|
332
|
-
console.log(obj, "========")
|
|
333
|
-
this.orgCondtionStr = obj
|
|
334
|
-
},
|
|
335
|
-
stamp() {
|
|
336
|
-
this.all = false
|
|
337
|
-
//默认选择要打印的列
|
|
338
|
-
this.modelval = defaultPrint.config
|
|
339
|
-
this.fields = this.getfield
|
|
340
|
-
console.log('所有打印字段', this.fields)
|
|
341
|
-
this.printshow = true
|
|
342
|
-
this.put()
|
|
343
|
-
},
|
|
344
|
-
dealmsg(val) {
|
|
345
|
-
console.log('---------------dealmsg')
|
|
346
|
-
val.model = this.model.model
|
|
347
|
-
this.$dispatch('deal-msg', val)
|
|
348
|
-
},
|
|
349
|
-
put() {
|
|
350
|
-
// 对Modelval进行排序
|
|
351
|
-
this.sortModelval()
|
|
352
|
-
this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
|
|
353
|
-
for (let key of this.modelval) {
|
|
354
|
-
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
355
|
-
}
|
|
356
|
-
this.thead += '</tr>'
|
|
357
|
-
},
|
|
358
|
-
print() {
|
|
359
|
-
this.$refs.print.PrintAsFile()
|
|
360
|
-
this.printshow = false
|
|
361
|
-
},
|
|
362
|
-
close() {
|
|
363
|
-
this.printshow = false
|
|
364
|
-
this.all = false
|
|
365
|
-
},
|
|
366
|
-
// 对选择的列进行排序
|
|
367
|
-
sortModelval() {
|
|
368
|
-
let sortModel = []
|
|
369
|
-
Object.keys(this.fields).forEach((key) => {
|
|
370
|
-
if (this.modelval.includes(key)) {
|
|
371
|
-
sortModel.push(key)
|
|
372
|
-
}
|
|
373
|
-
})
|
|
374
|
-
this.modelval = sortModel
|
|
375
|
-
console.log('选择的打印的字段', this.modelval)
|
|
376
|
-
}
|
|
377
|
-
},
|
|
378
|
-
watch: {
|
|
379
|
-
'all'(val) {
|
|
380
|
-
if (val) {
|
|
381
|
-
this.modelval = this.bodyData
|
|
382
|
-
} else {
|
|
383
|
-
this.modelval = defaultPrint.config
|
|
384
|
-
this.put()
|
|
385
|
-
}
|
|
386
|
-
},
|
|
387
|
-
'modelval.length'() {
|
|
388
|
-
this.put()
|
|
389
|
-
},
|
|
390
|
-
},
|
|
391
|
-
computed: {
|
|
392
|
-
getCondition() {
|
|
393
|
-
return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
|
|
394
|
-
},
|
|
395
|
-
getfield() {
|
|
396
|
-
return exportConfig.changemeterConfig
|
|
397
|
-
},
|
|
398
|
-
field_name() {
|
|
399
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('更改内容')]
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row foot_tabset" @keyup.enter="search">
|
|
3
|
+
<div class="basic-main">
|
|
4
|
+
<div class="flex" v-if="!show">
|
|
5
|
+
|
|
6
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
7
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
8
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
9
|
+
<div class="row">
|
|
10
|
+
<div class="col-sm-2 form-group ">
|
|
11
|
+
<label class="font_normal_body">客户编号</label>
|
|
12
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
13
|
+
condition="f_userinfo_code = '{}' " placeholder="客户编号">
|
|
14
|
+
</div>
|
|
15
|
+
<div class="col-sm-2 form-group">
|
|
16
|
+
<label class="font_normal_body">客户名称</label>
|
|
17
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
18
|
+
condition="f_user_name like '%{}%'" placeholder="客户名称">
|
|
19
|
+
</div>
|
|
20
|
+
<div class="col-sm-2 form-group">
|
|
21
|
+
<label class="font_normal_body">开始日期</label>
|
|
22
|
+
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
23
|
+
v-model="model.startDate"
|
|
24
|
+
:value.sync="model.startDate"
|
|
25
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
26
|
+
:show-reset-button="true"
|
|
27
|
+
condition="f_operate_date >= to_date('{}','yyyy-mm-dd hh24:mi:ss')">
|
|
28
|
+
</datepicker>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="col-sm-2 form-group">
|
|
31
|
+
<label class="font_normal_body">结束日期</label>
|
|
32
|
+
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
33
|
+
v-model="model.endDate"
|
|
34
|
+
:value.sync="model.endDate"
|
|
35
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
36
|
+
:show-reset-button="true"
|
|
37
|
+
condition="f_operate_date <= to_date('{}','yyyy-mm-dd hh24:mi:ss')">
|
|
38
|
+
</datepicker>
|
|
39
|
+
</div>
|
|
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
|
+
<!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
|
|
44
|
+
|
|
45
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
46
|
+
:field="$parent.$parent.getfield"
|
|
47
|
+
sqlurl="rs/logic/exportfile" sql-name="changeMeterQuery" template-name='换表查询导出'
|
|
48
|
+
v-if ="$parent.$parent.jurisdiction.includes('excel导出')"
|
|
49
|
+
:choose-col="true"></export-excel>
|
|
50
|
+
|
|
51
|
+
<div style="float: right" class="button_spacing"
|
|
52
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
53
|
+
@click="$parent.$parent.hidden()"></div>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
58
|
+
<res-select-group style="col-sm-2 form-group" :initres="$parent.$parent.initres"
|
|
59
|
+
@re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
60
|
+
<div class="col-sm-2 form-group">
|
|
61
|
+
<label class="font_normal_body">客户电话</label>
|
|
62
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
|
|
63
|
+
condition="f_user_phone like '%{}%'" placeholder="客户电话">
|
|
64
|
+
</div>
|
|
65
|
+
<div class="col-sm-2 form-group">
|
|
66
|
+
<label class="font_normal_body">更改内容</label>
|
|
67
|
+
<v-select :value.sync="model.f_field_name"
|
|
68
|
+
v-model="model.f_field_name"
|
|
69
|
+
:options='$parent.$parent.field_name' placeholder='请选择'
|
|
70
|
+
condition="f_field_name = '{}'"
|
|
71
|
+
close-on-select></v-select>
|
|
72
|
+
</div>
|
|
73
|
+
<div class="col-sm-2 form-group">
|
|
74
|
+
<label for="f_area_id" class="font_normal_body">小区编码</label>
|
|
75
|
+
<input id="f_area_id" type="text" style="width:60%" class="input_search" v-model="model.f_area_id"
|
|
76
|
+
condition="f_area_id = '{}'" placeholder='小区编码'>
|
|
77
|
+
</div>
|
|
78
|
+
<div class="col-sm-2 form-group">
|
|
79
|
+
<label class="font_normal_body"> 小区 </label>
|
|
80
|
+
<v-select :value.sync="model.f_residential_area"
|
|
81
|
+
class="select_list select"
|
|
82
|
+
enter-push
|
|
83
|
+
multiple="true"
|
|
84
|
+
v-model="model.f_residential_area"
|
|
85
|
+
style="width: 60%"
|
|
86
|
+
:options='$parent.$parent.residentialArea' placeholder='选择小区'
|
|
87
|
+
close-on-select>
|
|
88
|
+
</v-select>
|
|
89
|
+
</div>
|
|
90
|
+
<div class="col-sm-2 form-group">
|
|
91
|
+
<label class="font_normal_body">是否网厅</label>
|
|
92
|
+
<v-select :value.sync="$parent.$parent.f_online_hall"
|
|
93
|
+
:options="$parent.$parent.isOnlineHall"
|
|
94
|
+
:search="false"
|
|
95
|
+
placeholder='请选择'
|
|
96
|
+
condition="{}"
|
|
97
|
+
close-on-select></v-select>
|
|
98
|
+
</div>
|
|
99
|
+
<div class="col-sm-2 form-group">
|
|
100
|
+
<label class="font_normal_body">房产地址</label>
|
|
101
|
+
<input class="input_search" condition="f_house_address = '{}'"
|
|
102
|
+
placeholder='房产地址'
|
|
103
|
+
style="width:60%" type="text" v-model="model.f_house_address">
|
|
104
|
+
</div>
|
|
105
|
+
<div class="col-sm-2 form-group">
|
|
106
|
+
<label class="font_normal_body">用途</label>
|
|
107
|
+
<input class="input_search" condition="f_property_usage = '{}'"
|
|
108
|
+
placeholder='用途'
|
|
109
|
+
style="width:60%" type="text" v-model="model.f_property_usage">
|
|
110
|
+
</div>
|
|
111
|
+
<div class="col-sm-2 form-group">
|
|
112
|
+
<label class="font_normal_body">房型</label>
|
|
113
|
+
<input class="input_search" condition="f_house_type = '{}'"
|
|
114
|
+
placeholder='房型'
|
|
115
|
+
style="width:60%" type="text" v-model="model.f_house_type">
|
|
116
|
+
</div>
|
|
117
|
+
<div class="col-sm-2 form-group">
|
|
118
|
+
<label class="font_normal_body">是否一户多表</label>
|
|
119
|
+
<input class="input_search" condition="f_is_multi_meter = '{}'"
|
|
120
|
+
placeholder='是否一户多表'
|
|
121
|
+
style="width:60%" type="text" v-model="model.f_is_multi_meter">
|
|
122
|
+
</div>
|
|
123
|
+
<div class="col-sm-2 form-group">
|
|
124
|
+
<label class="font_normal_body">关联ID</label>
|
|
125
|
+
<input class="input_search" condition="f_house_id = '{}'"
|
|
126
|
+
placeholder='关联ID'
|
|
127
|
+
style="width:60%" type="text" v-model="model.f_house_id">
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
</criteria>
|
|
132
|
+
|
|
133
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid
|
|
134
|
+
@dblclick="$parent.$parent.toBusiness">
|
|
135
|
+
<template partial='head'>
|
|
136
|
+
<tr>
|
|
137
|
+
<th>
|
|
138
|
+
<nobr>客户编号</nobr>
|
|
139
|
+
</th>
|
|
140
|
+
<th>
|
|
141
|
+
<nobr>客户名称</nobr>
|
|
142
|
+
</th>
|
|
143
|
+
<th>
|
|
144
|
+
<nobr>客户电话</nobr>
|
|
145
|
+
</th>
|
|
146
|
+
<th>
|
|
147
|
+
<nobr>更改内容</nobr>
|
|
148
|
+
</th>
|
|
149
|
+
<th>
|
|
150
|
+
<nobr>更改前</nobr>
|
|
151
|
+
</th>
|
|
152
|
+
<th>
|
|
153
|
+
<nobr>更改后</nobr>
|
|
154
|
+
</th>
|
|
155
|
+
<th>
|
|
156
|
+
<nobr>操作人</nobr>
|
|
157
|
+
</th>
|
|
158
|
+
<th>
|
|
159
|
+
<nobr>操作日期</nobr>
|
|
160
|
+
</th>
|
|
161
|
+
<th>
|
|
162
|
+
<nobr>部门</nobr>
|
|
163
|
+
</th>
|
|
164
|
+
<th>
|
|
165
|
+
<nobr>公司</nobr>
|
|
166
|
+
</th>
|
|
167
|
+
</tr>
|
|
168
|
+
</template>
|
|
169
|
+
<template partial='body'>
|
|
170
|
+
<td style="text-align: center;">
|
|
171
|
+
<nobr>
|
|
172
|
+
<span @click="$parent.$parent.$parent.showmsg(row)"><a>{{ row.f_userinfo_code }}</a></span>
|
|
173
|
+
</nobr>
|
|
174
|
+
</td>
|
|
175
|
+
<td style="text-align: center;">
|
|
176
|
+
<nobr>{{ row.f_user_name }}</nobr>
|
|
177
|
+
</td>
|
|
178
|
+
<td style="text-align: center;">
|
|
179
|
+
<nobr>{{ row.f_user_phone }}</nobr>
|
|
180
|
+
</td>
|
|
181
|
+
<td style="text-align: center;">
|
|
182
|
+
<nobr>{{ row.f_field_name }}</nobr>
|
|
183
|
+
</td>
|
|
184
|
+
<td style="text-align: center;">
|
|
185
|
+
<nobr>{{ row.f_used_content }}</nobr>
|
|
186
|
+
</td>
|
|
187
|
+
<td style="text-align: center;">
|
|
188
|
+
<nobr>{{ row.f_new_content }}</nobr>
|
|
189
|
+
</td>
|
|
190
|
+
<td style="text-align: center;">
|
|
191
|
+
<nobr>{{ row.f_operator }}</nobr>
|
|
192
|
+
</td>
|
|
193
|
+
<td style="text-align: center;">
|
|
194
|
+
<nobr>{{ row.f_operate_date }}</nobr>
|
|
195
|
+
</td>
|
|
196
|
+
<td style="text-align: center;">
|
|
197
|
+
<nobr>{{ row.f_depname }}</nobr>
|
|
198
|
+
</td>
|
|
199
|
+
<td style="text-align: center;">
|
|
200
|
+
<nobr>{{ row.f_orgname }}</nobr>
|
|
201
|
+
</td>
|
|
202
|
+
</template>
|
|
203
|
+
<template partial='foot'></template>
|
|
204
|
+
</data-grid>
|
|
205
|
+
</criteria-paged>
|
|
206
|
+
</div>
|
|
207
|
+
|
|
208
|
+
</div>
|
|
209
|
+
</div>
|
|
210
|
+
</template>
|
|
211
|
+
|
|
212
|
+
<script>
|
|
213
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
214
|
+
import defaultPrint from '../config/DefaultPrint'
|
|
215
|
+
import exportConfig from '../config/exportConfig'
|
|
216
|
+
|
|
217
|
+
let readySomething = async function (self) {
|
|
218
|
+
|
|
219
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
|
|
220
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
221
|
+
// self.$refs.paged.$refs.cri.search()
|
|
222
|
+
await self.$MagLoadParams.loadParam()
|
|
223
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
224
|
+
}
|
|
225
|
+
export default {
|
|
226
|
+
data() {
|
|
227
|
+
return {
|
|
228
|
+
data: {},
|
|
229
|
+
meterbrands: [],
|
|
230
|
+
pricenames: [],
|
|
231
|
+
model: new PagedList('rs/sql/changeuserquery', 20),
|
|
232
|
+
criteriaShow: false,
|
|
233
|
+
orgCondtionStr: '',
|
|
234
|
+
modelval: [],
|
|
235
|
+
printshow: false,
|
|
236
|
+
jurisdiction:this.$login.r,
|
|
237
|
+
all: false,
|
|
238
|
+
fields: {},
|
|
239
|
+
initres: {
|
|
240
|
+
org: [this.$login.f.orgid],
|
|
241
|
+
dep: [],
|
|
242
|
+
user: [],
|
|
243
|
+
},
|
|
244
|
+
residentialArea:[],
|
|
245
|
+
area:[],
|
|
246
|
+
isOnlineHall: [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}],
|
|
247
|
+
f_online_hall: [],
|
|
248
|
+
show: false,
|
|
249
|
+
rowdata: {},
|
|
250
|
+
thead: '',
|
|
251
|
+
tfoot: '',
|
|
252
|
+
|
|
253
|
+
// tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
//合计数据
|
|
257
|
+
sumsmodel: {}
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
ready() {
|
|
261
|
+
this.getaddress()
|
|
262
|
+
readySomething(this)
|
|
263
|
+
},
|
|
264
|
+
methods: {
|
|
265
|
+
async getaddress(){
|
|
266
|
+
console.log('开始获取小区')
|
|
267
|
+
let HttpReset = new HttpResetClass()
|
|
268
|
+
var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
|
|
269
|
+
data: {
|
|
270
|
+
condition: '1=1'
|
|
271
|
+
}
|
|
272
|
+
}, {resolveMsg: null, rejectMsg: '获取小区失败!'})
|
|
273
|
+
console.log('小区',data)
|
|
274
|
+
let house = []
|
|
275
|
+
for (let row of data.data){
|
|
276
|
+
console.log('开始保存小区')
|
|
277
|
+
house.push({label: row.f_residential_area, value: row.f_residential_area})
|
|
278
|
+
}
|
|
279
|
+
this.residentialArea = house
|
|
280
|
+
},
|
|
281
|
+
search() {
|
|
282
|
+
this.$refs.paged.$refs.cri.search()
|
|
283
|
+
},
|
|
284
|
+
cancel() {
|
|
285
|
+
this.show = false
|
|
286
|
+
},
|
|
287
|
+
showmsg(obj) {
|
|
288
|
+
this.rowdata = obj
|
|
289
|
+
this.show = true
|
|
290
|
+
},
|
|
291
|
+
|
|
292
|
+
selfSearch(args) {
|
|
293
|
+
if(this.f_online_hall[0] === '是'){
|
|
294
|
+
args.condition += ` and f_source = '网厅'`
|
|
295
|
+
} else if (this.f_online_hall[0] === '否'){
|
|
296
|
+
args.condition += ` and f_source is null`
|
|
297
|
+
}
|
|
298
|
+
//小区查询条件
|
|
299
|
+
this.area = this.$refs.paged.$refs.cri.model.f_residential_area
|
|
300
|
+
console.log("=====小区model绑定====",this.area)
|
|
301
|
+
if(this.area.length !== 0){
|
|
302
|
+
let str = JSON.stringify(this.area)
|
|
303
|
+
str = str.replace(/"/g,`'`)
|
|
304
|
+
str = str.replace(/\[/g,``)
|
|
305
|
+
str = str.replace(/\]/g,``)
|
|
306
|
+
console.log("=====小区model22222222222绑定====",str)
|
|
307
|
+
//查询多个小区时条件
|
|
308
|
+
args.condition += ` and f_residential_area in ( ${str} )`
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
312
|
+
this.model.search(args.condition, args.model)
|
|
313
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
314
|
+
},
|
|
315
|
+
clear() {
|
|
316
|
+
//清空部门和人员
|
|
317
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
318
|
+
//部门和人员变为全选
|
|
319
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
320
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
321
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
322
|
+
this.$refs.paged.$refs.cri.model[key] = ''
|
|
323
|
+
})
|
|
324
|
+
},
|
|
325
|
+
show() {
|
|
326
|
+
this.criteriaShow = true
|
|
327
|
+
},
|
|
328
|
+
hidden() {
|
|
329
|
+
this.criteriaShow = !this.criteriaShow
|
|
330
|
+
},
|
|
331
|
+
getRes(obj) {
|
|
332
|
+
console.log(obj, "========")
|
|
333
|
+
this.orgCondtionStr = obj
|
|
334
|
+
},
|
|
335
|
+
stamp() {
|
|
336
|
+
this.all = false
|
|
337
|
+
//默认选择要打印的列
|
|
338
|
+
this.modelval = defaultPrint.config
|
|
339
|
+
this.fields = this.getfield
|
|
340
|
+
console.log('所有打印字段', this.fields)
|
|
341
|
+
this.printshow = true
|
|
342
|
+
this.put()
|
|
343
|
+
},
|
|
344
|
+
dealmsg(val) {
|
|
345
|
+
console.log('---------------dealmsg')
|
|
346
|
+
val.model = this.model.model
|
|
347
|
+
this.$dispatch('deal-msg', val)
|
|
348
|
+
},
|
|
349
|
+
put() {
|
|
350
|
+
// 对Modelval进行排序
|
|
351
|
+
this.sortModelval()
|
|
352
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
|
|
353
|
+
for (let key of this.modelval) {
|
|
354
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
355
|
+
}
|
|
356
|
+
this.thead += '</tr>'
|
|
357
|
+
},
|
|
358
|
+
print() {
|
|
359
|
+
this.$refs.print.PrintAsFile()
|
|
360
|
+
this.printshow = false
|
|
361
|
+
},
|
|
362
|
+
close() {
|
|
363
|
+
this.printshow = false
|
|
364
|
+
this.all = false
|
|
365
|
+
},
|
|
366
|
+
// 对选择的列进行排序
|
|
367
|
+
sortModelval() {
|
|
368
|
+
let sortModel = []
|
|
369
|
+
Object.keys(this.fields).forEach((key) => {
|
|
370
|
+
if (this.modelval.includes(key)) {
|
|
371
|
+
sortModel.push(key)
|
|
372
|
+
}
|
|
373
|
+
})
|
|
374
|
+
this.modelval = sortModel
|
|
375
|
+
console.log('选择的打印的字段', this.modelval)
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
watch: {
|
|
379
|
+
'all'(val) {
|
|
380
|
+
if (val) {
|
|
381
|
+
this.modelval = this.bodyData
|
|
382
|
+
} else {
|
|
383
|
+
this.modelval = defaultPrint.config
|
|
384
|
+
this.put()
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
'modelval.length'() {
|
|
388
|
+
this.put()
|
|
389
|
+
},
|
|
390
|
+
},
|
|
391
|
+
computed: {
|
|
392
|
+
getCondition() {
|
|
393
|
+
return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
|
|
394
|
+
},
|
|
395
|
+
getfield() {
|
|
396
|
+
return exportConfig.changemeterConfig
|
|
397
|
+
},
|
|
398
|
+
field_name() {
|
|
399
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('更改内容')]
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
</script>
|