|
|
@@ -17,6 +17,7 @@ import filesLookFu from "@/utils/filesLook";
|
|
|
import { baseURL } from "@/utils/http";
|
|
|
import { B1LbtnKey } from "../data";
|
|
|
import A2AddModal from "@/pages/A2Goods/A2Register/A2AddModal";
|
|
|
+import B1Log from "./B1Log";
|
|
|
|
|
|
type Props = {
|
|
|
goodsId: number;
|
|
|
@@ -163,6 +164,9 @@ function B1Look({ closeFu, goodsId }: Props) {
|
|
|
return <div className="B1LbtnArr">{res}</div>;
|
|
|
}, [btnClickFu, info.storageStatus]);
|
|
|
|
|
|
+ // 藏品日志
|
|
|
+ const [logId, setLogId] = useState(0);
|
|
|
+
|
|
|
return (
|
|
|
<div className={styles.B1Look}>
|
|
|
<div className="B1Ltop">
|
|
|
@@ -184,7 +188,10 @@ function B1Look({ closeFu, goodsId }: Props) {
|
|
|
</div>
|
|
|
<div>
|
|
|
{/* 待完善 */}
|
|
|
- <Button type="primary">藏品日志</Button> 
|
|
|
+ <Button type="primary" onClick={() => setLogId(goodsId)}>
|
|
|
+ 藏品日志
|
|
|
+ </Button>
|
|
|
+  
|
|
|
{/* 只有已登记的时候才有操作按钮 */}
|
|
|
{info.status === 2 ? (
|
|
|
<>
|
|
|
@@ -277,6 +284,9 @@ function B1Look({ closeFu, goodsId }: Props) {
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
+ {/* 点击藏品日志出来的弹窗 */}
|
|
|
+ {logId ? <B1Log logId={logId} closeFu={() => setLogId(0)} /> : null}
|
|
|
+
|
|
|
{/* 点击编辑出现的弹窗 */}
|
|
|
{btnKey.txt === "编辑" ? (
|
|
|
<A2AddModal
|