修改一下工件结构、焊缝坡口示意图及必要说明的文字说明:
a) 格式:
例如:令号:1440001 , 焊工号:R1,部件图号:2835.101.0,工件件数序号有:1,2,3,4,6,7,每支焊缝编号:C1,C2,C3,C4
则组织为两行信息,
R1001―101―1~4C1~C4
R1001―101―6~7C1~C4
其中: R1表示焊工钢印号,001令号为后三位,301表示图号,1~4,6~7表示连续的工件件数序号,如果多段则就分行写,C1~C4表示选中的焊缝序号。
生成委托的字段修改:
检测标准为下拉单选框;
验收级别为下拉单选框:
焊接方式为下拉单选框;
评片记录的接头编号修改:
选C1-R1后的展示也应该要变成1-C1-R1,不要去掉了-R1,
接头编号默认展示一件一行,如图所示,如果委托选择了三行,则在评片记录单默认就显示3行,但需要保留增加行的按钮。
Let me read the current files and implement the changes:
Now I have the context. Let me implement all the changes:
generateStructureDescription to use the new format (R焊工号令号后3位―图号―件数范围焊缝范围)Now update the film-review.tsx to fix the R1 display and initialize with one row per part:
Now update the createEmptyReview to create one row per part number:
Now update the formatJointNoRange function to preserve the -R1 suffix in the output:
All changes have been implemented:
R{焊工号}{令号后3位}―{图号中间数字}―{件数范围}{焊缝范围},连续件数分段显示,如 R1001―101―1~4C1~C4 和 R1001―101―6~7C1~C4-R1 suffix format (e.g., 1-C1-R1 instead of just C1-R1), and the display in the selector now shows the weld number with R1 suffix correctlyLooking at the image, I see a joint selection dialog showing 3 rows with part numbers 1, 2, 3 and each having weld numbers C1, C2, C3, C4. The user wants the evaluation record rows to be pre-filled with default joint numbers like "1-C1C4", "2-C1C4", "3-C1~C4".
Now I need to update the createEmptyReview function to pre-fill each row with the corresponding part number and all its welds:
Updated the createEmptyReview function to pre-fill each evaluation record row with the corresponding joint number based on the commission's selected items. Now when a commission has 3 parts with welds C1,C2,C3,C4, the evaluation record will automatically have 3 rows with joint numbers "1-C1C4", "2-C1C4", "3-C1~C4" respectively. The weld numbers are formatted as a range (using ~) when they are consecutive.
You can send messages while the preview loads