| | |
| | | </el-button> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-table :data="scheduleRows" border style="width: 100%" v-loading="scheduleLoading"> |
| | | <el-table-column type="index" label="序号" width="70" align="center" /> |
| | | |
| | | <el-table-column type="index" label="序号" width="70" align="center" :index="indexMethod" /> |
| | | <el-table-column label="本次上机机台" min-width="220"> |
| | | <template #default="{ row }"> |
| | | <el-select |
| | |
| | | return; |
| | | } |
| | | |
| | | const rows = buildScheduleRowsFromRecords(records); |
| | | |
| | | const rows = records.map(record => mapMachineRecordToScheduleRow(record)); |
| | | scheduleRows.value = rows.length > 0 ? rows : [createScheduleRow({})]; |
| | | } catch (error) { |
| | | console.error("获取排产记录失败", error); |
| | |
| | | } |
| | | |
| | | return payload; |
| | | }; |
| | | |
| | | const indexMethod = (index) => { |
| | | return (schedulePage.current - 1) * schedulePage.size + index + 1; |
| | | }; |
| | | |
| | | const mapMachineRecordToScheduleRow = (record) => { |
| | |
| | | showReportDialog(row); |
| | | }, |
| | | // 用户当前id |
| | | disabled: row => row.completeQuantity === row.planQuantity || |
| | | disabled: row => row.completeQuantity !==0 || |
| | | !isCurrentUserInUserIds(row) |
| | | }, |
| | | { |