manage-client 3.2.281 → 3.2.283
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/filiale/wenxi/WebHandQuery.vue +13 -13
- package/src/filiale/wenxi/config/exportConfig.js +7 -7
- package/src/filiale/xinkang/BankManager.vue +197 -0
- package/src/filiale/xinkang/EchartsBox.vue +11 -6
- package/src/filiale/xinkang/ManageBrandHouseCount.vue +297 -0
- package/src/filiale/xinkang/exportConfig.js +1998 -0
- package/src/filiale/xinkang/reportManage.js +3 -0
- package/src/filiale/xinkang/sale.js +2 -0
- package/src/filiale/yuansheng/DayReportList.vue +2 -1
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<div class="col-sm-2">
|
|
19
19
|
<label class="font_normal_body">客户编号</label>
|
|
20
20
|
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
|
|
21
|
-
condition="f_userinfo_code = '{}'" v-next-el='f_userinfo_code' v-el:meternumber
|
|
21
|
+
condition="f_userinfo_code = '{}'" v-next-el='f_userinfo_code' v-el:meternumber @change="$parent.$parent.inputChange"
|
|
22
22
|
>
|
|
23
23
|
</div>
|
|
24
24
|
<div class="col-sm-2">
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
orgCondtionStr: '',
|
|
282
282
|
model: new PagedList('rs/sql/manage_webmeterHandQuery', 50,{
|
|
283
283
|
startDate: 'this.model.startDate',
|
|
284
|
-
endDate: 'this.model.endDate'
|
|
284
|
+
endDate: 'this.model.endDate',f_userinfo_code: 'this.model.f_userinfo_code'
|
|
285
285
|
}),
|
|
286
286
|
showbottomsum:false //页面下方是否有合计: 默认为false, 在watch修改
|
|
287
287
|
}
|
|
@@ -293,11 +293,20 @@
|
|
|
293
293
|
}).catch((error) => {
|
|
294
294
|
this.$emit('error', error)
|
|
295
295
|
})
|
|
296
|
-
|
|
297
|
-
|
|
296
|
+
this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),0).substring(0,10) + ' 00:00:00'
|
|
297
|
+
this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),0).substring(0,10) + ' 23:59:59'
|
|
298
298
|
// this.$refs.paged.$refs.criteria.search()
|
|
299
299
|
},
|
|
300
300
|
methods: {
|
|
301
|
+
inputChange () {
|
|
302
|
+
if (this.$refs.paged.$refs.criteria.model.f_userinfo_code){
|
|
303
|
+
this.$refs.paged.$refs.criteria.model.startDate = ''
|
|
304
|
+
this.$refs.paged.$refs.criteria.model.endDate = ''
|
|
305
|
+
}else{
|
|
306
|
+
this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),0).substring(0,10) + ' 00:00:00'
|
|
307
|
+
this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),0).substring(0,10) + ' 23:59:59'
|
|
308
|
+
}
|
|
309
|
+
},
|
|
301
310
|
initParams() {
|
|
302
311
|
// 初始化气表品牌
|
|
303
312
|
let brandArr = []
|
|
@@ -354,15 +363,6 @@
|
|
|
354
363
|
},
|
|
355
364
|
|
|
356
365
|
search (args) {
|
|
357
|
-
if (this.$refs.paged.$refs.criteria.model.startDate == '' || this.$refs.paged.$refs.criteria.model.endDate == ''){
|
|
358
|
-
if (this.$refs.paged.$refs.criteria.model.f_userinfo_code){
|
|
359
|
-
this.$refs.paged.$refs.criteria.model.startDate = '1990-01-01 00:00:00'
|
|
360
|
-
this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),1).substring(0,10) + ' 00:00:00'
|
|
361
|
-
}else{
|
|
362
|
-
this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),0).substring(0,10) + ' 00:00:00'
|
|
363
|
-
this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),0).substring(0,10) + ' 23:59:59'
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
366
|
args.condition = `${args.condition}`+this.orgcondition
|
|
367
367
|
this.condition = args.condition
|
|
368
368
|
this.model.search(args.condition, args.model)
|
|
@@ -867,22 +867,22 @@ export default{
|
|
|
867
867
|
},
|
|
868
868
|
// 物联网表抄表
|
|
869
869
|
webmeterHandConfig: {
|
|
870
|
-
'f_userinfo_code': '
|
|
871
|
-
'f_user_name': '
|
|
870
|
+
'f_userinfo_code': '客户编号',
|
|
871
|
+
'f_user_name': '客户名称',
|
|
872
872
|
'f_residential_area': '小区名称',
|
|
873
873
|
'f_address': '地址',
|
|
874
|
-
'f_meter_brand': '气表品牌',
|
|
875
874
|
'f_meternumber': '表号',
|
|
876
|
-
'
|
|
877
|
-
'f_oughtfee': '本期金额',
|
|
878
|
-
'f_jval': '表内剩余余额',
|
|
875
|
+
'f_meter_brand': '气表品牌',
|
|
879
876
|
'f_hand_date': '抄表日期',
|
|
880
877
|
'f_total_fee': '累计购气金额',
|
|
881
878
|
'f_last_tablebase': '上期底数',
|
|
882
879
|
'f_tablebase': '本期底数',
|
|
883
|
-
'
|
|
880
|
+
'f_curbalance': '系统余额',
|
|
881
|
+
'f_jval': '表上余额',
|
|
884
882
|
'cyclegas': '当前周期已用气量',
|
|
885
883
|
'cyclefee': '当前周期消费金额',
|
|
884
|
+
'f_oughtamount': '本次气量',
|
|
885
|
+
'f_oughtfee': '本次金额',
|
|
886
886
|
'f_stair1price': '一阶气价',
|
|
887
887
|
'f_stairamount1': '一阶气量',
|
|
888
888
|
'f_stair1fee': '一阶金额',
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
<template lang="html">
|
|
2
|
+
<div id="charts">
|
|
3
|
+
<div id="bm" :style="{width:'100%',height:'100%'}"></div>
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
import * as Util from '../../Util'
|
|
9
|
+
import co from 'co'
|
|
10
|
+
import echarts from 'echarts'
|
|
11
|
+
import {HttpResetClass} from 'vue-client'
|
|
12
|
+
|
|
13
|
+
let getData = function* (self) {
|
|
14
|
+
let load = new HttpResetClass()
|
|
15
|
+
load.load('POST', 'rs/sql/userfilesvalues',
|
|
16
|
+
{data: {startDate: self.startdate, endDate: self.enddate, f_orgid: self.orgid}},
|
|
17
|
+
{resolveMsg: null, rejectMsg: null})
|
|
18
|
+
.then((res) => {
|
|
19
|
+
self.texttile = '用户类型'
|
|
20
|
+
// let arrparams = []
|
|
21
|
+
console.log('获取数据。。', res.data)
|
|
22
|
+
let org = []
|
|
23
|
+
let numgf = []
|
|
24
|
+
let numjm = []
|
|
25
|
+
let numsy = []
|
|
26
|
+
let numbg = []
|
|
27
|
+
let numgy = []
|
|
28
|
+
let numjm2 = []
|
|
29
|
+
for (var i = 0; i < res.data.length; i++) {
|
|
30
|
+
if (!org.includes(res.data[i].org)) {
|
|
31
|
+
org.push(res.data[i].org)
|
|
32
|
+
}
|
|
33
|
+
if (res.data[i].name === '工业用气') {
|
|
34
|
+
numgy[org.indexOf(res.data[i].org)] = res.data[i].num
|
|
35
|
+
} else if (res.data[i].name === '工福用气') {
|
|
36
|
+
numgf[org.indexOf(res.data[i].org)] = res.data[i].num
|
|
37
|
+
} else if (res.data[i].name === '商业用气') {
|
|
38
|
+
numsy[org.indexOf(res.data[i].org)] = res.data[i].num
|
|
39
|
+
} else if (res.data[i].name === '壁挂炉用气') {
|
|
40
|
+
numbg[org.indexOf(res.data[i].org)] = res.data[i].num
|
|
41
|
+
} else if (res.data[i].name === '居民用气') {
|
|
42
|
+
numjm[org.indexOf(res.data[i].org)] = res.data[i].num
|
|
43
|
+
} else {
|
|
44
|
+
numjm2[org.indexOf(res.data[i].org)] = res.data[i].num
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
self.set(org, numgy, numjm, numbg, numsy, numgf, numjm2)
|
|
48
|
+
})
|
|
49
|
+
}
|
|
50
|
+
export default {
|
|
51
|
+
props: {
|
|
52
|
+
startdate: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: Util.toStandardDateString()
|
|
55
|
+
},
|
|
56
|
+
enddate: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: Util.toStandardDateString()
|
|
59
|
+
},
|
|
60
|
+
orgid: {
|
|
61
|
+
type: String
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
data () {
|
|
65
|
+
title: '银行管理'
|
|
66
|
+
return {
|
|
67
|
+
texttile: '',
|
|
68
|
+
xc: ''
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
methods: {
|
|
72
|
+
set (org, numgy, numjm, numbg, numsy, numgf, numjm2) {
|
|
73
|
+
this.xc = echarts.init(document.getElementById('bm'))
|
|
74
|
+
this.xc.setOption({
|
|
75
|
+
title: {
|
|
76
|
+
text: '新增用户散列图',
|
|
77
|
+
subtext: '数据查询来源',
|
|
78
|
+
x: 'left'
|
|
79
|
+
},
|
|
80
|
+
tooltip: {
|
|
81
|
+
trigger: 'item',
|
|
82
|
+
formatter: function (params) {
|
|
83
|
+
return params.name + '</br>' + params.seriesName + ': ' + params.value + '户'
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
legend: {
|
|
87
|
+
x: 'left',
|
|
88
|
+
y: 'bottom',
|
|
89
|
+
data: ['居民用气', '工福用气', '商业用气', '工业用气', '壁挂炉用气', '居民用气2']
|
|
90
|
+
},
|
|
91
|
+
toolbox: {
|
|
92
|
+
show: true,
|
|
93
|
+
feature: {
|
|
94
|
+
dataView: {show: true, readOnly: false},
|
|
95
|
+
magicType: {show: true, type: ['line', 'bar']},
|
|
96
|
+
restore: {show: true},
|
|
97
|
+
saveAsImage: {show: true}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
calculable: true,
|
|
101
|
+
xAxis: [
|
|
102
|
+
{
|
|
103
|
+
type: 'category',
|
|
104
|
+
data: org
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
yAxis: [
|
|
108
|
+
{
|
|
109
|
+
type: 'value'
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
series: [
|
|
113
|
+
{
|
|
114
|
+
name: '居民用气',
|
|
115
|
+
type: 'bar',
|
|
116
|
+
data: numjm,
|
|
117
|
+
markLine: {
|
|
118
|
+
data: [
|
|
119
|
+
{type: 'average', name: '平均值'}
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: '工福用气',
|
|
125
|
+
type: 'bar',
|
|
126
|
+
data: numgf,
|
|
127
|
+
markLine: {
|
|
128
|
+
data: [
|
|
129
|
+
{type: 'average', name: '平均值'}
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: '商业用气',
|
|
135
|
+
type: 'bar',
|
|
136
|
+
data: numsy,
|
|
137
|
+
markLine: {
|
|
138
|
+
data: [
|
|
139
|
+
{type: 'average', name: '平均值'}
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: '工业用气',
|
|
145
|
+
type: 'bar',
|
|
146
|
+
data: numgy,
|
|
147
|
+
markLine: {
|
|
148
|
+
data: [
|
|
149
|
+
{type: 'average', name: '平均值'}
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: '壁挂炉用气',
|
|
155
|
+
type: 'bar',
|
|
156
|
+
data: numbg,
|
|
157
|
+
markLine: {
|
|
158
|
+
data: [
|
|
159
|
+
{type: 'average', name: '平均值'}
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: '居民用气2',
|
|
165
|
+
type: 'bar',
|
|
166
|
+
data: numjm2,
|
|
167
|
+
markLine: {
|
|
168
|
+
data: [
|
|
169
|
+
{type: 'average', name: '平均值'}
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
]
|
|
174
|
+
})
|
|
175
|
+
},
|
|
176
|
+
searchdata () {
|
|
177
|
+
let getGen = getData(this)
|
|
178
|
+
co(getGen)
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
ready () {
|
|
182
|
+
this.searchdata()
|
|
183
|
+
},
|
|
184
|
+
watch: {
|
|
185
|
+
'startdate' (val) {
|
|
186
|
+
this.searchdata()
|
|
187
|
+
},
|
|
188
|
+
'enddate' (val) {
|
|
189
|
+
this.searchdata()
|
|
190
|
+
},
|
|
191
|
+
'orgid' (val) {
|
|
192
|
+
this.searchdata()
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
}
|
|
197
|
+
</script>
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
<div style="height: 97%;" v-if="showPage === 1">
|
|
40
40
|
<div class="flex-row" style="flex: 1;border-bottom: 1px dashed #888;height: 48%">
|
|
41
41
|
<div style="flex: 1;border-right: 1px dashed #888;width: 50%">
|
|
42
|
-
<households-type :startdate='
|
|
42
|
+
<households-type :startdate='processedStartDate' :enddate='model.endDate' :orgid='model.orgid[0]'
|
|
43
43
|
v-ref:pay></households-type>
|
|
44
44
|
<!-- <test></test>-->
|
|
45
45
|
</div>
|
|
46
46
|
<div style="flex: 1;width: 50%">
|
|
47
|
-
<bank-manager :startdate='
|
|
47
|
+
<bank-manager :startdate='processedStartDate' :enddate='model.endDate' :orgid='model.orgid[0]'
|
|
48
48
|
v-ref:pay></bank-manager>
|
|
49
49
|
</div>
|
|
50
50
|
</div>
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
|
|
53
53
|
<div class="flex-row" style="flex: 1;width: 50%;border-right: 1px dashed #888;">
|
|
54
54
|
<div style="flex: 1;">
|
|
55
|
-
<paymentpie :startdate='
|
|
55
|
+
<paymentpie :startdate='processedStartDate' :enddate='model.endDate' :orgid='model.orgid[0]'
|
|
56
56
|
v-ref:pay></paymentpie>
|
|
57
57
|
</div>
|
|
58
58
|
<!-- <div style="flex: 1;">-->
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
</div>
|
|
62
62
|
|
|
63
63
|
<div style="flex: 1;width: 50%">
|
|
64
|
-
<data-acquisition-type :startdate='
|
|
64
|
+
<data-acquisition-type :startdate='processedStartDate' :enddate='model.endDate' :orgid='model.orgid[0]'
|
|
65
65
|
v-ref:pay></data-acquisition-type>
|
|
66
66
|
</div>
|
|
67
67
|
</div>
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
<div style="height: 97%;" v-if="showPage === 2">
|
|
70
70
|
<div class="flex-row" style="flex: 1;height: 96%">
|
|
71
71
|
<div style="flex: 1">
|
|
72
|
-
<gas-properties-manager :startdate='
|
|
72
|
+
<gas-properties-manager :startdate='processedStartDate' :enddate='model.endDate' :orgid='model.orgid[0]'></gas-properties-manager>
|
|
73
73
|
</div>
|
|
74
74
|
</div>
|
|
75
75
|
</div>
|
|
@@ -106,7 +106,7 @@ export default {
|
|
|
106
106
|
model: {
|
|
107
107
|
id: [this.$login.f.orgid],
|
|
108
108
|
orgid: [this.$login.f.orgid],
|
|
109
|
-
startDate:
|
|
109
|
+
startDate: '',
|
|
110
110
|
endDate: Util.toStandardDateString()
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -126,6 +126,11 @@ export default {
|
|
|
126
126
|
getRes (obj) {
|
|
127
127
|
this.model.orgid = obj
|
|
128
128
|
}
|
|
129
|
+
},
|
|
130
|
+
computed: {
|
|
131
|
+
processedStartDate () {
|
|
132
|
+
return this.model.startDate || Util.toStandardDateString() // 手动处理 startDate
|
|
133
|
+
}
|
|
129
134
|
}
|
|
130
135
|
}
|
|
131
136
|
</script>
|
|
@@ -0,0 +1,297 @@
|
|
|
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
|
+
sqlurl="rs/logic/exportfile"
|
|
56
|
+
sql-name="feimin_style"
|
|
57
|
+
template-name='用户查询报表'
|
|
58
|
+
:choose-col="true"></export-excel>
|
|
59
|
+
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
|
|
60
|
+
titletable="用户查询" :starthead="$parent.$parent.startDate" :defaultfield="$parent.$parent.defaultfield"
|
|
61
|
+
></print-data>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</criteria>
|
|
66
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
|
|
67
|
+
<template partial='head'>
|
|
68
|
+
<tr>
|
|
69
|
+
<th>
|
|
70
|
+
<nobr>气表品牌</nobr>
|
|
71
|
+
</th>
|
|
72
|
+
<th>
|
|
73
|
+
<nobr>总用户数</nobr>
|
|
74
|
+
</th>
|
|
75
|
+
<th>
|
|
76
|
+
<nobr>民用户数</nobr>
|
|
77
|
+
</th>
|
|
78
|
+
<th>
|
|
79
|
+
<nobr>非民用户数</nobr>
|
|
80
|
+
</th>
|
|
81
|
+
<th>
|
|
82
|
+
<nobr>机表户数</nobr>
|
|
83
|
+
</th>
|
|
84
|
+
<th>
|
|
85
|
+
<nobr>卡表户数</nobr>
|
|
86
|
+
</th>
|
|
87
|
+
<th>
|
|
88
|
+
<nobr>物联网表户数</nobr>
|
|
89
|
+
</th>
|
|
90
|
+
|
|
91
|
+
</tr>
|
|
92
|
+
</template>
|
|
93
|
+
<template partial='body'>
|
|
94
|
+
<td style="text-align:center">
|
|
95
|
+
<nobr>{{row.f_meter_brand}}</nobr>
|
|
96
|
+
</td>
|
|
97
|
+
<td style="text-align: center;">
|
|
98
|
+
<nobr>{{row.f_total_users}}</nobr>
|
|
99
|
+
</td>
|
|
100
|
+
<td style="text-align: center;">
|
|
101
|
+
<nobr>{{row.f_civilian_users}}</nobr>
|
|
102
|
+
</td>
|
|
103
|
+
<td style="text-align: center;">
|
|
104
|
+
<nobr>{{row.f_non_civilian_users}}</nobr>
|
|
105
|
+
</td>
|
|
106
|
+
<td style="text-align: center;">
|
|
107
|
+
<nobr>{{row.f_mechanical_meter_users}}</nobr>
|
|
108
|
+
</td>
|
|
109
|
+
<td style="text-align: center;">
|
|
110
|
+
<nobr>{{row.f_card_meter_users}}</nobr>
|
|
111
|
+
</td>
|
|
112
|
+
<td style="text-align: center;">
|
|
113
|
+
<nobr>{{row.f_iot_meter_users}}</nobr>
|
|
114
|
+
</td>
|
|
115
|
+
</template>
|
|
116
|
+
<template partial='foot'></template>
|
|
117
|
+
</data-grid>
|
|
118
|
+
</criteria-paged>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
</template>
|
|
123
|
+
<script>
|
|
124
|
+
import {PagedList, HttpResetClass} from 'vue-client'
|
|
125
|
+
import defaultPrint from '../../components/sale/config/DefaultPrint'
|
|
126
|
+
import exportConfig from './exportConfig'
|
|
127
|
+
import PrintDataSelf from '../../components/sale/common/PrintDataSelf'
|
|
128
|
+
|
|
129
|
+
let readySomething = async function (self) {
|
|
130
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
|
|
131
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
132
|
+
}
|
|
133
|
+
export default {
|
|
134
|
+
title: '用户查询',
|
|
135
|
+
data() {
|
|
136
|
+
return {
|
|
137
|
+
depresid: [],
|
|
138
|
+
userresid: [],
|
|
139
|
+
f_orgid: this.$login.f.orgid,
|
|
140
|
+
f_depid: this.$login.f.depids,
|
|
141
|
+
f_operatorid: this.$login.f.id,
|
|
142
|
+
operatorid: [],
|
|
143
|
+
depid: [],
|
|
144
|
+
orgname: '',
|
|
145
|
+
depname: [],
|
|
146
|
+
operatorname: '',
|
|
147
|
+
orgCondtionStr: '1=1',
|
|
148
|
+
data: {},
|
|
149
|
+
other:[],
|
|
150
|
+
footer:[],
|
|
151
|
+
model: new PagedList('rs/sql/manageBrandHouseCount', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate', f_orgid: 'this.model.f_orgid'},),
|
|
152
|
+
gasproperties:[],
|
|
153
|
+
show:false,
|
|
154
|
+
rowdata:{},
|
|
155
|
+
residentialArea: [],
|
|
156
|
+
modelval: [],
|
|
157
|
+
startDate:"",
|
|
158
|
+
endDate:"",
|
|
159
|
+
inputtouPerson: [],
|
|
160
|
+
printshow: false,
|
|
161
|
+
all: false,
|
|
162
|
+
fields: {},
|
|
163
|
+
thead: '',
|
|
164
|
+
tfoot: '',
|
|
165
|
+
defaultfield: []
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
ready() {
|
|
169
|
+
readySomething(this).then(() => {
|
|
170
|
+
this.$emit('ready')
|
|
171
|
+
}).catch((error) => {
|
|
172
|
+
this.$emit('error', error)
|
|
173
|
+
})
|
|
174
|
+
},
|
|
175
|
+
methods: {
|
|
176
|
+
getotherfooter(){
|
|
177
|
+
this.other=[];
|
|
178
|
+
this.footer=[];
|
|
179
|
+
let exportdata = this.getCondition;
|
|
180
|
+
let otherInData=[];
|
|
181
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
182
|
+
this.other.push(otherInData);
|
|
183
|
+
},
|
|
184
|
+
search(){
|
|
185
|
+
this.$refs.paged.$refs.cri.search()
|
|
186
|
+
},
|
|
187
|
+
selfSearch(args) {
|
|
188
|
+
let orgcondition = ' uf.f_orgid in (' + this.f_orgid + ')'
|
|
189
|
+
if (this.f_depid[0]) {
|
|
190
|
+
orgcondition += " and uf.f_depid in("+this.f_depid.toString()+')'
|
|
191
|
+
}
|
|
192
|
+
if(this.f_operatorid[0]) {
|
|
193
|
+
orgcondition += ' and uf.f_operatorid in (' + this.f_operatorid + ')'
|
|
194
|
+
}
|
|
195
|
+
this.startDate=this.$refs.paged.$refs.cri.model.startDate.substring(0,10)
|
|
196
|
+
this.endDate=this.$refs.paged.$refs.cri.model.endDate.substring(0,10)
|
|
197
|
+
this.orgCondtionStr=orgcondition
|
|
198
|
+
this.$refs.paged.$refs.cri.model.f_orgid = orgcondition
|
|
199
|
+
this.model.search(args.f_orgid, args.model)
|
|
200
|
+
},
|
|
201
|
+
getRes (obj) {
|
|
202
|
+
this.orgname = obj.res[0]
|
|
203
|
+
this.depresid = obj.resids
|
|
204
|
+
this.f_orgid = obj.resids
|
|
205
|
+
},
|
|
206
|
+
getdep (obj, val) {
|
|
207
|
+
this.depname = val
|
|
208
|
+
this.userresid = obj
|
|
209
|
+
this.f_depid = obj
|
|
210
|
+
},
|
|
211
|
+
getuser ( obj, val) {
|
|
212
|
+
this.operatorname = val[0]
|
|
213
|
+
this.f_operatorid = obj
|
|
214
|
+
},
|
|
215
|
+
stamp() {
|
|
216
|
+
this.all = false
|
|
217
|
+
//默认选择要打印的列
|
|
218
|
+
this.modelval = defaultPrint.config
|
|
219
|
+
this.fields = this.getfield
|
|
220
|
+
console.log('所有打印字段', this.fields)
|
|
221
|
+
this.printshow = true
|
|
222
|
+
this.put()
|
|
223
|
+
},
|
|
224
|
+
put() {
|
|
225
|
+
// 对Modelval进行排序
|
|
226
|
+
this.sortModelval()
|
|
227
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>用户查询</th></tr><tr>`
|
|
228
|
+
for (let key of this.modelval) {
|
|
229
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
230
|
+
}
|
|
231
|
+
this.thead += '</tr>'
|
|
232
|
+
},
|
|
233
|
+
print() {
|
|
234
|
+
this.$refs.print.PrintAsFile()
|
|
235
|
+
this.printshow = false
|
|
236
|
+
},
|
|
237
|
+
dealmsg(val) {
|
|
238
|
+
console.log('---------------dealmsg')
|
|
239
|
+
this.rowdata=val
|
|
240
|
+
this.show=true
|
|
241
|
+
val.model = this.model.model
|
|
242
|
+
this.$dispatch('deal-msg', val)
|
|
243
|
+
},
|
|
244
|
+
close() {
|
|
245
|
+
this.printshow = false
|
|
246
|
+
this.all = false
|
|
247
|
+
},
|
|
248
|
+
// 对选择的列进行排序
|
|
249
|
+
sortModelval() {
|
|
250
|
+
let sortModel = []
|
|
251
|
+
Object.keys(this.fields).forEach((key) => {
|
|
252
|
+
if (this.modelval.includes(key)) {
|
|
253
|
+
sortModel.push(key)
|
|
254
|
+
}
|
|
255
|
+
})
|
|
256
|
+
this.modelval = sortModel
|
|
257
|
+
console.log('选择的打印的字段', this.modelval)
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
watch: {
|
|
261
|
+
'all'(val) {
|
|
262
|
+
if (val) {
|
|
263
|
+
this.modelval = this.bodyData
|
|
264
|
+
} else {
|
|
265
|
+
this.modelval = defaultPrint.config
|
|
266
|
+
this.put()
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
'modelval.length'() {
|
|
270
|
+
this.put()
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
computed: {
|
|
274
|
+
getCondition() {
|
|
275
|
+
return {
|
|
276
|
+
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
277
|
+
endDate: this.$refs.paged.$refs.cri.model.endDate,
|
|
278
|
+
f_orgid: this.orgCondtionStr
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
getfield() {
|
|
282
|
+
return exportConfig.brandHouseCount
|
|
283
|
+
},
|
|
284
|
+
whetherpaies () {
|
|
285
|
+
return [
|
|
286
|
+
{label: '全部', value: ''},
|
|
287
|
+
{label: '已缴费', value: '是'},
|
|
288
|
+
{label: '未缴费', value: '否'}
|
|
289
|
+
]
|
|
290
|
+
},
|
|
291
|
+
usertypes() {
|
|
292
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
</script>
|