manage-client 3.3.233 → 3.3.234
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 +292 -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/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/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/stores/MagLoadParams.js +8 -4
- package/src/webmeterManage.js +130 -130
- package/.gradle/7.4/checksums/checksums.lock +0 -0
- package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
- package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
- package/.gradle/7.4/fileChanges/last-build.bin +0 -0
- package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
- package/.gradle/7.4/gc.properties +0 -0
|
@@ -1,555 +1,555 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="unit" class="flex-row">
|
|
3
|
-
<div class="basic-main" @keyup.enter="search">
|
|
4
|
-
<div class="flex" v-if="!show">
|
|
5
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
-
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
7
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
-
<div class="row">
|
|
9
|
-
<div :class="$parent.$parent.style">
|
|
10
|
-
<label for="startDate" class="font_normal_body">开始日期</label>
|
|
11
|
-
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
12
|
-
v-model="$parent.$parent.startDate"
|
|
13
|
-
:value.sync="$parent.$parent.startDate"
|
|
14
|
-
:format="'yyyy-MM-dd'"
|
|
15
|
-
:show-reset-button="true">
|
|
16
|
-
</datepicker>
|
|
17
|
-
</div>
|
|
18
|
-
<div :class="$parent.$parent.style">
|
|
19
|
-
<label for="endDate" class="font_normal_body">结束日期</label>
|
|
20
|
-
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
21
|
-
v-model="$parent.$parent.endDate"
|
|
22
|
-
:value.sync="$parent.$parent.endDate"
|
|
23
|
-
:format="'yyyy-MM-dd'"
|
|
24
|
-
:show-reset-button="true">
|
|
25
|
-
</datepicker>
|
|
26
|
-
</div>
|
|
27
|
-
<div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.showDetail">
|
|
28
|
-
<label class="font_normal_body">单位编号</label>
|
|
29
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.id"
|
|
30
|
-
condition="id = '{}' " placeholder="单位编号">
|
|
31
|
-
</div>
|
|
32
|
-
<div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.showDetail">
|
|
33
|
-
<label for="endDate" class="font_normal_body">单位名称</label>
|
|
34
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.f_company_name"
|
|
35
|
-
condition="f_company_name like '%{}%' " placeholder="单位名称">
|
|
36
|
-
<!-- <v-select :value.sync="model.f_company_id"-->
|
|
37
|
-
<!-- class="select_list select"-->
|
|
38
|
-
<!-- enter-push :disabled="$parent.$parent.isCompanyShow"-->
|
|
39
|
-
<!-- v-model="model.f_company_id" multiple="true"-->
|
|
40
|
-
<!-- :options='$parent.$parent.corporatename' placeholder='单位名称'-->
|
|
41
|
-
<!-- condition="f_company_id in {}">-->
|
|
42
|
-
<!-- </v-select>-->
|
|
43
|
-
</div>
|
|
44
|
-
<div class="span" style="float:right;">
|
|
45
|
-
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
46
|
-
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
47
|
-
<export-excel :data="$parent.$parent.getCondition"
|
|
48
|
-
:field="$parent.$parent.getfield"
|
|
49
|
-
:header="$parent.$parent.other"
|
|
50
|
-
:footer="$parent.$parent.footer"
|
|
51
|
-
sqlurl="api/af-revenue/logic/openapi/exportfile"
|
|
52
|
-
sql-name="manage_companyGasSummary"
|
|
53
|
-
template-name='单位用气售气汇总'
|
|
54
|
-
:choose-col="true"></export-excel>
|
|
55
|
-
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model"
|
|
56
|
-
:field="$parent.$parent.getfield"
|
|
57
|
-
titletable="单位用气售气汇总" :starthead="$parent.$parent.startDate"
|
|
58
|
-
:defaultfield="$parent.$parent.defaultfield"
|
|
59
|
-
:sumsmodel="$parent.$parent.sumsmodel"></print-data>
|
|
60
|
-
<div
|
|
61
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
62
|
-
@click="$parent.$parent.hidden()"
|
|
63
|
-
class="button_spacing"
|
|
64
|
-
style="float: right"></div>
|
|
65
|
-
</div>
|
|
66
|
-
</div>
|
|
67
|
-
<div class="row" v-if="$parent.$parent.criteriaShow">
|
|
68
|
-
<res-select-group
|
|
69
|
-
:style="$parent.$parent.style"
|
|
70
|
-
:show-component="['company','slicearea']"
|
|
71
|
-
:initres="$parent.$parent.initres"
|
|
72
|
-
@re-res="$parent.$parent.getRes"
|
|
73
|
-
v-ref:sel
|
|
74
|
-
></res-select-group>
|
|
75
|
-
<div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.showDetail">
|
|
76
|
-
<label class="font_normal_body">单位编号</label>
|
|
77
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.id"
|
|
78
|
-
condition="id = '{}' " placeholder="单位编号">
|
|
79
|
-
</div>
|
|
80
|
-
<div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.showDetail">
|
|
81
|
-
<label for="endDate" class="font_normal_body">单位名称</label>
|
|
82
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.f_company_name"
|
|
83
|
-
condition="f_company_name like '%{}%' " placeholder="单位名称">
|
|
84
|
-
<!-- <v-select :value.sync="model.f_company_id"-->
|
|
85
|
-
<!-- class="select_list select"-->
|
|
86
|
-
<!-- enter-push :disabled="$parent.$parent.isCompanyShow"-->
|
|
87
|
-
<!-- v-model="model.f_company_id" multiple="true"-->
|
|
88
|
-
<!-- :options='$parent.$parent.corporatename' placeholder='单位名称'-->
|
|
89
|
-
<!-- condition="f_company_id in {}">-->
|
|
90
|
-
<!-- </v-select>-->
|
|
91
|
-
</div>
|
|
92
|
-
<div class="col-sm-2 form-group">
|
|
93
|
-
<label class="font_normal_body">用户类型</label>
|
|
94
|
-
<v-select :value.sync="model.f_user_type"
|
|
95
|
-
:options='$parent.$parent.usertypes'
|
|
96
|
-
:value-single="true"
|
|
97
|
-
placeholder='请选择' v-model="model.f_user_type"
|
|
98
|
-
></v-select>
|
|
99
|
-
</div>
|
|
100
|
-
<div class="col-sm-2 form-group">
|
|
101
|
-
<label for="f_user_usetype" class="font_normal_body ">用气类型</label>
|
|
102
|
-
<v-select :value.sync="model.f_userusetype" :search="false"
|
|
103
|
-
@change="$parent.$parent.userUseTypeChange()"
|
|
104
|
-
v-model="model.f_userusetype"
|
|
105
|
-
:multiple="true"
|
|
106
|
-
:options='$parent.$parent.userusetypes'
|
|
107
|
-
placeholder='用气类型'>
|
|
108
|
-
</v-select>
|
|
109
|
-
</div>
|
|
110
|
-
<div class="col-sm-2 form-group">
|
|
111
|
-
<label for="f_use_institution" class="font_normal_body">用气机构</label>
|
|
112
|
-
<v-select :value.sync="model.f_use_institution" :search="false"
|
|
113
|
-
@change="$parent.$parent.userUseInstitutionChange()"
|
|
114
|
-
v-model="model.f_use_institution"
|
|
115
|
-
:value-single="true"
|
|
116
|
-
:options='$parent.$parent.useinstitutions'
|
|
117
|
-
placeholder='用气机构'
|
|
118
|
-
close-on-select>
|
|
119
|
-
</v-select>
|
|
120
|
-
</div>
|
|
121
|
-
<div class="col-sm-2 form-group">
|
|
122
|
-
<label for="f_user_usenature" class="font_normal_body ">使用性质</label>
|
|
123
|
-
<v-select :value.sync="model.f_user_usenature" :search="false"
|
|
124
|
-
v-model="model.f_user_usenature"
|
|
125
|
-
:value-single="true"
|
|
126
|
-
:options='$parent.$parent.userusenatures'
|
|
127
|
-
placeholder='使用性质'
|
|
128
|
-
close-on-select>
|
|
129
|
-
</v-select>
|
|
130
|
-
</div>
|
|
131
|
-
<!-- <div class="col-sm-2 form-group">-->
|
|
132
|
-
<!-- <label for="endDate" class="font_normal_body">小区名称</label>-->
|
|
133
|
-
<!-- <v-select :value.sync="model.f_residential_area_id"-->
|
|
134
|
-
<!-- class="select_list select"-->
|
|
135
|
-
<!-- enter-push :disabled="$parent.$parent.isAreaShow"-->
|
|
136
|
-
<!-- v-model="model.f_residential_area_id" multiple="true"-->
|
|
137
|
-
<!-- @select-search="$parent.$parent.getAreaList"-->
|
|
138
|
-
<!-- :options='$parent.$parent.areaList' placeholder='小区名称'-->
|
|
139
|
-
<!-- condition="f_residential_area_id in {}">-->
|
|
140
|
-
<!-- </v-select>-->
|
|
141
|
-
<!-- </div>-->
|
|
142
|
-
</div>
|
|
143
|
-
</div>
|
|
144
|
-
</criteria>
|
|
145
|
-
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
|
|
146
|
-
<template partial='head'>
|
|
147
|
-
<tr>
|
|
148
|
-
<th>
|
|
149
|
-
<nobr>序号</nobr>
|
|
150
|
-
</th>
|
|
151
|
-
<th>
|
|
152
|
-
<nobr>单位编号</nobr>
|
|
153
|
-
</th>
|
|
154
|
-
<th>
|
|
155
|
-
<nobr>单位名称</nobr>
|
|
156
|
-
</th>
|
|
157
|
-
<th>
|
|
158
|
-
<nobr>期间用气量</nobr>
|
|
159
|
-
</th>
|
|
160
|
-
<th>
|
|
161
|
-
<nobr>期间用气金额</nobr>
|
|
162
|
-
</th>
|
|
163
|
-
<th>
|
|
164
|
-
<nobr>期间售气量</nobr>
|
|
165
|
-
</th>
|
|
166
|
-
<th>
|
|
167
|
-
<nobr>期间售气金额</nobr>
|
|
168
|
-
</th>
|
|
169
|
-
<th>
|
|
170
|
-
<nobr>表具数量</nobr>
|
|
171
|
-
</th>
|
|
172
|
-
</tr>
|
|
173
|
-
</template>
|
|
174
|
-
<template partial='body'>
|
|
175
|
-
<td style="text-align:center">
|
|
176
|
-
<nobr>{{ $index + 1 }}</nobr>
|
|
177
|
-
</td>
|
|
178
|
-
<td style="text-align: center;">
|
|
179
|
-
<nobr>{{ row.id }}</nobr>
|
|
180
|
-
</td>
|
|
181
|
-
<td style="text-align: center;">
|
|
182
|
-
<nobr>{{ row.f_company_name }}</nobr>
|
|
183
|
-
</td>
|
|
184
|
-
<td style="text-align: center;">
|
|
185
|
-
<nobr>{{ row.f_oughtamount }}</nobr>
|
|
186
|
-
</td>
|
|
187
|
-
<td style="text-align: center;">
|
|
188
|
-
<nobr>{{ row.f_oughtfee }}</nobr>
|
|
189
|
-
</td>
|
|
190
|
-
<td style="text-align: center;">
|
|
191
|
-
<nobr>{{ row.f_pregas }}</nobr>
|
|
192
|
-
</td>
|
|
193
|
-
<td style="text-align: center;">
|
|
194
|
-
<nobr>{{ row.f_collection }}</nobr>
|
|
195
|
-
</td>
|
|
196
|
-
<td style="text-align: center;">
|
|
197
|
-
<nobr>{{ row.f_table_num }}</nobr>
|
|
198
|
-
</td>
|
|
199
|
-
</template>
|
|
200
|
-
<template partial='foot'></template>
|
|
201
|
-
</data-grid>
|
|
202
|
-
</criteria-paged>
|
|
203
|
-
<table class="table-hover">
|
|
204
|
-
<tr style="position: relative" class="table-bordered">
|
|
205
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
206
|
-
汇总信息
|
|
207
|
-
</td>
|
|
208
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
209
|
-
用气量: {{ sumsmodel.f_oughtamount.toFixed(2) }}m³
|
|
210
|
-
</td>
|
|
211
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
212
|
-
用气金额: {{ sumsmodel.f_oughtfee.toFixed(2) }}元
|
|
213
|
-
</td>
|
|
214
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
215
|
-
售气量: {{ sumsmodel.f_pregas.toFixed(2) }}m³
|
|
216
|
-
</td>
|
|
217
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
218
|
-
售气金额: {{ sumsmodel.f_collection.toFixed(2) }}元
|
|
219
|
-
</td>
|
|
220
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
221
|
-
表具数量: {{ sumsmodel.f_table_num }}
|
|
222
|
-
</td>
|
|
223
|
-
</tr>
|
|
224
|
-
</table>
|
|
225
|
-
</div>
|
|
226
|
-
</div>
|
|
227
|
-
</div>
|
|
228
|
-
</template>
|
|
229
|
-
<script>
|
|
230
|
-
import {PagedList, HttpResetClass} from 'vue-client'
|
|
231
|
-
import defaultPrint from './config/DefaultPrint'
|
|
232
|
-
import exportConfig from './config/exportConfig'
|
|
233
|
-
import PrintDataSelf from '../../components/sale/common/PrintDataSelf'
|
|
234
|
-
|
|
235
|
-
let readySomething = async function (self) {
|
|
236
|
-
self.startDate = self.getCurrentMonthFirst()
|
|
237
|
-
self.endDate = self.getCurrentMonthLast()
|
|
238
|
-
// self.getCompanyList()
|
|
239
|
-
}
|
|
240
|
-
export default {
|
|
241
|
-
title: '单位用气售气',
|
|
242
|
-
data () {
|
|
243
|
-
return {
|
|
244
|
-
depresid: [],
|
|
245
|
-
userresid: [],
|
|
246
|
-
f_orgid: this.$login.f.orgid,
|
|
247
|
-
f_depid: this.$login.f.depids,
|
|
248
|
-
f_operatorid: this.$login.f.id,
|
|
249
|
-
operatorid: [],
|
|
250
|
-
depid: [],
|
|
251
|
-
orgname: '',
|
|
252
|
-
depname: [],
|
|
253
|
-
operatorname: '',
|
|
254
|
-
condition: '',
|
|
255
|
-
orgConditionStr: '',
|
|
256
|
-
data: {},
|
|
257
|
-
other: [],
|
|
258
|
-
footer: [],
|
|
259
|
-
model: new PagedList('api/af-revenue/sql/manage_companyGasSummary', 20, {
|
|
260
|
-
startDate: 'this.model.startDate',
|
|
261
|
-
endDate: 'this.model.endDate',
|
|
262
|
-
f_user_type : 'this.model.f_user_type',
|
|
263
|
-
f_user_usetype : 'this.model.f_user_usetype',
|
|
264
|
-
f_user_usenature : 'this.model.f_user_usenature',
|
|
265
|
-
f_use_institution : 'this.model.f_use_institution'
|
|
266
|
-
}, {
|
|
267
|
-
f_oughtamount: 0,
|
|
268
|
-
f_oughtfee: 0,
|
|
269
|
-
f_pregas: 0,
|
|
270
|
-
f_collection: 0,
|
|
271
|
-
f_table_num: 0
|
|
272
|
-
}),
|
|
273
|
-
gasproperties: [],
|
|
274
|
-
show: false,
|
|
275
|
-
rowdata: {},
|
|
276
|
-
areaList: [],
|
|
277
|
-
modelval: [],
|
|
278
|
-
startDate: '',
|
|
279
|
-
endDate: '',
|
|
280
|
-
inputtouPerson: [],
|
|
281
|
-
printshow: false,
|
|
282
|
-
all: false,
|
|
283
|
-
fields: {},
|
|
284
|
-
thead: '',
|
|
285
|
-
tfoot: '',
|
|
286
|
-
defaultfield: [],
|
|
287
|
-
sumsmodel: {},
|
|
288
|
-
sumExport: { 'f_oughtamount': '期间用气量', 'f_pregas': '期间售气量'},
|
|
289
|
-
initres: {
|
|
290
|
-
org: [this.$login.f.orgid],
|
|
291
|
-
slice_area: [],
|
|
292
|
-
},
|
|
293
|
-
criteriaShow: true,
|
|
294
|
-
useinstitutions: [],
|
|
295
|
-
userusenatures: [],
|
|
296
|
-
corporatename: []
|
|
297
|
-
}
|
|
298
|
-
},
|
|
299
|
-
props: {
|
|
300
|
-
style: {
|
|
301
|
-
type: String,
|
|
302
|
-
default: 'col-sm-2 form-group'
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
ready () {
|
|
306
|
-
readySomething(this).then(() => {
|
|
307
|
-
this.$emit('ready')
|
|
308
|
-
}).catch((error) => {
|
|
309
|
-
this.$emit('error', error)
|
|
310
|
-
})
|
|
311
|
-
},
|
|
312
|
-
methods: {
|
|
313
|
-
getCurrentMonthFirst() {
|
|
314
|
-
let date = new Date()
|
|
315
|
-
date.setDate(1)
|
|
316
|
-
let month = parseInt(date.getMonth() + 1)
|
|
317
|
-
let day = date.getDate()
|
|
318
|
-
if (month < 10) month = '0' + month
|
|
319
|
-
if (day < 10) day = '0' + day
|
|
320
|
-
return date.getFullYear() + '-' + month + '-' + day
|
|
321
|
-
},
|
|
322
|
-
getCurrentMonthLast() {
|
|
323
|
-
let date = new Date()
|
|
324
|
-
let year = date.getFullYear()
|
|
325
|
-
let month = date.getMonth() + 1
|
|
326
|
-
month = month < 10 ? '0' + month : month
|
|
327
|
-
let day = new Date(year, month, 0)
|
|
328
|
-
return year + '-' + month + '-' + day.getDate()
|
|
329
|
-
},
|
|
330
|
-
// async getCompanyList(searchText){
|
|
331
|
-
// let condition = ' 1 = 1 '
|
|
332
|
-
// if (searchText) {
|
|
333
|
-
// condition = ` f_company_name like '%${searchText}%' `
|
|
334
|
-
// }
|
|
335
|
-
// let HttpReset = new HttpResetClass()
|
|
336
|
-
// HttpReset.load('POST', 'api/af-revenue/sql/manageSingleTable?pageNo=1&pageSize=100', {
|
|
337
|
-
// data: {
|
|
338
|
-
// items: 'f_company_name, id',
|
|
339
|
-
// tablename: 't_company',
|
|
340
|
-
// orderitem: 'id desc',
|
|
341
|
-
// condition: condition
|
|
342
|
-
// }
|
|
343
|
-
// }, {resolveMsg: null, rejectMsg: '获取单位信息失败!'}).then((req) => {
|
|
344
|
-
// let redata = []
|
|
345
|
-
// req.data.forEach((row, n) => {
|
|
346
|
-
// redata[n] = {
|
|
347
|
-
// label: row.f_company_name,
|
|
348
|
-
// value: row.id
|
|
349
|
-
// }
|
|
350
|
-
// })
|
|
351
|
-
// this.corporatename = [{label: '全部', value: ''}, ...redata]
|
|
352
|
-
// })
|
|
353
|
-
// },
|
|
354
|
-
clear() {
|
|
355
|
-
//清空部门和人员
|
|
356
|
-
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
357
|
-
//部门和人员变为全选
|
|
358
|
-
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
359
|
-
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
360
|
-
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
361
|
-
this.$refs.paged.$refs.cri.model[key] = []
|
|
362
|
-
})
|
|
363
|
-
},
|
|
364
|
-
userTypeChange () {
|
|
365
|
-
console.log("======"+this.$refs.paged.$refs.cri.model.f_user_type)
|
|
366
|
-
this.userusetypes = []
|
|
367
|
-
this.userusenatures = []
|
|
368
|
-
this.useinstitutions = []
|
|
369
|
-
this.$refs.paged.$refs.cri.model.f_userusetype = []
|
|
370
|
-
this.$refs.paged.$refs.cri.model.f_use_institution = ''
|
|
371
|
-
this.$refs.paged.$refs.cri.model.f_user_usenature = ''
|
|
372
|
-
if (this.$refs.paged.$refs.cri.model.f_user_type) {
|
|
373
|
-
let str = this.$refs.paged.$refs.cri.model.f_user_type + '用气类型'
|
|
374
|
-
this.userusetypes = this.$appdata.getParam(str)
|
|
375
|
-
}
|
|
376
|
-
},
|
|
377
|
-
userUseTypeChange () {
|
|
378
|
-
this.useinstitutions = []
|
|
379
|
-
this.userusenatures = []
|
|
380
|
-
this.$refs.paged.$refs.cri.model.f_use_institution = ''
|
|
381
|
-
this.$refs.paged.$refs.cri.model.f_user_usenature = ''
|
|
382
|
-
if (this.$refs.paged.$refs.cri.model.f_userusetype.length > 0) {
|
|
383
|
-
for (var i = 0; i < this.$refs.paged.$refs.cri.model.f_userusetype.length; i++) {
|
|
384
|
-
let str = this.$refs.paged.$refs.cri.model.f_userusetype[i] + '机构'
|
|
385
|
-
let getParam = this.$appdata.getParam(str)
|
|
386
|
-
Array.prototype.push.apply(this.useinstitutions, getParam);
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
let temp = {}
|
|
390
|
-
this.useinstitutions = this.useinstitutions.filter(function(item) {
|
|
391
|
-
var key = JSON.stringify(item);
|
|
392
|
-
return temp.hasOwnProperty(key) ? false : (temp[key] = true);
|
|
393
|
-
});
|
|
394
|
-
},
|
|
395
|
-
userUseInstitutionChange () {
|
|
396
|
-
this.userusenatures = []
|
|
397
|
-
this.$refs.paged.$refs.cri.model.f_user_usenature = ''
|
|
398
|
-
if (this.$refs.paged.$refs.cri.model.f_use_institution) {
|
|
399
|
-
let str = this.$refs.paged.$refs.cri.model.f_use_institution + '使用性质'
|
|
400
|
-
this.userusenatures = this.$appdata.getParam(str)
|
|
401
|
-
}
|
|
402
|
-
},
|
|
403
|
-
hidden () {
|
|
404
|
-
this.criteriaShow = !this.criteriaShow
|
|
405
|
-
},
|
|
406
|
-
getotherfooter () {
|
|
407
|
-
this.other = []
|
|
408
|
-
this.footer = []
|
|
409
|
-
let exportdata = this.getCondition
|
|
410
|
-
let otherInData = []
|
|
411
|
-
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
|
|
412
|
-
let footerData = [], exportfield = this.sumExport
|
|
413
|
-
footerData.push('合计')
|
|
414
|
-
let self = this
|
|
415
|
-
for (var field in self.sumsmodel) {
|
|
416
|
-
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
|
|
417
|
-
}
|
|
418
|
-
this.footer.push(footerData)
|
|
419
|
-
this.other.push(otherInData)
|
|
420
|
-
},
|
|
421
|
-
search () {
|
|
422
|
-
this.$refs.paged.$refs.cri.search()
|
|
423
|
-
},
|
|
424
|
-
appendCondition (data) {
|
|
425
|
-
console.log('data=====>',data)
|
|
426
|
-
let stringValue = ''
|
|
427
|
-
for (var i = 0; i < data.length; i++) {
|
|
428
|
-
if (data[i]) {
|
|
429
|
-
if (i === data.length - 1) {
|
|
430
|
-
stringValue = stringValue + "'" + data[i] + "'"
|
|
431
|
-
} else {
|
|
432
|
-
stringValue = stringValue + "'" + data[i] + "',"
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
return stringValue
|
|
437
|
-
},
|
|
438
|
-
async selfSearch (args) {
|
|
439
|
-
let companyCondition2 = '1=1'
|
|
440
|
-
if (this.$refs.paged.$refs.cri.model.f_userusetype.length > 0) {
|
|
441
|
-
this.$refs.paged.$refs.cri.model.f_user_usetype = this.appendCondition(this.$refs.paged.$refs.cri.model.f_userusetype)
|
|
442
|
-
} else {
|
|
443
|
-
this.$refs.paged.$refs.cri.model.f_user_usetype = ''
|
|
444
|
-
}
|
|
445
|
-
if (!this.orgConditionStr) {
|
|
446
|
-
args.condition = `${args.condition}` + ' and f_orgid = ' + this.$login.f.orgid
|
|
447
|
-
} else {
|
|
448
|
-
args.condition = `${args.condition}` + this.orgConditionStr
|
|
449
|
-
}
|
|
450
|
-
this.$refs.paged.$refs.cri.model.startDate = this.startDate
|
|
451
|
-
this.$refs.paged.$refs.cri.model.endDate = this.endDate
|
|
452
|
-
this.condition = args.condition
|
|
453
|
-
console.log("查看条件",this.condition)
|
|
454
|
-
await this.model.search(args.condition, args.model)
|
|
455
|
-
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
456
|
-
this.card = ''
|
|
457
|
-
this.IdCardInfo = ''
|
|
458
|
-
console.log('合计字段', this.sumsmodel)
|
|
459
|
-
this.$dispatch('cancel')
|
|
460
|
-
},
|
|
461
|
-
getRes (obj) {
|
|
462
|
-
this.orgConditionStr = obj
|
|
463
|
-
},
|
|
464
|
-
stamp () {
|
|
465
|
-
this.all = false
|
|
466
|
-
//默认选择要打印的列
|
|
467
|
-
this.modelval = defaultPrint.config
|
|
468
|
-
this.fields = this.getfield
|
|
469
|
-
console.log('所有打印字段', this.fields)
|
|
470
|
-
this.printshow = true
|
|
471
|
-
this.put()
|
|
472
|
-
},
|
|
473
|
-
put () {
|
|
474
|
-
// 对Modelval进行排序
|
|
475
|
-
this.sortModelval()
|
|
476
|
-
this.thead = `<tr><th colspan=${this.modelval.length}>用户查询</th></tr><tr>`
|
|
477
|
-
for (let key of this.modelval) {
|
|
478
|
-
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
479
|
-
}
|
|
480
|
-
this.thead += '</tr>'
|
|
481
|
-
},
|
|
482
|
-
print () {
|
|
483
|
-
this.$refs.print.PrintAsFile()
|
|
484
|
-
this.printshow = false
|
|
485
|
-
},
|
|
486
|
-
dealmsg (val) {
|
|
487
|
-
console.log('---------------dealmsg')
|
|
488
|
-
this.rowdata = val
|
|
489
|
-
this.show = true
|
|
490
|
-
val.model = this.model.model
|
|
491
|
-
this.$dispatch('deal-msg', val)
|
|
492
|
-
},
|
|
493
|
-
close () {
|
|
494
|
-
this.printshow = false
|
|
495
|
-
this.all = false
|
|
496
|
-
},
|
|
497
|
-
// 对选择的列进行排序
|
|
498
|
-
sortModelval () {
|
|
499
|
-
let sortModel = []
|
|
500
|
-
Object.keys(this.fields).forEach((key) => {
|
|
501
|
-
if (this.modelval.includes(key)) {
|
|
502
|
-
sortModel.push(key)
|
|
503
|
-
}
|
|
504
|
-
})
|
|
505
|
-
this.modelval = sortModel
|
|
506
|
-
console.log('选择的打印的字段', this.modelval)
|
|
507
|
-
}
|
|
508
|
-
},
|
|
509
|
-
watch: {
|
|
510
|
-
'all' (val) {
|
|
511
|
-
if (val) {
|
|
512
|
-
this.modelval = this.bodyData
|
|
513
|
-
} else {
|
|
514
|
-
this.modelval = defaultPrint.config
|
|
515
|
-
this.put()
|
|
516
|
-
}
|
|
517
|
-
},
|
|
518
|
-
sumsmodel: {
|
|
519
|
-
handler: function (val) {
|
|
520
|
-
this.getotherfooter()
|
|
521
|
-
},
|
|
522
|
-
deep: true
|
|
523
|
-
},
|
|
524
|
-
'modelval.length' () {
|
|
525
|
-
this.put()
|
|
526
|
-
}
|
|
527
|
-
},
|
|
528
|
-
computed: {
|
|
529
|
-
getCondition () {
|
|
530
|
-
return {
|
|
531
|
-
condition: this.condition,
|
|
532
|
-
startDate: this.startDate,
|
|
533
|
-
endDate: this.endDate,
|
|
534
|
-
f_user_usetype : this.$refs.paged.$refs.cri.model.f_user_usetype,
|
|
535
|
-
f_user_type : this.$refs.paged.$refs.cri.model.f_user_type,
|
|
536
|
-
f_user_usenature : this.$refs.paged.$refs.cri.model.f_user_usenature,
|
|
537
|
-
f_use_institution : this.$refs.paged.$refs.cri.model.f_use_institution
|
|
538
|
-
}
|
|
539
|
-
},
|
|
540
|
-
getfield () {
|
|
541
|
-
return exportConfig.manageCompanyGasSummary
|
|
542
|
-
},
|
|
543
|
-
userusetypes() {
|
|
544
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]
|
|
545
|
-
},
|
|
546
|
-
useTypes () {
|
|
547
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用类型')]
|
|
548
|
-
},
|
|
549
|
-
usertypes () {
|
|
550
|
-
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
</script>
|
|
555
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main" @keyup.enter="search">
|
|
4
|
+
<div class="flex" v-if="!show">
|
|
5
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
7
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
+
<div class="row">
|
|
9
|
+
<div :class="$parent.$parent.style">
|
|
10
|
+
<label for="startDate" class="font_normal_body">开始日期</label>
|
|
11
|
+
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
12
|
+
v-model="$parent.$parent.startDate"
|
|
13
|
+
:value.sync="$parent.$parent.startDate"
|
|
14
|
+
:format="'yyyy-MM-dd'"
|
|
15
|
+
:show-reset-button="true">
|
|
16
|
+
</datepicker>
|
|
17
|
+
</div>
|
|
18
|
+
<div :class="$parent.$parent.style">
|
|
19
|
+
<label for="endDate" class="font_normal_body">结束日期</label>
|
|
20
|
+
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
21
|
+
v-model="$parent.$parent.endDate"
|
|
22
|
+
:value.sync="$parent.$parent.endDate"
|
|
23
|
+
:format="'yyyy-MM-dd'"
|
|
24
|
+
:show-reset-button="true">
|
|
25
|
+
</datepicker>
|
|
26
|
+
</div>
|
|
27
|
+
<div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.showDetail">
|
|
28
|
+
<label class="font_normal_body">单位编号</label>
|
|
29
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.id"
|
|
30
|
+
condition="id = '{}' " placeholder="单位编号">
|
|
31
|
+
</div>
|
|
32
|
+
<div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.showDetail">
|
|
33
|
+
<label for="endDate" class="font_normal_body">单位名称</label>
|
|
34
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_company_name"
|
|
35
|
+
condition="f_company_name like '%{}%' " placeholder="单位名称">
|
|
36
|
+
<!-- <v-select :value.sync="model.f_company_id"-->
|
|
37
|
+
<!-- class="select_list select"-->
|
|
38
|
+
<!-- enter-push :disabled="$parent.$parent.isCompanyShow"-->
|
|
39
|
+
<!-- v-model="model.f_company_id" multiple="true"-->
|
|
40
|
+
<!-- :options='$parent.$parent.corporatename' placeholder='单位名称'-->
|
|
41
|
+
<!-- condition="f_company_id in {}">-->
|
|
42
|
+
<!-- </v-select>-->
|
|
43
|
+
</div>
|
|
44
|
+
<div class="span" style="float:right;">
|
|
45
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
46
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
47
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
48
|
+
:field="$parent.$parent.getfield"
|
|
49
|
+
:header="$parent.$parent.other"
|
|
50
|
+
:footer="$parent.$parent.footer"
|
|
51
|
+
sqlurl="api/af-revenue/logic/openapi/exportfile"
|
|
52
|
+
sql-name="manage_companyGasSummary"
|
|
53
|
+
template-name='单位用气售气汇总'
|
|
54
|
+
:choose-col="true"></export-excel>
|
|
55
|
+
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model"
|
|
56
|
+
:field="$parent.$parent.getfield"
|
|
57
|
+
titletable="单位用气售气汇总" :starthead="$parent.$parent.startDate"
|
|
58
|
+
:defaultfield="$parent.$parent.defaultfield"
|
|
59
|
+
:sumsmodel="$parent.$parent.sumsmodel"></print-data>
|
|
60
|
+
<div
|
|
61
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
62
|
+
@click="$parent.$parent.hidden()"
|
|
63
|
+
class="button_spacing"
|
|
64
|
+
style="float: right"></div>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
<div class="row" v-if="$parent.$parent.criteriaShow">
|
|
68
|
+
<res-select-group
|
|
69
|
+
:style="$parent.$parent.style"
|
|
70
|
+
:show-component="['company','slicearea']"
|
|
71
|
+
:initres="$parent.$parent.initres"
|
|
72
|
+
@re-res="$parent.$parent.getRes"
|
|
73
|
+
v-ref:sel
|
|
74
|
+
></res-select-group>
|
|
75
|
+
<div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.showDetail">
|
|
76
|
+
<label class="font_normal_body">单位编号</label>
|
|
77
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.id"
|
|
78
|
+
condition="id = '{}' " placeholder="单位编号">
|
|
79
|
+
</div>
|
|
80
|
+
<div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.showDetail">
|
|
81
|
+
<label for="endDate" class="font_normal_body">单位名称</label>
|
|
82
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_company_name"
|
|
83
|
+
condition="f_company_name like '%{}%' " placeholder="单位名称">
|
|
84
|
+
<!-- <v-select :value.sync="model.f_company_id"-->
|
|
85
|
+
<!-- class="select_list select"-->
|
|
86
|
+
<!-- enter-push :disabled="$parent.$parent.isCompanyShow"-->
|
|
87
|
+
<!-- v-model="model.f_company_id" multiple="true"-->
|
|
88
|
+
<!-- :options='$parent.$parent.corporatename' placeholder='单位名称'-->
|
|
89
|
+
<!-- condition="f_company_id in {}">-->
|
|
90
|
+
<!-- </v-select>-->
|
|
91
|
+
</div>
|
|
92
|
+
<div class="col-sm-2 form-group">
|
|
93
|
+
<label class="font_normal_body">用户类型</label>
|
|
94
|
+
<v-select :value.sync="model.f_user_type"
|
|
95
|
+
:options='$parent.$parent.usertypes'
|
|
96
|
+
:value-single="true"
|
|
97
|
+
placeholder='请选择' v-model="model.f_user_type"
|
|
98
|
+
></v-select>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="col-sm-2 form-group">
|
|
101
|
+
<label for="f_user_usetype" class="font_normal_body ">用气类型</label>
|
|
102
|
+
<v-select :value.sync="model.f_userusetype" :search="false"
|
|
103
|
+
@change="$parent.$parent.userUseTypeChange()"
|
|
104
|
+
v-model="model.f_userusetype"
|
|
105
|
+
:multiple="true"
|
|
106
|
+
:options='$parent.$parent.userusetypes'
|
|
107
|
+
placeholder='用气类型'>
|
|
108
|
+
</v-select>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="col-sm-2 form-group">
|
|
111
|
+
<label for="f_use_institution" class="font_normal_body">用气机构</label>
|
|
112
|
+
<v-select :value.sync="model.f_use_institution" :search="false"
|
|
113
|
+
@change="$parent.$parent.userUseInstitutionChange()"
|
|
114
|
+
v-model="model.f_use_institution"
|
|
115
|
+
:value-single="true"
|
|
116
|
+
:options='$parent.$parent.useinstitutions'
|
|
117
|
+
placeholder='用气机构'
|
|
118
|
+
close-on-select>
|
|
119
|
+
</v-select>
|
|
120
|
+
</div>
|
|
121
|
+
<div class="col-sm-2 form-group">
|
|
122
|
+
<label for="f_user_usenature" class="font_normal_body ">使用性质</label>
|
|
123
|
+
<v-select :value.sync="model.f_user_usenature" :search="false"
|
|
124
|
+
v-model="model.f_user_usenature"
|
|
125
|
+
:value-single="true"
|
|
126
|
+
:options='$parent.$parent.userusenatures'
|
|
127
|
+
placeholder='使用性质'
|
|
128
|
+
close-on-select>
|
|
129
|
+
</v-select>
|
|
130
|
+
</div>
|
|
131
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
132
|
+
<!-- <label for="endDate" class="font_normal_body">小区名称</label>-->
|
|
133
|
+
<!-- <v-select :value.sync="model.f_residential_area_id"-->
|
|
134
|
+
<!-- class="select_list select"-->
|
|
135
|
+
<!-- enter-push :disabled="$parent.$parent.isAreaShow"-->
|
|
136
|
+
<!-- v-model="model.f_residential_area_id" multiple="true"-->
|
|
137
|
+
<!-- @select-search="$parent.$parent.getAreaList"-->
|
|
138
|
+
<!-- :options='$parent.$parent.areaList' placeholder='小区名称'-->
|
|
139
|
+
<!-- condition="f_residential_area_id in {}">-->
|
|
140
|
+
<!-- </v-select>-->
|
|
141
|
+
<!-- </div>-->
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
144
|
+
</criteria>
|
|
145
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
|
|
146
|
+
<template partial='head'>
|
|
147
|
+
<tr>
|
|
148
|
+
<th>
|
|
149
|
+
<nobr>序号</nobr>
|
|
150
|
+
</th>
|
|
151
|
+
<th>
|
|
152
|
+
<nobr>单位编号</nobr>
|
|
153
|
+
</th>
|
|
154
|
+
<th>
|
|
155
|
+
<nobr>单位名称</nobr>
|
|
156
|
+
</th>
|
|
157
|
+
<th>
|
|
158
|
+
<nobr>期间用气量</nobr>
|
|
159
|
+
</th>
|
|
160
|
+
<th>
|
|
161
|
+
<nobr>期间用气金额</nobr>
|
|
162
|
+
</th>
|
|
163
|
+
<th>
|
|
164
|
+
<nobr>期间售气量</nobr>
|
|
165
|
+
</th>
|
|
166
|
+
<th>
|
|
167
|
+
<nobr>期间售气金额</nobr>
|
|
168
|
+
</th>
|
|
169
|
+
<th>
|
|
170
|
+
<nobr>表具数量</nobr>
|
|
171
|
+
</th>
|
|
172
|
+
</tr>
|
|
173
|
+
</template>
|
|
174
|
+
<template partial='body'>
|
|
175
|
+
<td style="text-align:center">
|
|
176
|
+
<nobr>{{ $index + 1 }}</nobr>
|
|
177
|
+
</td>
|
|
178
|
+
<td style="text-align: center;">
|
|
179
|
+
<nobr>{{ row.id }}</nobr>
|
|
180
|
+
</td>
|
|
181
|
+
<td style="text-align: center;">
|
|
182
|
+
<nobr>{{ row.f_company_name }}</nobr>
|
|
183
|
+
</td>
|
|
184
|
+
<td style="text-align: center;">
|
|
185
|
+
<nobr>{{ row.f_oughtamount }}</nobr>
|
|
186
|
+
</td>
|
|
187
|
+
<td style="text-align: center;">
|
|
188
|
+
<nobr>{{ row.f_oughtfee }}</nobr>
|
|
189
|
+
</td>
|
|
190
|
+
<td style="text-align: center;">
|
|
191
|
+
<nobr>{{ row.f_pregas }}</nobr>
|
|
192
|
+
</td>
|
|
193
|
+
<td style="text-align: center;">
|
|
194
|
+
<nobr>{{ row.f_collection }}</nobr>
|
|
195
|
+
</td>
|
|
196
|
+
<td style="text-align: center;">
|
|
197
|
+
<nobr>{{ row.f_table_num }}</nobr>
|
|
198
|
+
</td>
|
|
199
|
+
</template>
|
|
200
|
+
<template partial='foot'></template>
|
|
201
|
+
</data-grid>
|
|
202
|
+
</criteria-paged>
|
|
203
|
+
<table class="table-hover">
|
|
204
|
+
<tr style="position: relative" class="table-bordered">
|
|
205
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
206
|
+
汇总信息
|
|
207
|
+
</td>
|
|
208
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
209
|
+
用气量: {{ sumsmodel.f_oughtamount.toFixed(2) }}m³
|
|
210
|
+
</td>
|
|
211
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
212
|
+
用气金额: {{ sumsmodel.f_oughtfee.toFixed(2) }}元
|
|
213
|
+
</td>
|
|
214
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
215
|
+
售气量: {{ sumsmodel.f_pregas.toFixed(2) }}m³
|
|
216
|
+
</td>
|
|
217
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
218
|
+
售气金额: {{ sumsmodel.f_collection.toFixed(2) }}元
|
|
219
|
+
</td>
|
|
220
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
221
|
+
表具数量: {{ sumsmodel.f_table_num }}
|
|
222
|
+
</td>
|
|
223
|
+
</tr>
|
|
224
|
+
</table>
|
|
225
|
+
</div>
|
|
226
|
+
</div>
|
|
227
|
+
</div>
|
|
228
|
+
</template>
|
|
229
|
+
<script>
|
|
230
|
+
import {PagedList, HttpResetClass} from 'vue-client'
|
|
231
|
+
import defaultPrint from './config/DefaultPrint'
|
|
232
|
+
import exportConfig from './config/exportConfig'
|
|
233
|
+
import PrintDataSelf from '../../components/sale/common/PrintDataSelf'
|
|
234
|
+
|
|
235
|
+
let readySomething = async function (self) {
|
|
236
|
+
self.startDate = self.getCurrentMonthFirst()
|
|
237
|
+
self.endDate = self.getCurrentMonthLast()
|
|
238
|
+
// self.getCompanyList()
|
|
239
|
+
}
|
|
240
|
+
export default {
|
|
241
|
+
title: '单位用气售气',
|
|
242
|
+
data () {
|
|
243
|
+
return {
|
|
244
|
+
depresid: [],
|
|
245
|
+
userresid: [],
|
|
246
|
+
f_orgid: this.$login.f.orgid,
|
|
247
|
+
f_depid: this.$login.f.depids,
|
|
248
|
+
f_operatorid: this.$login.f.id,
|
|
249
|
+
operatorid: [],
|
|
250
|
+
depid: [],
|
|
251
|
+
orgname: '',
|
|
252
|
+
depname: [],
|
|
253
|
+
operatorname: '',
|
|
254
|
+
condition: '',
|
|
255
|
+
orgConditionStr: '',
|
|
256
|
+
data: {},
|
|
257
|
+
other: [],
|
|
258
|
+
footer: [],
|
|
259
|
+
model: new PagedList('api/af-revenue/sql/manage_companyGasSummary', 20, {
|
|
260
|
+
startDate: 'this.model.startDate',
|
|
261
|
+
endDate: 'this.model.endDate',
|
|
262
|
+
f_user_type : 'this.model.f_user_type',
|
|
263
|
+
f_user_usetype : 'this.model.f_user_usetype',
|
|
264
|
+
f_user_usenature : 'this.model.f_user_usenature',
|
|
265
|
+
f_use_institution : 'this.model.f_use_institution'
|
|
266
|
+
}, {
|
|
267
|
+
f_oughtamount: 0,
|
|
268
|
+
f_oughtfee: 0,
|
|
269
|
+
f_pregas: 0,
|
|
270
|
+
f_collection: 0,
|
|
271
|
+
f_table_num: 0
|
|
272
|
+
}),
|
|
273
|
+
gasproperties: [],
|
|
274
|
+
show: false,
|
|
275
|
+
rowdata: {},
|
|
276
|
+
areaList: [],
|
|
277
|
+
modelval: [],
|
|
278
|
+
startDate: '',
|
|
279
|
+
endDate: '',
|
|
280
|
+
inputtouPerson: [],
|
|
281
|
+
printshow: false,
|
|
282
|
+
all: false,
|
|
283
|
+
fields: {},
|
|
284
|
+
thead: '',
|
|
285
|
+
tfoot: '',
|
|
286
|
+
defaultfield: [],
|
|
287
|
+
sumsmodel: {},
|
|
288
|
+
sumExport: { 'f_oughtamount': '期间用气量', 'f_pregas': '期间售气量'},
|
|
289
|
+
initres: {
|
|
290
|
+
org: [this.$login.f.orgid],
|
|
291
|
+
slice_area: [],
|
|
292
|
+
},
|
|
293
|
+
criteriaShow: true,
|
|
294
|
+
useinstitutions: [],
|
|
295
|
+
userusenatures: [],
|
|
296
|
+
corporatename: []
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
props: {
|
|
300
|
+
style: {
|
|
301
|
+
type: String,
|
|
302
|
+
default: 'col-sm-2 form-group'
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
ready () {
|
|
306
|
+
readySomething(this).then(() => {
|
|
307
|
+
this.$emit('ready')
|
|
308
|
+
}).catch((error) => {
|
|
309
|
+
this.$emit('error', error)
|
|
310
|
+
})
|
|
311
|
+
},
|
|
312
|
+
methods: {
|
|
313
|
+
getCurrentMonthFirst() {
|
|
314
|
+
let date = new Date()
|
|
315
|
+
date.setDate(1)
|
|
316
|
+
let month = parseInt(date.getMonth() + 1)
|
|
317
|
+
let day = date.getDate()
|
|
318
|
+
if (month < 10) month = '0' + month
|
|
319
|
+
if (day < 10) day = '0' + day
|
|
320
|
+
return date.getFullYear() + '-' + month + '-' + day
|
|
321
|
+
},
|
|
322
|
+
getCurrentMonthLast() {
|
|
323
|
+
let date = new Date()
|
|
324
|
+
let year = date.getFullYear()
|
|
325
|
+
let month = date.getMonth() + 1
|
|
326
|
+
month = month < 10 ? '0' + month : month
|
|
327
|
+
let day = new Date(year, month, 0)
|
|
328
|
+
return year + '-' + month + '-' + day.getDate()
|
|
329
|
+
},
|
|
330
|
+
// async getCompanyList(searchText){
|
|
331
|
+
// let condition = ' 1 = 1 '
|
|
332
|
+
// if (searchText) {
|
|
333
|
+
// condition = ` f_company_name like '%${searchText}%' `
|
|
334
|
+
// }
|
|
335
|
+
// let HttpReset = new HttpResetClass()
|
|
336
|
+
// HttpReset.load('POST', 'api/af-revenue/sql/manageSingleTable?pageNo=1&pageSize=100', {
|
|
337
|
+
// data: {
|
|
338
|
+
// items: 'f_company_name, id',
|
|
339
|
+
// tablename: 't_company',
|
|
340
|
+
// orderitem: 'id desc',
|
|
341
|
+
// condition: condition
|
|
342
|
+
// }
|
|
343
|
+
// }, {resolveMsg: null, rejectMsg: '获取单位信息失败!'}).then((req) => {
|
|
344
|
+
// let redata = []
|
|
345
|
+
// req.data.forEach((row, n) => {
|
|
346
|
+
// redata[n] = {
|
|
347
|
+
// label: row.f_company_name,
|
|
348
|
+
// value: row.id
|
|
349
|
+
// }
|
|
350
|
+
// })
|
|
351
|
+
// this.corporatename = [{label: '全部', value: ''}, ...redata]
|
|
352
|
+
// })
|
|
353
|
+
// },
|
|
354
|
+
clear() {
|
|
355
|
+
//清空部门和人员
|
|
356
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
357
|
+
//部门和人员变为全选
|
|
358
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
359
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
360
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
361
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
362
|
+
})
|
|
363
|
+
},
|
|
364
|
+
userTypeChange () {
|
|
365
|
+
console.log("======"+this.$refs.paged.$refs.cri.model.f_user_type)
|
|
366
|
+
this.userusetypes = []
|
|
367
|
+
this.userusenatures = []
|
|
368
|
+
this.useinstitutions = []
|
|
369
|
+
this.$refs.paged.$refs.cri.model.f_userusetype = []
|
|
370
|
+
this.$refs.paged.$refs.cri.model.f_use_institution = ''
|
|
371
|
+
this.$refs.paged.$refs.cri.model.f_user_usenature = ''
|
|
372
|
+
if (this.$refs.paged.$refs.cri.model.f_user_type) {
|
|
373
|
+
let str = this.$refs.paged.$refs.cri.model.f_user_type + '用气类型'
|
|
374
|
+
this.userusetypes = this.$appdata.getParam(str)
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
userUseTypeChange () {
|
|
378
|
+
this.useinstitutions = []
|
|
379
|
+
this.userusenatures = []
|
|
380
|
+
this.$refs.paged.$refs.cri.model.f_use_institution = ''
|
|
381
|
+
this.$refs.paged.$refs.cri.model.f_user_usenature = ''
|
|
382
|
+
if (this.$refs.paged.$refs.cri.model.f_userusetype.length > 0) {
|
|
383
|
+
for (var i = 0; i < this.$refs.paged.$refs.cri.model.f_userusetype.length; i++) {
|
|
384
|
+
let str = this.$refs.paged.$refs.cri.model.f_userusetype[i] + '机构'
|
|
385
|
+
let getParam = this.$appdata.getParam(str)
|
|
386
|
+
Array.prototype.push.apply(this.useinstitutions, getParam);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
let temp = {}
|
|
390
|
+
this.useinstitutions = this.useinstitutions.filter(function(item) {
|
|
391
|
+
var key = JSON.stringify(item);
|
|
392
|
+
return temp.hasOwnProperty(key) ? false : (temp[key] = true);
|
|
393
|
+
});
|
|
394
|
+
},
|
|
395
|
+
userUseInstitutionChange () {
|
|
396
|
+
this.userusenatures = []
|
|
397
|
+
this.$refs.paged.$refs.cri.model.f_user_usenature = ''
|
|
398
|
+
if (this.$refs.paged.$refs.cri.model.f_use_institution) {
|
|
399
|
+
let str = this.$refs.paged.$refs.cri.model.f_use_institution + '使用性质'
|
|
400
|
+
this.userusenatures = this.$appdata.getParam(str)
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
hidden () {
|
|
404
|
+
this.criteriaShow = !this.criteriaShow
|
|
405
|
+
},
|
|
406
|
+
getotherfooter () {
|
|
407
|
+
this.other = []
|
|
408
|
+
this.footer = []
|
|
409
|
+
let exportdata = this.getCondition
|
|
410
|
+
let otherInData = []
|
|
411
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
|
|
412
|
+
let footerData = [], exportfield = this.sumExport
|
|
413
|
+
footerData.push('合计')
|
|
414
|
+
let self = this
|
|
415
|
+
for (var field in self.sumsmodel) {
|
|
416
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
|
|
417
|
+
}
|
|
418
|
+
this.footer.push(footerData)
|
|
419
|
+
this.other.push(otherInData)
|
|
420
|
+
},
|
|
421
|
+
search () {
|
|
422
|
+
this.$refs.paged.$refs.cri.search()
|
|
423
|
+
},
|
|
424
|
+
appendCondition (data) {
|
|
425
|
+
console.log('data=====>',data)
|
|
426
|
+
let stringValue = ''
|
|
427
|
+
for (var i = 0; i < data.length; i++) {
|
|
428
|
+
if (data[i]) {
|
|
429
|
+
if (i === data.length - 1) {
|
|
430
|
+
stringValue = stringValue + "'" + data[i] + "'"
|
|
431
|
+
} else {
|
|
432
|
+
stringValue = stringValue + "'" + data[i] + "',"
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
return stringValue
|
|
437
|
+
},
|
|
438
|
+
async selfSearch (args) {
|
|
439
|
+
let companyCondition2 = '1=1'
|
|
440
|
+
if (this.$refs.paged.$refs.cri.model.f_userusetype.length > 0) {
|
|
441
|
+
this.$refs.paged.$refs.cri.model.f_user_usetype = this.appendCondition(this.$refs.paged.$refs.cri.model.f_userusetype)
|
|
442
|
+
} else {
|
|
443
|
+
this.$refs.paged.$refs.cri.model.f_user_usetype = ''
|
|
444
|
+
}
|
|
445
|
+
if (!this.orgConditionStr) {
|
|
446
|
+
args.condition = `${args.condition}` + ' and f_orgid = ' + this.$login.f.orgid
|
|
447
|
+
} else {
|
|
448
|
+
args.condition = `${args.condition}` + this.orgConditionStr
|
|
449
|
+
}
|
|
450
|
+
this.$refs.paged.$refs.cri.model.startDate = this.startDate
|
|
451
|
+
this.$refs.paged.$refs.cri.model.endDate = this.endDate
|
|
452
|
+
this.condition = args.condition
|
|
453
|
+
console.log("查看条件",this.condition)
|
|
454
|
+
await this.model.search(args.condition, args.model)
|
|
455
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
456
|
+
this.card = ''
|
|
457
|
+
this.IdCardInfo = ''
|
|
458
|
+
console.log('合计字段', this.sumsmodel)
|
|
459
|
+
this.$dispatch('cancel')
|
|
460
|
+
},
|
|
461
|
+
getRes (obj) {
|
|
462
|
+
this.orgConditionStr = obj
|
|
463
|
+
},
|
|
464
|
+
stamp () {
|
|
465
|
+
this.all = false
|
|
466
|
+
//默认选择要打印的列
|
|
467
|
+
this.modelval = defaultPrint.config
|
|
468
|
+
this.fields = this.getfield
|
|
469
|
+
console.log('所有打印字段', this.fields)
|
|
470
|
+
this.printshow = true
|
|
471
|
+
this.put()
|
|
472
|
+
},
|
|
473
|
+
put () {
|
|
474
|
+
// 对Modelval进行排序
|
|
475
|
+
this.sortModelval()
|
|
476
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>用户查询</th></tr><tr>`
|
|
477
|
+
for (let key of this.modelval) {
|
|
478
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
479
|
+
}
|
|
480
|
+
this.thead += '</tr>'
|
|
481
|
+
},
|
|
482
|
+
print () {
|
|
483
|
+
this.$refs.print.PrintAsFile()
|
|
484
|
+
this.printshow = false
|
|
485
|
+
},
|
|
486
|
+
dealmsg (val) {
|
|
487
|
+
console.log('---------------dealmsg')
|
|
488
|
+
this.rowdata = val
|
|
489
|
+
this.show = true
|
|
490
|
+
val.model = this.model.model
|
|
491
|
+
this.$dispatch('deal-msg', val)
|
|
492
|
+
},
|
|
493
|
+
close () {
|
|
494
|
+
this.printshow = false
|
|
495
|
+
this.all = false
|
|
496
|
+
},
|
|
497
|
+
// 对选择的列进行排序
|
|
498
|
+
sortModelval () {
|
|
499
|
+
let sortModel = []
|
|
500
|
+
Object.keys(this.fields).forEach((key) => {
|
|
501
|
+
if (this.modelval.includes(key)) {
|
|
502
|
+
sortModel.push(key)
|
|
503
|
+
}
|
|
504
|
+
})
|
|
505
|
+
this.modelval = sortModel
|
|
506
|
+
console.log('选择的打印的字段', this.modelval)
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
watch: {
|
|
510
|
+
'all' (val) {
|
|
511
|
+
if (val) {
|
|
512
|
+
this.modelval = this.bodyData
|
|
513
|
+
} else {
|
|
514
|
+
this.modelval = defaultPrint.config
|
|
515
|
+
this.put()
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
sumsmodel: {
|
|
519
|
+
handler: function (val) {
|
|
520
|
+
this.getotherfooter()
|
|
521
|
+
},
|
|
522
|
+
deep: true
|
|
523
|
+
},
|
|
524
|
+
'modelval.length' () {
|
|
525
|
+
this.put()
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
computed: {
|
|
529
|
+
getCondition () {
|
|
530
|
+
return {
|
|
531
|
+
condition: this.condition,
|
|
532
|
+
startDate: this.startDate,
|
|
533
|
+
endDate: this.endDate,
|
|
534
|
+
f_user_usetype : this.$refs.paged.$refs.cri.model.f_user_usetype,
|
|
535
|
+
f_user_type : this.$refs.paged.$refs.cri.model.f_user_type,
|
|
536
|
+
f_user_usenature : this.$refs.paged.$refs.cri.model.f_user_usenature,
|
|
537
|
+
f_use_institution : this.$refs.paged.$refs.cri.model.f_use_institution
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
getfield () {
|
|
541
|
+
return exportConfig.manageCompanyGasSummary
|
|
542
|
+
},
|
|
543
|
+
userusetypes() {
|
|
544
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]
|
|
545
|
+
},
|
|
546
|
+
useTypes () {
|
|
547
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用类型')]
|
|
548
|
+
},
|
|
549
|
+
usertypes () {
|
|
550
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
</script>
|
|
555
|
+
|