|
|
@@ -1240,8 +1240,8 @@ export default {
|
|
|
this.brandDescList = brandList
|
|
|
// 存储库存列表供选择用,不直接展示到表格
|
|
|
this.stockDescList = stockList
|
|
|
- // 默认显示全部物料至下方表格,预测数量默认 0,用户可手动删除不需要的物料
|
|
|
- this.stockTableData = stockList.map(item => ({ ...item, forecastQuantity: 0 }))
|
|
|
+ // 默认显示全部物料至下方表格,预测数量默认 1,用户可手动删除不需要的物料
|
|
|
+ this.stockTableData = stockList.map(item => ({ ...item, forecastQuantity: 1 }))
|
|
|
// 根据表格中已有的物料,过滤下拉选项
|
|
|
this.updateStockSelectOptions()
|
|
|
// 规范化分页并回显选择(新增模式首次加载)
|
|
|
@@ -1296,8 +1296,8 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- // 添加到表格,默认预测数量为 0
|
|
|
- this.stockTableData.push({ ...stock, forecastQuantity: 0 })
|
|
|
+ // 添加到表格,默认预测数量为 1
|
|
|
+ this.stockTableData.push({ ...stock, forecastQuantity: 1 })
|
|
|
// 清空已选
|
|
|
this.selectedStockId = null
|
|
|
// 导入后更新下拉选项(过滤掉已在表格中的物料)
|