manage-client 4.0.14 → 4.0.16
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 +3 -3
- package/package.json +1 -1
- package/src/components/SellReport/ManageChargeBillBeiFangShiYe.vue +251 -0
- package/src/components/SellReport/ManageFillGasQueryBeiFangShiYe.vue +251 -0
- package/src/components/SellReport/ManageOtherChargeBeiFangShiYe.vue +251 -0
- package/src/components/SellReport/ManageSellGasQueryBeiFangShiYe.vue +251 -0
- package/src/components/SellReport/ManageUseGasQueryBeiFangShiYe.vue +251 -0
- package/src/components/SellReport/ManageUserClassifyBeiFangShiYe.vue +271 -0
- package/src/filiale/qingjian/SellingTable.vue +220 -0
- package/src/filiale/qingjian/reportManage.js +7 -0
- package/src/filiale/tongchuan/BusinessClassify.vue +386 -0
- package/src/filiale/tongchuan/DepartmentPrick.vue +292 -0
- package/src/filiale/tongchuan/GasPrice.vue +13 -39
- package/src/filiale/tongchuan/ManageBusSummary.vue +8 -9
- package/src/filiale/tongchuan/ManageHandInputtor.vue +261 -0
- package/src/filiale/tongchuan/ManageSellType.vue +267 -0
- package/src/filiale/tongchuan/ManageUserCount.vue +369 -0
- package/src/filiale/tongchuan/MarketMonth.vue +297 -0
- package/src/filiale/tongchuan/SaleMonthReport.vue +155 -0
- package/src/filiale/tongchuan/UserClassify.vue +249 -0
- package/src/filiale/tongchuan/reportManage.js +34 -1
- package/src/filiale/xihu/NewQueryInstruct.vue +665 -0
- package/src/filiale/xihu/webmeterManage.js +6 -0
- package/src/main.js +2 -0
- package/src/reportManage.js +22 -0
- package/src/filiale/jinbin/exportConfig.js +0 -1110
- package/src/filiale/jinbin/sale/businessquery/ChargeQuery.vue +0 -1372
- package/src/filiale/jinbin/sale.js +0 -7
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="basic-main" style="height: 100%">
|
|
3
|
+
<criteria-paged :model="model" :pager='false' v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
|
|
6
|
+
<div class="row">
|
|
7
|
+
<div class="col-sm-2 form-group" >
|
|
8
|
+
<label class="font_normal_body" for="startDate">开始日期:</label>
|
|
9
|
+
<datepicker id="startDate" placeholder="开始日期" style="width: 60%"
|
|
10
|
+
v-model="model.startDate"
|
|
11
|
+
:value.sync="model.startDate"
|
|
12
|
+
:disabled-days-of-Week="[]"
|
|
13
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
14
|
+
:show-reset-button="reset">
|
|
15
|
+
</datepicker>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="col-sm-2 form-group" >
|
|
18
|
+
<label class="font_normal_body" for="endDate">结束日期:</label>
|
|
19
|
+
<datepicker id="endDate" placeholder="结束日期" style="width: 60%"
|
|
20
|
+
v-model="model.endDate"
|
|
21
|
+
:value.sync="model.endDate"
|
|
22
|
+
:disabled-days-of-Week="[]"
|
|
23
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
24
|
+
:show-reset-button="reset">
|
|
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" style="width: 60%"></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
|
+
is-mul="false"
|
|
35
|
+
@res-select="$parent.$parent.getdep"
|
|
36
|
+
:parentresid="$parent.$parent.depresid"
|
|
37
|
+
:initresid='$parent.$parent.depid'>
|
|
38
|
+
</res-select>
|
|
39
|
+
|
|
40
|
+
</div>
|
|
41
|
+
<div class="col-sm-2 form-group">
|
|
42
|
+
<label class="font_normal_body"> 人员 </label>
|
|
43
|
+
<res-select restype='user'
|
|
44
|
+
is-mul="false"
|
|
45
|
+
@res-select="$parent.$parent.getuser"
|
|
46
|
+
:parentresid="$parent.$parent.userresid"
|
|
47
|
+
:initresid='$parent.$parent.operatorid'>
|
|
48
|
+
</res-select>
|
|
49
|
+
</div>
|
|
50
|
+
-->
|
|
51
|
+
<res-select-group :show-component="$parent.$parent.resshow" :selectin="true" :initres="$parent.$parent.initres" :cascade =true @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="col-sm-2 form-group">
|
|
54
|
+
<label class="font_normal_body">用户类型</label>
|
|
55
|
+
<v-select :value.sync="$parent.$parent.f_user_type" multiple
|
|
56
|
+
v-model="$parent.$parent.f_user_type"
|
|
57
|
+
:options='$parent.$parent.user_type' placeholder='请选择'
|
|
58
|
+
condition="f_user_type in '{}'"
|
|
59
|
+
close-on-select></v-select>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="col-sm-2 form-group">
|
|
62
|
+
<label class="font_normal_body" title="参数:付款方式查询">收费状态</label>
|
|
63
|
+
<v-select :value.sync="model.f_state" multiple
|
|
64
|
+
v-model="model.f_state"
|
|
65
|
+
:options='$parent.$parent.charge_state' placeholder='请选择'
|
|
66
|
+
condition="f_state in {}"
|
|
67
|
+
close-on-select></v-select>
|
|
68
|
+
</div>
|
|
69
|
+
<div class="span" style = "float:right;">
|
|
70
|
+
<button class="button_search" @click="$parent.$parent.searchData()">查询</button>
|
|
71
|
+
<report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
|
|
72
|
+
<report-excel id='gasprice'></report-excel>
|
|
73
|
+
<div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
|
|
74
|
+
'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
77
|
+
|
|
78
|
+
<!--<div class="col-sm-2 form-group">-->
|
|
79
|
+
<!--<label class="font_normal_body">收费状态</label>-->
|
|
80
|
+
<!--<v-select :value.sync="$parent.$parent.f_state" multiple-->
|
|
81
|
+
<!--v-model="$parent.$parent.f_state"-->
|
|
82
|
+
<!--:options='$parent.$parent.charge_state' placeholder='请选择'-->
|
|
83
|
+
<!--condition="f_state in {}"-->
|
|
84
|
+
<!--close-on-select></v-select>-->
|
|
85
|
+
<!--</div>-->
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
</criteria>
|
|
89
|
+
<div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
|
|
90
|
+
<table class='tableprint' style="margin: 0px auto">
|
|
91
|
+
<thead>
|
|
92
|
+
<tr>
|
|
93
|
+
<th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
|
|
94
|
+
<h3 style="text-align: center">营业厅分项汇总表</h3>
|
|
95
|
+
</th>
|
|
96
|
+
</tr>
|
|
97
|
+
<tr>
|
|
98
|
+
<th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
|
|
99
|
+
开始时间:{{model.model.startDate}}
|
|
100
|
+
结束时间:{{ model.model.endDate }} <br/>
|
|
101
|
+
<!--打印时间:{{{$parent.printTime}}}-->
|
|
102
|
+
打印时间:{{$parent.printTime}}
|
|
103
|
+
<!--收费员:{{// $parent.operatorname}}-->
|
|
104
|
+
</th>
|
|
105
|
+
</tr>
|
|
106
|
+
<tr>
|
|
107
|
+
<th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
|
|
108
|
+
<div>
|
|
109
|
+
<span yle="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
|
|
110
|
+
<span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
|
|
111
|
+
<span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.operatorname">人员:{{$parent.operatorname}}</span>
|
|
112
|
+
</div>
|
|
113
|
+
</th>
|
|
114
|
+
</tr>
|
|
115
|
+
</thead>
|
|
116
|
+
<tr>
|
|
117
|
+
<td :colspan='$parent.spans' class="noborder">
|
|
118
|
+
{{{ model.data.substring(26,model.data.length-8) }}}
|
|
119
|
+
</td>
|
|
120
|
+
</tr>
|
|
121
|
+
<tfoot>
|
|
122
|
+
<tr style="text-align: left">
|
|
123
|
+
<th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
|
|
124
|
+
<th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
|
|
125
|
+
<th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
|
|
126
|
+
</tr>
|
|
127
|
+
</tfoot>
|
|
128
|
+
</table>
|
|
129
|
+
{{{ $parent.reportStr}}}
|
|
130
|
+
</div>
|
|
131
|
+
</criteria-paged>
|
|
132
|
+
</div>
|
|
133
|
+
</template>
|
|
134
|
+
|
|
135
|
+
<script>
|
|
136
|
+
import { DataModel } from 'vue-client'
|
|
137
|
+
import co from 'co'
|
|
138
|
+
|
|
139
|
+
let readySomething = async function (self) {
|
|
140
|
+
await self.$MagLoadParams.loadParam()
|
|
141
|
+
self.initParams()
|
|
142
|
+
}
|
|
143
|
+
export default {
|
|
144
|
+
title: '营业厅分项汇总表',
|
|
145
|
+
props: ['data'],
|
|
146
|
+
data () {
|
|
147
|
+
return {
|
|
148
|
+
printTime: this.$login.toStandardTimeString(),
|
|
149
|
+
depresid: [],
|
|
150
|
+
userresid: [],
|
|
151
|
+
f_orgid: this.$login.f.orgid,
|
|
152
|
+
f_depid: this.$login.f.depids,
|
|
153
|
+
// f_operatorid: this.$login.f.id,
|
|
154
|
+
operatorid: [],
|
|
155
|
+
depid: [],
|
|
156
|
+
orgname: '',
|
|
157
|
+
depname: '',
|
|
158
|
+
criteriaShow: false,
|
|
159
|
+
operatorname: '',
|
|
160
|
+
orgCondtionStr: '1=1',
|
|
161
|
+
f_user_type: '',
|
|
162
|
+
f_state:['有效'],
|
|
163
|
+
model: new DataModel('api/af-revenue/report/fenxiangsell', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
|
|
164
|
+
f_orgid: 'this.model.f_orgid'}),
|
|
165
|
+
reportStr: null,
|
|
166
|
+
resshow:['company','department','operator'],
|
|
167
|
+
spans: 0,
|
|
168
|
+
user_type:[],
|
|
169
|
+
meterbrands: [],
|
|
170
|
+
initres: {
|
|
171
|
+
org: [this.$login.f.orgid],
|
|
172
|
+
dep: [],
|
|
173
|
+
user: []
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
ready () {
|
|
178
|
+
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
179
|
+
this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
180
|
+
console.log(this.$login.f)
|
|
181
|
+
readySomething(this).then(() => {
|
|
182
|
+
this.$emit('ready')
|
|
183
|
+
}).catch((error) => {
|
|
184
|
+
this.$emit('error', error)
|
|
185
|
+
})
|
|
186
|
+
},
|
|
187
|
+
methods: {
|
|
188
|
+
searchData () {
|
|
189
|
+
this.$refs.paged.$refs.criteria.search()
|
|
190
|
+
},
|
|
191
|
+
initParams() {
|
|
192
|
+
// 初始化气表品牌
|
|
193
|
+
let brandArr = []
|
|
194
|
+
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
195
|
+
let temp = {}
|
|
196
|
+
temp.label = item.label
|
|
197
|
+
temp.value = item.value.f_meter_brand
|
|
198
|
+
brandArr.push(temp)
|
|
199
|
+
})
|
|
200
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
201
|
+
|
|
202
|
+
},
|
|
203
|
+
selfSearch (args) {
|
|
204
|
+
this.printTime = this.$login.toStandardTimeString()
|
|
205
|
+
let orgcondition = '1=1'
|
|
206
|
+
console.log("args:",args)
|
|
207
|
+
let orgstr = this.orgCondtionStr
|
|
208
|
+
orgcondition = orgcondition + orgstr
|
|
209
|
+
/* if (this.f_orgid && this.f_orgid[0]) {
|
|
210
|
+
orgcondition += ` and f_orgid in ('${this.f_orgid}')`
|
|
211
|
+
}
|
|
212
|
+
if (this.f_depid && this.f_depid[0]) {
|
|
213
|
+
orgcondition += ` and f_depid in ('${this.f_depid}')`
|
|
214
|
+
}
|
|
215
|
+
if(this.f_operatorid && this.f_operatorid[0]) {
|
|
216
|
+
orgcondition += ` and f_operatorid in ('${this.f_operatorid}')`
|
|
217
|
+
}*/
|
|
218
|
+
this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition.replace('1=1','') + ' and ' + args.condition
|
|
219
|
+
this.$refs.paged.search(args)
|
|
220
|
+
},
|
|
221
|
+
|
|
222
|
+
hidden() {
|
|
223
|
+
this.criteriaShow = !this.criteriaShow
|
|
224
|
+
},
|
|
225
|
+
getRes (condition, obj) {
|
|
226
|
+
this.orgCondtionStr = condition
|
|
227
|
+
this.orgname = obj.orgnames[0]
|
|
228
|
+
this.depname = obj.depnames[0]
|
|
229
|
+
},
|
|
230
|
+
getdep (obj, val) {
|
|
231
|
+
this.depname = val[0]
|
|
232
|
+
this.userresid = obj
|
|
233
|
+
this.f_depid = obj
|
|
234
|
+
},
|
|
235
|
+
getuser ( obj, val) {
|
|
236
|
+
this.operatorname = val[0]
|
|
237
|
+
this.f_operatorid = obj
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
watch: {
|
|
241
|
+
'model.data' (val) {
|
|
242
|
+
let len=0
|
|
243
|
+
let a=val.split('</tr>')
|
|
244
|
+
for(let i=0;i<a.length;i++){
|
|
245
|
+
if(a[i].split('</td>').length-1>len){
|
|
246
|
+
len=a[i].split('</td>').length-1
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
this.spans = len
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
computed: {
|
|
253
|
+
user_type () {
|
|
254
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
255
|
+
},
|
|
256
|
+
charge_state () {
|
|
257
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
</script>
|
|
263
|
+
<style scoped>
|
|
264
|
+
.noborder{
|
|
265
|
+
border: none;
|
|
266
|
+
}
|
|
267
|
+
</style>
|
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="basic-main" style="height: 98%">
|
|
3
|
+
<criteria-paged :model="model" :pager='false' v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
|
|
5
|
+
<p class="bg-info text-center" style="padding: 8px;">用户新增销户统计报表</p>
|
|
6
|
+
<div class="form-group" v-if="!$parent.$parent.data.f_files_path"></div>
|
|
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 class="font_normal_body" for="startDate">开始日期:</label>
|
|
11
|
+
<datepicker id="startDate" placeholder="开始日期" style="width: 60%"
|
|
12
|
+
v-model="model.startDate"
|
|
13
|
+
:value.sync="model.startDate"
|
|
14
|
+
:disabled-days-of-Week="[]"
|
|
15
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
16
|
+
:show-reset-button="reset">
|
|
17
|
+
</datepicker>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="col-sm-2 form-group" >
|
|
20
|
+
<label class="font_normal_body" for="endDate">结束日期:</label>
|
|
21
|
+
<datepicker id="endDate" placeholder="结束日期" style="width: 60%"
|
|
22
|
+
v-model="model.endDate"
|
|
23
|
+
:value.sync="model.endDate"
|
|
24
|
+
:disabled-days-of-Week="[]"
|
|
25
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
26
|
+
:show-reset-button="reset">
|
|
27
|
+
</datepicker>
|
|
28
|
+
</div>
|
|
29
|
+
<res-select-group :show-component="['company','department','operator']" :initres="$parent.$parent.initres" :selectin="true" :cascade =true @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
30
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
31
|
+
<!-- <label class="font_normal_body" for="dep" >部  门:</label>-->
|
|
32
|
+
<!-- <v-select id="dep" style="width: 60%"-->
|
|
33
|
+
<!-- :multiple="true"-->
|
|
34
|
+
<!-- @change="$parent.$parent.getDep"-->
|
|
35
|
+
<!-- :value.sync="model.f_depid"-->
|
|
36
|
+
<!-- v-model="model.f_depid"-->
|
|
37
|
+
<!-- :options='$parent.$parent.depresid' placeholder='请选择'-->
|
|
38
|
+
<!-- condition="f_depid in {}">-->
|
|
39
|
+
<!-- </v-select>-->
|
|
40
|
+
|
|
41
|
+
<!-- </div>-->
|
|
42
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
43
|
+
<!-- <label class="font_normal_body" for="oper">人  员:</label>-->
|
|
44
|
+
<!-- <v-select id="oper" style="width: 60%"-->
|
|
45
|
+
<!-- :multiple="true"-->
|
|
46
|
+
<!-- @change="$parent.$parent.getOpe"-->
|
|
47
|
+
<!-- :value.sync="model.f_operatorid"-->
|
|
48
|
+
<!-- v-model="model.f_operatorid"-->
|
|
49
|
+
<!-- :options='$parent.$parent.userresid' placeholder='请选择'-->
|
|
50
|
+
<!-- condition="f_operatorid in {}">-->
|
|
51
|
+
<!-- </v-select>-->
|
|
52
|
+
<!-- </div>-->
|
|
53
|
+
<div class="col-sm-2 form-group">
|
|
54
|
+
<label class="font_normal_body">用气性质</label>
|
|
55
|
+
<v-select :value.sync="model.f_gasproperties"
|
|
56
|
+
:multiple="true"
|
|
57
|
+
v-model="model.f_gasproperties"
|
|
58
|
+
:options='$parent.$parent.gaspropertyTypes' placeholder='请选择'
|
|
59
|
+
condition=" f_gasproperties in '{}'"
|
|
60
|
+
close-on-select></v-select>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="col-sm-2 form-group">
|
|
63
|
+
<label class="font_normal_body">客户类型</label>
|
|
64
|
+
<v-select :value.sync="model.f_user_type"
|
|
65
|
+
:multiple="true"
|
|
66
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
67
|
+
condition="f_user_type in '{}'"
|
|
68
|
+
close-on-select></v-select>
|
|
69
|
+
</div>
|
|
70
|
+
<div class="col-sm-2 form-group">
|
|
71
|
+
<label class="font_normal_body">气价名称</label>
|
|
72
|
+
<v-select :value.sync="model.f_price_name"
|
|
73
|
+
v-model="model.f_price_name"
|
|
74
|
+
:multiple="true"
|
|
75
|
+
:options="$parent.$parent.getPricenames"
|
|
76
|
+
condition="f_price_name in '{}'"
|
|
77
|
+
close-on-select></v-select>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="col-sm-2 form-group">
|
|
80
|
+
<label class="font_normal_body">气表品牌</label>
|
|
81
|
+
<v-select :value.sync="model.f_meter_brand"
|
|
82
|
+
v-model="model.f_meter_brand"
|
|
83
|
+
:multiple="true"
|
|
84
|
+
:options='$parent.$parent.meterbrands' placeholder='请选择'
|
|
85
|
+
condition="f_meter_brand in '{}'"
|
|
86
|
+
close-on-select></v-select>
|
|
87
|
+
</div>
|
|
88
|
+
|
|
89
|
+
<div style = "float:right;">
|
|
90
|
+
<button class="button_search" @click="$parent.$parent.searchData()">查询</button>
|
|
91
|
+
<report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
|
|
92
|
+
<report-excel id='gasprice'></report-excel>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</criteria>
|
|
97
|
+
<div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
|
|
98
|
+
<table class='tableprint' style="margin: 0px auto">
|
|
99
|
+
<thead>
|
|
100
|
+
<tr>
|
|
101
|
+
<th :colspan='$parent.spans' style="font-weight: bold; text-align: left;">
|
|
102
|
+
<h3 style="text-align: center">用户新增销户统计报表</h3>
|
|
103
|
+
</th>
|
|
104
|
+
</tr>
|
|
105
|
+
<tr>
|
|
106
|
+
<th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
|
|
107
|
+
开始时间:{{model.model.startDate}}
|
|
108
|
+
结束时间:{{ model.model.endDate }}
|
|
109
|
+
</th>
|
|
110
|
+
</tr>
|
|
111
|
+
<tr>
|
|
112
|
+
<th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
|
|
113
|
+
打印时间:{{{$parent.printTime}}}
|
|
114
|
+
</th>
|
|
115
|
+
</tr>
|
|
116
|
+
<tr>
|
|
117
|
+
<th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
|
|
118
|
+
<div>
|
|
119
|
+
<span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
|
|
120
|
+
<!--<span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>-->
|
|
121
|
+
</div>
|
|
122
|
+
</th>
|
|
123
|
+
</tr>
|
|
124
|
+
</thead>
|
|
125
|
+
<tr>
|
|
126
|
+
<td :colspan='$parent.spans' class="noborder">
|
|
127
|
+
{{{ model.data.substring(26,model.data.length-8) }}}
|
|
128
|
+
</td>
|
|
129
|
+
</tr>
|
|
130
|
+
<!--<tfoot>-->
|
|
131
|
+
<!--<tr style="text-align: left">-->
|
|
132
|
+
<!--<th colspan='{{$parent.spans}}' style="font-weight: normal; text-align: left;">-->
|
|
133
|
+
<!--收款人: -->
|
|
134
|
+
<!--运营部审核人: -->
|
|
135
|
+
<!--微信后台审核人: -->
|
|
136
|
+
<!--经手人: -->
|
|
137
|
+
<!--</th>-->
|
|
138
|
+
<!--</tr>-->
|
|
139
|
+
<!--</tfoot>-->
|
|
140
|
+
</table>
|
|
141
|
+
{{{ $parent.reportStr}}}
|
|
142
|
+
</div>
|
|
143
|
+
</criteria-paged>
|
|
144
|
+
<modal :show.sync="show" v-ref:modal small backdrop="false">
|
|
145
|
+
<header slot="modal-header" class="modal-header">
|
|
146
|
+
<h4 class="modal-title">输入文件名称</h4>
|
|
147
|
+
</header>
|
|
148
|
+
<article slot="modal-body" class="modal-body">
|
|
149
|
+
<div class="form-group">
|
|
150
|
+
<input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
|
|
151
|
+
</div>
|
|
152
|
+
</article>
|
|
153
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
154
|
+
<button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
|
|
155
|
+
<button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
|
|
156
|
+
</footer>
|
|
157
|
+
</modal>
|
|
158
|
+
</div>
|
|
159
|
+
</template>
|
|
160
|
+
|
|
161
|
+
<script>
|
|
162
|
+
import {DataModel, HttpResetClass} from 'vue-client'
|
|
163
|
+
import co from 'co'
|
|
164
|
+
let getorg = async function (self) {
|
|
165
|
+
new HttpResetClass().load("POST",'api/af-revenue/sql/singleTableParam',
|
|
166
|
+
{
|
|
167
|
+
data: {
|
|
168
|
+
items: 'name label,id value',
|
|
169
|
+
tablename: 't_department',
|
|
170
|
+
condition: `1=1`
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
{resolveMsg: null, rejectMsg: null})
|
|
174
|
+
.then((res) => {
|
|
175
|
+
self.depresid = res.data
|
|
176
|
+
})
|
|
177
|
+
new HttpResetClass().load("POST",'api/af-revenue/sql/singleTableParam',
|
|
178
|
+
{
|
|
179
|
+
data: {
|
|
180
|
+
items: 'name label,id value',
|
|
181
|
+
tablename: 't_user',
|
|
182
|
+
condition: `state = '在职' and f_department_name is not null`
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
{resolveMsg: null, rejectMsg: null})
|
|
186
|
+
.then((res) => {
|
|
187
|
+
self.userresid = res.data
|
|
188
|
+
})
|
|
189
|
+
}
|
|
190
|
+
let saveFile = function * (self) {
|
|
191
|
+
// 线验证文件是否重名
|
|
192
|
+
let count = yield self.$resetpost('api/af-revenue/sql/manageSingleTable',
|
|
193
|
+
{data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
|
|
194
|
+
{resolveMsg: null, rejectMsg: null})
|
|
195
|
+
if (count.data.length > 0) {
|
|
196
|
+
self.$showAlert('无法保存,文件名重名', 'warning', 3000)
|
|
197
|
+
return
|
|
198
|
+
}
|
|
199
|
+
let saveBack = yield self.$resetpost('api/af-revenue/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
|
|
200
|
+
f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
|
|
201
|
+
f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
|
|
202
|
+
f_outlets: this.$login.f.depname})
|
|
203
|
+
if (saveBack.data.status === 'succeed') {
|
|
204
|
+
self.show = false
|
|
205
|
+
self.filename = ''
|
|
206
|
+
// 后台保存完成,通知刷新
|
|
207
|
+
self.$dispatch('save-success', self.filename)
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export default {
|
|
212
|
+
title: '用户新增销户统计报表',
|
|
213
|
+
props: ['data'],
|
|
214
|
+
data () {
|
|
215
|
+
return {
|
|
216
|
+
printTime: this.$login.toStandardTimeString(),
|
|
217
|
+
depresid: [],
|
|
218
|
+
userresid: [],
|
|
219
|
+
initres: {
|
|
220
|
+
org:[this.$login.f.orgid],
|
|
221
|
+
dep:[],
|
|
222
|
+
user:[]
|
|
223
|
+
},
|
|
224
|
+
meterbrands: [],
|
|
225
|
+
getPricenames:[],
|
|
226
|
+
f_orgid: this.$login.f.orgid,
|
|
227
|
+
f_depid: this.$login.f.depids,
|
|
228
|
+
f_operatorid: this.$login.f.id,
|
|
229
|
+
operatorid: [],
|
|
230
|
+
depid: [],
|
|
231
|
+
orgname: '',
|
|
232
|
+
depname: '',
|
|
233
|
+
operatorname: '',
|
|
234
|
+
orgCondtionStr: '1=1',
|
|
235
|
+
model: new DataModel('api/af-revenue/report/manageusercount', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
|
|
236
|
+
f_orgid: 'this.model.f_orgid'}),
|
|
237
|
+
reportStr: null,
|
|
238
|
+
show: false,
|
|
239
|
+
spans: ''
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
ready () {
|
|
243
|
+
getorg(this)
|
|
244
|
+
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
245
|
+
this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
246
|
+
this.initParams()
|
|
247
|
+
this.qijia()
|
|
248
|
+
},
|
|
249
|
+
methods: {
|
|
250
|
+
searchData () {
|
|
251
|
+
this.$refs.paged.$refs.criteria.search()
|
|
252
|
+
},
|
|
253
|
+
selfSearch (args) {
|
|
254
|
+
this.printTime = this.$login.toStandardTimeString()
|
|
255
|
+
let orgcondition = '1=1'
|
|
256
|
+
let orgstr = this.orgCondtionStr
|
|
257
|
+
orgcondition = orgcondition + orgstr
|
|
258
|
+
this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition.replace('1=1','') + ' and ' + args.condition
|
|
259
|
+
this.$refs.paged.search(args)
|
|
260
|
+
},
|
|
261
|
+
getRes (condition, obj) {
|
|
262
|
+
this.orgCondtionStr = condition
|
|
263
|
+
this.orgname = obj.orgnames[0]
|
|
264
|
+
this.depname = obj.depnames[0]
|
|
265
|
+
this.initParams()
|
|
266
|
+
this.qijia()
|
|
267
|
+
},
|
|
268
|
+
getDep(val){
|
|
269
|
+
this.depname = this.depresid.filter(x => val.includes(x.value)).map(x=>x.label).toString()
|
|
270
|
+
console.log('dep',this.depname )
|
|
271
|
+
},
|
|
272
|
+
getOpe(val){
|
|
273
|
+
this.operatorname = this.userresid.filter(x => val.includes(x.value)).map(x=>x.label).toString()
|
|
274
|
+
console.log('operatorname',this.operatorname )
|
|
275
|
+
},
|
|
276
|
+
async initParams (condition) {
|
|
277
|
+
// 初始化气表品牌
|
|
278
|
+
let HttpReset = new HttpResetClass()
|
|
279
|
+
var data = await HttpReset.load('POST', 'api/af-revenue/sql/singleTable_Final', {
|
|
280
|
+
data: {
|
|
281
|
+
condition: '1=1',
|
|
282
|
+
tablename: 't_gasbrand',
|
|
283
|
+
groupitem: 'f_meter_brand',
|
|
284
|
+
orderitem: 'f_meter_brand',
|
|
285
|
+
items: 'f_meter_brand'
|
|
286
|
+
}
|
|
287
|
+
}, {resolveMsg: null, rejectMsg: '获取气表品牌失败!'})
|
|
288
|
+
let brandArr = [{label: '全部', value: ''}]
|
|
289
|
+
for (let row of data.data){
|
|
290
|
+
brandArr.push({label: row.f_meter_brand, value: row.f_meter_brand})
|
|
291
|
+
}
|
|
292
|
+
this.meterbrands = brandArr
|
|
293
|
+
},
|
|
294
|
+
async qijia (condition) {
|
|
295
|
+
// 初始化气价名称 t_stairprice 表中的 f_price_name 条件是f_state='有效'
|
|
296
|
+
let HttpReset = new HttpResetClass()
|
|
297
|
+
var data = await HttpReset.load('POST', 'api/af-revenue/sql/singleTable_Final', {
|
|
298
|
+
data: {
|
|
299
|
+
condition: "1=1 and f_state='有效' " + (condition==null ? '' : condition),
|
|
300
|
+
tablename: 't_stairprice',
|
|
301
|
+
groupitem: 'f_price_name',
|
|
302
|
+
orderitem: 'f_price_name',
|
|
303
|
+
items: 'f_price_name'
|
|
304
|
+
}
|
|
305
|
+
}, {resolveMsg: null, rejectMsg: '获取气价名称失败!'})
|
|
306
|
+
let brandArr1 = [{label: '全部', value: ''}]
|
|
307
|
+
for (let row of data.data){
|
|
308
|
+
brandArr1.push({label: row.f_price_name, value: row.f_price_name})
|
|
309
|
+
}
|
|
310
|
+
this.getPricenames = brandArr1
|
|
311
|
+
},
|
|
312
|
+
// 根据文件路径获取储存的报表内容
|
|
313
|
+
getFileContent (path) {
|
|
314
|
+
this.$resetpost('api/af-revenue/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
315
|
+
this.reportStr = res.data.filecontent
|
|
316
|
+
this.model.state = '正确'
|
|
317
|
+
})
|
|
318
|
+
},
|
|
319
|
+
confirm () {
|
|
320
|
+
if (!this.filename || this.filename === '') {
|
|
321
|
+
this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
|
|
322
|
+
}
|
|
323
|
+
let saveGen = saveFile(this)
|
|
324
|
+
co(saveGen)
|
|
325
|
+
},
|
|
326
|
+
close () {
|
|
327
|
+
this.show = false
|
|
328
|
+
},
|
|
329
|
+
// 将报表保存成文件
|
|
330
|
+
confirmReport () {
|
|
331
|
+
this.show = true
|
|
332
|
+
this.filename = this.data.f_report_name + this.$login.toStandardDateString()
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
watch: {
|
|
336
|
+
'data' (val) {
|
|
337
|
+
if (val.f_files_path) {
|
|
338
|
+
this.getFileContent(val.f_files_path)
|
|
339
|
+
} else {
|
|
340
|
+
this.reportStr = null
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
'model.data' (val) {
|
|
344
|
+
let len=0
|
|
345
|
+
let a=val.split('</tr>')
|
|
346
|
+
for(let i=0;i<a.length;i++){
|
|
347
|
+
if(a[i].split('</td>').length-1>len){
|
|
348
|
+
len=a[i].split('</td>').length-1
|
|
349
|
+
}
|
|
350
|
+
continue
|
|
351
|
+
}
|
|
352
|
+
this.spans = len
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
computed: {
|
|
356
|
+
gaspropertyTypes() {
|
|
357
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
|
|
358
|
+
},
|
|
359
|
+
usertypes() {
|
|
360
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
</script>
|
|
365
|
+
<style scoped>
|
|
366
|
+
.noborder{
|
|
367
|
+
border: none;
|
|
368
|
+
}
|
|
369
|
+
</style>
|