manage-client 4.0.26 → 4.0.27
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/.npmignore +10 -0
- package/build/.npmignore +1 -0
- package/package-lock.json +22663 -0
- package/package.json +1 -1
- package/src/components/SellReport/YuShouTable.vue +33 -18
- package/src/components/sale/businessquery/gasDeviceStatistics.vue +180 -0
- package/src/filiale/ruihua/MeterExceptionList.vue +557 -0
- package/src/filiale/ruihua/webmeterManage.js +14 -0
- package/src/saleManage.js +4 -0
package/package.json
CHANGED
|
@@ -160,38 +160,53 @@
|
|
|
160
160
|
f_orgid: 'this.model.f_orgid'}),
|
|
161
161
|
reportStr: null,
|
|
162
162
|
show: false,
|
|
163
|
-
startDate:
|
|
164
|
-
endDate:
|
|
165
|
-
startdate:'',
|
|
166
|
-
enddate:'',
|
|
167
|
-
orgFlag:false,
|
|
168
|
-
depFlag:false,
|
|
169
|
-
operFlag:false,
|
|
163
|
+
startDate: '',
|
|
164
|
+
endDate: '',
|
|
165
|
+
startdate: '',
|
|
166
|
+
enddate: '',
|
|
167
|
+
orgFlag: false,
|
|
168
|
+
depFlag: false,
|
|
169
|
+
operFlag: false,
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
172
|
ready () {
|
|
173
173
|
this.startdate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
174
174
|
this.enddate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
175
|
-
this.startDate=this.startdate.substring(0,10)
|
|
176
|
-
this.endDate=this.startDate.substring(0,10)
|
|
175
|
+
this.startDate = this.startdate.substring(0, 10)
|
|
176
|
+
this.endDate = this.startDate.substring(0, 10)
|
|
177
177
|
console.log(this.$login.f)
|
|
178
178
|
},
|
|
179
179
|
methods: {
|
|
180
|
+
appendCondition (data) {
|
|
181
|
+
console.log('data=====>', data)
|
|
182
|
+
let stringValue = ''
|
|
183
|
+
for (var i = 0; i < data.length; i++) {
|
|
184
|
+
if (data[i]) {
|
|
185
|
+
if (i === data.length - 1) {
|
|
186
|
+
stringValue = stringValue + "'" + data[i] + "'"
|
|
187
|
+
} else {
|
|
188
|
+
stringValue = stringValue + "'" + data[i] + "',"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
return stringValue
|
|
193
|
+
},
|
|
180
194
|
searchData () {
|
|
181
195
|
this.$refs.paged.$refs.criteria.search()
|
|
182
196
|
},
|
|
183
197
|
selfSearch (args) {
|
|
184
|
-
let f_dep=this.f_depid
|
|
198
|
+
let f_dep = this.f_depid
|
|
185
199
|
let orgcondition = ` ts.f_orgid in ('${this.f_orgid}')`
|
|
186
200
|
if (f_dep[0]) {
|
|
187
|
-
orgcondition += " and ts.f_depid in('"+f_dep[0]+"'"
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
orgcondition +=')'
|
|
201
|
+
orgcondition += " and ts.f_depid in('" + f_dep[0] + "'"
|
|
202
|
+
for (let i = 1; i < f_dep.length; i++) {
|
|
203
|
+
orgcondition += ",'" + f_dep[i] + "'"
|
|
204
|
+
}
|
|
205
|
+
orgcondition += ')'
|
|
192
206
|
}
|
|
193
|
-
if(this.f_operatorid[0]) {
|
|
194
|
-
|
|
207
|
+
if (this.f_operatorid[0]) {
|
|
208
|
+
const operatorIds = this.f_operatorid.map(id => `'${id}'`).join(',')
|
|
209
|
+
orgcondition += ` and ts.f_operatorid in (${operatorIds})`
|
|
195
210
|
}
|
|
196
211
|
// console.log(this.orgname,this.depname.toString(),this.operatorname)
|
|
197
212
|
this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
|
|
@@ -207,7 +222,7 @@
|
|
|
207
222
|
this.userresid = obj
|
|
208
223
|
this.f_depid = obj
|
|
209
224
|
},
|
|
210
|
-
getuser (
|
|
225
|
+
getuser (obj, val) {
|
|
211
226
|
this.operatorname = val[0]
|
|
212
227
|
this.f_operatorid = obj
|
|
213
228
|
},
|
|
@@ -0,0 +1,180 @@
|
|
|
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 @sort="sort">
|
|
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 form-group">
|
|
10
|
+
<label for="startDate" class="font_normal_body">开始日期</label>
|
|
11
|
+
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
12
|
+
v-model="model.startDate"
|
|
13
|
+
:value.sync="model.startDate"
|
|
14
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
15
|
+
:show-reset-button="true">
|
|
16
|
+
</datepicker>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="col-sm-2 form-group">
|
|
19
|
+
<label for="endDate" class="font_normal_body">结束日期</label>
|
|
20
|
+
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
21
|
+
v-model="model.endDate"
|
|
22
|
+
:value.sync="model.endDate"
|
|
23
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
24
|
+
:show-reset-button="true">
|
|
25
|
+
</datepicker>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="col-sm-2 form-group">
|
|
28
|
+
<label class="font_normal_body"> 公司 </label>
|
|
29
|
+
<right-tree @re-res="$parent.$parent.getRes"></right-tree>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="col-sm-2 form-group">
|
|
32
|
+
<label class="font_normal_body"> 部门 </label>
|
|
33
|
+
<res-select restype='department'
|
|
34
|
+
@res-select="$parent.$parent.getdep"
|
|
35
|
+
:parentresid="$parent.$parent.depresid"
|
|
36
|
+
:initresid='$parent.$parent.depid'>
|
|
37
|
+
</res-select>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="col-sm-2 form-group">
|
|
40
|
+
<label class="font_normal_body"> 人员 </label>
|
|
41
|
+
<res-select restype='user'
|
|
42
|
+
is-mul ="false"
|
|
43
|
+
@res-select="$parent.$parent.getuser"
|
|
44
|
+
:parentresid="$parent.$parent.userresid"
|
|
45
|
+
:initresid='$parent.$parent.operatorid'>
|
|
46
|
+
</res-select>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="span" style="float:right;">
|
|
49
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
</criteria>
|
|
54
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
55
|
+
<template partial='head'>
|
|
56
|
+
<tr>
|
|
57
|
+
<th>
|
|
58
|
+
<nobr>设备类型</nobr>
|
|
59
|
+
</th>
|
|
60
|
+
<th>
|
|
61
|
+
<nobr>用户数量</nobr>
|
|
62
|
+
</th>
|
|
63
|
+
</tr>
|
|
64
|
+
</template>
|
|
65
|
+
<template partial='body'>
|
|
66
|
+
<td style="text-align: center;">
|
|
67
|
+
<nobr>{{row.f_devices_type}}</nobr>
|
|
68
|
+
</td>
|
|
69
|
+
<td style="text-align: center;"><nobr>
|
|
70
|
+
<nobr>{{row.f_number}}</nobr>
|
|
71
|
+
</nobr> </td>
|
|
72
|
+
</template>
|
|
73
|
+
<template partial='foot'></template>
|
|
74
|
+
</data-grid>
|
|
75
|
+
</criteria-paged>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</template>
|
|
80
|
+
<script>
|
|
81
|
+
import {PagedList} from 'vue-client'
|
|
82
|
+
import {methods} from 'babel-plugin-transform-runtime/lib/definitions'
|
|
83
|
+
|
|
84
|
+
let readySomething = async function (self) {
|
|
85
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
|
|
86
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
87
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
88
|
+
}
|
|
89
|
+
export default {
|
|
90
|
+
title: '用气统计报表',
|
|
91
|
+
props: ['data'],
|
|
92
|
+
data () {
|
|
93
|
+
return {
|
|
94
|
+
model: new PagedList('api/af-revenue/sql/gasDeviceStatistics', 20,{startDate: 'this.model.startDate', endDate: 'this.model.endDate', f_orgid: 'this.model.f_orgid'}),
|
|
95
|
+
show: false,
|
|
96
|
+
depresid: [],
|
|
97
|
+
userresid: [],
|
|
98
|
+
f_orgid: this.$login.f.orgid,
|
|
99
|
+
f_depid: this.$login.f.depids,
|
|
100
|
+
f_operatorid: this.$login.f.id,
|
|
101
|
+
operatorid: [],
|
|
102
|
+
depid: [],
|
|
103
|
+
orgname: '',
|
|
104
|
+
depname: [],
|
|
105
|
+
operatorname: '',
|
|
106
|
+
orgCondtionStr: '1=1',
|
|
107
|
+
startDate: '',
|
|
108
|
+
endDate: '',
|
|
109
|
+
resshow: ['company', 'department', 'operator', 'slicearea'],
|
|
110
|
+
orderitem: 'f_operate_date desc'
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
ready() {
|
|
114
|
+
readySomething(this).then(() => {
|
|
115
|
+
this.$emit('ready')
|
|
116
|
+
}).catch((error) => {
|
|
117
|
+
this.$emit('error', error)
|
|
118
|
+
})
|
|
119
|
+
},
|
|
120
|
+
methods: {
|
|
121
|
+
search(){
|
|
122
|
+
this.$refs.paged.$refs.cri.search()
|
|
123
|
+
},
|
|
124
|
+
selfSearch(args) { // 调用sql文件
|
|
125
|
+
let f_dep=this.f_depid
|
|
126
|
+
let f_org=this.f_orgid
|
|
127
|
+
let f_oper = this.f_operatorid
|
|
128
|
+
let orgcondition = ''
|
|
129
|
+
if (f_org[0]) {
|
|
130
|
+
orgcondition += "f_orgid in('"+f_org[0]+"'"
|
|
131
|
+
for( let i=1;i<f_org.length;i++){
|
|
132
|
+
orgcondition += ",'"+f_org[i]+"'"
|
|
133
|
+
}
|
|
134
|
+
orgcondition +=') '
|
|
135
|
+
}else if (f_org[0]==='' || f_org[0]===undefined) {
|
|
136
|
+
orgcondition = ' 1=1 '
|
|
137
|
+
}else {
|
|
138
|
+
orgcondition = ' f_orgid = ' + this.f_orgid
|
|
139
|
+
}
|
|
140
|
+
if (f_dep[0]) {
|
|
141
|
+
orgcondition += " and f_depid in('"+f_dep[0]+"'"
|
|
142
|
+
for( let i=1;i<f_dep.length;i++){
|
|
143
|
+
orgcondition += ",'"+f_dep[i]+"'"
|
|
144
|
+
}
|
|
145
|
+
orgcondition +=') '
|
|
146
|
+
}
|
|
147
|
+
if(f_oper[0]) {
|
|
148
|
+
orgcondition += "and uf.f_operatorid in('"+f_oper[0]+"'"
|
|
149
|
+
for( let i=1;i<f_oper.length;i++){
|
|
150
|
+
orgcondition += ",'"+f_oper[i]+"'"
|
|
151
|
+
}
|
|
152
|
+
orgcondition +=') '
|
|
153
|
+
}
|
|
154
|
+
this.$refs.paged.$refs.cri.model.f_orgid = orgcondition
|
|
155
|
+
args.condition = orgcondition + 'and' + args.condition
|
|
156
|
+
console.log("condition:" + args.condition)
|
|
157
|
+
this.startDate=this.$refs.paged.$refs.cri.model.startDate.substring(0,10)
|
|
158
|
+
this.endDate=this.$refs.paged.$refs.cri.model.endDate.substring(0,10)
|
|
159
|
+
this.model.search(args.f_orgid, args.model, args.condition)
|
|
160
|
+
},
|
|
161
|
+
getRes (obj) {
|
|
162
|
+
this.orgname = obj.res[0]
|
|
163
|
+
this.depresid = obj.resids
|
|
164
|
+
this.f_orgid = obj.resids
|
|
165
|
+
},
|
|
166
|
+
getdep (obj, val) {
|
|
167
|
+
this.depname = val
|
|
168
|
+
this.userresid = obj
|
|
169
|
+
this.f_depid = obj
|
|
170
|
+
},
|
|
171
|
+
getuser ( obj, val) {
|
|
172
|
+
this.operatorname = val[0]
|
|
173
|
+
this.f_operatorid = obj
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
computed: {
|
|
177
|
+
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
</script>
|