chenrui 2 anni fa
parent
commit
c251c1d83d

+ 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