Pārlūkot izejas kodu

Merge branch 'master' of http://svn.2fi-solutions.com:8300/derek/FPSMS-frontend

# Conflicts:
#	src/i18n/zh/pickOrder.json
master
CANCERYS\kw093 pirms 2 mēnešiem
vecāks
revīzija
64343d5579
3 mainītis faili ar 35 papildinājumiem un 2 dzēšanām
  1. +29
    -0
      src/app/api/do/actions.tsx
  2. +1
    -1
      src/components/FinishedGoodSearch/GoodPickExecution.tsx
  3. +5
    -1
      src/i18n/zh/pickOrder.json

+ 29
- 0
src/app/api/do/actions.tsx Parādīt failu

@@ -8,6 +8,8 @@ import { QcItemResult } from "../settings/qcItem";
import { RecordsRes } from "../utils";
import { DoResult } from ".";
import { GridRowId, GridRowSelectionModel } from "@mui/x-data-grid";
import { GET } from "../auth/[...nextauth]/route";
import { stringify } from "querystring";

export interface CreateConsoDoInput {
ids: GridRowSelectionModel;
@@ -70,6 +72,21 @@ export interface AssignByStoreResponse {
errorPosition: string;
entity: any;
}

export interface PrintDeliveryNoteRequest{
deliveryOrderId: number;
printerId: number;
printQty: number;
numOfCarton: number;
isDraft: boolean;
pickOrderId: number;
}

export interface PrintDeliveryNoteResponse{
success: boolean;
message?: string
}

export const assignPickOrderByStore = cache(async (data: AssignByStoreRequest) => {
return await serverFetchJson<AssignByStoreResponse>(`${BASE_API_URL}/doPickOrder/assign-by-store`,
{
@@ -128,3 +145,15 @@ export const fetchDoSearch = cache(async (code: string, shopName: string, status
});

export async function printDN(request: PrintDeliveryNoteRequest){
const response = await serverFetchJson<PrintDeliveryNoteResponse>(`${BASE_API_URL}/do/print-DN`,{
method: "GET",
body: JSON.stringify(request),
headers: {
'Content-type': 'application/json',
},
});
return response;
}



+ 1
- 1
src/components/FinishedGoodSearch/GoodPickExecution.tsx Parādīt failu

@@ -449,7 +449,7 @@ const PickExecution: React.FC<Props> = ({ filterArgs }) => {
} finally {
setCombinedDataLoading(false);
}
}, [currentUserId]);
}, [currentUserId, combinedLotData]);

// ✅ Only fetch existing data when session is ready, no auto-assignment
useEffect(() => {


+ 5
- 1
src/i18n/zh/pickOrder.json Parādīt failu

@@ -287,8 +287,12 @@
"View Details":"查看詳情",
"COMPLETED":"已完成",
"FG orders":"成品提料單",
"Back to List":"返回列表"
"Back to List":"返回列表",
"No completed DO pick orders found":"沒有已完成送貨單提料單",

"Print DN Label":"列印送貨單標貼",
"Enter the number of cartons: ": "請輸入總箱數",
"Number of cartons": "箱數"




Notiek ielāde…
Atcelt
Saglabāt