manage-client 3.3.234 → 3.3.236
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 +190 -190
- package/gradle/wrapper/gradle-wrapper.properties +5 -5
- package/gradlew +234 -234
- package/gradlew.bat +89 -89
- package/hs_err_pid13052.log +206 -206
- package/package.json +111 -111
- package/src/components/SellReport/BusinessClassify.vue +382 -292
- package/src/components/SellReport/ChManageBusSummary.vue +273 -273
- package/src/components/SellReport/GasMoneyPublicConReport.vue +231 -231
- package/src/components/SellReport/ManageGasGroupSummary.vue +208 -208
- package/src/components/SellReport/ManageSellType.vue +267 -267
- package/src/components/SellReport/ReportItems.vue +312 -312
- package/src/components/SellReport/yangchun/YcBusSummaryes.vue +229 -229
- package/src/components/handReport/WebGastypeMonthReport.vue +190 -190
- package/src/components/sale/businessquery/AreaChargeQuery.vue +384 -384
- package/src/components/sale/businessquery/AreaGeneralQuery.vue +637 -637
- package/src/components/sale/businessquery/ArrearsQuery.vue +983 -983
- package/src/components/sale/businessquery/BalanceTable.vue +482 -482
- package/src/components/sale/businessquery/BusinessManage.vue +212 -212
- package/src/components/sale/businessquery/CancellationQuery.vue +428 -428
- package/src/components/sale/businessquery/CardHandplanQuery.vue +546 -546
- package/src/components/sale/businessquery/ChangeMeterQuery.vue +699 -699
- package/src/components/sale/businessquery/ChargeQuery.vue +1435 -1435
- package/src/components/sale/businessquery/CollectManage.vue +161 -161
- package/src/components/sale/businessquery/CommunityPaymen.vue +307 -307
- package/src/components/sale/businessquery/DisableQuery.vue +523 -523
- package/src/components/sale/businessquery/EnableQuery.vue +462 -462
- package/src/components/sale/businessquery/FMYGasQuery.vue +872 -872
- package/src/components/sale/businessquery/FillCardQuery.vue +573 -573
- package/src/components/sale/businessquery/FillGasQuery.vue +593 -593
- package/src/components/sale/businessquery/GroupChargeQuery.vue +492 -492
- package/src/components/sale/businessquery/HandBookQuery.vue +692 -692
- package/src/components/sale/businessquery/HandBookTwoQuery.vue +704 -704
- package/src/components/sale/businessquery/HandGasPropertiesQuery.vue +671 -671
- package/src/components/sale/businessquery/HandPeopleQuery.vue +719 -719
- package/src/components/sale/businessquery/HandRateQuery.vue +524 -524
- package/src/components/sale/businessquery/Handgasquery.vue +477 -477
- package/src/components/sale/businessquery/HandplanQuery.vue +1376 -1376
- package/src/components/sale/businessquery/MonthGasQuery.vue +482 -482
- package/src/components/sale/businessquery/NoBusinessQuery.vue +778 -778
- package/src/components/sale/businessquery/PlotSummaryQuery.vue +499 -499
- package/src/components/sale/businessquery/ProceedsOper.vue +415 -415
- package/src/components/sale/businessquery/ResidentialCardQuery.vue +377 -377
- package/src/components/sale/businessquery/ResidentialQuery.vue +415 -415
- package/src/components/sale/businessquery/SellOrgnameQuery.vue +680 -680
- package/src/components/sale/businessquery/SellPeopleQuery.vue +752 -752
- package/src/components/sale/businessquery/SellingHand.vue +421 -421
- package/src/components/sale/businessquery/TransferQuery.vue +502 -502
- package/src/components/sale/businessquery/UnhandBusiness.vue +328 -328
- package/src/components/sale/businessquery/UserSellHeadDetail.vue +579 -579
- package/src/components/sale/businessquery/WebHandplanQuery.vue +987 -987
- package/src/components/sale/businessquery/WebMeterMonthUserGasQuery.vue +471 -471
- package/src/components/sale/businessquery/YingShouMingXi.vue +524 -524
- package/src/components/sale/businessquery/YonghuJieyu.vue +358 -358
- package/src/components/sale/businessquery/chargeRecordMaintenanceQuery.vue +353 -353
- package/src/components/sale/businessquery/usergas.vue +315 -315
- package/src/components/sale/config/exportConfig.js +2763 -2763
- package/src/components/sale/config/tableConfig.js +59 -59
- package/src/components/sale/filesquery/FireQuery.vue +539 -539
- package/src/components/sale/filesquery/RecordInfoQuery.vue +1448 -1448
- package/src/components/sale/filesquery/UserQuery.vue +1002 -1002
- package/src/components/webmeter/DrillData/GetNoMetereadData.vue +423 -423
- package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +739 -739
- package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +691 -691
- package/src/components/webmeter/WebmeterQuery.vue +77 -77
- package/src/components/webmeter/gasAnalysis/WebmeterSettlementAnalysis.vue +456 -456
- package/src/components/webmeter/gasStatistics/GasStatistics.vue +526 -526
- package/src/components/webmeter/gasStatistics/NewGasStatistics.vue +542 -542
- package/src/components/webmeter/instruction/NewQueryInstruct.vue +606 -606
- package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +557 -557
- package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +1 -1
- package/src/components/webmeter/newwebmeter/WebhandMonthGas.vue +819 -819
- package/src/components/webmeter/recharge/RechargeList.vue +371 -371
- package/src/components/webmeter/report/ReportList.vue +453 -453
- package/src/components/webmeter/reportdata/ReportDataQuery.vue +339 -339
- package/src/filiale/WEINAN/InspectListGas.vue +616 -616
- package/src/filiale/WEINAN/ManageCompanyGasSummary.vue +555 -555
- package/src/filiale/WEINAN/ManageSummaryReport.vue +712 -712
- package/src/filiale/WEINAN/RecordInfoQuery.vue +1328 -1328
- package/src/filiale/WEINAN/businessquery/WallHangingFurnaceUserQuery.vue +418 -418
- package/src/filiale/ancheng/businessquery/FMYGasQuery.vue +853 -853
- package/src/filiale/ancheng/exportConfig.js +1112 -1112
- package/src/filiale/bayan/ChargeQuery.vue +1436 -1436
- package/src/filiale/bayan/PrintTableManage.vue +242 -242
- package/src/filiale/bayan/config/DefaultPrint.js +6 -6
- package/src/filiale/bayan/config/exportConfig.js +2642 -2642
- package/src/filiale/bayan/config/tableConfig.js +59 -59
- package/src/filiale/bayan/sale.js +8 -8
- package/src/filiale/bayan/webmeter/GetNoMetereadData.vue +425 -425
- package/src/filiale/bayan/webmeter/LostContactAnalysisList.vue +719 -719
- package/src/filiale/bayan/webmeter/MeterExceptionList.vue +591 -591
- package/src/filiale/bayan/webmeter/NewGasStatistics.vue +665 -665
- package/src/filiale/bayan/webmeter/NewQueryInstruct.vue +650 -650
- package/src/filiale/bayan/webmeter/NewWebmeterSettlementAnalysis.vue +464 -464
- package/src/filiale/bayan/webmeter/RechargeList.vue +430 -430
- package/src/filiale/bayan/webmeter/ReportDataQuery.vue +343 -343
- package/src/filiale/bayan/webmeter/ReportList.vue +555 -555
- package/src/filiale/bayan/webmeter/UserLostContactAnalysis.vue +674 -674
- package/src/filiale/bayan/webmeterManage.js +26 -26
- package/src/filiale/dingcheng/DefaultPrint.js +6 -6
- package/src/filiale/dingcheng/businessquery/ChangeMeterQuery.vue +798 -798
- package/src/filiale/dingcheng/exportConfig.js +2765 -2765
- package/src/filiale/dingcheng/sale.js +9 -9
- package/src/filiale/fugou/RecordInfoQuery.vue +1451 -0
- package/src/filiale/fugou/config/DefaultPrint.js +6 -0
- package/src/filiale/fugou/config/exportConfig.js +2761 -0
- package/src/filiale/fugou/config/tableConfig.js +59 -0
- package/src/filiale/fugou/sale.js +6 -0
- package/src/filiale/hantou/ChangeMeterQuery.vue +699 -699
- package/src/filiale/hantou/config/DefaultPrint.js +6 -6
- package/src/filiale/hantou/config/exportConfig.js +2667 -2667
- package/src/filiale/hantou/config/tableConfig.js +54 -54
- package/src/filiale/hantou/sale.js +8 -8
- package/src/filiale/jingwei/RecordInfoQuery.vue +1210 -1210
- package/src/filiale/jingwei/config/exportConfig.js +1106 -1106
- package/src/filiale/jingyang/ChargeQuery.vue +1464 -1464
- package/src/filiale/jingyang/RechargeList.vue +346 -346
- package/src/filiale/jingyang/config/DefaultPrint.js +6 -6
- package/src/filiale/jingyang/config/exportConfig.js +2776 -2776
- package/src/filiale/jingyang/config/tableConfig.js +58 -58
- package/src/filiale/jingyang/sale.js +8 -8
- package/src/filiale/kelai/AreaChargeQuery.vue +398 -398
- package/src/filiale/kelai/ChargeQuery.vue +1348 -1348
- package/src/filiale/kelai/GasStatistics.vue +561 -561
- package/src/filiale/kelai/NewAccountQuery.vue +417 -417
- package/src/filiale/kelai/NewGasStatistics.vue +556 -556
- package/src/filiale/kelai/feimin_style_kl.vue +400 -400
- package/src/filiale/kelai/reportManage.js +13 -13
- package/src/filiale/kelai/sale.js +17 -17
- package/src/filiale/liaoyuan/HandplanQuery.vue +1289 -1289
- package/src/filiale/lixianV3/RecordInfoQuery.vue +1474 -1474
- package/src/filiale/macheng/ArrearsQuery.vue +831 -831
- package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
- package/src/filiale/macheng/config/exportConfig.js +79 -79
- package/src/filiale/meihekou/AreaGeneralQuery.vue +206 -206
- package/src/filiale/meihekou/CardHandplanQuery.vue +664 -664
- package/src/filiale/meihekou/ChargeQuery.vue +1274 -1274
- package/src/filiale/meihekou/CollectManage.vue +152 -152
- package/src/filiale/meihekou/HandplanQuery.vue +1248 -1248
- package/src/filiale/meihekou/OtherChargeQuery.vue +618 -618
- package/src/filiale/meihekou/UserSellHeadDetail.vue +516 -516
- package/src/filiale/meihekou/YingShouMingXi.vue +556 -556
- package/src/filiale/meihekou/config/exportConfig.js +829 -829
- package/src/filiale/meihekou/sale.js +39 -39
- package/src/filiale/ningjin/MeterExceptionList.vue +616 -616
- package/src/filiale/ningjin/UserLostContactAnalysis.vue +623 -623
- package/src/filiale/qianneng/RecordInfoQuery.vue +1369 -1369
- package/src/filiale/qianneng/WebmeterQuery.vue +70 -70
- package/src/filiale/qianneng/exportConfig.js +232 -232
- package/src/filiale/qingtongxia/ChargeQuery.vue +1209 -1209
- package/src/filiale/qingtongxia/config/exportConfig.js +712 -712
- package/src/filiale/rizhao/BusinessManage.vue +212 -212
- package/src/filiale/rizhao/sale.js +13 -13
- package/src/filiale/shangluo/HandplanQuery.vue +1376 -1376
- package/src/filiale/shangluo/sale.js +17 -17
- package/src/filiale/shangluo/webmeter/PriceInstructList.vue +303 -303
- package/src/filiale/shangluo/webmeter/UserInstructList.vue +304 -304
- package/src/filiale/shangluo/webmeter/WebmeterSettlementAnalysis.vue +432 -432
- package/src/filiale/shanxian/EchartsBox.vue +134 -134
- package/src/filiale/shaoguan/errorHandplanQuery.vue +386 -386
- package/src/filiale/shexian/ChangeMeterQuery.vue +797 -797
- package/src/filiale/taizhoukesi/ChangeMeterQuery.vue +683 -683
- package/src/filiale/taizhoukesi/NewGasStatistics.vue +539 -539
- package/src/filiale/taizhoukesi/config/exportConfig.js +2712 -2712
- package/src/filiale/taizhoukesi/sale.js +11 -11
- package/src/filiale/tongchuan/GasInspection.vue +716 -716
- package/src/filiale/tongchuan/InspectListGas.vue +700 -700
- package/src/filiale/tongchuan/MeterQuery.vue +1002 -1002
- package/src/filiale/tongchuan/ResSelectGroupNew.vue +188 -188
- package/src/filiale/tongchuan/config/exportConfig.js +858 -858
- package/src/filiale/wenxi/ChangeMeterQuery.vue +721 -721
- package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
- package/src/filiale/wenxi/config/exportConfig.js +995 -995
- package/src/filiale/xinjiangdexin/ChargeQuery.vue +1435 -1435
- package/src/filiale/xinjiangdexin/config/exportConfig.js +2770 -2770
- package/src/filiale/xinjiangdexin/sale.js +7 -7
- package/src/filiale/yangchun/ChangeMeterQuery.vue +722 -722
- package/src/filiale/yangchun/ManageBusSummaryNew.vue +239 -239
- package/src/filiale/yangchun/OtherChargeDetailQuery.vue +74 -74
- package/src/filiale/yangchun/OtherChargeQuery.vue +755 -755
- package/src/filiale/yangchun/RecordInfoQuery.vue +1494 -1494
- package/src/filiale/yangchun/UserQuery.vue +980 -980
- package/src/filiale/yangchun/config/DefaultPrint.js +6 -6
- package/src/filiale/yangchun/config/exportConfig.js +1229 -1229
- package/src/filiale/yangchun/config/tableConfig.js +58 -58
- package/src/filiale/yangchun/reportManage.js +6 -6
- package/src/filiale/yangchun/sale.js +20 -20
- package/src/filiale/yangchun/webmeterManage.js +5 -5
- package/src/filiale/yuncheng/ChangeMeterQuery.vue +743 -743
- package/src/filiale/yuncheng/DeviceQuery.vue +611 -611
- package/src/filiale/yuncheng/GasInspection.vue +610 -610
- package/src/filiale/yuncheng/LostContactAnalysisList.vue +700 -700
- package/src/filiale/yuncheng/MeterQuery.vue +1017 -1017
- package/src/filiale/yuncheng/config/exportConfig.js +2681 -2681
- package/src/filiale/yuncheng/sale.js +23 -23
- package/src/filiale/zhongyi/ChargeQuery.vue +1454 -1454
- package/src/filiale/zhongyi/GasStatistics.vue +537 -537
- package/src/filiale/zhongyi/NewGasStatistics.vue +558 -558
- package/src/filiale/zhongyi/exportConfig.js +2556 -2556
- package/src/filiale/zhongyi/sale.js +33 -33
- package/src/filiale/zhongyi/webmeterManage.js +15 -15
- package/src/main.js +68 -68
- package/src/plugins/LodopFuncs.js +159 -159
- package/src/reportManage.js +777 -777
- package/src/saleManage.js +689 -689
- package/src/webmeterManage.js +130 -130
|
@@ -1,273 +1,273 @@
|
|
|
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-4 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-4 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-4 form-group" >
|
|
30
|
-
<label class="font_normal_body" for="org">公  司:</label>
|
|
31
|
-
<right-tree id="org" @re-res="$parent.$parent.getRes" style="width: 60%"></right-tree>
|
|
32
|
-
</div>
|
|
33
|
-
<div class="col-sm-4 form-group">
|
|
34
|
-
<label class="font_normal_body" for="dep" >部  门:</label>
|
|
35
|
-
<res-select id="dep" restype='department' style="width: 60%"
|
|
36
|
-
is-mul="false"
|
|
37
|
-
@res-select="$parent.$parent.getdep"
|
|
38
|
-
:parentresid="$parent.$parent.depresid"
|
|
39
|
-
:initresid='$parent.$parent.depid' >
|
|
40
|
-
</res-select>
|
|
41
|
-
|
|
42
|
-
</div>
|
|
43
|
-
<div class="col-sm-4 form-group">
|
|
44
|
-
<label class="font_normal_body" for="oper">人  员:</label>
|
|
45
|
-
<res-select id="oper" restype='user' style="width: 60%"
|
|
46
|
-
is-mul="false"
|
|
47
|
-
@res-select="$parent.$parent.getuser"
|
|
48
|
-
:parentresid="$parent.$parent.userresid"
|
|
49
|
-
:initresid='$parent.$parent.operatorid'>
|
|
50
|
-
</res-select>
|
|
51
|
-
</div>
|
|
52
|
-
<div class="span" style = "float:right;">
|
|
53
|
-
<button class="button_search" @click="$parent.$parent.searchData()">查询</button>
|
|
54
|
-
<report-print id='gasprice' top='1.5cm' left='0' width='100%' height='100%' :preview="true"></report-print>
|
|
55
|
-
<report-excel id='gasprice'></report-excel>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
</criteria>
|
|
60
|
-
<!-- <report-info id="gasprice"-->
|
|
61
|
-
<!-- report-title="收费结账报表"-->
|
|
62
|
-
<!-- :infohead="{'开始时间':model.model.startDate,'结束时间':model.model.endDate,'打印时间':$parent.printTime}"-->
|
|
63
|
-
<!-- :orgname="$parent.orgname"-->
|
|
64
|
-
<!-- :depname="$parent.depname"-->
|
|
65
|
-
<!-- :operatorname="$parent.operatorname"-->
|
|
66
|
-
<!-- :model="model.data.substring(26,model.data.length-8)"-->
|
|
67
|
-
<!-- :reportStr="$parent.reportStr"-->
|
|
68
|
-
<!-- ></report-info>-->
|
|
69
|
-
<div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
|
|
70
|
-
<table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
|
|
71
|
-
<thead>
|
|
72
|
-
<tr>
|
|
73
|
-
<th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
|
|
74
|
-
<h3 style="text-align: center">收费结账报表</h3>
|
|
75
|
-
</th>
|
|
76
|
-
</tr>
|
|
77
|
-
<tr>
|
|
78
|
-
<th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
|
|
79
|
-
开始时间:{{model.model.startDate}}
|
|
80
|
-
结束时间:{{ model.model.endDate }}<br/>
|
|
81
|
-
打印时间:{{$parent.printTime}}
|
|
82
|
-
<!--收费员:{{// $parent.operatorname}}-->
|
|
83
|
-
</th>
|
|
84
|
-
</tr>
|
|
85
|
-
<tr>
|
|
86
|
-
<th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
|
|
87
|
-
<div>
|
|
88
|
-
<span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
|
|
89
|
-
<span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
|
|
90
|
-
<span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
|
|
91
|
-
</div>
|
|
92
|
-
</th>
|
|
93
|
-
</tr>
|
|
94
|
-
</thead>
|
|
95
|
-
<tr>
|
|
96
|
-
<td :colspan='$parent.spans' class="noborder">
|
|
97
|
-
{{{ model.data.substring(26,model.data.length-8) }}}
|
|
98
|
-
</td>
|
|
99
|
-
</tr>
|
|
100
|
-
<tfoot>
|
|
101
|
-
<tr style="text-align: left">
|
|
102
|
-
<th :colspan='$parent.spans/3'>财务审核:</th>
|
|
103
|
-
<th :colspan='$parent.spans/3'>收款审核:</th>
|
|
104
|
-
<th :colspan='$parent.spans/3'>收款员:</th>
|
|
105
|
-
</tr>
|
|
106
|
-
</tfoot>
|
|
107
|
-
</table>
|
|
108
|
-
{{{ $parent.reportStr}}}
|
|
109
|
-
</div>
|
|
110
|
-
</criteria-paged>
|
|
111
|
-
<modal :show.sync="show" v-ref:modal small backdrop="false">
|
|
112
|
-
<header slot="modal-header" class="modal-header">
|
|
113
|
-
<h4 class="modal-title">输入文件名称</h4>
|
|
114
|
-
</header>
|
|
115
|
-
<article slot="modal-body" class="modal-body">
|
|
116
|
-
<div class="form-group">
|
|
117
|
-
<input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
|
|
118
|
-
</div>
|
|
119
|
-
</article>
|
|
120
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
121
|
-
<button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
|
|
122
|
-
<button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
|
|
123
|
-
</footer>
|
|
124
|
-
</modal>
|
|
125
|
-
</div>
|
|
126
|
-
</template>
|
|
127
|
-
|
|
128
|
-
<script>
|
|
129
|
-
import { DataModel } from 'vue-client'
|
|
130
|
-
import co from 'co'
|
|
131
|
-
let saveFile = function * (self) {
|
|
132
|
-
// 线验证文件是否重名
|
|
133
|
-
let count = yield self.$resetpost('api/af-revenue/sql/manageSingleTable',
|
|
134
|
-
{data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
|
|
135
|
-
{resolveMsg: null, rejectMsg: null})
|
|
136
|
-
if (count.data.length > 0) {
|
|
137
|
-
self.$showAlert('无法保存,文件名重名', 'warning', 3000)
|
|
138
|
-
return
|
|
139
|
-
}
|
|
140
|
-
let saveBack = yield self.$resetpost('api/af-revenue/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
|
|
141
|
-
f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
|
|
142
|
-
f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
|
|
143
|
-
f_outlets: this.$login.f.depname})
|
|
144
|
-
if (saveBack.data.status === 'succeed') {
|
|
145
|
-
self.show = false
|
|
146
|
-
self.filename = ''
|
|
147
|
-
// 后台保存完成,通知刷新
|
|
148
|
-
self.$dispatch('save-success', self.filename)
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
export default {
|
|
152
|
-
title: '收费结账报表',
|
|
153
|
-
props: ['data'],
|
|
154
|
-
data () {
|
|
155
|
-
return {
|
|
156
|
-
printTime: this.$login.toStandardTimeString(),
|
|
157
|
-
depresid: [],
|
|
158
|
-
userresid: [],
|
|
159
|
-
f_orgid: this.$login.f.orgid,
|
|
160
|
-
f_depid: this.$login.f.depids,
|
|
161
|
-
f_operatorid: this.$login.f.id,
|
|
162
|
-
operatorid: [],
|
|
163
|
-
depid: [],
|
|
164
|
-
orgname: '',
|
|
165
|
-
depname: '',
|
|
166
|
-
operatorname: '',
|
|
167
|
-
orgCondtionStr: '1=1',
|
|
168
|
-
f_state:['有效'],
|
|
169
|
-
model: new DataModel('api/af-revenue/report/chgetmoneyall', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
|
|
170
|
-
f_orgid: 'this.model.f_orgid'}),
|
|
171
|
-
reportStr: null,
|
|
172
|
-
show: false,
|
|
173
|
-
spans:0,
|
|
174
|
-
initres: {
|
|
175
|
-
org: [this.$login.f.orgid],
|
|
176
|
-
dep: [],
|
|
177
|
-
user: []
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
ready () {
|
|
182
|
-
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
183
|
-
this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
184
|
-
// this.$refs.paged.$refs.criteria.search()
|
|
185
|
-
console.log(this.$login.f)
|
|
186
|
-
},
|
|
187
|
-
methods: {
|
|
188
|
-
searchData () {
|
|
189
|
-
this.$refs.paged.$refs.criteria.search()
|
|
190
|
-
},
|
|
191
|
-
selfSearch (args) {
|
|
192
|
-
this.printTime = this.$login.toStandardTimeString()
|
|
193
|
-
this.orgCondtionStr='1=1'
|
|
194
|
-
if (this.f_orgid[0]) {
|
|
195
|
-
this.orgCondtionStr += ' and f_orgid = ' + `'${this.f_orgid[0]}'`
|
|
196
|
-
}
|
|
197
|
-
if (this.f_depid[0]) {
|
|
198
|
-
this.orgCondtionStr += ` and f_depid = '${this.f_depid}'`
|
|
199
|
-
}
|
|
200
|
-
if(this.f_operatorid[0]) {
|
|
201
|
-
this.orgCondtionStr += ` and f_operatorid = '${this.f_operatorid}'`
|
|
202
|
-
}
|
|
203
|
-
this.$refs.paged.$refs.criteria.model.f_orgid = this.orgCondtionStr
|
|
204
|
-
this.$refs.paged.search(args)
|
|
205
|
-
},
|
|
206
|
-
// 根据文件路径获取储存的报表内容
|
|
207
|
-
getFileContent (path) {
|
|
208
|
-
this.$resetpost('api/af-revenue/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
209
|
-
this.reportStr = res.data.filecontent
|
|
210
|
-
this.model.state = '正确'
|
|
211
|
-
})
|
|
212
|
-
},
|
|
213
|
-
confirm () {
|
|
214
|
-
if (!this.filename || this.filename === '') {
|
|
215
|
-
this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
|
|
216
|
-
}
|
|
217
|
-
let saveGen = saveFile(this)
|
|
218
|
-
co(saveGen)
|
|
219
|
-
},
|
|
220
|
-
close () {
|
|
221
|
-
this.show = false
|
|
222
|
-
},
|
|
223
|
-
// 将报表保存成文件
|
|
224
|
-
confirmReport () {
|
|
225
|
-
this.show = true
|
|
226
|
-
this.filename = this.data.f_report_name + this.$login.toStandardDateString()
|
|
227
|
-
},
|
|
228
|
-
getRes (obj) {
|
|
229
|
-
this.orgname = obj.res[0]
|
|
230
|
-
this.depresid = obj.resids
|
|
231
|
-
this.userresid = obj.resids
|
|
232
|
-
this.f_orgid = obj.resids
|
|
233
|
-
},
|
|
234
|
-
getdep (obj, val) {
|
|
235
|
-
this.depname = val[0]
|
|
236
|
-
// this.userresid = obj
|
|
237
|
-
this.f_depid = obj
|
|
238
|
-
},
|
|
239
|
-
getuser ( obj, val) {
|
|
240
|
-
this.operatorname = val[0]
|
|
241
|
-
this.f_operatorid = obj
|
|
242
|
-
},
|
|
243
|
-
},
|
|
244
|
-
watch: {
|
|
245
|
-
'data' (val) {
|
|
246
|
-
if (val.f_files_path) {
|
|
247
|
-
this.getFileContent(val.f_files_path)
|
|
248
|
-
} else {
|
|
249
|
-
this.reportStr = null
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
'model.data' (val) {
|
|
253
|
-
let len=0
|
|
254
|
-
let a=val.split('</tr>')
|
|
255
|
-
for(let i=0;i<a.length;i++){
|
|
256
|
-
if(a[i].split('</td>').length-1>len){
|
|
257
|
-
len=a[i].split('</td>').length-1
|
|
258
|
-
}
|
|
259
|
-
continue
|
|
260
|
-
}
|
|
261
|
-
this.spans = len
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
computed: {
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
</script>
|
|
269
|
-
<style scoped>
|
|
270
|
-
.noborder{
|
|
271
|
-
border: none;
|
|
272
|
-
}
|
|
273
|
-
</style>
|
|
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-4 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-4 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-4 form-group" >
|
|
30
|
+
<label class="font_normal_body" for="org">公  司:</label>
|
|
31
|
+
<right-tree id="org" @re-res="$parent.$parent.getRes" style="width: 60%"></right-tree>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="col-sm-4 form-group">
|
|
34
|
+
<label class="font_normal_body" for="dep" >部  门:</label>
|
|
35
|
+
<res-select id="dep" restype='department' style="width: 60%"
|
|
36
|
+
is-mul="false"
|
|
37
|
+
@res-select="$parent.$parent.getdep"
|
|
38
|
+
:parentresid="$parent.$parent.depresid"
|
|
39
|
+
:initresid='$parent.$parent.depid' >
|
|
40
|
+
</res-select>
|
|
41
|
+
|
|
42
|
+
</div>
|
|
43
|
+
<div class="col-sm-4 form-group">
|
|
44
|
+
<label class="font_normal_body" for="oper">人  员:</label>
|
|
45
|
+
<res-select id="oper" restype='user' style="width: 60%"
|
|
46
|
+
is-mul="false"
|
|
47
|
+
@res-select="$parent.$parent.getuser"
|
|
48
|
+
:parentresid="$parent.$parent.userresid"
|
|
49
|
+
:initresid='$parent.$parent.operatorid'>
|
|
50
|
+
</res-select>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="span" style = "float:right;">
|
|
53
|
+
<button class="button_search" @click="$parent.$parent.searchData()">查询</button>
|
|
54
|
+
<report-print id='gasprice' top='1.5cm' left='0' width='100%' height='100%' :preview="true"></report-print>
|
|
55
|
+
<report-excel id='gasprice'></report-excel>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</criteria>
|
|
60
|
+
<!-- <report-info id="gasprice"-->
|
|
61
|
+
<!-- report-title="收费结账报表"-->
|
|
62
|
+
<!-- :infohead="{'开始时间':model.model.startDate,'结束时间':model.model.endDate,'打印时间':$parent.printTime}"-->
|
|
63
|
+
<!-- :orgname="$parent.orgname"-->
|
|
64
|
+
<!-- :depname="$parent.depname"-->
|
|
65
|
+
<!-- :operatorname="$parent.operatorname"-->
|
|
66
|
+
<!-- :model="model.data.substring(26,model.data.length-8)"-->
|
|
67
|
+
<!-- :reportStr="$parent.reportStr"-->
|
|
68
|
+
<!-- ></report-info>-->
|
|
69
|
+
<div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
|
|
70
|
+
<table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
|
|
71
|
+
<thead>
|
|
72
|
+
<tr>
|
|
73
|
+
<th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
|
|
74
|
+
<h3 style="text-align: center">收费结账报表</h3>
|
|
75
|
+
</th>
|
|
76
|
+
</tr>
|
|
77
|
+
<tr>
|
|
78
|
+
<th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
|
|
79
|
+
开始时间:{{model.model.startDate}}
|
|
80
|
+
结束时间:{{ model.model.endDate }}<br/>
|
|
81
|
+
打印时间:{{$parent.printTime}}
|
|
82
|
+
<!--收费员:{{// $parent.operatorname}}-->
|
|
83
|
+
</th>
|
|
84
|
+
</tr>
|
|
85
|
+
<tr>
|
|
86
|
+
<th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
|
|
87
|
+
<div>
|
|
88
|
+
<span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
|
|
89
|
+
<span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
|
|
90
|
+
<span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
|
|
91
|
+
</div>
|
|
92
|
+
</th>
|
|
93
|
+
</tr>
|
|
94
|
+
</thead>
|
|
95
|
+
<tr>
|
|
96
|
+
<td :colspan='$parent.spans' class="noborder">
|
|
97
|
+
{{{ model.data.substring(26,model.data.length-8) }}}
|
|
98
|
+
</td>
|
|
99
|
+
</tr>
|
|
100
|
+
<tfoot>
|
|
101
|
+
<tr style="text-align: left">
|
|
102
|
+
<th :colspan='$parent.spans/3'>财务审核:</th>
|
|
103
|
+
<th :colspan='$parent.spans/3'>收款审核:</th>
|
|
104
|
+
<th :colspan='$parent.spans/3'>收款员:</th>
|
|
105
|
+
</tr>
|
|
106
|
+
</tfoot>
|
|
107
|
+
</table>
|
|
108
|
+
{{{ $parent.reportStr}}}
|
|
109
|
+
</div>
|
|
110
|
+
</criteria-paged>
|
|
111
|
+
<modal :show.sync="show" v-ref:modal small backdrop="false">
|
|
112
|
+
<header slot="modal-header" class="modal-header">
|
|
113
|
+
<h4 class="modal-title">输入文件名称</h4>
|
|
114
|
+
</header>
|
|
115
|
+
<article slot="modal-body" class="modal-body">
|
|
116
|
+
<div class="form-group">
|
|
117
|
+
<input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
|
|
118
|
+
</div>
|
|
119
|
+
</article>
|
|
120
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
121
|
+
<button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
|
|
122
|
+
<button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
|
|
123
|
+
</footer>
|
|
124
|
+
</modal>
|
|
125
|
+
</div>
|
|
126
|
+
</template>
|
|
127
|
+
|
|
128
|
+
<script>
|
|
129
|
+
import { DataModel } from 'vue-client'
|
|
130
|
+
import co from 'co'
|
|
131
|
+
let saveFile = function * (self) {
|
|
132
|
+
// 线验证文件是否重名
|
|
133
|
+
let count = yield self.$resetpost('api/af-revenue/sql/manageSingleTable',
|
|
134
|
+
{data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
|
|
135
|
+
{resolveMsg: null, rejectMsg: null})
|
|
136
|
+
if (count.data.length > 0) {
|
|
137
|
+
self.$showAlert('无法保存,文件名重名', 'warning', 3000)
|
|
138
|
+
return
|
|
139
|
+
}
|
|
140
|
+
let saveBack = yield self.$resetpost('api/af-revenue/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
|
|
141
|
+
f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
|
|
142
|
+
f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
|
|
143
|
+
f_outlets: this.$login.f.depname})
|
|
144
|
+
if (saveBack.data.status === 'succeed') {
|
|
145
|
+
self.show = false
|
|
146
|
+
self.filename = ''
|
|
147
|
+
// 后台保存完成,通知刷新
|
|
148
|
+
self.$dispatch('save-success', self.filename)
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
export default {
|
|
152
|
+
title: '收费结账报表',
|
|
153
|
+
props: ['data'],
|
|
154
|
+
data () {
|
|
155
|
+
return {
|
|
156
|
+
printTime: this.$login.toStandardTimeString(),
|
|
157
|
+
depresid: [],
|
|
158
|
+
userresid: [],
|
|
159
|
+
f_orgid: this.$login.f.orgid,
|
|
160
|
+
f_depid: this.$login.f.depids,
|
|
161
|
+
f_operatorid: this.$login.f.id,
|
|
162
|
+
operatorid: [],
|
|
163
|
+
depid: [],
|
|
164
|
+
orgname: '',
|
|
165
|
+
depname: '',
|
|
166
|
+
operatorname: '',
|
|
167
|
+
orgCondtionStr: '1=1',
|
|
168
|
+
f_state:['有效'],
|
|
169
|
+
model: new DataModel('api/af-revenue/report/chgetmoneyall', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
|
|
170
|
+
f_orgid: 'this.model.f_orgid'}),
|
|
171
|
+
reportStr: null,
|
|
172
|
+
show: false,
|
|
173
|
+
spans:0,
|
|
174
|
+
initres: {
|
|
175
|
+
org: [this.$login.f.orgid],
|
|
176
|
+
dep: [],
|
|
177
|
+
user: []
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
ready () {
|
|
182
|
+
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
183
|
+
this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
184
|
+
// this.$refs.paged.$refs.criteria.search()
|
|
185
|
+
console.log(this.$login.f)
|
|
186
|
+
},
|
|
187
|
+
methods: {
|
|
188
|
+
searchData () {
|
|
189
|
+
this.$refs.paged.$refs.criteria.search()
|
|
190
|
+
},
|
|
191
|
+
selfSearch (args) {
|
|
192
|
+
this.printTime = this.$login.toStandardTimeString()
|
|
193
|
+
this.orgCondtionStr='1=1'
|
|
194
|
+
if (this.f_orgid[0]) {
|
|
195
|
+
this.orgCondtionStr += ' and f_orgid = ' + `'${this.f_orgid[0]}'`
|
|
196
|
+
}
|
|
197
|
+
if (this.f_depid[0]) {
|
|
198
|
+
this.orgCondtionStr += ` and f_depid = '${this.f_depid}'`
|
|
199
|
+
}
|
|
200
|
+
if(this.f_operatorid[0]) {
|
|
201
|
+
this.orgCondtionStr += ` and f_operatorid = '${this.f_operatorid}'`
|
|
202
|
+
}
|
|
203
|
+
this.$refs.paged.$refs.criteria.model.f_orgid = this.orgCondtionStr
|
|
204
|
+
this.$refs.paged.search(args)
|
|
205
|
+
},
|
|
206
|
+
// 根据文件路径获取储存的报表内容
|
|
207
|
+
getFileContent (path) {
|
|
208
|
+
this.$resetpost('api/af-revenue/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
209
|
+
this.reportStr = res.data.filecontent
|
|
210
|
+
this.model.state = '正确'
|
|
211
|
+
})
|
|
212
|
+
},
|
|
213
|
+
confirm () {
|
|
214
|
+
if (!this.filename || this.filename === '') {
|
|
215
|
+
this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
|
|
216
|
+
}
|
|
217
|
+
let saveGen = saveFile(this)
|
|
218
|
+
co(saveGen)
|
|
219
|
+
},
|
|
220
|
+
close () {
|
|
221
|
+
this.show = false
|
|
222
|
+
},
|
|
223
|
+
// 将报表保存成文件
|
|
224
|
+
confirmReport () {
|
|
225
|
+
this.show = true
|
|
226
|
+
this.filename = this.data.f_report_name + this.$login.toStandardDateString()
|
|
227
|
+
},
|
|
228
|
+
getRes (obj) {
|
|
229
|
+
this.orgname = obj.res[0]
|
|
230
|
+
this.depresid = obj.resids
|
|
231
|
+
this.userresid = obj.resids
|
|
232
|
+
this.f_orgid = obj.resids
|
|
233
|
+
},
|
|
234
|
+
getdep (obj, val) {
|
|
235
|
+
this.depname = val[0]
|
|
236
|
+
// this.userresid = obj
|
|
237
|
+
this.f_depid = obj
|
|
238
|
+
},
|
|
239
|
+
getuser ( obj, val) {
|
|
240
|
+
this.operatorname = val[0]
|
|
241
|
+
this.f_operatorid = obj
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
watch: {
|
|
245
|
+
'data' (val) {
|
|
246
|
+
if (val.f_files_path) {
|
|
247
|
+
this.getFileContent(val.f_files_path)
|
|
248
|
+
} else {
|
|
249
|
+
this.reportStr = null
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
'model.data' (val) {
|
|
253
|
+
let len=0
|
|
254
|
+
let a=val.split('</tr>')
|
|
255
|
+
for(let i=0;i<a.length;i++){
|
|
256
|
+
if(a[i].split('</td>').length-1>len){
|
|
257
|
+
len=a[i].split('</td>').length-1
|
|
258
|
+
}
|
|
259
|
+
continue
|
|
260
|
+
}
|
|
261
|
+
this.spans = len
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
computed: {
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
</script>
|
|
269
|
+
<style scoped>
|
|
270
|
+
.noborder{
|
|
271
|
+
border: none;
|
|
272
|
+
}
|
|
273
|
+
</style>
|