manage-client 4.1.54 → 4.1.56
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 +1 -1
- package/package.json +1 -1
- package/src/components/SellReport/ManageOtherChargeBeiFangShiYe.vue +194 -8
- package/src/components/SellReport/ruihua/DayFormReport.vue +175 -0
- package/src/components/SellReport/ruihua/DepmentPaymentReport.vue +175 -0
- package/src/components/SellReport/xinkang/AreaMeterReport.vue +175 -0
- package/src/filiale/beifangshiye/GasPriceGroup.vue +331 -146
- package/src/filiale/jinbin/exportConfig.js +1110 -0
- package/src/filiale/jinbin/sale/businessquery/ChargeQuery.vue +1372 -0
- package/src/filiale/jinbin/sale.js +7 -0
- package/src/reportManage.js +12 -0
- package/src/stores/MagGetSaleParams.js +55 -40
package/build/dev-server.js
CHANGED
|
@@ -21,7 +21,7 @@ var qtx = 'http://123.57.3.66:31467/'
|
|
|
21
21
|
// var fuwu = 'http://203.57.101.233:9001'
|
|
22
22
|
var bendi = 'http://123.57.3.66:31467/'
|
|
23
23
|
// var bendi = 'http://119.187.112.234:8400/'
|
|
24
|
-
var wode = 'http://
|
|
24
|
+
var wode = 'http://192.168.50.67:31567/'
|
|
25
25
|
// 192.168.
|
|
26
26
|
// var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
|
|
27
27
|
// var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
|
package/package.json
CHANGED
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
<!--</div>-->
|
|
43
43
|
<div style = "float:right;">
|
|
44
44
|
<button class="button_search" @click="$parent.$parent.searchData()">查询</button>
|
|
45
|
+
<button class="button_search" @click="$parent.$parent.pushAudit()">推送审核</button>
|
|
45
46
|
<report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
|
|
46
47
|
<report-excel id='gasprice'></report-excel>
|
|
47
48
|
</div>
|
|
@@ -112,6 +113,80 @@
|
|
|
112
113
|
<button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
|
|
113
114
|
</footer>
|
|
114
115
|
</modal>
|
|
116
|
+
<modal :show.sync="pushAuditShow" v-ref:pushAuditShowModal large backdrop="false" width="40%" >
|
|
117
|
+
<header slot="modal-header" class="modal-header" style="text-align: center">
|
|
118
|
+
<h4 class="modal-title">推送审核</h4>
|
|
119
|
+
</header>
|
|
120
|
+
<article slot="modal-body" class="modal-body">
|
|
121
|
+
<validator name='v'>
|
|
122
|
+
<form class="form-horizontal select-overspread">
|
|
123
|
+
<div class="form-group" :class="[$v.f_audit_person.required ? 'has-error' : '']">
|
|
124
|
+
<label class="col-sm-4 font_normal_body">下一步审核人:</label>
|
|
125
|
+
<input type="text" v-show="false" v-model="$refs.f_audit_person.selectedItems"
|
|
126
|
+
v-validate:f_audit_person='{required: true }'>
|
|
127
|
+
<div class="col-sm-8">
|
|
128
|
+
<v-select v-model="pushAuditData.f_audit_person"
|
|
129
|
+
placeholder='请选择'
|
|
130
|
+
:value.sync="pushAuditData.f_audit_person"
|
|
131
|
+
:options='auditor'
|
|
132
|
+
:value-single="true"
|
|
133
|
+
close-on-select
|
|
134
|
+
clear-button
|
|
135
|
+
v-ref:f_audit_person>
|
|
136
|
+
</v-select>
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
</div>
|
|
140
|
+
<div class="form-group" >
|
|
141
|
+
<label class="col-sm-4 font_normal_body">报表审核人:</label>
|
|
142
|
+
<div class="col-sm-8">
|
|
143
|
+
<input class="input_search" style="width:60%" type="text"
|
|
144
|
+
v-model="pushAuditData.f_name" placeholder="报表审核人">
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
<div class="form-group" >
|
|
148
|
+
<label class="col-sm-4 font_normal_body">报表审核结果:</label>
|
|
149
|
+
<div class="col-sm-8">
|
|
150
|
+
<input class="input_search" style="width:60%" type="text"
|
|
151
|
+
v-model="pushAuditData.f_jieguo" placeholder="报表审核结果">
|
|
152
|
+
</div>
|
|
153
|
+
</div>
|
|
154
|
+
<div class="form-group" >
|
|
155
|
+
<label class="col-sm-4 font_normal_body">报表审核时间:</label>
|
|
156
|
+
<div class="col-sm-8">
|
|
157
|
+
<datepicker id="startDate" placeholder="报表审核时间" style="width: 60%"
|
|
158
|
+
v-model="pushAuditData.f_date"
|
|
159
|
+
:value.sync="pushAuditData.f_date"
|
|
160
|
+
:disabled-days-of-Week="[]"
|
|
161
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
162
|
+
:show-reset-button="reset">
|
|
163
|
+
</datepicker>
|
|
164
|
+
</div>
|
|
165
|
+
</div>
|
|
166
|
+
</form>
|
|
167
|
+
</validator>
|
|
168
|
+
</article>
|
|
169
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
170
|
+
<button class="button_search" style="width: max-content" @click="uploadFiles()">上传/查看附件</button>
|
|
171
|
+
<button class="button_search" style="width: max-content" @click="uploadPictures()">拍照</button>
|
|
172
|
+
<button class="button_search" @click="auditConfirm()" :disabled="!$v.valid">提交审核</button>
|
|
173
|
+
<button class="button_clear" @click="cancel()">取消</button>
|
|
174
|
+
</footer>
|
|
175
|
+
</modal>
|
|
176
|
+
<modal :show.sync="showFiles" styles="margin-top:50px" v-ref:showFiles backdrop="false" width="80%" >
|
|
177
|
+
<header slot="modal-header" class="modal-header">
|
|
178
|
+
<button type="button" class="close" @click="showFilesClose"><span class="glyphicon glyphicon-remove"></span></button>
|
|
179
|
+
</header>
|
|
180
|
+
<article slot="modal-body">
|
|
181
|
+
<upload-idcard :blodid="randomId" isremark="true" style="width:auto"
|
|
182
|
+
fusetype="数据推送审核" v-ref:upload>
|
|
183
|
+
</upload-idcard>
|
|
184
|
+
</article>
|
|
185
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
186
|
+
</footer>
|
|
187
|
+
</modal>
|
|
188
|
+
<high-meter :show.sync="highMeterShow" v-if="highMeterShow" @photo-finish="newPhoto">
|
|
189
|
+
</high-meter>
|
|
115
190
|
</div>
|
|
116
191
|
</template>
|
|
117
192
|
|
|
@@ -128,8 +203,11 @@ let saveFile = function * (self) {
|
|
|
128
203
|
return
|
|
129
204
|
}
|
|
130
205
|
let saveBack = yield self.$resetpost('api/af-revenue/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
|
|
131
|
-
f_files_name: self.filename,
|
|
132
|
-
|
|
206
|
+
f_files_name: self.filename,
|
|
207
|
+
f_files_type: self.data.f_report_type,
|
|
208
|
+
f_component_name: 'manage-bus-summary',
|
|
209
|
+
f_operator: this.$login.f.name,
|
|
210
|
+
f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
|
|
133
211
|
f_outlets: this.$login.f.depname})
|
|
134
212
|
if (saveBack.data.status === 'succeed') {
|
|
135
213
|
self.show = false
|
|
@@ -147,10 +225,17 @@ export default {
|
|
|
147
225
|
depresid: [],
|
|
148
226
|
userresid: [],
|
|
149
227
|
initres: {
|
|
150
|
-
org:[this.$login.f.orgid],
|
|
151
|
-
dep:[],
|
|
152
|
-
user:[]
|
|
228
|
+
org: [this.$login.f.orgid],
|
|
229
|
+
dep: [],
|
|
230
|
+
user: []
|
|
153
231
|
},
|
|
232
|
+
pushAuditData: {},
|
|
233
|
+
auditor: [],
|
|
234
|
+
resid: [],
|
|
235
|
+
showFiles: false,
|
|
236
|
+
highMeterShow: false,
|
|
237
|
+
pushAuditShow: false,
|
|
238
|
+
randomId: '',
|
|
154
239
|
f_orgid: this.$login.f.orgid,
|
|
155
240
|
f_depid: this.$login.f.depids,
|
|
156
241
|
f_operatorid: this.$login.f.id,
|
|
@@ -160,19 +245,117 @@ export default {
|
|
|
160
245
|
depname: '',
|
|
161
246
|
operatorname: '',
|
|
162
247
|
orgCondtionStr: '1=1',
|
|
163
|
-
model: new DataModel('api/af-revenue/report/otherChargeBeiFangShiYe', {
|
|
164
|
-
|
|
248
|
+
model: new DataModel('api/af-revenue/report/otherChargeBeiFangShiYe', {
|
|
249
|
+
startDate: 'this.model.startDate',
|
|
250
|
+
endDate: 'this.model.endDate',
|
|
251
|
+
f_orgid: 'this.model.f_orgid'
|
|
252
|
+
}),
|
|
165
253
|
reportStr: null,
|
|
166
254
|
show: false,
|
|
167
255
|
spans: ''
|
|
168
256
|
}
|
|
169
257
|
},
|
|
170
258
|
ready () {
|
|
259
|
+
this.getAuditor()
|
|
260
|
+
this.randomId = this.getRandomId()
|
|
171
261
|
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
172
262
|
this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
173
263
|
// this.$refs.paged.$refs.criteria.search()
|
|
174
264
|
},
|
|
175
265
|
methods: {
|
|
266
|
+
newPhoto (ImgBase64) {
|
|
267
|
+
this.$refs.upload.newPhoto(ImgBase64)
|
|
268
|
+
},
|
|
269
|
+
uploadFiles () {
|
|
270
|
+
this.showFiles = !this.showFiles
|
|
271
|
+
},
|
|
272
|
+
uploadPictures () {
|
|
273
|
+
this.highMeterShow = !this.highMeterShow
|
|
274
|
+
},
|
|
275
|
+
showFilesClose () {
|
|
276
|
+
this.showFiles = false
|
|
277
|
+
},
|
|
278
|
+
async getAuditor () {
|
|
279
|
+
await this.$MagGetSaleParam.initinputtor()
|
|
280
|
+
this.auditor = this.$MagGetSaleParam.getAudit(this.$login.f.orgid)
|
|
281
|
+
},
|
|
282
|
+
cancel () {
|
|
283
|
+
this.pushAuditShow = false
|
|
284
|
+
},
|
|
285
|
+
auditConfirm () {
|
|
286
|
+
if (this.$refs.upload.fileInfoData.length === 0) {
|
|
287
|
+
this.$showMessage('请至少上传一张附件')
|
|
288
|
+
return
|
|
289
|
+
}
|
|
290
|
+
let fileParam = []
|
|
291
|
+
for (let row of this.$refs.upload.fileInfoData) {
|
|
292
|
+
fileParam.push({id: row.id})
|
|
293
|
+
}
|
|
294
|
+
let param = {
|
|
295
|
+
// 业务参数
|
|
296
|
+
requestParam: {
|
|
297
|
+
f_operator: this.$login.f.name,
|
|
298
|
+
f_operatorid: this.$login.f.id,
|
|
299
|
+
f_orgid: this.$login.f.orgid,
|
|
300
|
+
f_orgname: this.$login.f.orgs,
|
|
301
|
+
f_depid: this.$login.f.depids,
|
|
302
|
+
f_depname: this.$login.f.deps,
|
|
303
|
+
type: '其他收费汇总报表推送',
|
|
304
|
+
...this.pushAuditData
|
|
305
|
+
},
|
|
306
|
+
form: {
|
|
307
|
+
'业务描述': `${this.$login.f.name}对${this.pushAuditData.startDate}-${this.pushAuditData.endDate}其他收费汇总报表数据发起推送审核操作`,
|
|
308
|
+
'业务类型': `其他收费汇总报表推送审核`,
|
|
309
|
+
'报表审核人': this.pushAuditData.f_name,
|
|
310
|
+
'报表审核结果': this.pushAuditData.f_jieguo,
|
|
311
|
+
'报表审核时间': this.pushAuditData.f_date
|
|
312
|
+
},
|
|
313
|
+
// 审核人
|
|
314
|
+
f_audit_person: this.pushAuditData.f_audit_person,
|
|
315
|
+
// 描述
|
|
316
|
+
f_describe: `${this.$login.f.name}发起其他收费汇总报表推送审核操作`,
|
|
317
|
+
// 附件
|
|
318
|
+
fileParam: fileParam,
|
|
319
|
+
// 登录人信息
|
|
320
|
+
userBaseInfo: {
|
|
321
|
+
f_operator: this.$login.f.name,
|
|
322
|
+
f_operatorid: this.$login.f.id,
|
|
323
|
+
f_orgid: this.$login.f.orgid,
|
|
324
|
+
f_orgname: this.$login.f.orgs,
|
|
325
|
+
f_depid: this.$login.f.depids,
|
|
326
|
+
f_depname: this.$login.f.deps
|
|
327
|
+
},
|
|
328
|
+
// 业务类型
|
|
329
|
+
type: '其他收费汇总报表推送',
|
|
330
|
+
f_type: '其他收费汇总报表推送审核',
|
|
331
|
+
f_otherparam: [],
|
|
332
|
+
logicName: 'gasSalesReportReview'
|
|
333
|
+
}
|
|
334
|
+
console.log(param, this.pushAuditData)
|
|
335
|
+
this.$resetpost('api/af-revenue/logic/commonAuditLogic', param, {
|
|
336
|
+
warnMsg: `确定要对当前查询的报表数据进行推送审核吗?`,
|
|
337
|
+
resolveMsg: `提交审核完成!!`,
|
|
338
|
+
rejectMsg: `提交审核失败!!请重试!!`
|
|
339
|
+
}).then((res) => {
|
|
340
|
+
this.pushAuditShow = false
|
|
341
|
+
this.pushAuditData.f_audit_person = ''
|
|
342
|
+
this.pushAuditData.f_audit_person = ''
|
|
343
|
+
this.pushAuditData.f_name = ''
|
|
344
|
+
this.pushAuditData.f_jieguo = ''
|
|
345
|
+
this.pushAuditData.f_date = ''
|
|
346
|
+
this.randomId = this.getRandomId()
|
|
347
|
+
})
|
|
348
|
+
},
|
|
349
|
+
pushAudit () {
|
|
350
|
+
this.pushAuditShow = true
|
|
351
|
+
},
|
|
352
|
+
getRandomId () {
|
|
353
|
+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
354
|
+
let res = Math.random() * 16 | 0
|
|
355
|
+
let v = c == 'x' ? res : (res & 0x3 | 0x8)
|
|
356
|
+
return v.toString(16)
|
|
357
|
+
})
|
|
358
|
+
},
|
|
176
359
|
searchData () {
|
|
177
360
|
this.$refs.paged.$refs.criteria.search()
|
|
178
361
|
},
|
|
@@ -182,6 +365,9 @@ export default {
|
|
|
182
365
|
args.condition = `${args.condition} ` + orgstr
|
|
183
366
|
this.$refs.paged.$refs.criteria.model.f_orgid = orgstr
|
|
184
367
|
this.$refs.paged.search(args)
|
|
368
|
+
this.pushAuditData.startDate = this.model.params.startDate
|
|
369
|
+
this.pushAuditData.endDate = this.model.params.endDate
|
|
370
|
+
this.pushAuditData.condition = args.condition.replace(/'/g, "''")
|
|
185
371
|
},
|
|
186
372
|
getRes (condition, obj) {
|
|
187
373
|
this.orgCondtionStr = condition
|
|
@@ -235,7 +421,7 @@ export default {
|
|
|
235
421
|
var num = 0
|
|
236
422
|
for (let td of tds) {
|
|
237
423
|
let span = td.getAttribute('colspan')
|
|
238
|
-
num = num + ((span
|
|
424
|
+
num = num + ((span || 1) - 0)
|
|
239
425
|
}
|
|
240
426
|
this.spans = num
|
|
241
427
|
}
|
|
@@ -0,0 +1,175 @@
|
|
|
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'"
|
|
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'"
|
|
24
|
+
:show-reset-button="reset">
|
|
25
|
+
</datepicker>
|
|
26
|
+
</div>
|
|
27
|
+
<res-select-group :show-component="$parent.$parent.resshow"
|
|
28
|
+
:selectin="true" :initres="$parent.$parent.initres"
|
|
29
|
+
:cascade =true @re-res="$parent.$parent.getRes"
|
|
30
|
+
v-ref:sel>
|
|
31
|
+
</res-select-group>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="span" style = "float:right;">
|
|
34
|
+
<button class="button_search" @click="$parent.$parent.searchData()">查询</button>
|
|
35
|
+
<report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
|
|
36
|
+
<report-excel id='gasprice'></report-excel>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</criteria>
|
|
40
|
+
<div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
|
|
41
|
+
<table class='tableprint' style="margin: 0px auto">
|
|
42
|
+
<thead>
|
|
43
|
+
<tr>
|
|
44
|
+
<th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
|
|
45
|
+
<h3 style="text-align: center">日收费汇总报表</h3>
|
|
46
|
+
</th>
|
|
47
|
+
</tr>
|
|
48
|
+
<tr>
|
|
49
|
+
<th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
|
|
50
|
+
开始时间:{{model.model.startDate}}
|
|
51
|
+
结束时间:{{ model.model.endDate }} <br/>
|
|
52
|
+
<!--收费员:{{// $parent.operatorname}}-->
|
|
53
|
+
</th>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr >
|
|
56
|
+
<th v-if="false" :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
|
|
57
|
+
<div>
|
|
58
|
+
<span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
|
|
59
|
+
<span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
|
|
60
|
+
<span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.operatorname">人员:{{$parent.operatorname}}</span>
|
|
61
|
+
</div>
|
|
62
|
+
</th>
|
|
63
|
+
</tr>
|
|
64
|
+
</thead>
|
|
65
|
+
<tr>
|
|
66
|
+
<td :colspan='$parent.spans' class="noborder">
|
|
67
|
+
{{{ model.data.substring(26,model.data.length-8) }}}
|
|
68
|
+
</td>
|
|
69
|
+
</tr>
|
|
70
|
+
<tfoot>
|
|
71
|
+
<!-- <tr style="text-align: left">-->
|
|
72
|
+
<!-- <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>-->
|
|
73
|
+
<!-- <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>-->
|
|
74
|
+
<!-- <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>-->
|
|
75
|
+
<!-- </tr>-->
|
|
76
|
+
</tfoot>
|
|
77
|
+
</table>
|
|
78
|
+
{{{ $parent.reportStr}}}
|
|
79
|
+
</div>
|
|
80
|
+
</criteria-paged>
|
|
81
|
+
</div>
|
|
82
|
+
</template>
|
|
83
|
+
|
|
84
|
+
<script>
|
|
85
|
+
import { DataModel } from 'vue-client'
|
|
86
|
+
import co from 'co'
|
|
87
|
+
export default {
|
|
88
|
+
title: '日收费汇总报表',
|
|
89
|
+
props: ['data'],
|
|
90
|
+
data () {
|
|
91
|
+
return {
|
|
92
|
+
printTime: this.$login.toStandardTimeString(),
|
|
93
|
+
depresid: [],
|
|
94
|
+
userresid: [],
|
|
95
|
+
f_orgid: this.$login.f.orgid,
|
|
96
|
+
f_depid: this.$login.f.depids,
|
|
97
|
+
// f_operatorid: this.$login.f.id,
|
|
98
|
+
operatorid: [],
|
|
99
|
+
depid: [],
|
|
100
|
+
orgname: '',
|
|
101
|
+
depname: '',
|
|
102
|
+
criteriaShow: false,
|
|
103
|
+
operatorname: '',
|
|
104
|
+
orgCondtionStr: '1=1',
|
|
105
|
+
f_user_type: '',
|
|
106
|
+
f_state: ['有效'],
|
|
107
|
+
model: new DataModel('api/af-revenue/report/rh_df_report', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
|
|
108
|
+
f_orgid: 'this.model.f_orgid'}),
|
|
109
|
+
reportStr: null,
|
|
110
|
+
resshow: ['company', 'department', 'operator'],
|
|
111
|
+
spans: 0,
|
|
112
|
+
initres: {
|
|
113
|
+
org: [this.$login.f.orgid],
|
|
114
|
+
dep: [],
|
|
115
|
+
user: []
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
ready () {
|
|
120
|
+
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString()
|
|
121
|
+
this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString()
|
|
122
|
+
},
|
|
123
|
+
methods: {
|
|
124
|
+
searchData () {
|
|
125
|
+
this.$refs.paged.$refs.criteria.search()
|
|
126
|
+
},
|
|
127
|
+
selfSearch (args) {
|
|
128
|
+
this.printTime = this.$login.toStandardTimeString()
|
|
129
|
+
let orgcondition = '1=1'
|
|
130
|
+
let orgstr = this.orgCondtionStr
|
|
131
|
+
orgcondition = orgcondition + orgstr
|
|
132
|
+
this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
|
|
133
|
+
this.$refs.paged.search(args)
|
|
134
|
+
},
|
|
135
|
+
|
|
136
|
+
hidden () {
|
|
137
|
+
this.criteriaShow = !this.criteriaShow
|
|
138
|
+
},
|
|
139
|
+
getRes (condition, obj) {
|
|
140
|
+
this.orgCondtionStr = condition
|
|
141
|
+
this.orgname = obj.orgnames[0]
|
|
142
|
+
this.depname = obj.depnames[0]
|
|
143
|
+
this.operatorname = obj.operatornames[0]
|
|
144
|
+
},
|
|
145
|
+
getdep (obj, val) {
|
|
146
|
+
this.depname = val[0]
|
|
147
|
+
this.userresid = obj
|
|
148
|
+
this.f_depid = obj
|
|
149
|
+
},
|
|
150
|
+
getuser ( obj, val) {
|
|
151
|
+
this.operatorname = val[0]
|
|
152
|
+
this.f_operatorid = obj
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
watch: {
|
|
156
|
+
'model.data' (val) {
|
|
157
|
+
let len=0
|
|
158
|
+
let a=val.split('</tr>')
|
|
159
|
+
for(let i=0;i<a.length;i++){
|
|
160
|
+
if(a[i].split('</td>').length-1>len){
|
|
161
|
+
len=a[i].split('</td>').length-1
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
this.spans = len
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
computed: {
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
</script>
|
|
171
|
+
<style scoped>
|
|
172
|
+
.noborder{
|
|
173
|
+
border: none;
|
|
174
|
+
}
|
|
175
|
+
</style>
|
|
@@ -0,0 +1,175 @@
|
|
|
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'"
|
|
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'"
|
|
24
|
+
:show-reset-button="reset">
|
|
25
|
+
</datepicker>
|
|
26
|
+
</div>
|
|
27
|
+
<res-select-group :show-component="$parent.$parent.resshow"
|
|
28
|
+
:selectin="true" :initres="$parent.$parent.initres"
|
|
29
|
+
:cascade =true @re-res="$parent.$parent.getRes"
|
|
30
|
+
v-ref:sel>
|
|
31
|
+
</res-select-group>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="span" style = "float:right;">
|
|
34
|
+
<button class="button_search" @click="$parent.$parent.searchData()">查询</button>
|
|
35
|
+
<report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
|
|
36
|
+
<report-excel id='gasprice'></report-excel>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</criteria>
|
|
40
|
+
<div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
|
|
41
|
+
<table class='tableprint' style="margin: 0px auto">
|
|
42
|
+
<thead>
|
|
43
|
+
<tr>
|
|
44
|
+
<th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
|
|
45
|
+
<h3 style="text-align: center">收费结账报表</h3>
|
|
46
|
+
</th>
|
|
47
|
+
</tr>
|
|
48
|
+
<tr>
|
|
49
|
+
<th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
|
|
50
|
+
开始时间:{{model.model.startDate}}
|
|
51
|
+
结束时间:{{ model.model.endDate }} <br/>
|
|
52
|
+
<!--收费员:{{// $parent.operatorname}}-->
|
|
53
|
+
</th>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr >
|
|
56
|
+
<th v-if="false" :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
|
|
57
|
+
<div>
|
|
58
|
+
<span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
|
|
59
|
+
<span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
|
|
60
|
+
<span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.operatorname">人员:{{$parent.operatorname}}</span>
|
|
61
|
+
</div>
|
|
62
|
+
</th>
|
|
63
|
+
</tr>
|
|
64
|
+
</thead>
|
|
65
|
+
<tr>
|
|
66
|
+
<td :colspan='$parent.spans' class="noborder">
|
|
67
|
+
{{{ model.data.substring(26,model.data.length-8) }}}
|
|
68
|
+
</td>
|
|
69
|
+
</tr>
|
|
70
|
+
<tfoot>
|
|
71
|
+
<!-- <tr style="text-align: left">-->
|
|
72
|
+
<!-- <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>-->
|
|
73
|
+
<!-- <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>-->
|
|
74
|
+
<!-- <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>-->
|
|
75
|
+
<!-- </tr>-->
|
|
76
|
+
</tfoot>
|
|
77
|
+
</table>
|
|
78
|
+
{{{ $parent.reportStr}}}
|
|
79
|
+
</div>
|
|
80
|
+
</criteria-paged>
|
|
81
|
+
</div>
|
|
82
|
+
</template>
|
|
83
|
+
|
|
84
|
+
<script>
|
|
85
|
+
import { DataModel } from 'vue-client'
|
|
86
|
+
import co from 'co'
|
|
87
|
+
export default {
|
|
88
|
+
title: '收费结账报表',
|
|
89
|
+
props: ['data'],
|
|
90
|
+
data () {
|
|
91
|
+
return {
|
|
92
|
+
printTime: this.$login.toStandardTimeString(),
|
|
93
|
+
depresid: [],
|
|
94
|
+
userresid: [],
|
|
95
|
+
f_orgid: this.$login.f.orgid,
|
|
96
|
+
f_depid: this.$login.f.depids,
|
|
97
|
+
// f_operatorid: this.$login.f.id,
|
|
98
|
+
operatorid: [],
|
|
99
|
+
depid: [],
|
|
100
|
+
orgname: '',
|
|
101
|
+
depname: '',
|
|
102
|
+
criteriaShow: false,
|
|
103
|
+
operatorname: '',
|
|
104
|
+
orgCondtionStr: '1=1',
|
|
105
|
+
f_user_type: '',
|
|
106
|
+
f_state: ['有效'],
|
|
107
|
+
model: new DataModel('api/af-revenue/report/dp_pay_report', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
|
|
108
|
+
f_orgid: 'this.model.f_orgid'}),
|
|
109
|
+
reportStr: null,
|
|
110
|
+
resshow: ['company', 'department', 'operator'],
|
|
111
|
+
spans: 0,
|
|
112
|
+
initres: {
|
|
113
|
+
org: [this.$login.f.orgid],
|
|
114
|
+
dep: [],
|
|
115
|
+
user: []
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
ready () {
|
|
120
|
+
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString()
|
|
121
|
+
this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString()
|
|
122
|
+
},
|
|
123
|
+
methods: {
|
|
124
|
+
searchData () {
|
|
125
|
+
this.$refs.paged.$refs.criteria.search()
|
|
126
|
+
},
|
|
127
|
+
selfSearch (args) {
|
|
128
|
+
this.printTime = this.$login.toStandardTimeString()
|
|
129
|
+
let orgcondition = '1=1'
|
|
130
|
+
let orgstr = this.orgCondtionStr
|
|
131
|
+
orgcondition = orgcondition + orgstr
|
|
132
|
+
this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
|
|
133
|
+
this.$refs.paged.search(args)
|
|
134
|
+
},
|
|
135
|
+
|
|
136
|
+
hidden () {
|
|
137
|
+
this.criteriaShow = !this.criteriaShow
|
|
138
|
+
},
|
|
139
|
+
getRes (condition, obj) {
|
|
140
|
+
this.orgCondtionStr = condition
|
|
141
|
+
this.orgname = obj.orgnames[0]
|
|
142
|
+
this.depname = obj.depnames[0]
|
|
143
|
+
this.operatorname = obj.operatornames[0]
|
|
144
|
+
},
|
|
145
|
+
getdep (obj, val) {
|
|
146
|
+
this.depname = val[0]
|
|
147
|
+
this.userresid = obj
|
|
148
|
+
this.f_depid = obj
|
|
149
|
+
},
|
|
150
|
+
getuser ( obj, val) {
|
|
151
|
+
this.operatorname = val[0]
|
|
152
|
+
this.f_operatorid = obj
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
watch: {
|
|
156
|
+
'model.data' (val) {
|
|
157
|
+
let len=0
|
|
158
|
+
let a=val.split('</tr>')
|
|
159
|
+
for(let i=0;i<a.length;i++){
|
|
160
|
+
if(a[i].split('</td>').length-1>len){
|
|
161
|
+
len=a[i].split('</td>').length-1
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
this.spans = len
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
computed: {
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
</script>
|
|
171
|
+
<style scoped>
|
|
172
|
+
.noborder{
|
|
173
|
+
border: none;
|
|
174
|
+
}
|
|
175
|
+
</style>
|