| @@ -41,6 +41,7 @@ export interface JoDetailPickLine { | |||||
| reqQty: number; | reqQty: number; | ||||
| uom: string; | uom: string; | ||||
| status: JoBomMaterialStatus; | status: JoBomMaterialStatus; | ||||
| shortUom: string; | |||||
| } | } | ||||
| export interface JoDetailPickedLotNo { | export interface JoDetailPickedLotNo { | ||||
| @@ -86,13 +86,13 @@ const JoRelease: React.FC<Props> = ({ | |||||
| <Typography variant="body2" color="text.secondary" sx={{ mt: 1 }}> | <Typography variant="body2" color="text.secondary" sx={{ mt: 1 }}> | ||||
| {t("Lines with insufficient stock: ")}<strong style={{ color: 'red' }}>{stockCounts.insufficient}</strong> | {t("Lines with insufficient stock: ")}<strong style={{ color: 'red' }}>{stockCounts.insufficient}</strong> | ||||
| </Typography> | </Typography> | ||||
| <Button | |||||
| {/*<Button | |||||
| variant="contained" | variant="contained" | ||||
| color="primary" | color="primary" | ||||
| onClick={onActionClick} | onClick={onActionClick} | ||||
| > | > | ||||
| {t("Release")} | {t("Release")} | ||||
| </Button> | |||||
| </Button>*/} | |||||
| </Stack> | </Stack> | ||||
| </CardContent> | </CardContent> | ||||
| @@ -14,11 +14,8 @@ import PickTable from "./PickTable"; | |||||
| import ActionButtons from "./ActionButtons"; | import ActionButtons from "./ActionButtons"; | ||||
| import { useQrCodeScannerContext } from "../QrCodeScannerProvider/QrCodeScannerProvider"; | import { useQrCodeScannerContext } from "../QrCodeScannerProvider/QrCodeScannerProvider"; | ||||
| import { fetchStockInLineInfo } from "@/app/api/po/actions"; | import { fetchStockInLineInfo } from "@/app/api/po/actions"; | ||||
| <<<<<<< HEAD | |||||
| import JoRelease from "./JoRelease"; | import JoRelease from "./JoRelease"; | ||||
| ======= | |||||
| import { submitDialog } from "../Swal/CustomAlerts"; | import { submitDialog } from "../Swal/CustomAlerts"; | ||||
| >>>>>>> 5ef2a717b8e76f98fdf437b56fa641e990ef106b | |||||
| type Props = { | type Props = { | ||||
| id?: number; | id?: number; | ||||
| @@ -70,6 +70,8 @@ const PickTable: React.FC<Props> = ({ | |||||
| inventory.itemCode === pickLine.code || inventory.itemName === pickLine.name | inventory.itemCode === pickLine.code || inventory.itemName === pickLine.name | ||||
| ); | ); | ||||
| console.log("inventory", inventory) | |||||
| return inventory?.uomShortDesc; // || pickLine.uom; | return inventory?.uomShortDesc; // || pickLine.uom; | ||||
| }; | }; | ||||
| @@ -179,7 +181,7 @@ const PickTable: React.FC<Props> = ({ | |||||
| headerAlign: "right", | headerAlign: "right", | ||||
| renderCell: (params: GridRenderCellParams<JoDetailPickLine>) => { | renderCell: (params: GridRenderCellParams<JoDetailPickLine>) => { | ||||
| const uomShortDesc = getUomShortDesc(params.row); | const uomShortDesc = getUomShortDesc(params.row); | ||||
| return `${decimalFormatter.format(params.value)} ${uomShortDesc}`; | |||||
| return `${decimalFormatter.format(params.value)} ${params.row.shortUom}`; | |||||
| }, | }, | ||||
| }, | }, | ||||
| { | { | ||||
| @@ -191,7 +193,7 @@ const PickTable: React.FC<Props> = ({ | |||||
| type: "number", | type: "number", | ||||
| renderCell: (params: GridRenderCellParams<JoDetailPickLine>) => { | renderCell: (params: GridRenderCellParams<JoDetailPickLine>) => { | ||||
| const uomShortDesc = getUomShortDesc(params.row); | const uomShortDesc = getUomShortDesc(params.row); | ||||
| return `${decimalFormatter.format(params.value)} ${uomShortDesc}`; | |||||
| return `${decimalFormatter.format(params.value)} ${params.row.shortUom}`; | |||||
| }, | }, | ||||
| }, | }, | ||||
| { | { | ||||
| @@ -23,7 +23,6 @@ | |||||
| "Cancel": "取消", | "Cancel": "取消", | ||||
| "Scan Status": "掃碼狀態", | "Scan Status": "掃碼狀態", | ||||
| "Start Job Order": "開始工單", | "Start Job Order": "開始工單", | ||||
| <<<<<<< HEAD | |||||
| "Target Production Date" : "預計生產日期", | "Target Production Date" : "預計生產日期", | ||||
| "Production Priority" : "生產優先度", | "Production Priority" : "生產優先度", | ||||
| "Sequence" : "序", | "Sequence" : "序", | ||||
| @@ -33,15 +32,12 @@ | |||||
| "Total lines: ": "所需貨品項目數量: ", | "Total lines: ": "所需貨品項目數量: ", | ||||
| "Lines with sufficient stock: ": "可提料項目數量: ", | "Lines with sufficient stock: ": "可提料項目數量: ", | ||||
| "Lines with insufficient stock: ": "未能提料項目數量: ", | "Lines with insufficient stock: ": "未能提料項目數量: ", | ||||
| "Item Name" : "原材料/半成品名稱" | |||||
| ======= | |||||
| "Item Name" : "原材料/半成品名稱", | |||||
| "Job Order Pickexcution": "工單提料", | "Job Order Pickexcution": "工單提料", | ||||
| "Pick Order Detail": "提料單細節", | "Pick Order Detail": "提料單細節", | ||||
| "Finished Job Order Record": "已完成工單記錄", | "Finished Job Order Record": "已完成工單記錄", | ||||
| "Index": "編號", | "Index": "編號", | ||||
| "Route": "路線", | "Route": "路線", | ||||
| "Item Code": "成品/半成品編號", | |||||
| "Item Name": "成品/半成品名稱", | |||||
| "Qty": "數量", | "Qty": "數量", | ||||
| "Unit": "單位", | "Unit": "單位", | ||||
| "Location": "位置", | "Location": "位置", | ||||
| @@ -85,5 +81,4 @@ | |||||
| "Please make sure the qty is enough": "請確保物料數量是足夠", | "Please make sure the qty is enough": "請確保物料數量是足夠", | ||||
| "Please make sure all required items are picked": "請確保所有物料已被提取", | "Please make sure all required items are picked": "請確保所有物料已被提取", | ||||
| "Do you want to start job order": "是否開始工單" | "Do you want to start job order": "是否開始工單" | ||||
| >>>>>>> 5ef2a717b8e76f98fdf437b56fa641e990ef106b | |||||
| } | } | ||||
| @@ -282,25 +282,15 @@ | |||||
| "Delivery No.":"送貨單編號", | "Delivery No.":"送貨單編號", | ||||
| "Total":"總數", | "Total":"總數", | ||||
| "completed DO pick orders":"已完成送貨單提料單", | "completed DO pick orders":"已完成送貨單提料單", | ||||
| "No completed DO pick orders found":"沒有已完成送貨單提料單", | |||||
| "Delivery No":"送貨單編號", | "Delivery No":"送貨單編號", | ||||
| "View Details":"查看詳情", | "View Details":"查看詳情", | ||||
| "COMPLETED":"已完成", | "COMPLETED":"已完成", | ||||
| "FG orders":"成品提料單", | "FG orders":"成品提料單", | ||||
| "Back to List":"返回列表", | "Back to List":"返回列表", | ||||
| <<<<<<< HEAD | |||||
| "Enter the number of cartons: ": "請輸入總箱數", | |||||
| "Number of cartons": "箱數", | |||||
| "You need to enter a number": "箱數不能為空", | "You need to enter a number": "箱數不能為空", | ||||
| "Number must be at least 1": "箱數最少為一", | "Number must be at least 1": "箱數最少為一", | ||||
| "Printed Successfully.": "已成功列印" | |||||
| ======= | |||||
| "No completed DO pick orders found":"沒有已完成送貨單提料單", | |||||
| "Enter the number of cartons: ": "請輸入總箱數", | |||||
| "Number of cartons": "箱數", | |||||
| "Printed Successfully.": "已成功列印", | |||||
| "Total exceeds required qty":"總數超出所需數量" | "Total exceeds required qty":"總數超出所需數量" | ||||
| >>>>>>> 5ef2a717b8e76f98fdf437b56fa641e990ef106b | |||||