Przeglądaj źródła

fix(forecast-form): 将预测数量默认值从0改为1

yz 2 tygodni temu
rodzic
commit
2c223e3c0f

+ 1 - 1
src/components/forecast-form/forecast-form-mixin.js

@@ -991,7 +991,7 @@ export default {
           value: item.id
         }))
         // 默认显示全部物料至下方表格,预测数量默认 0,用户可手动删除不需要的物料
-        this.stockTableData = stockList.map(item => ({ ...item, forecastQuantity: 0 }))
+        this.stockTableData = stockList.map(item => ({ ...item, forecastQuantity: 1 }))
       } catch (e) {
         console.error('加载用户关联商品失败:', e)
         this.$message.error(e.message || '加载用户关联商品失败')