Commit 458bd25e authored by dragondean@qq.com's avatar dragondean@qq.com

分次全部放入最后一次不是剩余数据的bug

parent 70319e7c
...@@ -318,15 +318,16 @@ export default { ...@@ -318,15 +318,16 @@ export default {
orderLocationList orderLocationList
} }
// 如果拆完了则剩下的全部放入,否则按照比例计算 // 如果拆完了则剩下的全部放入,否则按照比例计算
if(this.warehouseRecord.cartonsNum === this.totalSplitSum('num') + row.num) { this.$nextTick(() =>{
row.num = this.leftData('num') if(this.leftData('num', true) <= 0 ) {
row.volume = this.leftData('volume') row.volume = this.leftData('volume', true)
row.weight = this.leftData('weight') row.weight = this.leftData('weight', true)
row.quantity = this.leftData('quantity') row.quantity = this.leftData('quantity', true)
}else{ }else{
// 按照比例计算重量体积和数量 // 按照比例计算重量体积和数量
this.calc(row) this.calc(row)
} }
})
this.form.list.push(row) this.form.list.push(row)
}, },
...@@ -390,7 +391,7 @@ export default { ...@@ -390,7 +391,7 @@ export default {
return this.$message.error("全拆拆出体积必须等于原入仓体积") return this.$message.error("全拆拆出体积必须等于原入仓体积")
} }
if(this.splitTotal('weight') !== this.warehouseRecord.weight){ if(this.splitTotal('weight') !== this.warehouseRecord.weight){
return this.$message.error("全拆拆出体积必须等于原入仓体积") return this.$message.error("全拆拆出重量必须等于原入仓体积")
} }
} }
this.$emit('submit', this.form.list) this.$emit('submit', this.form.list)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment