浏览代码

JO update

master
kelvin.yau 2 个月前
父节点
当前提交
a7bb9da042
共有 6 个文件被更改,包括 9 次插入24 次删除
  1. +1
    -0
      src/app/api/jo/index.ts
  2. +2
    -2
      src/components/JoSave/JoRelease.tsx
  3. +0
    -3
      src/components/JoSave/JoSave.tsx
  4. +4
    -2
      src/components/JoSave/PickTable.tsx
  5. +1
    -6
      src/i18n/zh/jo.json
  6. +1
    -11
      src/i18n/zh/pickOrder.json

+ 1
- 0
src/app/api/jo/index.ts 查看文件

@@ -41,6 +41,7 @@ export interface JoDetailPickLine {
reqQty: number;
uom: string;
status: JoBomMaterialStatus;
shortUom: string;
}

export interface JoDetailPickedLotNo {


+ 2
- 2
src/components/JoSave/JoRelease.tsx 查看文件

@@ -86,13 +86,13 @@ const JoRelease: React.FC<Props> = ({
<Typography variant="body2" color="text.secondary" sx={{ mt: 1 }}>
{t("Lines with insufficient stock: ")}<strong style={{ color: 'red' }}>{stockCounts.insufficient}</strong>
</Typography>
<Button
{/*<Button
variant="contained"
color="primary"
onClick={onActionClick}
>
{t("Release")}
</Button>
</Button>*/}
</Stack>

</CardContent>


+ 0
- 3
src/components/JoSave/JoSave.tsx 查看文件

@@ -14,11 +14,8 @@ import PickTable from "./PickTable";
import ActionButtons from "./ActionButtons";
import { useQrCodeScannerContext } from "../QrCodeScannerProvider/QrCodeScannerProvider";
import { fetchStockInLineInfo } from "@/app/api/po/actions";
<<<<<<< HEAD
import JoRelease from "./JoRelease";
=======
import { submitDialog } from "../Swal/CustomAlerts";
>>>>>>> 5ef2a717b8e76f98fdf437b56fa641e990ef106b

type Props = {
id?: number;


+ 4
- 2
src/components/JoSave/PickTable.tsx 查看文件

@@ -70,6 +70,8 @@ const PickTable: React.FC<Props> = ({
inventory.itemCode === pickLine.code || inventory.itemName === pickLine.name
);
console.log("inventory", inventory)

return inventory?.uomShortDesc; // || pickLine.uom;
};

@@ -179,7 +181,7 @@ const PickTable: React.FC<Props> = ({
headerAlign: "right",
renderCell: (params: GridRenderCellParams<JoDetailPickLine>) => {
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",
renderCell: (params: GridRenderCellParams<JoDetailPickLine>) => {
const uomShortDesc = getUomShortDesc(params.row);
return `${decimalFormatter.format(params.value)} ${uomShortDesc}`;
return `${decimalFormatter.format(params.value)} ${params.row.shortUom}`;
},
},
{


+ 1
- 6
src/i18n/zh/jo.json 查看文件

@@ -23,7 +23,6 @@
"Cancel": "取消",
"Scan Status": "掃碼狀態",
"Start Job Order": "開始工單",
<<<<<<< HEAD
"Target Production Date" : "預計生產日期",
"Production Priority" : "生產優先度",
"Sequence" : "序",
@@ -33,15 +32,12 @@
"Total lines: ": "所需貨品項目數量: ",
"Lines with sufficient stock: ": "可提料項目數量: ",
"Lines with insufficient stock: ": "未能提料項目數量: ",
"Item Name" : "原材料/半成品名稱"
=======
"Item Name" : "原材料/半成品名稱",
"Job Order Pickexcution": "工單提料",
"Pick Order Detail": "提料單細節",
"Finished Job Order Record": "已完成工單記錄",
"Index": "編號",
"Route": "路線",
"Item Code": "成品/半成品編號",
"Item Name": "成品/半成品名稱",
"Qty": "數量",
"Unit": "單位",
"Location": "位置",
@@ -85,5 +81,4 @@
"Please make sure the qty is enough": "請確保物料數量是足夠",
"Please make sure all required items are picked": "請確保所有物料已被提取",
"Do you want to start job order": "是否開始工單"
>>>>>>> 5ef2a717b8e76f98fdf437b56fa641e990ef106b
}

+ 1
- 11
src/i18n/zh/pickOrder.json 查看文件

@@ -282,25 +282,15 @@
"Delivery No.":"送貨單編號",
"Total":"總數",
"completed DO pick orders":"已完成送貨單提料單",
"No completed DO pick orders found":"沒有已完成送貨單提料單",
"Delivery No":"送貨單編號",
"View Details":"查看詳情",
"COMPLETED":"已完成",
"FG orders":"成品提料單",
"Back to List":"返回列表",
<<<<<<< HEAD

"Enter the number of cartons: ": "請輸入總箱數",
"Number of cartons": "箱數",
"You need to enter a number": "箱數不能為空",
"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":"總數超出所需數量"
>>>>>>> 5ef2a717b8e76f98fdf437b56fa641e990ef106b




正在加载...
取消
保存