更新
This commit is contained in:
@@ -124,6 +124,7 @@ export default {
|
|||||||
console.log('价格发生变化了捏')
|
console.log('价格发生变化了捏')
|
||||||
// 新的价格
|
// 新的价格
|
||||||
this.newSalePrice = salePrice2company
|
this.newSalePrice = salePrice2company
|
||||||
|
|
||||||
this.policyPopulation()
|
this.policyPopulation()
|
||||||
} else console.log('芜湖 没变')
|
} else console.log('芜湖 没变')
|
||||||
})
|
})
|
||||||
@@ -136,15 +137,25 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
policyPopulation() {
|
policyPopulation() {
|
||||||
let { salePrice, preQuantity, preAmount } = this.controlWindows.addInfo
|
let { salePrice, floorPrice, preQuantity, preAmount } = this.controlWindows.addInfo
|
||||||
console.log(salePrice, preQuantity, preAmount)
|
// console.log(salePrice, preQuantity, preAmount)
|
||||||
if ((salePrice, preQuantity, preAmount)) {
|
if ((salePrice, preQuantity, preAmount)) {
|
||||||
// 原策略
|
// 原策略
|
||||||
Object.assign(this.tableData[0], { salePrice, preQuantity, preAmount })
|
Object.assign(this.tableData[0], { salePrice, floorPrice, preQuantity, preAmount })
|
||||||
// 以提货量为准
|
// 以提货量为准
|
||||||
Object.assign(this.tableData[1], { salePrice: this.newSalePrice, preQuantity, preAmount: +this.newSalePrice * +preQuantity })
|
Object.assign(this.tableData[1], {
|
||||||
|
salePrice: this.newSalePrice,
|
||||||
|
floorPrice: this.newSalePrice,
|
||||||
|
preQuantity,
|
||||||
|
preAmount: +this.newSalePrice * +preQuantity
|
||||||
|
})
|
||||||
// 以订单金额为准
|
// 以订单金额为准
|
||||||
Object.assign(this.tableData[2], { salePrice: this.newSalePrice, preQuantity: +preAmount / +this.newSalePrice, preAmount })
|
Object.assign(this.tableData[2], {
|
||||||
|
salePrice: this.newSalePrice,
|
||||||
|
floorPrice: this.newSalePrice,
|
||||||
|
preQuantity: +preAmount / +this.newSalePrice,
|
||||||
|
preAmount
|
||||||
|
})
|
||||||
this.undergoChanges = true
|
this.undergoChanges = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user