优化编辑商品起售数量不显示和库存数量显示不准确

This commit is contained in:
gyq 2024-07-23 17:12:11 +08:00
parent 52ed7edf08
commit dcb2eb36ea
1 changed files with 5 additions and 8 deletions

View File

@ -108,10 +108,7 @@
</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>
<el-input-number v-model="scope.row.suit" controls-position="right"></el-input-number>
</template>
</el-table-column>
<el-table-column label="库存数量" prop="stockNumber">
@ -239,10 +236,7 @@
<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>
<el-input-number v-model="scope.row.suit" controls-position="right"></el-input-number>
</template>
</el-table-column>
<el-table-column label="库存数量" prop="stockNumber">
@ -578,8 +572,11 @@ export default {
specInfo[index].realSalesNumber = item.productId;
specInfo[index].shopId = item.shopId;
specInfo[index].warnLine = item.warnLine;
specInfo[index].suit = item.suit;
specInfo[index].stockNumber = item.stockNumber;
return specInfo[index];
});
console.log(this.form.skuList);
this.originSkuList = [...this.form.skuList];
this.selectSpecResult = true;
}