|
@@ -102,6 +102,12 @@
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="23">
|
|
|
+ <el-form-item label="商品编码:" prop="goodsCode">
|
|
|
+ <el-input v-model="addData.goodsCode" type="number" placeholder="请输入商品编码">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="23">
|
|
|
<el-form-item label="库存:" prop="quantity">
|
|
|
<el-input v-model="addData.quantity" type="number" placeholder="请输入商品库存">
|
|
@@ -212,11 +218,11 @@ export default {
|
|
|
this.getGoodsTagItems()
|
|
|
if (this.id) {
|
|
|
getGoodsDetail(this.id).then(res => {
|
|
|
- const { goodsId, title, picUrl,merchantInfo, exchangeShow, multiSku, value, exchangePrice, cost, quantity, description, skuList, categoryId, tagIds } = res.data
|
|
|
+ const { goodsId, title, goodsCode, picUrl,merchantInfo, exchangeShow, multiSku, value, exchangePrice, cost, quantity, description, skuList, categoryId, tagIds } = res.data
|
|
|
this.addData = {
|
|
|
value: accDiv(value, 100),
|
|
|
cost: cost == '' || cost == null ? '' : accDiv(cost, 100),
|
|
|
- goodsId, title, picUrl,merchantInfo, exchangeShow, multiSku, exchangePrice, quantity, description, skuList, categoryId, tagIds
|
|
|
+ goodsId, title, goodsCode, picUrl,merchantInfo, exchangeShow, multiSku, exchangePrice, quantity, description, skuList, categoryId, tagIds
|
|
|
}
|
|
|
if(description) {
|
|
|
this.$refs.editor.setContent(description)
|