| | |
| | | :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 |
| | |
| | | |
| | | const handleReport = async () => { |
| | | const data = await productionRecordFormRef.value.submitData() |
| | | reportForm.otherData.rows = JSON.stringify(data || {}); |
| | | reportForm.otherData.rows = data || []; |
| | | reportFormRef.value?.validate((valid) => { |
| | | if (!valid) { |
| | | return false; |
| | |
| | | const submitData = { |
| | | ...reportForm, |
| | | quantity: quantity, |
| | | scrapQty: scrapQty |
| | | scrapQty: scrapQty, |
| | | otherData: JSON.stringify(reportForm.otherData) |
| | | }; |
| | | |
| | | // console.log(submitData); |
| | |
| | | } |
| | | </style> |
| | | |
| | | <style lang="scss"> |
| | | <style lang="scss" scoped> |
| | | :deep(.danger-row td) { |
| | | color: #e95a66 !important; |
| | | } |
| | | |
| | | @media print { |
| | | @page { |
| | | size: landscape; |