manage-client 3.3.225 → 3.3.227
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
|
@@ -59,6 +59,16 @@
|
|
|
59
59
|
<right-tree @re-res="$parent.$parent.getorg" width="60%"
|
|
60
60
|
:initresid='$parent.$parent.org'></right-tree>
|
|
61
61
|
</div>
|
|
62
|
+
<div class="col-sm-2 form-group">
|
|
63
|
+
<label class="font_normal_body" for="dep" >部  门</label>
|
|
64
|
+
<res-select id="dep" restype='department' style="width: 60%"
|
|
65
|
+
is-mul="false"
|
|
66
|
+
@res-select="$parent.$parent.getdep"
|
|
67
|
+
:parentresid="$parent.$parent.depresid"
|
|
68
|
+
:initresid='$parent.$parent.depid' >
|
|
69
|
+
</res-select>
|
|
70
|
+
|
|
71
|
+
</div>
|
|
62
72
|
<div class="col-sm-2 form-group">
|
|
63
73
|
<label class="font_normal_body">客户类型</label>
|
|
64
74
|
<v-select style="width:60%" id="f_user_type"
|
|
@@ -419,6 +429,13 @@
|
|
|
419
429
|
endDate: '',
|
|
420
430
|
criteriaShow:false,
|
|
421
431
|
outlets: [],
|
|
432
|
+
depresid: [],
|
|
433
|
+
queryData: {
|
|
434
|
+
f_orgid: [],
|
|
435
|
+
f_depid: [],
|
|
436
|
+
f_operatorid: [],
|
|
437
|
+
f_payment: []
|
|
438
|
+
},
|
|
422
439
|
gasproperties:[{label: '全部', value: ''}],
|
|
423
440
|
operator: [],
|
|
424
441
|
WarningType: [
|
|
@@ -564,12 +581,36 @@
|
|
|
564
581
|
},
|
|
565
582
|
getorg(obj) {
|
|
566
583
|
if (obj.resids.length>0) {
|
|
584
|
+
this.depresid = obj.resids
|
|
567
585
|
this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
|
|
568
586
|
}else
|
|
569
587
|
{
|
|
588
|
+
this.depresid = obj.resids
|
|
570
589
|
this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
|
|
571
590
|
}
|
|
572
591
|
},
|
|
592
|
+
getdep(obj, val) {
|
|
593
|
+
this.orgCondtionStr = ""
|
|
594
|
+
|
|
595
|
+
this.depname = val[0]
|
|
596
|
+
this.userresid = obj
|
|
597
|
+
this.queryData.f_depid = obj
|
|
598
|
+
console.log(this.queryData.f_depid)
|
|
599
|
+
|
|
600
|
+
if (obj.length > 0) {
|
|
601
|
+
this.orgCondtionStr += " and f_depid in " + plugin.convertToIn(obj)
|
|
602
|
+
} else {
|
|
603
|
+
this.orgCondtionStr += " and f_depid = " + this.$login.f.depid
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
if (this.depresid && this.depresid.length > 0) {
|
|
607
|
+
this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(this.depresid) + this.orgCondtionStr
|
|
608
|
+
} else {
|
|
609
|
+
this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid + this.orgCondtionStr
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
console.log(this.orgCondtionStr);
|
|
613
|
+
},
|
|
573
614
|
// SaveAsFile(str) {
|
|
574
615
|
// this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
|
|
575
616
|
// if (res === 'confirm') {
|
|
@@ -60,6 +60,16 @@
|
|
|
60
60
|
<right-tree @re-res="$parent.$parent.getorg"
|
|
61
61
|
:initresid='$parent.$parent.org'></right-tree>
|
|
62
62
|
</div>
|
|
63
|
+
<div class="col-sm-2 form-group">
|
|
64
|
+
<label class="font_normal_body" for="dep" >部  门</label>
|
|
65
|
+
<res-select id="dep" restype='department' style="width: 60%"
|
|
66
|
+
is-mul="false"
|
|
67
|
+
@res-select="$parent.$parent.getdep"
|
|
68
|
+
:parentresid="$parent.$parent.depresid"
|
|
69
|
+
:initresid='$parent.$parent.depid' >
|
|
70
|
+
</res-select>
|
|
71
|
+
|
|
72
|
+
</div>
|
|
63
73
|
<div class="col-sm-2 form-group">
|
|
64
74
|
<label class="font_normal_body">客户类型</label>
|
|
65
75
|
<v-select style="width:60%" id="f_user_type"
|
|
@@ -375,6 +385,14 @@
|
|
|
375
385
|
rowdata:{},
|
|
376
386
|
criteriaShow:false,
|
|
377
387
|
outlets: [],
|
|
388
|
+
depresid: [],
|
|
389
|
+
queryData: {
|
|
390
|
+
f_orgid: [],
|
|
391
|
+
f_depid: [],
|
|
392
|
+
f_operatorid: [],
|
|
393
|
+
f_payment: []
|
|
394
|
+
},
|
|
395
|
+
depid: [],
|
|
378
396
|
operator: [],
|
|
379
397
|
other: [],
|
|
380
398
|
sumsmodel: {},
|
|
@@ -387,7 +405,7 @@
|
|
|
387
405
|
],
|
|
388
406
|
styles:false,
|
|
389
407
|
org:[this.$login.f.orgid],
|
|
390
|
-
orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`,
|
|
408
|
+
orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid} `,
|
|
391
409
|
echarts: false,
|
|
392
410
|
searchshow: false,
|
|
393
411
|
isActiveTotalForm: false,
|
|
@@ -496,13 +514,38 @@
|
|
|
496
514
|
this.model.search(args.condition, args.model)
|
|
497
515
|
},
|
|
498
516
|
getorg(obj) {
|
|
499
|
-
if (obj.resids.length>0) {
|
|
517
|
+
if (obj.resids.length > 0) {
|
|
518
|
+
this.depresid = obj.resids
|
|
500
519
|
this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
|
|
501
|
-
}else
|
|
502
|
-
|
|
520
|
+
} else {
|
|
521
|
+
this.depresid = obj.resids
|
|
503
522
|
this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
|
|
504
523
|
}
|
|
524
|
+
console.log(this.orgCondtionStr);
|
|
505
525
|
},
|
|
526
|
+
getdep(obj, val) {
|
|
527
|
+
this.orgCondtionStr = ""
|
|
528
|
+
|
|
529
|
+
this.depname = val[0]
|
|
530
|
+
this.userresid = obj
|
|
531
|
+
this.queryData.f_depid = obj
|
|
532
|
+
console.log(this.queryData.f_depid)
|
|
533
|
+
|
|
534
|
+
if (obj.length > 0) {
|
|
535
|
+
this.orgCondtionStr += " and f_depid in " + plugin.convertToIn(obj)
|
|
536
|
+
} else {
|
|
537
|
+
this.orgCondtionStr += " and f_depid = " + this.$login.f.depid
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
if (this.depresid && this.depresid.length > 0) {
|
|
541
|
+
this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(this.depresid) + this.orgCondtionStr
|
|
542
|
+
} else {
|
|
543
|
+
this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid + this.orgCondtionStr
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
console.log(this.orgCondtionStr);
|
|
547
|
+
},
|
|
548
|
+
|
|
506
549
|
// SaveAsFile(str) {
|
|
507
550
|
// this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
|
|
508
551
|
// if (res === 'confirm') {
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
<button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
|
|
37
37
|
<export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
|
|
38
38
|
:field="$parent.$parent.getfield"
|
|
39
|
+
:header="$parent.$parent.other"
|
|
39
40
|
sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="queryGasRecord" template-name='用气量统计表'
|
|
40
41
|
:choose-col="true"></export-excel>
|
|
41
42
|
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
|
|
@@ -312,6 +313,7 @@ export default {
|
|
|
312
313
|
title: '新用气分析',
|
|
313
314
|
data () {
|
|
314
315
|
return {
|
|
316
|
+
other: [],
|
|
315
317
|
show:false,
|
|
316
318
|
org:[this.$login.f.orgid],
|
|
317
319
|
orgcondition: ' and f_orgid = ' + this.$login.f.orgid,
|
|
@@ -364,6 +366,13 @@ export default {
|
|
|
364
366
|
this.$refs.paged.$refs.criteria.model.inputEndDate = Util.addDate(new Date(),-1).substring(0,10) + ' 23:59:59'
|
|
365
367
|
},
|
|
366
368
|
methods: {
|
|
369
|
+
getheader() {
|
|
370
|
+
this.other=[];
|
|
371
|
+
let date = []
|
|
372
|
+
date.push(`起始时间:${this.$refs.paged.$refs.cri.model.startDate}`)
|
|
373
|
+
date.push(`终止时间:${this.$refs.paged.$refs.cri.model.endDate}`)
|
|
374
|
+
this.other.push(date)
|
|
375
|
+
},
|
|
367
376
|
initParams() {
|
|
368
377
|
// 初始化气表品牌
|
|
369
378
|
let brandArr = []
|
|
@@ -450,6 +459,12 @@ export default {
|
|
|
450
459
|
this.f_filialeid = res[1]
|
|
451
460
|
// this.updateParams()
|
|
452
461
|
}
|
|
462
|
+
},
|
|
463
|
+
sumsmodel:{
|
|
464
|
+
handler: function (val){
|
|
465
|
+
this.getheader()
|
|
466
|
+
},
|
|
467
|
+
deep: true
|
|
453
468
|
}
|
|
454
469
|
},
|
|
455
470
|
computed: {
|