manage-client 3.3.2 → 3.3.3
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/build/dev-server.js +180 -180
- package/package.json +1 -1
- package/src/components/sale/businessquery/GroupChargeQuery.vue +481 -481
- package/src/components/sale/businessquery/NewAreaGeneralQuery.vue +633 -633
- package/src/components/webmeter/recharge/RechargeList.vue +346 -346
- package/src/filiale/gehua/GroupChargeQuery.vue +486 -486
- package/src/filiale/huayin/ChargeQuery.vue +1305 -1305
- package/src/filiale/macheng/config/exportConfig.js +1 -1
- package/src/filiale/rongcheng/AreaBuildingDetailInfo.vue +281 -281
- package/src/filiale/rongcheng/AreaBuildingInfoSummary.vue +301 -301
- package/src/filiale/rongcheng/exportConfig.js +536 -536
- package/src/filiale/rongcheng/sale.js +22 -22
- package/src/filiale/shanxian/CancellationQuery.vue +426 -0
- package/src/filiale/shanxian/ChangeUserQuery.vue +395 -0
- package/src/filiale/shanxian/DeviceQuery.vue +586 -0
- package/src/filiale/shanxian/DisableQuery.vue +528 -0
- package/src/filiale/shanxian/EnableQuery.vue +461 -0
- package/src/filiale/shanxian/FMYGasQuery.vue +731 -0
- package/src/filiale/shanxian/FillCardQuery.vue +569 -569
- package/src/filiale/shanxian/FillGasQuery.vue +588 -588
- package/src/filiale/shanxian/FmyGasDeviceQuery.vue +68 -33
- package/src/filiale/shanxian/InspectListUserNew.vue +18 -16
- package/src/filiale/shanxian/LostContactAnalysisList.vue +633 -632
- package/src/filiale/shanxian/MeterQuery.vue +968 -0
- package/src/filiale/shanxian/MonthGasQuery.vue +481 -0
- package/src/filiale/shanxian/NewQueryInstruct.vue +457 -0
- package/src/filiale/shanxian/OtherChargeQuery.vue +684 -684
- package/src/filiale/shanxian/ReverseQuery.vue +454 -0
- package/src/filiale/shanxian/TransferQuery.vue +469 -0
- package/src/filiale/shanxian/UserGasAll.vue +15 -14
- package/src/filiale/shanxian/UserLostContactAnalysis.vue +584 -583
- package/src/filiale/shanxian/UserQuery.vue +960 -959
- package/src/filiale/shanxian/config/exportConfig.js +100 -100
- package/src/filiale/shanxian/newwebmeter/TotalExceptionByMeter.vue +608 -0
- package/src/filiale/shanxian/sale.js +46 -26
- package/src/filiale/shanxian/webmeterManage.js +4 -0
- package/src/filiale/wenxi/ChangeMeterQuery.vue +704 -704
- package/src/filiale/wenxi/ChangeUserQuery.vue +371 -371
- package/src/filiale/wenxi/ChargeQuery.vue +1260 -1260
- package/src/filiale/wenxi/FmyGasDeviceQuery.vue +944 -944
- package/src/filiale/wenxi/GasDeviceQuery.vue +1041 -1041
- package/src/filiale/wenxi/GasStatistics.vue +515 -515
- package/src/filiale/wenxi/GetNoMetereadData.vue +374 -374
- package/src/filiale/wenxi/HandplanQuery.vue +1370 -1370
- package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
- package/src/filiale/wenxi/MeterQuery.vue +937 -964
- package/src/filiale/wenxi/NewGasStatistics.vue +522 -522
- package/src/filiale/wenxi/RecordInfoQuery.vue +1213 -1213
- package/src/filiale/wenxi/WebHandQuery.vue +475 -475
- package/src/filiale/wenxi/config/exportConfig.js +916 -916
- package/src/filiale/wenxi/sale.js +24 -24
- package/src/filiale/wenxi/webmeterManage.js +13 -13
- package/src/filiale/xinkang/EchartsBox.vue +139 -139
- package/src/filiale/xinkang/ManageBrandHouseCount.vue +347 -347
- package/src/filiale/xinkang/NewGasStatistics.vue +526 -526
- package/src/filiale/xinkang/exportConfig.js +1998 -1998
- package/src/filiale/xinkang/meterFaultChangeSummary.vue +196 -196
- package/src/filiale/xinkang/reportManage.js +15 -15
- package/src/filiale/xinkang/sale.js +13 -13
- package/src/filiale/xinkang/webmeterManage.js +9 -9
- package/src/filiale/zhongyi/GasStatistics.vue +521 -521
- package/src/main.js +66 -72
- package/lib/package_2022-12-01-14-30-50.json +0 -109
|
@@ -1,347 +1,347 @@
|
|
|
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>
|
|
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
|
-
|
|
39
|
-
</div>
|
|
40
|
-
<div class="col-sm-2 form-group">
|
|
41
|
-
<label class="font_normal_body"> 人员 </label>
|
|
42
|
-
<res-select restype='user'
|
|
43
|
-
is-mul="false"
|
|
44
|
-
@res-select="$parent.$parent.getuser"
|
|
45
|
-
:parentresid="$parent.$parent.userresid"
|
|
46
|
-
:initresid='$parent.$parent.operatorid'>
|
|
47
|
-
</res-select>
|
|
48
|
-
</div>
|
|
49
|
-
<div class="span" style="float:right;">
|
|
50
|
-
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
51
|
-
|
|
52
|
-
<export-excel :data="$parent.$parent.getCondition"
|
|
53
|
-
:field="$parent.$parent.getfield"
|
|
54
|
-
:header="$parent.$parent.other"
|
|
55
|
-
:footer="$parent.$parent.footer"
|
|
56
|
-
sqlurl="rs/logic/exportfile"
|
|
57
|
-
sql-name="manageBrandHouseCount"
|
|
58
|
-
template-name='用户查询报表'
|
|
59
|
-
:choose-col="true"></export-excel>
|
|
60
|
-
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
|
|
61
|
-
titletable="用户查询" :starthead="$parent.$parent.startDate" :defaultfield="$parent.$parent.defaultfield"
|
|
62
|
-
:sumsmodel="$parent.$parent.sumsmodel"></print-data>
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
</div>
|
|
66
|
-
</criteria>
|
|
67
|
-
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
|
|
68
|
-
<template partial='head'>
|
|
69
|
-
<tr>
|
|
70
|
-
<th>
|
|
71
|
-
<nobr>气表品牌</nobr>
|
|
72
|
-
</th>
|
|
73
|
-
<th>
|
|
74
|
-
<nobr>总用户数</nobr>
|
|
75
|
-
</th>
|
|
76
|
-
<th>
|
|
77
|
-
<nobr>民用户数</nobr>
|
|
78
|
-
</th>
|
|
79
|
-
<th>
|
|
80
|
-
<nobr>非民用户数</nobr>
|
|
81
|
-
</th>
|
|
82
|
-
<th>
|
|
83
|
-
<nobr>机表户数</nobr>
|
|
84
|
-
</th>
|
|
85
|
-
<th>
|
|
86
|
-
<nobr>卡表户数</nobr>
|
|
87
|
-
</th>
|
|
88
|
-
<th>
|
|
89
|
-
<nobr>物联网表户数</nobr>
|
|
90
|
-
</th>
|
|
91
|
-
|
|
92
|
-
</tr>
|
|
93
|
-
</template>
|
|
94
|
-
<template partial='body'>
|
|
95
|
-
<td style="text-align:center">
|
|
96
|
-
<nobr>{{row.f_meter_brand}}</nobr>
|
|
97
|
-
</td>
|
|
98
|
-
<td style="text-align: center;">
|
|
99
|
-
<nobr>{{row.f_total_users}}</nobr>
|
|
100
|
-
</td>
|
|
101
|
-
<td style="text-align: center;">
|
|
102
|
-
<nobr>{{row.f_civilian_users}}</nobr>
|
|
103
|
-
</td>
|
|
104
|
-
<td style="text-align: center;">
|
|
105
|
-
<nobr>{{row.f_non_civilian_users}}</nobr>
|
|
106
|
-
</td>
|
|
107
|
-
<td style="text-align: center;">
|
|
108
|
-
<nobr>{{row.f_mechanical_meter_users}}</nobr>
|
|
109
|
-
</td>
|
|
110
|
-
<td style="text-align: center;">
|
|
111
|
-
<nobr>{{row.f_card_meter_users}}</nobr>
|
|
112
|
-
</td>
|
|
113
|
-
<td style="text-align: center;">
|
|
114
|
-
<nobr>{{row.f_iot_meter_users}}</nobr>
|
|
115
|
-
</td>
|
|
116
|
-
</template>
|
|
117
|
-
<template partial='foot'></template>
|
|
118
|
-
</data-grid>
|
|
119
|
-
</criteria-paged>
|
|
120
|
-
<table class="table-hover">
|
|
121
|
-
<tr style="position: relative" class="table-bordered">
|
|
122
|
-
<td
|
|
123
|
-
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
124
|
-
汇总信息
|
|
125
|
-
</td>
|
|
126
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
127
|
-
综合总用户数: {{sumsmodel.f_total_users}}
|
|
128
|
-
</td>
|
|
129
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
130
|
-
总民用用户数: {{sumsmodel.f_civilian_users}}
|
|
131
|
-
</td>
|
|
132
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
133
|
-
总非民用用户数: {{sumsmodel.f_non_civilian_users}}
|
|
134
|
-
</td>
|
|
135
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
136
|
-
总机表用户数: {{sumsmodel.f_mechanical_meter_users}}
|
|
137
|
-
</td>
|
|
138
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
139
|
-
总卡表用户数: {{sumsmodel.f_card_meter_users}}
|
|
140
|
-
</td>
|
|
141
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
142
|
-
总物联网表用户数: {{sumsmodel.f_iot_meter_users}}
|
|
143
|
-
</td>
|
|
144
|
-
</tr>
|
|
145
|
-
</table>
|
|
146
|
-
</div>
|
|
147
|
-
</div>
|
|
148
|
-
</div>
|
|
149
|
-
</template>
|
|
150
|
-
<script>
|
|
151
|
-
import {PagedList, HttpResetClass} from 'vue-client'
|
|
152
|
-
import defaultPrint from '../../components/sale/config/DefaultPrint'
|
|
153
|
-
import exportConfig from './exportConfig'
|
|
154
|
-
import PrintDataSelf from '../../components/sale/common/PrintDataSelf'
|
|
155
|
-
|
|
156
|
-
let readySomething = async function (self) {
|
|
157
|
-
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
|
|
158
|
-
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
159
|
-
}
|
|
160
|
-
export default {
|
|
161
|
-
title: '用户查询',
|
|
162
|
-
data() {
|
|
163
|
-
return {
|
|
164
|
-
depresid: [],
|
|
165
|
-
userresid: [],
|
|
166
|
-
f_orgid: this.$login.f.orgid,
|
|
167
|
-
f_depid: this.$login.f.depids,
|
|
168
|
-
f_operatorid: this.$login.f.id,
|
|
169
|
-
operatorid: [],
|
|
170
|
-
depid: [],
|
|
171
|
-
orgname: '',
|
|
172
|
-
depname: [],
|
|
173
|
-
operatorname: '',
|
|
174
|
-
orgCondtionStr: '1=1',
|
|
175
|
-
data: {},
|
|
176
|
-
other:[],
|
|
177
|
-
footer:[],
|
|
178
|
-
model: new PagedList('rs/sql/manageBrandHouseCount', 20, { f_orgid: 'this.model.f_orgid'},{
|
|
179
|
-
f_total_users: 0,
|
|
180
|
-
f_civilian_users: 0,
|
|
181
|
-
f_non_civilian_users: 0,
|
|
182
|
-
f_mechanical_meter_users :0,
|
|
183
|
-
f_card_meter_users: 0,
|
|
184
|
-
f_iot_meter_users: 0
|
|
185
|
-
}),
|
|
186
|
-
gasproperties:[],
|
|
187
|
-
show:false,
|
|
188
|
-
rowdata:{},
|
|
189
|
-
residentialArea: [],
|
|
190
|
-
modelval: [],
|
|
191
|
-
startDate:"",
|
|
192
|
-
endDate:"",
|
|
193
|
-
inputtouPerson: [],
|
|
194
|
-
printshow: false,
|
|
195
|
-
all: false,
|
|
196
|
-
fields: {},
|
|
197
|
-
thead: '',
|
|
198
|
-
tfoot: '',
|
|
199
|
-
defaultfield: [],
|
|
200
|
-
sumsmodel: {}
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
ready() {
|
|
204
|
-
readySomething(this).then(() => {
|
|
205
|
-
this.$emit('ready')
|
|
206
|
-
}).catch((error) => {
|
|
207
|
-
this.$emit('error', error)
|
|
208
|
-
})
|
|
209
|
-
},
|
|
210
|
-
methods: {
|
|
211
|
-
getotherfooter(){
|
|
212
|
-
this.other = [];
|
|
213
|
-
this.footer = [];
|
|
214
|
-
let exportdata = this.getCondition;
|
|
215
|
-
let otherInData = [];
|
|
216
|
-
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
217
|
-
let footerData = [], exportfield = this.getfield;
|
|
218
|
-
footerData.push("合计");
|
|
219
|
-
let self = this;
|
|
220
|
-
for (var field in self.sumsmodel) {
|
|
221
|
-
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
222
|
-
}
|
|
223
|
-
this.footer.push(footerData);
|
|
224
|
-
this.other.push(otherInData);
|
|
225
|
-
},
|
|
226
|
-
search(){
|
|
227
|
-
this.$refs.paged.$refs.cri.search()
|
|
228
|
-
},
|
|
229
|
-
selfSearch(args) {
|
|
230
|
-
let orgcondition = ' ui.f_orgid in (' + this.f_orgid + ')'
|
|
231
|
-
if (this.f_depid[0]) {
|
|
232
|
-
orgcondition += " and ui.f_depid in("+this.f_depid.toString()+')'
|
|
233
|
-
}
|
|
234
|
-
if(this.f_operatorid[0]) {
|
|
235
|
-
orgcondition += ' and ui.f_operatorid in (' + this.f_operatorid + ')'
|
|
236
|
-
}
|
|
237
|
-
this.startDate=this.$refs.paged.$refs.cri.model.startDate.substring(0,10)
|
|
238
|
-
this.endDate=this.$refs.paged.$refs.cri.model.endDate.substring(0,10)
|
|
239
|
-
this.orgCondtionStr=orgcondition
|
|
240
|
-
this.$refs.paged.$refs.cri.model.f_orgid = orgcondition
|
|
241
|
-
this.model.search(args.f_orgid, args.model)
|
|
242
|
-
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
243
|
-
console.log('合计字段', this.sumsmodel)
|
|
244
|
-
},
|
|
245
|
-
getRes (obj) {
|
|
246
|
-
this.orgname = obj.res[0]
|
|
247
|
-
this.depresid = obj.resids
|
|
248
|
-
this.f_orgid = obj.resids
|
|
249
|
-
},
|
|
250
|
-
getdep (obj, val) {
|
|
251
|
-
this.depname = val
|
|
252
|
-
this.userresid = obj
|
|
253
|
-
this.f_depid = obj
|
|
254
|
-
},
|
|
255
|
-
getuser ( obj, val) {
|
|
256
|
-
this.operatorname = val[0]
|
|
257
|
-
this.f_operatorid = obj
|
|
258
|
-
},
|
|
259
|
-
stamp() {
|
|
260
|
-
this.all = false
|
|
261
|
-
//默认选择要打印的列
|
|
262
|
-
this.modelval = defaultPrint.config
|
|
263
|
-
this.fields = this.getfield
|
|
264
|
-
console.log('所有打印字段', this.fields)
|
|
265
|
-
this.printshow = true
|
|
266
|
-
this.put()
|
|
267
|
-
},
|
|
268
|
-
put() {
|
|
269
|
-
// 对Modelval进行排序
|
|
270
|
-
this.sortModelval()
|
|
271
|
-
this.thead = `<tr><th colspan=${this.modelval.length}>用户查询</th></tr><tr>`
|
|
272
|
-
for (let key of this.modelval) {
|
|
273
|
-
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
274
|
-
}
|
|
275
|
-
this.thead += '</tr>'
|
|
276
|
-
},
|
|
277
|
-
print() {
|
|
278
|
-
this.$refs.print.PrintAsFile()
|
|
279
|
-
this.printshow = false
|
|
280
|
-
},
|
|
281
|
-
dealmsg(val) {
|
|
282
|
-
console.log('---------------dealmsg')
|
|
283
|
-
this.rowdata=val
|
|
284
|
-
this.show=true
|
|
285
|
-
val.model = this.model.model
|
|
286
|
-
this.$dispatch('deal-msg', val)
|
|
287
|
-
},
|
|
288
|
-
close() {
|
|
289
|
-
this.printshow = false
|
|
290
|
-
this.all = false
|
|
291
|
-
},
|
|
292
|
-
// 对选择的列进行排序
|
|
293
|
-
sortModelval() {
|
|
294
|
-
let sortModel = []
|
|
295
|
-
Object.keys(this.fields).forEach((key) => {
|
|
296
|
-
if (this.modelval.includes(key)) {
|
|
297
|
-
sortModel.push(key)
|
|
298
|
-
}
|
|
299
|
-
})
|
|
300
|
-
this.modelval = sortModel
|
|
301
|
-
console.log('选择的打印的字段', this.modelval)
|
|
302
|
-
}
|
|
303
|
-
},
|
|
304
|
-
watch: {
|
|
305
|
-
'all'(val) {
|
|
306
|
-
if (val) {
|
|
307
|
-
this.modelval = this.bodyData
|
|
308
|
-
} else {
|
|
309
|
-
this.modelval = defaultPrint.config
|
|
310
|
-
this.put()
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
|
-
sumsmodel:{
|
|
314
|
-
handler: function(val) {
|
|
315
|
-
this.getotherfooter();
|
|
316
|
-
},
|
|
317
|
-
deep: true
|
|
318
|
-
},
|
|
319
|
-
'modelval.length'() {
|
|
320
|
-
this.put()
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
computed: {
|
|
324
|
-
getCondition() {
|
|
325
|
-
return {
|
|
326
|
-
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
327
|
-
endDate: this.$refs.paged.$refs.cri.model.endDate,
|
|
328
|
-
f_orgid: this.orgCondtionStr
|
|
329
|
-
}
|
|
330
|
-
},
|
|
331
|
-
getfield() {
|
|
332
|
-
return exportConfig.brandHouseCount
|
|
333
|
-
},
|
|
334
|
-
whetherpaies () {
|
|
335
|
-
return [
|
|
336
|
-
{label: '全部', value: ''},
|
|
337
|
-
{label: '已缴费', value: '是'},
|
|
338
|
-
{label: '未缴费', value: '否'}
|
|
339
|
-
]
|
|
340
|
-
},
|
|
341
|
-
usertypes() {
|
|
342
|
-
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
</script>
|
|
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>
|
|
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
|
+
|
|
39
|
+
</div>
|
|
40
|
+
<div class="col-sm-2 form-group">
|
|
41
|
+
<label class="font_normal_body"> 人员 </label>
|
|
42
|
+
<res-select restype='user'
|
|
43
|
+
is-mul="false"
|
|
44
|
+
@res-select="$parent.$parent.getuser"
|
|
45
|
+
:parentresid="$parent.$parent.userresid"
|
|
46
|
+
:initresid='$parent.$parent.operatorid'>
|
|
47
|
+
</res-select>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="span" style="float:right;">
|
|
50
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
51
|
+
|
|
52
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
53
|
+
:field="$parent.$parent.getfield"
|
|
54
|
+
:header="$parent.$parent.other"
|
|
55
|
+
:footer="$parent.$parent.footer"
|
|
56
|
+
sqlurl="rs/logic/exportfile"
|
|
57
|
+
sql-name="manageBrandHouseCount"
|
|
58
|
+
template-name='用户查询报表'
|
|
59
|
+
:choose-col="true"></export-excel>
|
|
60
|
+
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
|
|
61
|
+
titletable="用户查询" :starthead="$parent.$parent.startDate" :defaultfield="$parent.$parent.defaultfield"
|
|
62
|
+
:sumsmodel="$parent.$parent.sumsmodel"></print-data>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</criteria>
|
|
67
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
|
|
68
|
+
<template partial='head'>
|
|
69
|
+
<tr>
|
|
70
|
+
<th>
|
|
71
|
+
<nobr>气表品牌</nobr>
|
|
72
|
+
</th>
|
|
73
|
+
<th>
|
|
74
|
+
<nobr>总用户数</nobr>
|
|
75
|
+
</th>
|
|
76
|
+
<th>
|
|
77
|
+
<nobr>民用户数</nobr>
|
|
78
|
+
</th>
|
|
79
|
+
<th>
|
|
80
|
+
<nobr>非民用户数</nobr>
|
|
81
|
+
</th>
|
|
82
|
+
<th>
|
|
83
|
+
<nobr>机表户数</nobr>
|
|
84
|
+
</th>
|
|
85
|
+
<th>
|
|
86
|
+
<nobr>卡表户数</nobr>
|
|
87
|
+
</th>
|
|
88
|
+
<th>
|
|
89
|
+
<nobr>物联网表户数</nobr>
|
|
90
|
+
</th>
|
|
91
|
+
|
|
92
|
+
</tr>
|
|
93
|
+
</template>
|
|
94
|
+
<template partial='body'>
|
|
95
|
+
<td style="text-align:center">
|
|
96
|
+
<nobr>{{row.f_meter_brand}}</nobr>
|
|
97
|
+
</td>
|
|
98
|
+
<td style="text-align: center;">
|
|
99
|
+
<nobr>{{row.f_total_users}}</nobr>
|
|
100
|
+
</td>
|
|
101
|
+
<td style="text-align: center;">
|
|
102
|
+
<nobr>{{row.f_civilian_users}}</nobr>
|
|
103
|
+
</td>
|
|
104
|
+
<td style="text-align: center;">
|
|
105
|
+
<nobr>{{row.f_non_civilian_users}}</nobr>
|
|
106
|
+
</td>
|
|
107
|
+
<td style="text-align: center;">
|
|
108
|
+
<nobr>{{row.f_mechanical_meter_users}}</nobr>
|
|
109
|
+
</td>
|
|
110
|
+
<td style="text-align: center;">
|
|
111
|
+
<nobr>{{row.f_card_meter_users}}</nobr>
|
|
112
|
+
</td>
|
|
113
|
+
<td style="text-align: center;">
|
|
114
|
+
<nobr>{{row.f_iot_meter_users}}</nobr>
|
|
115
|
+
</td>
|
|
116
|
+
</template>
|
|
117
|
+
<template partial='foot'></template>
|
|
118
|
+
</data-grid>
|
|
119
|
+
</criteria-paged>
|
|
120
|
+
<table class="table-hover">
|
|
121
|
+
<tr style="position: relative" class="table-bordered">
|
|
122
|
+
<td
|
|
123
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
124
|
+
汇总信息
|
|
125
|
+
</td>
|
|
126
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
127
|
+
综合总用户数: {{sumsmodel.f_total_users}}
|
|
128
|
+
</td>
|
|
129
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
130
|
+
总民用用户数: {{sumsmodel.f_civilian_users}}
|
|
131
|
+
</td>
|
|
132
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
133
|
+
总非民用用户数: {{sumsmodel.f_non_civilian_users}}
|
|
134
|
+
</td>
|
|
135
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
136
|
+
总机表用户数: {{sumsmodel.f_mechanical_meter_users}}
|
|
137
|
+
</td>
|
|
138
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
139
|
+
总卡表用户数: {{sumsmodel.f_card_meter_users}}
|
|
140
|
+
</td>
|
|
141
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
142
|
+
总物联网表用户数: {{sumsmodel.f_iot_meter_users}}
|
|
143
|
+
</td>
|
|
144
|
+
</tr>
|
|
145
|
+
</table>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
</template>
|
|
150
|
+
<script>
|
|
151
|
+
import {PagedList, HttpResetClass} from 'vue-client'
|
|
152
|
+
import defaultPrint from '../../components/sale/config/DefaultPrint'
|
|
153
|
+
import exportConfig from './exportConfig'
|
|
154
|
+
import PrintDataSelf from '../../components/sale/common/PrintDataSelf'
|
|
155
|
+
|
|
156
|
+
let readySomething = async function (self) {
|
|
157
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
|
|
158
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
159
|
+
}
|
|
160
|
+
export default {
|
|
161
|
+
title: '用户查询',
|
|
162
|
+
data() {
|
|
163
|
+
return {
|
|
164
|
+
depresid: [],
|
|
165
|
+
userresid: [],
|
|
166
|
+
f_orgid: this.$login.f.orgid,
|
|
167
|
+
f_depid: this.$login.f.depids,
|
|
168
|
+
f_operatorid: this.$login.f.id,
|
|
169
|
+
operatorid: [],
|
|
170
|
+
depid: [],
|
|
171
|
+
orgname: '',
|
|
172
|
+
depname: [],
|
|
173
|
+
operatorname: '',
|
|
174
|
+
orgCondtionStr: '1=1',
|
|
175
|
+
data: {},
|
|
176
|
+
other:[],
|
|
177
|
+
footer:[],
|
|
178
|
+
model: new PagedList('rs/sql/manageBrandHouseCount', 20, { f_orgid: 'this.model.f_orgid'},{
|
|
179
|
+
f_total_users: 0,
|
|
180
|
+
f_civilian_users: 0,
|
|
181
|
+
f_non_civilian_users: 0,
|
|
182
|
+
f_mechanical_meter_users :0,
|
|
183
|
+
f_card_meter_users: 0,
|
|
184
|
+
f_iot_meter_users: 0
|
|
185
|
+
}),
|
|
186
|
+
gasproperties:[],
|
|
187
|
+
show:false,
|
|
188
|
+
rowdata:{},
|
|
189
|
+
residentialArea: [],
|
|
190
|
+
modelval: [],
|
|
191
|
+
startDate:"",
|
|
192
|
+
endDate:"",
|
|
193
|
+
inputtouPerson: [],
|
|
194
|
+
printshow: false,
|
|
195
|
+
all: false,
|
|
196
|
+
fields: {},
|
|
197
|
+
thead: '',
|
|
198
|
+
tfoot: '',
|
|
199
|
+
defaultfield: [],
|
|
200
|
+
sumsmodel: {}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
ready() {
|
|
204
|
+
readySomething(this).then(() => {
|
|
205
|
+
this.$emit('ready')
|
|
206
|
+
}).catch((error) => {
|
|
207
|
+
this.$emit('error', error)
|
|
208
|
+
})
|
|
209
|
+
},
|
|
210
|
+
methods: {
|
|
211
|
+
getotherfooter(){
|
|
212
|
+
this.other = [];
|
|
213
|
+
this.footer = [];
|
|
214
|
+
let exportdata = this.getCondition;
|
|
215
|
+
let otherInData = [];
|
|
216
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
217
|
+
let footerData = [], exportfield = this.getfield;
|
|
218
|
+
footerData.push("合计");
|
|
219
|
+
let self = this;
|
|
220
|
+
for (var field in self.sumsmodel) {
|
|
221
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
222
|
+
}
|
|
223
|
+
this.footer.push(footerData);
|
|
224
|
+
this.other.push(otherInData);
|
|
225
|
+
},
|
|
226
|
+
search(){
|
|
227
|
+
this.$refs.paged.$refs.cri.search()
|
|
228
|
+
},
|
|
229
|
+
selfSearch(args) {
|
|
230
|
+
let orgcondition = ' ui.f_orgid in (' + this.f_orgid + ')'
|
|
231
|
+
if (this.f_depid[0]) {
|
|
232
|
+
orgcondition += " and ui.f_depid in("+this.f_depid.toString()+')'
|
|
233
|
+
}
|
|
234
|
+
if(this.f_operatorid[0]) {
|
|
235
|
+
orgcondition += ' and ui.f_operatorid in (' + this.f_operatorid + ')'
|
|
236
|
+
}
|
|
237
|
+
this.startDate=this.$refs.paged.$refs.cri.model.startDate.substring(0,10)
|
|
238
|
+
this.endDate=this.$refs.paged.$refs.cri.model.endDate.substring(0,10)
|
|
239
|
+
this.orgCondtionStr=orgcondition
|
|
240
|
+
this.$refs.paged.$refs.cri.model.f_orgid = orgcondition
|
|
241
|
+
this.model.search(args.f_orgid, args.model)
|
|
242
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
243
|
+
console.log('合计字段', this.sumsmodel)
|
|
244
|
+
},
|
|
245
|
+
getRes (obj) {
|
|
246
|
+
this.orgname = obj.res[0]
|
|
247
|
+
this.depresid = obj.resids
|
|
248
|
+
this.f_orgid = obj.resids
|
|
249
|
+
},
|
|
250
|
+
getdep (obj, val) {
|
|
251
|
+
this.depname = val
|
|
252
|
+
this.userresid = obj
|
|
253
|
+
this.f_depid = obj
|
|
254
|
+
},
|
|
255
|
+
getuser ( obj, val) {
|
|
256
|
+
this.operatorname = val[0]
|
|
257
|
+
this.f_operatorid = obj
|
|
258
|
+
},
|
|
259
|
+
stamp() {
|
|
260
|
+
this.all = false
|
|
261
|
+
//默认选择要打印的列
|
|
262
|
+
this.modelval = defaultPrint.config
|
|
263
|
+
this.fields = this.getfield
|
|
264
|
+
console.log('所有打印字段', this.fields)
|
|
265
|
+
this.printshow = true
|
|
266
|
+
this.put()
|
|
267
|
+
},
|
|
268
|
+
put() {
|
|
269
|
+
// 对Modelval进行排序
|
|
270
|
+
this.sortModelval()
|
|
271
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>用户查询</th></tr><tr>`
|
|
272
|
+
for (let key of this.modelval) {
|
|
273
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
274
|
+
}
|
|
275
|
+
this.thead += '</tr>'
|
|
276
|
+
},
|
|
277
|
+
print() {
|
|
278
|
+
this.$refs.print.PrintAsFile()
|
|
279
|
+
this.printshow = false
|
|
280
|
+
},
|
|
281
|
+
dealmsg(val) {
|
|
282
|
+
console.log('---------------dealmsg')
|
|
283
|
+
this.rowdata=val
|
|
284
|
+
this.show=true
|
|
285
|
+
val.model = this.model.model
|
|
286
|
+
this.$dispatch('deal-msg', val)
|
|
287
|
+
},
|
|
288
|
+
close() {
|
|
289
|
+
this.printshow = false
|
|
290
|
+
this.all = false
|
|
291
|
+
},
|
|
292
|
+
// 对选择的列进行排序
|
|
293
|
+
sortModelval() {
|
|
294
|
+
let sortModel = []
|
|
295
|
+
Object.keys(this.fields).forEach((key) => {
|
|
296
|
+
if (this.modelval.includes(key)) {
|
|
297
|
+
sortModel.push(key)
|
|
298
|
+
}
|
|
299
|
+
})
|
|
300
|
+
this.modelval = sortModel
|
|
301
|
+
console.log('选择的打印的字段', this.modelval)
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
watch: {
|
|
305
|
+
'all'(val) {
|
|
306
|
+
if (val) {
|
|
307
|
+
this.modelval = this.bodyData
|
|
308
|
+
} else {
|
|
309
|
+
this.modelval = defaultPrint.config
|
|
310
|
+
this.put()
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
sumsmodel:{
|
|
314
|
+
handler: function(val) {
|
|
315
|
+
this.getotherfooter();
|
|
316
|
+
},
|
|
317
|
+
deep: true
|
|
318
|
+
},
|
|
319
|
+
'modelval.length'() {
|
|
320
|
+
this.put()
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
computed: {
|
|
324
|
+
getCondition() {
|
|
325
|
+
return {
|
|
326
|
+
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
327
|
+
endDate: this.$refs.paged.$refs.cri.model.endDate,
|
|
328
|
+
f_orgid: this.orgCondtionStr
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
getfield() {
|
|
332
|
+
return exportConfig.brandHouseCount
|
|
333
|
+
},
|
|
334
|
+
whetherpaies () {
|
|
335
|
+
return [
|
|
336
|
+
{label: '全部', value: ''},
|
|
337
|
+
{label: '已缴费', value: '是'},
|
|
338
|
+
{label: '未缴费', value: '否'}
|
|
339
|
+
]
|
|
340
|
+
},
|
|
341
|
+
usertypes() {
|
|
342
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
</script>
|