feat(P21PWA1-4): 移动扫码页面与盘点路由导航联动
这个提交包含在:
@@ -1,4 +1,5 @@
|
||||
import { useEffect, useMemo, useState } from "react";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
||||
import { toast } from "sonner";
|
||||
import { fetchAssets } from "../api/assets";
|
||||
@@ -74,6 +75,7 @@ function statusLabel(status: string) {
|
||||
}
|
||||
|
||||
export function InventoryChecksPage() {
|
||||
const navigate = useNavigate();
|
||||
const queryClient = useQueryClient();
|
||||
|
||||
const [scopeType, setScopeType] = useState<InventoryCheckScopeType>("all");
|
||||
@@ -227,7 +229,20 @@ export function InventoryChecksPage() {
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<PageHeader title="资产盘点" subtitle="创建、启动、记录并完成资产盘点任务。" />
|
||||
<PageHeader
|
||||
title="资产盘点"
|
||||
subtitle="创建、启动、记录并完成资产盘点任务。"
|
||||
actions={
|
||||
<Button
|
||||
type="button"
|
||||
variant="secondary"
|
||||
disabled={!selectedCheckId}
|
||||
onClick={() => navigate(selectedCheckId ? `/mobile/assets/scan?inventoryCheckId=${selectedCheckId}` : "/mobile/assets/scan")}
|
||||
>
|
||||
移动扫码盘点
|
||||
</Button>
|
||||
}
|
||||
/>
|
||||
|
||||
<div className="grid gap-6 xl:grid-cols-[360px_minmax(0,1fr)]">
|
||||
<div className="card-std space-y-4 p-6">
|
||||
|
||||
在新工单中引用
屏蔽一个用户