diff --git a/src/app/api/stockIssue/actions.ts b/src/app/api/stockIssue/actions.ts
index 790c4fe..5d52d32 100644
--- a/src/app/api/stockIssue/actions.ts
+++ b/src/app/api/stockIssue/actions.ts
@@ -25,6 +25,7 @@ export interface StockIssueResult {
handleStatus: string;
handleDate: string | null;
handledBy: number | null;
+ uomDesc: string | null;
}
export interface ExpiryItemResult {
id: number;
@@ -178,6 +179,8 @@ export async function submitMissItem(issueId: number, handler: number) {
itemDescription: string | null;
storeLocation: string | null;
issues: IssueDetailItem[];
+ bookQty: number;
+ uomDesc: string | null;
}
export interface IssueDetailItem {
diff --git a/src/components/General/LoadingComponent.tsx b/src/components/General/LoadingComponent.tsx
index fc802b2..868d187 100644
--- a/src/components/General/LoadingComponent.tsx
+++ b/src/components/General/LoadingComponent.tsx
@@ -8,7 +8,7 @@ export const LoadingComponent: React.FC = () => {
display="flex"
justifyContent="center"
alignItems="center"
- // autoheight="true"
+
>
diff --git a/src/components/InputDataGrid/InputDataGrid.tsx b/src/components/InputDataGrid/InputDataGrid.tsx
index 51ebecf..bab891d 100644
--- a/src/components/InputDataGrid/InputDataGrid.tsx
+++ b/src/components/InputDataGrid/InputDataGrid.tsx
@@ -370,7 +370,7 @@ function InputDataGrid({
// columns={!checkboxSelection ? _columns : columns}
columns={needActions ? _columns : columns}
editMode="row"
- // autoHeight
+
sx={{
height: "30vh",
"--DataGrid-overlayHeight": "100px",
diff --git a/src/components/Jodetail/FInishedJobOrderRecord.tsx b/src/components/Jodetail/FInishedJobOrderRecord.tsx
index e076661..5f5a0a8 100644
--- a/src/components/Jodetail/FInishedJobOrderRecord.tsx
+++ b/src/components/Jodetail/FInishedJobOrderRecord.tsx
@@ -509,9 +509,11 @@ const FInishedJobOrderRecord: React.FC = ({ filterArgs }) => {
size="small"
sx={{ mb: 1 }}
/>
+ {/*
{jobOrderPickOrder.completedItems}/{jobOrderPickOrder.totalItems} {t("items completed")}
+ */}
{
// 增加 badPackageQty 判断,确保有坏包装会走 issue 流程
const badPackageQty = Number((formData as any).badPackageQty) || 0;
- const isNormalPick = verifiedQty > 0
- && formData.missQty == 0
- && formData.badItemQty == 0
- && badPackageQty == 0;
+ const isNormalPick = (formData.missQty == null || formData.missQty === 0)
+ && (formData.badItemQty == null || formData.badItemQty === 0)
+ && (badPackageQty === 0);
if (isNormalPick) {
if (onNormalPickSubmit) {
diff --git a/src/components/Jodetail/newJobPickExecution.tsx b/src/components/Jodetail/newJobPickExecution.tsx
index 4549061..3b9a9d8 100644
--- a/src/components/Jodetail/newJobPickExecution.tsx
+++ b/src/components/Jodetail/newJobPickExecution.tsx
@@ -1822,7 +1822,7 @@ const JobPickExecution: React.FC = ({ filterArgs, onBackToList }) => {
}, [handleSubmitPickQtyWithQty]);
const handleSubmitAllScanned = useCallback(async () => {
const scannedLots = combinedLotData.filter(lot =>
- lot.stockOutLineStatus === 'checked'
+ lot.stockOutLineStatus === 'checked' || lot.stockOutLineStatus === 'partially_completed'
);
if (scannedLots.length === 0) {
diff --git a/src/components/ProductionProcess/ProductionProcessList.tsx b/src/components/ProductionProcess/ProductionProcessList.tsx
index 2190567..956bdbd 100644
--- a/src/components/ProductionProcess/ProductionProcessList.tsx
+++ b/src/components/ProductionProcess/ProductionProcessList.tsx
@@ -306,7 +306,7 @@ const ProductProcessList: React.FC = ({ onSelectProcess
)}
{statusLower === "completed" && (
-