task#14504,记账模块字段添加
This commit is contained in:
@ -380,6 +380,7 @@ export default {
|
|||||||
carClothingToolAmount: '',
|
carClothingToolAmount: '',
|
||||||
replaceBatteryAmount: '',
|
replaceBatteryAmount: '',
|
||||||
supplierSettleRatio:{},
|
supplierSettleRatio:{},
|
||||||
|
contractSettleTypeString:'',
|
||||||
},
|
},
|
||||||
noClick: true,
|
noClick: true,
|
||||||
loading: false,
|
loading: false,
|
||||||
@ -408,7 +409,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//保险实拖案件,剔除人保和太平事故
|
//保险实拖案件,剔除人保和太平事故
|
||||||
isCPICDrag() {
|
isCPICDrag() {
|
||||||
return this.settleType == '实拖' && !['PICC10101', 'PICCSHANGQI', 'PICC101099', 'SAIPCC2021', ''].includes(this.appCode)
|
return this.settleType == '实拖' && this.orderInfo?.contractType == 1 && !['PICC10101', 'PICCSHANGQI', 'PICC101099', 'SAIPCC2021', ''].includes(this.appCode) && !(this.appCode.indexOf("TAIPING") != -1 && this.orderInfo?.malfunctionReason == 2)
|
||||||
},
|
},
|
||||||
isBasement() {
|
isBasement() {
|
||||||
return this.serviceType == '困境救援' || this.serviceType == '困境-吊车' || this.serviceType == '困境救援-事故' || this.serviceType == '困境救援-故障'
|
return this.serviceType == '困境救援' || this.serviceType == '困境-吊车' || this.serviceType == '困境救援-事故' || this.serviceType == '困境救援-故障'
|
||||||
@ -485,31 +486,37 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
async compute() {
|
async compute() {
|
||||||
if (this.form.supplierOtherAmount > 0) {
|
if(this.orderInfo.contractSettleTypeString == '车主现收'){
|
||||||
if (this.form.supplierOtherAmountRemark == '') {
|
this.form.supplierBasePrice = 0
|
||||||
this.$alert('请填写其他费用说明');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!this.basePriceDisabled && !this.isBasementSettle) {
|
|
||||||
//困境的案件,或者一口价案件,基本费用可以输入
|
|
||||||
let dilemmaBasePrice = parseFloat(this.form.supplierBasePrice) || 0
|
|
||||||
this.form.supplierBasePrice = dilemmaBasePrice
|
|
||||||
this.form.supplierExtraPrice = 0
|
this.form.supplierExtraPrice = 0
|
||||||
this.form.supplierSettleAmount = dilemmaBasePrice - (parseFloat(this.form.supplierCustomerAmount) || 0)
|
this.form.supplierSettleAmount = 0
|
||||||
} else {
|
}else {
|
||||||
let data = await accountRecordCompute({
|
if (this.form.supplierOtherAmount > 0) {
|
||||||
...this.form,
|
if (this.form.supplierOtherAmountRemark == '') {
|
||||||
settleType: this.orderInfo.settleType?.code
|
this.$alert('请填写其他费用说明');
|
||||||
});
|
return;
|
||||||
this.form.supplierBasePrice = data.data.basePrice
|
}
|
||||||
this.form.supplierExtraPrice = data.data.extraPrice
|
}
|
||||||
this.form.supplierSettleAmount = data.data.totalPrice
|
if (!this.basePriceDisabled && !this.isBasementSettle) {
|
||||||
|
//困境的案件,或者一口价案件,基本费用可以输入
|
||||||
|
let dilemmaBasePrice = parseFloat(this.form.supplierBasePrice) || 0
|
||||||
|
this.form.supplierBasePrice = dilemmaBasePrice
|
||||||
|
this.form.supplierExtraPrice = 0
|
||||||
|
this.form.supplierSettleAmount = dilemmaBasePrice - (parseFloat(this.form.supplierCustomerAmount) || 0)
|
||||||
|
} else {
|
||||||
|
let data = await accountRecordCompute({
|
||||||
|
...this.form,
|
||||||
|
settleType: this.orderInfo.settleType?.code
|
||||||
|
});
|
||||||
|
this.form.supplierBasePrice = data.data.basePrice
|
||||||
|
this.form.supplierExtraPrice = data.data.extraPrice
|
||||||
|
this.form.supplierSettleAmount = data.data.totalPrice
|
||||||
|
}
|
||||||
|
// }
|
||||||
|
/*if(this.form.cutInsuranceAmount == 1 && this.form.policyState === 0){
|
||||||
|
this.form.supplierSettleAmount = parseFloat(parseFloat(this.form.supplierSettleAmount) - parseFloat(this.form.policyAmount || 0)).toFixed(2)
|
||||||
|
}*/
|
||||||
}
|
}
|
||||||
// }
|
|
||||||
/*if(this.form.cutInsuranceAmount == 1 && this.form.policyState === 0){
|
|
||||||
this.form.supplierSettleAmount = parseFloat(parseFloat(this.form.supplierSettleAmount) - parseFloat(this.form.policyAmount || 0)).toFixed(2)
|
|
||||||
}*/
|
|
||||||
if (this.form.policyAmount && this.form.policyAmount > 0) {
|
if (this.form.policyAmount && this.form.policyAmount > 0) {
|
||||||
this.form.supplierSettleAmount = parseFloat(parseFloat(this.form.supplierSettleAmount) - parseFloat(this.form.policyAmount || 0)).toFixed(2)
|
this.form.supplierSettleAmount = parseFloat(parseFloat(this.form.supplierSettleAmount) - parseFloat(this.form.policyAmount || 0)).toFixed(2)
|
||||||
}
|
}
|
||||||
@ -552,10 +559,11 @@ export default {
|
|||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.orderInfo = res.data
|
this.orderInfo = res.data
|
||||||
console.log("this.orderInfo", this.orderInfo)
|
console.log("this.orderInfo", this.orderInfo)
|
||||||
|
this.accountStatus = this.orderInfo.accountStatus?.code
|
||||||
|
|
||||||
this.serviceType = this.orderInfo.serviceName
|
this.serviceType = this.orderInfo.serviceName
|
||||||
this.taskFlowId = this.orderInfo.taskFlowId
|
this.taskFlowId = this.orderInfo.taskFlowId
|
||||||
this.settleType = this.orderInfo.settleType?.label
|
this.settleType = this.orderInfo.settleType?.label
|
||||||
this.accountStatus = this.orderInfo.accountStatus?.code
|
|
||||||
this.appCode = this.orderInfo.appCode
|
this.appCode = this.orderInfo.appCode
|
||||||
this.fixedPrice = this.orderInfo.fixedPrice
|
this.fixedPrice = this.orderInfo.fixedPrice
|
||||||
this.fixedPriceType = this.orderInfo.fixedPriceType
|
this.fixedPriceType = this.orderInfo.fixedPriceType
|
||||||
|
Reference in New Issue
Block a user