|
@@ -78,6 +78,7 @@ import { getCustomerList, getItemList, getCustomerInfo } from '@/api/common'
|
|
|
|
|
|
// 表单配置导入
|
|
|
import { getFormOption } from './form-option'
|
|
|
+import { safeBigInt } from '@/util/util'
|
|
|
|
|
|
/**
|
|
|
* 销售预测表单事件常量
|
|
@@ -380,18 +381,18 @@ export default {
|
|
|
try {
|
|
|
this.stockTableData = newData.pcBladeSalesForecastSummaryList.map(item => ({
|
|
|
// 尽量保持与 PjpfStockDesc 结构一致,便于表格渲染
|
|
|
- id: item.id != null ? item.id : undefined,
|
|
|
- goodsId: item.itemId != null ? item.itemId : undefined,
|
|
|
+ id: item.id ? safeBigInt(item.id) : undefined,
|
|
|
+ goodsId: item.itemId ? safeBigInt(item.itemId) : undefined,
|
|
|
code: item.itemCode || '',
|
|
|
cname: item.itemName || '',
|
|
|
- brandId: item.brandId != null ? item.brandId : undefined,
|
|
|
+ brandId: item.brandId ? safeBigInt(item.brandId) : undefined,
|
|
|
brandCode: item.brandCode || '',
|
|
|
brandName: item.brandName || '',
|
|
|
typeNo: item.specs || '',
|
|
|
productDescription: item.pattern || '',
|
|
|
brandItem: item.pattern || '',
|
|
|
// 回显数据可能无库存,先不默认写入 '0',留给后续合并方法填充
|
|
|
- storeInventory: (item.storeInventory !== undefined && item.storeInventory !== null && item.storeInventory !== '') ? String(item.storeInventory) : undefined,
|
|
|
+ storeInventory: undefined,
|
|
|
// 预测数量用于编辑
|
|
|
forecastQuantity: Number(item.forecastQuantity || 0)
|
|
|
}))
|