diff --git a/src/mes/scheduledTasks/machineTasks/index.js b/src/mes/scheduledTasks/machineTasks/index.js index 1310ed7..f5b2d2a 100644 --- a/src/mes/scheduledTasks/machineTasks/index.js +++ b/src/mes/scheduledTasks/machineTasks/index.js @@ -562,7 +562,7 @@ const MachineTasks = baseProps => { tableBtnsConfig: params => { const { record, index } = params; const { iStar, bManual } = record; - + let showName, btnBgColor, sDefault, finishBtnBgColor, finishSdefault; if (iStar === 1) { showName = "暂停"; @@ -575,7 +575,7 @@ const MachineTasks = baseProps => { btnBgColor = "#AAA"; sDefault = "${false}"; } - + if (iStar === 2) { finishBtnBgColor = "#AAA" finishSdefault = "${false}"; @@ -591,7 +591,7 @@ const MachineTasks = baseProps => { finishBtnBgColor = "#1890FF" finishSdefault = "${true}"; } - + const outPut = bManual ? [actProduceReportConfig, { showName: "完工", btnBgColor: finishBtnBgColor, sDefault: finishSdefault }] : [{ showName, btnBgColor, sDefault, startWorkConfig, pauseWorkConfig }, { showName: "完工", btnBgColor: finishBtnBgColor, sDefault: finishSdefault }] @@ -647,7 +647,7 @@ const MachineTasks = baseProps => { if (issue?.length > 0) { return (
- {issue[id].items.map(item => ( + {issue[id]?.items.map(item => (

{item.title}: {slave1Data[0] ? (