瀏覽代碼

no message

production
tommy 1 天之前
父節點
當前提交
c95e62effe
共有 11 個檔案被更改,包括 11 行新增4 行删除
  1. +1
    -0
      src/app/api/jo/actions.ts
  2. +1
    -1
      src/components/ItemTracing/ItemTracingFlowGraphSearch.tsx
  3. +1
    -1
      src/components/ItemTracing/ItemTracingNodeDetailPanel.tsx
  4. +1
    -1
      src/components/ItemTracing/ItemTracingSections.tsx
  5. +1
    -0
      src/components/ItemTracing/TraceFlowNodes.tsx
  6. +1
    -0
      src/components/ItemTracing/buildTraceGraphNodes.ts
  7. +1
    -1
      src/components/ItemTracing/exportItemLotTraceXlsx.ts
  8. +1
    -0
      src/components/ItemTracing/traceLabelUtils.ts
  9. +1
    -0
      src/components/ItemTracing/traceStockTakeUtils.ts
  10. +1
    -0
      src/components/ProductionProcess/DrinkProductionQtyDashboard.tsx
  11. +1
    -0
      src/components/ProductionProcess/ProductionProcessPage.tsx

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

@@ -1661,6 +1661,7 @@ export interface DrinkProductionQtyResponse {
jobOrders?: DrinkProductionQtyJobOrderDetail[];
}

/** FP-MTMS Version Checklist | Functions Ref. No. 26 | v1.0.0 | 2026-07-20 */
export const fetchDrinkProductionQty = cache(async (date?: string) => {
const params = new URLSearchParams();
if (date) params.set("date", date);


+ 1
- 1
src/components/ItemTracing/ItemTracingFlowGraphSearch.tsx 查看文件

@@ -25,7 +25,7 @@ type Props = {
onClear: () => void;
};

/** FP-MTMS Version Checklist | Functions Ref. No. 15 | v1.0.0 | 2026-07-17 */
/** FP-MTMS Version Checklist | Functions Ref. No. 15 | v1.0.1 | 2026-07-20 */
const ItemTracingFlowGraphSearch: React.FC<Props> = ({
query,
matchCount,


+ 1
- 1
src/components/ItemTracing/ItemTracingNodeDetailPanel.tsx 查看文件

@@ -30,7 +30,7 @@ type Props = {
onClose?: () => void;
};

/** FP-MTMS Version Checklist | Functions Ref. No. 15 | v1.0.0 | 2026-07-17 */
/** FP-MTMS Version Checklist | Functions Ref. No. 15 | v1.0.1 | 2026-07-20 */
const ItemTracingNodeDetailPanel: React.FC<Props> = ({ node, onClose }) => {
const { t } = useTranslation("itemTracing");



+ 1
- 1
src/components/ItemTracing/ItemTracingSections.tsx 查看文件

@@ -46,7 +46,7 @@ type Props = {
onTrace?: (params: TraceParams) => void;
};

/** FP-MTMS Version Checklist | Functions Ref. No. 17 | v1.0.0 | 2026-07-17 */
/** FP-MTMS Version Checklist | Functions Ref. No. 17 | v1.0.1 | 2026-07-20 */
const ItemTracingSections: React.FC<Props> = ({ data, compiledGraph, onTrace }) => {
const { t } = useTranslation("itemTracing");
const [tab, setTab] = useState(0);


+ 1
- 0
src/components/ItemTracing/TraceFlowNodes.tsx 查看文件

@@ -73,6 +73,7 @@ const GroupCollapseButton = ({
</IconButton>
);

/** FP-MTMS Version Checklist | Functions Ref. No. 23 | v1.0.0 | 2026-07-20 */
export const TraceFlowEventNode = memo(function TraceFlowEventNode({
id,
data,


+ 1
- 0
src/components/ItemTracing/buildTraceGraphNodes.ts 查看文件

@@ -564,6 +564,7 @@ const buildInboundOriginNodes = (
return { nodes, nextSeq: seq };
};

/** FP-MTMS Version Checklist | Functions Ref. No. 23 | v1.0.0 | 2026-07-20 */
export const buildTraceGraphNodes = (
data: ItemLotTraceResponse,
labels: TraceGraphDetailLabels,


+ 1
- 1
src/components/ItemTracing/exportItemLotTraceXlsx.ts 查看文件

@@ -889,7 +889,7 @@ export const buildItemLotTraceSheets = (

export const ITEM_LOT_TRACE_SHEET_NAMES = Object.values(SHEET);

/** FP-MTMS Version Checklist | Functions Ref. No. 15 | v1.0.0 | 2026-07-17 */
/** FP-MTMS Version Checklist | Functions Ref. No. 15 | v1.0.1 | 2026-07-20 */
export const exportItemLotTraceXlsx = (
data: ItemLotTraceResponse,
compiledGraph: CompiledTraceGraph,


+ 1
- 0
src/components/ItemTracing/traceLabelUtils.ts 查看文件

@@ -178,6 +178,7 @@ export const resolveDoOutboundChipFlags = (
});

/**
* FP-MTMS Version Checklist | Functions Ref. No. 23 | v1.0.0 | 2026-07-20
* Outbound qty color (DO_OUT / JO_OUT / MATERIAL_PICK):
* 改數 → orange; else qty > 0 → green; qty ≤ 0 → red.
*/


+ 1
- 0
src/components/ItemTracing/traceStockTakeUtils.ts 查看文件

@@ -32,6 +32,7 @@ export const resolveStockTakeBookQty = (
};

/**
* FP-MTMS Version Checklist | Functions Ref. No. 23 | v1.0.0 | 2026-07-20
* Accepted physical qty used for variance / posting decision.
* Prefer lastSelect (1=first, 2=second, 3=approver), then fallback chain, then line finalQty.
* Incomplete rounds (no count yet) must not surface as 0 via COALESCE(finalQty, 0).


+ 1
- 0
src/components/ProductionProcess/DrinkProductionQtyDashboard.tsx 查看文件

@@ -47,6 +47,7 @@ const formatProductionDate = (value: string | null | undefined): string => {
const getRowKey = (row: DrinkProductionQtyResponse, idx: number): string =>
`${row.itemCode || "unknown"}-${idx}`;

/** FP-MTMS Version Checklist | Functions Ref. No. 26 | v1.0.0 | 2026-07-20 */
const DrinkProductionQtyDashboard: React.FC = () => {
const { t } = useTranslation(["common", "jo", "productionProcess"]);
const [data, setData] = useState<DrinkProductionQtyResponse[]>([]);


+ 1
- 0
src/components/ProductionProcess/ProductionProcessPage.tsx 查看文件

@@ -24,6 +24,7 @@ interface ProductionProcessPageProps {

const STORAGE_KEY = 'productionProcess_selectedMatchingStock';

/** FP-MTMS Version Checklist | Functions Ref. No. 26 | v1.0.0 | 2026-07-20 */
const ProductionProcessPage: React.FC<ProductionProcessPageProps> = ({ printerCombo }) => {
const { t } = useTranslation(["common"]);
const [selectedProcessId, setSelectedProcessId] = useState<number | null>(null);


Loading…
取消
儲存