|
@@ -712,7 +712,7 @@
|
|
class="deal"
|
|
class="deal"
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="基差(元/吨)" :label-width="formLabelWidth">
|
|
|
|
|
|
+ <el-form-item v-if='aduitlist.procurementPlanType=="期货"' label="基差(元/吨)" :label-width="formLabelWidth">
|
|
<el-input
|
|
<el-input
|
|
v-model="aduitlist.basis"
|
|
v-model="aduitlist.basis"
|
|
autocomplete="off"
|
|
autocomplete="off"
|
|
@@ -728,7 +728,7 @@
|
|
class="deal"
|
|
class="deal"
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="卸车费用(元/吨)" :label-width="formLabelWidth">
|
|
|
|
|
|
+ <el-form-item v-if='aduitlist.procurementPlanType=="期货"' label="卸车费用(元/吨)" :label-width="formLabelWidth">
|
|
<el-input
|
|
<el-input
|
|
v-model="aduitlist.unloadingCharge"
|
|
v-model="aduitlist.unloadingCharge"
|
|
autocomplete="off"
|
|
autocomplete="off"
|
|
@@ -1426,6 +1426,7 @@ export default {
|
|
this.$set(this.aduitlist, 'totalDeposit', item.customerInfo.totalDeposit)
|
|
this.$set(this.aduitlist, 'totalDeposit', item.customerInfo.totalDeposit)
|
|
},
|
|
},
|
|
aduitconfirm() {
|
|
aduitconfirm() {
|
|
|
|
+ debugger
|
|
if (!this.aduitlist.unitPrice) {
|
|
if (!this.aduitlist.unitPrice) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '单价不能为空!',
|
|
message: '单价不能为空!',
|
|
@@ -1475,8 +1476,9 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (
|
|
|
|
- (this.aduitlist.basis &&
|
|
|
|
|
|
+ if(this.aduitlist.procurementPlanType != '现货'){
|
|
|
|
+ if (
|
|
|
|
+ (!this.aduitlist.basis &&
|
|
String(this.aduitlist.basis).indexOf('.') != -1 &&
|
|
String(this.aduitlist.basis).indexOf('.') != -1 &&
|
|
String(this.aduitlist.basis).length -
|
|
String(this.aduitlist.basis).length -
|
|
(String(this.aduitlist.basis).indexOf('.') + 1) >
|
|
(String(this.aduitlist.basis).indexOf('.') + 1) >
|
|
@@ -1491,7 +1493,7 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- (this.aduitlist.unloadingCharge &&
|
|
|
|
|
|
+ (!this.aduitlist.unloadingCharge &&
|
|
String(this.aduitlist.unloadingCharge).indexOf('.') != -1 &&
|
|
String(this.aduitlist.unloadingCharge).indexOf('.') != -1 &&
|
|
String(this.aduitlist.unloadingCharge).length -
|
|
String(this.aduitlist.unloadingCharge).length -
|
|
(String(this.aduitlist.unloadingCharge).indexOf('.') + 1) >
|
|
(String(this.aduitlist.unloadingCharge).indexOf('.') + 1) >
|
|
@@ -1505,14 +1507,15 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- this.aduitlist.unloadingCharge = '-' + this.aduitlist.unloadingCharge
|
|
|
|
- this.aduitlist.basis = '-' + this.aduitlist.basis
|
|
|
|
|
|
+ }
|
|
this.aduitlist.procurementPlanType = this.aduitlist.procurementPlanType
|
|
this.aduitlist.procurementPlanType = this.aduitlist.procurementPlanType
|
|
if (this.aduitlist.procurementPlanType == '期货') {
|
|
if (this.aduitlist.procurementPlanType == '期货') {
|
|
this.aduitlist.freezingDeposit = this.aduitlist.transactionsNumber*this.aduitlist.depositRatio
|
|
this.aduitlist.freezingDeposit = this.aduitlist.transactionsNumber*this.aduitlist.depositRatio
|
|
if(this.aduitlist.invoiceFee){
|
|
if(this.aduitlist.invoiceFee){
|
|
this.aduitlist.invoiceFee=-Math.abs(this.aduitlist.invoiceFee)
|
|
this.aduitlist.invoiceFee=-Math.abs(this.aduitlist.invoiceFee)
|
|
}
|
|
}
|
|
|
|
+ this.aduitlist.unloadingCharge = '-' + this.aduitlist.unloadingCharge
|
|
|
|
+ this.aduitlist.basis = '-' + this.aduitlist.basis
|
|
}
|
|
}
|
|
this.dialogFormVisible4 = false
|
|
this.dialogFormVisible4 = false
|
|
this.$confirm(`审核通过后,将通知客户订单生效,是否确定通过审核?`, {
|
|
this.$confirm(`审核通过后,将通知客户订单生效,是否确定通过审核?`, {
|