优化商品
This commit is contained in:
@@ -222,6 +222,14 @@
|
||||
></el-input-number>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="起售数量" prop="suit">
|
||||
<template slot-scope="scope">
|
||||
<el-input-number
|
||||
v-model="scope.row.suit"
|
||||
controls-position="right"
|
||||
></el-input-number>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="库存数量" prop="stockNumber">
|
||||
<template v-slot="scope">
|
||||
<el-input-number
|
||||
@@ -454,6 +462,18 @@
|
||||
></el-input-number>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="起售数量" prop="suit">
|
||||
<template slot="header" slot-scope="scope">
|
||||
<span>起售数量</span>
|
||||
<i class="icon el-icon-edit" @click="batchNumber('suit')"></i>
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
<el-input-number
|
||||
v-model="scope.row.suit"
|
||||
controls-position="right"
|
||||
></el-input-number>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="库存数量" prop="stockNumber">
|
||||
<template slot="header" slot-scope="scope">
|
||||
<span>库存数量</span>
|
||||
@@ -466,7 +486,7 @@
|
||||
<template slot-scope="scope">
|
||||
<el-input-number
|
||||
v-model="scope.row.stockNumber"
|
||||
:disabled="!!form.id"
|
||||
:disabled="!!scope.row.id"
|
||||
controls-position="right"
|
||||
></el-input-number>
|
||||
</template>
|
||||
@@ -657,7 +677,8 @@ export default {
|
||||
originPrice: 0,
|
||||
stockNumber: 0,
|
||||
firstShared: 0,
|
||||
barCode: `${localStorage.getItem("shopId")}${dayjs().valueOf()}`
|
||||
barCode: `${localStorage.getItem("shopId")}${dayjs().valueOf()}`,
|
||||
suit: 1
|
||||
},
|
||||
tableAddShopIndex: null,
|
||||
isEditor: false,
|
||||
@@ -992,10 +1013,15 @@ export default {
|
||||
this.form.skuList = newarr.map(item => {
|
||||
this.originSkuList.map(val => {
|
||||
if (item.specSnap == val.specSnap) {
|
||||
for (let key in item) {
|
||||
for (let key in val) {
|
||||
item[key] = val[key];
|
||||
}
|
||||
item.id = val.id;
|
||||
} else {
|
||||
item.productId = this.$route.query.goods_id;
|
||||
item.realSalesNumber = "";
|
||||
item.shopId = localStorage.getItem("shopId");
|
||||
item.warnLine = "";
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user