| | |
| | | if (sunqianUser) { |
| | | sunqianUserId.value = sunqianUser.userId; |
| | | } |
| | | // 在用户列表加载完成后创建行数据 |
| | | tableData.value = [createRow()]; |
| | | // 在用户列表加载完成后创建行数据,并将产线数据带入 |
| | | tableData.value = [createRow(row)]; |
| | | }); |
| | | } |
| | | |
| | | const createRow = () => ({ |
| | | const createRow = (row) => ({ |
| | | id: idFromRow.value, |
| | | process: '包装', |
| | | schedulingDate: '', |
| | |
| | | unit: unitFromRow.value, |
| | | remark: '', |
| | | type: specificationModelFromRow.value, |
| | | productionLine: '', // 产线字段 |
| | | productionLine: row?.productionLine ?? '', // 从行数据中获取产线信息 |
| | | }); |
| | | |
| | | const submitForm = () => { |
| | |
| | | width: 220, |
| | | }, |
| | | { |
| | | label: "产线", |
| | | prop: "productionLine", |
| | | width: 220, |
| | | }, |
| | | { |
| | | label: "单位", |
| | | prop: "unit", |
| | | }, |