浏览代码

修改bug

chenrui 2 年之前
父节点
当前提交
c251c1d83d
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/views/supplierManagement/costSetting/settingCost.vue

+ 4 - 1
src/views/supplierManagement/costSetting/settingCost.vue

@@ -100,11 +100,14 @@ export default {
     setData (row) {
       this.form.supplierSn = row.supplierSn
       this.form.supplierProductSn = row.supplierProductSn
-      this.form.modifyCost = this.edit ? row.cost : ''
       this.cost = row.cost
       this.productName = row.product.name
       this.productCode = row.product.code
       this.supplierName = row.supplierName
+      const _this = this
+      _this.$nextTick(() => {
+        _this.form.modifyCost = _this.edit ? row.modifyCost : ''
+      })
     },
     onSubmit () {
       const _this = this