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,441 +1,441 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="unit" class="flex-row">
|
|
3
|
-
<div class="basic-main" @keyup.enter="search">
|
|
4
|
-
<div class="flex" v-if="!show">
|
|
5
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
-
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
7
|
-
<div novalidate class="form-inline auto" partial>
|
|
8
|
-
<div class="row">
|
|
9
|
-
<div class="col-sm-2 form-group">
|
|
10
|
-
<label 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">客户名称</label>
|
|
16
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
17
|
-
condition="f_user_name like '%{}%'" placeholder="客户名称">
|
|
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 HH:mm:ss'"
|
|
25
|
-
:show-reset-button="true"
|
|
26
|
-
condition="tsb.f_operate_date >= to_date('{}','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 HH:mm:ss'"
|
|
35
|
-
:show-reset-button="true"
|
|
36
|
-
condition="tsb.f_operate_date <= to_date('{}','yyyy-mm-dd hh24:mi:ss')">
|
|
37
|
-
</datepicker>
|
|
38
|
-
</div>
|
|
39
|
-
<div class="span" style="float:right;">
|
|
40
|
-
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
41
|
-
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
42
|
-
<export-excel :data="$parent.$parent.getCondition"
|
|
43
|
-
:field="$parent.$parent.getfield"
|
|
44
|
-
sqlurl="rs/logic/exportfile" sql-name="GMHgasQuery" template-name='发折换折查询导出'
|
|
45
|
-
v-if ="$parent.$parent.jurisdiction.includes('excel导出')"
|
|
46
|
-
:choose-col="true"></export-excel>
|
|
47
|
-
<print-data :model="$parent.model" :field="$parent.$parent.getfield"
|
|
48
|
-
:defaultfield="$parent.$parent.defaultfield" print-name="发折换折查询打印"
|
|
49
|
-
></print-data>
|
|
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
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
57
|
-
<res-select-group :initres="$parent.$parent.initres"
|
|
58
|
-
:show-component=$parent.$parent.showComponent
|
|
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_address"
|
|
63
|
-
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
64
|
-
</div>
|
|
65
|
-
<div class="col-sm-2 form-group">
|
|
66
|
-
<label class="font_normal_body">客户表号</label>
|
|
67
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
|
|
68
|
-
condition="f_userfiles_id like '%{}%'" placeholder='客户表号'>
|
|
69
|
-
</div>
|
|
70
|
-
<div class="col-sm-2 form-group">
|
|
71
|
-
<label class="font_normal_body">操作类型</label>
|
|
72
|
-
<v-select :value.sync="model.opType"
|
|
73
|
-
:search="false"
|
|
74
|
-
:options='$parent.$parent.opType' placeholder='请选择' v-model="model.opType"
|
|
75
|
-
condition="tsb.f_operat_type = '{}'"
|
|
76
|
-
close-on-select></v-select>
|
|
77
|
-
</div>
|
|
78
|
-
<div class="col-sm-2 form-group">
|
|
79
|
-
<label class="font_normal_body">用户分类</label>
|
|
80
|
-
<v-select :value.sync="model.f_user_type"
|
|
81
|
-
@change="$parent.$parent.userTypeChange"
|
|
82
|
-
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
83
|
-
condition="f_user_type = '{}'"
|
|
84
|
-
close-on-select></v-select>
|
|
85
|
-
</div>
|
|
86
|
-
<div class="col-sm-2 form-group">
|
|
87
|
-
<label class="font_normal_body">用户类型</label>
|
|
88
|
-
<v-select :value.sync="model.f_user_mold"
|
|
89
|
-
@change="$parent.$parent.userMoldChange"
|
|
90
|
-
:options='$parent.$parent.usermold' placeholder='请选择' v-model="model.f_user_mold"
|
|
91
|
-
condition="f_user_mold = '{}'"
|
|
92
|
-
close-on-select></v-select>
|
|
93
|
-
</div>
|
|
94
|
-
<div class="col-sm-2 form-group">
|
|
95
|
-
<label class="font_normal_body">用气性质</label>
|
|
96
|
-
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
97
|
-
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
98
|
-
condition="f_gasproperties = '{}'"
|
|
99
|
-
close-on-select></v-select>
|
|
100
|
-
</div>
|
|
101
|
-
<div class="col-sm-2 form-group">
|
|
102
|
-
<label class="font_normal_body">房产地址</label>
|
|
103
|
-
<input class="input_search" condition="f_house_address = '{}'"
|
|
104
|
-
placeholder='房产地址'
|
|
105
|
-
style="width:60%" type="text" v-model="model.f_house_address">
|
|
106
|
-
</div>
|
|
107
|
-
<div class="col-sm-2 form-group">
|
|
108
|
-
<label class="font_normal_body">用途</label>
|
|
109
|
-
<input class="input_search" condition="f_property_usage = '{}'"
|
|
110
|
-
placeholder='用途'
|
|
111
|
-
style="width:60%" type="text" v-model="model.f_property_usage">
|
|
112
|
-
</div>
|
|
113
|
-
<div class="col-sm-2 form-group">
|
|
114
|
-
<label class="font_normal_body">房型</label>
|
|
115
|
-
<input class="input_search" condition="f_house_type = '{}'"
|
|
116
|
-
placeholder='房型'
|
|
117
|
-
style="width:60%" type="text" v-model="model.f_house_type">
|
|
118
|
-
</div>
|
|
119
|
-
<div class="col-sm-2 form-group">
|
|
120
|
-
<label class="font_normal_body">是否一户多表</label>
|
|
121
|
-
<input class="input_search" condition="f_is_multi_meter = '{}'"
|
|
122
|
-
placeholder='是否一户多表'
|
|
123
|
-
style="width:60%" type="text" v-model="model.f_is_multi_meter">
|
|
124
|
-
</div>
|
|
125
|
-
<div class="col-sm-2 form-group">
|
|
126
|
-
<label class="font_normal_body">关联ID</label>
|
|
127
|
-
<input class="input_search" condition="f_house_id = '{}'"
|
|
128
|
-
placeholder='关联ID'
|
|
129
|
-
style="width:60%" type="text" v-model="model.f_house_id">
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
</criteria>
|
|
134
|
-
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
|
|
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
|
-
<th>
|
|
168
|
-
<nobr>部门</nobr>
|
|
169
|
-
</th>
|
|
170
|
-
<th>
|
|
171
|
-
<nobr>用户分类</nobr>
|
|
172
|
-
</th>
|
|
173
|
-
<th>
|
|
174
|
-
<nobr>用户类型</nobr>
|
|
175
|
-
</th>
|
|
176
|
-
<th>
|
|
177
|
-
<nobr>用气性质</nobr>
|
|
178
|
-
</th>
|
|
179
|
-
<th>
|
|
180
|
-
<nobr>备注</nobr>
|
|
181
|
-
</th>
|
|
182
|
-
</tr>
|
|
183
|
-
</template>
|
|
184
|
-
<template partial='body'>
|
|
185
|
-
<td style="text-align: center;">
|
|
186
|
-
<nobr>
|
|
187
|
-
<span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{ row.f_userinfo_code }}</a></span></nobr>
|
|
188
|
-
</td>
|
|
189
|
-
<td style="text-align: center;">
|
|
190
|
-
<nobr>{{ row.f_user_name }}</nobr>
|
|
191
|
-
</td>
|
|
192
|
-
<td style="text-align: center;">
|
|
193
|
-
<nobr>{{ row.f_address }}</nobr>
|
|
194
|
-
</td>
|
|
195
|
-
<td style="text-align: center;">
|
|
196
|
-
<nobr>{{ row.f_meter_brand }}</nobr>
|
|
197
|
-
</td>
|
|
198
|
-
<td style="text-align: center;">
|
|
199
|
-
<nobr>{{ row.f_meter_style }}</nobr>
|
|
200
|
-
</td>
|
|
201
|
-
<td style="text-align: center;">
|
|
202
|
-
<nobr>{{ row.f_book_no }}</nobr>
|
|
203
|
-
</td>
|
|
204
|
-
<td style="text-align: center;">
|
|
205
|
-
<nobr>{{ row.f_operat_type }}</nobr>
|
|
206
|
-
</td>
|
|
207
|
-
<td style="text-align: center;">
|
|
208
|
-
<nobr>{{ row.f_orgname }}</nobr>
|
|
209
|
-
</td>
|
|
210
|
-
<td style="text-align: center;">
|
|
211
|
-
<nobr>{{ row.f_operator }}</nobr>
|
|
212
|
-
</td>
|
|
213
|
-
<td style="text-align: center;">
|
|
214
|
-
<nobr>{{ row.f_operate_date }}</nobr>
|
|
215
|
-
</td>
|
|
216
|
-
<td style="text-align: center;">
|
|
217
|
-
<nobr>{{ row.f_depname }}</nobr>
|
|
218
|
-
</td>
|
|
219
|
-
<td style="text-align: center;">
|
|
220
|
-
<nobr>{{ row.f_user_type }}</nobr>
|
|
221
|
-
</td>
|
|
222
|
-
<td style="text-align: center;">
|
|
223
|
-
<nobr>{{ row.f_user_mold }}</nobr>
|
|
224
|
-
</td>
|
|
225
|
-
<td style="text-align: center;">
|
|
226
|
-
<nobr>{{ row.f_gasproperties }}</nobr>
|
|
227
|
-
</td>
|
|
228
|
-
<td style="text-align: center;">
|
|
229
|
-
<nobr>{{ row.f_comments }}</nobr>
|
|
230
|
-
</td>
|
|
231
|
-
</template>
|
|
232
|
-
<template partial='foot'></template>
|
|
233
|
-
</data-grid>
|
|
234
|
-
</criteria-paged>
|
|
235
|
-
</div>
|
|
236
|
-
</div>
|
|
237
|
-
|
|
238
|
-
</div>
|
|
239
|
-
</template>
|
|
240
|
-
<script>
|
|
241
|
-
import {HttpResetClass, PagedList} from 'vue-client'
|
|
242
|
-
import defaultPrint from '../config/DefaultPrint'
|
|
243
|
-
import exportConfig from '../config/exportConfig'
|
|
244
|
-
|
|
245
|
-
let readySomething = async function (self) {
|
|
246
|
-
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
|
|
247
|
-
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
248
|
-
await self.$MagLoadParams.loadParam()
|
|
249
|
-
self.initParams()
|
|
250
|
-
}
|
|
251
|
-
export default {
|
|
252
|
-
title: '补折发折查询',
|
|
253
|
-
name: 'AddMaterial',
|
|
254
|
-
data() {
|
|
255
|
-
return {
|
|
256
|
-
|
|
257
|
-
model: new PagedList('rs/sql/GMHgasQuery', 30, {}),
|
|
258
|
-
initres: {
|
|
259
|
-
org: [this.$login.f.orgid],
|
|
260
|
-
dep: [],
|
|
261
|
-
user: [],
|
|
262
|
-
},
|
|
263
|
-
gasproperties:[],
|
|
264
|
-
usermold:[],
|
|
265
|
-
orgCondtionStr: '',
|
|
266
|
-
opType:[{label:'发折',value:'发折'},{label:'补换折',value:'补换折'},{label:'自动同步开户',value:'自动同步开户'},{label:'手动同步开户',value:'手动同步开户'},{label:'批量导入开户',value:'批量导入开户'},{label:'档案完善开户',value:'档案完善开户'}],
|
|
267
|
-
show: false,
|
|
268
|
-
rowdata: {},
|
|
269
|
-
criteriaShow: false,
|
|
270
|
-
jurisdiction:this.$login.r,
|
|
271
|
-
modelval: [],
|
|
272
|
-
printshow: false,
|
|
273
|
-
showComponent:['company','department','operator'],
|
|
274
|
-
all: false,
|
|
275
|
-
fields: {},
|
|
276
|
-
thead: '',
|
|
277
|
-
tfoot: '',
|
|
278
|
-
residentialArea:[],
|
|
279
|
-
//合计数据
|
|
280
|
-
sumsmodel: {},
|
|
281
|
-
defaultfield: [],
|
|
282
|
-
metertype: [{label: '全部', value: ''}, {label: '卡表', value: '卡表'}, {label: '机表', value: '机表'}]
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
ready() {
|
|
286
|
-
readySomething(this)
|
|
287
|
-
},
|
|
288
|
-
methods: {
|
|
289
|
-
/* async getaddress(){
|
|
290
|
-
console.log('开始获取小区')
|
|
291
|
-
let HttpReset = new HttpResetClass()
|
|
292
|
-
var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
|
|
293
|
-
data: {
|
|
294
|
-
condition: '1=1'
|
|
295
|
-
}
|
|
296
|
-
}, {resolveMsg: null, rejectMsg: '获取小区失败!'})
|
|
297
|
-
console.log('小区',data)
|
|
298
|
-
let house = []
|
|
299
|
-
for (let row of data.data){
|
|
300
|
-
console.log('开始保存小区')
|
|
301
|
-
house.push({label: row.f_residential_area, value: row.f_residential_area})
|
|
302
|
-
}
|
|
303
|
-
this.residentialArea = house
|
|
304
|
-
},*/
|
|
305
|
-
userTypeChange () {
|
|
306
|
-
this.usermold=[]
|
|
307
|
-
this.f_gasproperties=[]
|
|
308
|
-
if(this.$refs.paged.$refs.cri.model !== null) {
|
|
309
|
-
this.$refs.paged.$refs.cri.model.f_gasproperties=''
|
|
310
|
-
this.$refs.paged.$refs.cri.model.f_user_mold=''
|
|
311
|
-
this.usermold = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
312
|
-
}
|
|
313
|
-
else{
|
|
314
|
-
this.usermold =[{label: '全部', value: ''}]
|
|
315
|
-
}
|
|
316
|
-
},
|
|
317
|
-
userMoldChange () {
|
|
318
|
-
this.gasproperties=[]
|
|
319
|
-
if(this.$refs.paged.$refs.cri.model !==null) {
|
|
320
|
-
this.$refs.paged.$refs.cri.model.f_gasproperties=''
|
|
321
|
-
if (this.$refs.paged.$refs.cri.model.f_user_mold[0] ==='居民'){
|
|
322
|
-
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0] + this.$refs.paged.$refs.cri.model.f_user_mold[0])
|
|
323
|
-
return
|
|
324
|
-
}
|
|
325
|
-
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_mold[0])
|
|
326
|
-
}
|
|
327
|
-
else{
|
|
328
|
-
this.gasproperties =[{label: '全部', value: ''}]
|
|
329
|
-
}
|
|
330
|
-
},
|
|
331
|
-
search() {
|
|
332
|
-
this.$refs.paged.$refs.cri.search()
|
|
333
|
-
},
|
|
334
|
-
cancel() {
|
|
335
|
-
this.show = false
|
|
336
|
-
},
|
|
337
|
-
selfSearch(args) {
|
|
338
|
-
args.condition = `${args.condition} ` +this.orgCondtionStr
|
|
339
|
-
this.model.search(args.condition, args.model)
|
|
340
|
-
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
341
|
-
},
|
|
342
|
-
clear() {
|
|
343
|
-
//清空部门和人员
|
|
344
|
-
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
345
|
-
//部门和人员变为全选
|
|
346
|
-
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
347
|
-
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
348
|
-
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
349
|
-
this.$refs.paged.$refs.cri.model[key] = ''
|
|
350
|
-
})
|
|
351
|
-
},
|
|
352
|
-
show() {
|
|
353
|
-
this.criteriaShow = true
|
|
354
|
-
},
|
|
355
|
-
hidden() {
|
|
356
|
-
this.criteriaShow = !this.criteriaShow
|
|
357
|
-
},
|
|
358
|
-
stamp() {
|
|
359
|
-
this.all = false
|
|
360
|
-
//默认选择要打印的列
|
|
361
|
-
this.modelval = defaultPrint.config
|
|
362
|
-
this.fields = this.getfield
|
|
363
|
-
console.log('所有打印字段', this.fields)
|
|
364
|
-
this.printshow = true
|
|
365
|
-
this.put()
|
|
366
|
-
},
|
|
367
|
-
put() {
|
|
368
|
-
// 对Modelval进行排序
|
|
369
|
-
this.sortModelval()
|
|
370
|
-
this.thead = `<tr><th colspan=${this.modelval.length}>收费查询统计报表</th></tr><tr>`
|
|
371
|
-
for (let key of this.modelval) {
|
|
372
|
-
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
373
|
-
}
|
|
374
|
-
this.thead += '</tr>'
|
|
375
|
-
},
|
|
376
|
-
print() {
|
|
377
|
-
this.$refs.print.PrintAsFile()
|
|
378
|
-
this.printshow = false
|
|
379
|
-
},
|
|
380
|
-
dealmsg(val) {
|
|
381
|
-
console.log('---------------dealmsg')
|
|
382
|
-
this.rowdata = val
|
|
383
|
-
this.show = true
|
|
384
|
-
val.model = this.model.model
|
|
385
|
-
this.$dispatch('deal-msg', val)
|
|
386
|
-
},
|
|
387
|
-
getRes(obj) {
|
|
388
|
-
this.orgCondtionStr = obj
|
|
389
|
-
},
|
|
390
|
-
close() {
|
|
391
|
-
this.printshow = false
|
|
392
|
-
this.all = false
|
|
393
|
-
},
|
|
394
|
-
// 对选择的列进行排序
|
|
395
|
-
sortModelval() {
|
|
396
|
-
let sortModel = []
|
|
397
|
-
Object.keys(this.fields).forEach((key) => {
|
|
398
|
-
if (this.modelval.includes(key)) {
|
|
399
|
-
sortModel.push(key)
|
|
400
|
-
}
|
|
401
|
-
})
|
|
402
|
-
this.modelval = sortModel
|
|
403
|
-
console.log('选择的打印的字段', this.modelval)
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
},
|
|
407
|
-
computed: {
|
|
408
|
-
getCondition() {
|
|
409
|
-
return {condition: `${this.$refs.paged.$refs.cri.condition}` +this.orgCondtionStr }
|
|
410
|
-
},
|
|
411
|
-
getfield() {
|
|
412
|
-
return exportConfig.gmhgasConfig
|
|
413
|
-
},
|
|
414
|
-
usertypes() {
|
|
415
|
-
return [ ...this.$appdata.getParam('用户类型')]
|
|
416
|
-
},
|
|
417
|
-
},
|
|
418
|
-
events: {},
|
|
419
|
-
watch: {
|
|
420
|
-
'all'(val) {
|
|
421
|
-
if (val) {
|
|
422
|
-
this.modelval = this.bodyData
|
|
423
|
-
} else {
|
|
424
|
-
this.modelval = defaultPrint.config
|
|
425
|
-
this.put()
|
|
426
|
-
}
|
|
427
|
-
},
|
|
428
|
-
'modelval.length'() {
|
|
429
|
-
this.put()
|
|
430
|
-
},
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
</script>
|
|
434
|
-
<style>
|
|
435
|
-
.datapanel {
|
|
436
|
-
color: #333;
|
|
437
|
-
background-color: white;
|
|
438
|
-
padding: 10px 20px;
|
|
439
|
-
border-radius: 15px;
|
|
440
|
-
}
|
|
441
|
-
</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-inline 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">客户名称</label>
|
|
16
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
17
|
+
condition="f_user_name like '%{}%'" placeholder="客户名称">
|
|
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 HH:mm:ss'"
|
|
25
|
+
:show-reset-button="true"
|
|
26
|
+
condition="tsb.f_operate_date >= to_date('{}','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 HH:mm:ss'"
|
|
35
|
+
:show-reset-button="true"
|
|
36
|
+
condition="tsb.f_operate_date <= to_date('{}','yyyy-mm-dd hh24:mi:ss')">
|
|
37
|
+
</datepicker>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="span" style="float:right;">
|
|
40
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
41
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
42
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
43
|
+
:field="$parent.$parent.getfield"
|
|
44
|
+
sqlurl="rs/logic/exportfile" sql-name="GMHgasQuery" template-name='发折换折查询导出'
|
|
45
|
+
v-if ="$parent.$parent.jurisdiction.includes('excel导出')"
|
|
46
|
+
:choose-col="true"></export-excel>
|
|
47
|
+
<print-data :model="$parent.model" :field="$parent.$parent.getfield"
|
|
48
|
+
:defaultfield="$parent.$parent.defaultfield" print-name="发折换折查询打印"
|
|
49
|
+
></print-data>
|
|
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
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
57
|
+
<res-select-group :initres="$parent.$parent.initres"
|
|
58
|
+
:show-component=$parent.$parent.showComponent
|
|
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_address"
|
|
63
|
+
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
64
|
+
</div>
|
|
65
|
+
<div class="col-sm-2 form-group">
|
|
66
|
+
<label class="font_normal_body">客户表号</label>
|
|
67
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
|
|
68
|
+
condition="f_userfiles_id like '%{}%'" placeholder='客户表号'>
|
|
69
|
+
</div>
|
|
70
|
+
<div class="col-sm-2 form-group">
|
|
71
|
+
<label class="font_normal_body">操作类型</label>
|
|
72
|
+
<v-select :value.sync="model.opType"
|
|
73
|
+
:search="false"
|
|
74
|
+
:options='$parent.$parent.opType' placeholder='请选择' v-model="model.opType"
|
|
75
|
+
condition="tsb.f_operat_type = '{}'"
|
|
76
|
+
close-on-select></v-select>
|
|
77
|
+
</div>
|
|
78
|
+
<div class="col-sm-2 form-group">
|
|
79
|
+
<label class="font_normal_body">用户分类</label>
|
|
80
|
+
<v-select :value.sync="model.f_user_type"
|
|
81
|
+
@change="$parent.$parent.userTypeChange"
|
|
82
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
83
|
+
condition="f_user_type = '{}'"
|
|
84
|
+
close-on-select></v-select>
|
|
85
|
+
</div>
|
|
86
|
+
<div class="col-sm-2 form-group">
|
|
87
|
+
<label class="font_normal_body">用户类型</label>
|
|
88
|
+
<v-select :value.sync="model.f_user_mold"
|
|
89
|
+
@change="$parent.$parent.userMoldChange"
|
|
90
|
+
:options='$parent.$parent.usermold' placeholder='请选择' v-model="model.f_user_mold"
|
|
91
|
+
condition="f_user_mold = '{}'"
|
|
92
|
+
close-on-select></v-select>
|
|
93
|
+
</div>
|
|
94
|
+
<div class="col-sm-2 form-group">
|
|
95
|
+
<label class="font_normal_body">用气性质</label>
|
|
96
|
+
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
97
|
+
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
98
|
+
condition="f_gasproperties = '{}'"
|
|
99
|
+
close-on-select></v-select>
|
|
100
|
+
</div>
|
|
101
|
+
<div class="col-sm-2 form-group">
|
|
102
|
+
<label class="font_normal_body">房产地址</label>
|
|
103
|
+
<input class="input_search" condition="f_house_address = '{}'"
|
|
104
|
+
placeholder='房产地址'
|
|
105
|
+
style="width:60%" type="text" v-model="model.f_house_address">
|
|
106
|
+
</div>
|
|
107
|
+
<div class="col-sm-2 form-group">
|
|
108
|
+
<label class="font_normal_body">用途</label>
|
|
109
|
+
<input class="input_search" condition="f_property_usage = '{}'"
|
|
110
|
+
placeholder='用途'
|
|
111
|
+
style="width:60%" type="text" v-model="model.f_property_usage">
|
|
112
|
+
</div>
|
|
113
|
+
<div class="col-sm-2 form-group">
|
|
114
|
+
<label class="font_normal_body">房型</label>
|
|
115
|
+
<input class="input_search" condition="f_house_type = '{}'"
|
|
116
|
+
placeholder='房型'
|
|
117
|
+
style="width:60%" type="text" v-model="model.f_house_type">
|
|
118
|
+
</div>
|
|
119
|
+
<div class="col-sm-2 form-group">
|
|
120
|
+
<label class="font_normal_body">是否一户多表</label>
|
|
121
|
+
<input class="input_search" condition="f_is_multi_meter = '{}'"
|
|
122
|
+
placeholder='是否一户多表'
|
|
123
|
+
style="width:60%" type="text" v-model="model.f_is_multi_meter">
|
|
124
|
+
</div>
|
|
125
|
+
<div class="col-sm-2 form-group">
|
|
126
|
+
<label class="font_normal_body">关联ID</label>
|
|
127
|
+
<input class="input_search" condition="f_house_id = '{}'"
|
|
128
|
+
placeholder='关联ID'
|
|
129
|
+
style="width:60%" type="text" v-model="model.f_house_id">
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
</criteria>
|
|
134
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
|
|
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
|
+
<th>
|
|
168
|
+
<nobr>部门</nobr>
|
|
169
|
+
</th>
|
|
170
|
+
<th>
|
|
171
|
+
<nobr>用户分类</nobr>
|
|
172
|
+
</th>
|
|
173
|
+
<th>
|
|
174
|
+
<nobr>用户类型</nobr>
|
|
175
|
+
</th>
|
|
176
|
+
<th>
|
|
177
|
+
<nobr>用气性质</nobr>
|
|
178
|
+
</th>
|
|
179
|
+
<th>
|
|
180
|
+
<nobr>备注</nobr>
|
|
181
|
+
</th>
|
|
182
|
+
</tr>
|
|
183
|
+
</template>
|
|
184
|
+
<template partial='body'>
|
|
185
|
+
<td style="text-align: center;">
|
|
186
|
+
<nobr>
|
|
187
|
+
<span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{ row.f_userinfo_code }}</a></span></nobr>
|
|
188
|
+
</td>
|
|
189
|
+
<td style="text-align: center;">
|
|
190
|
+
<nobr>{{ row.f_user_name }}</nobr>
|
|
191
|
+
</td>
|
|
192
|
+
<td style="text-align: center;">
|
|
193
|
+
<nobr>{{ row.f_address }}</nobr>
|
|
194
|
+
</td>
|
|
195
|
+
<td style="text-align: center;">
|
|
196
|
+
<nobr>{{ row.f_meter_brand }}</nobr>
|
|
197
|
+
</td>
|
|
198
|
+
<td style="text-align: center;">
|
|
199
|
+
<nobr>{{ row.f_meter_style }}</nobr>
|
|
200
|
+
</td>
|
|
201
|
+
<td style="text-align: center;">
|
|
202
|
+
<nobr>{{ row.f_book_no }}</nobr>
|
|
203
|
+
</td>
|
|
204
|
+
<td style="text-align: center;">
|
|
205
|
+
<nobr>{{ row.f_operat_type }}</nobr>
|
|
206
|
+
</td>
|
|
207
|
+
<td style="text-align: center;">
|
|
208
|
+
<nobr>{{ row.f_orgname }}</nobr>
|
|
209
|
+
</td>
|
|
210
|
+
<td style="text-align: center;">
|
|
211
|
+
<nobr>{{ row.f_operator }}</nobr>
|
|
212
|
+
</td>
|
|
213
|
+
<td style="text-align: center;">
|
|
214
|
+
<nobr>{{ row.f_operate_date }}</nobr>
|
|
215
|
+
</td>
|
|
216
|
+
<td style="text-align: center;">
|
|
217
|
+
<nobr>{{ row.f_depname }}</nobr>
|
|
218
|
+
</td>
|
|
219
|
+
<td style="text-align: center;">
|
|
220
|
+
<nobr>{{ row.f_user_type }}</nobr>
|
|
221
|
+
</td>
|
|
222
|
+
<td style="text-align: center;">
|
|
223
|
+
<nobr>{{ row.f_user_mold }}</nobr>
|
|
224
|
+
</td>
|
|
225
|
+
<td style="text-align: center;">
|
|
226
|
+
<nobr>{{ row.f_gasproperties }}</nobr>
|
|
227
|
+
</td>
|
|
228
|
+
<td style="text-align: center;">
|
|
229
|
+
<nobr>{{ row.f_comments }}</nobr>
|
|
230
|
+
</td>
|
|
231
|
+
</template>
|
|
232
|
+
<template partial='foot'></template>
|
|
233
|
+
</data-grid>
|
|
234
|
+
</criteria-paged>
|
|
235
|
+
</div>
|
|
236
|
+
</div>
|
|
237
|
+
|
|
238
|
+
</div>
|
|
239
|
+
</template>
|
|
240
|
+
<script>
|
|
241
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
242
|
+
import defaultPrint from '../config/DefaultPrint'
|
|
243
|
+
import exportConfig from '../config/exportConfig'
|
|
244
|
+
|
|
245
|
+
let readySomething = async function (self) {
|
|
246
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
|
|
247
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
248
|
+
await self.$MagLoadParams.loadParam()
|
|
249
|
+
self.initParams()
|
|
250
|
+
}
|
|
251
|
+
export default {
|
|
252
|
+
title: '补折发折查询',
|
|
253
|
+
name: 'AddMaterial',
|
|
254
|
+
data() {
|
|
255
|
+
return {
|
|
256
|
+
|
|
257
|
+
model: new PagedList('rs/sql/GMHgasQuery', 30, {}),
|
|
258
|
+
initres: {
|
|
259
|
+
org: [this.$login.f.orgid],
|
|
260
|
+
dep: [],
|
|
261
|
+
user: [],
|
|
262
|
+
},
|
|
263
|
+
gasproperties:[],
|
|
264
|
+
usermold:[],
|
|
265
|
+
orgCondtionStr: '',
|
|
266
|
+
opType:[{label:'发折',value:'发折'},{label:'补换折',value:'补换折'},{label:'自动同步开户',value:'自动同步开户'},{label:'手动同步开户',value:'手动同步开户'},{label:'批量导入开户',value:'批量导入开户'},{label:'档案完善开户',value:'档案完善开户'}],
|
|
267
|
+
show: false,
|
|
268
|
+
rowdata: {},
|
|
269
|
+
criteriaShow: false,
|
|
270
|
+
jurisdiction:this.$login.r,
|
|
271
|
+
modelval: [],
|
|
272
|
+
printshow: false,
|
|
273
|
+
showComponent:['company','department','operator'],
|
|
274
|
+
all: false,
|
|
275
|
+
fields: {},
|
|
276
|
+
thead: '',
|
|
277
|
+
tfoot: '',
|
|
278
|
+
residentialArea:[],
|
|
279
|
+
//合计数据
|
|
280
|
+
sumsmodel: {},
|
|
281
|
+
defaultfield: [],
|
|
282
|
+
metertype: [{label: '全部', value: ''}, {label: '卡表', value: '卡表'}, {label: '机表', value: '机表'}]
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
ready() {
|
|
286
|
+
readySomething(this)
|
|
287
|
+
},
|
|
288
|
+
methods: {
|
|
289
|
+
/* async getaddress(){
|
|
290
|
+
console.log('开始获取小区')
|
|
291
|
+
let HttpReset = new HttpResetClass()
|
|
292
|
+
var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
|
|
293
|
+
data: {
|
|
294
|
+
condition: '1=1'
|
|
295
|
+
}
|
|
296
|
+
}, {resolveMsg: null, rejectMsg: '获取小区失败!'})
|
|
297
|
+
console.log('小区',data)
|
|
298
|
+
let house = []
|
|
299
|
+
for (let row of data.data){
|
|
300
|
+
console.log('开始保存小区')
|
|
301
|
+
house.push({label: row.f_residential_area, value: row.f_residential_area})
|
|
302
|
+
}
|
|
303
|
+
this.residentialArea = house
|
|
304
|
+
},*/
|
|
305
|
+
userTypeChange () {
|
|
306
|
+
this.usermold=[]
|
|
307
|
+
this.f_gasproperties=[]
|
|
308
|
+
if(this.$refs.paged.$refs.cri.model !== null) {
|
|
309
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties=''
|
|
310
|
+
this.$refs.paged.$refs.cri.model.f_user_mold=''
|
|
311
|
+
this.usermold = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
312
|
+
}
|
|
313
|
+
else{
|
|
314
|
+
this.usermold =[{label: '全部', value: ''}]
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
userMoldChange () {
|
|
318
|
+
this.gasproperties=[]
|
|
319
|
+
if(this.$refs.paged.$refs.cri.model !==null) {
|
|
320
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties=''
|
|
321
|
+
if (this.$refs.paged.$refs.cri.model.f_user_mold[0] ==='居民'){
|
|
322
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0] + this.$refs.paged.$refs.cri.model.f_user_mold[0])
|
|
323
|
+
return
|
|
324
|
+
}
|
|
325
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_mold[0])
|
|
326
|
+
}
|
|
327
|
+
else{
|
|
328
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
search() {
|
|
332
|
+
this.$refs.paged.$refs.cri.search()
|
|
333
|
+
},
|
|
334
|
+
cancel() {
|
|
335
|
+
this.show = false
|
|
336
|
+
},
|
|
337
|
+
selfSearch(args) {
|
|
338
|
+
args.condition = `${args.condition} ` +this.orgCondtionStr
|
|
339
|
+
this.model.search(args.condition, args.model)
|
|
340
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
341
|
+
},
|
|
342
|
+
clear() {
|
|
343
|
+
//清空部门和人员
|
|
344
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
345
|
+
//部门和人员变为全选
|
|
346
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
347
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
348
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
349
|
+
this.$refs.paged.$refs.cri.model[key] = ''
|
|
350
|
+
})
|
|
351
|
+
},
|
|
352
|
+
show() {
|
|
353
|
+
this.criteriaShow = true
|
|
354
|
+
},
|
|
355
|
+
hidden() {
|
|
356
|
+
this.criteriaShow = !this.criteriaShow
|
|
357
|
+
},
|
|
358
|
+
stamp() {
|
|
359
|
+
this.all = false
|
|
360
|
+
//默认选择要打印的列
|
|
361
|
+
this.modelval = defaultPrint.config
|
|
362
|
+
this.fields = this.getfield
|
|
363
|
+
console.log('所有打印字段', this.fields)
|
|
364
|
+
this.printshow = true
|
|
365
|
+
this.put()
|
|
366
|
+
},
|
|
367
|
+
put() {
|
|
368
|
+
// 对Modelval进行排序
|
|
369
|
+
this.sortModelval()
|
|
370
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>收费查询统计报表</th></tr><tr>`
|
|
371
|
+
for (let key of this.modelval) {
|
|
372
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
373
|
+
}
|
|
374
|
+
this.thead += '</tr>'
|
|
375
|
+
},
|
|
376
|
+
print() {
|
|
377
|
+
this.$refs.print.PrintAsFile()
|
|
378
|
+
this.printshow = false
|
|
379
|
+
},
|
|
380
|
+
dealmsg(val) {
|
|
381
|
+
console.log('---------------dealmsg')
|
|
382
|
+
this.rowdata = val
|
|
383
|
+
this.show = true
|
|
384
|
+
val.model = this.model.model
|
|
385
|
+
this.$dispatch('deal-msg', val)
|
|
386
|
+
},
|
|
387
|
+
getRes(obj) {
|
|
388
|
+
this.orgCondtionStr = obj
|
|
389
|
+
},
|
|
390
|
+
close() {
|
|
391
|
+
this.printshow = false
|
|
392
|
+
this.all = false
|
|
393
|
+
},
|
|
394
|
+
// 对选择的列进行排序
|
|
395
|
+
sortModelval() {
|
|
396
|
+
let sortModel = []
|
|
397
|
+
Object.keys(this.fields).forEach((key) => {
|
|
398
|
+
if (this.modelval.includes(key)) {
|
|
399
|
+
sortModel.push(key)
|
|
400
|
+
}
|
|
401
|
+
})
|
|
402
|
+
this.modelval = sortModel
|
|
403
|
+
console.log('选择的打印的字段', this.modelval)
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
},
|
|
407
|
+
computed: {
|
|
408
|
+
getCondition() {
|
|
409
|
+
return {condition: `${this.$refs.paged.$refs.cri.condition}` +this.orgCondtionStr }
|
|
410
|
+
},
|
|
411
|
+
getfield() {
|
|
412
|
+
return exportConfig.gmhgasConfig
|
|
413
|
+
},
|
|
414
|
+
usertypes() {
|
|
415
|
+
return [ ...this.$appdata.getParam('用户类型')]
|
|
416
|
+
},
|
|
417
|
+
},
|
|
418
|
+
events: {},
|
|
419
|
+
watch: {
|
|
420
|
+
'all'(val) {
|
|
421
|
+
if (val) {
|
|
422
|
+
this.modelval = this.bodyData
|
|
423
|
+
} else {
|
|
424
|
+
this.modelval = defaultPrint.config
|
|
425
|
+
this.put()
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
'modelval.length'() {
|
|
429
|
+
this.put()
|
|
430
|
+
},
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
</script>
|
|
434
|
+
<style>
|
|
435
|
+
.datapanel {
|
|
436
|
+
color: #333;
|
|
437
|
+
background-color: white;
|
|
438
|
+
padding: 10px 20px;
|
|
439
|
+
border-radius: 15px;
|
|
440
|
+
}
|
|
441
|
+
</style>
|