manage-client 3.2.282 → 3.2.284
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/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/src/main.js +68 -66
|
@@ -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>
|