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,422 +1,422 @@
|
|
|
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
|
-
|
|
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_id"
|
|
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
|
-
:size="model.f_user_name ? model.f_user_name.length * 2 : 1">
|
|
20
|
-
</div>
|
|
21
|
-
<div class="col-sm-2 form-group">
|
|
22
|
-
<label for="startDate" class="font_normal_body">开始日期</label>
|
|
23
|
-
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
24
|
-
v-model="model.startDate"
|
|
25
|
-
:value.sync="model.startDate"
|
|
26
|
-
:format="'yyyy-MM-dd'"
|
|
27
|
-
:show-reset-button="true"
|
|
28
|
-
condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
|
|
29
|
-
</datepicker>
|
|
30
|
-
</div>
|
|
31
|
-
<div class="col-sm-2 form-group">
|
|
32
|
-
<label for="endDate" class="font_normal_body">结束日期</label>
|
|
33
|
-
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
34
|
-
v-model="model.endDate"
|
|
35
|
-
:value.sync="model.endDate"
|
|
36
|
-
:format="'yyyy-MM-dd'"
|
|
37
|
-
:show-reset-button="true"
|
|
38
|
-
condition="f_operate_date <= to_date('{} 23:59:59','yyyy-mm-dd hh24:mi:ss')">
|
|
39
|
-
</datepicker>
|
|
40
|
-
</div>
|
|
41
|
-
<div class="span" style="float:right;">
|
|
42
|
-
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
43
|
-
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
44
|
-
<!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
|
|
45
|
-
|
|
46
|
-
<export-excel :data="$parent.$parent.getCondition"
|
|
47
|
-
:field="$parent.$parent.getfield"
|
|
48
|
-
sqlurl="rs/logic/exportfile" sql-name="enableQuery" template-name='启用查询导出'
|
|
49
|
-
v-if ="$parent.$parent.jurisdiction.includes('excel导出')"
|
|
50
|
-
:choose-col="true"></export-excel>
|
|
51
|
-
|
|
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
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.f_address"
|
|
79
|
-
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
80
|
-
</div>
|
|
81
|
-
<div class="col-sm-2 form-group">
|
|
82
|
-
<label class="font_normal_body">是否<br/>手持设备</label>
|
|
83
|
-
<v-select :value.sync="$parent.$parent.f_outlets"
|
|
84
|
-
:options="$parent.$parent.isPos"
|
|
85
|
-
:search="false"
|
|
86
|
-
placeholder='请选择'
|
|
87
|
-
condition="{}"
|
|
88
|
-
close-on-select></v-select>
|
|
89
|
-
</div>
|
|
90
|
-
<div class="col-sm-2 form-group">
|
|
91
|
-
<label class="font_normal_body">房产地址</label>
|
|
92
|
-
<input class="input_search" condition="f_house_address = '{}'"
|
|
93
|
-
placeholder='房产地址'
|
|
94
|
-
style="width:60%" type="text" v-model="model.f_house_address">
|
|
95
|
-
</div>
|
|
96
|
-
<div class="col-sm-2 form-group">
|
|
97
|
-
<label class="font_normal_body">用途</label>
|
|
98
|
-
<input class="input_search" condition="f_property_usage = '{}'"
|
|
99
|
-
placeholder='用途'
|
|
100
|
-
style="width:60%" type="text" v-model="model.f_property_usage">
|
|
101
|
-
</div>
|
|
102
|
-
<div class="col-sm-2 form-group">
|
|
103
|
-
<label class="font_normal_body">房型</label>
|
|
104
|
-
<input class="input_search" condition="f_house_type = '{}'"
|
|
105
|
-
placeholder='房型'
|
|
106
|
-
style="width:60%" type="text" v-model="model.f_house_type">
|
|
107
|
-
</div>
|
|
108
|
-
<div class="col-sm-2 form-group">
|
|
109
|
-
<label class="font_normal_body">是否一户多表</label>
|
|
110
|
-
<input class="input_search" condition="f_is_multi_meter = '{}'"
|
|
111
|
-
placeholder='是否一户多表'
|
|
112
|
-
style="width:60%" type="text" v-model="model.f_is_multi_meter">
|
|
113
|
-
</div>
|
|
114
|
-
<div class="col-sm-2 form-group">
|
|
115
|
-
<label class="font_normal_body">关联ID</label>
|
|
116
|
-
<input class="input_search" condition="f_house_id = '{}'"
|
|
117
|
-
placeholder='关联ID'
|
|
118
|
-
style="width:60%" type="text" v-model="model.f_house_id">
|
|
119
|
-
</div>
|
|
120
|
-
</div>
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
</div>
|
|
124
|
-
</criteria>
|
|
125
|
-
|
|
126
|
-
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
127
|
-
<template partial='head'>
|
|
128
|
-
<tr>
|
|
129
|
-
<th>
|
|
130
|
-
<nobr>客户编号</nobr>
|
|
131
|
-
</th>
|
|
132
|
-
<th>
|
|
133
|
-
<nobr>客户名称</nobr>
|
|
134
|
-
</th>
|
|
135
|
-
<th>
|
|
136
|
-
<nobr>客户地址</nobr>
|
|
137
|
-
</th>
|
|
138
|
-
<th>
|
|
139
|
-
<nobr>启用原因</nobr>
|
|
140
|
-
</th>
|
|
141
|
-
<th>
|
|
142
|
-
<nobr>其他原因</nobr>
|
|
143
|
-
</th>
|
|
144
|
-
<th>
|
|
145
|
-
<nobr>状态</nobr>
|
|
146
|
-
</th>
|
|
147
|
-
<th>
|
|
148
|
-
<nobr>启用日期</nobr>
|
|
149
|
-
</th>
|
|
150
|
-
<th>
|
|
151
|
-
<nobr>人员</nobr>
|
|
152
|
-
</th>
|
|
153
|
-
<th>
|
|
154
|
-
<nobr>部门</nobr>
|
|
155
|
-
</th>
|
|
156
|
-
<th>
|
|
157
|
-
<nobr>网点</nobr>
|
|
158
|
-
</th>
|
|
159
|
-
<th>
|
|
160
|
-
<nobr>公司</nobr>
|
|
161
|
-
</th>
|
|
162
|
-
</tr>
|
|
163
|
-
</template>
|
|
164
|
-
<template partial='body'>
|
|
165
|
-
<td style="text-align: center;">
|
|
166
|
-
<nobr>
|
|
167
|
-
<span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
|
|
168
|
-
</td>
|
|
169
|
-
<td style="text-align: center;">
|
|
170
|
-
<nobr>{{row.f_user_name}}</nobr>
|
|
171
|
-
</td>
|
|
172
|
-
<td style="text-align: center;">
|
|
173
|
-
<nobr>{{row.f_address}}</nobr>
|
|
174
|
-
</td>
|
|
175
|
-
<td style="text-align: center;">
|
|
176
|
-
<nobr>{{row.f_enable_reason}}</nobr>
|
|
177
|
-
</td>
|
|
178
|
-
<td style="text-align: center;">
|
|
179
|
-
<nobr>{{row.f_othereason}}</nobr>
|
|
180
|
-
</td>
|
|
181
|
-
<td style="text-align: center;">
|
|
182
|
-
<nobr>{{row.f_state}}</nobr>
|
|
183
|
-
</td>
|
|
184
|
-
<td style="text-align: center;">
|
|
185
|
-
<nobr>{{row.f_operate_date}}</nobr>
|
|
186
|
-
</td>
|
|
187
|
-
<td style="text-align: center;">
|
|
188
|
-
<nobr>{{row.f_operator}}</nobr>
|
|
189
|
-
</td>
|
|
190
|
-
<td style="text-align: center;">
|
|
191
|
-
<nobr>{{row.f_depname}}</nobr>
|
|
192
|
-
</td>
|
|
193
|
-
<td style="text-align: center;">
|
|
194
|
-
<nobr>{{row.f_outlets}}</nobr>
|
|
195
|
-
</td>
|
|
196
|
-
<td style="text-align: center;">
|
|
197
|
-
<nobr>{{row.f_orgname}}</nobr>
|
|
198
|
-
</td>
|
|
199
|
-
</template>
|
|
200
|
-
<template partial='foot'></template>
|
|
201
|
-
</data-grid>
|
|
202
|
-
</criteria-paged>
|
|
203
|
-
|
|
204
|
-
<table class="table-hover">
|
|
205
|
-
<tr style="position: relative" class="table-bordered">
|
|
206
|
-
<td
|
|
207
|
-
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
208
|
-
汇总信息
|
|
209
|
-
</td>
|
|
210
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">合计: {{sumsmodel.f_pregas}}</td>
|
|
211
|
-
</tr>
|
|
212
|
-
</table>
|
|
213
|
-
</div>
|
|
214
|
-
<div v-if="show">
|
|
215
|
-
<user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
|
|
216
|
-
</div>
|
|
217
|
-
<div v-if="showAttachment">
|
|
218
|
-
<attachment-viewer :business-id="currentRow && currentRow.id" table-name="t_enable" @close="closeAttachment"></attachment-viewer>
|
|
219
|
-
</div>
|
|
220
|
-
</div>
|
|
221
|
-
</div>
|
|
222
|
-
</template>
|
|
223
|
-
|
|
224
|
-
<script>
|
|
225
|
-
import {HttpResetClass, PagedList} from 'vue-client'
|
|
226
|
-
import defaultPrint from '../config/DefaultPrint'
|
|
227
|
-
import exportConfig from '../config/exportConfig'
|
|
228
|
-
import AttachmentViewer from './AttachmentViewer.vue'
|
|
229
|
-
|
|
230
|
-
let readySomething = async function (self) {
|
|
231
|
-
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
|
|
232
|
-
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
|
|
233
|
-
// await self.$refs.paged.$refs.cri.search()
|
|
234
|
-
await self.$MagLoadParams.loadParam()
|
|
235
|
-
|
|
236
|
-
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
237
|
-
}
|
|
238
|
-
export default {
|
|
239
|
-
components: {
|
|
240
|
-
AttachmentViewer
|
|
241
|
-
},
|
|
242
|
-
data() {
|
|
243
|
-
return {
|
|
244
|
-
data: {},
|
|
245
|
-
model: new PagedList('rs/sql/enableQuery', 20, {}),
|
|
246
|
-
criteriaShow: false,
|
|
247
|
-
headData: ["客户编号", "客户名称", "操作人", "操作日期", "启用状态", "停用原因", "其他停用原因", "同步状态"],
|
|
248
|
-
bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_othereason", "f_sendsuccess"],
|
|
249
|
-
orgCondtionStr: '',
|
|
250
|
-
modelval: [],
|
|
251
|
-
printshow: false,
|
|
252
|
-
jurisdiction:this.$login.r,
|
|
253
|
-
all: false,
|
|
254
|
-
fields: {},
|
|
255
|
-
initres: {
|
|
256
|
-
org:[this.$login.f.orgid],
|
|
257
|
-
dep:[],
|
|
258
|
-
user:[],
|
|
259
|
-
},
|
|
260
|
-
residentialArea:[],
|
|
261
|
-
area:[],
|
|
262
|
-
f_outlets: [],
|
|
263
|
-
isPos: [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}],
|
|
264
|
-
show:false,
|
|
265
|
-
showAttachment: false,
|
|
266
|
-
currentRow: null,
|
|
267
|
-
rowdata:{},
|
|
268
|
-
thead: '',
|
|
269
|
-
tfoot: '',
|
|
270
|
-
//合计数据
|
|
271
|
-
sumsmodel: {}
|
|
272
|
-
}
|
|
273
|
-
},
|
|
274
|
-
ready() {
|
|
275
|
-
this.getaddress()
|
|
276
|
-
|
|
277
|
-
readySomething(this).then(() => {
|
|
278
|
-
this.$emit('ready')
|
|
279
|
-
}).catch((error) => {
|
|
280
|
-
this.$emit('error', error)
|
|
281
|
-
})
|
|
282
|
-
},
|
|
283
|
-
methods: {
|
|
284
|
-
async getaddress(){
|
|
285
|
-
console.log('开始获取小区')
|
|
286
|
-
let HttpReset = new HttpResetClass()
|
|
287
|
-
var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
|
|
288
|
-
data: {
|
|
289
|
-
condition: '1=1'
|
|
290
|
-
}
|
|
291
|
-
}, {resolveMsg: null, rejectMsg: '获取小区失败!'})
|
|
292
|
-
console.log('小区',data)
|
|
293
|
-
let house = []
|
|
294
|
-
for (let row of data.data){
|
|
295
|
-
console.log('开始保存小区')
|
|
296
|
-
house.push({label: row.f_residential_area, value: row.f_residential_area})
|
|
297
|
-
}
|
|
298
|
-
this.residentialArea = house
|
|
299
|
-
},
|
|
300
|
-
search(){
|
|
301
|
-
this.$refs.paged.$refs.cri.search()
|
|
302
|
-
},
|
|
303
|
-
cancel() {
|
|
304
|
-
this.show = false
|
|
305
|
-
},
|
|
306
|
-
selfSearch(args) {
|
|
307
|
-
//小区查询条件
|
|
308
|
-
this.area = this.$refs.paged.$refs.cri.model.f_residential_area
|
|
309
|
-
console.log("=====小区model绑定====",this.area)
|
|
310
|
-
if(this.area.length !== 0){
|
|
311
|
-
let str = JSON.stringify(this.area)
|
|
312
|
-
str = str.replace(/"/g,`'`)
|
|
313
|
-
str = str.replace(/\[/g,``)
|
|
314
|
-
str = str.replace(/\]/g,``)
|
|
315
|
-
console.log("=====小区model22222222222绑定====",str)
|
|
316
|
-
//查询多个小区时条件
|
|
317
|
-
args.condition += ` and f_residential_area in ( ${str} )`
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
// 手持设备查询条件
|
|
321
|
-
if(this.f_outlets[0] === '是'){
|
|
322
|
-
args.condition+= ` and f_outlets = '手持设备'`
|
|
323
|
-
} else if (this.f_outlets[0] === '否'){
|
|
324
|
-
args.condition+= ` and f_outlets is null`
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
args.condition = `${args.condition} ` + this.orgCondtionStr
|
|
328
|
-
this.model.search(args.condition, args.model)
|
|
329
|
-
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
330
|
-
},
|
|
331
|
-
|
|
332
|
-
clear() {
|
|
333
|
-
//清空部门和人员
|
|
334
|
-
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
335
|
-
//部门和人员变为全选
|
|
336
|
-
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
337
|
-
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
338
|
-
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
339
|
-
this.$refs.paged.$refs.cri.model[key] = ''
|
|
340
|
-
})
|
|
341
|
-
},
|
|
342
|
-
dealmsg(val) {
|
|
343
|
-
console.log('---------------dealmsg')
|
|
344
|
-
this.rowdata=val
|
|
345
|
-
this.show=true
|
|
346
|
-
val.model = this.model.model
|
|
347
|
-
this.$dispatch('deal-msg', val)
|
|
348
|
-
},
|
|
349
|
-
view(row) {
|
|
350
|
-
this.currentRow = row;
|
|
351
|
-
this.showAttachment = true;
|
|
352
|
-
},
|
|
353
|
-
closeAttachment() {
|
|
354
|
-
this.showAttachment = false;
|
|
355
|
-
},
|
|
356
|
-
hidden() {
|
|
357
|
-
this.criteriaShow = !this.criteriaShow
|
|
358
|
-
},
|
|
359
|
-
getRes(obj) {
|
|
360
|
-
this.orgCondtionStr = obj
|
|
361
|
-
},
|
|
362
|
-
stamp() {
|
|
363
|
-
this.all = false
|
|
364
|
-
//默认选择要打印的列
|
|
365
|
-
this.modelval = defaultPrint.config
|
|
366
|
-
this.fields = this.getfield
|
|
367
|
-
console.log('所有打印字段', this.fields)
|
|
368
|
-
this.printshow = true
|
|
369
|
-
this.put()
|
|
370
|
-
},
|
|
371
|
-
put() {
|
|
372
|
-
// 对Modelval进行排序
|
|
373
|
-
this.sortModelval()
|
|
374
|
-
this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
|
|
375
|
-
for (let key of this.modelval) {
|
|
376
|
-
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
377
|
-
}
|
|
378
|
-
this.thead += '</tr>'
|
|
379
|
-
},
|
|
380
|
-
print() {
|
|
381
|
-
this.$refs.print.PrintAsFile()
|
|
382
|
-
this.printshow = false
|
|
383
|
-
},
|
|
384
|
-
close() {
|
|
385
|
-
this.printshow = false
|
|
386
|
-
this.all = false
|
|
387
|
-
},
|
|
388
|
-
// 对选择的列进行排序
|
|
389
|
-
sortModelval() {
|
|
390
|
-
let sortModel = []
|
|
391
|
-
Object.keys(this.fields).forEach((key) => {
|
|
392
|
-
if (this.modelval.includes(key)) {
|
|
393
|
-
sortModel.push(key)
|
|
394
|
-
}
|
|
395
|
-
})
|
|
396
|
-
this.modelval = sortModel
|
|
397
|
-
console.log('选择的打印的字段', this.modelval)
|
|
398
|
-
}
|
|
399
|
-
},
|
|
400
|
-
watch: {
|
|
401
|
-
'all'(val) {
|
|
402
|
-
if (val) {
|
|
403
|
-
this.modelval = this.bodyData
|
|
404
|
-
} else {
|
|
405
|
-
this.modelval = defaultPrint.config
|
|
406
|
-
this.put()
|
|
407
|
-
}
|
|
408
|
-
},
|
|
409
|
-
'modelval.length'() {
|
|
410
|
-
this.put()
|
|
411
|
-
},
|
|
412
|
-
},
|
|
413
|
-
computed: {
|
|
414
|
-
getCondition() {
|
|
415
|
-
return {condition: `${this.$refs.paged.$refs.cri.condition} ` + this.orgCondtionStr}
|
|
416
|
-
},
|
|
417
|
-
getfield() {
|
|
418
|
-
return exportConfig.enableConfig
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
</script>
|
|
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
|
+
|
|
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_id"
|
|
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
|
+
:size="model.f_user_name ? model.f_user_name.length * 2 : 1">
|
|
20
|
+
</div>
|
|
21
|
+
<div class="col-sm-2 form-group">
|
|
22
|
+
<label for="startDate" class="font_normal_body">开始日期</label>
|
|
23
|
+
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
24
|
+
v-model="model.startDate"
|
|
25
|
+
:value.sync="model.startDate"
|
|
26
|
+
:format="'yyyy-MM-dd'"
|
|
27
|
+
:show-reset-button="true"
|
|
28
|
+
condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
|
|
29
|
+
</datepicker>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="col-sm-2 form-group">
|
|
32
|
+
<label for="endDate" class="font_normal_body">结束日期</label>
|
|
33
|
+
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
34
|
+
v-model="model.endDate"
|
|
35
|
+
:value.sync="model.endDate"
|
|
36
|
+
:format="'yyyy-MM-dd'"
|
|
37
|
+
:show-reset-button="true"
|
|
38
|
+
condition="f_operate_date <= to_date('{} 23:59:59','yyyy-mm-dd hh24:mi:ss')">
|
|
39
|
+
</datepicker>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="span" style="float:right;">
|
|
42
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
43
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
44
|
+
<!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
|
|
45
|
+
|
|
46
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
47
|
+
:field="$parent.$parent.getfield"
|
|
48
|
+
sqlurl="rs/logic/exportfile" sql-name="enableQuery" template-name='启用查询导出'
|
|
49
|
+
v-if ="$parent.$parent.jurisdiction.includes('excel导出')"
|
|
50
|
+
:choose-col="true"></export-excel>
|
|
51
|
+
|
|
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
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_address"
|
|
79
|
+
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="col-sm-2 form-group">
|
|
82
|
+
<label class="font_normal_body">是否<br/>手持设备</label>
|
|
83
|
+
<v-select :value.sync="$parent.$parent.f_outlets"
|
|
84
|
+
:options="$parent.$parent.isPos"
|
|
85
|
+
:search="false"
|
|
86
|
+
placeholder='请选择'
|
|
87
|
+
condition="{}"
|
|
88
|
+
close-on-select></v-select>
|
|
89
|
+
</div>
|
|
90
|
+
<div class="col-sm-2 form-group">
|
|
91
|
+
<label class="font_normal_body">房产地址</label>
|
|
92
|
+
<input class="input_search" condition="f_house_address = '{}'"
|
|
93
|
+
placeholder='房产地址'
|
|
94
|
+
style="width:60%" type="text" v-model="model.f_house_address">
|
|
95
|
+
</div>
|
|
96
|
+
<div class="col-sm-2 form-group">
|
|
97
|
+
<label class="font_normal_body">用途</label>
|
|
98
|
+
<input class="input_search" condition="f_property_usage = '{}'"
|
|
99
|
+
placeholder='用途'
|
|
100
|
+
style="width:60%" type="text" v-model="model.f_property_usage">
|
|
101
|
+
</div>
|
|
102
|
+
<div class="col-sm-2 form-group">
|
|
103
|
+
<label class="font_normal_body">房型</label>
|
|
104
|
+
<input class="input_search" condition="f_house_type = '{}'"
|
|
105
|
+
placeholder='房型'
|
|
106
|
+
style="width:60%" type="text" v-model="model.f_house_type">
|
|
107
|
+
</div>
|
|
108
|
+
<div class="col-sm-2 form-group">
|
|
109
|
+
<label class="font_normal_body">是否一户多表</label>
|
|
110
|
+
<input class="input_search" condition="f_is_multi_meter = '{}'"
|
|
111
|
+
placeholder='是否一户多表'
|
|
112
|
+
style="width:60%" type="text" v-model="model.f_is_multi_meter">
|
|
113
|
+
</div>
|
|
114
|
+
<div class="col-sm-2 form-group">
|
|
115
|
+
<label class="font_normal_body">关联ID</label>
|
|
116
|
+
<input class="input_search" condition="f_house_id = '{}'"
|
|
117
|
+
placeholder='关联ID'
|
|
118
|
+
style="width:60%" type="text" v-model="model.f_house_id">
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
</div>
|
|
124
|
+
</criteria>
|
|
125
|
+
|
|
126
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
127
|
+
<template partial='head'>
|
|
128
|
+
<tr>
|
|
129
|
+
<th>
|
|
130
|
+
<nobr>客户编号</nobr>
|
|
131
|
+
</th>
|
|
132
|
+
<th>
|
|
133
|
+
<nobr>客户名称</nobr>
|
|
134
|
+
</th>
|
|
135
|
+
<th>
|
|
136
|
+
<nobr>客户地址</nobr>
|
|
137
|
+
</th>
|
|
138
|
+
<th>
|
|
139
|
+
<nobr>启用原因</nobr>
|
|
140
|
+
</th>
|
|
141
|
+
<th>
|
|
142
|
+
<nobr>其他原因</nobr>
|
|
143
|
+
</th>
|
|
144
|
+
<th>
|
|
145
|
+
<nobr>状态</nobr>
|
|
146
|
+
</th>
|
|
147
|
+
<th>
|
|
148
|
+
<nobr>启用日期</nobr>
|
|
149
|
+
</th>
|
|
150
|
+
<th>
|
|
151
|
+
<nobr>人员</nobr>
|
|
152
|
+
</th>
|
|
153
|
+
<th>
|
|
154
|
+
<nobr>部门</nobr>
|
|
155
|
+
</th>
|
|
156
|
+
<th>
|
|
157
|
+
<nobr>网点</nobr>
|
|
158
|
+
</th>
|
|
159
|
+
<th>
|
|
160
|
+
<nobr>公司</nobr>
|
|
161
|
+
</th>
|
|
162
|
+
</tr>
|
|
163
|
+
</template>
|
|
164
|
+
<template partial='body'>
|
|
165
|
+
<td style="text-align: center;">
|
|
166
|
+
<nobr>
|
|
167
|
+
<span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
|
|
168
|
+
</td>
|
|
169
|
+
<td style="text-align: center;">
|
|
170
|
+
<nobr>{{row.f_user_name}}</nobr>
|
|
171
|
+
</td>
|
|
172
|
+
<td style="text-align: center;">
|
|
173
|
+
<nobr>{{row.f_address}}</nobr>
|
|
174
|
+
</td>
|
|
175
|
+
<td style="text-align: center;">
|
|
176
|
+
<nobr>{{row.f_enable_reason}}</nobr>
|
|
177
|
+
</td>
|
|
178
|
+
<td style="text-align: center;">
|
|
179
|
+
<nobr>{{row.f_othereason}}</nobr>
|
|
180
|
+
</td>
|
|
181
|
+
<td style="text-align: center;">
|
|
182
|
+
<nobr>{{row.f_state}}</nobr>
|
|
183
|
+
</td>
|
|
184
|
+
<td style="text-align: center;">
|
|
185
|
+
<nobr>{{row.f_operate_date}}</nobr>
|
|
186
|
+
</td>
|
|
187
|
+
<td style="text-align: center;">
|
|
188
|
+
<nobr>{{row.f_operator}}</nobr>
|
|
189
|
+
</td>
|
|
190
|
+
<td style="text-align: center;">
|
|
191
|
+
<nobr>{{row.f_depname}}</nobr>
|
|
192
|
+
</td>
|
|
193
|
+
<td style="text-align: center;">
|
|
194
|
+
<nobr>{{row.f_outlets}}</nobr>
|
|
195
|
+
</td>
|
|
196
|
+
<td style="text-align: center;">
|
|
197
|
+
<nobr>{{row.f_orgname}}</nobr>
|
|
198
|
+
</td>
|
|
199
|
+
</template>
|
|
200
|
+
<template partial='foot'></template>
|
|
201
|
+
</data-grid>
|
|
202
|
+
</criteria-paged>
|
|
203
|
+
|
|
204
|
+
<table class="table-hover">
|
|
205
|
+
<tr style="position: relative" class="table-bordered">
|
|
206
|
+
<td
|
|
207
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
208
|
+
汇总信息
|
|
209
|
+
</td>
|
|
210
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">合计: {{sumsmodel.f_pregas}}</td>
|
|
211
|
+
</tr>
|
|
212
|
+
</table>
|
|
213
|
+
</div>
|
|
214
|
+
<div v-if="show">
|
|
215
|
+
<user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
|
|
216
|
+
</div>
|
|
217
|
+
<div v-if="showAttachment">
|
|
218
|
+
<attachment-viewer :business-id="currentRow && currentRow.id" table-name="t_enable" @close="closeAttachment"></attachment-viewer>
|
|
219
|
+
</div>
|
|
220
|
+
</div>
|
|
221
|
+
</div>
|
|
222
|
+
</template>
|
|
223
|
+
|
|
224
|
+
<script>
|
|
225
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
226
|
+
import defaultPrint from '../config/DefaultPrint'
|
|
227
|
+
import exportConfig from '../config/exportConfig'
|
|
228
|
+
import AttachmentViewer from './AttachmentViewer.vue'
|
|
229
|
+
|
|
230
|
+
let readySomething = async function (self) {
|
|
231
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
|
|
232
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
|
|
233
|
+
// await self.$refs.paged.$refs.cri.search()
|
|
234
|
+
await self.$MagLoadParams.loadParam()
|
|
235
|
+
|
|
236
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
237
|
+
}
|
|
238
|
+
export default {
|
|
239
|
+
components: {
|
|
240
|
+
AttachmentViewer
|
|
241
|
+
},
|
|
242
|
+
data() {
|
|
243
|
+
return {
|
|
244
|
+
data: {},
|
|
245
|
+
model: new PagedList('rs/sql/enableQuery', 20, {}),
|
|
246
|
+
criteriaShow: false,
|
|
247
|
+
headData: ["客户编号", "客户名称", "操作人", "操作日期", "启用状态", "停用原因", "其他停用原因", "同步状态"],
|
|
248
|
+
bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_othereason", "f_sendsuccess"],
|
|
249
|
+
orgCondtionStr: '',
|
|
250
|
+
modelval: [],
|
|
251
|
+
printshow: false,
|
|
252
|
+
jurisdiction:this.$login.r,
|
|
253
|
+
all: false,
|
|
254
|
+
fields: {},
|
|
255
|
+
initres: {
|
|
256
|
+
org:[this.$login.f.orgid],
|
|
257
|
+
dep:[],
|
|
258
|
+
user:[],
|
|
259
|
+
},
|
|
260
|
+
residentialArea:[],
|
|
261
|
+
area:[],
|
|
262
|
+
f_outlets: [],
|
|
263
|
+
isPos: [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}],
|
|
264
|
+
show:false,
|
|
265
|
+
showAttachment: false,
|
|
266
|
+
currentRow: null,
|
|
267
|
+
rowdata:{},
|
|
268
|
+
thead: '',
|
|
269
|
+
tfoot: '',
|
|
270
|
+
//合计数据
|
|
271
|
+
sumsmodel: {}
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
ready() {
|
|
275
|
+
this.getaddress()
|
|
276
|
+
|
|
277
|
+
readySomething(this).then(() => {
|
|
278
|
+
this.$emit('ready')
|
|
279
|
+
}).catch((error) => {
|
|
280
|
+
this.$emit('error', error)
|
|
281
|
+
})
|
|
282
|
+
},
|
|
283
|
+
methods: {
|
|
284
|
+
async getaddress(){
|
|
285
|
+
console.log('开始获取小区')
|
|
286
|
+
let HttpReset = new HttpResetClass()
|
|
287
|
+
var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
|
|
288
|
+
data: {
|
|
289
|
+
condition: '1=1'
|
|
290
|
+
}
|
|
291
|
+
}, {resolveMsg: null, rejectMsg: '获取小区失败!'})
|
|
292
|
+
console.log('小区',data)
|
|
293
|
+
let house = []
|
|
294
|
+
for (let row of data.data){
|
|
295
|
+
console.log('开始保存小区')
|
|
296
|
+
house.push({label: row.f_residential_area, value: row.f_residential_area})
|
|
297
|
+
}
|
|
298
|
+
this.residentialArea = house
|
|
299
|
+
},
|
|
300
|
+
search(){
|
|
301
|
+
this.$refs.paged.$refs.cri.search()
|
|
302
|
+
},
|
|
303
|
+
cancel() {
|
|
304
|
+
this.show = false
|
|
305
|
+
},
|
|
306
|
+
selfSearch(args) {
|
|
307
|
+
//小区查询条件
|
|
308
|
+
this.area = this.$refs.paged.$refs.cri.model.f_residential_area
|
|
309
|
+
console.log("=====小区model绑定====",this.area)
|
|
310
|
+
if(this.area.length !== 0){
|
|
311
|
+
let str = JSON.stringify(this.area)
|
|
312
|
+
str = str.replace(/"/g,`'`)
|
|
313
|
+
str = str.replace(/\[/g,``)
|
|
314
|
+
str = str.replace(/\]/g,``)
|
|
315
|
+
console.log("=====小区model22222222222绑定====",str)
|
|
316
|
+
//查询多个小区时条件
|
|
317
|
+
args.condition += ` and f_residential_area in ( ${str} )`
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
// 手持设备查询条件
|
|
321
|
+
if(this.f_outlets[0] === '是'){
|
|
322
|
+
args.condition+= ` and f_outlets = '手持设备'`
|
|
323
|
+
} else if (this.f_outlets[0] === '否'){
|
|
324
|
+
args.condition+= ` and f_outlets is null`
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
args.condition = `${args.condition} ` + this.orgCondtionStr
|
|
328
|
+
this.model.search(args.condition, args.model)
|
|
329
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
330
|
+
},
|
|
331
|
+
|
|
332
|
+
clear() {
|
|
333
|
+
//清空部门和人员
|
|
334
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
335
|
+
//部门和人员变为全选
|
|
336
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
337
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
338
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
339
|
+
this.$refs.paged.$refs.cri.model[key] = ''
|
|
340
|
+
})
|
|
341
|
+
},
|
|
342
|
+
dealmsg(val) {
|
|
343
|
+
console.log('---------------dealmsg')
|
|
344
|
+
this.rowdata=val
|
|
345
|
+
this.show=true
|
|
346
|
+
val.model = this.model.model
|
|
347
|
+
this.$dispatch('deal-msg', val)
|
|
348
|
+
},
|
|
349
|
+
view(row) {
|
|
350
|
+
this.currentRow = row;
|
|
351
|
+
this.showAttachment = true;
|
|
352
|
+
},
|
|
353
|
+
closeAttachment() {
|
|
354
|
+
this.showAttachment = false;
|
|
355
|
+
},
|
|
356
|
+
hidden() {
|
|
357
|
+
this.criteriaShow = !this.criteriaShow
|
|
358
|
+
},
|
|
359
|
+
getRes(obj) {
|
|
360
|
+
this.orgCondtionStr = obj
|
|
361
|
+
},
|
|
362
|
+
stamp() {
|
|
363
|
+
this.all = false
|
|
364
|
+
//默认选择要打印的列
|
|
365
|
+
this.modelval = defaultPrint.config
|
|
366
|
+
this.fields = this.getfield
|
|
367
|
+
console.log('所有打印字段', this.fields)
|
|
368
|
+
this.printshow = true
|
|
369
|
+
this.put()
|
|
370
|
+
},
|
|
371
|
+
put() {
|
|
372
|
+
// 对Modelval进行排序
|
|
373
|
+
this.sortModelval()
|
|
374
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
|
|
375
|
+
for (let key of this.modelval) {
|
|
376
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
377
|
+
}
|
|
378
|
+
this.thead += '</tr>'
|
|
379
|
+
},
|
|
380
|
+
print() {
|
|
381
|
+
this.$refs.print.PrintAsFile()
|
|
382
|
+
this.printshow = false
|
|
383
|
+
},
|
|
384
|
+
close() {
|
|
385
|
+
this.printshow = false
|
|
386
|
+
this.all = false
|
|
387
|
+
},
|
|
388
|
+
// 对选择的列进行排序
|
|
389
|
+
sortModelval() {
|
|
390
|
+
let sortModel = []
|
|
391
|
+
Object.keys(this.fields).forEach((key) => {
|
|
392
|
+
if (this.modelval.includes(key)) {
|
|
393
|
+
sortModel.push(key)
|
|
394
|
+
}
|
|
395
|
+
})
|
|
396
|
+
this.modelval = sortModel
|
|
397
|
+
console.log('选择的打印的字段', this.modelval)
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
watch: {
|
|
401
|
+
'all'(val) {
|
|
402
|
+
if (val) {
|
|
403
|
+
this.modelval = this.bodyData
|
|
404
|
+
} else {
|
|
405
|
+
this.modelval = defaultPrint.config
|
|
406
|
+
this.put()
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
'modelval.length'() {
|
|
410
|
+
this.put()
|
|
411
|
+
},
|
|
412
|
+
},
|
|
413
|
+
computed: {
|
|
414
|
+
getCondition() {
|
|
415
|
+
return {condition: `${this.$refs.paged.$refs.cri.condition} ` + this.orgCondtionStr}
|
|
416
|
+
},
|
|
417
|
+
getfield() {
|
|
418
|
+
return exportConfig.enableConfig
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
</script>
|