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,794 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="basic-main" style="height: 98%">
|
|
3
|
+
<div class="flex">
|
|
4
|
+
<criteria-paged :model="model" v-ref:paged @sort="sort">
|
|
5
|
+
<criteria partial='criteria' v-ref:cri @condition-changed="$parent.selfSearch">
|
|
6
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
7
|
+
<div class="row">
|
|
8
|
+
<!--<div class="col-sm-6">-->
|
|
9
|
+
<!--style="border: 1px solid #a6d5ea; box-shadow: darkgrey 1px 1px 1px 2px;padding: 0.5%">-->
|
|
10
|
+
<div class="col-sm-2 form-group">
|
|
11
|
+
<label class="font_normal_body">下发日期</label>
|
|
12
|
+
<datepicker placeholder="开始日期"
|
|
13
|
+
style="width:60%"
|
|
14
|
+
class="datepicker"
|
|
15
|
+
v-model="model.startDate"
|
|
16
|
+
:value.sync="model.startDate"
|
|
17
|
+
condition="f_hand_date >='{} 00:00:00'"
|
|
18
|
+
:format="'yyyy-MM-dd'"
|
|
19
|
+
></datepicker>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="col-sm-2 form-group">
|
|
22
|
+
<label class="font_normal_body">  至 </label>
|
|
23
|
+
<datepicker placeholder="结束日期"
|
|
24
|
+
style="width:60%"
|
|
25
|
+
v-model="model.endDate"
|
|
26
|
+
:value.sync="model.endDate"
|
|
27
|
+
condition="f_hand_date <='{} 23:59:59'"
|
|
28
|
+
:format="'yyyy-MM-dd'"
|
|
29
|
+
></datepicker>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<div class="col-sm-2 form-group">
|
|
33
|
+
<label class="font_normal_body">客户编号</label>
|
|
34
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
35
|
+
condition="f_userinfo_code='{}'" placeholder='客户编号'>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<div class="span" style="float:right;">
|
|
39
|
+
|
|
40
|
+
<button class="button_search button_spacing" @click="$parent.$parent.search()">查询</button>
|
|
41
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
42
|
+
<export-excel
|
|
43
|
+
:data="{condition: $parent.$parent.excelCondition,orderitem: $parent.$parent.orderDefault}"
|
|
44
|
+
:field="$parent.$parent.fields"
|
|
45
|
+
sqlurl="api/af-revenue/logic/saleExport" progress="saleGetExportProgress" sql-name="getAuditIndustryHand"
|
|
46
|
+
template-name='抄表审核导出'
|
|
47
|
+
:choose-col="true">
|
|
48
|
+
</export-excel>
|
|
49
|
+
<button class="button_search button_spacing width-60"
|
|
50
|
+
v-show="model.f_meter_state == '待审核' && $parent.$parent.auditStateShow" @click="$parent.$parent.allsuccess()" v-el:cx>全部通过</button>
|
|
51
|
+
<button class="button_search button_spacing width-60"
|
|
52
|
+
v-show="model.f_meter_state == '待审核' && $parent.$parent.auditStateShow" @click="$parent.$parent.allfaild()" v-el:cx>全部不通过</button>
|
|
53
|
+
<div
|
|
54
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
55
|
+
@click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
59
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
60
|
+
<!-- <label class="font_normal_body">表 编 号</label>-->
|
|
61
|
+
<!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_id"-->
|
|
62
|
+
<!-- condition="f_user_id='{}'" placeholder='表编号'>-->
|
|
63
|
+
<!-- </div>-->
|
|
64
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
65
|
+
<!-- <label class="font_normal_body">抄表状态</label>-->
|
|
66
|
+
<!-- <v-select :value.sync="model.f_audit_state"-->
|
|
67
|
+
<!-- class="select_list select"-->
|
|
68
|
+
<!-- v-model="model.f_audit_state"-->
|
|
69
|
+
<!-- style="width: 60%"-->
|
|
70
|
+
<!-- condition="f_meter_state = '{}'"-->
|
|
71
|
+
<!-- :options='$parent.$parent.auditState' placeholder='请选择'-->
|
|
72
|
+
<!-- close-on-select v-el:cc>-->
|
|
73
|
+
<!-- </v-select>-->
|
|
74
|
+
<!-- </div>-->
|
|
75
|
+
<div class="col-sm-2 form-group">
|
|
76
|
+
<label class="font_normal_body">表  号</label>
|
|
77
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
|
|
78
|
+
condition="f_meternumber like '%{}%'" placeholder='表号'>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="col-sm-2 form-group">
|
|
81
|
+
<label class="font_normal_body">客户姓名</label>
|
|
82
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name" placeholder='客户姓名'
|
|
83
|
+
condition="f_user_name = '{}'">
|
|
84
|
+
</div>
|
|
85
|
+
<div class="col-sm-2 form-group">
|
|
86
|
+
<label class="font_normal_body">小    区</label>
|
|
87
|
+
<v-select :value.sync="model.f_residential_area"
|
|
88
|
+
class="select_list select"
|
|
89
|
+
enter-push
|
|
90
|
+
v-model="model.f_residential_area"
|
|
91
|
+
style="width: 60%"
|
|
92
|
+
multiple="true"
|
|
93
|
+
:options='$parent.$parent.residentialArea' placeholder='选择小区'
|
|
94
|
+
close-on-select v-el:cc>
|
|
95
|
+
</v-select>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="col-sm-2 form-group">
|
|
98
|
+
<label class="font_normal_body">楼  栋</label>
|
|
99
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_building"
|
|
100
|
+
condition="f_building = '{}'" placeholder='楼栋'>
|
|
101
|
+
</div>
|
|
102
|
+
<div class="col-sm-2 form-group">
|
|
103
|
+
<label class="font_normal_body">单  元</label>
|
|
104
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
|
|
105
|
+
condition="f_unit = '{}'" placeholder='单元'>
|
|
106
|
+
</div>
|
|
107
|
+
<div class="col-sm-2 form-group">
|
|
108
|
+
<label class="font_normal_body">楼  层</label>
|
|
109
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
|
|
110
|
+
condition="f_floor = '{}'" placeholder='楼层'>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="col-sm-2 form-group">
|
|
113
|
+
<label class="font_normal_body">门 牌 号</label>
|
|
114
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_room"
|
|
115
|
+
condition="f_room like '%{}%'" placeholder='门牌号'>
|
|
116
|
+
</div>
|
|
117
|
+
<div class="col-sm-2 form-group">
|
|
118
|
+
<label class="font_normal_body">客户地址</label>
|
|
119
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_address"
|
|
120
|
+
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="col-sm-2 form-group">
|
|
123
|
+
<label class="font_normal_body">抄 表 员</label>
|
|
124
|
+
<v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'
|
|
125
|
+
style="width:60%"
|
|
126
|
+
multiple="true"
|
|
127
|
+
:options='$parent.$parent.inputtores' placeholder='抄表员'
|
|
128
|
+
close-on-select
|
|
129
|
+
v-el:cc></v-select>
|
|
130
|
+
</div>
|
|
131
|
+
|
|
132
|
+
<div class="col-sm-2 form-group">
|
|
133
|
+
<label class="font_normal_body">客户类型</label>
|
|
134
|
+
<v-select :value.sync="model.f_user_type" v-model="model.f_user_type"
|
|
135
|
+
:options='$parent.$parent.usertypes' placeholder='客户类型'
|
|
136
|
+
style="width:60%"
|
|
137
|
+
close-on-select
|
|
138
|
+
condition="f_user_type = '{}'"></v-select>
|
|
139
|
+
</div>
|
|
140
|
+
<div class="col-sm-2 form-group">
|
|
141
|
+
<label class="font_normal_body">抄表状态</label>
|
|
142
|
+
<v-select :value.sync="model.f_meter_state" v-model="model.f_meter_state"
|
|
143
|
+
:options='$parent.$parent.meterstates' placeholder='抄表状态'
|
|
144
|
+
style="width:60%"
|
|
145
|
+
:value-single="true"
|
|
146
|
+
close-on-select
|
|
147
|
+
condition="f_meter_state = '{}'"></v-select>
|
|
148
|
+
</div>
|
|
149
|
+
<div class="col-sm-2 form-group">
|
|
150
|
+
<label class="font_normal_body">审核状态</label>
|
|
151
|
+
<v-select :value.sync="model.f_audit_state" v-model="model.f_audit_state"
|
|
152
|
+
:options='$parent.$parent.auditstates' placeholder='审核状态'
|
|
153
|
+
style="width:60%"
|
|
154
|
+
:value-single="true"
|
|
155
|
+
close-on-select
|
|
156
|
+
condition="f_audit_state = '{}'"></v-select>
|
|
157
|
+
</div>
|
|
158
|
+
<div class="col-sm-2 flex-row" style="white-space: nowrap" >
|
|
159
|
+
<label class="font_normal_body">应交气量</label>
|
|
160
|
+
<div class="row">
|
|
161
|
+
<input type="text" style="width:30%" class="input_search" v-model="model.oughtamountmin"
|
|
162
|
+
condition="f_oughtamount >= {} " placeholder="">
|
|
163
|
+
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
164
|
+
<input type="text" style="width:30%" class="input_search" v-model="model.oughtamountmax"
|
|
165
|
+
condition="f_oughtamount <= {} " placeholder="">
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
<res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"
|
|
169
|
+
v-ref:sel></res-select-group>
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
</div>
|
|
173
|
+
</criteria>
|
|
174
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid id="hand_manager_grid" :optional="true">
|
|
175
|
+
<template partial='head'>
|
|
176
|
+
<tr>
|
|
177
|
+
<th> <nobr>审核</nobr></th>
|
|
178
|
+
<!--<th><input type='checkbox' v-model="$parent.$parent.$parent.all" @change="$parent.$parent.$parent.chooseAll"></th>-->
|
|
179
|
+
<th>
|
|
180
|
+
<nobr>序号</nobr>
|
|
181
|
+
</th>
|
|
182
|
+
<th>
|
|
183
|
+
<nobr>客户编号
|
|
184
|
+
<!-- <data-order field="f_userinfo_code" name="客户编号"-->
|
|
185
|
+
<!-- :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>-->
|
|
186
|
+
</nobr>
|
|
187
|
+
</th>
|
|
188
|
+
<!-- <th>-->
|
|
189
|
+
<!-- <nobr>表编号</nobr>-->
|
|
190
|
+
<!-- </th>-->
|
|
191
|
+
<!-- <th>基本信息</th>-->
|
|
192
|
+
<th>
|
|
193
|
+
<nobr>
|
|
194
|
+
基本信息
|
|
195
|
+
<!-- <data-order field="f_address" name="基本信息"-->
|
|
196
|
+
<!-- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>-->
|
|
197
|
+
</nobr>
|
|
198
|
+
</th>
|
|
199
|
+
<th>
|
|
200
|
+
<nobr>表号</nobr>
|
|
201
|
+
</th>
|
|
202
|
+
<th><nobr>附件</nobr></th>
|
|
203
|
+
<th>
|
|
204
|
+
<nobr>上期底数</nobr>
|
|
205
|
+
</th>
|
|
206
|
+
<th>
|
|
207
|
+
<nobr>本期底数</nobr>
|
|
208
|
+
</th>
|
|
209
|
+
<th>
|
|
210
|
+
<nobr>备注</nobr>
|
|
211
|
+
</th>
|
|
212
|
+
|
|
213
|
+
<th>
|
|
214
|
+
<nobr>应交气量</nobr>
|
|
215
|
+
</th>
|
|
216
|
+
<th>
|
|
217
|
+
<nobr>是否欠费</nobr>
|
|
218
|
+
</th>
|
|
219
|
+
<th>
|
|
220
|
+
<nobr>抄表结果状态</nobr>
|
|
221
|
+
</th>
|
|
222
|
+
<th>
|
|
223
|
+
<nobr>剩余气量</nobr>
|
|
224
|
+
</th>
|
|
225
|
+
<!-- <th>上次抄表日期</th>-->
|
|
226
|
+
<th>
|
|
227
|
+
<nobr>
|
|
228
|
+
上次抄表录入日期
|
|
229
|
+
<!-- <data-order field="f_last_input_date" name="上次抄表录入日期"-->
|
|
230
|
+
<!-- :order.sync="$parent.$parent.$parent.orderFields.f_last_input_date"></data-order>-->
|
|
231
|
+
</nobr>
|
|
232
|
+
</th>
|
|
233
|
+
<!-- <th>下发日期</th>-->
|
|
234
|
+
<th>
|
|
235
|
+
<nobr>下发日期
|
|
236
|
+
<!-- <data-order field="f_hand_date" name="下发日期"-->
|
|
237
|
+
<!-- :order.sync="$parent.$parent.$parent.orderFields.f_hand_date"></data-order>-->
|
|
238
|
+
</nobr>
|
|
239
|
+
</th>
|
|
240
|
+
<!-- <th>抄表日期</th>-->
|
|
241
|
+
<th>
|
|
242
|
+
<nobr>抄表录入日期
|
|
243
|
+
<!-- <data-order field="f_input_date" name="抄表录入日期"-->
|
|
244
|
+
<!-- :order.sync="$parent.$parent.$parent.orderFields.f_input_date"></data-order>-->
|
|
245
|
+
</nobr>
|
|
246
|
+
</th>
|
|
247
|
+
<!-- <th>抄表册</th>-->
|
|
248
|
+
<th>
|
|
249
|
+
<nobr>抄表册
|
|
250
|
+
<!-- <data-order field="f_book_name" name="抄表册"-->
|
|
251
|
+
<!-- :order.sync="$parent.$parent.$parent.orderFields.f_book_name"></data-order>-->
|
|
252
|
+
</nobr>
|
|
253
|
+
|
|
254
|
+
</th>
|
|
255
|
+
<th>
|
|
256
|
+
<nobr>审核状态</nobr>
|
|
257
|
+
</th>
|
|
258
|
+
<th>
|
|
259
|
+
<nobr>审核原因</nobr>
|
|
260
|
+
</th>
|
|
261
|
+
<th>
|
|
262
|
+
<nobr>
|
|
263
|
+
<data-order field="f_meter_book_sort" name="表册顺序"
|
|
264
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_meter_book_sort"></data-order>
|
|
265
|
+
</nobr>
|
|
266
|
+
</th>
|
|
267
|
+
<th>
|
|
268
|
+
<nobr>调压箱名称</nobr>
|
|
269
|
+
</th>
|
|
270
|
+
<th>
|
|
271
|
+
<nobr>抄表员</nobr>
|
|
272
|
+
</th>
|
|
273
|
+
</tr>
|
|
274
|
+
</template>
|
|
275
|
+
<template partial='body'>
|
|
276
|
+
<td style="text-align: center;" class="row auto">
|
|
277
|
+
<nobr>
|
|
278
|
+
<button type="button" name="button" class="button_search button_spacing width-60"
|
|
279
|
+
@click.stop="$parent.$parent.$parent.pass(row)"
|
|
280
|
+
v-if="row.f_meter_state === '待审核'">通过
|
|
281
|
+
</button>
|
|
282
|
+
|
|
283
|
+
<button type="button" name="button" class="button_search button_spacing width-60"
|
|
284
|
+
@click.stop="$parent.$parent.$parent.showReasonModal(row)"
|
|
285
|
+
v-if="row.f_meter_state === '待审核' ">不通过
|
|
286
|
+
</button>
|
|
287
|
+
</nobr>
|
|
288
|
+
</td>
|
|
289
|
+
<!--<td style="text-align: center;">-->
|
|
290
|
+
<!--<input v-if="row.f_meter_state === '未下发'"-->
|
|
291
|
+
<!--:id="model.pageIndex" type='checkbox' @change="$parent.$parent.$parent.chooseOne($event,row,model.rows)"-->
|
|
292
|
+
<!--:checked="$parent.$parent.$parent.ischecked(row)"/>-->
|
|
293
|
+
<!--</td>-->
|
|
294
|
+
<td style="text-align: center;"><nobr>{{$index + 1}}</nobr></td>
|
|
295
|
+
<td><nobr>{{row.f_userinfo_code}}</nobr></td>
|
|
296
|
+
<!-- <td>{{row.f_user_id}}</td>-->
|
|
297
|
+
<td> <nobr>{{row.f_user_name}} {{row.f_address}} </nobr></td>
|
|
298
|
+
|
|
299
|
+
<!--<td>{{row.f_building}}</td>-->
|
|
300
|
+
<!--<td>{{row.f_unit}}</td>-->
|
|
301
|
+
<!--<td>{{row.f_room}}</td>-->
|
|
302
|
+
|
|
303
|
+
<!-- <td style="text-align: center;">{{Math.round(row.avggas)}}</td>-->
|
|
304
|
+
<td><nobr>{{row.f_meternumber}}</nobr></td>
|
|
305
|
+
<td style="text-align: center;"><nobr>
|
|
306
|
+
<button v-if="row.f_notified_path" class="btn btn-link" @click.stop="$parent.$parent.$parent.imgShow(row.f_notified_path)">图像识别1</button>
|
|
307
|
+
<br>
|
|
308
|
+
<button v-if="row.f_notified2_path" class="btn btn-link" @click.stop="$parent.$parent.$parent.imgShow(row.f_notified2_path)">图像识别2</button>
|
|
309
|
+
<br>
|
|
310
|
+
<button v-if="row.f_notified3_path" class="btn btn-link" @click.stop="$parent.$parent.$parent.imgShow(row.f_notified3_path)">图像识别3</button>
|
|
311
|
+
</nobr></td>
|
|
312
|
+
<td><nobr>{{row.f_meter_base}}</nobr></td>
|
|
313
|
+
<td id="hand-creat" style="display: flex;justify-content: space-between;align-items: center">
|
|
314
|
+
<nobr>
|
|
315
|
+
<b>{{row.f_tablebase}}</b>
|
|
316
|
+
<button type="button" name="button" class="button_search button_spacing width-60"
|
|
317
|
+
@click.stop="$parent.$parent.$parent.amend(row)">修正
|
|
318
|
+
</button>
|
|
319
|
+
</nobr>
|
|
320
|
+
</td>
|
|
321
|
+
<td><nobr>{{row.f_comments}}</nobr></td>
|
|
322
|
+
<td style="text-align: center;"><nobr>{{row.f_oughtamount}}</nobr></td>
|
|
323
|
+
<td style="text-align: center;"><nobr>{{row.f_isarrears}}</nobr></td>
|
|
324
|
+
<td><nobr>{{row.f_result_state}}</nobr></td>
|
|
325
|
+
<td><nobr>{{row.f_surplus_gas}}</nobr></td>
|
|
326
|
+
<td><nobr>{{row.f_last_input_date}}</nobr></td>
|
|
327
|
+
<td><nobr>{{row.f_hand_date}}</nobr></td>
|
|
328
|
+
<td><nobr>{{row.f_input_date}}</nobr></td>
|
|
329
|
+
<td><nobr>{{row.f_book_name}} </nobr></td>
|
|
330
|
+
<td><nobr>{{row.f_audit_state}} </nobr></td>
|
|
331
|
+
<td><nobr>{{row.f_review_reason}} </nobr></td>
|
|
332
|
+
<td><nobr>{{row.f_meter_book_sort}} </nobr></td>
|
|
333
|
+
<td><nobr>{{row.f_adjustable_name}}</nobr></td>
|
|
334
|
+
<td><nobr>{{row.f_inputtor}}</nobr></td>
|
|
335
|
+
</template>
|
|
336
|
+
</data-grid>
|
|
337
|
+
</criteria-paged>
|
|
338
|
+
<!-- <table class="table-hover">-->
|
|
339
|
+
<!-- <tr style="position: relative" class="table-bordered">-->
|
|
340
|
+
<!-- <td-->
|
|
341
|
+
<!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
|
|
342
|
+
<!-- 汇总信息-->
|
|
343
|
+
<!-- </td>-->
|
|
344
|
+
<!-- <td-->
|
|
345
|
+
<!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
|
|
346
|
+
<!-- 支付宝金额汇总: {{sumsmodel.f_total_charge}}-->
|
|
347
|
+
<!-- </td>-->
|
|
348
|
+
<!-- <td-->
|
|
349
|
+
<!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
|
|
350
|
+
<!-- 收费金额汇总: {{sumsmodel.f_collection}}-->
|
|
351
|
+
<!-- </td>-->
|
|
352
|
+
<!-- <td-->
|
|
353
|
+
<!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
|
|
354
|
+
<!-- 差额汇总: {{((sumsmodel.f_total_charge -0) - (sumsmodel.f_collection -0)).toFixed(2)}}-->
|
|
355
|
+
<!-- </td>-->
|
|
356
|
+
<!-- </tr>-->
|
|
357
|
+
<!-- </table>-->
|
|
358
|
+
</div>
|
|
359
|
+
</div>
|
|
360
|
+
|
|
361
|
+
<modal :show.sync="imgshow" v-ref:modal backdrop="true" coverstyle="modalContentRight">
|
|
362
|
+
<header slot="modal-header" class="modal-header">
|
|
363
|
+
抄表图像识别照片
|
|
364
|
+
</header>
|
|
365
|
+
<article slot="modal-body" class="modal-body">
|
|
366
|
+
<div class="from-group">
|
|
367
|
+
<img-self-sale-plus :src="imgfilename" :list="imgfilename" :width="750" :height="750"></img-self-sale-plus>
|
|
368
|
+
</div>
|
|
369
|
+
</article>
|
|
370
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
371
|
+
<button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
|
|
372
|
+
</footer>
|
|
373
|
+
</modal>
|
|
374
|
+
|
|
375
|
+
<!-- 不通过原因弹框-->
|
|
376
|
+
<modal :show.sync="showReason" v-ref:modal backdrop="true">
|
|
377
|
+
<header slot="modal-header" class="modal-header">
|
|
378
|
+
请输入审核不通过原因
|
|
379
|
+
</header>
|
|
380
|
+
<article slot="modal-body" class="modal-body">
|
|
381
|
+
<textarea cols="100" rows="10" style="resize: none;" v-model="reasonText"></textarea>
|
|
382
|
+
</article>
|
|
383
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
384
|
+
<button type="button" class="btn button_search" @click=subReason>确定</button>
|
|
385
|
+
<button type="button" class="btn btn-success" style="padding: 8px 12px;" @click=closeReason>关闭</button>
|
|
386
|
+
</footer>
|
|
387
|
+
</modal>
|
|
388
|
+
</template>
|
|
389
|
+
<script>
|
|
390
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
391
|
+
import Vue from 'vue'
|
|
392
|
+
import * as Util from '../../Util'
|
|
393
|
+
|
|
394
|
+
let readyGen = async function (self) {
|
|
395
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStartAndEndDateString()[0]
|
|
396
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
|
|
397
|
+
await self.$LoadParams.loadMeterBook(self.f_filialeid)
|
|
398
|
+
self.loadMeterBooks()
|
|
399
|
+
self.$refs.paged.$refs.cri.model.f_meter_state = '待审核'
|
|
400
|
+
self.getaddress()
|
|
401
|
+
await self.$LoadParams.loadParam(self.f_filialeid)
|
|
402
|
+
self.getPricenames()
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export default {
|
|
406
|
+
title: '机表抄表审核',
|
|
407
|
+
data () {
|
|
408
|
+
return {
|
|
409
|
+
// 请求对象(批量导入,查询进度使用)
|
|
410
|
+
HttpReset: new HttpResetClass(),
|
|
411
|
+
timer: null,
|
|
412
|
+
model: new PagedList('api/af-revenue/sql/getAuditIndustryHand', 50, {orderitem: this.orderDefault ? '"' + this.orderDefault + ' "' : `'f_hand_date desc'`}),
|
|
413
|
+
initres: {
|
|
414
|
+
org: [this.$login.f.orgid],
|
|
415
|
+
dep: [],
|
|
416
|
+
user: []
|
|
417
|
+
},
|
|
418
|
+
config: {
|
|
419
|
+
examine: false
|
|
420
|
+
},
|
|
421
|
+
imgfilename: '',
|
|
422
|
+
// 小区
|
|
423
|
+
residentialArea: [],
|
|
424
|
+
inputtouPerson: [],
|
|
425
|
+
imgshow: false,
|
|
426
|
+
nopassId:'',
|
|
427
|
+
showReason:false,
|
|
428
|
+
reasonText:'',
|
|
429
|
+
criteriaShow: false,
|
|
430
|
+
orderDefault: 'f_hand_date',
|
|
431
|
+
orgCondtionStr: '',
|
|
432
|
+
excelCondition: '',
|
|
433
|
+
fields: {
|
|
434
|
+
'f_userinfo_code': '客户编号',
|
|
435
|
+
'f_user_name': '客户名称',
|
|
436
|
+
'f_address': '客户地址',
|
|
437
|
+
'f_meternumber': '表号',
|
|
438
|
+
'f_meter_base': '上期底数',
|
|
439
|
+
'f_tablebase': '本期底数',
|
|
440
|
+
'f_oughtamount': '应交气量',
|
|
441
|
+
'f_result_state': '抄表结果状态',
|
|
442
|
+
'f_surplus_gas': '剩余气量',
|
|
443
|
+
'f_audit_state': '审核状态',
|
|
444
|
+
'f_last_input_date': '上次抄表录入日期',
|
|
445
|
+
'f_hand_date': '下发日期',
|
|
446
|
+
'f_input_date': '抄表录入日期',
|
|
447
|
+
'f_book_name': '抄表册',
|
|
448
|
+
'f_meter_book_sort': '表册顺序',
|
|
449
|
+
'f_adjustable_name': '调压箱名称',
|
|
450
|
+
'f_inputtor': '抄表员',
|
|
451
|
+
'f_comments': '备注'
|
|
452
|
+
},
|
|
453
|
+
auditState: [{label: '全部', value: ''}, {label: '已审核', value: '已抄表'}, {label: '未审核', value: '待审核'}],
|
|
454
|
+
auditState1: [{label: '全部', value: ''}, {label: '审核失败', value: '审核失败'}],
|
|
455
|
+
meters: [{label: '全部', value: ''}, {label: '机表', value: '机表'}, {label: '物联网表', value: '物联网表'}],
|
|
456
|
+
resultstate: this.$appdata.getParam('抄表结果状态'),
|
|
457
|
+
meterstates: this.$appdata.getParam('抄表状态') ? [{
|
|
458
|
+
label: '全部',
|
|
459
|
+
value: ''
|
|
460
|
+
}, ...this.$appdata.getParam('抄表状态')] : [],
|
|
461
|
+
usertypes: this.$appdata.getParam('客户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('客户类型')] : [],
|
|
462
|
+
auditstates: this.$appdata.getParam('抄表审核状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表审核状态')] : [],
|
|
463
|
+
auditStateShow: true,
|
|
464
|
+
adjustablename: this.$appdata.getParam('调压箱名称') ? [{
|
|
465
|
+
label: '全部',
|
|
466
|
+
value: ''
|
|
467
|
+
}, ...this.$appdata.getParam('调压箱名称')] : [],
|
|
468
|
+
meterbooks: [],
|
|
469
|
+
orderFields: {
|
|
470
|
+
f_userinfo_id: 'no'
|
|
471
|
+
},
|
|
472
|
+
f_filialeid: this.$login.f.orgid,
|
|
473
|
+
priceNames: [],
|
|
474
|
+
// 公司下拉
|
|
475
|
+
curorgid: [this.$login.f.orgid],
|
|
476
|
+
isBatchNopass: false, // 标记是否为批量不通过
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
props: [],
|
|
480
|
+
beforeDestroy () {
|
|
481
|
+
// 销毁定时器
|
|
482
|
+
if (this.timer) clearInterval(this.timer)
|
|
483
|
+
},
|
|
484
|
+
ready () {
|
|
485
|
+
this.model.pageSizeMax = 9999999
|
|
486
|
+
readyGen(this)
|
|
487
|
+
},
|
|
488
|
+
methods: {
|
|
489
|
+
getPricenames () {
|
|
490
|
+
let filialeid = this.f_filialeid
|
|
491
|
+
let result = [{label: '全部', value: ''}]
|
|
492
|
+
console.log('this.$GetSaleParam.prices', this.$GetSaleParam)
|
|
493
|
+
console.log('filialeid', filialeid)
|
|
494
|
+
this.$GetSaleParam.prices.forEach((item) => {
|
|
495
|
+
if (item.f_state === '有效' && filialeid == item.f_filialeid) {
|
|
496
|
+
let value = {
|
|
497
|
+
label: item.f_price_name,
|
|
498
|
+
value: item
|
|
499
|
+
}
|
|
500
|
+
result.push(value)
|
|
501
|
+
}
|
|
502
|
+
})
|
|
503
|
+
this.priceNames = Array.from(new Set(result))
|
|
504
|
+
},
|
|
505
|
+
// 修正本期底数
|
|
506
|
+
amend (row) {
|
|
507
|
+
let tablebase = window.prompt('请输入你要修正的底数值,上期底数:' + row.f_meter_base)
|
|
508
|
+
if (!tablebase) return
|
|
509
|
+
if (tablebase < 0) {
|
|
510
|
+
this.$showAlert(`底数不能小于0,请注意!`, 'warning', 2000)
|
|
511
|
+
return
|
|
512
|
+
} else if (tablebase - parseInt(tablebase) !== 0) {
|
|
513
|
+
this.$showAlert(`底数只能输入整数,请注意!`, 'warning', 2000)
|
|
514
|
+
return
|
|
515
|
+
} else if (tablebase < row.f_last_tablebase && !row.f_capacity) {
|
|
516
|
+
this.$showAlert(`本期表底数不能低于上期表底数`, 'warning', 2000)
|
|
517
|
+
return
|
|
518
|
+
} else {
|
|
519
|
+
if (tablebase < row.f_last_tablebase) {
|
|
520
|
+
this.$showMessage('本次抄表已超越最大量程, 请熟知!')
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
let oughtamount = null
|
|
524
|
+
if (tablebase) {
|
|
525
|
+
if (row.f_share_gas) {
|
|
526
|
+
oughtamount = (tablebase - 0 - (row.f_last_tablebase - 0)).toFixed(4) + (row.f_share_gas > 0 ? '+' : '') + row.f_share_gas.toFixed(2)
|
|
527
|
+
} else {
|
|
528
|
+
if (row.f_capacity && row.f_capacity > 0 && tablebase < row.f_last_tablebase) {
|
|
529
|
+
oughtamount = (tablebase - 0 + (row.f_capacity - row.f_last_tablebase)).toFixed(2)
|
|
530
|
+
} else {
|
|
531
|
+
oughtamount = (tablebase - 0 - (row.f_last_tablebase - 0)).toFixed(2)
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
} else {
|
|
535
|
+
oughtamount = 0
|
|
536
|
+
}
|
|
537
|
+
let handplan = {
|
|
538
|
+
id: row.id,
|
|
539
|
+
f_tablebase: tablebase,
|
|
540
|
+
f_oughtamount: oughtamount
|
|
541
|
+
}
|
|
542
|
+
this.$resetpost('api/af-revenue/entity/save/t_yccustom_handplan', handplan, {resolveMsg: '修正成功', rejectMsg: '抄表数据修正出错!!!'}).then((res) => {
|
|
543
|
+
row.f_tablebase = tablebase
|
|
544
|
+
row.f_oughtamount = oughtamount
|
|
545
|
+
})
|
|
546
|
+
},
|
|
547
|
+
async allsuccess () {
|
|
548
|
+
// 全部通过:查全量数据,循环调用pass(row)
|
|
549
|
+
let res = await this.$showMessage('确定通过全部抄表吗?操作后将不可取消', ['confirm', 'cancel'])
|
|
550
|
+
if (res === 'confirm') {
|
|
551
|
+
// 备份分页参数
|
|
552
|
+
let oldPageSize = this.model.pageSize
|
|
553
|
+
let oldPageIndex = this.model.pageIndex
|
|
554
|
+
|
|
555
|
+
// 查全部
|
|
556
|
+
this.model.pageSize = 999999
|
|
557
|
+
this.model.pageIndex = 1
|
|
558
|
+
await this.model.search(this.excelCondition, this.model)
|
|
559
|
+
let allRows = this.model.rows
|
|
560
|
+
|
|
561
|
+
// 恢复分页
|
|
562
|
+
this.model.pageSize = oldPageSize
|
|
563
|
+
this.model.pageIndex = oldPageIndex
|
|
564
|
+
await this.model.search(this.excelCondition, this.model)
|
|
565
|
+
|
|
566
|
+
if (allRows.length > 0) {
|
|
567
|
+
for (let i = 0; i < allRows.length; i++) {
|
|
568
|
+
await this.pass(allRows[i])
|
|
569
|
+
}
|
|
570
|
+
this.$showMessage(`全部通过处理完成,共${allRows.length}条`, [])
|
|
571
|
+
} else {
|
|
572
|
+
this.$showMessage('暂无数据,无法全部通过')
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
async allfaild () {
|
|
577
|
+
// 全部不通过:弹一次原因,查全量数据,循环调用nopass(row, reason)
|
|
578
|
+
let res = await this.$showMessage('确定作废全部抄表吗?操作后将不可取消', ['confirm', 'cancel'])
|
|
579
|
+
if (res === 'confirm') {
|
|
580
|
+
// 进入批量模式,弹出已有原因输入弹窗
|
|
581
|
+
this.isBatchNopass = true
|
|
582
|
+
this.showReason = true
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
sort (field, rule) {
|
|
586
|
+
// 将所有排序方式设为不排序,实现相互排斥
|
|
587
|
+
for (let key in this.orderFields) {
|
|
588
|
+
if (key === field) {
|
|
589
|
+
this.orderFields[key] = rule
|
|
590
|
+
} else {
|
|
591
|
+
this.orderFields[key] = 'no'
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
// 如果新规则不排序,还原为默认排序
|
|
595
|
+
if (rule === 'no') {
|
|
596
|
+
this.model.paramSource.orderitem = `'${this.orderDefault}'`
|
|
597
|
+
} else {
|
|
598
|
+
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
599
|
+
this.orderDefault = `${field} ${rule}`
|
|
600
|
+
}
|
|
601
|
+
this.search()
|
|
602
|
+
},
|
|
603
|
+
hidden () {
|
|
604
|
+
this.criteriaShow = !this.criteriaShow
|
|
605
|
+
},
|
|
606
|
+
getRes (obj) {
|
|
607
|
+
this.orgCondtionStr = obj
|
|
608
|
+
},
|
|
609
|
+
view (row) {
|
|
610
|
+
this.$parent.showupload = true
|
|
611
|
+
this.$parent.row = row
|
|
612
|
+
},
|
|
613
|
+
imgclose () {
|
|
614
|
+
this.imgshow = false
|
|
615
|
+
},
|
|
616
|
+
imgShow (val) {
|
|
617
|
+
this.imgfilename = `api/af-revenue/file/image/` + val
|
|
618
|
+
this.imgshow = true
|
|
619
|
+
},
|
|
620
|
+
async getaddress () {
|
|
621
|
+
console.log('开始获取小区')
|
|
622
|
+
let HttpReset = new HttpResetClass()
|
|
623
|
+
var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
|
|
624
|
+
data: {
|
|
625
|
+
condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
|
|
626
|
+
}
|
|
627
|
+
}, {resolveMsg: null, rejectMsg: '获取小区失败!'})
|
|
628
|
+
console.log('小区', data)
|
|
629
|
+
let house = []
|
|
630
|
+
house.push()
|
|
631
|
+
for (let row of data.data) {
|
|
632
|
+
console.log('开始保存小区')
|
|
633
|
+
house.push({label: row.f_residential_area, value: row.f_residential_area})
|
|
634
|
+
}
|
|
635
|
+
this.residentialArea = house
|
|
636
|
+
},
|
|
637
|
+
search () {
|
|
638
|
+
this.$refs.paged.$refs.cri.search()
|
|
639
|
+
},
|
|
640
|
+
clear () {
|
|
641
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
642
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
643
|
+
})
|
|
644
|
+
},
|
|
645
|
+
selfSearch (args) {
|
|
646
|
+
if (!this.orgCondtionStr) {
|
|
647
|
+
args.condition = `${args.condition}` + ' and f_orgid = ' + this.$login.f.orgid
|
|
648
|
+
} else {
|
|
649
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
650
|
+
}
|
|
651
|
+
// 抄表员查询条件
|
|
652
|
+
this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
|
|
653
|
+
if (this.inputtouPerson.length !== 0) {
|
|
654
|
+
let str = JSON.stringify(this.inputtouPerson)
|
|
655
|
+
str = str.replace(/"/g, `'`)
|
|
656
|
+
str = str.replace(/\[/g, ``)
|
|
657
|
+
str = str.replace(/\]/g, ``)
|
|
658
|
+
console.log('=====抄表员model22222222222绑定====', str)
|
|
659
|
+
// 查询多个抄表员时条件
|
|
660
|
+
args.condition += ` and f_inputtor in ( ${str} )`
|
|
661
|
+
}
|
|
662
|
+
if (args.model.f_meter_state == '待审核'){
|
|
663
|
+
this.auditStateShow = true
|
|
664
|
+
} else {
|
|
665
|
+
this.auditStateShow = false
|
|
666
|
+
}
|
|
667
|
+
this.excelCondition = args.condition
|
|
668
|
+
this.$refs.paged.$refs.grid.selectInit()
|
|
669
|
+
this.model.search(args.condition, args.model)
|
|
670
|
+
},
|
|
671
|
+
async pass (row) {
|
|
672
|
+
let param = {
|
|
673
|
+
f_meter_classify: row.f_meter_classify,
|
|
674
|
+
f_meter_brand: row.f_meter_brand,
|
|
675
|
+
f_hand_id: row.id,
|
|
676
|
+
f_operator: Vue.$login.f.name,
|
|
677
|
+
f_tablebase: row.f_tablebase,
|
|
678
|
+
f_userinfo_id: row.f_userinfo_id,
|
|
679
|
+
f_audit_person: Vue.$login.f.name,
|
|
680
|
+
f_audit_state: '审核通过',
|
|
681
|
+
f_audit_date: Util.toStandardTimeString()
|
|
682
|
+
}
|
|
683
|
+
let f_result_state = '正常'
|
|
684
|
+
let f_input_date = Vue.$login.toStandardTimeString()
|
|
685
|
+
f_input_date = ` ,f_input_date = '${f_input_date}'`
|
|
686
|
+
let sqldata = `update t_yccustom_handplan set f_meter_state = '已抄表' ${f_input_date},f_audit_state = '${param.f_audit_state}',f_audit_person = '${param.f_audit_person}',f_audit_date = '${param.f_audit_date}' where id = '${row.id}'`
|
|
687
|
+
await this.$resetpost('api/af-revenue/logic/runSQL', {data: {sql: sqldata}}, {resolveMsg: null, rejectMsg: '抄表出错,请注意!'})
|
|
688
|
+
let sql = `update t_userfiles set f_yc_meter_base = ${row.f_tablebase} where f_userfiles_id = '${row.f_userfiles_id}' `
|
|
689
|
+
await this.$resetpost('api/af-revenue/logic/runSQL', {data: {sql: sql}}, {resolveMsg: null, rejectMsg: '抄表出错,请注意!'})
|
|
690
|
+
this.search()
|
|
691
|
+
},
|
|
692
|
+
showReasonModal(row){
|
|
693
|
+
this.showReason = true
|
|
694
|
+
this.nopassId = row.id
|
|
695
|
+
},
|
|
696
|
+
closeReason(){
|
|
697
|
+
this.showReason = false
|
|
698
|
+
this.reasonText = ''
|
|
699
|
+
this.nopassId = ''
|
|
700
|
+
},
|
|
701
|
+
async subReason(){
|
|
702
|
+
if (this.isBatchNopass) {
|
|
703
|
+
// 批量不通过,查全量数据
|
|
704
|
+
// 备份分页参数
|
|
705
|
+
let oldPageSize = this.model.pageSize
|
|
706
|
+
let oldPageIndex = this.model.pageIndex
|
|
707
|
+
|
|
708
|
+
// 查全部
|
|
709
|
+
this.model.pageSize = 999999
|
|
710
|
+
this.model.pageIndex = 1
|
|
711
|
+
await this.model.search(this.excelCondition, this.model)
|
|
712
|
+
let allRows = this.model.rows
|
|
713
|
+
|
|
714
|
+
// 恢复分页
|
|
715
|
+
this.model.pageSize = oldPageSize
|
|
716
|
+
this.model.pageIndex = oldPageIndex
|
|
717
|
+
await this.model.search(this.excelCondition, this.model)
|
|
718
|
+
|
|
719
|
+
if (!this.reasonText) {
|
|
720
|
+
this.$showMessage('未填写原因,操作取消')
|
|
721
|
+
return
|
|
722
|
+
}
|
|
723
|
+
if (allRows.length > 0) {
|
|
724
|
+
for (let i = 0; i < allRows.length; i++) {
|
|
725
|
+
await this.nopass(allRows[i], this.reasonText)
|
|
726
|
+
}
|
|
727
|
+
this.$showMessage(`全部不通过处理完成,共${allRows.length}条`, [])
|
|
728
|
+
} else {
|
|
729
|
+
this.$showMessage('暂无数据,无法作废当前所有抄表')
|
|
730
|
+
}
|
|
731
|
+
this.isBatchNopass = false
|
|
732
|
+
this.closeReason()
|
|
733
|
+
} else {
|
|
734
|
+
// 单条不通过
|
|
735
|
+
this.nopass()
|
|
736
|
+
this.closeReason()
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
// 修改nopass方法,支持传入row和reason
|
|
740
|
+
async nopass (row, reason) {
|
|
741
|
+
// 兼容原有弹窗方式
|
|
742
|
+
let id = row ? row.id : this.nopassId
|
|
743
|
+
let reviewReason = reason !== undefined ? reason : this.reasonText
|
|
744
|
+
let handplan = {
|
|
745
|
+
id: id,
|
|
746
|
+
f_oughtamount: 0,
|
|
747
|
+
f_tablebase: 0,
|
|
748
|
+
f_input_date: null,
|
|
749
|
+
f_meter_state: '未抄表',
|
|
750
|
+
f_audit_state: '审核不通过',
|
|
751
|
+
f_examinereason: reviewReason,
|
|
752
|
+
f_meter_source: null,
|
|
753
|
+
f_audit_person: Vue.$login.f.name,
|
|
754
|
+
f_audit_date: Util.toStandardTimeString()
|
|
755
|
+
}
|
|
756
|
+
await this.$resetpost('api/af-revenue/entity/save/t_yccustom_handplan', handplan, {
|
|
757
|
+
resolveMsg: null,
|
|
758
|
+
rejectMsg: '未通过,抄表数据返回未抄表保存出错!!!'
|
|
759
|
+
})
|
|
760
|
+
this.search()
|
|
761
|
+
},
|
|
762
|
+
loadMeterBooks () {
|
|
763
|
+
this.meterbooks = this.$GetSaleParam.getMeterBooks()
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
},
|
|
767
|
+
computed: {
|
|
768
|
+
inputtores () {
|
|
769
|
+
// 获取抄表员
|
|
770
|
+
console.log('获取抄表员', this.$login.f)
|
|
771
|
+
let rs = []
|
|
772
|
+
if (this.$login.f.f_gasman.length > 0) {
|
|
773
|
+
for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
|
|
774
|
+
let temp = {
|
|
775
|
+
label: this.$login.f.f_gasman[i].name,
|
|
776
|
+
value: this.$login.f.f_gasman[i].name
|
|
777
|
+
}
|
|
778
|
+
rs.push(temp)
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
this.inputtores2 = rs
|
|
782
|
+
return [...rs]
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
watch: {
|
|
786
|
+
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
</script>
|
|
790
|
+
<style>
|
|
791
|
+
.modalContentRight {
|
|
792
|
+
float:right;
|
|
793
|
+
}
|
|
794
|
+
</style>
|