sale-client 4.1.230 → 4.2.1-ronghao
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 +29 -46
- package/package.json +2 -2
- package/src/App.vue +3 -3
- package/src/components/FilesManage/UserGeneralInfoTest.vue +4 -4
- package/src/components/FilesManageNew/FileUserFiles.vue +2 -4
- package/src/components/FilesManageNew/MeterinfoTest.vue +9 -9
- package/src/components/FilesManageNew/UserEssentialInfoTest.vue +201 -227
- package/src/components/FilesManageNew/UserGeneralInfoTest.vue +0 -2
- package/src/components/charge/business/CardMeterCenter.vue +1 -1
- package/src/components/charge/business/FilesComplete.vue +3 -3
- package/src/components/charge/business/IOTMeterCenter.vue +1 -1
- package/src/components/charge/business/OtherChargeNew.vue +68 -48
- package/src/components/common/userinfo_detail/UserInfoDetailManageNew.vue +10 -1
- package/src/components/common/userinfo_detail/ic_detail/CardHandRecord.vue +1 -1
- package/src/components/common/userinfo_detail/ic_detail/ChangeMeterQueryUser.vue +1 -1
- package/src/components/common/userinfo_detail/ic_detail/GarbageRecordList.vue +69 -0
- package/src/components/common/userinfo_detail/ic_detail/InsuranceChargesRecord.vue +384 -0
- package/src/components/common/userinfo_detail/ic_detail/WebHandQueryUser.vue +1 -1
- package/src/components/revenue/Common/MeterMessage.vue +1 -1
- package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
- package/src/components/revenue/HandManager/WebHand.vue +7 -4
- package/src/components/revenue/base/leftview/SafeCheck.vue +41 -3
- package/src/components/revenue/base/leftview/UserFeeInfo.vue +76 -0
- package/src/components/revenue/base/leftview/otherinfo.vue +1 -0
- package/src/components/revenue/base/rightview/CardList.vue +7 -3
- package/src/components/revenue/batchDeduction/batchDeductionList.vue +1 -1
- package/src/components/revenue/cardHandManage/cardDown.vue +18 -0
- package/src/components/revenue/changeInsurance/InsuranceAdd.vue +1 -0
- package/src/components/revenue/changeInsurance/InsuranceRecord.vue +2 -1
- package/src/components/revenue/comprehen/ComprehenOperation/BankPayment/BankPayment.vue +1 -1
- package/src/components/revenue/comprehen/ComprehenOperation/GiftFee/icTable.vue +4 -2
- package/src/components/revenue/comprehen/ComprehenOperation/QrPay/QrPaymentDetailed.vue +423 -423
- package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +469 -469
- package/src/components/revenue/comprehen/Maintenance/revenue/MeterOperatemain.vue +2 -2
- package/src/components/revenue/machineHandManage/ArrearsQuery.vue +938 -938
- package/src/components/revenue/machineHandManage/HandplanQuery.vue +1 -1
- package/src/components/revenue/machineHandManage/machineHand.vue +3 -2
- package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +970 -970
- package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
- package/src/filiale/bayan/ChargeList.vue +1010 -1010
- package/src/filiale/bayan/StockListmain.vue +543 -543
- package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
- package/src/filiale/dexin/MeterinfoTest.vue +1239 -0
- package/src/filiale/dexin/UserEssentialInfoTest.vue +602 -0
- package/src/filiale/dexin/sale.js +5 -0
- package/src/filiale/fugou/MeterinfoTest.vue +1 -1
- package/src/filiale/jiaxian/AutomaticPurse.vue +349 -0
- package/src/filiale/jiaxian/ChangeMeterQueryUser.vue +303 -0
- package/src/filiale/jiaxian/ChangeRecord.vue +44 -2
- package/src/filiale/jiaxian/FillCardQueryUser.vue +250 -0
- package/src/filiale/jiaxian/FillGasQueryUser.vue +270 -0
- package/src/filiale/jiaxian/OtherChargeQueryUser.vue +305 -0
- package/src/filiale/jiaxian/PriceAdjustmentQueryUser.vue +368 -0
- package/src/filiale/jiaxian/PriceChangeQueryUser.vue +243 -0
- package/src/filiale/jiaxian/QueryInstruct.vue +436 -0
- package/src/filiale/jiaxian/RecordQueryUser.vue +321 -0
- package/src/filiale/jiaxian/Repurchase.vue +181 -0
- package/src/filiale/jiaxian/TransferQueryUser.vue +274 -0
- package/src/filiale/jiaxian/UserInfoDetailManageNew.vue +11 -11
- package/src/filiale/jiaxian/Userinfo.vue +426 -0
- package/src/filiale/jiaxian/WatchCollection.vue +54 -1
- package/src/filiale/jiaxian/WebAutomaticPurse.vue +348 -0
- package/src/filiale/jiaxian/contractSigningList.vue +149 -0
- package/src/filiale/jiaxian/sale.js +5 -0
- package/src/filiale/jinhong/AutoAccountsDetail.vue +63 -0
- package/src/filiale/jinhong/CardList.vue +572 -0
- package/src/filiale/jinhong/CardMeterCenter.vue +1 -1
- package/src/filiale/jinhong/CardMeterCenterInner.vue +61 -22
- package/src/filiale/jinhong/GarbageCharge.vue +1 -1
- package/src/filiale/jinhong/HandplanQuery.vue +1430 -0
- package/src/filiale/jinhong/IOTMeterCenterInner.vue +42 -14
- package/src/filiale/jinhong/InsuranceAdd.vue +27 -5
- package/src/filiale/jinhong/InsuranceChargesDetails.vue +11 -5
- package/src/filiale/jinhong/InsuranceRecord.vue +4 -5
- package/src/filiale/jinhong/InsuranceTemp.vue +33 -5
- package/src/filiale/jinhong/MachineChargeService.js +8 -0
- package/src/filiale/jinhong/MachineMeterCenter.vue +38 -11
- package/src/filiale/jinhong/ShowCardSellGasInner.vue +46 -14
- package/src/filiale/jinhong/Userinfo.vue +75 -1
- package/src/filiale/jinhong/insuranceGuanL.vue +349 -0
- package/src/filiale/jinhong/machineDown.vue +1205 -0
- package/src/filiale/jinhong/sale.js +9 -0
- package/src/filiale/jinhuang/UserInfoDetailManageNew.vue +259 -0
- package/src/filiale/jinhuang/WebHand.vue +1026 -0
- package/src/filiale/jinhuang/WebHandQueryUser.vue +413 -0
- package/src/filiale/jinhuang/cardsHand.vue +911 -0
- package/src/filiale/jinhuang/sale.js +8 -0
- package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
- package/src/filiale/lixianV3/InsuranceAdd.vue +1 -0
- package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
- package/src/filiale/meihekou/CardMeterCenter.vue +991 -0
- package/src/filiale/meihekou/ChargeManage.vue +3 -2
- package/src/filiale/meihekou/ChargeOper.vue +279 -169
- package/src/filiale/meihekou/HandManager.vue +57 -2
- package/src/filiale/meihekou/NoCardMeterCenter.vue +542 -0
- package/src/filiale/meihekou/OverUseCharge.vue +1 -1
- package/src/filiale/meihekou/PrintBill.vue +48 -41
- package/src/filiale/meihekou/ReissueBill.vue +4 -1
- package/src/filiale/meihekou/ShowCardSellGas.vue +935 -0
- package/src/filiale/meihekou/TransferManage.vue +704 -0
- package/src/filiale/meihekou/Userinfo.vue +233 -5
- package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
- package/src/filiale/meihekou/icTable.vue +233 -0
- package/src/filiale/meihekou/machineHand.vue +2158 -0
- package/src/filiale/meihekou/manualChargeCenter.vue +394 -0
- package/src/filiale/meihekou/meterTable.vue +220 -0
- package/src/filiale/meihekou/sale.js +15 -0
- package/src/filiale/qianneng/MeterMessage.vue +1 -1
- package/src/filiale/qianneng/revenue/sms/AccountMessageList.vue +508 -508
- package/src/filiale/rizhao/InsuranceAdd.vue +1 -0
- package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
- package/src/filiale/ronghao/CardList.vue +19 -17
- package/src/filiale/ronghao/CardMeterChargeCancel.vue +5 -0
- package/src/filiale/ronghao/CardService.js +2144 -2144
- package/src/filiale/ronghao/ChangeMeterService.js +1 -1
- package/src/filiale/ronghao/ChargeList.vue +17 -17
- package/src/filiale/ronghao/ChargeManage.vue +325 -0
- package/src/filiale/ronghao/ChargeOper.vue +330 -0
- package/src/filiale/ronghao/FilesManageNew/UserEssentialInfoTest.vue +457 -0
- package/src/filiale/ronghao/FilesManageNew/UserGeneralInfoTest.vue +690 -0
- package/src/filiale/ronghao/HandplanQuery.vue +13 -14
- package/src/filiale/ronghao/IOTMeterCenter.vue +15 -6
- package/src/filiale/ronghao/InsuranceAdd.vue +1 -0
- package/src/filiale/ronghao/InsuranceManage.vue +58 -58
- package/src/filiale/ronghao/MachineChargeService.js +149 -149
- package/src/filiale/ronghao/NoCardMeterCenter.vue +534 -534
- package/src/filiale/ronghao/PaymentCode.vue +174 -174
- package/src/filiale/ronghao/PriceChangeCompensation/CompensationManage.vue +26 -26
- package/src/filiale/ronghao/PriceChangeCompensation/IotCompensation.vue +318 -318
- package/src/filiale/ronghao/PriceChangeCompensation/JbCompensation.vue +343 -343
- package/src/filiale/ronghao/PriceChangeCompensation/SurplusRecordDetail.vue +74 -74
- package/src/filiale/ronghao/ReplaceCardManage.vue +415 -415
- package/src/filiale/ronghao/Upload.vue +654 -654
- package/src/filiale/ronghao/Userinfo.vue +18 -18
- package/src/filiale/ronghao/cardDown.vue +1141 -1141
- package/src/filiale/ronghao/changemeterOperate.vue +315 -315
- package/src/filiale/ronghao/fillgasSpecific.vue +313 -313
- package/src/filiale/ronghao/ic_detail/ChargeRecordQuery.vue +106 -106
- package/src/filiale/ronghao/ic_detail/WatchCollection.vue +115 -115
- package/src/filiale/ronghao/ic_detail/WebHandQueryUser.vue +411 -411
- package/src/filiale/ronghao/machineDown.vue +1176 -1176
- package/src/filiale/ronghao/machineRefund.vue +3 -1
- package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
- package/src/filiale/ronghao/sale.js +11 -0
- package/src/filiale/ronghao/specificInformation.vue +537 -537
- package/src/filiale/ronghao/uploadFilesHistory.vue +214 -0
- package/src/filiale/ruihua/FilesManage/MeterinfoTest.vue +10 -0
- package/src/filiale/shanxian/components/revenue/InsuranceAdd.vue +1 -0
- package/src/filiale/wuan/MeterMessage.vue +1 -1
- package/src/filiale/yangchun/BasicLivingList.vue +281 -0
- package/src/filiale/yangchun/BlackList/BlackRecordQuery.vue +1 -0
- package/src/filiale/yangchun/CardChangeFill.vue +1 -1
- package/src/filiale/yangchun/ChargeList.vue +954 -954
- package/src/filiale/yangchun/FilesManage/UserPaperInfoTest.vue +3 -3
- package/src/filiale/yangchun/NewMeterList.vue +742 -0
- package/src/filiale/yangchun/sale.js +3 -0
- package/src/filiale/yuncheng/CardList.vue +1 -1
- package/src/filiale/yuncheng/IndustryCommerceHand.vue +1145 -0
- package/src/filiale/yuncheng/IndustryCommerceHandAudit.vue +794 -0
- package/src/filiale/yuncheng/IndustryCommerceHandManager.vue +64 -0
- package/src/filiale/yuncheng/InsuranceAdd.vue +1 -0
- package/src/filiale/yuncheng/MeterBookUser.vue +781 -0
- package/src/filiale/yuncheng/UserDeviceInfoTest.vue +2 -2
- package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
- package/src/filiale/yuncheng/industryDown.vue +1118 -0
- package/src/filiale/yuncheng/sale.js +11 -0
- package/src/filiale/yuncheng/uploadFilesHistory.vue +185 -0
- package/src/filiale/zhongsheng/BlackListList.vue +293 -293
- package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
- package/src/plugins/CardService.js +2217 -2217
- package/src/sale.js +3 -1
|
@@ -0,0 +1,911 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex-row">
|
|
3
|
+
<div @keyup.enter="search" class="basic-main">
|
|
4
|
+
<criteria-paged :model="model" v-ref:paged @sort="sort">
|
|
5
|
+
<criteria partial='criteria' v-ref:criteria @condition-changed="$parent.selfSearch">
|
|
6
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
7
|
+
<modal :show.sync="$parent.$parent.upshow" width="500px" title="文件导入" v-ref:modal large backdrop="false">
|
|
8
|
+
<article slot="modal-body" class="modal-body">
|
|
9
|
+
<file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success"
|
|
10
|
+
style="border-radius: 2px;"
|
|
11
|
+
action="api/af-revenue/file/uploadFile" tagname="导入抄表数据" v-ref:file :headers="headers"
|
|
12
|
+
multiple></file-upload>
|
|
13
|
+
</article>
|
|
14
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
15
|
+
</footer>
|
|
16
|
+
</modal>
|
|
17
|
+
<div class="row">
|
|
18
|
+
<div class="col-sm-2 form-group">
|
|
19
|
+
<label class="font_normal_body">开始日期</label>
|
|
20
|
+
<datepicker style="width:60%" id="startDate" placeholder="开始日期"
|
|
21
|
+
v-model="model.startDate"
|
|
22
|
+
:value.sync="model.startDate"
|
|
23
|
+
:format="'yyyy-MM-dd'"
|
|
24
|
+
:show-reset-button="true">
|
|
25
|
+
</datepicker>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="col-sm-2 form-group">
|
|
28
|
+
<label class="font_normal_body">结束日期</label>
|
|
29
|
+
<!--<label for="endDate" class="control-label">结束日期</label>-->
|
|
30
|
+
<datepicker style="width:60%" id="endDate" placeholder="结束日期"
|
|
31
|
+
v-model="model.endDate"
|
|
32
|
+
:value.sync="model.endDate"
|
|
33
|
+
:format="'yyyy-MM-dd'"
|
|
34
|
+
:show-reset-button="true">
|
|
35
|
+
</datepicker>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="col-sm-2 form-group">
|
|
38
|
+
<label class="font_normal_body">用户编号</label>
|
|
39
|
+
<input style="width:60%" type="text" class="form-control col-sm-6" v-model="model.f_userinfo_code"
|
|
40
|
+
condition="f_userinfo_code='{}'" placeholder='用户编号'
|
|
41
|
+
>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<div class="col-sm-2 form-group">
|
|
45
|
+
<label class="font_normal_body" style="color:red">抄表日期</label>
|
|
46
|
+
<!--<label for="endDate" class="control-label">结束日期</label>-->
|
|
47
|
+
<datepicker style="width:60%" id="handDate" placeholder="抄表录入日期"
|
|
48
|
+
v-model="$parent.$parent.handDate"
|
|
49
|
+
:value.sync="$parent.$parent.handDate"
|
|
50
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
51
|
+
:show-reset-button="true">
|
|
52
|
+
</datepicker>
|
|
53
|
+
</div>
|
|
54
|
+
<!--<div class="form-group">-->
|
|
55
|
+
<!--<input style="width:60%" type="text" class="form-control" v-model="model.f_user_id"-->
|
|
56
|
+
<!--condition="f_user_id='{}'" placeholder='表编号'-->
|
|
57
|
+
<!--:size="model.f_user_id ? model.f_user_id.length : 3">-->
|
|
58
|
+
<!--</div>-->
|
|
59
|
+
|
|
60
|
+
<div class="span" style="float:right;">
|
|
61
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
62
|
+
<button class="button_search" style="width: 90px" @click="$parent.$parent.downloadFiles()">模板下载</button>
|
|
63
|
+
<button class="button_search button_spacing" @click="$parent.$parent.clickupshow()">抄表导入</button>
|
|
64
|
+
<!--<button class="button_clear button_spacing" @click="$parent.$parent.searchPrint()">抄表模板导出</button>-->
|
|
65
|
+
<!--<button class="btn btn-success width-100" @click="$parent.$parent.batchAudit()">批量审核</button>
|
|
66
|
+
-->
|
|
67
|
+
<export-excel
|
|
68
|
+
:data="{startDate: $parent.$parent.startDate, endDate: $parent.$parent.endDate, condition: $parent.$parent.model.condition,orderitem: $parent.$parent.orderitem?$parent.$parent.orderitem :'f_userinfo_code'}"
|
|
69
|
+
:field="$parent.$parent.getfield"
|
|
70
|
+
sqlurl="api/af-revenue/logic/saleExport" progress="saleGetExportProgress" sql-name="getCardPlan"
|
|
71
|
+
template-name='卡表抄表导出'
|
|
72
|
+
:choose-col="true">
|
|
73
|
+
</export-excel>
|
|
74
|
+
<div
|
|
75
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
76
|
+
@click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
80
|
+
<div class="col-sm-2 form-group">
|
|
81
|
+
<label class="font_normal_body"> 小区域</label>
|
|
82
|
+
<v-select :value.sync="model.f_small_area" v-model="model.f_small_area"
|
|
83
|
+
:options='$parent.$parent.smallareas' placeholder='小区域'
|
|
84
|
+
close-on-select :search='true'
|
|
85
|
+
condition="f_small_area = '{}'"></v-select>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="col-sm-2 form-group">
|
|
88
|
+
<label class="font_normal_body">用户姓名</label>
|
|
89
|
+
<input style="width:60%" type="text" class="form-control" v-model="model.f_user_name" placeholder='用户姓名'
|
|
90
|
+
condition="f_user_name = '{}'">
|
|
91
|
+
</div>
|
|
92
|
+
<div class="col-sm-2 form-group">
|
|
93
|
+
<label class="font_normal_body">用户地址</label>
|
|
94
|
+
<input style="width:60%" type="text" class="form-control" v-model="model.f_address"
|
|
95
|
+
condition="f_address like '%{}%'" placeholder='用户地址'
|
|
96
|
+
>
|
|
97
|
+
</div>
|
|
98
|
+
<div class="col-sm-2 form-group">
|
|
99
|
+
<label class="font_normal_body">小  区</label>
|
|
100
|
+
<input style="width:60%" type="text" class="form-control" v-model="model.f_residential_area"
|
|
101
|
+
condition="f_residential_area like '%{}%'" placeholder='小区'
|
|
102
|
+
>
|
|
103
|
+
</div>
|
|
104
|
+
<div class="col-sm-2 form-group">
|
|
105
|
+
<label class="font_normal_body">楼  栋</label>
|
|
106
|
+
<input style="width:60%" type="text" class="form-control" v-model="model.f_building"
|
|
107
|
+
condition="f_building like '%{}%'" placeholder='楼栋'
|
|
108
|
+
>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="col-sm-2 form-group">
|
|
111
|
+
<label class="font_normal_body">单  元</label>
|
|
112
|
+
<input style="width:60%" type="text" class="form-control" v-model="model.f_unit"
|
|
113
|
+
condition="f_unit like '%{}%'" placeholder='单元'
|
|
114
|
+
>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="col-sm-2 form-group">
|
|
117
|
+
<label class="font_normal_body">楼  层</label>
|
|
118
|
+
<input style="width:60%" type="text" class="form-control" v-model="model.f_floor"
|
|
119
|
+
condition="f_floor like '%{}%'" placeholder='楼层'
|
|
120
|
+
>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="col-sm-2 form-group">
|
|
123
|
+
<label class="font_normal_body"> 门牌号</label>
|
|
124
|
+
<input style="width:60%" type="text" class="form-control" v-model="model.f_room"
|
|
125
|
+
condition="f_room like '%{}%'" placeholder='门牌号'
|
|
126
|
+
>
|
|
127
|
+
</div>
|
|
128
|
+
<div class="col-sm-2 form-group">
|
|
129
|
+
<label class="font_normal_body">表  号</label>
|
|
130
|
+
<input style="width:60%" type="text" class="form-control" v-model="model.f_meternumber"
|
|
131
|
+
condition="f_meternumber like '%{}%'" placeholder='表号'
|
|
132
|
+
>
|
|
133
|
+
</div>
|
|
134
|
+
<!--</div>-->
|
|
135
|
+
<!--<div class="row">-->
|
|
136
|
+
<div class="col-sm-2 form-group">
|
|
137
|
+
<label class="font_normal_body"> 抄表员</label>
|
|
138
|
+
<v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'
|
|
139
|
+
:options='$parent.$parent.inputtore' placeholder='抄表员'
|
|
140
|
+
close-on-select multiple="true"
|
|
141
|
+
></v-select>
|
|
142
|
+
</div>
|
|
143
|
+
<div class="col-sm-2 form-group">
|
|
144
|
+
<label class="font_normal_body">用户类型</label>
|
|
145
|
+
<v-select :value.sync="model.f_user_type" v-model="model.f_user_type"
|
|
146
|
+
:options='$parent.$parent.usertypes' placeholder='用户类型'
|
|
147
|
+
close-on-select :search='true'
|
|
148
|
+
condition="f_user_type = '{}'"></v-select>
|
|
149
|
+
</div>
|
|
150
|
+
<div class="col-sm-2 form-group">
|
|
151
|
+
<label class="font_normal_body">用气性质</label>
|
|
152
|
+
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
153
|
+
:options='$parent.$parent.gasproperties' placeholder='用气性质'
|
|
154
|
+
close-on-select :search='true'
|
|
155
|
+
condition="f_gasproperties = '{}'"></v-select>
|
|
156
|
+
</div>
|
|
157
|
+
<div class="col-sm-2 form-group">
|
|
158
|
+
<label class="font_normal_body">用户等级</label>
|
|
159
|
+
<v-select :value.sync="model.f_user_level" v-model="model.f_user_level"
|
|
160
|
+
:options='$parent.$parent.userlevels' placeholder='用户等级'
|
|
161
|
+
style="width:60%"
|
|
162
|
+
close-on-select
|
|
163
|
+
condition="f_user_level = '{}'"></v-select>
|
|
164
|
+
</div>
|
|
165
|
+
<!-- <div class="col-sm-2 form-group">
|
|
166
|
+
<label class="col-sm-4 font_normal_body">气价名称</label>
|
|
167
|
+
<v-select :value.sync="model.f_price_name"
|
|
168
|
+
v-model="model.f_price_name"
|
|
169
|
+
:options='$parent.$parent.pricenames' placeholder='气价名称'
|
|
170
|
+
condition="f_price_name= '{}'" class="col-sm-8"
|
|
171
|
+
close-on-select></v-select>
|
|
172
|
+
</div>-->
|
|
173
|
+
<div class="col-sm-2 form-group">
|
|
174
|
+
<label class="font_normal_body">抄表状态</label>
|
|
175
|
+
<v-select :value.sync="model.f_meter_state" v-model="model.f_meter_state"
|
|
176
|
+
:options='$parent.$parent.meterstates' placeholder='抄表状态'
|
|
177
|
+
close-on-select f_gasbrand_id
|
|
178
|
+
condition="f_meter_state {}"></v-select>
|
|
179
|
+
</div>
|
|
180
|
+
<div class="col-sm-2 form-group">
|
|
181
|
+
<label class="font_normal_body">气表品牌</label>
|
|
182
|
+
<v-select :value.sync="model.gasbrand" v-model="model.gasbrand"
|
|
183
|
+
:options='$parent.$parent.meterbrands' placeholder='气表品牌' close-on-select
|
|
184
|
+
v-model='$parent.$parent.gasbrand'
|
|
185
|
+
condition="f_meter_brand = '{}'"
|
|
186
|
+
></v-select>
|
|
187
|
+
</div>
|
|
188
|
+
<div class="col-sm-2 form-group">
|
|
189
|
+
<label class="font_normal_body">使用类型</label>
|
|
190
|
+
<v-select :value.sync="model.f_usetype"
|
|
191
|
+
v-model="model.f_usetype"
|
|
192
|
+
:options='$parent.$parent.usetype'
|
|
193
|
+
placeholder='使用类型'
|
|
194
|
+
style="width:60%"
|
|
195
|
+
close-on-select
|
|
196
|
+
condition="f_usetype = '{}'">
|
|
197
|
+
</v-select>
|
|
198
|
+
</div>
|
|
199
|
+
<res-select-group :show-component="['company','department','operator']" :initres="$parent.$parent.initres"
|
|
200
|
+
@re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
201
|
+
<hl-downdata class="col-sm-1 form-group" :info="model"></hl-downdata>
|
|
202
|
+
</div>
|
|
203
|
+
|
|
204
|
+
</div>
|
|
205
|
+
</criteria>
|
|
206
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid id="CardHand">
|
|
207
|
+
<template partial='head'>
|
|
208
|
+
<tr>
|
|
209
|
+
<th>
|
|
210
|
+
<nobr>序号</nobr>
|
|
211
|
+
</th>
|
|
212
|
+
<!-- <th>户编号</th>-->
|
|
213
|
+
<!-- <th>基本信息</th>-->
|
|
214
|
+
<th>
|
|
215
|
+
<nobr>
|
|
216
|
+
<data-order field="f_userinfo_code" name="户编号"
|
|
217
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
|
|
218
|
+
</nobr>
|
|
219
|
+
</th>
|
|
220
|
+
<th>
|
|
221
|
+
<nobr>
|
|
222
|
+
<data-order field="f_address" name="基本信息"
|
|
223
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
|
|
224
|
+
</nobr>
|
|
225
|
+
</th>
|
|
226
|
+
<th>
|
|
227
|
+
<nobr>用户等级</nobr>
|
|
228
|
+
</th>
|
|
229
|
+
<th>
|
|
230
|
+
<nobr>小区</nobr>
|
|
231
|
+
</th>
|
|
232
|
+
<th>
|
|
233
|
+
<nobr>表号</nobr>
|
|
234
|
+
</th>
|
|
235
|
+
<th>
|
|
236
|
+
<nobr>用户电话</nobr>
|
|
237
|
+
</th>
|
|
238
|
+
<th>
|
|
239
|
+
<nobr>抄表员</nobr>
|
|
240
|
+
</th>
|
|
241
|
+
<th>
|
|
242
|
+
<nobr>总购金额</nobr>
|
|
243
|
+
</th>
|
|
244
|
+
<th>
|
|
245
|
+
<nobr>累购气量</nobr>
|
|
246
|
+
</th>
|
|
247
|
+
<th>
|
|
248
|
+
<nobr>
|
|
249
|
+
<data-order field="f_hand_date" name="下发日期"
|
|
250
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_hand_date"></data-order>
|
|
251
|
+
</nobr>
|
|
252
|
+
</th>
|
|
253
|
+
<th>
|
|
254
|
+
<nobr>
|
|
255
|
+
<data-order field="f_last_input_date" name="上次抄表录入日期"
|
|
256
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_last_input_date"></data-order>
|
|
257
|
+
</nobr>
|
|
258
|
+
</th>
|
|
259
|
+
<th>
|
|
260
|
+
<nobr>
|
|
261
|
+
<data-order field="f_input_date" name="抄表录入日期"
|
|
262
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_input_date"></data-order>
|
|
263
|
+
</nobr>
|
|
264
|
+
</th>
|
|
265
|
+
<th>
|
|
266
|
+
<nobr>上期底数</nobr>
|
|
267
|
+
</th>
|
|
268
|
+
<th>
|
|
269
|
+
<nobr>本期底数</nobr>
|
|
270
|
+
</th>
|
|
271
|
+
<th>
|
|
272
|
+
<nobr>抄表结果</nobr>
|
|
273
|
+
</th>
|
|
274
|
+
<th>
|
|
275
|
+
<nobr>附件查看</nobr>
|
|
276
|
+
</th>
|
|
277
|
+
<th>
|
|
278
|
+
<nobr>签章图片</nobr>
|
|
279
|
+
</th>
|
|
280
|
+
<th>
|
|
281
|
+
<nobr>实际用量</nobr>
|
|
282
|
+
</th>
|
|
283
|
+
<th>
|
|
284
|
+
<nobr>剩余气量</nobr>
|
|
285
|
+
</th>
|
|
286
|
+
<th>
|
|
287
|
+
<nobr>状态</nobr>
|
|
288
|
+
</th>
|
|
289
|
+
<th>
|
|
290
|
+
<nobr>使用类型</nobr>
|
|
291
|
+
</th>
|
|
292
|
+
<th>
|
|
293
|
+
<nobr>操作</nobr>
|
|
294
|
+
</th>
|
|
295
|
+
<th>
|
|
296
|
+
<nobr>备注</nobr>
|
|
297
|
+
</th>
|
|
298
|
+
</tr>
|
|
299
|
+
</template>
|
|
300
|
+
<template partial='body'>
|
|
301
|
+
<td style="text-align: center;">{{ $index + 1 }}</td>
|
|
302
|
+
<td style="text-align: center;">{{ row.f_userinfo_code }}</td>
|
|
303
|
+
<td style="text-align: center;">
|
|
304
|
+
{{ row.f_user_name }} {{ row.f_gasproperties }} {{
|
|
305
|
+
row.f_user_phone
|
|
306
|
+
}} {{ row.f_address }}
|
|
307
|
+
</td>
|
|
308
|
+
<td>{{ row.f_user_level }}</td>
|
|
309
|
+
<td style="text-align: center;">{{ row.f_residential_area }}</td>
|
|
310
|
+
<td style="text-align: center;">{{ row.f_meternumber }}</td>
|
|
311
|
+
<td style="text-align: center;">{{ row.f_user_phone }}</td>
|
|
312
|
+
<td style="text-align: center;">{{ row.f_inputtor }}</td>
|
|
313
|
+
<td style="text-align: center;">{{ row.total_fee }}</td>
|
|
314
|
+
<td style="text-align: center;">{{ row.total_gas }}</td>
|
|
315
|
+
<td>{{row.f_hand_date}}</td>
|
|
316
|
+
<td>{{row.f_last_input_date}}</td>
|
|
317
|
+
<td style="text-align: center;">
|
|
318
|
+
<div class="form-group" style="margin-bottom:0px;display: contents;" :class="{
|
|
319
|
+
'has-success has-feedback': !row.error,
|
|
320
|
+
'has-error has-feedback': row.error}"
|
|
321
|
+
v-if="row.f_meter_state === '未抄表'">
|
|
322
|
+
<datepicker id="f_hand_date" placeholder="抄表录入日期"
|
|
323
|
+
v-model="row.f_input_date"
|
|
324
|
+
:value.sync="row.f_input_date"
|
|
325
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
326
|
+
:show-reset-button="true">
|
|
327
|
+
</datepicker>
|
|
328
|
+
</div>
|
|
329
|
+
<div v-else>
|
|
330
|
+
{{ row.f_input_date }}
|
|
331
|
+
</div>
|
|
332
|
+
</td>
|
|
333
|
+
<td style="text-align: center;">{{ row.f_last_tablebase }}</td>
|
|
334
|
+
<td style="text-align: center;">
|
|
335
|
+
<div class="form-group" style="margin-bottom:0px;" :class="{
|
|
336
|
+
'has-success has-feedback': row.f_tablebase ? ((row.f_last_tablebase-0) <= (row.f_tablebase -0)) : false,
|
|
337
|
+
'has-error has-feedback': row.f_tablebase ? ((row.f_last_tablebase-0) > (row.f_tablebase -0) ) : false}"
|
|
338
|
+
v-if="row.f_meter_state === '未抄表' ">
|
|
339
|
+
<input type="text" class="form-control" v-model="row.f_tablebase"
|
|
340
|
+
@blur="$parent.$parent.$parent.enter(row)"
|
|
341
|
+
v-next-el="{id: $index+1}" :id="$index" style="width: 100px;padding: 6px;"
|
|
342
|
+
:disabled="row.state === '开始'"
|
|
343
|
+
@focus="$parent.$parent.$parent.clearError(row)">
|
|
344
|
+
</div>
|
|
345
|
+
<div v-else>
|
|
346
|
+
<span v-if="row.f_tablebase">{{ row.f_tablebase }}</span>
|
|
347
|
+
</div>
|
|
348
|
+
<span v-if="row.error" style="color: red;">{{ row.error }}</span>
|
|
349
|
+
</td>
|
|
350
|
+
<td>
|
|
351
|
+
<div class="form-group" style="margin-bottom:0px;display: contents;" :class="{
|
|
352
|
+
'has-success has-feedback': !row.error,
|
|
353
|
+
'has-error has-feedback': row.error}"
|
|
354
|
+
v-if="row.f_meter_state === '未抄表' && row.states !== 0">
|
|
355
|
+
<v-select :value.sync="row.f_result_state" v-model="row.f_result_state"
|
|
356
|
+
:options='$parent.$parent.$parent.resultstate' placeholder='抄表结果'
|
|
357
|
+
width="100%"
|
|
358
|
+
:value-single="true"
|
|
359
|
+
close-on-select
|
|
360
|
+
condition="f_adjustable_name = '{}'"></v-select>
|
|
361
|
+
<!-- <span id="inputError2Status" class="sr-only">(error)</span> -->
|
|
362
|
+
</div>
|
|
363
|
+
<div v-else>
|
|
364
|
+
{{ row.f_result_state }}
|
|
365
|
+
</div>
|
|
366
|
+
</td>
|
|
367
|
+
<td style="text-align:center">
|
|
368
|
+
<img-self :src="row.f_handplan_image" v-if="row.f_handplan_image" :width="100" :height="100"></img-self>
|
|
369
|
+
<img-self :src="`rs/image/file/${row.f_notified_path}`" v-if="row.f_notified_path" :width="100" :height="100"></img-self>
|
|
370
|
+
<img-self :src="`rs/image/file/${row.f_second_notified_path}`" v-if="row.f_second_notified_path" :width="100" :height="100"></img-self>
|
|
371
|
+
</td>
|
|
372
|
+
<td style="text-align:center">
|
|
373
|
+
<img-self :src="row.f_sign_path" v-if="row.f_sign_path.indexOf('http:') > -1" :width="100" :height="100"></img-self>
|
|
374
|
+
<img-self :src="`rs/image/file/${row.f_sign_path}`" v-else :width="100" :height="100"></img-self>
|
|
375
|
+
</td>
|
|
376
|
+
|
|
377
|
+
<td style="text-align: center;">{{ row.f_actualtablebase }}</td>
|
|
378
|
+
<td style="text-align: center;">
|
|
379
|
+
<div class="form-group" style="margin-bottom:0px;"
|
|
380
|
+
v-if="row.f_meter_state === '未抄表' ">
|
|
381
|
+
<input type="text" class="form-control" v-model="row.f_shengyu_gas"
|
|
382
|
+
v-next-el="{id: $index+1}" :id="$index" style="width: 100px;padding: 6px;"
|
|
383
|
+
:disabled="row.state === '开始'"
|
|
384
|
+
>
|
|
385
|
+
</div>
|
|
386
|
+
<div v-else>
|
|
387
|
+
<span >{{ row.f_shengyu_gas }}</span>
|
|
388
|
+
</div>
|
|
389
|
+
</td>
|
|
390
|
+
<td style="text-align: center;">{{ row.f_meter_state }}</td>
|
|
391
|
+
<td style="text-align: center;">{{ row.f_usetype }}</td>
|
|
392
|
+
<td style="text-align: center;">
|
|
393
|
+
|
|
394
|
+
<!-- <button type="button" name="button" class="btn btn-link"-->
|
|
395
|
+
<!-- @click.stop="$parent.$parent.$parent.modify(row)"-->
|
|
396
|
+
<!-- v-if="row.f_meter_state === '已抄表' && !$parent.$parent.$parent.jurisdiction.includes('审核权限')">修正</button>-->
|
|
397
|
+
|
|
398
|
+
<!-- <button type="button" name="button" class="btn btn-link"
|
|
399
|
+
@click.stop="$parent.$parent.$parent.pass(row)"
|
|
400
|
+
v-if="$parent.$parent.$parent.jurisdiction.includes('审核权限') && row.f_meter_state === '待审核'">通过</button>
|
|
401
|
+
|
|
402
|
+
<button type="button" name="button" class="btn btn-link"
|
|
403
|
+
@click.stop="$parent.$parent.$parent.nopass(row)"
|
|
404
|
+
v-if="row.f_meter_state === '待审核' && $parent.$parent.$parent.jurisdiction.includes('审核权限')">不通过</button>-->
|
|
405
|
+
<button type="button" name="button" class="button_search button_spacing width-60" title="权限名称:(卡表抄表冲正)"
|
|
406
|
+
@click.stop="$parent.$parent.$parent.cardhandCenter(row)"
|
|
407
|
+
v-if="row.f_meter_state === '已抄表'">冲正
|
|
408
|
+
</button>
|
|
409
|
+
</td>
|
|
410
|
+
<td><span title="{{row.f_card_reason}}"
|
|
411
|
+
v-if="row.f_card_reason">{{ row.f_card_reason.substring(0, 5) }} ...</span>
|
|
412
|
+
</td>
|
|
413
|
+
</template>
|
|
414
|
+
</data-grid>
|
|
415
|
+
</criteria-paged>
|
|
416
|
+
<table class="table-hover">
|
|
417
|
+
<tr style="position: relative" class="table-bordered">
|
|
418
|
+
<td
|
|
419
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
420
|
+
汇总信息
|
|
421
|
+
</td>
|
|
422
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
|
|
423
|
+
抄表用量: {{ sumsmodel.f_actualtablebase }}
|
|
424
|
+
</td>
|
|
425
|
+
</tr>
|
|
426
|
+
</table>
|
|
427
|
+
<modal :show.sync="cardCental" v-ref:modal backdrop="false">
|
|
428
|
+
<header slot="modal-header" class="modal-header">
|
|
429
|
+
<h4 class="modal-title">卡表抄表冲正</h4>
|
|
430
|
+
</header>
|
|
431
|
+
<article slot="modal-body" class="modal-body">
|
|
432
|
+
<div class="form-group">
|
|
433
|
+
<label class="label-control">撤销原因</label>
|
|
434
|
+
<textarea class="form-control" v-model="cardreason" rows="3" placeholder="请填写撤销原因"></textarea>
|
|
435
|
+
</div>
|
|
436
|
+
</article>
|
|
437
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
438
|
+
<button v-show="cardCental" type="button" class="btn btn-default" @click='close'>取消</button>
|
|
439
|
+
<button v-show="cardCental" type="button" class="btn btn-success" @click='cancel(this.cardCentalData)'>确认
|
|
440
|
+
</button>
|
|
441
|
+
</footer>
|
|
442
|
+
</modal>
|
|
443
|
+
</div>
|
|
444
|
+
</div>
|
|
445
|
+
</template>
|
|
446
|
+
<script>
|
|
447
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
448
|
+
import Vue from 'vue'
|
|
449
|
+
import AppData from '../../stores/AppData'
|
|
450
|
+
import * as Util from '../../Util'
|
|
451
|
+
import co from 'co'
|
|
452
|
+
|
|
453
|
+
let loadParamGem = async function (self) {
|
|
454
|
+
await self.$LoadParams.loadParam(self.f_filialeid)
|
|
455
|
+
self.loadMeterBooks()
|
|
456
|
+
}
|
|
457
|
+
let modifyGen = function* (self, row, url) {
|
|
458
|
+
console.log('抄表修正,。。。', row, url)
|
|
459
|
+
self.cardCental = false
|
|
460
|
+
self.cardCentalData = ''
|
|
461
|
+
row.f_user_id = row.f_user_id + ''
|
|
462
|
+
// 删除待审核的抄表记录
|
|
463
|
+
let state = yield self.$resetpost(url, {data: row}, {warnMsg: null, rejectMsg: null, resolveMsg: null})
|
|
464
|
+
if (state.data === '异常') {
|
|
465
|
+
Vue.showAlert('该笔抄表有差额记录,请先冲正!!!', 'warning', 4000)
|
|
466
|
+
return
|
|
467
|
+
} else if (state.data === '正常') {
|
|
468
|
+
Vue.showAlert('冲正成功,稍等片刻,正在重新查询!', 'success', 4000)
|
|
469
|
+
}
|
|
470
|
+
self.cardreason = ''
|
|
471
|
+
// 重新查询界面
|
|
472
|
+
self.search()
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
export default {
|
|
476
|
+
title: '卡表抄表',
|
|
477
|
+
data () {
|
|
478
|
+
return {
|
|
479
|
+
initres: {
|
|
480
|
+
org: [this.$login.f.orgid],
|
|
481
|
+
dep: [],
|
|
482
|
+
user: []
|
|
483
|
+
},
|
|
484
|
+
timer: null,
|
|
485
|
+
// 请求对象(批量导入,查询进度使用)
|
|
486
|
+
HttpReset: new HttpResetClass(),
|
|
487
|
+
resultstate: this.$appdata.getParam('卡表抄表表状态'),
|
|
488
|
+
criteriaShow: false,
|
|
489
|
+
orderitem: 'f_userinfo_code',
|
|
490
|
+
model: new PagedList('api/af-revenue/sql/getCardPlan', 50, {orderitem: this.orderitem ? '"' + this.orderitem + ' "' : `'f_userinfo_code'`}, {f_actualtablebase: 0}),
|
|
491
|
+
// model: new PagedList('api/af-revenue/sql/cardHands', 50),
|
|
492
|
+
startDate: Util.toStartAndEndDateString()[0],
|
|
493
|
+
endDate: Util.toStartAndEndDateString()[1],
|
|
494
|
+
handDate: null,
|
|
495
|
+
batch_audit: false,
|
|
496
|
+
cardCental: false,
|
|
497
|
+
// 合计数据
|
|
498
|
+
sumsmodel: {},
|
|
499
|
+
orderFields: {
|
|
500
|
+
f_userinfo_id: 'no'
|
|
501
|
+
},
|
|
502
|
+
f_filialeid: this.$login.f.orgid,
|
|
503
|
+
cardreason: '',
|
|
504
|
+
cardCentalData: '',
|
|
505
|
+
getfield: {
|
|
506
|
+
'id': '抄表单编号',
|
|
507
|
+
'f_userinfo_code': '客户编号',
|
|
508
|
+
'f_user_name': '客户姓名',
|
|
509
|
+
'f_meternumber': '表号',
|
|
510
|
+
'f_gasproperties': '用气性质',
|
|
511
|
+
'f_user_phone': '客户电话',
|
|
512
|
+
'f_address': '客户地址',
|
|
513
|
+
'f_inputtor': '抄表员',
|
|
514
|
+
'total_fee': '总购金额',
|
|
515
|
+
'total_gas': '累购气量',
|
|
516
|
+
'f_hand_date': '下发日期',
|
|
517
|
+
'f_last_input_date': '上次抄表录入日期',
|
|
518
|
+
'f_input_date': '抄表录入日期',
|
|
519
|
+
'f_last_tablebase': '上期底数',
|
|
520
|
+
'f_tablebase': '本期底数',
|
|
521
|
+
'f_shengyu_gas': '剩余气量',
|
|
522
|
+
'f_actualtablebase': '实际用量',
|
|
523
|
+
'f_img_path': '附件查看',
|
|
524
|
+
'f_sign_img': '签章图片',
|
|
525
|
+
'f_meter_state': '状态',
|
|
526
|
+
'f_usetype': '使用类型'
|
|
527
|
+
},
|
|
528
|
+
meterbrands: [{label: '全部', value: ''}],
|
|
529
|
+
upshow: false,
|
|
530
|
+
orgCondtionStr: ''
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
beforeDestroy () {
|
|
534
|
+
// 销毁定时器
|
|
535
|
+
if (this.timer) clearInterval(this.timer)
|
|
536
|
+
},
|
|
537
|
+
ready () {
|
|
538
|
+
this.$refs.paged.$refs.criteria.model.startDate = Util.toStartAndEndDateString()[0]
|
|
539
|
+
this.$refs.paged.$refs.criteria.model.endDate = Util.toStartAndEndDateString()[1]
|
|
540
|
+
loadParamGem(this)
|
|
541
|
+
},
|
|
542
|
+
methods: {
|
|
543
|
+
downloadFiles () {
|
|
544
|
+
let downurl = 'api/af-revenue/downloadfile/file?filename=卡表批量抄表导入模板'
|
|
545
|
+
this.$downFile(downurl,'卡表批量抄表导入模板.xlsx')
|
|
546
|
+
},
|
|
547
|
+
hidden () {
|
|
548
|
+
this.criteriaShow = !this.criteriaShow
|
|
549
|
+
},
|
|
550
|
+
loadMeterBooks () {
|
|
551
|
+
let meterbrand = this.$GetSaleParam.getGasbrand()
|
|
552
|
+
for (let row of meterbrand) {
|
|
553
|
+
console.log(row)
|
|
554
|
+
this.meterbrands.push({label: row.label, value: row.label})
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
search () {
|
|
558
|
+
this.$refs.paged.$refs.criteria.search()
|
|
559
|
+
},
|
|
560
|
+
clickupshow () {
|
|
561
|
+
console.log('in upload', this.upshow, !this.upshow)
|
|
562
|
+
this.upshow = !this.upshow
|
|
563
|
+
},
|
|
564
|
+
searchPrint () {
|
|
565
|
+
console.log('mode', this.model)
|
|
566
|
+
let cons = this.model.params
|
|
567
|
+
console.log('查询条件', cons)
|
|
568
|
+
let data = {
|
|
569
|
+
'body': {
|
|
570
|
+
'data': {
|
|
571
|
+
'condition': ''
|
|
572
|
+
},
|
|
573
|
+
'field': [],
|
|
574
|
+
'templateName': '',
|
|
575
|
+
'sqlName': ''
|
|
576
|
+
},
|
|
577
|
+
'condition': cons,
|
|
578
|
+
'sqlname': 'cardHands'
|
|
579
|
+
}
|
|
580
|
+
this.$resetpost('api/af-revenue/logic/allExportExcel', {data: data}, {resolveMsg: null, rejectMsg: '上传失败'}).then((res) => {
|
|
581
|
+
if (res.data === 'no user') {
|
|
582
|
+
this.$showAlert(`无匹配用户,无法导出对应excel`, 'warning', 2000)
|
|
583
|
+
} else {
|
|
584
|
+
var link = document.createElement('a')
|
|
585
|
+
res.data.forEach((item) => {
|
|
586
|
+
console.log('导出路径', item.filename)
|
|
587
|
+
let path = item.filename
|
|
588
|
+
// 本地
|
|
589
|
+
// let pathName = "http://" + location.host + "/excel" + path.split('excel')[1]
|
|
590
|
+
// 服务器
|
|
591
|
+
let pathName = 'http://' + location.host + '/webapps' + path.split('webapps')[1]
|
|
592
|
+
link.href = pathName
|
|
593
|
+
console.log('=============================', path.split('excel/')[1])
|
|
594
|
+
link.download = path.split('excel/')[1]
|
|
595
|
+
link.dispatchEvent(new MouseEvent('click'))
|
|
596
|
+
})
|
|
597
|
+
}
|
|
598
|
+
})
|
|
599
|
+
},
|
|
600
|
+
changeType () {
|
|
601
|
+
if (this.$refs.paged.$refs.criteria.model.f_meter_classify && this.$refs.paged.$refs.criteria.model.f_meter_classify.length > 0) {
|
|
602
|
+
this.$dispatch('type', this.$refs.paged.$refs.criteria.model.f_meter_classify[0])
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
getRes (obj) {
|
|
606
|
+
this.orgCondtionStr = obj
|
|
607
|
+
},
|
|
608
|
+
selfSearch (args) {
|
|
609
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
610
|
+
|
|
611
|
+
this.startDate = this.$refs.paged.$refs.criteria.model.startDate
|
|
612
|
+
this.endDate = this.$refs.paged.$refs.criteria.model.endDate
|
|
613
|
+
console.log('卡表抄表查询参数,。,。', args, this.model)
|
|
614
|
+
this.model.params.startDate = this.$refs.paged.$refs.criteria.model.startDate
|
|
615
|
+
this.model.params.endDate = this.$refs.paged.$refs.criteria.model.endDate
|
|
616
|
+
|
|
617
|
+
// 抄表员查询条件
|
|
618
|
+
this.inputtouPerson = this.$refs.paged.$refs.criteria.model.f_inputtor
|
|
619
|
+
if (this.inputtouPerson.length !== 0) {
|
|
620
|
+
let str = JSON.stringify(this.inputtouPerson)
|
|
621
|
+
str = str.replace(/"/g, `'`)
|
|
622
|
+
str = str.replace(/\[/g, ``)
|
|
623
|
+
str = str.replace(/\]/g, ``)
|
|
624
|
+
console.log('=====抄表员model22222222222绑定====', str)
|
|
625
|
+
// 查询多个抄表员时条件
|
|
626
|
+
args.condition += ` and f_inputtor in ( ${str} )`
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
if (!this.orgCondtionStr) {
|
|
630
|
+
args.condition = `${args.condition} and f_orgid = '${this.$login.f.orgid}'`
|
|
631
|
+
} else {
|
|
632
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
633
|
+
}
|
|
634
|
+
if (args.model.f_meter_state.length > 0) {
|
|
635
|
+
console.log('选择待审核状态了', args.model)
|
|
636
|
+
this.batch_audit = args.model.f_meter_state[0] !== '已抄表' && args.model.f_meter_state[0] !== '未抄表'
|
|
637
|
+
}
|
|
638
|
+
this.model.search(args.condition, this.model)
|
|
639
|
+
},
|
|
640
|
+
reflash () {
|
|
641
|
+
this.$refs.paged.$refs.criteria.search()
|
|
642
|
+
},
|
|
643
|
+
enter (row) {
|
|
644
|
+
if (!row.f_tablebase || ((row.f_tablebase - 0) - (row.f_last_tablebase - 0)).toFixed(3) < 0) {
|
|
645
|
+
return
|
|
646
|
+
}
|
|
647
|
+
if (row.f_tablebase.toString().split(".").length>1 && row.f_tablebase.toString().split(".")[1].length>3) {
|
|
648
|
+
Vue.set(row, 'error', '底数最多只能输入小数点后3位')
|
|
649
|
+
return
|
|
650
|
+
}
|
|
651
|
+
// || ((row.f_tablebase - 0) - (row.f_last_tablebase - 0)).toFixed(3) < 0
|
|
652
|
+
if (row.f_tablebase) {
|
|
653
|
+
// 如果本期底数大于上期底数生成超用收费
|
|
654
|
+
// if ((row.f_tablebase - 0) > (row.f_meter_base - 0)) {
|
|
655
|
+
// row.charge_type = '超用收费'
|
|
656
|
+
// row.f_real_amount = (row.f_tablebase - 0) - (row.f_last_tablebase - 0)
|
|
657
|
+
// } else if ((row.f_tablebase - 0) < (row.f_meter_base - 0)) {
|
|
658
|
+
// // 如果本地底数小于上期底数生成补差收费
|
|
659
|
+
// row.charge_type = '补差收费'
|
|
660
|
+
// row.f_real_amount = (row.f_tablebase - 0) - (row.f_last_tablebase - 0)
|
|
661
|
+
// } else if ((row.f_tablebase - 0) == (row.f_last_tablebase - 0)) {
|
|
662
|
+
// row.charge_type = '正常收费'
|
|
663
|
+
// row.f_real_amount = 0
|
|
664
|
+
// }
|
|
665
|
+
row.f_operator = this.$login.f.name
|
|
666
|
+
row.f_filiale = this.$login.f.f_fengongsi
|
|
667
|
+
row.f_outlets = this.$login.f.f_parentname
|
|
668
|
+
row.f_meter_state = '已抄表'
|
|
669
|
+
if (this.handDate) {
|
|
670
|
+
row.f_input_date = this.handDate
|
|
671
|
+
}
|
|
672
|
+
row.f_input_date = row.f_input_date ? row.f_input_date : Util.toStandardTimeString()
|
|
673
|
+
row.f_last_input_date = row.f_last_input_date ? row.f_last_input_date : row.f_input_date
|
|
674
|
+
row.f_operate_date = Util.toStandardTimeString()
|
|
675
|
+
row.f_filialeids = this.$login.f.orgid
|
|
676
|
+
row.f_orgid = this.$login.f.orgid
|
|
677
|
+
row.f_orgname = this.$login.f.orgs
|
|
678
|
+
row.f_depid = this.$login.f.depids
|
|
679
|
+
row.f_depname = this.$login.f.deps
|
|
680
|
+
row.f_operatorid = this.$login.f.id
|
|
681
|
+
row.f_user_id = row.f_user_id + ''
|
|
682
|
+
row.f_total_gas = row.total_gas
|
|
683
|
+
row.f_total_fee = row.total_fee
|
|
684
|
+
// 余气量=累购-(本期指数-表初始指数)
|
|
685
|
+
console.log('录入完毕。。', row)
|
|
686
|
+
this.$resetpost('api/af-revenue/logic/cardCommonEnter', row, {resolveMsg: null, rejectMsg: '录入数据出错!!!'}).then((res) => {
|
|
687
|
+
console.log('返回数据', res)
|
|
688
|
+
row.id = res.data.id
|
|
689
|
+
console.log('录入完数据的row值,,', row)
|
|
690
|
+
}).catch((error) => {
|
|
691
|
+
row.state = '失败'
|
|
692
|
+
Vue.set(row, 'error', JSON.stringify(error))
|
|
693
|
+
})
|
|
694
|
+
} else {
|
|
695
|
+
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
batchAudit () {
|
|
699
|
+
// 批量审核
|
|
700
|
+
console.log('录入完毕。。', this.model.condition)
|
|
701
|
+
this.$resetpost('api/af-revenue/logic/batchCardHandAudit', {
|
|
702
|
+
data: {
|
|
703
|
+
condition: this.model.condition,
|
|
704
|
+
startDate: this.$refs.paged.$refs.criteria.model.startDate,
|
|
705
|
+
endDate: this.$refs.paged.$refs.criteria.model.endDate
|
|
706
|
+
}
|
|
707
|
+
}, {resolveMsg: null, rejectMsg: '批量审核出错!!!'}, 0).then((res) => {
|
|
708
|
+
if (res.data.f_state === '异常') {
|
|
709
|
+
this.$showAlert(`本次审核有${res.data.handRepeatLength}户重复抄表,请处理后再进行审核操作!重复用户编号:${res.data.userRepeat}`, 'warning', 10000)
|
|
710
|
+
} else {
|
|
711
|
+
console.log('审核通过', res.data)
|
|
712
|
+
this.$showAlert(`批量审核成功!!! 审核抄表数: ${res.data.total}, 成功条数: ${res.data.success}`, 'success', 4000)
|
|
713
|
+
this.search()
|
|
714
|
+
}
|
|
715
|
+
})
|
|
716
|
+
},
|
|
717
|
+
modify (row) {
|
|
718
|
+
// 录入错误进行修正
|
|
719
|
+
co(modifyGen(this, row, 'api/af-revenue/logic/cardhandnopass'))
|
|
720
|
+
},
|
|
721
|
+
pass (row) {
|
|
722
|
+
co(modifyGen(this, row, 'api/af-revenue/logic/cardhandpass'))
|
|
723
|
+
},
|
|
724
|
+
nopass (row) {
|
|
725
|
+
co(modifyGen(this, row, 'api/af-revenue/logic/cardhandnopass'))
|
|
726
|
+
},
|
|
727
|
+
cardhandCenter (row) {
|
|
728
|
+
// let load = new HttpResetClass()
|
|
729
|
+
// load.load('POST', 'api/af-revenue/logic/Correct', {data: row}, {warnMsg: null, resolveMsg: null})
|
|
730
|
+
// 抄表加入权限
|
|
731
|
+
if (!this.$login.r.find(value => value == '卡表抄表冲正')) {
|
|
732
|
+
this.$showMessage('当前登录用户没有冲正权限, 请联系管理员!')
|
|
733
|
+
return
|
|
734
|
+
}
|
|
735
|
+
this.cardCental = true
|
|
736
|
+
this.cardCentalData = row
|
|
737
|
+
},
|
|
738
|
+
cancel (row) {
|
|
739
|
+
row.operatorInfo = {
|
|
740
|
+
f_filiale: this.$login.f.f_fengongsi,
|
|
741
|
+
f_outlets: this.$login.f.f_parentname,
|
|
742
|
+
f_operator: this.$login.f.name,
|
|
743
|
+
cardreason: this.cardreason
|
|
744
|
+
}
|
|
745
|
+
row.f_last_hand_date = row.f_last_input_date
|
|
746
|
+
co(modifyGen(this, row, 'api/af-revenue/logic/cardhandCancel'))
|
|
747
|
+
},
|
|
748
|
+
close () {
|
|
749
|
+
this.cardCental = false
|
|
750
|
+
this.cardCentalData = ''
|
|
751
|
+
this.cardreason = ''
|
|
752
|
+
},
|
|
753
|
+
clearError (row) {
|
|
754
|
+
if (row.f_tablebase === 0) {
|
|
755
|
+
row.f_tablebase = ''
|
|
756
|
+
}
|
|
757
|
+
Vue.set(row, 'error', null)
|
|
758
|
+
},
|
|
759
|
+
// 删除这条计划
|
|
760
|
+
delectHand (row) {
|
|
761
|
+
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
|
762
|
+
if (res === 'confirm') {
|
|
763
|
+
this.$resetpost('api/af-revenue/logic/deleteCardPlan', {data: row}).then(() => {
|
|
764
|
+
let condition = this.model.condition
|
|
765
|
+
this.selfSearch({condition: condition})
|
|
766
|
+
})
|
|
767
|
+
}
|
|
768
|
+
})
|
|
769
|
+
},
|
|
770
|
+
sort (field, rule) {
|
|
771
|
+
// 将所有排序方式设为不排序,实现相互排斥
|
|
772
|
+
for (let key in this.orderFields) {
|
|
773
|
+
if (key === field) {
|
|
774
|
+
this.orderFields[key] = rule
|
|
775
|
+
} else {
|
|
776
|
+
this.orderFields[key] = 'no'
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
// 如果新规则不排序,还原为默认排序
|
|
780
|
+
if (rule === 'no') {
|
|
781
|
+
this.model.paramSource.orderitem = `'${this.orderitem}'`
|
|
782
|
+
} else {
|
|
783
|
+
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
this.search()
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
computed: {
|
|
790
|
+
inputtore () {
|
|
791
|
+
// 获取抄表员
|
|
792
|
+
console.log('获取抄表员', this.$login.f)
|
|
793
|
+
let rs = []
|
|
794
|
+
if (this.$login.f.f_gasman.length > 0) {
|
|
795
|
+
for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
|
|
796
|
+
let temp = {
|
|
797
|
+
label: this.$login.f.f_gasman[i].name,
|
|
798
|
+
value: this.$login.f.f_gasman[i].name
|
|
799
|
+
}
|
|
800
|
+
rs.push(temp)
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
this.inputtores2 = rs
|
|
804
|
+
return [...rs]
|
|
805
|
+
},
|
|
806
|
+
meterstates () {
|
|
807
|
+
return [{label: '全部', value: ''}, {label: '未抄表', value: "= '未抄表'"}, {
|
|
808
|
+
label: '已抄表',
|
|
809
|
+
value: "= '已抄表'"
|
|
810
|
+
}, {label: '冲正', value: "='冲正'"}]
|
|
811
|
+
},
|
|
812
|
+
specialuser () {
|
|
813
|
+
return [{label: '全部', value: ''}, {label: '正常用户', value: "= '正常用户'"}, {label: '采暖户', value: "= '采暖户'"}]
|
|
814
|
+
},
|
|
815
|
+
usertypes () {
|
|
816
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
817
|
+
},
|
|
818
|
+
usetype () {
|
|
819
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用类型')]
|
|
820
|
+
},
|
|
821
|
+
userlevels () {
|
|
822
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')]
|
|
823
|
+
},
|
|
824
|
+
smallareas () {
|
|
825
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('小区域')]
|
|
826
|
+
},
|
|
827
|
+
ventilationstate () {
|
|
828
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('通气手续')]
|
|
829
|
+
},
|
|
830
|
+
gasproperties () {
|
|
831
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
|
|
832
|
+
},
|
|
833
|
+
pricenames () {
|
|
834
|
+
let arr = []
|
|
835
|
+
AppData.getOnlyPrice().forEach((item) => {
|
|
836
|
+
let temp = {}
|
|
837
|
+
temp.label = item.label
|
|
838
|
+
temp.value = item.value.f_price_name
|
|
839
|
+
arr.push(temp)
|
|
840
|
+
})
|
|
841
|
+
return [{label: '全部', value: ''}, ...arr]
|
|
842
|
+
},
|
|
843
|
+
whetherpaies () {
|
|
844
|
+
return [
|
|
845
|
+
{label: '全部', value: ''},
|
|
846
|
+
{label: '已缴费', value: '是'},
|
|
847
|
+
{label: '未缴费', value: '否'}
|
|
848
|
+
]
|
|
849
|
+
},
|
|
850
|
+
// 界面细节权限
|
|
851
|
+
jurisdiction () {
|
|
852
|
+
return this.$login.r ? this.$login.r : []
|
|
853
|
+
},
|
|
854
|
+
brand () {
|
|
855
|
+
return [{
|
|
856
|
+
label: '全部',
|
|
857
|
+
value: {f_meter_brand: '', gasmodel: [{label: '全部', value: {f_meter_style: ''}}]}
|
|
858
|
+
}, ...AppData.getGasbrand()]
|
|
859
|
+
}
|
|
860
|
+
},
|
|
861
|
+
events: {
|
|
862
|
+
onFileUpload: function (file, res) {
|
|
863
|
+
console.log('进入了抄表上传')
|
|
864
|
+
let uuid = this.$login.guid()
|
|
865
|
+
let data1 = {
|
|
866
|
+
filepath: res.f_downloadpath,
|
|
867
|
+
f_operator: this.$login.f.name,
|
|
868
|
+
f_operatorid: this.$login.f.id,
|
|
869
|
+
f_orgid: this.$login.f.orgid,
|
|
870
|
+
f_orgname: this.$login.f.orgs,
|
|
871
|
+
f_depid: this.$login.f.depids,
|
|
872
|
+
f_depname: this.$login.f.deps,
|
|
873
|
+
uuid: uuid
|
|
874
|
+
}
|
|
875
|
+
console.log('传入数据', data1)
|
|
876
|
+
try {
|
|
877
|
+
this.$resetpost('api/af-revenue/handPlanAudit/cardBatchCommonEnter', data1, {resolveMsg: null, rejectMsg: null}, 1000)
|
|
878
|
+
} catch (e) {
|
|
879
|
+
}
|
|
880
|
+
this.$showMessage(`正在批量处理中, 请耐心等待...`, [])
|
|
881
|
+
// 启动定时器定时查询处理结果
|
|
882
|
+
this.timer = setInterval(async () => {
|
|
883
|
+
let res = await this.HttpReset.load('POST', 'api/af-revenue/logic/getBatchOperaPro', {data: {uuid: uuid}}, {
|
|
884
|
+
resolveMsg: null,
|
|
885
|
+
rejectMsg: null
|
|
886
|
+
})
|
|
887
|
+
console.log('查询进度返回: ', res)
|
|
888
|
+
if (res.data.msg || res.data.error) {
|
|
889
|
+
clearInterval(this.timer)
|
|
890
|
+
this.$closeMessage()
|
|
891
|
+
if (res.data.error) {
|
|
892
|
+
this.$showAlert(`${res.data.error}`, 'danger')
|
|
893
|
+
return
|
|
894
|
+
}
|
|
895
|
+
await this.$showMessage(`处理总条数: ${res.data.n}, 成功${res.data.success}条, 失败${res.data.fail}条`)
|
|
896
|
+
this.upshow = false
|
|
897
|
+
this.search()
|
|
898
|
+
}
|
|
899
|
+
}, 5000)
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
</script>
|
|
904
|
+
<style lang="less">
|
|
905
|
+
#CardHand {
|
|
906
|
+
thead {
|
|
907
|
+
position: relative;
|
|
908
|
+
z-index: 2;
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
</style>
|