Procházet zdrojové kódy

QC 後操作欄加寬

production
CANCERYS\kw093 před 1 týdnem
rodič
revize
28b5232402
7 změnil soubory, kde provedl 11 přidání a 10 odebrání
  1. +1
    -1
      src/components/PoDetail/PoDetail.tsx
  2. +1
    -1
      src/components/PoDetail/PoDetailRow.tsx
  3. +3
    -2
      src/components/PoDetail/PoInputGrid.tsx
  4. +1
    -1
      src/components/PoDetail/QcStockInModal.tsx
  5. +1
    -1
      src/components/PoDetail/StockInLineRowActions.tsx
  6. +3
    -3
      src/components/PoDetail/stockQtyRound.ts
  7. +1
    -1
      src/components/Qc/QcStockInModal.tsx

+ 1
- 1
src/components/PoDetail/PoDetail.tsx Zobrazit soubor

@@ -207,7 +207,7 @@ interface PolInputResult {
dnQty: string,
}

/** FP-MTMS Version Checklist | Functions Ref. No. 56 | v1.0.3 | 2026-09-10 */
/** FP-MTMS Version Checklist | Functions Ref. No. 56 | v1.0.4 | 2026-09-10 */
const PoDetail: React.FC<Props> = ({ po, warehouse, printerCombo }) => {
const cameras = useContext(CameraContext);
const { data: session } = useSession();


+ 1
- 1
src/components/PoDetail/PoDetailRow.tsx Zobrazit soubor

@@ -68,7 +68,7 @@ type Props = {
onSubmitted: (row: PurchaseOrderLine) => void;
};

/** FP-MTMS Version Checklist | Functions Ref. No. 56 | v1.0.3 | 2026-09-10 */
/** FP-MTMS Version Checklist | Functions Ref. No. 56 | v1.0.4 | 2026-09-10 */
export const PoDetailRow = memo(function PoDetailRow({
row,
selected,


+ 3
- 2
src/components/PoDetail/PoInputGrid.tsx Zobrazit soubor

@@ -71,7 +71,8 @@ import { deleteDialog } from "../Swal/CustomAlerts";
import StockInLineRowActions from "./StockInLineRowActions";
import { StockQtyRoundMode, needsPoQcStockQtyRound } from "./stockQtyRound";

const ACTIONS_COLUMN_WIDTH = 380;
// 3 buttons after QC (view + print QR + delete): 176*3 + gap + cell padding
const ACTIONS_COLUMN_WIDTH = 580;
const PURCHASE_QTY_COLUMN_WIDTH = 72;
const UOM_COLUMN_WIDTH = 124;
const STOCK_QTY_COLUMN_WIDTH = 110;
@@ -153,7 +154,7 @@ class ProcessRowUpdateError extends Error {
}
}

/** FP-MTMS Version Checklist | Functions Ref. No. 56 | v1.0.3 | 2026-09-10 */
/** FP-MTMS Version Checklist | Functions Ref. No. 56 | v1.0.4 | 2026-09-10 */
function PoInputGrid({
// qc,
setRows,


+ 1
- 1
src/components/PoDetail/QcStockInModal.tsx Zobrazit soubor

@@ -71,7 +71,7 @@ interface CommonProps extends Omit<ModalProps, "children"> {
interface Props extends CommonProps {
// itemDetail: StockInLine & { qcResult?: PurchaseQcResult[] } & { escResult?: EscalationResult[] };
}
/** FP-MTMS Version Checklist | Functions Ref. No. 56 | v1.0.3 | 2026-09-10 */
/** FP-MTMS Version Checklist | Functions Ref. No. 56 | v1.0.4 | 2026-09-10 */
const PoQcStockInModalVer2: React.FC<Props> = ({
open,
onClose,


+ 1
- 1
src/components/PoDetail/StockInLineRowActions.tsx Zobrazit soubor

@@ -26,7 +26,7 @@ type Props = {
onRound?: (mode: StockQtyRoundMode) => void;
};

/** FP-MTMS Version Checklist | Functions Ref. No. 56 | v1.0.3 | 2026-09-10 */
/** FP-MTMS Version Checklist | Functions Ref. No. 56 | v1.0.4 | 2026-09-10 */
export default function StockInLineRowActions({
btnSx,
onPrimaryClick,


+ 3
- 3
src/components/PoDetail/stockQtyRound.ts Zobrazit soubor

@@ -7,7 +7,7 @@ export type StockQtyRoundChoice = {
after: number;
};

/** FP-MTMS Version Checklist | Functions Ref. No. 56 | v1.0.3 | 2026-09-10 */
/** FP-MTMS Version Checklist | Functions Ref. No. 56 | v1.0.4 | 2026-09-10 */
export function previewPoBatchStockQty(
orderM18Qty: number,
orderStockQty: number,
@@ -25,7 +25,7 @@ export function isNotIntegerQty(qty: number): boolean {
}

/**
* FP-MTMS Version Checklist | Functions Ref. No. 56 | v1.0.3 | 2026-09-10
* FP-MTMS Version Checklist | Functions Ref. No. 56 | v1.0.4 | 2026-09-10
* PO 收貨/品檢:pending 或 escalated 且庫存數量非整數時需選擇 CEILING / FLOOR
*/
export function needsPoQcStockQtyRound(
@@ -39,7 +39,7 @@ export function needsPoQcStockQtyRound(
return isNotIntegerQty(Number(acceptedQty ?? 0));
}

/** FP-MTMS Version Checklist | Functions Ref. No. 56 | v1.0.3 | 2026-09-10 */
/** FP-MTMS Version Checklist | Functions Ref. No. 56 | v1.0.4 | 2026-09-10 */
export function roundStockQty(before: number, mode: StockQtyRoundMode): number {
if (mode === "CEILING") return Math.ceil(before);
return Math.floor(before);


+ 1
- 1
src/components/Qc/QcStockInModal.tsx Zobrazit soubor

@@ -73,7 +73,7 @@ interface Props extends CommonProps {
// itemDetail: StockInLine & { qcResult?: PurchaseQcResult[] } & { escResult?: EscalationResult[] };
}

/** FP-MTMS Version Checklist | Functions Ref. No. 56 | v1.0.3 | 2026-09-10 */
/** FP-MTMS Version Checklist | Functions Ref. No. 56 | v1.0.4 | 2026-09-10 */
const QcStockInModal: React.FC<Props> = ({
open,
onClose,


Načítá se…
Zrušit
Uložit