@@ -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() {