|
@@ -103,6 +103,8 @@
|
|
|
_this.productEntity = data
|
|
|
_this.form.price = Number(data.price)
|
|
|
_this.form.cost = Number(data.cost)
|
|
|
+ _this.form.oldPrice = Number(data.price)
|
|
|
+ _this.form.oldCost = Number(data.cost)
|
|
|
_this.form.productCode = data.code
|
|
|
_this.form.productSn = data.productSn
|
|
|
// 更换产品
|
|
@@ -180,6 +182,9 @@
|
|
|
this.form.price = res.data.price
|
|
|
this.form.cost = res.data.cost
|
|
|
this.form.maxQty = res.data.maxQty
|
|
|
+ this.form.oldPrice = res.data.price
|
|
|
+ this.form.oldCost = res.data.cost
|
|
|
+ this.form.oldMaxQty = res.data.maxQty
|
|
|
} else {
|
|
|
this.productEntity = null
|
|
|
}
|
|
@@ -221,6 +226,7 @@
|
|
|
this.$refs.uForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
const form = JSON.parse(JSON.stringify(_this.form))
|
|
|
+ form.shelfSn = _this.nowData && _this.nowData.shelfSn
|
|
|
form.shelfPlaceSn = _this.nowData && _this.nowData.shelfPlaceSn
|
|
|
if(this.type != 'bind'){ // 不是绑定产品
|
|
|
form.shelfProductSn = _this.nowData && _this.nowData.shelfProductApiEntity && _this.nowData.shelfProductApiEntity.shelfProductSn || _this.nowData.shelfProductSn
|