更新
This commit is contained in:
@@ -157,14 +157,15 @@ export default {
|
|||||||
},
|
},
|
||||||
changePreQuantity(row, val) {
|
changePreQuantity(row, val) {
|
||||||
let segment = val.match(/.?\d{0,2}/g)
|
let segment = val.match(/.?\d{0,2}/g)
|
||||||
row.preQuantity = parseFloat(segment[0] + segment[1])
|
let realPrice = parseFloat(segment[0] + segment[1])
|
||||||
if (isNaN(row.preQuantity)) {
|
if (isNaN(realPrice)) {
|
||||||
this.$message.error('数量输入错误,请重新输入')
|
this.$message.error('数量输入错误,请重新输入')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let { salePrice, floorPrice } = row
|
let { salePrice, floorPrice } = row
|
||||||
row.preAmount = this.fixedHandle(salePrice * row.preQuantity)
|
row.preQuantity = realPrice
|
||||||
row.preCostAmount = this.fixedHandle(floorPrice * row.preQuantity)
|
row.preAmount = this.fixedHandle(salePrice * realPrice)
|
||||||
|
row.preCostAmount = this.fixedHandle(floorPrice * realPrice)
|
||||||
},
|
},
|
||||||
selectPolicy(index, val) {
|
selectPolicy(index, val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
|
|||||||
Reference in New Issue
Block a user