|
@@ -42,9 +42,9 @@
|
|
|
</el-row>
|
|
|
<el-row :gutter="40" style="width: 500px">
|
|
|
<el-col :span="23">
|
|
|
- <el-form-item label="供应商:" prop="supplerId">
|
|
|
+ <el-form-item label="供应商:" prop="supplierId">
|
|
|
<el-select
|
|
|
- v-model="addData.supplerId"
|
|
|
+ v-model="addData.supplierId"
|
|
|
placeholder="请选择供应商"
|
|
|
filterable
|
|
|
clearable
|
|
@@ -199,7 +199,7 @@ export default {
|
|
|
title: [{ required: true, message: '请输入商品名称', trigger: 'blur' }],
|
|
|
picUrl: [{ required: true, message: '请上传商品图片', trigger: 'change' }],
|
|
|
categoryId: [{ required: true, message: '请选择商品分类', trigger: 'change' }],
|
|
|
- supplerId: [{ required: true, message: '请选择供应商', trigger: 'change' }],
|
|
|
+ supplierId: [{ required: true, message: '请选择供应商', trigger: 'change' }],
|
|
|
exchangeShow: [{ required: true, message: '请选择是否支持盲豆兑换', trigger: 'change' }],
|
|
|
multiSku: [{ required: true, message: '请选择SKU类型', trigger: 'change' }],
|
|
|
value: [
|
|
@@ -254,11 +254,11 @@ export default {
|
|
|
this.getGoodsTagItems()
|
|
|
if (this.id) {
|
|
|
getGoodsDetail(this.id).then(res => {
|
|
|
- const { goodsId, title, goodsCode, picUrl,merchantInfo, exchangeShow, multiSku, value, exchangePrice, cost, quantity, description, skuList, categoryId, supplerId, shoppingLink, tagIds } = res.data
|
|
|
+ const { goodsId, title, goodsCode, picUrl,merchantInfo, exchangeShow, multiSku, value, exchangePrice, cost, quantity, description, skuList, categoryId, supplierId, shoppingLink, tagIds } = res.data
|
|
|
this.addData = {
|
|
|
value: accDiv(value, 100),
|
|
|
cost: cost == '' || cost == null ? '' : accDiv(cost, 100),
|
|
|
- goodsId, title, goodsCode, picUrl,merchantInfo, exchangeShow, multiSku, exchangePrice, quantity, description, skuList, categoryId, supplerId, shoppingLink, tagIds
|
|
|
+ goodsId, title, goodsCode, picUrl,merchantInfo, exchangeShow, multiSku, exchangePrice, quantity, description, skuList, categoryId, supplierId, shoppingLink, tagIds
|
|
|
}
|
|
|
if(description) {
|
|
|
this.$refs.editor.setContent(description)
|