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
|
@@ -62,17 +62,17 @@
|
|
|
62
62
|
</div>
|
|
63
63
|
<div class="col-sm-4 " v-if="hasLimit&&limitgas">
|
|
64
64
|
<label class="font_normal_body"> 购气上限</label>
|
|
65
|
-
<input class="input_search" style="width:60%"
|
|
65
|
+
<input class="input_search" style="width:60%" type="number" v-model="maxgas"
|
|
66
66
|
v-scale="[maxgas, 4]" placeholder='限购余气' disabled>
|
|
67
67
|
</div>
|
|
68
68
|
<div class="col-sm-4 form-group" v-if="hasLimit&&limitmoney">
|
|
69
69
|
<label class="font_normal_body">金额上限</label>
|
|
70
|
-
<input class="input_search" style="width:60%"
|
|
70
|
+
<input class="input_search" style="width:60%" type="number" v-model="maxmoney"
|
|
71
71
|
v-scale="[maxmoney, 2]" placeholder='限购金额' disabled>
|
|
72
72
|
</div>
|
|
73
73
|
<div class="col-sm-4" v-if="mingas > 0 ">
|
|
74
74
|
<label class="font_normal_body"> 购气下限</label>
|
|
75
|
-
<input class="input_search" style="width:60%"
|
|
75
|
+
<input class="input_search" style="width:60%" type="number" v-model="mingas"
|
|
76
76
|
v-scale="[mingas, 4]" placeholder='最低购气量' disabled>
|
|
77
77
|
</div>
|
|
78
78
|
|
|
@@ -102,15 +102,15 @@
|
|
|
102
102
|
|
|
103
103
|
<div class="col-sm-3" v-if="row.f_collection_type === '按气量' && model.f_payment!='赠气' && row.f_meter_type.includes('卡表') && !config.calculatePreByCollection"
|
|
104
104
|
:class="[$v.f_collection.required || $v.f_collection.dctest ? 'has-error' : 'has-success']">
|
|
105
|
-
<label for="f_collection" class=" font_normal_body"
|
|
105
|
+
<label for="f_collection" class=" font_normal_body">燃气收款</label>
|
|
106
106
|
<input id="f_collection" class="input_search" style="width:60%" type="number" v-model="model.f_collection"
|
|
107
107
|
v-validate:f_collection='{required: true, dctest: [(model.f_totalcost - 0), ">=" ] }'
|
|
108
108
|
v-el:fcollection @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))"
|
|
109
|
-
v-scale="[model.
|
|
109
|
+
v-scale="[model.f_collection, row.f_fee_decimal||4]" :disabled="$refs.givechange.promptText != ''"/>
|
|
110
110
|
</div>
|
|
111
111
|
<div class="col-sm-3" v-if="row.f_collection_type === '按气量' && model.f_payment!='赠气' && row.f_meter_type.includes('卡表') && config.calculatePreByCollection"
|
|
112
112
|
:class="[$v.f_collection.required ? 'has-error' : 'has-success']">
|
|
113
|
-
<label for="f_collection" class=" font_normal_body"
|
|
113
|
+
<label for="f_collection" class=" font_normal_body">燃气收款</label>
|
|
114
114
|
<input id="f_collection" class="input_search" style="width:60%" type="number" v-model="model.f_collection"
|
|
115
115
|
v-validate:f_collection='{required: true }'
|
|
116
116
|
@blur="calculatePreByCollection()"
|
|
@@ -119,20 +119,20 @@
|
|
|
119
119
|
</div>
|
|
120
120
|
<div class="col-sm-3" v-if="row.f_collection_type === '按气量' && model.f_payment=='赠气' && row.f_meter_type.includes('卡表')"
|
|
121
121
|
:class="[$v.f_collection.required || $v.f_collection.dctest ? 'has-error' : 'has-success']">
|
|
122
|
-
<label for="f_collection" class=" font_normal_body"><font size="4px" style="font-weight:bold"
|
|
122
|
+
<label for="f_collection" class=" font_normal_body"><font size="4px" style="font-weight:bold">燃气收款</font></label>
|
|
123
123
|
<input id="f_collection" class="input_search" style="width:60%;font-size: 18px;font-weight:bold;" type="number" v-model="model.f_collection"
|
|
124
124
|
@blur="config.calculatePreByCollection && calculatePreByCollection()"
|
|
125
125
|
v-el:fcollection @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))" v-scale="[model.f_totalcost, row.f_fee_decimal||4]" :disabled="$refs.givechange.promptText != ''">
|
|
126
126
|
</div>
|
|
127
127
|
<div class="col-sm-3" v-if="row.f_collection_type === '按金额' && row.f_meter_type.includes('卡表')">
|
|
128
|
-
<label for="f_collection" class=" font_normal_body"><font size="4px" style="font-weight:bold"
|
|
128
|
+
<label for="f_collection" class=" font_normal_body"><font size="4px" style="font-weight:bold">燃气收款</font></label>
|
|
129
129
|
<input id="f_collection" class="input_search" style="width:50%;font-size: 18px;font-weight:bold;" type="number" v-model="model.f_collection"
|
|
130
130
|
@blur="config.calculatePreByCollection && calculatePreByCollection()"
|
|
131
131
|
v-el:fcollection @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))" v-scale="[model.f_collection, row.f_fee_decimal||4]" :disabled="$refs.givechange.promptText != ''">
|
|
132
132
|
</div>
|
|
133
133
|
<div class="col-sm-4" v-if="!row.f_meter_type.includes('卡表')">
|
|
134
134
|
<label for="f_collection" class=" font_normal_body"><font size="4px"
|
|
135
|
-
style="font-weight:bold"
|
|
135
|
+
style="font-weight:bold">燃气收款</font></label>
|
|
136
136
|
<input id="f_collection" class="input_search" style="width:50%;font-size: 18px;font-weight:bold;"
|
|
137
137
|
type="number" v-model="model.f_collection"
|
|
138
138
|
v-el:fcollection
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
</div>
|
|
201
201
|
<div class="col-sm-4">
|
|
202
202
|
<label for="f_comments" class="font_normal_body">合计金额</label>
|
|
203
|
-
<input class="input_search" style="width:77%" v-model="sumCollection" rows="1" placeholder="合计">
|
|
203
|
+
<input class="input_search" style="width:77%" v-model="sumCollection" @blur="calculateCollection" rows="1" placeholder="合计">
|
|
204
204
|
</div>
|
|
205
205
|
</div>
|
|
206
206
|
|
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
self.model.payments = self.paymentModel
|
|
353
353
|
// 加入扫码盒付款码支付流水号
|
|
354
354
|
self.model.f_serial_id = self.$refs.paymentcode.paymentCodeReturnData.f_out_trade_no
|
|
355
|
-
if (self.insurance && self.insurance.f_money_all>0) {
|
|
355
|
+
if (self.insurance && self.insurance.f_money_all > 0) {
|
|
356
356
|
self.model.f_total_ins_charge = self.model.f_total_ins_charge == null ? 0 : self.model.f_total_ins_charge
|
|
357
357
|
self.model.f_fee_type = '保险收费'
|
|
358
358
|
self.model.f_last_insexpiration_date = self.model.f_ins_stop_date
|
|
@@ -361,8 +361,20 @@
|
|
|
361
361
|
self.model.f_expiration_date = self.insurance.f_expiration_date
|
|
362
362
|
self.model.f_salecount = self.insurance.f_salecount
|
|
363
363
|
self.model.f_money = self.insurance.f_money_all
|
|
364
|
+
self.model.f_insurance_company = self.insurance.f_insurance_company
|
|
365
|
+
self.model.f_insurance_number = self.insurance.f_insurance_number
|
|
364
366
|
let insurance = Object.assign({}, {}, self.model)
|
|
365
367
|
insurance.f_userinfo_code = self.row.f_userinfo_code
|
|
368
|
+
insurance.f_userfiles_id = self.row.f_userfiles_id
|
|
369
|
+
insurance.f_operator = self.$login.f.name
|
|
370
|
+
insurance.f_operatorid = self.$login.f.id
|
|
371
|
+
insurance.f_orgid = self.$login.f.orgid
|
|
372
|
+
insurance.f_idnumber = self.row.f_idnumber
|
|
373
|
+
insurance.f_user_phone = self.row.f_user_phone
|
|
374
|
+
insurance.f_orgname = self.$login.f.orgs
|
|
375
|
+
insurance.f_depid = self.$login.f.depids
|
|
376
|
+
insurance.f_depname = self.$login.f.deps
|
|
377
|
+
insurance.f_receivable = self.insurance.f_money_all
|
|
366
378
|
insurance.f_payment = self.model.f_payment.toString()
|
|
367
379
|
insurance.f_state = '有效'
|
|
368
380
|
insurance.f_operat_type = '保险'
|
|
@@ -398,10 +410,9 @@
|
|
|
398
410
|
param: param,
|
|
399
411
|
f_blobid: writeid
|
|
400
412
|
}
|
|
401
|
-
|
|
402
413
|
await self.$resetpost('api/af-revenue/logic/updatefiles', data)
|
|
403
414
|
}
|
|
404
|
-
console.log(self.config, self.config.hasPrint && !self.$login.r.includes('不打印发票'))
|
|
415
|
+
console.log(self.config, self.config.hasPrint, self.$login.r.includes('不打印发票'), self.config.hasPrint && !self.$login.r.includes('不打印发票'))
|
|
405
416
|
// 开始打票
|
|
406
417
|
if (self.config.hasPrint && !self.$login.r.includes('不打印发票')) {
|
|
407
418
|
if (self.printInvoiceType.indexOf(self.model.f_print) === -1) {
|
|
@@ -593,6 +604,8 @@
|
|
|
593
604
|
f_after_discount: 0,
|
|
594
605
|
getDeduct: 0
|
|
595
606
|
},
|
|
607
|
+
sumCollection: 0,
|
|
608
|
+
calculateCollectionFlag: false,
|
|
596
609
|
calculatedetail: '',
|
|
597
610
|
deductdetail: '',
|
|
598
611
|
|
|
@@ -625,7 +638,7 @@
|
|
|
625
638
|
dymoney: 0
|
|
626
639
|
}
|
|
627
640
|
},
|
|
628
|
-
props: ['row', 'cardData','garbagelist', 'garbagefee', 'insurance'],
|
|
641
|
+
props: ['row', 'cardData', 'garbagelist', 'garbagefee', 'insurance'],
|
|
629
642
|
async ready () {
|
|
630
643
|
if (this.authArr.includes('余额写卡限定')) {
|
|
631
644
|
this.paytype = [{label: '余额写卡', value: '余额写卡'}]
|
|
@@ -637,6 +650,7 @@
|
|
|
637
650
|
})
|
|
638
651
|
}
|
|
639
652
|
}
|
|
653
|
+
this.sumCollection = (this.model.f_collection - 0) + (this.insurance.f_money_all - 0) + (this.garbagefee - 0)
|
|
640
654
|
// this.getPurchase()
|
|
641
655
|
this.model.f_price_id = this.row.f_price_id
|
|
642
656
|
this.model.f_user_id = this.row.f_user_id
|
|
@@ -652,13 +666,15 @@
|
|
|
652
666
|
asyncCardMeterCenter(this)
|
|
653
667
|
},
|
|
654
668
|
watch: {
|
|
655
|
-
'insurance.f_money_all'(){
|
|
669
|
+
'insurance.f_money_all' () {
|
|
656
670
|
// 获取计算优惠
|
|
657
671
|
this.getPrivilegeList()
|
|
672
|
+
this.sumCollection = (this.model.f_collection - 0) + (this.insurance.f_money_all - 0) + (this.garbagefee - 0)
|
|
658
673
|
},
|
|
659
|
-
'garbagefee'(){
|
|
674
|
+
'garbagefee' () {
|
|
660
675
|
// 获取计算优惠
|
|
661
676
|
this.getPrivilegeList()
|
|
677
|
+
this.sumCollection = (this.model.f_collection - 0) + (this.insurance.f_money_all - 0) + (this.garbagefee - 0)
|
|
662
678
|
},
|
|
663
679
|
'model.f_payment.length' (val) {
|
|
664
680
|
console.log('付款方式多选。。', val)
|
|
@@ -701,8 +717,10 @@
|
|
|
701
717
|
// }
|
|
702
718
|
},
|
|
703
719
|
'model.f_collection' (val) {
|
|
720
|
+
console.log('===============>', val)
|
|
704
721
|
// 获取计算优惠
|
|
705
722
|
this.getPrivilegeList()
|
|
723
|
+
this.sumCollection = (this.model.f_collection - 0) + (this.insurance.f_money_all - 0) + (this.garbagefee - 0)
|
|
706
724
|
}
|
|
707
725
|
},
|
|
708
726
|
events: {
|
|
@@ -717,6 +735,21 @@
|
|
|
717
735
|
}
|
|
718
736
|
},
|
|
719
737
|
methods: {
|
|
738
|
+
calculateCollection () {
|
|
739
|
+
console.log(this.sumCollection)
|
|
740
|
+
if (!isNaN(this.sumCollection) && this.sumCollection > 0) {
|
|
741
|
+
let tempFee = this.sumCollection
|
|
742
|
+
if ((this.garbagefee - 0) > 0) {
|
|
743
|
+
tempFee = tempFee - (this.garbagefee - 0)
|
|
744
|
+
}
|
|
745
|
+
if ((this.insurance.f_money_all - 0) > 0) {
|
|
746
|
+
tempFee = tempFee - (this.insurance.f_money_all - 0)
|
|
747
|
+
}
|
|
748
|
+
this.model.f_collection = tempFee
|
|
749
|
+
this.calculateCollectionFlag = true
|
|
750
|
+
this.calculatePreByCollection()
|
|
751
|
+
}
|
|
752
|
+
},
|
|
720
753
|
getRandomId () {
|
|
721
754
|
this.randomBusinessId = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
722
755
|
let res = Math.random() * 16 | 0
|
|
@@ -736,16 +769,22 @@
|
|
|
736
769
|
let dymoney2 = await this.$CommonService.gasCalculate(this.model, this.model.f_pregas)
|
|
737
770
|
this.model.chargeprice = dymoney2.data.chargeprice
|
|
738
771
|
Object.assign(this.model, this.model, dymoney2.data)
|
|
739
|
-
this.
|
|
772
|
+
if (this.calculateCollectionFlag && !this.config.calculatePreByCollection) {
|
|
773
|
+
this.model.f_totalcost = (dymoney2.data.chargenum - 0) - (this.row.f_balance - 0)
|
|
774
|
+
} else {
|
|
775
|
+
this.model.f_totalcost = dymoney2.data.chargenum
|
|
776
|
+
}
|
|
740
777
|
this.model.f_preamount = dymoney2.data.chargenum
|
|
741
778
|
this.model.getDeduct = 0
|
|
742
779
|
if (this.row.f_project_money && this.row.f_project_money > 0) {
|
|
743
780
|
this.model.getDeduct = (this.$CommonService.getDeduct(this.row, this.model.f_pregas) - 0)
|
|
744
|
-
this.model.f_totalcost = (this.model.f_totalcost - 0
|
|
745
|
-
this.model.f_collection = (this.model.f_collection - 0
|
|
781
|
+
this.model.f_totalcost = (this.model.f_totalcost - 0) + (this.model.getDeduct - 0)
|
|
782
|
+
this.model.f_collection = (this.model.f_collection - 0) + (this.model.getDeduct - 0)
|
|
746
783
|
}
|
|
784
|
+
console.log('this.model.f_collection', this.model.f_collection)
|
|
747
785
|
this.calText(dymoney2.data.chargeprice, this.model.getDeduct)
|
|
748
786
|
} catch (error) {
|
|
787
|
+
console.log('=============>', error)
|
|
749
788
|
this.$showAlert(`发卡售气划价错误,错误类型:${error}`, 'danger', 0)
|
|
750
789
|
this.$dispatch('error', '发卡售气', this.model, error)
|
|
751
790
|
}
|
|
@@ -979,9 +1018,9 @@
|
|
|
979
1018
|
}
|
|
980
1019
|
},
|
|
981
1020
|
computed: {
|
|
982
|
-
sumCollection () {
|
|
983
|
-
|
|
984
|
-
},
|
|
1021
|
+
// sumCollection () {
|
|
1022
|
+
// return (this.model.f_collection - 0) + (this.insurance.f_money_all - 0) + (this.garbagefee - 0)
|
|
1023
|
+
// },
|
|
985
1024
|
authArr () {
|
|
986
1025
|
return this.$login.r ? this.$login.r : []
|
|
987
1026
|
},
|
|
@@ -139,7 +139,7 @@ export default {
|
|
|
139
139
|
f_orgname: this.$login.f.orgs,
|
|
140
140
|
f_depid: this.$login.f.depids,
|
|
141
141
|
f_depname: this.$login.f.deps,
|
|
142
|
-
f_payment: this.model.f_payment
|
|
142
|
+
f_payment: this.model.f_payment
|
|
143
143
|
}
|
|
144
144
|
console.log('垃圾费收费', param)
|
|
145
145
|
let res = await this.$resetpost('api/af-revenue/logic/savegarbageFee', {data: param}, {warnMsg: `确定要对用户${this.row.f_user_name}进行垃圾费收费吗?`, resolveMsg: '收费成功!!', rejectMsg: '收费失败!!请重试!!'})
|