manage-client 4.0.46 → 4.0.47
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
CHANGED
|
@@ -29,23 +29,37 @@
|
|
|
29
29
|
>
|
|
30
30
|
</datepicker>
|
|
31
31
|
</div>
|
|
32
|
-
<div :class="$parent.$parent.style"
|
|
33
|
-
<label class="font_normal_body"
|
|
34
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.
|
|
35
|
-
|
|
36
|
-
</div
|
|
32
|
+
<!-- <div :class="$parent.$parent.style">-->
|
|
33
|
+
<!-- <label class="font_normal_body">区 县</label>-->
|
|
34
|
+
<!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_zones"-->
|
|
35
|
+
<!-- condition="f_zones like '%{}%'" placeholder='区县'>-->
|
|
36
|
+
<!-- </div>-->
|
|
37
|
+
<!-- <div :class="$parent.$parent.style">-->
|
|
38
|
+
<!-- <label class="font_normal_body">小 区</label>-->
|
|
39
|
+
<!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"-->
|
|
40
|
+
<!-- condition="f_residential_area like '%{}%'" placeholder='小区'>-->
|
|
41
|
+
<!-- </div>-->
|
|
42
|
+
|
|
37
43
|
<div :class="$parent.$parent.style">
|
|
38
44
|
<label class="font_normal_body">区 县</label>
|
|
39
|
-
<
|
|
40
|
-
|
|
45
|
+
<v-select
|
|
46
|
+
:value.sync="model.f_zones" :value-single="true"
|
|
47
|
+
v-model="model.f_zones"
|
|
48
|
+
@change="$parent.$parent.communityChange"
|
|
49
|
+
:options='$parent.$parent.sliceArea' placeholder='请选择'
|
|
50
|
+
condition1="f_zones = '{}'"
|
|
51
|
+
close-on-select search="true"></v-select>
|
|
41
52
|
</div>
|
|
42
|
-
<div
|
|
43
|
-
<label class="font_normal_body"
|
|
44
|
-
<v-select :value.sync="model.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
53
|
+
<div :class="$parent.$parent.style">
|
|
54
|
+
<label class="font_normal_body">小 区</label>
|
|
55
|
+
<v-select :value.sync="model.f_residential_area"
|
|
56
|
+
v-model="model.f_residential_area"
|
|
57
|
+
:value-single="true"
|
|
58
|
+
:options='$parent.$parent.areaslist' placeholder='请选择'
|
|
59
|
+
condition1="f_residential_area = '{}'"
|
|
60
|
+
close-on-select search="true"></v-select>
|
|
48
61
|
</div>
|
|
62
|
+
|
|
49
63
|
<div :class="$parent.$parent.style">
|
|
50
64
|
<label class="font_normal_body">操作类型</label>
|
|
51
65
|
<v-select :value.sync="model.f_type" v-model="model.f_type"
|
|
@@ -60,13 +74,6 @@
|
|
|
60
74
|
condition="f_state in {}"
|
|
61
75
|
close-on-select></v-select>
|
|
62
76
|
</div>
|
|
63
|
-
<div :class="$parent.$parent.style">
|
|
64
|
-
<label class="font_normal_body">用户类型</label>
|
|
65
|
-
<v-select :value.sync="model.f_user_type" v-model="model.f_user_type"
|
|
66
|
-
:options='$parent.$parent.userTypes' placeholder='请选择'
|
|
67
|
-
condition="f_user_type in {}"
|
|
68
|
-
close-on-select></v-select>
|
|
69
|
-
</div>
|
|
70
77
|
<div :class="$parent.$parent.style">
|
|
71
78
|
<label class="font_normal_body">包含APP</label>
|
|
72
79
|
<v-select :value.sync="model.f_hasapp" v-model="model.f_hasapp"
|
|
@@ -85,7 +92,21 @@
|
|
|
85
92
|
close-on-select clear-button>
|
|
86
93
|
</v-select>
|
|
87
94
|
</div>
|
|
88
|
-
|
|
95
|
+
<div class="col-sm-2 form-group">
|
|
96
|
+
<label class="font_normal_body">客户类型</label>
|
|
97
|
+
<v-select :value.sync="model.f_user_type"
|
|
98
|
+
v-model="model.f_user_type" condition="f_user_type = '{}'"
|
|
99
|
+
@change="$parent.$parent.userTypeChange()"
|
|
100
|
+
:options='$parent.$parent.userTypes' placeholder='请选择'
|
|
101
|
+
close-on-select></v-select>
|
|
102
|
+
</div>
|
|
103
|
+
<div class="col-sm-2 form-group">
|
|
104
|
+
<label class="font_normal_body">用气性质</label>
|
|
105
|
+
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
106
|
+
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
107
|
+
condition="f_gasproperties = '{}'"
|
|
108
|
+
close-on-select></v-select>
|
|
109
|
+
</div>
|
|
89
110
|
<div class="button-range" style="float:right;margin-top:10px">
|
|
90
111
|
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
91
112
|
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
@@ -180,8 +201,8 @@
|
|
|
180
201
|
<span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
|
|
181
202
|
</nobr> </td>
|
|
182
203
|
<td style="text-align: left;"><nobr>{{row.f_user_name}}</nobr></td>
|
|
183
|
-
<td style="text-align: left;"><nobr>{{row.
|
|
184
|
-
<td style="text-align: left;"><nobr>{{row.
|
|
204
|
+
<td style="text-align: left;"><nobr>{{row.f_residential_area}}</nobr></td>
|
|
205
|
+
<td style="text-align: left;"><nobr>{{row.f_zones}}</nobr></td>
|
|
185
206
|
<td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
|
|
186
207
|
<td style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></td>
|
|
187
208
|
<td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
|
|
@@ -242,7 +263,7 @@
|
|
|
242
263
|
|
|
243
264
|
<script>
|
|
244
265
|
|
|
245
|
-
|
|
266
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
246
267
|
import exportConfig from './config/exportConfig'
|
|
247
268
|
import DayReportSummary from "../../components/sale/report/aode/DayReportSummary";
|
|
248
269
|
import getLodop from '../../plugins/LodopFuncs'
|
|
@@ -259,6 +280,12 @@
|
|
|
259
280
|
data() {
|
|
260
281
|
return {
|
|
261
282
|
orderDefault: "'f_operate_date'",
|
|
283
|
+
gasproperties:[],
|
|
284
|
+
areaslist: [],
|
|
285
|
+
f_filialeids: '',
|
|
286
|
+
//片区
|
|
287
|
+
sliceArea: [],
|
|
288
|
+
slice_area:[],
|
|
262
289
|
orderFields: {
|
|
263
290
|
f_userinfo_code: 'no'
|
|
264
291
|
},
|
|
@@ -299,7 +326,6 @@
|
|
|
299
326
|
listpage:false,
|
|
300
327
|
rowdata: {},
|
|
301
328
|
orgCondtionStr: '',
|
|
302
|
-
userTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')],
|
|
303
329
|
count: 0,
|
|
304
330
|
sumsmodel: {},
|
|
305
331
|
printshow: false,
|
|
@@ -316,9 +342,15 @@
|
|
|
316
342
|
this.$refs.paged.$refs.cri.model.f_hasapp = [`!= '悦生活'`]
|
|
317
343
|
this.$refs.paged.$refs.cri.model.f_startDate = this.$login.toStandardDateString()
|
|
318
344
|
this.$refs.paged.$refs.cri.model.f_endDate = this.$login.toStandardDateString()
|
|
345
|
+
this.initdata()
|
|
319
346
|
// this.search()
|
|
320
347
|
},
|
|
321
348
|
methods: {
|
|
349
|
+
async initdata(){
|
|
350
|
+
this.f_filialeids = this.orgCondtionStr.match(/'(\d+)'/)
|
|
351
|
+
this.initAreas(this.f_filialeids[1])
|
|
352
|
+
// this.initareas(` f_orgid = '${this.$login.f.orgid}'`)
|
|
353
|
+
},
|
|
322
354
|
showmsg(obj){
|
|
323
355
|
this.criteriaShow = false
|
|
324
356
|
this.$emit('close')
|
|
@@ -342,17 +374,19 @@
|
|
|
342
374
|
this.model.params.endDate = this.$refs.paged.$refs.cri.model.f_endDate + ' 23:59:59'
|
|
343
375
|
|
|
344
376
|
this.model.params.operatorState = this.$refs.paged.$refs.cri.model.f_type + ''
|
|
377
|
+
|
|
345
378
|
console.log("========")
|
|
346
379
|
console.log(this.$refs.paged.$refs.cri.model.f_residential_area)
|
|
347
|
-
if(this.$refs.paged.$refs.cri.model.f_residential_area != '' && this.$refs.paged.$refs.cri.model.
|
|
348
|
-
this.$refs.paged.model.params.condition1 = `f_residential_area
|
|
380
|
+
if(this.$refs.paged.$refs.cri.model.f_residential_area != '' && this.$refs.paged.$refs.cri.model.f_zones != ''){
|
|
381
|
+
this.$refs.paged.model.params.condition1 = `f_residential_area = '${this.$refs.paged.$refs.cri.model.f_residential_area}' and f_zones = '${this.$refs.paged.$refs.cri.model.f_zones}'`
|
|
349
382
|
}else if (this.$refs.paged.$refs.cri.model.f_residential_area != ''){
|
|
350
|
-
this.$refs.paged.model.params.condition1 = `f_residential_area
|
|
351
|
-
}else if (this.$refs.paged.$refs.cri.model.
|
|
352
|
-
this.$refs.paged.model.params.condition1 = `
|
|
383
|
+
this.$refs.paged.model.params.condition1 = `f_residential_area = '${this.$refs.paged.$refs.cri.model.f_residential_area}'`
|
|
384
|
+
}else if (this.$refs.paged.$refs.cri.model.f_zones != '') {
|
|
385
|
+
this.$refs.paged.model.params.condition1 = `f_zones = '${this.$refs.paged.$refs.cri.model.f_zones}'`
|
|
353
386
|
}else {
|
|
354
387
|
this.$refs.paged.model.params.condition1 = `1=1`
|
|
355
388
|
}
|
|
389
|
+
|
|
356
390
|
await this.model.search(args.condition, args.model)
|
|
357
391
|
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
358
392
|
console.log('计算合计。', this.sumsmodel)
|
|
@@ -380,6 +414,16 @@
|
|
|
380
414
|
this.$refs.paged.$refs.cri.model.f_startDate = this.$login.toStandardDateString()
|
|
381
415
|
this.$refs.paged.$refs.cri.model.f_endDate = this.$login.toStandardDateString()
|
|
382
416
|
},
|
|
417
|
+
userTypeChange () {
|
|
418
|
+
this.gasproperties=[]
|
|
419
|
+
if(this.$refs.paged.$refs.cri.model !==null) {
|
|
420
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties=''
|
|
421
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
422
|
+
}
|
|
423
|
+
else{
|
|
424
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
425
|
+
}
|
|
426
|
+
},
|
|
383
427
|
close() {
|
|
384
428
|
this.printshow = false
|
|
385
429
|
},
|
|
@@ -416,6 +460,92 @@
|
|
|
416
460
|
|
|
417
461
|
this.search()
|
|
418
462
|
},
|
|
463
|
+
// 初始化片区
|
|
464
|
+
async initAreas (val) {
|
|
465
|
+
if (val) {
|
|
466
|
+
let http = new HttpResetClass()
|
|
467
|
+
let getAllArea = await http.load('POST', '/rs/search', {
|
|
468
|
+
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
|
469
|
+
userid: this.$login.f.id
|
|
470
|
+
}, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
|
|
471
|
+
let arr = getAllArea.data.filter((res) => {
|
|
472
|
+
if(Array.isArray(val)){
|
|
473
|
+
for (let i = 0; i <val.length ; i++) {
|
|
474
|
+
if(res.parentid == val[i]){
|
|
475
|
+
return true
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
return res.parentid == val
|
|
480
|
+
})
|
|
481
|
+
this.sliceArea = []
|
|
482
|
+
this.slice_area = []
|
|
483
|
+
arr.forEach((res) => {
|
|
484
|
+
this.sliceArea.push({label: res.name, value: res.name})
|
|
485
|
+
})
|
|
486
|
+
console.log("===============")
|
|
487
|
+
console.log(this.sliceArea)
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
//初始化小区添加小区
|
|
491
|
+
async initareas(pconditon){
|
|
492
|
+
console.log(123)
|
|
493
|
+
// if(this.usertype){
|
|
494
|
+
// pconditon=pconditon+` and f_special='1' `
|
|
495
|
+
// }
|
|
496
|
+
this.areaslist = []
|
|
497
|
+
let HttpReset = new HttpResetClass()
|
|
498
|
+
let req = await HttpReset.load('POST', 'api/af-revenue/sql/querySingleTable?pageNo=1&pageSize=9999999', {
|
|
499
|
+
data: {
|
|
500
|
+
items: '*',
|
|
501
|
+
tablename: 't_area',
|
|
502
|
+
condition: pconditon
|
|
503
|
+
}
|
|
504
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
505
|
+
let redata = []
|
|
506
|
+
req.data.forEach((row) => {
|
|
507
|
+
redata.push({
|
|
508
|
+
label: row.f_residential_area,
|
|
509
|
+
value: row.f_residential_area,
|
|
510
|
+
data: row,
|
|
511
|
+
id: row.id
|
|
512
|
+
})
|
|
513
|
+
})
|
|
514
|
+
this.areaslist=redata
|
|
515
|
+
console.log('看看modal',this.model)
|
|
516
|
+
console.log('小区', redata)
|
|
517
|
+
},
|
|
518
|
+
async communityChange(val){
|
|
519
|
+
console.log("val")
|
|
520
|
+
console.log(val)
|
|
521
|
+
if(val){
|
|
522
|
+
await this.initareas(` f_orgid = '${this.f_filialeids[1]}' and f_slice_area ='${val}' `)
|
|
523
|
+
if(this.model.f_residential_area_id){
|
|
524
|
+
// if (this.findbyid(this.areaslist,this.model.f_residential_area_id)) {
|
|
525
|
+
// let pcd_id=this.findbyid(this.areaslist,this.model.f_residential_area_id).f_community_id
|
|
526
|
+
// if(pcd_id!=val){
|
|
527
|
+
// this.model.f_residential_area_id=''
|
|
528
|
+
// }
|
|
529
|
+
// } else {
|
|
530
|
+
// this.model.f_residential_area_id=''
|
|
531
|
+
// }
|
|
532
|
+
|
|
533
|
+
}
|
|
534
|
+
// if(this.model.f_pcd_id.length==0){
|
|
535
|
+
// if (this.findbyid(this.streetslist,this.model.f_street_id)) {
|
|
536
|
+
// this.model.f_pcd_id=this.findbyid(this.streetslist,this.model.f_street_id).f_pcd_id
|
|
537
|
+
// }
|
|
538
|
+
// }
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
},
|
|
542
|
+
watch: {
|
|
543
|
+
// 监听 `this.$login.f.orgid` 的变化
|
|
544
|
+
'orgname'() {
|
|
545
|
+
// 检查是否发生了变化
|
|
546
|
+
// 重新初始化数据
|
|
547
|
+
this.initdata();
|
|
548
|
+
}
|
|
419
549
|
},
|
|
420
550
|
computed: {
|
|
421
551
|
getCondition() {
|
|
@@ -430,9 +560,6 @@
|
|
|
430
560
|
getfield() {
|
|
431
561
|
return exportConfig.dataReportConfig
|
|
432
562
|
},
|
|
433
|
-
gasproperties() {
|
|
434
|
-
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用气性质')]
|
|
435
|
-
},
|
|
436
563
|
payments() {
|
|
437
564
|
return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
|
|
438
565
|
},
|
|
@@ -1644,8 +1644,8 @@ export default {
|
|
|
1644
1644
|
dataReportConfig: {
|
|
1645
1645
|
'f_userinfo_code': '客户编号',
|
|
1646
1646
|
'f_user_name': '客户姓名',
|
|
1647
|
-
'
|
|
1648
|
-
'
|
|
1647
|
+
'f_residential_area': '小区',
|
|
1648
|
+
'f_zones': '区/县',
|
|
1649
1649
|
'f_address': '地址',
|
|
1650
1650
|
'f_meter_brand': '气表厂家',
|
|
1651
1651
|
'f_meternumber': '表号',
|