|
|
@@ -163,7 +163,7 @@
|
|
|
highlight-current-row
|
|
|
stripe
|
|
|
style="margin-bottom: 20px">
|
|
|
- <el-table-column align="center" label="大类" prop="mainId" min-width="120">
|
|
|
+ <el-table-column align="center" label="*大类" prop="mainId" min-width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<el-select
|
|
|
size="small"
|
|
|
@@ -181,7 +181,7 @@
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="小类" prop="smallId" min-width="120">
|
|
|
+ <el-table-column align="center" label="*小类" prop="smallId" min-width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<el-select
|
|
|
size="small"
|
|
|
@@ -199,7 +199,7 @@
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="商品名称" prop="specValue" min-width="180">
|
|
|
+ <el-table-column align="center" label="*规格名称" prop="specValue" min-width="180">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input size="small" v-model="scope.row.specValue" :disabled="scope.row.goodsCode != ''"></el-input>
|
|
|
</template>
|
|
|
@@ -227,12 +227,12 @@
|
|
|
{{scope.row.unit | unitFilter}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="销售价格" prop="price" min-width="120">
|
|
|
+ <el-table-column align="center" label="*销售价格" prop="price" min-width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input size="small" v-model="scope.row.price"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="划线价格" prop="orgPrice" min-width="120">
|
|
|
+ <el-table-column align="center" label="*划线价格" prop="orgPrice" min-width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input size="small" v-model="scope.row.orgPrice"></el-input>
|
|
|
</template>
|
|
|
@@ -242,17 +242,17 @@
|
|
|
{{scope.row.costAmount}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="佣金" prop="shareAmount" min-width="120">
|
|
|
+ <el-table-column align="center" label="*佣金" prop="shareAmount" min-width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input size="small" v-model="scope.row.shareAmount"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="内部佣金" prop="innerShareAmount" min-width="120">
|
|
|
+ <el-table-column align="center" label="*内部佣金" prop="innerShareAmount" min-width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input size="small" v-model="scope.row.innerShareAmount"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="上架库存" prop="stockNum" min-width="120">
|
|
|
+ <el-table-column align="center" label="*上架库存" prop="stockNum" min-width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input size="small" v-model="scope.row.stockNum"></el-input>
|
|
|
</template>
|
|
|
@@ -262,7 +262,7 @@
|
|
|
{{scope.row.stockQty}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="规格图片" prop="imgUrl" min-width="120">
|
|
|
+ <el-table-column align="center" label="*规格图片" prop="imgUrl" min-width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<el-image
|
|
|
v-if="scope.row.imgUrl"
|
|
|
@@ -767,7 +767,7 @@ export default {
|
|
|
this.specList[index].mainName = item.mainName || '';
|
|
|
this.specList[index].smallId = item.smallId || '';
|
|
|
this.specList[index].smallName = item.smallName || '';
|
|
|
- this.specList[index].specValue = item.goodsName || '';
|
|
|
+ this.specList[index].specValue = item.specsName || '';
|
|
|
this.specList[index].specsName = item.specsName || '';
|
|
|
this.specList[index].unit = item.unit || '';
|
|
|
this.specList[index].costAmount = item.costAmount || '';
|
|
|
@@ -782,6 +782,21 @@ export default {
|
|
|
// 验证第二步
|
|
|
this.$refs.step2Form.validate((valid) => {
|
|
|
if (valid) {
|
|
|
+
|
|
|
+ if(this.specList.length < 1) return this.$errorMsg('请添加规格类型')
|
|
|
+
|
|
|
+ for(let i=0; i<this.specList.length; i++) {
|
|
|
+ if(!this.specList[i].mainId) return this.$errorMsg('请选择大类')
|
|
|
+ if(!this.specList[i].smallId) return this.$errorMsg('请选择小类')
|
|
|
+ if(!this.specList[i].specValue) return this.$errorMsg('请填写规格名称')
|
|
|
+ if(!this.specList[i].price) return this.$errorMsg('请填写销售价格')
|
|
|
+ if(!this.specList[i].orgPrice) return this.$errorMsg('请填写划线价格')
|
|
|
+ if(!this.specList[i].shareAmount) return this.$errorMsg('请填写佣金')
|
|
|
+ if(!this.specList[i].innerShareAmount) return this.$errorMsg('请填写内部佣金')
|
|
|
+ if(!this.specList[i].stockNum) return this.$errorMsg('请填写商品库存')
|
|
|
+ if(!this.specList[i].imgUrl) return this.$errorMsg('请上传规格图片')
|
|
|
+ }
|
|
|
+
|
|
|
// 验证第三步
|
|
|
this.$refs.step3Form.validate((valid) => {
|
|
|
if (valid) {
|