实际合格率低于【合格率】时,每个【生产工单】、【生产报工】台账需要标红显示
| | |
| | | @selection-change="handleSelectionChange" |
| | | :tableLoading="tableLoading" |
| | | @pagination="pagination" |
| | | :rowClassName="rowClassName" |
| | | :total="page.total"> |
| | | <template #productNoSlot="{ row }"> |
| | | <el-button |
| | |
| | | width: 120, |
| | | }, |
| | | { |
| | | label: "合格率", |
| | | prop: "actualQualifiedRate", |
| | | width: 120, |
| | | }, |
| | | { |
| | | label: "标准合格率", |
| | | prop: "processQualifiedRate", |
| | | width: 120, |
| | | }, |
| | | { |
| | | label: "单位", |
| | | prop: "unit", |
| | | width: 120, |
| | |
| | | } |
| | | handleQuery(); |
| | | }; |
| | | |
| | | const rowClassName = ({row}) => { |
| | | if (Number(row.actualQualifiedRate) < Number(row.processQualifiedRate)) { |
| | | return 'danger-row'; |
| | | } |
| | | return ''; |
| | | }; |
| | | |
| | | const deleteReport = row => { |
| | | ElMessageBox.confirm("确定删除该报工吗?", "提示", { |
| | | confirmButtonText: "确定", |
| | |
| | | }); |
| | | </script> |
| | | |
| | | <style scoped></style> |
| | | <style scoped> |
| | | :deep(.danger-row td) { |
| | | color: #e95a66 !important; |
| | | } |
| | | </style> |
| | |
| | | :tableData="tableData" |
| | | :page="page" |
| | | :tableLoading="tableLoading" |
| | | :rowClassName="rowClassName" |
| | | @pagination="pagination"> |
| | | <template #completionStatus="{ row }"> |
| | | <el-progress :percentage="toProgressPercentage(row?.completionStatus)" |
| | |
| | | // width: "80", |
| | | // }, |
| | | { |
| | | label: "工单编号", |
| | | label: "工单编号1", |
| | | prop: "workOrderNo", |
| | | width: "140", |
| | | }, |
| | |
| | | scrapQty: [ |
| | | {validator: validateScrapQty, trigger: 'blur'} |
| | | ] |
| | | }; |
| | | |
| | | const rowClassName = ({row}) => { |
| | | if (Number(row.completionStatus) > 0 && Number(row.actualQualifiedRate) < Number(row.processQualifiedRate)) { |
| | | return 'danger-row'; |
| | | } |
| | | return ''; |
| | | }; |
| | | |
| | | // 处理本次生产数量输入,限制必须大于等于1 |
| | |
| | | } |
| | | </style> |
| | | |
| | | <style lang="scss"> |
| | | <style lang="scss" scoped> |
| | | :deep(.danger-row td) { |
| | | color: #e95a66 !important; |
| | | } |
| | | |
| | | @media print { |
| | | @page { |
| | | size: landscape; |