manage-client 3.3.42 → 3.3.44
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/package.json +1 -1
- package/src/components/sale/businessquery/WebHandplanQuery.vue +2 -2
- package/src/components/webmeter/instruction/NewQueryInstruct.vue +27 -0
- package/src/filiale/jingwei/config/exportConfig.js +4 -7
- package/src/filiale/qianneng/QnAqzz.vue +6 -0
- package/src/filiale/qianneng/QnAqzzYsbb.vue +604 -0
- package/src/filiale/qianneng/QnAqzzYsmx.vue +653 -0
- package/src/filiale/qianneng/QnChaobiaomingxi.vue +20 -4
- package/src/filiale/qianneng/QnChaobiaoyhhz.vue +19 -2
- package/src/filiale/qianneng/QnChaobiaoyqxzhz.vue +19 -2
- package/src/filiale/qianneng/RecordInfoQuery.vue +8 -0
- package/src/filiale/qianneng/exportConfig.js +10 -1
- package/src/filiale/qianneng/reportManage.js +4 -0
- package/src/filiale/shexian/ChangeMeterQuery.vue +46 -9
|
@@ -0,0 +1,604 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main" @keyup.enter="search" v-if="!show">
|
|
4
|
+
<div class="flex">
|
|
5
|
+
<div style="flex:1;" class="flex" >
|
|
6
|
+
<criteria-paged :model="model" v-ref:paged @sort="sort">
|
|
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
|
+
<res-select-group :show-component="['company']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
11
|
+
|
|
12
|
+
<div class="col-sm-2 form-group">
|
|
13
|
+
<label for="startDate" class="font_normal_body">验收日期起</label>
|
|
14
|
+
<datepicker id="startDate" placeholder="验收日期起" style="width:60%"
|
|
15
|
+
v-model="model.startDate"
|
|
16
|
+
:value.sync="model.startDate"
|
|
17
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
18
|
+
:show-reset-button="true">
|
|
19
|
+
</datepicker>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="col-sm-2 form-group">
|
|
22
|
+
<label for="endDate" class="font_normal_body">验收日期止</label>
|
|
23
|
+
<datepicker id="endDate" placeholder="验收日期止" style="width:60%"
|
|
24
|
+
v-model="model.endDate"
|
|
25
|
+
:value.sync="model.endDate"
|
|
26
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
27
|
+
:show-reset-button="true">
|
|
28
|
+
</datepicker>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<div class="span" style="float:right;">
|
|
32
|
+
<button class="button_search button_spacing" @click="$parent.$parent.search()">查询</button>
|
|
33
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
34
|
+
<!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
|
|
35
|
+
|
|
36
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
37
|
+
:field="$parent.$parent.getExportField"
|
|
38
|
+
:footer="$parent.$parent.footer"
|
|
39
|
+
:header="$parent.$parent.other"
|
|
40
|
+
sqlurl="rs/logic/exportfile" sql-name="qnAqzzYsbb" template-name='验收报表导出'
|
|
41
|
+
:choose-col="true"></export-excel>
|
|
42
|
+
|
|
43
|
+
<div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
</criteria>
|
|
48
|
+
|
|
49
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
|
|
50
|
+
<template partial='head'>
|
|
51
|
+
<tr>
|
|
52
|
+
<th>
|
|
53
|
+
<nobr>验收人员</nobr>
|
|
54
|
+
</th>
|
|
55
|
+
<th>
|
|
56
|
+
<nobr>期间复检</nobr>
|
|
57
|
+
</th>
|
|
58
|
+
<th>
|
|
59
|
+
<nobr>复检累计</nobr>
|
|
60
|
+
</th>
|
|
61
|
+
<th>
|
|
62
|
+
<nobr>期间施工验收</nobr>
|
|
63
|
+
</th>
|
|
64
|
+
<th>
|
|
65
|
+
<nobr>施工验收累计</nobr>
|
|
66
|
+
</th>
|
|
67
|
+
<th>
|
|
68
|
+
<nobr>期间合计</nobr>
|
|
69
|
+
</th>
|
|
70
|
+
<th>
|
|
71
|
+
<nobr>总累计</nobr>
|
|
72
|
+
</th>
|
|
73
|
+
</tr>
|
|
74
|
+
</template>
|
|
75
|
+
<template partial='body'>
|
|
76
|
+
<td style="text-align: center;">
|
|
77
|
+
<nobr>{{row.ysry}}</nobr>
|
|
78
|
+
</td>
|
|
79
|
+
<td style="text-align: center;">
|
|
80
|
+
<nobr>{{row.qjfj}}</nobr>
|
|
81
|
+
</td>
|
|
82
|
+
<td style="text-align: center;">
|
|
83
|
+
<nobr>{{row.fjlj}}</nobr>
|
|
84
|
+
</td>
|
|
85
|
+
<td style="text-align: center;">
|
|
86
|
+
<nobr>{{row.qjsgys}}</nobr>
|
|
87
|
+
</td>
|
|
88
|
+
<td style="text-align: center;">
|
|
89
|
+
<nobr>{{row.sgyslj}}</nobr>
|
|
90
|
+
</td>
|
|
91
|
+
<td style="text-align: center;">
|
|
92
|
+
<nobr>{{row.qjhj}}</nobr>
|
|
93
|
+
</td>
|
|
94
|
+
<td style="text-align: center;">
|
|
95
|
+
<nobr>{{row.zlj}}</nobr>
|
|
96
|
+
</td>
|
|
97
|
+
</template>
|
|
98
|
+
<template partial='foot'>
|
|
99
|
+
</template>
|
|
100
|
+
</data-grid>
|
|
101
|
+
</criteria-paged>
|
|
102
|
+
<table class="table-hover">
|
|
103
|
+
<tr style="position: relative" class="table-bordered">
|
|
104
|
+
<td
|
|
105
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
106
|
+
汇总信息
|
|
107
|
+
</td>
|
|
108
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
109
|
+
期间复检合计: {{sumsmodel.qjfj}}  复检累计合计: {{sumsmodel.fjlj}}  期间施工验收合计: {{sumsmodel.qjsgys}}  施工验收累计合计: {{sumsmodel.sgyslj}}  期间合计合计: {{sumsmodel.qjhj}}  总累计合计: {{sumsmodel.zlj}}
|
|
110
|
+
</td>
|
|
111
|
+
</tr>
|
|
112
|
+
</table>
|
|
113
|
+
</div>
|
|
114
|
+
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
<div class="basic-main" style="width:99%;height:98%;margin-bottom:0px" v-if="show">
|
|
118
|
+
<user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
</template>
|
|
122
|
+
|
|
123
|
+
<script>
|
|
124
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
125
|
+
import defaultPrint from '../../components/sale/config/DefaultPrint'
|
|
126
|
+
import exportConfig from './exportConfig'
|
|
127
|
+
|
|
128
|
+
let readySomething = async function (self) {
|
|
129
|
+
self.$MagGetSaleParam.initinputtor();
|
|
130
|
+
self.getinputtores();
|
|
131
|
+
// 获取区县
|
|
132
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.addDate(self.$login.toStandardDateString()+ ' 00:00:00', -1) ;
|
|
133
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.addDate(self.$login.toStandardDateString()+ ' 23:59:59', -1) ;
|
|
134
|
+
// await self.$refs.paged.$refs.cri.search()
|
|
135
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
136
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export default {
|
|
140
|
+
title: '验收报表',
|
|
141
|
+
data() {
|
|
142
|
+
return {
|
|
143
|
+
other:[],
|
|
144
|
+
footer:[],
|
|
145
|
+
model: new PagedList('rs/sql/qnAqzzYsbb', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate', f_insideorgid:'this.model.f_insideorgid'}, {qjfj: 0, fjlj: 0, qjsgys:0, sgyslj:0, qjhj:0, zlj:0}),
|
|
146
|
+
criteriaShow: false,
|
|
147
|
+
orgCondtionStr: '',
|
|
148
|
+
modelval: [],
|
|
149
|
+
printshow: false,
|
|
150
|
+
all: false,
|
|
151
|
+
fields: {},
|
|
152
|
+
//排序
|
|
153
|
+
orderitem:'',
|
|
154
|
+
orderFields: {
|
|
155
|
+
|
|
156
|
+
},
|
|
157
|
+
committeeArray:[],
|
|
158
|
+
communityArray:[],
|
|
159
|
+
pmggArray:[],
|
|
160
|
+
//默认打印列
|
|
161
|
+
defaultfield: [],
|
|
162
|
+
config: {
|
|
163
|
+
defaultPrint: []
|
|
164
|
+
},
|
|
165
|
+
balance2:'',
|
|
166
|
+
thead: '',
|
|
167
|
+
tfoot: '',
|
|
168
|
+
area: [],
|
|
169
|
+
//合计数据
|
|
170
|
+
sumsmodel: {},
|
|
171
|
+
initres: {
|
|
172
|
+
org:[this.$login.f.orgid],
|
|
173
|
+
dep:[],
|
|
174
|
+
user:[],
|
|
175
|
+
},
|
|
176
|
+
userdetail: {
|
|
177
|
+
show: false,
|
|
178
|
+
f_userinfo_code: '',
|
|
179
|
+
f_filialeids: ''
|
|
180
|
+
},
|
|
181
|
+
|
|
182
|
+
show:false,
|
|
183
|
+
rowdata:{},
|
|
184
|
+
meterInfo:{},
|
|
185
|
+
deviceInfo:{},
|
|
186
|
+
condition2:'',
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
weixinSign:[{label:"全部",value:""},{label:"已绑定",value:"已绑定"},{label:"未绑定",value:"未绑定"}],
|
|
190
|
+
//小区
|
|
191
|
+
residentialArea: [],
|
|
192
|
+
//表册片区
|
|
193
|
+
bookSlice:[{label: '全部',value: ''}],
|
|
194
|
+
inputtores:[{label: '全部',value: ''}], //抄表员
|
|
195
|
+
allorgid:[],
|
|
196
|
+
f_filialeid: this.$login.f.f_orgid,
|
|
197
|
+
dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
|
|
198
|
+
sfhgArray:[{label:"全部",value:""},{label:"是",value:"是",},{label:"否",value:"否",}],
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
ready() {
|
|
202
|
+
//this.getaddress()
|
|
203
|
+
// this.$refs.paged.$refs.cri.model.f_user_state=['正常']
|
|
204
|
+
readySomething(this).then(() => {
|
|
205
|
+
this.$emit('ready')
|
|
206
|
+
}).catch((error) => {
|
|
207
|
+
this.$emit('error', error)
|
|
208
|
+
})
|
|
209
|
+
//this.initAreas(this.$login.f.orgid)
|
|
210
|
+
//self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
|
|
211
|
+
//self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
|
|
212
|
+
//this.getCommunityArray();
|
|
213
|
+
//this.getPmggArray();
|
|
214
|
+
},
|
|
215
|
+
methods: {
|
|
216
|
+
async getinputtores () {
|
|
217
|
+
// 获取抄表员
|
|
218
|
+
let rs = []
|
|
219
|
+
if (this.$login.f.f_gasman.length > 0) {
|
|
220
|
+
for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
|
|
221
|
+
let temp = {
|
|
222
|
+
label: this.$login.f.f_gasman[i].name,
|
|
223
|
+
value: this.$login.f.f_gasman[i].name
|
|
224
|
+
}
|
|
225
|
+
rs.push(temp)
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
this.inputtores = [{label: '全部', value: ''}, ...rs]
|
|
229
|
+
},
|
|
230
|
+
async updateParams() {
|
|
231
|
+
await this.$MagLoadParams.loadParam(this.f_filialeid)
|
|
232
|
+
this.inputtores = [];
|
|
233
|
+
this.inputtores.push({label: "全部", value: ""})
|
|
234
|
+
this.initSlice(this.f_filialeid)
|
|
235
|
+
if(this.allorgid!=null){
|
|
236
|
+
this.allorgid.forEach((res)=>{
|
|
237
|
+
this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
|
|
238
|
+
})
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
async getCommunityArray(){
|
|
242
|
+
let HttpReset = new HttpResetClass()
|
|
243
|
+
var data = await HttpReset.load('POST', 'rs/sql/singleTable_Final', {
|
|
244
|
+
data: {
|
|
245
|
+
condition: "t.name like '%行政划分%'",
|
|
246
|
+
tablename: 't_parameter t left outer join t_paramvalue t2 on t2.processid = t.id',
|
|
247
|
+
groupitem: "t2.name",
|
|
248
|
+
orderitem: 't2.name',
|
|
249
|
+
items: 't2.name'
|
|
250
|
+
}
|
|
251
|
+
}, {resolveMsg: null, rejectMsg: '获取失败!'})
|
|
252
|
+
let nameArr = []
|
|
253
|
+
for (let row of data.data){
|
|
254
|
+
nameArr.push({label: row.name, value: row.name})
|
|
255
|
+
}
|
|
256
|
+
this.communityArray = nameArr
|
|
257
|
+
},
|
|
258
|
+
|
|
259
|
+
async getPmggArray(){
|
|
260
|
+
let HttpReset = new HttpResetClass()
|
|
261
|
+
var data = await HttpReset.load('POST', 'rs/sql/singleTable_Final', {
|
|
262
|
+
data: {
|
|
263
|
+
condition: "t.name ='安全装置加装项目'",
|
|
264
|
+
tablename: 't_parameter t left outer join t_paramvalue t2 on t2.processid = t.id',
|
|
265
|
+
groupitem: "t2.name",
|
|
266
|
+
orderitem: 't2.name',
|
|
267
|
+
items: 't2.name'
|
|
268
|
+
}
|
|
269
|
+
}, {resolveMsg: null, rejectMsg: '获取失败!'})
|
|
270
|
+
let nameArr = []
|
|
271
|
+
for (let row of data.data){
|
|
272
|
+
nameArr.push({label: row.name.replace("+"," "), value: row.name.replace("+"," ")})
|
|
273
|
+
}
|
|
274
|
+
this.pmggArray = nameArr
|
|
275
|
+
},
|
|
276
|
+
async communityChange(){
|
|
277
|
+
this.committeeArray=[]
|
|
278
|
+
if(this.$refs.paged.$refs.cri.model !==null) {
|
|
279
|
+
let HttpReset = new HttpResetClass()
|
|
280
|
+
var data = await HttpReset.load('POST', 'rs/sql/singleTable_Final', {
|
|
281
|
+
data: {
|
|
282
|
+
condition: "t.name = '"+this.$refs.paged.$refs.cri.model.f_community[0]+"'",
|
|
283
|
+
tablename: 't_parameter t left outer join t_paramvalue t2 on t2.processid = t.id',
|
|
284
|
+
groupitem: 't2.name',
|
|
285
|
+
orderitem: 't2.name',
|
|
286
|
+
items: 't2.name'
|
|
287
|
+
}
|
|
288
|
+
}, {resolveMsg: null, rejectMsg: '获取失败!'})
|
|
289
|
+
let nameArr = []
|
|
290
|
+
for (let row of data.data){
|
|
291
|
+
nameArr.push({label: row.name, value: row.name})
|
|
292
|
+
}
|
|
293
|
+
this.committeeArray = nameArr
|
|
294
|
+
}else{
|
|
295
|
+
this.committeeArray =[{label: '全部', value: ''}]
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
getotherfooter () {
|
|
299
|
+
// this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
|
|
300
|
+
// this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
|
|
301
|
+
this.other = [];
|
|
302
|
+
this.footer = [];
|
|
303
|
+
let exportdata = this.getCondition;
|
|
304
|
+
let otherInData = [];
|
|
305
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
306
|
+
let footerData = [], exportfield = this.getExportField;
|
|
307
|
+
footerData.push("合计");
|
|
308
|
+
let self = this;
|
|
309
|
+
for (var field in self.sumsmodel) {
|
|
310
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
311
|
+
}
|
|
312
|
+
this.footer.push(footerData);
|
|
313
|
+
this.other.push(otherInData);
|
|
314
|
+
},
|
|
315
|
+
async getaddress(){
|
|
316
|
+
console.log('开始获取小区')
|
|
317
|
+
let HttpReset = new HttpResetClass()
|
|
318
|
+
var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
|
|
319
|
+
data: {
|
|
320
|
+
condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
|
|
321
|
+
}
|
|
322
|
+
}, {resolveMsg: null, rejectMsg: '获取小区失败!'})
|
|
323
|
+
console.log('小区',data)
|
|
324
|
+
let house = []
|
|
325
|
+
for (let row of data.data){
|
|
326
|
+
console.log('开始保存小区')
|
|
327
|
+
house.push({label: row.f_residential_area, value: row.f_residential_area})
|
|
328
|
+
}
|
|
329
|
+
this.residentialArea = house
|
|
330
|
+
},
|
|
331
|
+
|
|
332
|
+
//把数据库查询数据转换为下拉数据
|
|
333
|
+
calculate(rows){
|
|
334
|
+
let data = []
|
|
335
|
+
rows.forEach((row, n) => {
|
|
336
|
+
data[n] = {label: row.f_residential_area, value: row.id}
|
|
337
|
+
})
|
|
338
|
+
return data
|
|
339
|
+
},
|
|
340
|
+
search(){
|
|
341
|
+
console.log("=====search====")
|
|
342
|
+
//this.$refs.paged.$refs.cri.search()
|
|
343
|
+
this.$refs.paged.$refs.cri.model.f_insideorgid = this.f_filialeid;
|
|
344
|
+
this.$refs.paged.$refs.cri.search()
|
|
345
|
+
},
|
|
346
|
+
cancel(obj) {
|
|
347
|
+
console.log("=====cancel====" + obj)
|
|
348
|
+
this.show = false
|
|
349
|
+
},
|
|
350
|
+
showmsg(obj){
|
|
351
|
+
this.rowdata=obj
|
|
352
|
+
this.show=true
|
|
353
|
+
// let http = new HttpResetClass()
|
|
354
|
+
// http.load('POST','rs/sql/getUserMeter',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
|
|
355
|
+
// {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
356
|
+
// this.meterInfo = res.data})
|
|
357
|
+
// let http2 = new HttpResetClass()
|
|
358
|
+
// http2.load('POST','rs/sql/deviceQuery',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
|
|
359
|
+
// {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
360
|
+
// this.deviceInfo = res.data})
|
|
361
|
+
|
|
362
|
+
// this.f_userinfo_id=obj.f_userinfo_id
|
|
363
|
+
},
|
|
364
|
+
userTypeChange () {
|
|
365
|
+
this.gasproperties=[]
|
|
366
|
+
if(this.$refs.paged.$refs.cri.model !==null) {
|
|
367
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties=''
|
|
368
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
369
|
+
}
|
|
370
|
+
else{
|
|
371
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
//初始化片区
|
|
375
|
+
async initSlice (val) {
|
|
376
|
+
if (val) {
|
|
377
|
+
let getAllArea = await this.$resetpost('/rs/search', {
|
|
378
|
+
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
|
379
|
+
userid: this.$login.f.id
|
|
380
|
+
}, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
|
|
381
|
+
let arr = getAllArea.data.filter((res) => {
|
|
382
|
+
return res.parentid == val
|
|
383
|
+
})
|
|
384
|
+
this.bookSlice = []
|
|
385
|
+
console.log('过滤之后的片区-------------------', arr)
|
|
386
|
+
arr.forEach((res) => {
|
|
387
|
+
this.bookSlice.push({label: res.name, value: res.name})
|
|
388
|
+
})
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
async initAreas (val) {
|
|
392
|
+
|
|
393
|
+
if (val) {
|
|
394
|
+
let getAllArea = await this.$resetpost('/rs/search', {
|
|
395
|
+
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
|
396
|
+
userid: this.$login.f.id
|
|
397
|
+
}, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
|
|
398
|
+
|
|
399
|
+
let arr = getAllArea.data.filter((res) => {
|
|
400
|
+
return res.parentid == val
|
|
401
|
+
})
|
|
402
|
+
console.log('过滤之后的片区', arr)
|
|
403
|
+
this.sliceArea = []
|
|
404
|
+
arr.forEach((res) => {
|
|
405
|
+
this.sliceArea.push({label: res.name, value: res.name})
|
|
406
|
+
})
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
selfSearch(args) {
|
|
410
|
+
console.log('args', args)
|
|
411
|
+
console.log('this.orgCondtionStr', this.orgCondtionStr)
|
|
412
|
+
if (!this.orgCondtionStr) {
|
|
413
|
+
args.condition = `${args.condition}` + " and tr.f_orgid = " + this.$login.f.orgid
|
|
414
|
+
} else {
|
|
415
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
416
|
+
}
|
|
417
|
+
this.condition2 = args.condition
|
|
418
|
+
this.model.search(args.condition, args.model)
|
|
419
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
420
|
+
console.log('合计字段', this.sumsmodel)
|
|
421
|
+
},
|
|
422
|
+
clear() {
|
|
423
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
424
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
425
|
+
})
|
|
426
|
+
},
|
|
427
|
+
hidden() {
|
|
428
|
+
this.criteriaShow = !this.criteriaShow
|
|
429
|
+
},
|
|
430
|
+
getRes(obj) {
|
|
431
|
+
this.orgCondtionStr = obj
|
|
432
|
+
},
|
|
433
|
+
stamp() {
|
|
434
|
+
this.all = false
|
|
435
|
+
//默认选择要打印的列
|
|
436
|
+
this.modelval = defaultPrint.config
|
|
437
|
+
this.fields = this.getfield
|
|
438
|
+
console.log('所有打印字段', this.fields)
|
|
439
|
+
this.printshow = true
|
|
440
|
+
this.put()
|
|
441
|
+
},
|
|
442
|
+
put() {
|
|
443
|
+
// 对Modelval进行排序
|
|
444
|
+
this.sortModelval()
|
|
445
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>用户查询统计报表</th></tr><tr>`
|
|
446
|
+
for (let key of this.modelval) {
|
|
447
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
448
|
+
}
|
|
449
|
+
this.thead += '</tr>'
|
|
450
|
+
},
|
|
451
|
+
print() {
|
|
452
|
+
this.$refs.print.PrintAsFile()
|
|
453
|
+
this.printshow = false
|
|
454
|
+
},
|
|
455
|
+
close() {
|
|
456
|
+
this.printshow = false
|
|
457
|
+
},
|
|
458
|
+
// 对选择的列进行排序
|
|
459
|
+
sortModelval() {
|
|
460
|
+
let sortModel = []
|
|
461
|
+
Object.keys(this.fields).forEach((key) => {
|
|
462
|
+
if (this.modelval.includes(key)) {
|
|
463
|
+
sortModel.push(key)
|
|
464
|
+
}
|
|
465
|
+
})
|
|
466
|
+
this.modelval = sortModel
|
|
467
|
+
console.log('选择的打印的字段', this.modelval)
|
|
468
|
+
},
|
|
469
|
+
dblclick(row, index) {
|
|
470
|
+
console.log('双击之后数据', row, index)
|
|
471
|
+
this.userdetail.show = true
|
|
472
|
+
this.userdetail.f_userinfo_code = row.f_userinfo_code
|
|
473
|
+
this.userdetail.f_filialeids = row.f_filialeids
|
|
474
|
+
},
|
|
475
|
+
sort (field, rule) {
|
|
476
|
+
// 将所有排序方式设为不排序,实现相互排斥
|
|
477
|
+
for (let key in this.orderFields) {
|
|
478
|
+
if (key === field) {
|
|
479
|
+
this.orderFields[key] = rule
|
|
480
|
+
} else {
|
|
481
|
+
this.orderFields[key] = 'no'
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
// 如果新规则不排序,还原为默认排序
|
|
485
|
+
if (rule === 'no') {
|
|
486
|
+
this.model.paramSource.orderitem = `'${this.orderitem}'`
|
|
487
|
+
} else {
|
|
488
|
+
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
this.search()
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
|
|
495
|
+
watch: {
|
|
496
|
+
'all'(val) {
|
|
497
|
+
if (val) {
|
|
498
|
+
this.modelval = this.bodyData
|
|
499
|
+
} else {
|
|
500
|
+
this.modelval = defaultPrint.config
|
|
501
|
+
this.put()
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
'modelval.length'() {
|
|
505
|
+
this.put()
|
|
506
|
+
},
|
|
507
|
+
sumsmodel:{
|
|
508
|
+
handler: function(val) {
|
|
509
|
+
this.getotherfooter();
|
|
510
|
+
},
|
|
511
|
+
deep: true
|
|
512
|
+
},
|
|
513
|
+
'orgCondtionStr'(val) {
|
|
514
|
+
let res = val.match(/'(.*?)'/)
|
|
515
|
+
console.log('正则提取:',res && res[1])
|
|
516
|
+
if (res) {
|
|
517
|
+
this.f_filialeid = res[1]
|
|
518
|
+
if(res.input !=null){
|
|
519
|
+
let resorgid = res.input.substring(res.input.indexOf("'"));
|
|
520
|
+
if(resorgid!= null && resorgid!=''){
|
|
521
|
+
resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
|
|
522
|
+
// resorgid = resorgid.replaceAll("'","");
|
|
523
|
+
resorgid = resorgid.replace(/'/g,"");
|
|
524
|
+
this.allorgid = resorgid.split(",")
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
this.updateParams()
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
},
|
|
531
|
+
computed: {
|
|
532
|
+
// defaultexport() {
|
|
533
|
+
// return exportConfig.chargeexportConfig
|
|
534
|
+
// },
|
|
535
|
+
authArr () {
|
|
536
|
+
return this.$login.r ? this.$login.r : []
|
|
537
|
+
},
|
|
538
|
+
|
|
539
|
+
getCondition() {
|
|
540
|
+
return {
|
|
541
|
+
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
542
|
+
endDate: this.$refs.paged.$refs.cri.model.endDate,
|
|
543
|
+
condition: this.condition2,
|
|
544
|
+
orderitem:this.orderitem,
|
|
545
|
+
f_insideorgid:this.f_filialeid
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
getfield() {
|
|
549
|
+
let data = {}
|
|
550
|
+
this.bodyData.forEach((value, index) => {
|
|
551
|
+
data[this.bodyData[index]] = this.headData[index]
|
|
552
|
+
})
|
|
553
|
+
//合计字段打印
|
|
554
|
+
this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
|
|
555
|
+
if (this.sumsmodel) {
|
|
556
|
+
Object.keys(this.sumsmodel).forEach((key) => {
|
|
557
|
+
this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
|
|
558
|
+
})
|
|
559
|
+
} else {
|
|
560
|
+
this.tfoot += '暂无'
|
|
561
|
+
}
|
|
562
|
+
this.tfoot += '</th></tr>'
|
|
563
|
+
return data
|
|
564
|
+
},
|
|
565
|
+
getExportField() {
|
|
566
|
+
return exportConfig.qnAqzzYsbb
|
|
567
|
+
},
|
|
568
|
+
inputtor () {
|
|
569
|
+
// 获取抄表员
|
|
570
|
+
console.log('获取抄表员', this.$login.f)
|
|
571
|
+
let rs = []
|
|
572
|
+
if (this.$login.f.f_gasman.length > 0) {
|
|
573
|
+
for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
|
|
574
|
+
let temp = {
|
|
575
|
+
label: this.$login.f.f_gasman[i].name,
|
|
576
|
+
value: this.$login.f.f_gasman[i].name
|
|
577
|
+
}
|
|
578
|
+
rs.push(temp)
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
return [{label: '全部', value: ''}, ...rs]
|
|
583
|
+
},
|
|
584
|
+
userstates() {
|
|
585
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')]
|
|
586
|
+
},
|
|
587
|
+
usertypes () {
|
|
588
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
589
|
+
},
|
|
590
|
+
addressstate() {
|
|
591
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('地址状态')]
|
|
592
|
+
},
|
|
593
|
+
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
</script>
|
|
597
|
+
<style>
|
|
598
|
+
.back-red{ /* 红色背景 */
|
|
599
|
+
background-color: #F6C6CE;
|
|
600
|
+
}
|
|
601
|
+
.back-blue{ /* 蓝色背景 */
|
|
602
|
+
|
|
603
|
+
}
|
|
604
|
+
</style>
|