skyouc
2025-05-07 53f0c1a07a1ff07095d6680e7c16f3594b859b96
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>
    : <></>
  )
}