Explorar el Código

庫存調整權限 盤點卡片統計 「未按規劃完成」移到 tab 列最後

production
CANCERYS\kw093 hace 15 horas
padre
commit
0dce6c4223
Se han modificado 6 ficheros con 18 adiciones y 18 borrados
  1. +1
    -1
      src/app/api/jo/actions.ts
  2. +2
    -2
      src/components/InventorySearch/InventoryLotLineTable.tsx
  3. +5
    -5
      src/components/ProductionProcess/JobOrderOpsTable.tsx
  4. +1
    -1
      src/components/ProductionProcess/ProductionProcessJobOrderDetail.tsx
  5. +8
    -8
      src/components/ProductionProcess/ProductionProcessList.tsx
  6. +1
    -1
      src/components/ProductionProcess/ProductionProcessPage.tsx

+ 1
- 1
src/app/api/jo/actions.ts Ver fichero

@@ -905,7 +905,7 @@ export const fetchAllJoborderProductProcessInfo = cache(async (type?: string | n
);
});

/** FP-MTMS Version Checklist | Functions Ref. No. 40 | v1.0.3 | 2026-08-05 */
/** FP-MTMS Version Checklist | Functions Ref. No. 40 | v1.0.4 | 2026-08-05 */
export const fetchJoborderProductProcessesPage = cache(async (params: {
/** Job order / process date(YYYY-MM-DD) */
date?: string | null;


+ 2
- 2
src/components/InventorySearch/InventoryLotLineTable.tsx Ver fichero

@@ -59,6 +59,7 @@ interface Props {
onStockAdjustmentSuccess?: () => void | Promise<void>;
}

/** FP-MTMS Version Checklist | Functions Ref. No. 3 | v1.0.5 | 2026-08-05 */
const InventoryLotLineTable: React.FC<Props> = ({
inventoryLotLines, pagingController, setPagingController, totalCount, inventory,
filterLotNo,
@@ -68,8 +69,7 @@ const InventoryLotLineTable: React.FC<Props> = ({
const { t } = useTranslation(["inventory"]);
const { data: session } = useSession();
const abilities = session?.user?.abilities ?? [];
const canStockAdjust =
abilities.includes(AUTH.ADMIN) || abilities.includes(AUTH.INVENTORY_ADJUST);
const canStockAdjust = abilities.includes(AUTH.INVENTORY_ADJUST);
const PRINT_PRINTER_ID_KEY = 'inventoryLotLinePrintPrinterId';
const { setIsUploading } = useUploadContext();
const [stockTransferModalOpen, setStockTransferModalOpen] = useState(false);


+ 5
- 5
src/components/ProductionProcess/JobOrderOpsTable.tsx Ver fichero

@@ -220,7 +220,7 @@ interface JobOrderOpsTableProps {
printerCombo?: PrinterCombo[];
}

/** FP-MTMS Version Checklist | Functions Ref. No. 47 | v1.0.2 | 2026-08-05 */
/** FP-MTMS Version Checklist | Functions Ref. No. 47 | v1.0.3 | 2026-08-05 */
const JobOrderOpsTable: React.FC<JobOrderOpsTableProps> = ({
onSelectProcess,
printerCombo = [],
@@ -651,10 +651,6 @@ const JobOrderOpsTable: React.FC<JobOrderOpsTableProps> = ({
value="processing"
label={tabLabel(t("Processing"), counts.processing)}
/>
<Tab
value="carried_over"
label={tabLabel(t("Off-plan unfinished"), counts.carriedOver)}
/>
<Tab
value="pending_qc"
label={tabLabel(t("Waiting QC Put Away"), counts.pendingQc)}
@@ -667,6 +663,10 @@ const JobOrderOpsTable: React.FC<JobOrderOpsTableProps> = ({
value="issue"
label={tabLabel(t("Issue"), counts.stop + counts.cancel)}
/>
<Tab
value="carried_over"
label={tabLabel(t("Off-plan unfinished"), counts.carriedOver)}
/>
</Tabs>

{(


+ 1
- 1
src/components/ProductionProcess/ProductionProcessJobOrderDetail.tsx Ver fichero

@@ -53,7 +53,7 @@ interface ProductProcessJobOrderDetailProps {
initialTabIndex?: number;
}

/** FP-MTMS Version Checklist | Functions Ref. No. 40 | v1.0.3 | 2026-08-05 */
/** FP-MTMS Version Checklist | Functions Ref. No. 40 | v1.0.4 | 2026-08-05 */
const ProductionProcessJobOrderDetail: React.FC<ProductProcessJobOrderDetailProps> = ({
jobOrderId,
onBack,


+ 8
- 8
src/components/ProductionProcess/ProductionProcessList.tsx Ver fichero

@@ -175,7 +175,7 @@ function isWaitingQcPutAway(
return s !== "completed" && s !== "rejected";
}

/** FP-MTMS Version Checklist | Functions Ref. No. 40 | v1.0.3 | 2026-08-05 */
/** FP-MTMS Version Checklist | Functions Ref. No. 40 | v1.0.4 | 2026-08-05 */
const ProductProcessList: React.FC<ProductProcessListProps> = ({
onSelectProcess,
printerCombo,
@@ -930,13 +930,6 @@ const ProductProcessList: React.FC<ProductProcessListProps> = ({
value="processing"
label={renderBucketTabLabel("Processing", processingCount)}
/>
<Tab
value="carried_over"
label={renderBucketTabLabel(
"Off-plan unfinished",
offPlanTabCount,
)}
/>
<Tab
value="pending_qc"
label={renderBucketTabLabel(
@@ -948,6 +941,13 @@ const ProductProcessList: React.FC<ProductProcessListProps> = ({
value="putawayed"
label={renderBucketTabLabel("Put Awayed", putawayedCount)}
/>
<Tab
value="carried_over"
label={renderBucketTabLabel(
"Off-plan unfinished",
offPlanTabCount,
)}
/>
</Tabs>

<Box


+ 1
- 1
src/components/ProductionProcess/ProductionProcessPage.tsx Ver fichero

@@ -26,7 +26,7 @@ const STORAGE_KEY = 'productionProcess_selectedMatchingStock';

/**
* FP-MTMS Version Checklist | Functions Ref. No. 26 | v1.0.0 | 2026-07-20
* FP-MTMS Version Checklist | Functions Ref. No. 47 | v1.0.2 | 2026-08-05
* FP-MTMS Version Checklist | Functions Ref. No. 47 | v1.0.3 | 2026-08-05
*/
const ProductionProcessPage: React.FC<ProductionProcessPageProps> = ({ printerCombo }) => {
const { t } = useTranslation(["common", "productionProcess"]);


Cargando…
Cancelar
Guardar