task#14504,记账模块字段添加

This commit is contained in:
2024-08-19 17:24:41 +08:00
parent dedb0f53e9
commit 65c33e54f5

View File

@ -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,6 +486,11 @@ export default {
}) })
}, },
async compute() { async compute() {
if(this.orderInfo.contractSettleTypeString == '车主现收'){
this.form.supplierBasePrice = 0
this.form.supplierExtraPrice = 0
this.form.supplierSettleAmount = 0
}else {
if (this.form.supplierOtherAmount > 0) { if (this.form.supplierOtherAmount > 0) {
if (this.form.supplierOtherAmountRemark == '') { if (this.form.supplierOtherAmountRemark == '') {
this.$alert('请填写其他费用说明'); this.$alert('请填写其他费用说明');
@ -510,6 +516,7 @@ export default {
/*if(this.form.cutInsuranceAmount == 1 && this.form.policyState === 0){ /*if(this.form.cutInsuranceAmount == 1 && this.form.policyState === 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)
}*/ }*/
}
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