Browse Source

add email button in po grid

master
kelvinsuen 1 week ago
parent
commit
04d8cd25e0
2 changed files with 21 additions and 14 deletions
  1. +21
    -4
      src/components/PoDetail/PoInputGrid.tsx
  2. +0
    -10
      src/components/PoDetail/QcStockInModalVer2.tsx

+ 21
- 4
src/components/PoDetail/PoInputGrid.tsx View File

@@ -560,7 +560,7 @@ const closeNewModal = useCallback(() => {
// )} | ${t("putaway")} | ${t("delete")}`, // )} | ${t("putaway")} | ${t("delete")}`,
headerName: "動作", headerName: "動作",
// headerName: "start | qc | escalation | stock in | putaway | delete", // headerName: "start | qc | escalation | stock in | putaway | delete",
width: 200,
width: 350, //200
// flex: 2, // flex: 2,
cellClassName: "actions", cellClassName: "actions",
getActions: (params) => { getActions: (params) => {
@@ -578,9 +578,26 @@ const closeNewModal = useCallback(() => {
// color: "primary.main", // color: "primary.main",
// marginRight: 1, // marginRight: 1,
}} }}
// disabled={!(stockInLineStatusMap[status] === 0)}
// set _isNew to false after posting
// or check status
onClick={handleNewQC(params.row.id, params)}
color="inherit"
key="edit"
/>,
<GridActionsCellItem
icon={<Button
id="emailSupplier"
type="button"
variant="contained"
color="primary"
sx={{ width: '150px' }}
// onClick={formProps.handleSubmit(onSubmitEmailSupplier)}
>
{t("email supplier")}
</Button>}
label="start"
sx={{
// color: "primary.main",
// marginRight: 1,
}}
onClick={handleNewQC(params.row.id, params)} onClick={handleNewQC(params.row.id, params)}
color="inherit" color="inherit"
key="edit" key="edit"


+ 0
- 10
src/components/PoDetail/QcStockInModalVer2.tsx View File

@@ -434,16 +434,6 @@ const [qcItems, setQcItems] = useState(dummyQCData)
/> />
</Grid> </Grid>
<Stack direction="row" justifyContent="flex-end" gap={1}> <Stack direction="row" justifyContent="flex-end" gap={1}>
{itemDetail.status.toLowerCase() == "rejected" && (<Button
id="emailSupplier"
type="button"
variant="contained"
color="primary"
sx={{ mt: 1 }}
onClick={formProps.handleSubmit(onSubmitEmailSupplier)}
>
{t("email supplier")}
</Button>)}
{itemDetail.status.toLowerCase() != "completed" && (<Button {itemDetail.status.toLowerCase() != "completed" && (<Button
id="qcSubmit" id="qcSubmit"
type="button" type="button"


Loading…
Cancel
Save