manage-client 3.2.70-aode → 3.2.71-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/build/dev-server.js +193 -193
- package/build/webpack.base.conf.js +79 -79
- package/client.iml +14 -14
- package/package.json +1 -1
- package/src/Util.js +383 -383
- package/src/components/MeterManage/MeterList.vue +336 -336
- package/src/components/WebReport/UserGasAll.vue +214 -214
- package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
- package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
- package/src/components/sale/businessquery/DeductionGas.vue +149 -149
- package/src/components/sale/businessquery/DisableQuery.vue +315 -315
- package/src/components/sale/businessquery/EnableQuery.vue +315 -315
- package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
- package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
- package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
- package/src/components/sale/businessquery/InspectListGas.vue +456 -456
- package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
- package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
- package/src/components/sale/businessquery/QueryUserState.vue +313 -313
- package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
- package/src/components/sale/businessquery/TransferQuery.vue +363 -363
- package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
- package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
- package/src/components/sale/filesquery/MeterQuery.vue +593 -593
- package/src/components/sale/filesquery/UserQuery.vue +556 -556
- package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
- package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
- package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
- package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
- package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
- package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
- package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
- package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
- package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
- package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
- package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
- package/src/components/sale/report/aode/YearByUserType.vue +342 -342
- package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
- package/src/components/sale/report/aode/iot/ReportQuery.vue +387 -387
- package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
- package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
- package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
- package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
- package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
- package/src/components/webmeter/ArreasuserQuery.vue +193 -193
- package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
- package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
- package/src/components/webmeter/DrillData/NewUserGasAll.vue +568 -568
- package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
- package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
- package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
- package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
- package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
- package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
- package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
- package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
- package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
- package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
- package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
- package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
- package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
- package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
- package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
- package/src/components/webmeter/report/ReportList.vue +211 -211
- package/src/main.js +56 -56
|
@@ -1,254 +1,254 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="unit" class="flex-row">
|
|
3
|
-
<div class="basic-main">
|
|
4
|
-
<div class="flex">
|
|
5
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
-
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri v-show="$parent.criteriaShow">
|
|
7
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
-
<div class="row">
|
|
9
|
-
<res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" :mul="false" v-ref:sel></res-select-group>
|
|
10
|
-
<div class="col-sm-2" >
|
|
11
|
-
<label for="YeadDate" class="font_normal_body">统计年份</label>
|
|
12
|
-
<datepicker placeholder="结束日期" style="width:60%"
|
|
13
|
-
v-model="model.YeadDate"
|
|
14
|
-
:value.sync="model.YeadDate"
|
|
15
|
-
:format="'yyyy'"
|
|
16
|
-
:show-reset-button="true"
|
|
17
|
-
:select-year="true">
|
|
18
|
-
</datepicker>
|
|
19
|
-
</div>
|
|
20
|
-
<div class="col-sm-2">
|
|
21
|
-
<label class="font_normal_body">包含APP</label>
|
|
22
|
-
<v-select :value.sync="model.f_hasapp" v-model="model.f_hasapp"
|
|
23
|
-
:options='$parent.$parent.hasapps' placeholder='请选择'
|
|
24
|
-
condition=" {} "
|
|
25
|
-
close-on-select></v-select>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
<div class="row">
|
|
29
|
-
<div class="span" style = "float:right;margin-top:10px">
|
|
30
|
-
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
31
|
-
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<!-- <export-excel :data="$parent.$parent.getCondition"-->
|
|
35
|
-
<!-- :field="$parent.$parent.getfield" :defaultselect="$parent.$parent.selectfields"-->
|
|
36
|
-
<!-- sqlurl="rs/logic/exportfile" sql-name="aode_YearByChargeType" template-name='年报(缴费类型)' :choose-col="true"></export-excel>-->
|
|
37
|
-
<export-excel-hand :data="$parent.$parent.getCondition"
|
|
38
|
-
:field="$parent.$parent.getfield"
|
|
39
|
-
:other-data="$parent.$parent.other"
|
|
40
|
-
:footer-data="$parent.$parent.footer" v-ref:exports
|
|
41
|
-
:sumname="$parent.$parent.sumName"
|
|
42
|
-
:defaultselect="$parent.$parent.selectfields"
|
|
43
|
-
sqlurl="rs/logic/reportExportfile" sql-name="aode_YearByChargeType" template-name='年报(缴费类型)'
|
|
44
|
-
:choose-col="true"></export-excel-hand>
|
|
45
|
-
<year-by-charge-print :countmodel="{sumsmodel:$parent.$parent.sumsmodel,model:$parent.$parent.model,orgname:$parent.$parent.orgname,depname:$parent.$parent.depname}"></year-by-charge-print>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
</criteria>
|
|
50
|
-
<data-grid :model="model" :sumsmodel="sumsmodel" partial='list' class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
|
|
51
|
-
<template partial='head'>
|
|
52
|
-
<tr>
|
|
53
|
-
<th><nobr>月份</nobr></th>
|
|
54
|
-
<th><nobr>开户人次</nobr></th>
|
|
55
|
-
<th><nobr>开户气量</nobr></th>
|
|
56
|
-
<th><nobr>开户金额</nobr></th>
|
|
57
|
-
<th><nobr>再购人次</nobr></th>
|
|
58
|
-
<th><nobr>再购气量</nobr></th>
|
|
59
|
-
<th><nobr>再购金额</nobr></th>
|
|
60
|
-
<th><nobr>合计人次</nobr></th>
|
|
61
|
-
<th><nobr>合计气量</nobr></th>
|
|
62
|
-
<th><nobr>合计金额</nobr></th>
|
|
63
|
-
</tr>
|
|
64
|
-
</template>
|
|
65
|
-
<template partial='body'>
|
|
66
|
-
<td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
|
|
67
|
-
<td style="text-align: center;"><nobr>{{row.f_count_open}}</nobr></td>
|
|
68
|
-
<td style="text-align: center;"><nobr>{{row.f_pregas_open}}</nobr></td>
|
|
69
|
-
<td style="text-align: center;"><nobr>{{row.f_collection_open}}</nobr></td>
|
|
70
|
-
<td style="text-align: center;"><nobr>{{row.f_count_zg}}</nobr></td>
|
|
71
|
-
<td style="text-align: center;"><nobr>{{row.f_pregas_zg}}</nobr></td>
|
|
72
|
-
<td style="text-align: center;"><nobr>{{row.f_collection_zg}}</nobr></td>
|
|
73
|
-
<td style="text-align: center;"><nobr>{{row.f_count}}</nobr></td>
|
|
74
|
-
<td style="text-align: center;"><nobr>{{row.f_pregas}}</nobr></td>
|
|
75
|
-
<td style="text-align: center;"><nobr>{{row.f_collection}}</nobr></td>
|
|
76
|
-
</template>
|
|
77
|
-
<template partial='foot'>
|
|
78
|
-
<td style="text-align: center;background-color: mistyrose"><nobr>合计:</nobr></td>
|
|
79
|
-
<td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_count_open}}</nobr></td>
|
|
80
|
-
<td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_pregas_open}}</nobr></td>
|
|
81
|
-
<td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_collection_open}}</nobr></td>
|
|
82
|
-
<td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_count_zg}}</nobr></td>
|
|
83
|
-
<td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_pregas_zg}}</nobr></td>
|
|
84
|
-
<td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_collection_zg}}</nobr></td>
|
|
85
|
-
<td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_count}}</nobr></td>
|
|
86
|
-
<td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_pregas}}</nobr></td>
|
|
87
|
-
<td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_collection}}</nobr></td>
|
|
88
|
-
</template>
|
|
89
|
-
</data-grid>
|
|
90
|
-
</criteria-paged>
|
|
91
|
-
</div>
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
94
|
-
</template>
|
|
95
|
-
|
|
96
|
-
<script>
|
|
97
|
-
import { PagedList } from 'vue-client'
|
|
98
|
-
// import defaultPrint from '../config/DefaultPrint'
|
|
99
|
-
import exportConfig from '../../config/exportConfig'
|
|
100
|
-
let readySomething = async function (self) {
|
|
101
|
-
let year = new Date().getFullYear()
|
|
102
|
-
self.$refs.paged.$refs.cri.model.YeadDate = year+""
|
|
103
|
-
self.$refs.paged.$refs.cri.model.f_hasapp = [`f_operator != '悦生活'`]
|
|
104
|
-
// await self.$refs.paged.$refs.cri.search()
|
|
105
|
-
// self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export default {
|
|
109
|
-
title: '年报(缴费类型)',
|
|
110
|
-
data() {
|
|
111
|
-
return {
|
|
112
|
-
model: new PagedList('rs/sql/aode_YearByChargeType', 35, {YeadDate: 'this.model.YeadDate'},{
|
|
113
|
-
f_count_open:0,
|
|
114
|
-
f_pregas_open:0,
|
|
115
|
-
f_collection_open:0,
|
|
116
|
-
f_count_zg:0,
|
|
117
|
-
f_pregas_zg:0,
|
|
118
|
-
f_collection_zg:0,
|
|
119
|
-
f_count: 0,
|
|
120
|
-
f_pregas: 0,
|
|
121
|
-
f_collection: 0
|
|
122
|
-
}),
|
|
123
|
-
initres: {
|
|
124
|
-
org:[this.$login.f.orgid],
|
|
125
|
-
dep:[this.$login.f.depids],
|
|
126
|
-
user:[this.$login.f.id]
|
|
127
|
-
},
|
|
128
|
-
sumsmodel: {},
|
|
129
|
-
other:[],
|
|
130
|
-
footer:[],
|
|
131
|
-
orgname: '',
|
|
132
|
-
depname: '',
|
|
133
|
-
criteriaShow: true,
|
|
134
|
-
hasapps: [{label: '包含APP', value: ''}, {label: '不包含APP', value: "f_operator != '悦生活'"},{label: '不包含POS', value: "len(f_voucher_number)<1"},{label: 'POS', value: "f_voucher_number!=''"}],
|
|
135
|
-
orgCondtionStr:'',
|
|
136
|
-
defaultfield:["f_operate_date","f_count_open","f_pregas_open","f_collection_open","f_count_zg","f_pregas_zg","f_collection_zg","f_count","f_pregas","f_collection"],
|
|
137
|
-
sumName:[
|
|
138
|
-
'f_count_open','f_pregas_open','f_collection_open',
|
|
139
|
-
'f_count_zg', 'f_pregas_zg','f_collection_zg',
|
|
140
|
-
'f_count','f_pregas','f_collection'],
|
|
141
|
-
selectfields:[],
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
ready(){
|
|
145
|
-
readySomething(this).then(() => {
|
|
146
|
-
this.$emit('ready')
|
|
147
|
-
}).catch((error) => {
|
|
148
|
-
this.$emit('error', error)
|
|
149
|
-
})
|
|
150
|
-
for(var item in exportConfig.dataReportConfig){
|
|
151
|
-
this.selectfields.push(item)
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
methods: {
|
|
155
|
-
getotherfooter(){
|
|
156
|
-
this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
157
|
-
this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
158
|
-
this.other=[];
|
|
159
|
-
this.footer=[];
|
|
160
|
-
let exportdata = this.getCondition;
|
|
161
|
-
let otherInData=[];
|
|
162
|
-
otherInData.push(`导出时间: ${this.$login.toStandardDateString()}`);
|
|
163
|
-
otherInData.push(`导出人:${this.$login.f.name}`)
|
|
164
|
-
let footerData=[],exportfield=this.getfield;
|
|
165
|
-
footerData.push("合计");
|
|
166
|
-
let self = this;
|
|
167
|
-
for(var field in self.sumsmodel){
|
|
168
|
-
footerData.push(`${self.sumsmodel[field]}`);
|
|
169
|
-
}
|
|
170
|
-
this.footer.push(footerData);
|
|
171
|
-
this.other.push(otherInData);
|
|
172
|
-
},
|
|
173
|
-
async selfSearch (args) {
|
|
174
|
-
let f_orgstr = this.orgCondtionStr
|
|
175
|
-
if(!this.orgCondtionStr){
|
|
176
|
-
f_orgstr = 'and f_orgid = ' + this.$login.f.orgid
|
|
177
|
-
}
|
|
178
|
-
args.condition = `${args.condition} ` + f_orgstr
|
|
179
|
-
await this.model.search(args.condition, args.model)
|
|
180
|
-
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
181
|
-
console.log('计算合计。', this.sumsmodel)
|
|
182
|
-
if (this.$refs.paged.$refs.grid.model.rows.length === 0) {
|
|
183
|
-
for (let key in this.sumsmodel) {
|
|
184
|
-
this.sumsmodel[key] = 0
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
this.$dispatch('getdata', this.sumsmodel)
|
|
188
|
-
},
|
|
189
|
-
clear(){
|
|
190
|
-
//清空部门和人员
|
|
191
|
-
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
192
|
-
//部门和人员变为全选
|
|
193
|
-
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
194
|
-
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
195
|
-
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
196
|
-
this.$refs.paged.$refs.cri.model[key] = ''
|
|
197
|
-
})
|
|
198
|
-
},
|
|
199
|
-
show(){
|
|
200
|
-
this.criteriaShow = true
|
|
201
|
-
},
|
|
202
|
-
sumsmodel:{
|
|
203
|
-
handler: function(val) {
|
|
204
|
-
this.getotherfooter();
|
|
205
|
-
},
|
|
206
|
-
deep: true
|
|
207
|
-
},
|
|
208
|
-
hidden(){
|
|
209
|
-
this.criteriaShow = false
|
|
210
|
-
},
|
|
211
|
-
getRes(condition,obj) {
|
|
212
|
-
this.orgCondtionStr = condition
|
|
213
|
-
this.orgname = obj.orgnames[0]
|
|
214
|
-
this.depname = obj.depnames[0]
|
|
215
|
-
},
|
|
216
|
-
},
|
|
217
|
-
watch:{
|
|
218
|
-
'all' (val) {
|
|
219
|
-
if (val) {
|
|
220
|
-
this.modelval = this.bodyData
|
|
221
|
-
} else {
|
|
222
|
-
this.modelval = defaultPrint.config
|
|
223
|
-
this.put()
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
|
-
'modelval.length' () {
|
|
227
|
-
this.put()
|
|
228
|
-
},
|
|
229
|
-
},
|
|
230
|
-
computed:{
|
|
231
|
-
getCondition(){
|
|
232
|
-
return {condition: `${this.$refs.paged.$refs.cri.condition}`+this.orgCondtionStr,
|
|
233
|
-
YeadDate:`${this.$refs.paged.$refs.cri.model.YeadDate}`}
|
|
234
|
-
},
|
|
235
|
-
getfield(){
|
|
236
|
-
return exportConfig.yearByChargeConfig
|
|
237
|
-
},
|
|
238
|
-
userstates () {
|
|
239
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
|
|
240
|
-
},
|
|
241
|
-
sliceArea () {
|
|
242
|
-
let rs = new Array()
|
|
243
|
-
for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
|
|
244
|
-
let temp = {
|
|
245
|
-
label: this.$login.f.f_allArea[i].label,
|
|
246
|
-
value: this.$login.f.f_allArea[i].label
|
|
247
|
-
}
|
|
248
|
-
rs.push(temp)
|
|
249
|
-
}
|
|
250
|
-
return [{label: '全部', value: ''}, ...rs]
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main">
|
|
4
|
+
<div class="flex">
|
|
5
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri v-show="$parent.criteriaShow">
|
|
7
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
+
<div class="row">
|
|
9
|
+
<res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" :mul="false" v-ref:sel></res-select-group>
|
|
10
|
+
<div class="col-sm-2" >
|
|
11
|
+
<label for="YeadDate" class="font_normal_body">统计年份</label>
|
|
12
|
+
<datepicker placeholder="结束日期" style="width:60%"
|
|
13
|
+
v-model="model.YeadDate"
|
|
14
|
+
:value.sync="model.YeadDate"
|
|
15
|
+
:format="'yyyy'"
|
|
16
|
+
:show-reset-button="true"
|
|
17
|
+
:select-year="true">
|
|
18
|
+
</datepicker>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="col-sm-2">
|
|
21
|
+
<label class="font_normal_body">包含APP</label>
|
|
22
|
+
<v-select :value.sync="model.f_hasapp" v-model="model.f_hasapp"
|
|
23
|
+
:options='$parent.$parent.hasapps' placeholder='请选择'
|
|
24
|
+
condition=" {} "
|
|
25
|
+
close-on-select></v-select>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="row">
|
|
29
|
+
<div class="span" style = "float:right;margin-top:10px">
|
|
30
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
31
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
<!-- <export-excel :data="$parent.$parent.getCondition"-->
|
|
35
|
+
<!-- :field="$parent.$parent.getfield" :defaultselect="$parent.$parent.selectfields"-->
|
|
36
|
+
<!-- sqlurl="rs/logic/exportfile" sql-name="aode_YearByChargeType" template-name='年报(缴费类型)' :choose-col="true"></export-excel>-->
|
|
37
|
+
<export-excel-hand :data="$parent.$parent.getCondition"
|
|
38
|
+
:field="$parent.$parent.getfield"
|
|
39
|
+
:other-data="$parent.$parent.other"
|
|
40
|
+
:footer-data="$parent.$parent.footer" v-ref:exports
|
|
41
|
+
:sumname="$parent.$parent.sumName"
|
|
42
|
+
:defaultselect="$parent.$parent.selectfields"
|
|
43
|
+
sqlurl="rs/logic/reportExportfile" sql-name="aode_YearByChargeType" template-name='年报(缴费类型)'
|
|
44
|
+
:choose-col="true"></export-excel-hand>
|
|
45
|
+
<year-by-charge-print :countmodel="{sumsmodel:$parent.$parent.sumsmodel,model:$parent.$parent.model,orgname:$parent.$parent.orgname,depname:$parent.$parent.depname}"></year-by-charge-print>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</criteria>
|
|
50
|
+
<data-grid :model="model" :sumsmodel="sumsmodel" partial='list' class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
|
|
51
|
+
<template partial='head'>
|
|
52
|
+
<tr>
|
|
53
|
+
<th><nobr>月份</nobr></th>
|
|
54
|
+
<th><nobr>开户人次</nobr></th>
|
|
55
|
+
<th><nobr>开户气量</nobr></th>
|
|
56
|
+
<th><nobr>开户金额</nobr></th>
|
|
57
|
+
<th><nobr>再购人次</nobr></th>
|
|
58
|
+
<th><nobr>再购气量</nobr></th>
|
|
59
|
+
<th><nobr>再购金额</nobr></th>
|
|
60
|
+
<th><nobr>合计人次</nobr></th>
|
|
61
|
+
<th><nobr>合计气量</nobr></th>
|
|
62
|
+
<th><nobr>合计金额</nobr></th>
|
|
63
|
+
</tr>
|
|
64
|
+
</template>
|
|
65
|
+
<template partial='body'>
|
|
66
|
+
<td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
|
|
67
|
+
<td style="text-align: center;"><nobr>{{row.f_count_open}}</nobr></td>
|
|
68
|
+
<td style="text-align: center;"><nobr>{{row.f_pregas_open}}</nobr></td>
|
|
69
|
+
<td style="text-align: center;"><nobr>{{row.f_collection_open}}</nobr></td>
|
|
70
|
+
<td style="text-align: center;"><nobr>{{row.f_count_zg}}</nobr></td>
|
|
71
|
+
<td style="text-align: center;"><nobr>{{row.f_pregas_zg}}</nobr></td>
|
|
72
|
+
<td style="text-align: center;"><nobr>{{row.f_collection_zg}}</nobr></td>
|
|
73
|
+
<td style="text-align: center;"><nobr>{{row.f_count}}</nobr></td>
|
|
74
|
+
<td style="text-align: center;"><nobr>{{row.f_pregas}}</nobr></td>
|
|
75
|
+
<td style="text-align: center;"><nobr>{{row.f_collection}}</nobr></td>
|
|
76
|
+
</template>
|
|
77
|
+
<template partial='foot'>
|
|
78
|
+
<td style="text-align: center;background-color: mistyrose"><nobr>合计:</nobr></td>
|
|
79
|
+
<td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_count_open}}</nobr></td>
|
|
80
|
+
<td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_pregas_open}}</nobr></td>
|
|
81
|
+
<td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_collection_open}}</nobr></td>
|
|
82
|
+
<td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_count_zg}}</nobr></td>
|
|
83
|
+
<td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_pregas_zg}}</nobr></td>
|
|
84
|
+
<td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_collection_zg}}</nobr></td>
|
|
85
|
+
<td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_count}}</nobr></td>
|
|
86
|
+
<td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_pregas}}</nobr></td>
|
|
87
|
+
<td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_collection}}</nobr></td>
|
|
88
|
+
</template>
|
|
89
|
+
</data-grid>
|
|
90
|
+
</criteria-paged>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</template>
|
|
95
|
+
|
|
96
|
+
<script>
|
|
97
|
+
import { PagedList } from 'vue-client'
|
|
98
|
+
// import defaultPrint from '../config/DefaultPrint'
|
|
99
|
+
import exportConfig from '../../config/exportConfig'
|
|
100
|
+
let readySomething = async function (self) {
|
|
101
|
+
let year = new Date().getFullYear()
|
|
102
|
+
self.$refs.paged.$refs.cri.model.YeadDate = year+""
|
|
103
|
+
self.$refs.paged.$refs.cri.model.f_hasapp = [`f_operator != '悦生活'`]
|
|
104
|
+
// await self.$refs.paged.$refs.cri.search()
|
|
105
|
+
// self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export default {
|
|
109
|
+
title: '年报(缴费类型)',
|
|
110
|
+
data() {
|
|
111
|
+
return {
|
|
112
|
+
model: new PagedList('rs/sql/aode_YearByChargeType', 35, {YeadDate: 'this.model.YeadDate'},{
|
|
113
|
+
f_count_open:0,
|
|
114
|
+
f_pregas_open:0,
|
|
115
|
+
f_collection_open:0,
|
|
116
|
+
f_count_zg:0,
|
|
117
|
+
f_pregas_zg:0,
|
|
118
|
+
f_collection_zg:0,
|
|
119
|
+
f_count: 0,
|
|
120
|
+
f_pregas: 0,
|
|
121
|
+
f_collection: 0
|
|
122
|
+
}),
|
|
123
|
+
initres: {
|
|
124
|
+
org:[this.$login.f.orgid],
|
|
125
|
+
dep:[this.$login.f.depids],
|
|
126
|
+
user:[this.$login.f.id]
|
|
127
|
+
},
|
|
128
|
+
sumsmodel: {},
|
|
129
|
+
other:[],
|
|
130
|
+
footer:[],
|
|
131
|
+
orgname: '',
|
|
132
|
+
depname: '',
|
|
133
|
+
criteriaShow: true,
|
|
134
|
+
hasapps: [{label: '包含APP', value: ''}, {label: '不包含APP', value: "f_operator != '悦生活'"},{label: '不包含POS', value: "len(f_voucher_number)<1"},{label: 'POS', value: "f_voucher_number!=''"}],
|
|
135
|
+
orgCondtionStr:'',
|
|
136
|
+
defaultfield:["f_operate_date","f_count_open","f_pregas_open","f_collection_open","f_count_zg","f_pregas_zg","f_collection_zg","f_count","f_pregas","f_collection"],
|
|
137
|
+
sumName:[
|
|
138
|
+
'f_count_open','f_pregas_open','f_collection_open',
|
|
139
|
+
'f_count_zg', 'f_pregas_zg','f_collection_zg',
|
|
140
|
+
'f_count','f_pregas','f_collection'],
|
|
141
|
+
selectfields:[],
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
ready(){
|
|
145
|
+
readySomething(this).then(() => {
|
|
146
|
+
this.$emit('ready')
|
|
147
|
+
}).catch((error) => {
|
|
148
|
+
this.$emit('error', error)
|
|
149
|
+
})
|
|
150
|
+
for(var item in exportConfig.dataReportConfig){
|
|
151
|
+
this.selectfields.push(item)
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
methods: {
|
|
155
|
+
getotherfooter(){
|
|
156
|
+
this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
157
|
+
this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
158
|
+
this.other=[];
|
|
159
|
+
this.footer=[];
|
|
160
|
+
let exportdata = this.getCondition;
|
|
161
|
+
let otherInData=[];
|
|
162
|
+
otherInData.push(`导出时间: ${this.$login.toStandardDateString()}`);
|
|
163
|
+
otherInData.push(`导出人:${this.$login.f.name}`)
|
|
164
|
+
let footerData=[],exportfield=this.getfield;
|
|
165
|
+
footerData.push("合计");
|
|
166
|
+
let self = this;
|
|
167
|
+
for(var field in self.sumsmodel){
|
|
168
|
+
footerData.push(`${self.sumsmodel[field]}`);
|
|
169
|
+
}
|
|
170
|
+
this.footer.push(footerData);
|
|
171
|
+
this.other.push(otherInData);
|
|
172
|
+
},
|
|
173
|
+
async selfSearch (args) {
|
|
174
|
+
let f_orgstr = this.orgCondtionStr
|
|
175
|
+
if(!this.orgCondtionStr){
|
|
176
|
+
f_orgstr = 'and f_orgid = ' + this.$login.f.orgid
|
|
177
|
+
}
|
|
178
|
+
args.condition = `${args.condition} ` + f_orgstr
|
|
179
|
+
await this.model.search(args.condition, args.model)
|
|
180
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
181
|
+
console.log('计算合计。', this.sumsmodel)
|
|
182
|
+
if (this.$refs.paged.$refs.grid.model.rows.length === 0) {
|
|
183
|
+
for (let key in this.sumsmodel) {
|
|
184
|
+
this.sumsmodel[key] = 0
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
this.$dispatch('getdata', this.sumsmodel)
|
|
188
|
+
},
|
|
189
|
+
clear(){
|
|
190
|
+
//清空部门和人员
|
|
191
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
192
|
+
//部门和人员变为全选
|
|
193
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
194
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
195
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
196
|
+
this.$refs.paged.$refs.cri.model[key] = ''
|
|
197
|
+
})
|
|
198
|
+
},
|
|
199
|
+
show(){
|
|
200
|
+
this.criteriaShow = true
|
|
201
|
+
},
|
|
202
|
+
sumsmodel:{
|
|
203
|
+
handler: function(val) {
|
|
204
|
+
this.getotherfooter();
|
|
205
|
+
},
|
|
206
|
+
deep: true
|
|
207
|
+
},
|
|
208
|
+
hidden(){
|
|
209
|
+
this.criteriaShow = false
|
|
210
|
+
},
|
|
211
|
+
getRes(condition,obj) {
|
|
212
|
+
this.orgCondtionStr = condition
|
|
213
|
+
this.orgname = obj.orgnames[0]
|
|
214
|
+
this.depname = obj.depnames[0]
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
watch:{
|
|
218
|
+
'all' (val) {
|
|
219
|
+
if (val) {
|
|
220
|
+
this.modelval = this.bodyData
|
|
221
|
+
} else {
|
|
222
|
+
this.modelval = defaultPrint.config
|
|
223
|
+
this.put()
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
'modelval.length' () {
|
|
227
|
+
this.put()
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
computed:{
|
|
231
|
+
getCondition(){
|
|
232
|
+
return {condition: `${this.$refs.paged.$refs.cri.condition}`+this.orgCondtionStr,
|
|
233
|
+
YeadDate:`${this.$refs.paged.$refs.cri.model.YeadDate}`}
|
|
234
|
+
},
|
|
235
|
+
getfield(){
|
|
236
|
+
return exportConfig.yearByChargeConfig
|
|
237
|
+
},
|
|
238
|
+
userstates () {
|
|
239
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
|
|
240
|
+
},
|
|
241
|
+
sliceArea () {
|
|
242
|
+
let rs = new Array()
|
|
243
|
+
for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
|
|
244
|
+
let temp = {
|
|
245
|
+
label: this.$login.f.f_allArea[i].label,
|
|
246
|
+
value: this.$login.f.f_allArea[i].label
|
|
247
|
+
}
|
|
248
|
+
rs.push(temp)
|
|
249
|
+
}
|
|
250
|
+
return [{label: '全部', value: ''}, ...rs]
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
</script>
|