소스 검색

修改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