task#14504,记账模块字段添加
This commit is contained in:
@ -380,6 +380,7 @@ export default {
|
||||
carClothingToolAmount: '',
|
||||
replaceBatteryAmount: '',
|
||||
supplierSettleRatio:{},
|
||||
contractSettleTypeString:'',
|
||||
},
|
||||
noClick: true,
|
||||
loading: false,
|
||||
@ -408,7 +409,7 @@ export default {
|
||||
},
|
||||
//保险实拖案件,剔除人保和太平事故
|
||||
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() {
|
||||
return this.serviceType == '困境救援' || this.serviceType == '困境-吊车' || this.serviceType == '困境救援-事故' || this.serviceType == '困境救援-故障'
|
||||
@ -485,6 +486,11 @@ export default {
|
||||
})
|
||||
},
|
||||
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.supplierOtherAmountRemark == '') {
|
||||
this.$alert('请填写其他费用说明');
|
||||
@ -510,6 +516,7 @@ export default {
|
||||
/*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) {
|
||||
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) {
|
||||
this.orderInfo = res.data
|
||||
console.log("this.orderInfo", this.orderInfo)
|
||||
this.accountStatus = this.orderInfo.accountStatus?.code
|
||||
|
||||
this.serviceType = this.orderInfo.serviceName
|
||||
this.taskFlowId = this.orderInfo.taskFlowId
|
||||
this.settleType = this.orderInfo.settleType?.label
|
||||
this.accountStatus = this.orderInfo.accountStatus?.code
|
||||
this.appCode = this.orderInfo.appCode
|
||||
this.fixedPrice = this.orderInfo.fixedPrice
|
||||
this.fixedPriceType = this.orderInfo.fixedPriceType
|
||||
|
Reference in New Issue
Block a user