manage-client 3.2.9-aode → 3.2.10-test-aode
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/DeductionGas.vue +147 -0
- package/src/components/sale/businessquery/NewAccountQuery.vue +497 -482
- package/src/components/sale/config/exportConfig.js +245 -245
- package/src/components/sale/filesquery/MeterQuery.vue +593 -593
- package/src/saleManage.js +254 -251
package/package.json
CHANGED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main">
|
|
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-horizontal select-overspread container-fluid auto" partial >
|
|
8
|
+
<div class="row">
|
|
9
|
+
<div class="col-sm-2">
|
|
10
|
+
<label class="font_normal_body">公  司</label>
|
|
11
|
+
<right-tree @re-res="$parent.$parent.getorg"
|
|
12
|
+
:initresid='$parent.$parent.org'></right-tree>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<div class="span" style="float:right;">
|
|
16
|
+
<button class="btn button_search" @click="search()">查询</button>
|
|
17
|
+
<button class="btn button_clear" @click="$parent.$parent.clear()">查询全部</button>
|
|
18
|
+
<export-excel-plus :defaultselect="$parent.$parent.selectfields" :data="$parent.$parent.getCondition"
|
|
19
|
+
:field="$parent.$parent.getfield"
|
|
20
|
+
:exportprogress="true"
|
|
21
|
+
sqlurl="rs/logic/exportfileplus" :sql-name="$parent.$parent.sqlName" template-name='抵扣气量导出' :choose-col="true"></export-excel-plus>
|
|
22
|
+
|
|
23
|
+
<!--<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>-->
|
|
24
|
+
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</criteria>
|
|
29
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
30
|
+
<template partial='head'>
|
|
31
|
+
<tr>
|
|
32
|
+
<th><nobr>序号</nobr></th>
|
|
33
|
+
<th><nobr>公司名称</nobr></th>
|
|
34
|
+
<th><nobr>总抵扣气量</nobr></th>
|
|
35
|
+
<th><nobr>剩余抵扣气量</nobr></th>
|
|
36
|
+
</tr>
|
|
37
|
+
</template>
|
|
38
|
+
<template partial='body'>
|
|
39
|
+
<td style="text-align: center;"><nobr>{{$index+1}}</nobr></td>
|
|
40
|
+
<th style="text-align: center;"><nobr>{{row.f_orgname}}</nobr></th>
|
|
41
|
+
<td style="text-align: center;"><nobr>{{row.f_remanent_gas}}</nobr></td>
|
|
42
|
+
<td style="text-align: center;"><nobr>{{row.f_deduction_gas}}</nobr></td>
|
|
43
|
+
</template>
|
|
44
|
+
</data-grid>
|
|
45
|
+
</criteria-paged>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</template>
|
|
50
|
+
<script>
|
|
51
|
+
/**
|
|
52
|
+
*用户档案查询列表以及添加操作组件
|
|
53
|
+
*/
|
|
54
|
+
import { PagedList } from 'vue-client'
|
|
55
|
+
import Vue from 'vue'
|
|
56
|
+
import plugin from 'system-clients/src/plugins/GetLoginInfoService'
|
|
57
|
+
|
|
58
|
+
export default {
|
|
59
|
+
title: '抵扣气量',
|
|
60
|
+
data () {
|
|
61
|
+
return {
|
|
62
|
+
org:'',
|
|
63
|
+
criteriaShow: false,
|
|
64
|
+
meter_classify:'卡表',
|
|
65
|
+
filialeNameStr: null,
|
|
66
|
+
filialeCodeStr: `and f_orgid = ${this.$login.f.orgid}`,
|
|
67
|
+
userid: this.$login.f.id,
|
|
68
|
+
source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
|
|
69
|
+
getfield:{"f_orgname":"组织","f_remanent_gas":"总抵扣气量","f_deduction_gas":"剩余抵扣气量"},
|
|
70
|
+
model: new PagedList('rs/sql/getDeductiongas', 50,{}),
|
|
71
|
+
rows: null,
|
|
72
|
+
//orgid:'',
|
|
73
|
+
sumsmodel: {},
|
|
74
|
+
sqlName:'getDeductiongas',
|
|
75
|
+
show:false,
|
|
76
|
+
rowdata:{},
|
|
77
|
+
initres: {
|
|
78
|
+
org:[this.$login.f.orgid],
|
|
79
|
+
dep:[],
|
|
80
|
+
user:[],
|
|
81
|
+
},
|
|
82
|
+
defaultfield: [],
|
|
83
|
+
selectfields:[],
|
|
84
|
+
searchCondition:[]
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
ready () {
|
|
88
|
+
|
|
89
|
+
},
|
|
90
|
+
methods: {
|
|
91
|
+
getorg (obj) {
|
|
92
|
+
if(obj.resids.length>0){
|
|
93
|
+
this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
|
|
94
|
+
}
|
|
95
|
+
else{
|
|
96
|
+
this.filialeCodeStr= ""
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
search () {
|
|
100
|
+
this.$refs.paged.$refs.cri.search()
|
|
101
|
+
},
|
|
102
|
+
selfSearch (args) {
|
|
103
|
+
if(!this.filialeCodeStr){
|
|
104
|
+
this.filialeCodeStr = `and f_orgid = ${this.$login.f.orgid}`
|
|
105
|
+
}
|
|
106
|
+
args.condition = args.condition+ ` ${this.filialeCodeStr}`
|
|
107
|
+
console.log("拼接的condition", args.condition, this.model)
|
|
108
|
+
this.model.search(args.condition, args.model)
|
|
109
|
+
},
|
|
110
|
+
// show(){
|
|
111
|
+
// this.criteriaShow = true
|
|
112
|
+
// },
|
|
113
|
+
hidden(){
|
|
114
|
+
this.criteriaShow = !this.criteriaShow
|
|
115
|
+
},
|
|
116
|
+
clear(){
|
|
117
|
+
this.filialeCodeStr= ""
|
|
118
|
+
this.model.search('1=1')
|
|
119
|
+
// Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
120
|
+
// this.$refs.paged.$refs.cri.model[key] = []
|
|
121
|
+
// })
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
},
|
|
125
|
+
computed: {
|
|
126
|
+
getCondition () {
|
|
127
|
+
let result = {
|
|
128
|
+
condition: '',
|
|
129
|
+
startDate: '',
|
|
130
|
+
endDate: ''
|
|
131
|
+
// diffDay:' 1=1 '
|
|
132
|
+
}
|
|
133
|
+
result.condition = this.$refs.paged.$refs.cri.condition + this.filialeCodeStr
|
|
134
|
+
return result
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
</script>
|
|
139
|
+
<style media="screen">
|
|
140
|
+
.divtext {
|
|
141
|
+
min-width: 50px;
|
|
142
|
+
max-width: 200px;
|
|
143
|
+
border: 1px solid green;
|
|
144
|
+
display: inline-block;
|
|
145
|
+
}
|
|
146
|
+
</style>
|
|
147
|
+
|