shish 4 лет назад
Родитель
Сommit
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.price = ''
         this.form.scanNum = 0
         this.form.scanNum = 0
         this.form.addPrice = 3
         this.form.addPrice = 3
-        this.form.discountPrice = ''
+        this.form.discountPrice = 0
         this.form.skMore = 3
         this.form.skMore = 3
-        this.cost = res.data.cost || 0
+        this.cost = res.data && res.data.cost ? parseFloat(res.data.cost) : 0
       })
       })
     },
     },
     getDetail() {
     getDetail() {