shish пре 4 година
родитељ
комит
6f29d0ca19
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      ghsApp/src/admin/item/detail.vue

+ 2 - 2
ghsApp/src/admin/item/detail.vue

@@ -348,9 +348,9 @@ export default {
         this.form.price = ''
         this.form.scanNum = 0
         this.form.addPrice = 3
-        this.form.discountPrice = ''
+        this.form.discountPrice = 0
         this.form.skMore = 3
-        this.cost = res.data.cost || 0
+        this.cost = res.data && res.data.cost ? parseFloat(res.data.cost) : 0
       })
     },
     getDetail() {