浏览代码

bug 修复

lilei 2 年之前
父节点
当前提交
bb9a5e4317

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1668074996701
+  "version": 1668076357699
 }

+ 7 - 1
src/views/numsGoodsShelves/shelfSet/addHwModal.vue

@@ -140,6 +140,9 @@ export default {
       this.form.price = obj && obj.row && obj.row.price || ''
       this.form.cost = obj && obj.row && obj.row.cost || ''
       this.productName = obj && obj.row && obj.row.name || ''
+      this.form.oldPrice = obj && obj.row && obj.row.price || ''
+      this.form.oldCost = obj && obj.row && obj.row.cost || ''
+      this.form.oldMaxQty = ''
     },
     placeCodeBlur (v) {
     	this.$nextTick(() => {
@@ -165,7 +168,10 @@ export default {
               productCode: form.productCode,
               price: form.price,
               cost: form.cost,
-              maxQty: form.maxQty
+              maxQty: form.maxQty,
+              oldPrice: form.oldPrice,
+              oldCost: form.oldCost,
+              oldMaxQty: form.oldMaxQty
             }
           }
           // 开始提交数据

+ 6 - 0
src/views/numsGoodsShelves/shelfSet/bindProductModal.vue

@@ -136,6 +136,8 @@ export default {
       this.form.productCode = obj && obj.row && obj.row.code || ''
       this.form.price = obj && obj.row && obj.row.price || ''
       this.form.cost = obj && obj.row && obj.row.cost || ''
+      this.form.oldPrice = obj && obj.row && obj.row.price || ''
+      this.form.oldCost = obj && obj.row && obj.row.cost || ''
       this.productName = obj && obj.row && obj.row.name || ''
       this.$refs.ruleForm.validate()
     },
@@ -145,6 +147,7 @@ export default {
       this.$refs.ruleForm.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
@@ -181,6 +184,9 @@ export default {
           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.productInfo = null
           this.$refs.ruleForm.resetFields()