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,1205 @@
|
|
|
1
|
+
<template xmlns:v-el="">
|
|
2
|
+
<div class="flex-row">
|
|
3
|
+
<div 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
|
+
<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
|
+
:format="'yyyy-MM-dd'"
|
|
18
|
+
></datepicker>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="col-sm-2 form-group">
|
|
21
|
+
<label class="font_normal_body">归属结束</label>
|
|
22
|
+
<datepicker placeholder="结束日期"
|
|
23
|
+
style="width:60%"
|
|
24
|
+
v-model="model.endDate"
|
|
25
|
+
:value.sync="model.endDate"
|
|
26
|
+
:format="'yyyy-MM-dd'"
|
|
27
|
+
></datepicker>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<div class="col-sm-2 form-group">
|
|
31
|
+
<label class="font_normal_body">客户编号</label>
|
|
32
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
33
|
+
condition="f_userinfo_code='{}'" placeholder='客户编号'>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<div class="span" style="float:right;">
|
|
37
|
+
<button class="button_search button_spacing" @click="$parent.$parent.search()">查询</button>
|
|
38
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
39
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
40
|
+
:field="$parent.$parent.getExportFields" :header="$parent.$parent.other"
|
|
41
|
+
sqlurl="api/af-revenue/logic/saleExport"
|
|
42
|
+
sql-name="getDownPlan"
|
|
43
|
+
template-name='抄表计划下发导出'
|
|
44
|
+
:choose-col="true">
|
|
45
|
+
</export-excel>
|
|
46
|
+
<button class="button_search button_spacing"
|
|
47
|
+
@click="$parent.$parent.batchDownHand()">计划下发
|
|
48
|
+
</button>
|
|
49
|
+
<button v-if="$parent.$parent.inputtor_change" class="button_search button_spacing"
|
|
50
|
+
@click="$parent.$parent.batchInputtorChange()">抄表员调整
|
|
51
|
+
</button>
|
|
52
|
+
<div
|
|
53
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
54
|
+
@click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
58
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
59
|
+
<!-- <label class="font_normal_body">表 编 号</label>-->
|
|
60
|
+
<!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_id"-->
|
|
61
|
+
<!-- condition="f_user_id='{}'" placeholder='表编号'>-->
|
|
62
|
+
<!-- </div>-->
|
|
63
|
+
<div class="col-sm-2 form-group">
|
|
64
|
+
<label class="font_normal_body">表  号</label>
|
|
65
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
|
|
66
|
+
condition="f_meternumber like '%{}%'" placeholder='表号'>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="col-sm-2 form-group">
|
|
69
|
+
<label class="font_normal_body">客户姓名</label>
|
|
70
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name" placeholder='客户姓名'
|
|
71
|
+
condition="f_user_name = '{}'">
|
|
72
|
+
</div>
|
|
73
|
+
<div class="col-sm-2 form-group">
|
|
74
|
+
<label class="font_normal_body">电    话</label>
|
|
75
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
|
|
76
|
+
condition="f_user_phone like '%{}%'" placeholder='用户电话'>
|
|
77
|
+
</div>
|
|
78
|
+
<div class="col-sm-2 form-group">
|
|
79
|
+
<label class="font_normal_body">小    区</label>
|
|
80
|
+
<v-select :value.sync="model.f_residential_area"
|
|
81
|
+
class="select_list select"
|
|
82
|
+
enter-push
|
|
83
|
+
v-model="model.f_residential_area"
|
|
84
|
+
style="width: 60%"
|
|
85
|
+
multiple="true"
|
|
86
|
+
:options='$parent.$parent.residentialArea' placeholder='选择小区'
|
|
87
|
+
close-on-select v-el:cc>
|
|
88
|
+
</v-select>
|
|
89
|
+
</div>
|
|
90
|
+
<div class="col-sm-2 form-group">
|
|
91
|
+
<label class="font_normal_body">楼  栋</label>
|
|
92
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_building"
|
|
93
|
+
condition="f_building = '{}'" placeholder='楼栋'>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="col-sm-2 form-group">
|
|
96
|
+
<label class="font_normal_body">单  元</label>
|
|
97
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
|
|
98
|
+
condition="f_unit = '{}'" placeholder='单元'>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="col-sm-2 form-group">
|
|
101
|
+
<label class="font_normal_body">楼  层</label>
|
|
102
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
|
|
103
|
+
condition="f_floor = '{}'" placeholder='楼层'>
|
|
104
|
+
</div>
|
|
105
|
+
<div class="col-sm-2 form-group">
|
|
106
|
+
<label class="font_normal_body">门 牌 号</label>
|
|
107
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_room"
|
|
108
|
+
condition="f_room like '%{}%'" placeholder='门牌号'>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="col-sm-2 form-group">
|
|
111
|
+
<label class="font_normal_body">客户地址</label>
|
|
112
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_address"
|
|
113
|
+
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
114
|
+
</div>
|
|
115
|
+
<div class="col-sm-2 form-group">
|
|
116
|
+
<label class="font_normal_body">抄 表 员</label>
|
|
117
|
+
<v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'
|
|
118
|
+
style="width:60%"
|
|
119
|
+
multiple="true"
|
|
120
|
+
:options='$parent.$parent.inputtores' placeholder='抄表员'
|
|
121
|
+
@change="$parent.$parent.meterReaderChange"
|
|
122
|
+
close-on-select
|
|
123
|
+
v-el:cc></v-select>
|
|
124
|
+
</div>
|
|
125
|
+
|
|
126
|
+
<div class="col-sm-2 form-group">
|
|
127
|
+
<label class="font_normal_body">客户类型</label>
|
|
128
|
+
<v-select :value.sync="model.f_user_type" v-model="model.f_user_type"
|
|
129
|
+
:options='$parent.$parent.usertypes' placeholder='客户类型'
|
|
130
|
+
style="width:60%"
|
|
131
|
+
close-on-select
|
|
132
|
+
condition="f_user_type = '{}'"></v-select>
|
|
133
|
+
</div>
|
|
134
|
+
<div class="col-sm-2 form-group">
|
|
135
|
+
<label class="font_normal_body">用户等级</label>
|
|
136
|
+
<v-select :value.sync="model.f_user_level" v-model="model.f_user_level"
|
|
137
|
+
:options='$parent.$parent.userlevels' placeholder='用户等级'
|
|
138
|
+
style="width:60%"
|
|
139
|
+
close-on-select
|
|
140
|
+
condition="f_user_level = '{}'"></v-select>
|
|
141
|
+
</div>
|
|
142
|
+
<div class="col-sm-2 form-group">
|
|
143
|
+
<label class="font_normal_body">抄 表 册</label>
|
|
144
|
+
<v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
|
|
145
|
+
:options='$parent.$parent.meterbooks' placeholder='抄表册'
|
|
146
|
+
style="width:60%"
|
|
147
|
+
:multiple="true"
|
|
148
|
+
condition="f_meter_book_num in {}"></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_adjustable_name" v-model="model.f_adjustable_name"
|
|
153
|
+
:options='$parent.$parent.adjustablename' placeholder='调压箱名称'
|
|
154
|
+
style="width:60%"
|
|
155
|
+
close-on-select
|
|
156
|
+
condition="f_adjustable_name = '{}'"></v-select>
|
|
157
|
+
</div>
|
|
158
|
+
<res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"
|
|
159
|
+
v-ref:sel></res-select-group>
|
|
160
|
+
</div>
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
<!-- 多选框 -->
|
|
164
|
+
<!--<div class="col-sm-2 form-group">-->
|
|
165
|
+
<!--<button class="btn btn-success" @click="$parent.$parent.batchDownHand()">计划下发</button>-->
|
|
166
|
+
<!--</div>-->
|
|
167
|
+
|
|
168
|
+
<!--<div class="form-group" v-if="$parent.$parent.meter_state">-->
|
|
169
|
+
<!--<button class="btn btn-success" @click="$parent.$parent.allDownHand()" >全部下发</button>-->
|
|
170
|
+
<!--</div>-->
|
|
171
|
+
<!-- 多选框结束 -->
|
|
172
|
+
|
|
173
|
+
<!--<div class="col-sm-2 form-group">-->
|
|
174
|
+
<!--<button class="btn btn-success" @click="$parent.$parent.adjust()">抄表员调整</button>-->
|
|
175
|
+
<!--</div>-->
|
|
176
|
+
<!--<div class="col-sm-2 form-group">-->
|
|
177
|
+
<!--<button class="btn btn-success" @click="$parent.$parent.fileUpload()">文件上传</button>-->
|
|
178
|
+
<!--</div>-->
|
|
179
|
+
<!--<div class="col-sm-2 form-group">-->
|
|
180
|
+
<!--<button class="btn btn-success" @click="search(), $parent.$parent.clean()">打印</button>-->
|
|
181
|
+
<!--</div>-->
|
|
182
|
+
|
|
183
|
+
</div>
|
|
184
|
+
</criteria>
|
|
185
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid id="hand_manager_grid">
|
|
186
|
+
<template partial='head'>
|
|
187
|
+
<tr>
|
|
188
|
+
<!--<th><input type='checkbox' v-model="$parent.$parent.$parent.all" @change="$parent.$parent.$parent.chooseAll"></th>-->
|
|
189
|
+
<th>
|
|
190
|
+
<nobr>序号</nobr>
|
|
191
|
+
</th>
|
|
192
|
+
<th>
|
|
193
|
+
<nobr>
|
|
194
|
+
<data-order field="f_userinfo_code" name="客户编号"
|
|
195
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
|
|
196
|
+
</nobr>
|
|
197
|
+
</th>
|
|
198
|
+
<!-- <th>-->
|
|
199
|
+
<!-- <nobr>表编号</nobr>-->
|
|
200
|
+
<!-- </th>-->
|
|
201
|
+
<!-- <th>基本信息</th>-->
|
|
202
|
+
<th>
|
|
203
|
+
<nobr>
|
|
204
|
+
<data-order field="f_address" name="用户姓名"
|
|
205
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_user_name"></data-order>
|
|
206
|
+
</nobr>
|
|
207
|
+
</th>
|
|
208
|
+
<th>
|
|
209
|
+
<nobr>地址</nobr>
|
|
210
|
+
</th>
|
|
211
|
+
<th>
|
|
212
|
+
<nobr>用户电话</nobr>
|
|
213
|
+
</th>
|
|
214
|
+
<th>
|
|
215
|
+
<nobr>用户等级</nobr>
|
|
216
|
+
</th>
|
|
217
|
+
<!--<th><nobr><data-order field="f_building" name="楼号"-->
|
|
218
|
+
<!--:order.sync="$parent.$parent.$parent.orderFields.f_building"></data-order></nobr>-->
|
|
219
|
+
<!--</th>-->
|
|
220
|
+
<!--<th><nobr><data-order field="f_unit" name="单元号"-->
|
|
221
|
+
<!--:order.sync="$parent.$parent.$parent.orderFields.f_unit"></data-order></nobr>-->
|
|
222
|
+
<!--</th>-->
|
|
223
|
+
<!--<th><nobr><data-order field="f_room" name="房号"-->
|
|
224
|
+
<!--:order.sync="$parent.$parent.$parent.orderFields.f_room"></data-order></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
|
+
|
|
242
|
+
<!-- <th>抄表册</th>-->
|
|
243
|
+
<th>
|
|
244
|
+
<nobr>
|
|
245
|
+
<data-order field="f_book_name" name="抄表册"
|
|
246
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_book_name"></data-order>
|
|
247
|
+
</nobr>
|
|
248
|
+
|
|
249
|
+
</th>
|
|
250
|
+
<th>
|
|
251
|
+
<nobr>操作</nobr>
|
|
252
|
+
</th>
|
|
253
|
+
<!-- f_oughtfee-->
|
|
254
|
+
</tr>
|
|
255
|
+
</template>
|
|
256
|
+
<template partial='body'>
|
|
257
|
+
<!--<td style="text-align: center;">-->
|
|
258
|
+
<!--<input v-if="row.f_meter_state === '未下发'"-->
|
|
259
|
+
<!--:id="model.pageIndex" type='checkbox' @change="$parent.$parent.$parent.chooseOne($event,row,model.rows)"-->
|
|
260
|
+
<!--:checked="$parent.$parent.$parent.ischecked(row)"/>-->
|
|
261
|
+
<!--</td>-->
|
|
262
|
+
<td style="text-align: center;">{{$index + 1}}</td>
|
|
263
|
+
<td style="text-align: center;">{{row.f_userinfo_code}}</td>
|
|
264
|
+
<!-- <td style="text-align: center;">{{row.f_olduserinfo_code}}</td>-->
|
|
265
|
+
<!-- <td>{{row.f_user_id}}</td>-->
|
|
266
|
+
<td style="text-align: center;">{{row.f_user_name}}</td>
|
|
267
|
+
<td style="text-align: center;">{{row.f_address}}</td>
|
|
268
|
+
<td style="text-align: center;">{{row.f_user_phone}}</td>
|
|
269
|
+
<td style="text-align: center;">{{row.f_user_level}}</td>
|
|
270
|
+
<!--<td>{{row.f_building}}</td>-->
|
|
271
|
+
<!--<td>{{row.f_unit}}</td>-->
|
|
272
|
+
<!--<td>{{row.f_room}}</td>-->
|
|
273
|
+
|
|
274
|
+
<td style="text-align: center;">{{row.f_adjustable_name}}</td>
|
|
275
|
+
<td style="text-align: center;">{{row.f_inputtor}}</td>
|
|
276
|
+
<td style="text-align: center;">{{row.f_balance}}</td>
|
|
277
|
+
<td style="text-align: center;">{{row.f_meternumber}}</td>
|
|
278
|
+
<td style="text-align: center;">{{row.f_meter_base}}</td>
|
|
279
|
+
<td style="text-align: center;">{{row.f_book_name}}</td>
|
|
280
|
+
<td style="text-align: center;"><nobr>
|
|
281
|
+
<!-- <button type="button" name="button" class="button_search button_spacing width-60"-->
|
|
282
|
+
<!-- v-if="$parent.$parent.$parent.config.customCal && row.f_meter_state === '已抄表' && row.states === 1 && row.f_oper_state === '正常' && row.f_whether_pay === '否'"-->
|
|
283
|
+
<!-- @click.stop="$parent.$parent.$parent.fileterprice(row)">自定义划价-->
|
|
284
|
+
<!-- </button>-->
|
|
285
|
+
|
|
286
|
+
<!--<button type="button" name="button" class="btn btn-link" disabled="disabled"-->
|
|
287
|
+
<!--v-if="row.num > 0">已换表-->
|
|
288
|
+
<!--</button>-->
|
|
289
|
+
<span v-if="row.num">有{{row.num}}条待审核或未抄表记录</span>
|
|
290
|
+
<button type="button" name="button" class="button_search button_spacing width-60"
|
|
291
|
+
@click.stop="$parent.$parent.$parent.downHand(row)" v-if="!row.num"
|
|
292
|
+
>下发计划
|
|
293
|
+
</button>
|
|
294
|
+
|
|
295
|
+
<!-- <button type="button" name="button" class="btn btn-link"-->
|
|
296
|
+
<!-- v-if="row.f_meter_state === '待审核' ">待审核-->
|
|
297
|
+
<!-- </button>-->
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
</nobr>
|
|
301
|
+
</td>
|
|
302
|
+
</template>
|
|
303
|
+
</data-grid>
|
|
304
|
+
</criteria-paged>
|
|
305
|
+
<split-price :showdata="splitdata" :pricesplit="priceSplit" v-if="priceSplit"></split-price>
|
|
306
|
+
<modal :show.sync="show" v-ref:modal backdrop="false">
|
|
307
|
+
<header slot="modal-header" class="modal-header">
|
|
308
|
+
<h4 class="modal-title">计划下发</h4>
|
|
309
|
+
</header>
|
|
310
|
+
<article slot="modal-body" class="modal-body">
|
|
311
|
+
<form class="form-horizontal">
|
|
312
|
+
<div class="row auto">
|
|
313
|
+
<div class="form-group form-input-group col-sm-6">
|
|
314
|
+
<label class="label-control">下发日期</label>
|
|
315
|
+
<datepicker placeholder="下发日期" :value.sync="downModel.downDate" format="yyyy-MM-dd HH:mm:ss"></datepicker>
|
|
316
|
+
</div>
|
|
317
|
+
</div>
|
|
318
|
+
<div class="row auto">
|
|
319
|
+
<div class="col-sm-2 form-group">
|
|
320
|
+
<label class="font_normal_body">抄表员:</label>
|
|
321
|
+
</div>
|
|
322
|
+
<div class="col-sm-4 form-group">
|
|
323
|
+
<input type="radio" value="downWithUserfiles" v-model="downModel.downWay" checked>
|
|
324
|
+
<label class="font_normal_body"> 表册抄表员</label>
|
|
325
|
+
</div>
|
|
326
|
+
<div class="col-sm-4 form-group">
|
|
327
|
+
<input type="radio" value="downWithSelf" v-model="downModel.downWay">
|
|
328
|
+
<label class="font_normal_body"> 自定义抄表员</label>
|
|
329
|
+
</div>
|
|
330
|
+
</div>
|
|
331
|
+
<div class="row auto" v-if="downModel.downWay === 'downWithSelf'">
|
|
332
|
+
<div class="form-group form-input-group col-sm-6">
|
|
333
|
+
<label class="font_normal_body">抄表员</label>
|
|
334
|
+
<div class="col-sm-4">
|
|
335
|
+
<v-select :value.sync="downModel.downInputtor" v-model='downModel.downInputtor'
|
|
336
|
+
:options='inputtores2' placeholder='抄表员'
|
|
337
|
+
close-on-select></v-select>
|
|
338
|
+
</div>
|
|
339
|
+
</div>
|
|
340
|
+
</div>
|
|
341
|
+
</form>
|
|
342
|
+
</article>
|
|
343
|
+
|
|
344
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
345
|
+
<button type="button" class="btn btn-default" @click='close()'>取消</button>
|
|
346
|
+
<button type="button" class="btn btn-success" @click='confirm()'>确认</button>
|
|
347
|
+
</footer>
|
|
348
|
+
</modal>
|
|
349
|
+
<modal :show.sync="downConfirm" backdrop="false">
|
|
350
|
+
<header slot="modal-header" class="modal-header">
|
|
351
|
+
<h4 class="modal-title">下发确认</h4>
|
|
352
|
+
</header>
|
|
353
|
+
<article slot="modal-body" class="modal-body" style="padding: 18px;">
|
|
354
|
+
<div class="col-sm-12 form-group" style="align-content: center;">
|
|
355
|
+
{{msg}}
|
|
356
|
+
</div>
|
|
357
|
+
</article>
|
|
358
|
+
|
|
359
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
360
|
+
<button type="button" class="btn btn-success" @click='downContinue'>继续下发正常用户</button>
|
|
361
|
+
<!-- <button type="button" class="btn btn-success" @click='downFilter'>下发无抄表</button>-->
|
|
362
|
+
<button type="button" class="btn btn-default" @click='close'>取消</button>
|
|
363
|
+
</footer>
|
|
364
|
+
</modal>
|
|
365
|
+
|
|
366
|
+
<!--<modal :show.sync="downConfirm" backdrop="false">-->
|
|
367
|
+
<!--<header slot="modal-header" class="modal-header">-->
|
|
368
|
+
<!--<h4 class="modal-title">下发确认</h4>-->
|
|
369
|
+
<!--</header>-->
|
|
370
|
+
<!--<article slot="modal-body" class="modal-body">-->
|
|
371
|
+
<!--<div class="col-sm-12 form-group">-->
|
|
372
|
+
<!--{{msg}}-->
|
|
373
|
+
<!--</div>-->
|
|
374
|
+
<!--</article>-->
|
|
375
|
+
|
|
376
|
+
<!--<footer slot="modal-footer" class="modal-footer">-->
|
|
377
|
+
<!--<button type="button" class="btn btn-success" @click='downContinue'>继续下发</button>-->
|
|
378
|
+
<!--<!– <button type="button" class="btn btn-success" @click='downFilter'>下发无抄表</button>–>-->
|
|
379
|
+
<!--<button type="button" class="btn btn-default" @click='close'>取消</button>-->
|
|
380
|
+
<!--</footer>-->
|
|
381
|
+
<!--</modal>-->
|
|
382
|
+
<modal :show.sync="inputtor_show" backdrop="false">
|
|
383
|
+
<header slot="modal-header" class="modal-header">
|
|
384
|
+
<h4 class="modal-title">抄表员变更</h4>
|
|
385
|
+
</header>
|
|
386
|
+
<article slot="modal-body" class="modal-body">
|
|
387
|
+
<form class="form-horizontal">
|
|
388
|
+
<div class="row auto">
|
|
389
|
+
<div class="form-group form-input-group col-sm-6">
|
|
390
|
+
<label>调整客户数</label>
|
|
391
|
+
<input class="input_search" v-model="model.count" disabled>
|
|
392
|
+
</div>
|
|
393
|
+
</div>
|
|
394
|
+
<div class="row auto">
|
|
395
|
+
<div class="form-group form-input-group col-sm-6">
|
|
396
|
+
<label class="label-control">抄表员</label>
|
|
397
|
+
<div class="col-sm-4">
|
|
398
|
+
<v-select :value.sync="inputtorModel.inputtor" v-model='inputtorModel.inputtor'
|
|
399
|
+
:options='inputtores2' placeholder='抄表员'
|
|
400
|
+
close-on-select></v-select>
|
|
401
|
+
</div>
|
|
402
|
+
</div>
|
|
403
|
+
</div>
|
|
404
|
+
</form>
|
|
405
|
+
</article>
|
|
406
|
+
|
|
407
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
408
|
+
<button type="button" class="btn btn-success" @click='inputtorConfirm'>确认</button>
|
|
409
|
+
<button type="button" class="btn btn-default" @click='close'>取消</button>
|
|
410
|
+
</footer>
|
|
411
|
+
</modal>
|
|
412
|
+
|
|
413
|
+
<modal :show.sync="uploadshow" v-ref:modal backdrop="false">
|
|
414
|
+
<header slot="modal-header" class="modal-header">
|
|
415
|
+
<button type="button" class="close" @click="close"><span>×</span></button>
|
|
416
|
+
<h4 class="modal-title">文件上传</h4>
|
|
417
|
+
</header>
|
|
418
|
+
<article slot="modal-body" class="modal-body">
|
|
419
|
+
<div class="col-sm-2 form-group">
|
|
420
|
+
<file-upload class="my-file-uploader" name="myFile"
|
|
421
|
+
action="api/af-revenue/file/uploadFile" tagname="文件上传" :headers="headers" multiple v-ref:file></file-upload>
|
|
422
|
+
</div>
|
|
423
|
+
</article>
|
|
424
|
+
|
|
425
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
426
|
+
<!-- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
|
|
427
|
+
<button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button> -->
|
|
428
|
+
</footer>
|
|
429
|
+
</modal>
|
|
430
|
+
|
|
431
|
+
</div>
|
|
432
|
+
</div>
|
|
433
|
+
</template>
|
|
434
|
+
<script>
|
|
435
|
+
import {PagedList, HttpResetClass} from 'vue-client'
|
|
436
|
+
import Vue from 'vue'
|
|
437
|
+
import co from 'co'
|
|
438
|
+
|
|
439
|
+
let readyGen = async function (self) {
|
|
440
|
+
await self.$getConfig(self, 'HandManager')
|
|
441
|
+
await self.$LoadParams.loadMeterBook(self.f_filialeid)
|
|
442
|
+
self.loadMeterBooks()
|
|
443
|
+
self.getfield = self.config.excelHeaders
|
|
444
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
445
|
+
self.reflash()
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
let downGen = function* (type, condition, data, self) {
|
|
449
|
+
self.condition = condition
|
|
450
|
+
self.msg = '确认下发计划'
|
|
451
|
+
let getUnhand = yield Vue.resetpost('api/af-revenue/sql/getUnhand', {data: {startDate: self.startDate,
|
|
452
|
+
condition: self.condition}}, {resolveMsg: null, rejectMsg: '获取待审核数据异常!!'})
|
|
453
|
+
// if (type === 'single') {
|
|
454
|
+
// getUnhand = yield Vue.resetpost('api/af-revenue/sql/getUnhand', {
|
|
455
|
+
// data: {
|
|
456
|
+
// startDate: self.model.params.startDate,
|
|
457
|
+
// condition: condition
|
|
458
|
+
// }
|
|
459
|
+
// }, {resolveMsg: null, rejectMsg: '获取待审核数据异常!!'})
|
|
460
|
+
// // self.msg = `下发客户编号为${data.f_userinfo_code}的抄表计划?`
|
|
461
|
+
// // } else if (type === 'all') {
|
|
462
|
+
// }
|
|
463
|
+
// else if (type === 'batch') {
|
|
464
|
+
// let tempCondition = condition.replace("and f_meter_state = '未下发'", '')
|
|
465
|
+
// getUnhand = yield Vue.resetpost('api/af-revenue/sql/machineGetUnhand', {
|
|
466
|
+
// data: {
|
|
467
|
+
// startDate: self.model.params.startDate,
|
|
468
|
+
// condition: tempCondition
|
|
469
|
+
// }
|
|
470
|
+
// }, {resolveMsg: null, rejectMsg: '获取未抄表数据异常!!'})
|
|
471
|
+
// self.msg = `确认下发当前总计: ${data} 户计划`
|
|
472
|
+
// }
|
|
473
|
+
// for (let i = 0; i < getUnhand.data.length; i++) {
|
|
474
|
+
// let temp = {
|
|
475
|
+
// id: getUnhand.data[i].id,
|
|
476
|
+
// f_user_id: getUnhand.data[i].f_user_id,
|
|
477
|
+
// f_userfiles_id: getUnhand.data[i].f_userfiles_id,
|
|
478
|
+
// f_adjustable_id: getUnhand.data[i].f_adjustable_id,
|
|
479
|
+
// f_adjustable_name: getUnhand.data[i].f_adjustable_name
|
|
480
|
+
// }
|
|
481
|
+
// console.log('=================================================================================')
|
|
482
|
+
// console.log('下发计划查看调压箱和调压箱编号', temp)
|
|
483
|
+
// console.log('========================================================================================')
|
|
484
|
+
// self.unhandplan.push(temp)
|
|
485
|
+
// }
|
|
486
|
+
for (let i = 0; i < getUnhand.data.length; i++) {
|
|
487
|
+
let temp = {
|
|
488
|
+
id: getUnhand.data[i].id,
|
|
489
|
+
f_user_id: getUnhand.data[i].f_user_id,
|
|
490
|
+
f_userfiles_id: getUnhand.data[i].f_userfiles_id
|
|
491
|
+
}
|
|
492
|
+
self.unhandplan.push(temp)
|
|
493
|
+
}
|
|
494
|
+
if (getUnhand.data.length > 0) {
|
|
495
|
+
self.msg = self.msg + `, 警告: 之前有 ${getUnhand.data.length} 条待审核数据`
|
|
496
|
+
} else {
|
|
497
|
+
self.unhandplan = []
|
|
498
|
+
}
|
|
499
|
+
// console.log('1111111:',self.msg)
|
|
500
|
+
self.show = true
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
let inputtotChangeGen = async function (self) {
|
|
504
|
+
let param = {
|
|
505
|
+
f_change_content: self.inputtorModel.inputtor[0],
|
|
506
|
+
f_change_cause: self.inputtorModel.reason,
|
|
507
|
+
condition: self.model.condition,
|
|
508
|
+
startDate: self.model.params.startDate,
|
|
509
|
+
endDate: self.model.params.endDate,
|
|
510
|
+
f_operator: self.$login.f.name,
|
|
511
|
+
f_change_count: self.model.count,
|
|
512
|
+
f_change_type: '抄表员变更',
|
|
513
|
+
// f_input_person: self.$login.f.name,
|
|
514
|
+
f_operatorid: self.$login.f.id,
|
|
515
|
+
f_orgid: self.$login.f.orgid,
|
|
516
|
+
f_orgname: self.$login.f.orgs,
|
|
517
|
+
f_depid: self.$login.f.depids,
|
|
518
|
+
f_depname: self.$login.f.deps
|
|
519
|
+
}
|
|
520
|
+
console.log('抄表单抄表员变更', param)
|
|
521
|
+
await self.$resetpost('api/af-revenue/logic/changeInputtor', param, {resolveMsg: null, rejectMsg: '批量抄表员变更失败'})
|
|
522
|
+
self.$showAlert(`总计变更 ${self.model.count} 户抄表员为 ${self.inputtorModel.inputtor[0]}`, 'success', 2000)
|
|
523
|
+
self.inputtor_show = false
|
|
524
|
+
self.initModal()
|
|
525
|
+
self.reflash()
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
export default {
|
|
529
|
+
title: '计划下发',
|
|
530
|
+
data () {
|
|
531
|
+
return {
|
|
532
|
+
initres: {
|
|
533
|
+
org: [this.$login.f.orgid],
|
|
534
|
+
dep: [],
|
|
535
|
+
user: []
|
|
536
|
+
},
|
|
537
|
+
sumsmodel: [],
|
|
538
|
+
orgCondtionStr: '',
|
|
539
|
+
priceSplit: false,
|
|
540
|
+
criteriaShow: false,
|
|
541
|
+
model: new PagedList('api/af-revenue/sql/getDownPlan', 30, {orderitem: this.orderDefault ? '"' + this.orderDefault + ' "' : `'f_userinfo_id desc'`}),
|
|
542
|
+
config: {
|
|
543
|
+
|
|
544
|
+
// 导出列要和查询列相同
|
|
545
|
+
excelHeaders: {
|
|
546
|
+
'f_index': '序号',
|
|
547
|
+
'f_user_id': '表编号',
|
|
548
|
+
'f_meternumber': '表号',
|
|
549
|
+
'f_inputtor': '抄表员',
|
|
550
|
+
'f_balance': '上期结余',
|
|
551
|
+
'f_last_input_date': '上次抄表',
|
|
552
|
+
'f_hand_date': '下发时间',
|
|
553
|
+
'f_input_date': '抄表日期',
|
|
554
|
+
'f_userinfo_code': '客户编号',
|
|
555
|
+
'f_address': '客户地址',
|
|
556
|
+
'f_residential_area': '小区名称',
|
|
557
|
+
'f_user_name': '客户姓名',
|
|
558
|
+
'f_meter_base': '上期底数',
|
|
559
|
+
'f_tablebase': '本期指数',
|
|
560
|
+
'f_oughtfee': '应交金额',
|
|
561
|
+
'f_oughtamount': '应交气量',
|
|
562
|
+
'f_whether_pay': '是否缴费',
|
|
563
|
+
'f_book_name': '抄表册',
|
|
564
|
+
'f_meter_classify': '气表分类',
|
|
565
|
+
'f_price_type': '气价类型',
|
|
566
|
+
'f_price_name': '气价名称',
|
|
567
|
+
'f_price_list': '气价单价',
|
|
568
|
+
'f_meter_type': '气表类型',
|
|
569
|
+
'f_meter_style': '气表型号',
|
|
570
|
+
'f_accounts_state': '下账标识',
|
|
571
|
+
'f_user_phone': '客户电话',
|
|
572
|
+
'f_adjustable_id': '表箱号'
|
|
573
|
+
},
|
|
574
|
+
examine: true,
|
|
575
|
+
customCal: false
|
|
576
|
+
},
|
|
577
|
+
meter_state: false, // 是否显示计划下发按钮
|
|
578
|
+
downModel: {
|
|
579
|
+
downDate: Vue.$login.toStandardTimeString(),
|
|
580
|
+
downWay: 'downWithUserfiles',
|
|
581
|
+
downInputtor: []
|
|
582
|
+
},
|
|
583
|
+
inputtor_change: false, // 是否显示抄表员变更按钮
|
|
584
|
+
inputtor_show: false, // 控制抄表员变更模板
|
|
585
|
+
inputtorModel: {
|
|
586
|
+
inputtor: [],
|
|
587
|
+
reason: ''
|
|
588
|
+
},
|
|
589
|
+
plans: [], // 记录当前行是否被勾选
|
|
590
|
+
all: false, // 是否全选
|
|
591
|
+
show: false, // 下发日期模态框显示
|
|
592
|
+
unhandplan: [], // 之前是否有未抄表记录
|
|
593
|
+
downConfirm: false, // 下发若有未抄记录,确认框
|
|
594
|
+
uploadshow: false,
|
|
595
|
+
// 小区
|
|
596
|
+
residentialArea: [],
|
|
597
|
+
|
|
598
|
+
// downDate: this.$login.toStandardYearMonth().replace("-", ""),
|
|
599
|
+
msg: '',
|
|
600
|
+
condition: '',
|
|
601
|
+
headers: {'username': Vue.$login.f.name, 'blodid': Vue.$login.guid()},
|
|
602
|
+
orderDefault: 'f_userfiles_id',
|
|
603
|
+
orderFields: {
|
|
604
|
+
f_userinfo_id: 'no',
|
|
605
|
+
f_user_name:'no',
|
|
606
|
+
f_address:'no'
|
|
607
|
+
},
|
|
608
|
+
getfield: {},
|
|
609
|
+
outlet: '',
|
|
610
|
+
filiale: '',
|
|
611
|
+
condition2: '',
|
|
612
|
+
area: [],
|
|
613
|
+
inputtouPerson: [],
|
|
614
|
+
usertypes: this.$appdata.getParam('客户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('客户类型')] : [],
|
|
615
|
+
userlevels: this.$appdata.getParam('用户等级') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')] : [],
|
|
616
|
+
adjustablename: this.$appdata.getParam('调压箱名称') ? [{
|
|
617
|
+
label: '全部',
|
|
618
|
+
value: ''
|
|
619
|
+
}, ...this.$appdata.getParam('调压箱名称')] : [],
|
|
620
|
+
inputtores2: [], // 下发时使用自定义抄表员,
|
|
621
|
+
splitdata: '',
|
|
622
|
+
f_filialeid: this.$login.f.orgid,
|
|
623
|
+
meterbooks: [],
|
|
624
|
+
upshow: false,
|
|
625
|
+
inputid: 0,
|
|
626
|
+
showfiles: false,
|
|
627
|
+
uploadText: '抄表',
|
|
628
|
+
showerr: false,
|
|
629
|
+
err: '',
|
|
630
|
+
other: [],
|
|
631
|
+
// 请求对象(批量导入,查询进度使用)
|
|
632
|
+
HttpReset: new HttpResetClass()
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
ready () {
|
|
636
|
+
this.getaddress()
|
|
637
|
+
readyGen(this)
|
|
638
|
+
},
|
|
639
|
+
mounted () {
|
|
640
|
+
console.log(this.inputid)
|
|
641
|
+
document.getElementById(this.inputid).focus()
|
|
642
|
+
},
|
|
643
|
+
methods: {
|
|
644
|
+
// 根据抄表员获取抄表册
|
|
645
|
+
async meterReaderChange () {
|
|
646
|
+
this.$set('$refs.paged.$refs.criteria.model.f_meter_book', [])
|
|
647
|
+
let selectedReaders = this.$refs.paged.$refs.criteria.model.f_inputtor
|
|
648
|
+
if (selectedReaders && selectedReaders.length > 0) {
|
|
649
|
+
let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
|
|
650
|
+
let inCondition = '('
|
|
651
|
+
selectedReaders.forEach((reader) => {
|
|
652
|
+
inCondition += `'${reader}',`
|
|
653
|
+
})
|
|
654
|
+
inCondition = inCondition + `'')`
|
|
655
|
+
condition += ` and f_inputtor in ${inCondition} `
|
|
656
|
+
let param = {
|
|
657
|
+
items: '*',
|
|
658
|
+
tablename: 't_meter_book',
|
|
659
|
+
condition: condition,
|
|
660
|
+
orderitem: 'id'
|
|
661
|
+
}
|
|
662
|
+
try {
|
|
663
|
+
let response = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy',
|
|
664
|
+
{data: param},
|
|
665
|
+
{resolveMsg: null, rejectMsg: '获取抄表册出错!'}
|
|
666
|
+
)
|
|
667
|
+
if (response.data && response.data.length > 0) {
|
|
668
|
+
let meterBooks = response.data.map(item => ({
|
|
669
|
+
label: item.f_book_name,
|
|
670
|
+
value: item.id
|
|
671
|
+
}))
|
|
672
|
+
this.meterbooks = [{label: '全部', value: ''}, ...meterBooks]
|
|
673
|
+
} else {
|
|
674
|
+
this.meterbooks = [{label: '全部', value: ''}]
|
|
675
|
+
}
|
|
676
|
+
} catch (error) {
|
|
677
|
+
console.error('获取抄表册失败:', error)
|
|
678
|
+
this.meterbooks = [{label: '全部', value: ''}]
|
|
679
|
+
}
|
|
680
|
+
} else {
|
|
681
|
+
this.meterbooks = [{label: '全部', value: ''}]
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
getotherfooter () {
|
|
685
|
+
this.other = []
|
|
686
|
+
// this.footer = []
|
|
687
|
+
let otherInData = []
|
|
688
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
|
|
689
|
+
// let footerData = []
|
|
690
|
+
// let exportfield = this.getExportFields
|
|
691
|
+
// footerData.push('合计')
|
|
692
|
+
// for (var field in this.sumsmodel) {
|
|
693
|
+
// footerData.push(`${exportfield[field]}合计:${this.sumsmodel[field]}`)
|
|
694
|
+
// }
|
|
695
|
+
// this.footer.push(footerData)
|
|
696
|
+
this.other.push(otherInData)
|
|
697
|
+
},
|
|
698
|
+
// 获得本月的最后一天。
|
|
699
|
+
getLastDayOfMonth (year, month) {
|
|
700
|
+
let new_year = year // 取当前的年份
|
|
701
|
+
let new_month = month++// 取下一个月的第一天,方便计算(最后一天不固定)
|
|
702
|
+
if (month > 12) // 如果当前大于12月,则年份转到下一年
|
|
703
|
+
{
|
|
704
|
+
new_month -= 12 // 月份减
|
|
705
|
+
new_year++ // 年份增
|
|
706
|
+
}
|
|
707
|
+
let new_date = new Date(new_year, new_month, 1) // 取当年当月中的第一天
|
|
708
|
+
let date_count = (new Date(new_date.getTime() - 1000 * 60 * 60 * 24)).getDate()// 获取当月的天数
|
|
709
|
+
// let last_date = new Date(new_date.getTime() - 1000 * 60 * 60 * 24);//获得当月最后一天的日期
|
|
710
|
+
return date_count
|
|
711
|
+
},
|
|
712
|
+
|
|
713
|
+
getRes (obj) {
|
|
714
|
+
this.orgCondtionStr = obj
|
|
715
|
+
},
|
|
716
|
+
async getaddress () {
|
|
717
|
+
console.log('开始获取小区')
|
|
718
|
+
let HttpReset = new HttpResetClass()
|
|
719
|
+
var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
|
|
720
|
+
data: {
|
|
721
|
+
condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
|
|
722
|
+
}
|
|
723
|
+
}, {resolveMsg: null, rejectMsg: '获取小区失败!'})
|
|
724
|
+
console.log('小区', data)
|
|
725
|
+
let house = []
|
|
726
|
+
house.push()
|
|
727
|
+
for (let row of data.data) {
|
|
728
|
+
console.log('开始保存小区')
|
|
729
|
+
house.push({label: row.f_residential_area, value: row.f_residential_area})
|
|
730
|
+
}
|
|
731
|
+
this.residentialArea = house
|
|
732
|
+
},
|
|
733
|
+
loadMeterBooks () {
|
|
734
|
+
this.meterbooks = this.$GetSaleParam.getMeterBooks()
|
|
735
|
+
},
|
|
736
|
+
|
|
737
|
+
fileterprice (row) {
|
|
738
|
+
this.splitdata = row
|
|
739
|
+
this.priceSplit = true
|
|
740
|
+
console.log('row==>', row)
|
|
741
|
+
},
|
|
742
|
+
hidden () {
|
|
743
|
+
this.criteriaShow = !this.criteriaShow
|
|
744
|
+
},
|
|
745
|
+
clear () {
|
|
746
|
+
Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
|
|
747
|
+
this.$refs.paged.$refs.criteria.model[key] = []
|
|
748
|
+
})
|
|
749
|
+
this.$refs.paged.$refs.criteria.model.f_meter_classify = ['机表']
|
|
750
|
+
},
|
|
751
|
+
|
|
752
|
+
// 判断当前页是否全选
|
|
753
|
+
isChooseAll (rows) {
|
|
754
|
+
if (this.plans.length == 0 && rows.length == 0) {
|
|
755
|
+
return false
|
|
756
|
+
}
|
|
757
|
+
for (var i = 0; i < rows.length; i++) {
|
|
758
|
+
let flag = false
|
|
759
|
+
if (rows[i].f_meter_state == '未下发') {
|
|
760
|
+
for (let plan of this.plans) {
|
|
761
|
+
if (plan.id == rows[i].f_userfiles_id) {
|
|
762
|
+
flag = true
|
|
763
|
+
if (!plan.state) {
|
|
764
|
+
return false
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
if (!flag) {
|
|
769
|
+
return false
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
return true
|
|
774
|
+
},
|
|
775
|
+
// 选择需要下发的计划
|
|
776
|
+
chooseOne (e, row, rows) {
|
|
777
|
+
console.log('row', row)
|
|
778
|
+
let checked = e.target.checked
|
|
779
|
+
console.log('state', e.target.checked)
|
|
780
|
+
// 判断当前行是否被选中
|
|
781
|
+
if (checked) {
|
|
782
|
+
let onePlan = {
|
|
783
|
+
id: row.f_userfiles_id,
|
|
784
|
+
state: true
|
|
785
|
+
}
|
|
786
|
+
// 记录被选中计划的状态
|
|
787
|
+
let flag = false
|
|
788
|
+
for (let plan of this.plans) {
|
|
789
|
+
if (plan.id == row.f_userfiles_id) {
|
|
790
|
+
flag = true
|
|
791
|
+
plan.state = true
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
if (!flag) {
|
|
795
|
+
this.plans.push(onePlan)
|
|
796
|
+
}
|
|
797
|
+
} else {
|
|
798
|
+
for (let plan of this.plans) {
|
|
799
|
+
if (plan.id == row.f_userfiles_id) {
|
|
800
|
+
plan.state = false
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
// let param = {id:row.id,isChoose:true}
|
|
805
|
+
|
|
806
|
+
if (this.isChooseAll(rows)) {
|
|
807
|
+
this.all = true
|
|
808
|
+
} else {
|
|
809
|
+
this.all = false
|
|
810
|
+
}
|
|
811
|
+
// this.delRepetition()
|
|
812
|
+
},
|
|
813
|
+
uploadFiles () {
|
|
814
|
+
this.showfiles = !this.showfiles
|
|
815
|
+
},
|
|
816
|
+
chooseAll () {
|
|
817
|
+
if (this.all) {
|
|
818
|
+
// this.chooseInfo[index-1] = []
|
|
819
|
+
// for (let row of this.model.rows){
|
|
820
|
+
// this.chooseInfo[index-1].push(row)
|
|
821
|
+
// }
|
|
822
|
+
// this.chooseInfo = Object.assign([],this.chooseInfo,this.model.rows)
|
|
823
|
+
|
|
824
|
+
for (let row of this.model.rows) {
|
|
825
|
+
if (row.f_meter_state == '未下发') {
|
|
826
|
+
let onePlan = {
|
|
827
|
+
id: row.f_userfiles_id,
|
|
828
|
+
state: true
|
|
829
|
+
}
|
|
830
|
+
let flag = false
|
|
831
|
+
for (let plan of this.plans) {
|
|
832
|
+
if (plan.id == row.f_userfiles_id) {
|
|
833
|
+
flag = true
|
|
834
|
+
plan.state = true
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
if (!flag) {
|
|
838
|
+
this.plans.push(onePlan)
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
} else {
|
|
843
|
+
// this.chooseInfo[index-1] = []
|
|
844
|
+
// console.log("this.chooseInfo[index-1]",this.chooseInfo[index-1])
|
|
845
|
+
for (let row of this.model.rows) {
|
|
846
|
+
if (row.f_meter_state == '未下发') {
|
|
847
|
+
for (let plan of this.plans) {
|
|
848
|
+
if (plan.id == row.f_userfiles_id) {
|
|
849
|
+
plan.state = false
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
},
|
|
856
|
+
search () {
|
|
857
|
+
// 查询前清空选择项
|
|
858
|
+
this.plans = []
|
|
859
|
+
this.$refs.paged.$refs.criteria.search()
|
|
860
|
+
},
|
|
861
|
+
clickupshow () {
|
|
862
|
+
this.upshow = !this.upshow
|
|
863
|
+
},
|
|
864
|
+
selfSearch (args) {
|
|
865
|
+
this.meter_state = args.condition.includes('未下发')
|
|
866
|
+
this.inputtor_change = args.condition.includes('未抄表')
|
|
867
|
+
|
|
868
|
+
if (!this.orgCondtionStr) {
|
|
869
|
+
args.condition = `${args.condition}` + ' and f_orgid = ' + this.$login.f.orgid
|
|
870
|
+
} else {
|
|
871
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
// 抄表员查询条件
|
|
875
|
+
this.inputtouPerson = this.$refs.paged.$refs.criteria.model.f_inputtor
|
|
876
|
+
if (this.inputtouPerson.length !== 0) {
|
|
877
|
+
let str = JSON.stringify(this.inputtouPerson)
|
|
878
|
+
str = str.replace(/"/g, `'`)
|
|
879
|
+
str = str.replace(/\[/g, ``)
|
|
880
|
+
str = str.replace(/\]/g, ``)
|
|
881
|
+
console.log('=====抄表员model22222222222绑定====', str)
|
|
882
|
+
// 查询多个抄表员时条件
|
|
883
|
+
args.condition += ` and f_inputtor in ( ${str} )`
|
|
884
|
+
}
|
|
885
|
+
// 小区查询条件
|
|
886
|
+
this.area = this.$refs.paged.$refs.criteria.model.f_residential_area
|
|
887
|
+
console.log('=====小区model绑定====', this.area)
|
|
888
|
+
if (this.area.length !== 0) {
|
|
889
|
+
let str = JSON.stringify(this.area)
|
|
890
|
+
str = str.replace(/"/g, `'`)
|
|
891
|
+
str = str.replace(/\[/g, ``)
|
|
892
|
+
str = str.replace(/\]/g, ``)
|
|
893
|
+
console.log('=====小区model22222222222绑定====', str)
|
|
894
|
+
// 查询多个小区时条件
|
|
895
|
+
args.condition += ` and f_residential_area in ( ${str} )`
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
if (args.model.f_meter_brand && args.model.f_meter_brand.length > 0) {
|
|
899
|
+
if (args.model.f_meter_brand[0].f_meter_brand) {
|
|
900
|
+
args.condition = `${args.condition} and f_meter_brand = '${args.model.f_meter_brand[0].f_meter_brand}'`
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
this.model.params.startDate = this.$refs.paged.$refs.criteria.model.startDate
|
|
904
|
+
this.model.params.endDate = this.$refs.paged.$refs.criteria.model.endDate
|
|
905
|
+
this.condition2 = args.condition
|
|
906
|
+
console.log('selfsearch..', args.condition, this.model)
|
|
907
|
+
this.model.search(args.condition, this.model)
|
|
908
|
+
},
|
|
909
|
+
reflash () {
|
|
910
|
+
this.$refs.paged.$refs.criteria.model.f_orgid = `${Vue.$login.f.orgid}`
|
|
911
|
+
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStartAndEndDateString()[0]
|
|
912
|
+
this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStartAndEndDateString()[1]
|
|
913
|
+
this.search()
|
|
914
|
+
},
|
|
915
|
+
fileUpload () {
|
|
916
|
+
this.uploadshow = true
|
|
917
|
+
},
|
|
918
|
+
down (type, condition, data) {
|
|
919
|
+
co(downGen(type, condition, data, this))
|
|
920
|
+
},
|
|
921
|
+
// 单条下发计划
|
|
922
|
+
downHand (row) {
|
|
923
|
+
console.log('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~' + row.f_userfiles_id)
|
|
924
|
+
this.down('single', `f_userfiles_id = '${row.f_userfiles_id}'`, row)
|
|
925
|
+
},
|
|
926
|
+
// 批量下发计划
|
|
927
|
+
batchDownHand () {
|
|
928
|
+
this.down('batch', this.model.condition, this.model.count)
|
|
929
|
+
},
|
|
930
|
+
// batchDownHand () {
|
|
931
|
+
// this.condition = ''
|
|
932
|
+
// let count = 0
|
|
933
|
+
// for (let plan of this.plans){
|
|
934
|
+
// if(plan.state){
|
|
935
|
+
// this.condition = this.condition + plan.id + ','
|
|
936
|
+
// count = count + 1
|
|
937
|
+
// }
|
|
938
|
+
// }
|
|
939
|
+
// this.down('batch', `f_user_id in (${this.condition.substring(0,this.condition.length-1)})`,count)
|
|
940
|
+
// },
|
|
941
|
+
// allDownHand () {
|
|
942
|
+
// this.down('all', this.model.condition, this.model.count)
|
|
943
|
+
// },
|
|
944
|
+
batchInputtorChange () {
|
|
945
|
+
this.inputtor_show = true
|
|
946
|
+
},
|
|
947
|
+
inputtorConfirm () {
|
|
948
|
+
this.$showMessage(`确认变更前请确认选择的时间区间和查询条件是否正确,确认变更当前 ${this.model.count} 户抄表员`, ['confirm', 'cancel']).then((res) => {
|
|
949
|
+
if (res === 'confirm') {
|
|
950
|
+
inputtotChangeGen(this)
|
|
951
|
+
}
|
|
952
|
+
})
|
|
953
|
+
},
|
|
954
|
+
confirm () {
|
|
955
|
+
// 正式提交下发
|
|
956
|
+
// 进行日期校验,判断下发的日期是否属于选择的归属期内
|
|
957
|
+
console.log('下发日期校验', this.downModel, this.$refs.paged.$refs.criteria.model)
|
|
958
|
+
if (this.validateDate()) {
|
|
959
|
+
this.show = false
|
|
960
|
+
// this.confirmDownHand()
|
|
961
|
+
console.log('有没有异常数据:',this.unhandplan)
|
|
962
|
+
if (this.unhandplan.length > 0) {
|
|
963
|
+
this.downConfirm = true
|
|
964
|
+
} else {
|
|
965
|
+
this.confirmDownHand()
|
|
966
|
+
}
|
|
967
|
+
} else {
|
|
968
|
+
this.$showAlert('您选择的下发时间不在归属期内, 请重新选择下发时间', 'warning', 3000)
|
|
969
|
+
}
|
|
970
|
+
},
|
|
971
|
+
validateDate () {
|
|
972
|
+
let currentDown = new Date(this.downModel.downDate)
|
|
973
|
+
console.log(new Date(this.$refs.paged.$refs.criteria.model.startDate))
|
|
974
|
+
console.log(new Date(this.$refs.paged.$refs.criteria.model.endDate))
|
|
975
|
+
return currentDown >= new Date(this.$refs.paged.$refs.criteria.model.startDate + ' 00:00:00') && currentDown <= new Date(this.$refs.paged.$refs.criteria.model.endDate + ' 23:59:59')
|
|
976
|
+
},
|
|
977
|
+
|
|
978
|
+
downContinue () {
|
|
979
|
+
this.downConfirm = false
|
|
980
|
+
this.confirmDownHand()
|
|
981
|
+
},
|
|
982
|
+
// downFilter () {
|
|
983
|
+
// this.downConfirm = false
|
|
984
|
+
// console.log('过滤有未抄记录的抄表')
|
|
985
|
+
// let filterUser = ''
|
|
986
|
+
// for (let json of this.unhandplan) {
|
|
987
|
+
// filterUser += `'${json.f_userfiles_id}',`
|
|
988
|
+
// }
|
|
989
|
+
// filterUser = filterUser.slice(0, filterUser.length - 1)
|
|
990
|
+
// this.condition = this.condition + ` and f_userfiles_id not in (${filterUser})`
|
|
991
|
+
// console.log('获取新的条件。', this.condition)
|
|
992
|
+
// this.confirmDownHand()
|
|
993
|
+
// },
|
|
994
|
+
confirmDownHand () {
|
|
995
|
+
console.log('下发数据。。', this.downModel)
|
|
996
|
+
let param = {
|
|
997
|
+
downDate: this.downModel.downDate,
|
|
998
|
+
startDate: this.model.params.startDate,
|
|
999
|
+
endDate: this.model.params.endDate,
|
|
1000
|
+
condition: this.condition,
|
|
1001
|
+
f_operator: this.$login.f.name,
|
|
1002
|
+
f_operatorid: this.$login.f.id
|
|
1003
|
+
}
|
|
1004
|
+
if (this.downModel.downWay === 'downWithSelf') {
|
|
1005
|
+
param.inputtor = this.downModel.downInputtor[0]
|
|
1006
|
+
}
|
|
1007
|
+
console.log('下发参数:', param)
|
|
1008
|
+
this.$resetpost('api/af-revenue/logic/machineDownHand', {data: param}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
1009
|
+
// 将缓存的未抄表ID数组置空
|
|
1010
|
+
// this.unhandplan = []
|
|
1011
|
+
this.initModal()
|
|
1012
|
+
this.search()
|
|
1013
|
+
this.$showAlert(`全部下发,总计下发${res.data}户`, 'success', 2000)
|
|
1014
|
+
}).catch((error) => {
|
|
1015
|
+
this.$showAlert(`下发失败,请注意查看,失败原因:${error}`, 'danger', 0)
|
|
1016
|
+
})
|
|
1017
|
+
},
|
|
1018
|
+
// 关闭下发计划得弹出框
|
|
1019
|
+
close () {
|
|
1020
|
+
this.show = false
|
|
1021
|
+
this.inputtor_show = false
|
|
1022
|
+
this.downConfirm = false
|
|
1023
|
+
// 初始化模态框数据
|
|
1024
|
+
this.initModal()
|
|
1025
|
+
if (this.uploadshow) {
|
|
1026
|
+
this.uploadshow = false
|
|
1027
|
+
// 讲选的文件清空
|
|
1028
|
+
this.$refs.file.$el.querySelector('input').value = ''
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
1031
|
+
initModal () {
|
|
1032
|
+
this.downModel = {
|
|
1033
|
+
downDate: Vue.$login.toStandardDateString(),
|
|
1034
|
+
downWay: 'downWithUserfiles',
|
|
1035
|
+
downInputtor: []
|
|
1036
|
+
}
|
|
1037
|
+
this.inputtorModel = {
|
|
1038
|
+
inputtor: [],
|
|
1039
|
+
reason: ''
|
|
1040
|
+
}
|
|
1041
|
+
},
|
|
1042
|
+
// 判断当前登陆人是不是子公司的人员
|
|
1043
|
+
isHead () {
|
|
1044
|
+
return this.$login.f.parent.parent.name.includes('统一资源管理')
|
|
1045
|
+
},
|
|
1046
|
+
sort (field, rule) {
|
|
1047
|
+
// 将所有排序方式设为不排序,实现相互排斥
|
|
1048
|
+
for (let key in this.orderFields) {
|
|
1049
|
+
if (key === field) {
|
|
1050
|
+
this.orderFields[key] = rule
|
|
1051
|
+
} else {
|
|
1052
|
+
this.orderFields[key] = 'no'
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
// 如果新规则不排序,还原为默认排序
|
|
1056
|
+
if (rule === 'no') {
|
|
1057
|
+
this.model.paramSource.orderitem = `'${this.orderDefault}'`
|
|
1058
|
+
} else {
|
|
1059
|
+
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
1060
|
+
}
|
|
1061
|
+
this.search()
|
|
1062
|
+
},
|
|
1063
|
+
guid () {
|
|
1064
|
+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
1065
|
+
let r = Math.random() * 16 | 0,
|
|
1066
|
+
v = c == 'x' ? r : (r & 0x3 | 0x8)
|
|
1067
|
+
return v.toString(16)
|
|
1068
|
+
})
|
|
1069
|
+
}
|
|
1070
|
+
},
|
|
1071
|
+
watch: {
|
|
1072
|
+
'downModel.downWay' (val) {
|
|
1073
|
+
if (val === 'downWithSelf') {
|
|
1074
|
+
console.log('抄表员。。', this.inputtores2)
|
|
1075
|
+
if (this.inputtores2.length > 0) {
|
|
1076
|
+
this.downModel.downInputtor = [this.inputtores2[0].value]
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
// 'model.rows'(val){
|
|
1081
|
+
// console.log('页面切换',val)
|
|
1082
|
+
// if(this.isChooseAll(val)){
|
|
1083
|
+
// this.all = true
|
|
1084
|
+
// }else{
|
|
1085
|
+
// this.all = false
|
|
1086
|
+
// }
|
|
1087
|
+
// },
|
|
1088
|
+
},
|
|
1089
|
+
computed: {
|
|
1090
|
+
getExportFields () {
|
|
1091
|
+
return {
|
|
1092
|
+
'f_userinfo_code': '客户编号',
|
|
1093
|
+
'f_user_name': '客户姓名',
|
|
1094
|
+
'f_address': '用户地址',
|
|
1095
|
+
'f_user_level': '用户等级',
|
|
1096
|
+
'f_adjustable_name': '调压箱名称',
|
|
1097
|
+
'f_inputtor': '抄表员',
|
|
1098
|
+
'f_balance': '上期结余',
|
|
1099
|
+
'f_meternumber': '表号',
|
|
1100
|
+
'f_meter_base': '上期底数',
|
|
1101
|
+
'f_book_name': '抄表册'
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
getCondition () {
|
|
1105
|
+
// return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
|
|
1106
|
+
return {
|
|
1107
|
+
startDate: this.$refs.paged.$refs.criteria.model.startDate,
|
|
1108
|
+
endDate: this.$refs.paged.$refs.criteria.model.endDate,
|
|
1109
|
+
orderitem: this.orderDefault ? this.orderDefault : 'id',
|
|
1110
|
+
condition: this.condition2
|
|
1111
|
+
}
|
|
1112
|
+
},
|
|
1113
|
+
|
|
1114
|
+
inputtores () {
|
|
1115
|
+
// 获取抄表员
|
|
1116
|
+
console.log('获取抄表员', this.$login.f)
|
|
1117
|
+
let rs = []
|
|
1118
|
+
if (this.$login.f.f_gasman.length > 0) {
|
|
1119
|
+
for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
|
|
1120
|
+
let temp = {
|
|
1121
|
+
label: this.$login.f.f_gasman[i].name,
|
|
1122
|
+
value: this.$login.f.f_gasman[i].name
|
|
1123
|
+
}
|
|
1124
|
+
rs.push(temp)
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
this.inputtores2 = rs
|
|
1128
|
+
return [...rs]
|
|
1129
|
+
},
|
|
1130
|
+
whetherpaies () {
|
|
1131
|
+
return [
|
|
1132
|
+
{label: '全部', value: ''},
|
|
1133
|
+
{label: '已缴费', value: '是'},
|
|
1134
|
+
{label: '未缴费', value: '否'}
|
|
1135
|
+
]
|
|
1136
|
+
},
|
|
1137
|
+
// 界面细节权限
|
|
1138
|
+
jurisdiction () {
|
|
1139
|
+
console.log('抄表界面细节', this.$login.r)
|
|
1140
|
+
return this.$login.r ? this.$login.r : []
|
|
1141
|
+
},
|
|
1142
|
+
firestates () {
|
|
1143
|
+
return [
|
|
1144
|
+
{label: '全部', value: ''},
|
|
1145
|
+
{label: '已点火', value: '1'},
|
|
1146
|
+
{label: '未点火', value: '0'}
|
|
1147
|
+
]
|
|
1148
|
+
},
|
|
1149
|
+
ischecked () {
|
|
1150
|
+
return function (row) {
|
|
1151
|
+
for (let plan of this.plans) {
|
|
1152
|
+
if (plan.id == row.f_userfiles_id) {
|
|
1153
|
+
return plan.state
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
},
|
|
1159
|
+
events: {
|
|
1160
|
+
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
</script>
|
|
1164
|
+
<style lang="less">
|
|
1165
|
+
#handManager {
|
|
1166
|
+
display: flex;
|
|
1167
|
+
justify-content: space-around;
|
|
1168
|
+
align-items: center;
|
|
1169
|
+
|
|
1170
|
+
.btn {
|
|
1171
|
+
margin: 0px;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
.hand-loading {
|
|
1175
|
+
border: 3px solid #ccc;
|
|
1176
|
+
border-right-color: #337ab7;
|
|
1177
|
+
border-radius: 50%;
|
|
1178
|
+
animation: spin 0.6s linear;
|
|
1179
|
+
position: absolute;
|
|
1180
|
+
animation-iteration-count: infinite;
|
|
1181
|
+
top: 0;
|
|
1182
|
+
right: 50%;
|
|
1183
|
+
z-index: 2;
|
|
1184
|
+
display: block;
|
|
1185
|
+
width: 28px;
|
|
1186
|
+
height: 28px;
|
|
1187
|
+
line-height: 28px;
|
|
1188
|
+
text-align: center;
|
|
1189
|
+
pointer-events: none;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
@keyframes spin {
|
|
1193
|
+
100% {
|
|
1194
|
+
transform: rotate(360deg);
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
#hand_manager_grid {
|
|
1200
|
+
thead {
|
|
1201
|
+
position: relative;
|
|
1202
|
+
z-index: 2;
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
</style>
|