Quellcode durchsuchen

add email button in po grid

master
kelvinsuen vor 1 Woche
Ursprung
Commit
04d8cd25e0
2 geänderte Dateien mit 21 neuen und 14 gelöschten Zeilen
  1. +21
    -4
      src/components/PoDetail/PoInputGrid.tsx
  2. +0
    -10
      src/components/PoDetail/QcStockInModalVer2.tsx

+ 21
- 4
src/components/PoDetail/PoInputGrid.tsx Datei anzeigen

@@ -560,7 +560,7 @@ const closeNewModal = useCallback(() => {
// )} | ${t("putaway")} | ${t("delete")}`,
headerName: "動作",
// headerName: "start | qc | escalation | stock in | putaway | delete",
width: 200,
width: 350, //200
// flex: 2,
cellClassName: "actions",
getActions: (params) => {
@@ -578,9 +578,26 @@ const closeNewModal = useCallback(() => {
// color: "primary.main",
// 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)}
color="inherit"
key="edit"


+ 0
- 10
src/components/PoDetail/QcStockInModalVer2.tsx Datei anzeigen

@@ -434,16 +434,6 @@ const [qcItems, setQcItems] = useState(dummyQCData)
/>
</Grid>
<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
id="qcSubmit"
type="button"


Laden…
Abbrechen
Speichern