iloom-flatten/.microcompact/mpo3ttil/functions.Edit:37.txt

21 lines
754 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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→ // 自动填写克重