The file /home/project/src/components/warehouse/ProductForm.tsx has been updated. Made 1 replacement.

Here's the result of running `cat -n` on a snippet of the edited file:
 300→    } else {
 301→      newFabricCode = suggestion.fabric_code;
 302→    }
 303→
 304→    // 生成色号（基于该产品名称-克重组合的最大值+1）
 305→    let newColorCode = '01';
 306→    if (companyId) {
 307→      newColorCode = await generateNextColorCode(
 308→        companyId,
 309→        suggestion.product_name,
 310→        suggestion.total_weight
 311→      );
 312→    }
 313→
 314→    setFormData(prev => ({
 315→      ...prev,
 316→      product_name: suggestion.product_name,
 317→      // 自动填写克重