diff --git a/src/views/workOrder/accounting.vue b/src/views/workOrder/accounting.vue
index 8c93c2b5..50ae7cd4 100644
--- a/src/views/workOrder/accounting.vue
+++ b/src/views/workOrder/accounting.vue
@@ -85,23 +85,27 @@
收取客户金额:
@@ -381,6 +385,8 @@ export default {
replaceBatteryAmount: '',
supplierSettleRatio:{},
contractSettleTypeString:'',
+ tyreNumber:'',
+ taskStatus:{},
},
noClick: true,
loading: false,
@@ -412,7 +418,11 @@ export default {
return this.settleType == '实拖' && this.orderInfo?.contractType == 1 && !['PICC10101', 'PICCSHANGQI', 'PICC101099', 'SAIPCC2021', ''].includes(this.appCode) && !(this.appCode.indexOf("TAIPING") != -1 && this.orderInfo?.malfunctionReason == 2)
},
isBasement() {
- return this.serviceType == '困境救援' || this.serviceType == '困境-吊车' || this.serviceType == '困境救援-事故' || this.serviceType == '困境救援-故障'
+ return this.serviceType == '困境救援' ||this.serviceType == '困境拖车'|| this.serviceType == '困境-吊车' || this.serviceType == '困境救援-事故' || this.serviceType == '困境救援-故障'||this.serviceType =='困境救援(非事故)'||this.serviceType =='困境-吊车(非事故)'
+ },
+ //取消案件和结算比例为按服务不成功结算的案件都不能在后台记账模块填写路桥费、小轮费和地库费;
+ isUnsuccessfulSettle(){
+ return (this.form?.supplierSettleRatio && this.form?.supplierSettleRatio?.code==3 )|| this.form?.taskStatus?.code==19002
},
},
methods: {
@@ -512,7 +522,9 @@ export default {
} else {
let data = await accountRecordCompute({
...this.form,
- settleType: this.orderInfo.settleType?.code
+ settleType: this.orderInfo.settleType?.code,
+ taskOrderCostHisId:this.orderInfo.taskOrderCostHisId,
+ orderCode: this.orderInfo.orderCode,
});
this.form.supplierBasePrice = data.data.basePrice
this.form.supplierExtraPrice = data.data.extraPrice
@@ -646,6 +658,10 @@ export default {
return;
}
}
+ if (this.isBasement && ((this.form.supplierSettleRatio && this.form?.supplierSettleRatio?.code==5)|| this.form?.taskStatus?.code==19002) && (this.basePriceDisabled || this.isBasementSettle)&&this.form.supplierBasePrice>this.form.startPrice){
+ this.$alert('取消或服务不成功结算的困境案件,基本费用的填写不能超过起步价');
+ return;
+ }
if (this.accountStatus >= 4) {
this.$alert('已进入后续流程,不允许操作');
return;