Commit 030d38d3 authored by dragondean@qq.com's avatar dragondean@qq.com

修复拆单部分情况下货值多0.01

parent 83f24f18
......@@ -1141,7 +1141,13 @@ export default {
const chargeWeight = orderItem.itemType === 3 ? (orderItem.chargeWeight*rate).toFixed(2) : this.putin.weight
this.$set(this.shopForm, 'chargeVolume', chargeVolume)
this.$set(this.shopForm, 'chargeWeight', chargeWeight)
this.$set(this.shopForm, 'worth', (orderItem.worth*rate).toFixed(2))
// 如果品名全拆,则货值直接给剩余数据,否则按照比例计算
let worth = (orderItem.worth*rate).toFixed(2)
if(this.leftData.num.toNumber() === this.putin.num){
worth = this.leftData.worth
}
this.$set(this.shopForm, 'worth', worth)
},
// 重置
reset(){
......
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