瀏覽代碼

quick update download qr code

master
kelvinsuen 3 月之前
父節點
當前提交
a2cf2b23f0
共有 2 個文件被更改,包括 27 次插入11 次删除
  1. +26
    -11
      src/components/PoDetail/PoInputGrid.tsx
  2. +1
    -0
      src/i18n/zh/purchaseOrder.json

+ 26
- 11
src/components/PoDetail/PoInputGrid.tsx 查看文件

@@ -619,17 +619,32 @@ const closeNewModal = useCallback(() => {
key={`edit`}
/>,
<GridActionsCellItem
icon={<Button
id="emailSupplier"
type="button"
variant="contained"
color="primary"
sx={{ width: '150px' }}
disabled={params.row.status != "rejected" && params.row.status != "partially_completed"}
onClick={() => handleMailTemplateForStockInLine(params.row.id as number)}
>
{t("email supplier")}
</Button>}
icon={
data.status !== "received" ?
(<Button
id="emailSupplier"
type="button"
variant="contained"
color="primary"
sx={{ width: '150px' }}
disabled={params.row.status != "rejected" && params.row.status != "partially_completed"}
onClick={() => handleMailTemplateForStockInLine(params.row.id as number)}
>
{t("email supplier")}
</Button>) : (
<Button
id="printQrCode"
type="button"
variant="contained"
// color="red"
sx={{ width: '150px', backgroundColor: '#7f434a' }}
disabled={btnIsLoading || data.status != "received"}
onClick={() => printQrcode(params.row)}
>
{t("printQrCode")}
</Button>
)
}
label="start"
sx={{
// color: "primary.main",


+ 1
- 0
src/i18n/zh/purchaseOrder.json 查看文件

@@ -131,6 +131,7 @@
"remarks": "備註",
"Reject": "拒絕",
"submit": "提交",
"printQrCode": "列印二維碼",
"print": "列印",
"bind": "綁定",
"Search": "搜尋",


Loading…
取消
儲存