skyouc
2025-05-06 4b4ee0952cf886a5a2baf160a7aea88201979aed
rsf-admin/src/page/orders/asnOrder/AsnOrderList.jsx
@@ -183,7 +183,7 @@
            <MyButton setCreateDialog={setCreateDialog} setmodalType={setmodalType} />
            <InspectionButton />
            <CompleteButton />
            <DeleteButton mutationMode="pessimistic" />
            <ODeleteButton  />
            {/* <CloseButton /> */}
          </WrapperField>
        </StyledDatagrid>
@@ -207,9 +207,8 @@
const ODeleteButton = () => {
  const record = useRecordContext();
  return (
    record.exceStatus === 0 ? <DeleteButton /> : <></>
    record.exceStatus === 0 ? <DeleteButton  mutationMode="pessimistic"/> : <></>
  )
}
@@ -224,6 +223,7 @@
  };
  return (
    record.exceStatus === 1 || record.exceStatus === 0 ?
    <Button
      color="primary"
      startIcon={<EditIcon />}
@@ -232,6 +232,7 @@
      label={'ra.action.edit'}
    >
    </Button>
    : <></>
  )
}