manage-client 4.1.10 → 4.1.11
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/components/SellReport/ManageBusSummaryShiMen.vue +239 -0
- package/src/components/SellReport/ManageGasFeeShiMen.vue +247 -0
- package/src/components/sale/businessquery/ChangeMeterQuery.vue +9 -3
- package/src/filiale/fugou/RecordInfoQuery.vue +1 -1
- package/src/reportManage.js +9 -0
package/package.json
CHANGED
|
@@ -0,0 +1,239 @@
|
|
|
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="span" style = "float:right;">
|
|
54
|
+
<button class="button_search" @click="$parent.$parent.searchData()">查询</button>
|
|
55
|
+
<report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
|
|
56
|
+
<report-excel id='gasprice'></report-excel>
|
|
57
|
+
<div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
|
|
58
|
+
'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
61
|
+
<div class="col-sm-2 form-group">
|
|
62
|
+
<label class="font_normal_body">用户类型</label>
|
|
63
|
+
<v-select :value.sync="$parent.$parent.f_user_type"
|
|
64
|
+
v-model="$parent.$parent.f_user_type"
|
|
65
|
+
:options='$parent.$parent.user_type' placeholder='请选择'
|
|
66
|
+
condition="f_user_type = '{}'"
|
|
67
|
+
close-on-select></v-select>
|
|
68
|
+
</div>
|
|
69
|
+
<!--<div class="col-sm-2 form-group">-->
|
|
70
|
+
<!--<label class="font_normal_body">收费状态</label>-->
|
|
71
|
+
<!--<v-select :value.sync="$parent.$parent.f_state" multiple-->
|
|
72
|
+
<!--v-model="$parent.$parent.f_state"-->
|
|
73
|
+
<!--:options='$parent.$parent.charge_state' placeholder='请选择'-->
|
|
74
|
+
<!--condition="f_state in {}"-->
|
|
75
|
+
<!--close-on-select></v-select>-->
|
|
76
|
+
<!--</div>-->
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</criteria>
|
|
80
|
+
<div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
|
|
81
|
+
<table class='tableprint' style="margin: 0px auto">
|
|
82
|
+
<thead>
|
|
83
|
+
<tr>
|
|
84
|
+
<th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
|
|
85
|
+
<h3 style="text-align: center">收费结账报表</h3>
|
|
86
|
+
</th>
|
|
87
|
+
</tr>
|
|
88
|
+
<tr>
|
|
89
|
+
<th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
|
|
90
|
+
开始时间:{{model.model.startDate}}
|
|
91
|
+
结束时间:{{ model.model.endDate }} <br/>
|
|
92
|
+
<!--打印时间:{{{$parent.printTime}}}-->
|
|
93
|
+
打印时间:{{$parent.printTime}}
|
|
94
|
+
<!--收费员:{{// $parent.operatorname}}-->
|
|
95
|
+
</th>
|
|
96
|
+
</tr>
|
|
97
|
+
<tr>
|
|
98
|
+
<th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
|
|
99
|
+
<div>
|
|
100
|
+
<span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
|
|
101
|
+
<span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
|
|
102
|
+
<span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.operatorname">人员:{{$parent.operatorname}}</span>
|
|
103
|
+
</div>
|
|
104
|
+
</th>
|
|
105
|
+
</tr>
|
|
106
|
+
</thead>
|
|
107
|
+
<tr>
|
|
108
|
+
<td :colspan='$parent.spans' class="noborder">
|
|
109
|
+
{{{ model.data.substring(26,model.data.length-8) }}}
|
|
110
|
+
</td>
|
|
111
|
+
</tr>
|
|
112
|
+
<tfoot>
|
|
113
|
+
<tr style="text-align: left">
|
|
114
|
+
<th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
|
|
115
|
+
<th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
|
|
116
|
+
<th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
|
|
117
|
+
</tr>
|
|
118
|
+
</tfoot>
|
|
119
|
+
</table>
|
|
120
|
+
{{{ $parent.reportStr}}}
|
|
121
|
+
</div>
|
|
122
|
+
</criteria-paged>
|
|
123
|
+
</div>
|
|
124
|
+
</template>
|
|
125
|
+
|
|
126
|
+
<script>
|
|
127
|
+
import { DataModel } from 'vue-client'
|
|
128
|
+
import co from 'co'
|
|
129
|
+
|
|
130
|
+
export default {
|
|
131
|
+
title: '收费结账报表',
|
|
132
|
+
props: ['data'],
|
|
133
|
+
data () {
|
|
134
|
+
return {
|
|
135
|
+
printTime: this.$login.toStandardTimeString(),
|
|
136
|
+
depresid: [],
|
|
137
|
+
userresid: [],
|
|
138
|
+
f_orgid: this.$login.f.orgid,
|
|
139
|
+
f_depid: this.$login.f.depids,
|
|
140
|
+
// f_operatorid: this.$login.f.id,
|
|
141
|
+
operatorid: [],
|
|
142
|
+
depid: [],
|
|
143
|
+
orgname: '',
|
|
144
|
+
depname: '',
|
|
145
|
+
criteriaShow: false,
|
|
146
|
+
operatorname: '',
|
|
147
|
+
orgCondtionStr: '1=1',
|
|
148
|
+
f_user_type: '',
|
|
149
|
+
f_state:['有效'],
|
|
150
|
+
model: new DataModel('api/af-revenue/report/sm_getmoneyall', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
|
|
151
|
+
f_orgid: 'this.model.f_orgid'}),
|
|
152
|
+
reportStr: null,
|
|
153
|
+
resshow:['company','department','operator'],
|
|
154
|
+
spans: 0,
|
|
155
|
+
initres: {
|
|
156
|
+
org: [this.$login.f.orgid],
|
|
157
|
+
dep: [],
|
|
158
|
+
user: []
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
ready () {
|
|
163
|
+
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
164
|
+
this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
165
|
+
console.log(this.$login.f)
|
|
166
|
+
},
|
|
167
|
+
methods: {
|
|
168
|
+
searchData () {
|
|
169
|
+
this.$refs.paged.$refs.criteria.search()
|
|
170
|
+
},
|
|
171
|
+
selfSearch (args) {
|
|
172
|
+
this.printTime = this.$login.toStandardTimeString()
|
|
173
|
+
let orgcondition = '1=1'
|
|
174
|
+
let orgstr = this.orgCondtionStr
|
|
175
|
+
orgcondition = orgcondition + orgstr
|
|
176
|
+
console.log('23231312321:',this.f_user_type)
|
|
177
|
+
if(this.f_user_type && this.f_user_type[0]) {
|
|
178
|
+
orgcondition += ` and f_user_type = '${ this.f_user_type} '`
|
|
179
|
+
}
|
|
180
|
+
/* if (this.f_orgid && this.f_orgid[0]) {
|
|
181
|
+
orgcondition += ` and f_orgid in ('${this.f_orgid}')`
|
|
182
|
+
}
|
|
183
|
+
if (this.f_depid && this.f_depid[0]) {
|
|
184
|
+
orgcondition += ` and f_depid in ('${this.f_depid}')`
|
|
185
|
+
}
|
|
186
|
+
if(this.f_operatorid && this.f_operatorid[0]) {
|
|
187
|
+
orgcondition += ` and f_operatorid in ('${this.f_operatorid}')`
|
|
188
|
+
}*/
|
|
189
|
+
this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
|
|
190
|
+
this.$refs.paged.search(args)
|
|
191
|
+
},
|
|
192
|
+
|
|
193
|
+
hidden() {
|
|
194
|
+
this.criteriaShow = !this.criteriaShow
|
|
195
|
+
},
|
|
196
|
+
getRes (condition, obj) {
|
|
197
|
+
this.orgCondtionStr = condition
|
|
198
|
+
this.orgname = obj.orgnames[0]
|
|
199
|
+
this.depname = obj.depnames[0]
|
|
200
|
+
console.log(obj,"========")
|
|
201
|
+
this.operatorname = obj.operatornames[0]
|
|
202
|
+
},
|
|
203
|
+
getdep (obj, val) {
|
|
204
|
+
this.depname = val[0]
|
|
205
|
+
this.userresid = obj
|
|
206
|
+
this.f_depid = obj
|
|
207
|
+
},
|
|
208
|
+
getuser ( obj, val) {
|
|
209
|
+
this.operatorname = val[0]
|
|
210
|
+
this.f_operatorid = obj
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
watch: {
|
|
214
|
+
'model.data' (val) {
|
|
215
|
+
let len=0
|
|
216
|
+
let a=val.split('</tr>')
|
|
217
|
+
for(let i=0;i<a.length;i++){
|
|
218
|
+
if(a[i].split('</td>').length-1>len){
|
|
219
|
+
len=a[i].split('</td>').length-1
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
this.spans = len
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
computed: {
|
|
226
|
+
charge_state() {
|
|
227
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
|
|
228
|
+
},
|
|
229
|
+
user_type () {
|
|
230
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
</script>
|
|
235
|
+
<style scoped>
|
|
236
|
+
.noborder{
|
|
237
|
+
border: none;
|
|
238
|
+
}
|
|
239
|
+
</style>
|
|
@@ -0,0 +1,247 @@
|
|
|
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
|
+
<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
|
+
<div class="col-sm-2 form-group">
|
|
30
|
+
<label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
|
|
31
|
+
<v-select :value.sync="model.f_payment" multiple
|
|
32
|
+
v-model="model.f_payment"
|
|
33
|
+
:options='$parent.$parent.payment' placeholder='请选择'
|
|
34
|
+
condition="f_payment in {}"
|
|
35
|
+
close-on-select></v-select>
|
|
36
|
+
</div>
|
|
37
|
+
<res-select-group :initres="$parent.$parent.initres" :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
38
|
+
<div style = "float:right;">
|
|
39
|
+
<button class="button_search" @click="$parent.$parent.searchData()">查询</button>
|
|
40
|
+
<report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
|
|
41
|
+
<report-excel id='gasprice'></report-excel>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</criteria>
|
|
46
|
+
<div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
|
|
47
|
+
<table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
|
|
48
|
+
<thead>
|
|
49
|
+
<tr>
|
|
50
|
+
<th colspan='8' style="font-weight: bold; text-align: left;">
|
|
51
|
+
<h3 style="text-align: center">收费统计表</h3>
|
|
52
|
+
</th>
|
|
53
|
+
</tr>
|
|
54
|
+
<tr>
|
|
55
|
+
<th colspan='8' style="font-weight: normal; text-align: center;">
|
|
56
|
+
开始时间:{{model.model.startDate}}
|
|
57
|
+
结束时间:{{ model.model.endDate }}
|
|
58
|
+
</th>
|
|
59
|
+
</tr>
|
|
60
|
+
<tr>
|
|
61
|
+
<th colspan='8' style="font-weight: normal; text-align: center;">
|
|
62
|
+
打印时间:{{{$parent.printTime}}}
|
|
63
|
+
</th>
|
|
64
|
+
</tr>
|
|
65
|
+
<tr>
|
|
66
|
+
<th colspan='8' style="font-weight: normal; text-align: center;">
|
|
67
|
+
<div>
|
|
68
|
+
<span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
|
|
69
|
+
<span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
|
|
70
|
+
</div>
|
|
71
|
+
</th>
|
|
72
|
+
</tr>
|
|
73
|
+
</thead>
|
|
74
|
+
<tr>
|
|
75
|
+
<td colspan='8' style="font-weight: normal;" id="test">
|
|
76
|
+
{{{ model.data.substring(26,model.data.length-8) }}}
|
|
77
|
+
</td>
|
|
78
|
+
</tr>
|
|
79
|
+
<tfoot>
|
|
80
|
+
<tr style="text-align: left">
|
|
81
|
+
<th colspan='3' style="font-weight: normal; text-align: center;">
|
|
82
|
+
收款人:
|
|
83
|
+
</th><th colspan='3' style="font-weight: normal; text-align: center;">
|
|
84
|
+
审核人:
|
|
85
|
+
</th><th colspan='2' style="font-weight: normal; text-align: center;">
|
|
86
|
+
经手人:
|
|
87
|
+
</th>
|
|
88
|
+
</tr>
|
|
89
|
+
</tfoot>
|
|
90
|
+
</table>
|
|
91
|
+
{{{ $parent.reportStr}}}
|
|
92
|
+
</div>
|
|
93
|
+
</criteria-paged>
|
|
94
|
+
<modal :show.sync="show" v-ref:modal small backdrop="false">
|
|
95
|
+
<header slot="modal-header" class="modal-header">
|
|
96
|
+
<h4 class="modal-title">输入文件名称</h4>
|
|
97
|
+
</header>
|
|
98
|
+
<article slot="modal-body" class="modal-body">
|
|
99
|
+
<div class="form-group">
|
|
100
|
+
<input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
|
|
101
|
+
</div>
|
|
102
|
+
</article>
|
|
103
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
104
|
+
<button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
|
|
105
|
+
<button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
|
|
106
|
+
</footer>
|
|
107
|
+
</modal>
|
|
108
|
+
</div>
|
|
109
|
+
</template>
|
|
110
|
+
|
|
111
|
+
<script>
|
|
112
|
+
import { DataModel } from 'vue-client'
|
|
113
|
+
import co from 'co'
|
|
114
|
+
let saveFile = function * (self) {
|
|
115
|
+
// 线验证文件是否重名
|
|
116
|
+
let count = yield self.$resetpost('api/af-revenue/sql/manageSingleTable',
|
|
117
|
+
{data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
|
|
118
|
+
{resolveMsg: null, rejectMsg: null})
|
|
119
|
+
if (count.data.length > 0) {
|
|
120
|
+
self.$showAlert('无法保存,文件名重名', 'warning', 3000)
|
|
121
|
+
return
|
|
122
|
+
}
|
|
123
|
+
let saveBack = yield self.$resetpost('api/af-revenue/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
|
|
124
|
+
f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
|
|
125
|
+
f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
|
|
126
|
+
f_outlets: this.$login.f.depname})
|
|
127
|
+
if (saveBack.data.status === 'succeed') {
|
|
128
|
+
self.show = false
|
|
129
|
+
self.filename = ''
|
|
130
|
+
// 后台保存完成,通知刷新
|
|
131
|
+
self.$dispatch('save-success', self.filename)
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
export default {
|
|
135
|
+
title: '收费统计表',
|
|
136
|
+
props: ['data'],
|
|
137
|
+
data () {
|
|
138
|
+
return {
|
|
139
|
+
printTime: this.$login.toStandardTimeString(),
|
|
140
|
+
depresid: [],
|
|
141
|
+
userresid: [],
|
|
142
|
+
initres: {
|
|
143
|
+
org:[this.$login.f.orgid],
|
|
144
|
+
dep:[],
|
|
145
|
+
user:[]
|
|
146
|
+
},
|
|
147
|
+
f_orgid: this.$login.f.orgid,
|
|
148
|
+
f_depid: this.$login.f.depids,
|
|
149
|
+
f_operatorid: this.$login.f.id,
|
|
150
|
+
operatorid: [],
|
|
151
|
+
depid: [],
|
|
152
|
+
orgname: '',
|
|
153
|
+
depname: '',
|
|
154
|
+
operatorname: '',
|
|
155
|
+
orgCondtionStr: '1=1',
|
|
156
|
+
model: new DataModel('api/af-revenue/report/sm_getOrFee', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
|
|
157
|
+
f_orgid: 'this.model.f_orgid'}),
|
|
158
|
+
reportStr: null,
|
|
159
|
+
show: false,
|
|
160
|
+
spans: ''
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
ready () {
|
|
164
|
+
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
165
|
+
this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
166
|
+
// this.$refs.paged.$refs.criteria.search()
|
|
167
|
+
},
|
|
168
|
+
methods: {
|
|
169
|
+
searchData () {
|
|
170
|
+
this.$refs.paged.$refs.criteria.search()
|
|
171
|
+
},
|
|
172
|
+
selfSearch (args) {
|
|
173
|
+
this.printTime = this.$login.toStandardTimeString()
|
|
174
|
+
let orgstr = this.orgCondtionStr
|
|
175
|
+
args.condition = `${args.condition} ` + orgstr
|
|
176
|
+
this.$refs.paged.$refs.criteria.model.f_orgid = args.condition
|
|
177
|
+
this.$refs.paged.search(args)
|
|
178
|
+
},
|
|
179
|
+
getRes (condition, obj) {
|
|
180
|
+
this.orgCondtionStr = condition
|
|
181
|
+
this.orgname = obj.orgnames[0]
|
|
182
|
+
this.depname = obj.depnames[0]
|
|
183
|
+
},
|
|
184
|
+
// getdep (obj, val) {
|
|
185
|
+
// // this.depname = val[0]
|
|
186
|
+
// this.userresid = obj
|
|
187
|
+
// this.f_depid = obj
|
|
188
|
+
// },
|
|
189
|
+
// getuser ( obj, val) {
|
|
190
|
+
// this.operatorname = val[0]
|
|
191
|
+
// this.f_operatorid = obj
|
|
192
|
+
// },
|
|
193
|
+
|
|
194
|
+
// 根据文件路径获取储存的报表内容
|
|
195
|
+
getFileContent (path) {
|
|
196
|
+
this.$resetpost('api/af-revenue/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
197
|
+
this.reportStr = res.data.filecontent
|
|
198
|
+
this.model.state = '正确'
|
|
199
|
+
})
|
|
200
|
+
},
|
|
201
|
+
confirm () {
|
|
202
|
+
if (!this.filename || this.filename === '') {
|
|
203
|
+
this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
|
|
204
|
+
}
|
|
205
|
+
let saveGen = saveFile(this)
|
|
206
|
+
co(saveGen)
|
|
207
|
+
},
|
|
208
|
+
close () {
|
|
209
|
+
this.show = false
|
|
210
|
+
},
|
|
211
|
+
// 将报表保存成文件
|
|
212
|
+
confirmReport () {
|
|
213
|
+
this.show = true
|
|
214
|
+
this.filename = this.data.f_report_name + this.$login.toStandardDateString()
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
watch: {
|
|
218
|
+
'data' (val) {
|
|
219
|
+
if (val.f_files_path) {
|
|
220
|
+
this.getFileContent(val.f_files_path)
|
|
221
|
+
} else {
|
|
222
|
+
this.reportStr = null
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
'model.data' (val) {
|
|
226
|
+
let tab = document.getElementById('test').children[0]
|
|
227
|
+
var tds = tab.getElementsByTagName('td')
|
|
228
|
+
var num = 0
|
|
229
|
+
for (let td of tds) {
|
|
230
|
+
let span = td.getAttribute('colspan')
|
|
231
|
+
num = num + ((span ? span : 1) - 0)
|
|
232
|
+
}
|
|
233
|
+
this.spans = num
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
computed: {
|
|
237
|
+
payment() {
|
|
238
|
+
return [...this.$appdata.getParam('付款方式查询')]
|
|
239
|
+
},
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
</script>
|
|
243
|
+
<style scoped>
|
|
244
|
+
.noborder{
|
|
245
|
+
border: none;
|
|
246
|
+
}
|
|
247
|
+
</style>
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
78
78
|
</div>
|
|
79
79
|
<div class="col-sm-2 form-group">
|
|
80
|
-
<label class="font_normal_body"
|
|
80
|
+
<label class="font_normal_body">客户类型</label>
|
|
81
81
|
<v-select :value.sync="model.f_user_type"
|
|
82
82
|
v-model="model.f_user_type"
|
|
83
83
|
:options='$parent.$parent.userTypes' placeholder='请选择'
|
|
@@ -205,7 +205,10 @@
|
|
|
205
205
|
<nobr>付款方式</nobr>
|
|
206
206
|
</th>
|
|
207
207
|
<th>
|
|
208
|
-
<nobr
|
|
208
|
+
<nobr>当前底数</nobr>
|
|
209
|
+
</th>
|
|
210
|
+
<th>
|
|
211
|
+
<nobr>初始底数</nobr>
|
|
209
212
|
</th>
|
|
210
213
|
<th>
|
|
211
214
|
<nobr>表上余额</nobr>
|
|
@@ -296,6 +299,9 @@
|
|
|
296
299
|
<td style="text-align: center;">
|
|
297
300
|
<nobr>{{row.f_meter_base}}</nobr>
|
|
298
301
|
</td>
|
|
302
|
+
<td style="text-align: center;">
|
|
303
|
+
<nobr>{{row.f_initial_base}}</nobr>
|
|
304
|
+
</td>
|
|
299
305
|
<td style="text-align: center;">
|
|
300
306
|
<nobr>{{row.f_balance_amount}}</nobr>
|
|
301
307
|
</td>
|
|
@@ -675,7 +681,7 @@
|
|
|
675
681
|
return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表类型')]
|
|
676
682
|
},
|
|
677
683
|
userTypes() {
|
|
678
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('
|
|
684
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('客户类型')]
|
|
679
685
|
},
|
|
680
686
|
meterClassify() {
|
|
681
687
|
return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
|
|
@@ -1131,7 +1131,7 @@
|
|
|
1131
1131
|
async getaddress(){
|
|
1132
1132
|
console.log('开始获取小区')
|
|
1133
1133
|
let HttpReset = new HttpResetClass()
|
|
1134
|
-
var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
|
|
1134
|
+
var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist?pageNo=1&pageSize=9999999', {
|
|
1135
1135
|
data: {
|
|
1136
1136
|
condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
|
|
1137
1137
|
}
|
package/src/reportManage.js
CHANGED
|
@@ -228,6 +228,15 @@ export default function () {
|
|
|
228
228
|
Vue.component('manage-gas-fee', (resolve) => {
|
|
229
229
|
require(['./components/SellReport/ManageGasFee'], resolve)
|
|
230
230
|
})
|
|
231
|
+
|
|
232
|
+
// 报表展示组件(收费统计表)
|
|
233
|
+
Vue.component('manage-gas-fee-shimen', (resolve) => {
|
|
234
|
+
require(['./components/SellReport/ManageGasFeeShiMen'], resolve)
|
|
235
|
+
})
|
|
236
|
+
// 报表展示组件(收费汇总报表)
|
|
237
|
+
Vue.component('manage-bus-summary-shimen', (resolve) => {
|
|
238
|
+
require(['./components/SellReport/ManageBusSummaryShiMen'], resolve)
|
|
239
|
+
})
|
|
231
240
|
// 北方实业用气汇总报表
|
|
232
241
|
Vue.component('manage-use-gas-beifangshiye', (resolve) => {
|
|
233
242
|
require(['./components/SellReport/ManageUseGasQueryBeiFangShiYe'], resolve)
|