|
@@ -213,7 +213,7 @@
|
|
v-input-limit="0"
|
|
v-input-limit="0"
|
|
@input="arrivalQuantityChange(row)"
|
|
@input="arrivalQuantityChange(row)"
|
|
></el-input>
|
|
></el-input>
|
|
- <span v-else>{{ row.arrivalQuantity }}</span>
|
|
|
|
|
|
+ <span v-else>{{ row.arrivalQuantity | IntegerFormat }}</span>
|
|
</template>
|
|
</template>
|
|
<template slot="corpId" slot-scope="{ row, index }">
|
|
<template slot="corpId" slot-scope="{ row, index }">
|
|
<crop-select
|
|
<crop-select
|
|
@@ -1206,8 +1206,9 @@ export default {
|
|
if (this.goodsActives == 'goods') {
|
|
if (this.goodsActives == 'goods') {
|
|
if (Number(row.actualQuantity) < Number(row.arrivalQuantity)) {
|
|
if (Number(row.actualQuantity) < Number(row.arrivalQuantity)) {
|
|
row.arrivalQuantity = row.actualQuantity
|
|
row.arrivalQuantity = row.actualQuantity
|
|
|
|
+ row.purchaseTotalAmount = (Number(row.arrivalQuantity) * Number(row.purchaseAmount)).toFixed(2)
|
|
|
|
+ row.deliveryAmount = (Number(row.arrivalQuantity) * Number(row.price)).toFixed(2)
|
|
}
|
|
}
|
|
- row.deliveryAmount = Number(row.actualQuantity) * Number(row.price)
|
|
|
|
this.form.deliveryAmount = 0
|
|
this.form.deliveryAmount = 0
|
|
this.form.totalQuantity = 0
|
|
this.form.totalQuantity = 0
|
|
this.contactsData.forEach(item => {
|
|
this.contactsData.forEach(item => {
|
|
@@ -1229,6 +1230,8 @@ export default {
|
|
this.$message.error('到货数量不能超过出库数量')
|
|
this.$message.error('到货数量不能超过出库数量')
|
|
row.arrivalQuantity = 0
|
|
row.arrivalQuantity = 0
|
|
}
|
|
}
|
|
|
|
+ row.purchaseTotalAmount = (Number(row.arrivalQuantity) * Number(row.purchaseAmount)).toFixed(2)
|
|
|
|
+ row.deliveryAmount = (Number(row.arrivalQuantity) * Number(row.price)).toFixed(2)
|
|
row.integral = Number(row.integralMultiples) * Number(row.arrivalQuantity)
|
|
row.integral = Number(row.integralMultiples) * Number(row.arrivalQuantity)
|
|
this.$set(this.form, 'presenterIntegral' , 0)
|
|
this.$set(this.form, 'presenterIntegral' , 0)
|
|
this.goodsShowData.forEach(item => {
|
|
this.goodsShowData.forEach(item => {
|