| | |
| | | <TextField source="taskCode" label="table.field.task.taskCode" /> |
| | | <NumberField source="taskStatus$" label="table.field.task.taskStatus" /> |
| | | <NumberField source="taskType$" label="table.field.task.taskType" /> |
| | | <NumberField source="warehType$" label="table.field.task.taskType" /> |
| | | <NumberField source="warehType$" label="table.field.task.warehType" /> |
| | | <TextField source="orgLoc" label="table.field.task.orgLoc" /> |
| | | <TextField source="orgSite" label="table.field.task.orgSite" /> |
| | | <TextField source="targLoc" label="table.field.task.targLoc" /> |
| | |
| | | const record = useRecordContext(); |
| | | const notify = useNotify(); |
| | | const refresh = useRefresh(); |
| | | const clickComplete = (event) => { |
| | | event.stopPropagation(); |
| | | const clickComplete = () => { |
| | | completeTask(record) |
| | | }; |
| | | //完成任务 |
| | |
| | | } |
| | | } |
| | | return ( |
| | | <ConfirmButton label={"toolbar.complete"} color="secondary" startIcon={<TaskAltIcon />} onConfirm={clickComplete} /> |
| | | record?.taskStatus < 98 ? (<ConfirmButton label={"toolbar.complete"} color="secondary" startIcon={<TaskAltIcon />} onConfirm={clickComplete} />) : (<></>) |
| | | ) |
| | | } |
| | | |