Commit ddb69e67 by cpa

规格表价格多了一个 已解决

parent 37a5f53e
......@@ -35,20 +35,13 @@
</el-table-column>
<el-table-column label="商家价格" width="160">
<el-table-column label="价格" width="160">
<template slot-scope="scope">
<el-input-number v-model="scope.row.merchantPrice" :precision="2" :step="1" :min="0">
</el-input-number>
</template>
</el-table-column>
<el-table-column label="售卖价格" width="160">
<template slot-scope="scope">
<el-input-number v-model="scope.row.sellPrice" :precision="2" :step="1" :min="0">
</el-input-number>
</template>
</el-table-column>
<el-table-column label="图片" width="120">
<template slot-scope="scope">
<uploader :size="{width: '60px', height: '60px'}" :urls="scope.row.goodsImage" @change="(list) => { scope.row.goodsImage = list.join(',') }" />
......@@ -348,11 +341,7 @@
callback(new Error("第" + (i + 1) + "个规格商品商家价格不正确"))
return
}
let sellPrice = parseFloat(sku.sellPrice)
if(isNaN(sellPrice)) {
callback(new Error("第" + (i + 1) + "个规格商品售卖价格不正确"))
return
}
let goodsImage = sku.goodsImage
if(goodsImage == undefined || goodsImage.length == 0) {
callback(new Error("第" + (i + 1) + "个规格商品图片未上传"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment