|
@@ -41,6 +41,7 @@
|
|
<th rowspan="2" class="required"><span>*</span>价格(元)</th>
|
|
<th rowspan="2" class="required"><span>*</span>价格(元)</th>
|
|
<th rowspan="2" class="required"><span>*</span>兑换盲豆数量</th>
|
|
<th rowspan="2" class="required"><span>*</span>兑换盲豆数量</th>
|
|
<th rowspan="2">采购价格(元)</th>
|
|
<th rowspan="2">采购价格(元)</th>
|
|
|
|
+ <th rowspan="2">SKU编码</th>
|
|
<th rowspan="2" class="required"><span>*</span>库存</th>
|
|
<th rowspan="2" class="required"><span>*</span>库存</th>
|
|
<th rowspan="2">启用</th>
|
|
<th rowspan="2">启用</th>
|
|
</tr>
|
|
</tr>
|
|
@@ -78,6 +79,11 @@
|
|
<el-input v-model="sku.costY" />
|
|
<el-input v-model="sku.costY" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</td>
|
|
</td>
|
|
|
|
+ <td class="pd">
|
|
|
|
+ <el-form-item :prop="`skuList.${index}.skuCode`">
|
|
|
|
+ <el-input v-model="sku.skuCode" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </td>
|
|
<td class="pd">
|
|
<td class="pd">
|
|
<el-form-item :prop="`skuList.${index}.quantity`" :rules="{ required: true, message: '请输入库存', trigger: 'blur' }">
|
|
<el-form-item :prop="`skuList.${index}.quantity`" :rules="{ required: true, message: '请输入库存', trigger: 'blur' }">
|
|
<el-input-number v-model="sku.quantity" :min="0" @change="$event === 0 ? sku.status = false : sku.status = true" />
|
|
<el-input-number v-model="sku.quantity" :min="0" @change="$event === 0 ? sku.status = false : sku.status = true" />
|
|
@@ -162,6 +168,7 @@ export default {
|
|
this.specListTmp = JSON.parse(JSON.stringify(this.specList))
|
|
this.specListTmp = JSON.parse(JSON.stringify(this.specList))
|
|
this.skuList = sku.map(item => {
|
|
this.skuList = sku.map(item => {
|
|
this.$set(item, 'valueY', accDiv(item.value, 100))
|
|
this.$set(item, 'valueY', accDiv(item.value, 100))
|
|
|
|
+ this.$set(item, 'skuCode', accDiv(item.skuCode, 1))
|
|
this.$set(item, 'exchange', accDiv(item.exchangePrice,1))
|
|
this.$set(item, 'exchange', accDiv(item.exchangePrice,1))
|
|
this.$set(item, 'costY', item.cost == null ? '' : accDiv(item.cost, 100) )
|
|
this.$set(item, 'costY', item.cost == null ? '' : accDiv(item.cost, 100) )
|
|
this.$set(item, 'picUrlArr', item.picUrl.split(',').map(item => { return { fileName: item }}))
|
|
this.$set(item, 'picUrlArr', item.picUrl.split(',').map(item => { return { fileName: item }}))
|
|
@@ -258,6 +265,7 @@ export default {
|
|
picUrlArr: [],
|
|
picUrlArr: [],
|
|
valueY: 0.00,
|
|
valueY: 0.00,
|
|
costY: '',
|
|
costY: '',
|
|
|
|
+ skuCode:'',
|
|
quantity: 0,
|
|
quantity: 0,
|
|
status: true,
|
|
status: true,
|
|
properties
|
|
properties
|