| | |
| | | <TextField cellClassName="wkType" source="wkType$" label="table.field.asnOrder.wkType" /> |
| | | <NumberField source="anfme" label="table.field.asnOrder.anfme" /> |
| | | <NumberField source="qty" label="table.field.asnOrder.qty" /> |
| | | <TextField source="logisNo" label="table.field.asnOrder.logisNo" /> |
| | | {/* <TextField source="logisNo" label="table.field.asnOrder.logisNo" /> */} |
| | | <DateField source="arrTime" label="table.field.asnOrder.arrTime" showTime /> |
| | | <TextField source="rleStatus$" label="table.field.asnOrder.rleStatus" sortable={false} /> |
| | | <TextField source="ntyStatus$" label="table.field.asnOrder.ntyStatus" /> |
| | |
| | | <MyButton setCreateDialog={setCreateDialog} setmodalType={setmodalType} /> |
| | | <InspectionButton /> |
| | | <CompleteButton /> |
| | | <DeleteButton mutationMode="pessimistic" /> |
| | | <ODeleteButton /> |
| | | {/* <CloseButton /> */} |
| | | </WrapperField> |
| | | </StyledDatagrid> |
| | |
| | | |
| | | const ODeleteButton = () => { |
| | | const record = useRecordContext(); |
| | | |
| | | return ( |
| | | record.exceStatus === 0 ? <DeleteButton /> : <></> |
| | | record.exceStatus === 0 ? <DeleteButton mutationMode="pessimistic"/> : <></> |
| | | ) |
| | | |
| | | } |
| | |
| | | |
| | | }; |
| | | return ( |
| | | record.exceStatus === 1 || record.exceStatus === 0 ? |
| | | <Button |
| | | color="primary" |
| | | startIcon={<EditIcon />} |
| | |
| | | label={'ra.action.edit'} |
| | | > |
| | | </Button> |
| | | : <></> |
| | | ) |
| | | } |
| | | |