|
|
@ -55,7 +55,7 @@ |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty spanOneWidth"><span>厂家合同价</span></div> |
|
|
|
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.contractPrice }}</span></el-form-item> |
|
|
|
<el-form-item><el-input @input="inputContractPrice" v-model="formobj.contractPrice" placeholder="" clearable @keyup.native="formobj.contractPrice = oninput(formobj.contractPrice,2)" class="addinputw addinputwOne"/></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty spanOneWidth"><span>其中上装价格</span></div> |
|
|
@ -160,12 +160,12 @@ |
|
|
|
<el-table :key="tableKey" :data="formobj.vehicleList" :index="index" border style="width: 100%"> |
|
|
|
<el-table-column fixed width="60px" label="序号" type="index" :index="index + 1" align="center" /> |
|
|
|
<el-table-column label="车架号" align="left" header-align="center"> |
|
|
|
<template slot-scope="scope" prop="vehicleName"> |
|
|
|
<el-input v-model="scope.row.vinNo" placeholder="" class="addinputw" clearable /> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input v-model="scope.row.vinNo" placeholder="" class="addinputw" clearable @change="changeVinNo" clearable type="text" maxlength="17"/> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="备注" header-align="center"> |
|
|
|
<template slot-scope="scope" prop="remarks"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input v-model="scope.row.remarks" placeholder="" class="addinputw" clearable /> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -322,6 +322,13 @@ export default { |
|
|
|
} |
|
|
|
return val |
|
|
|
}, |
|
|
|
inputContractPrice() { |
|
|
|
if (this.formobj.contractPrice !== '' && this.formobj.contractPrice !== null) { |
|
|
|
this.inputEligibleAmountOne() |
|
|
|
this.inputEligibleProportionTwo() |
|
|
|
this.inputEligibleProportionThree() |
|
|
|
} |
|
|
|
}, |
|
|
|
inputOnceFreight() { |
|
|
|
this.inputEligibleProportionTwo() |
|
|
|
this.inputEligibleProportionThree() |
|
|
@ -476,7 +483,9 @@ export default { |
|
|
|
if (this.formobj.moneyCount === '') { |
|
|
|
this.formobj.moneyCount = 0 |
|
|
|
} |
|
|
|
this.formobj.costPrice = parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.moneyCount) |
|
|
|
if (this.formobj.contractPrice !== '' && this.formobj.contractPrice !== null) { |
|
|
|
this.formobj.costPrice = parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.moneyCount) |
|
|
|
} |
|
|
|
return this.formobj.costPrice |
|
|
|
}, |
|
|
|
multiplication(arg1, arg2) { |
|
|
@ -556,6 +565,12 @@ export default { |
|
|
|
this.formobj.scmFiles = aa |
|
|
|
} |
|
|
|
}, |
|
|
|
changeVinNo(val) { |
|
|
|
if (val.length < 17) { |
|
|
|
const message = '车架号:' + val + ' 不足17位' |
|
|
|
this.$message({ showClose: true, type: 'error', message: message }) |
|
|
|
} |
|
|
|
}, |
|
|
|
saveEdit() { |
|
|
|
this.getUrl() |
|
|
|
if (this.formobj.departureDate === '') { |
|
|
@ -637,6 +652,17 @@ export default { |
|
|
|
} else { |
|
|
|
this.formobj.deductionPolicyThreeTwo = 1 |
|
|
|
} |
|
|
|
if (this.formobj.vehicleList.length > 0) { |
|
|
|
for (var i = 0; i < this.formobj.vehicleList.length; i++) { |
|
|
|
if (this.formobj.vehicleList[i].vinNo !== '') { |
|
|
|
if (this.formobj.vehicleList[i].vinNo.length < 17) { |
|
|
|
const message = '车架号:' + this.formobj.vehicleList[i].vinNo + ' 不足17位' |
|
|
|
this.$message({ showClose: true, type: 'error', message: message }) |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
req.submitVehicleApply(this.formobj).then(res => { |
|
|
|
if (res.success) { |
|
|
|
this.$message({ |
|
|
|