|  | @@ -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)
 | 
	
		
			
				|  |  |                }))
 | 
	
	
		
			
				|  | @@ -821,7 +822,7 @@ export default {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          // 若编辑入参未包含预测编码,则根据id加载详情以保证回显
 | 
	
		
			
				|  |  |          try {
 | 
	
		
			
				|  |  | -          const id = (this.editData && (this.editData.id || this.editData.Id)) || (this.formData && (this.formData.id || this.formData.Id))
 | 
	
		
			
				|  |  | +          const id = (this.editData && (this.editData.id)) || (this.formData && (this.formData.id))
 | 
	
		
			
				|  |  |            if (!this.formData.forecastCode && id) {
 | 
	
		
			
				|  |  |              this.loadForecastDetail(id)
 | 
	
		
			
				|  |  |            }
 | 
	
	
		
			
				|  | @@ -878,6 +879,7 @@ export default {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * 收集当前可见表单项的必填与数值规则错误信息(用于控制台打印)
 | 
	
		
			
				|  |  | +     * @this {ForecastFormMixinComponent & Vue}
 | 
	
		
			
				|  |  |       * @returns {string[]} 错误消息列表
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |      collectValidationErrors() {
 | 
	
	
		
			
				|  | @@ -1298,6 +1300,7 @@ export default {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * 合并回显行的库存数量
 | 
	
		
			
				|  |  | +     * @this {ForecastFormMixinComponent & Vue}
 | 
	
		
			
				|  |  |       * @description 使用 getUserLinkGoods 接口返回的库存数据,为编辑态回显的物料行补齐 storeInventory 字段
 | 
	
		
			
				|  |  |       * @returns {Promise<void>}
 | 
	
		
			
				|  |  |       */
 |