|
@@ -20,7 +20,7 @@ import LookObject2Log from "./table";
|
|
|
import { baseURL } from "@/utils/http";
|
|
|
import classNames from "classnames";
|
|
|
import { editObj2StoresAPI, getObj2InfoInAPI } from "@/store/action/object2";
|
|
|
-import { storageStatusObj } from "@/utils/dataChange";
|
|
|
+import { obj3InStorage, storageStatusObj } from "@/utils/dataChange";
|
|
|
import { getStores1ListAPI } from "@/store/action/stores1";
|
|
|
|
|
|
function LookObject2() {
|
|
@@ -202,7 +202,7 @@ function LookObject2() {
|
|
|
if (!newLoc) return message.warning("请选择移库位置!");
|
|
|
if (oldLoc === newLoc) return message.warning("位置不能相同!");
|
|
|
const obj = {
|
|
|
- beforeJson: { id: oldLoc, name: info.storageAncestorName },
|
|
|
+ beforeJson: { id: oldLoc, name: obj3InStorage(info.storageAncestor) },
|
|
|
afterJson: { id: newLoc, name: moveLocRef.current },
|
|
|
goodsIds: info.id,
|
|
|
};
|
|
@@ -216,13 +216,7 @@ function LookObject2() {
|
|
|
}
|
|
|
|
|
|
console.log("移库点击提交", oldLoc, newLoc);
|
|
|
- }, [
|
|
|
- getObj2InfoInAPIFu,
|
|
|
- info.id,
|
|
|
- info.storageAncestor,
|
|
|
- info.storageAncestorName,
|
|
|
- moveLoc,
|
|
|
- ]);
|
|
|
+ }, [getObj2InfoInAPIFu, info.id, info.storageAncestor, moveLoc]);
|
|
|
|
|
|
return (
|
|
|
<div className={styles.LookObject2}>
|
|
@@ -238,7 +232,9 @@ function LookObject2() {
|
|
|
<div className="topInfoBox">
|
|
|
<div className="topInfoBoxL">
|
|
|
{/* 解决有图片进页面显示 加载失败 图片 问题 */}
|
|
|
- {info.id?<ImageLazy src={info.thumb} width={300} height={300} />:null}
|
|
|
+ {info.id ? (
|
|
|
+ <ImageLazy src={info.thumb} width={300} height={300} />
|
|
|
+ ) : null}
|
|
|
</div>
|
|
|
<div className="topInfoBoxR">
|
|
|
<div className="topInfoBoxRTit">
|
|
@@ -411,8 +407,8 @@ function LookObject2() {
|
|
|
title={
|
|
|
info.storageStatus !== "0" &&
|
|
|
info.storageStatus !== "temp" &&
|
|
|
- info.storageAncestorName
|
|
|
- ? info.storageAncestorName
|
|
|
+ info.storageAncestor
|
|
|
+ ? obj3InStorage(info.storageAncestor)
|
|
|
: ""
|
|
|
}
|
|
|
>
|
|
@@ -420,8 +416,8 @@ function LookObject2() {
|
|
|
<p>
|
|
|
{info.storageStatus !== "0" &&
|
|
|
info.storageStatus !== "temp" &&
|
|
|
- info.storageAncestorName
|
|
|
- ? info.storageAncestorName
|
|
|
+ info.storageAncestor
|
|
|
+ ? obj3InStorage(info.storageAncestor)
|
|
|
: "-"}
|
|
|
</p>
|
|
|
</div>
|
|
@@ -489,7 +485,7 @@ function LookObject2() {
|
|
|
<div className="moveLocBox">
|
|
|
<div>
|
|
|
<span>当前位置:</span>
|
|
|
- <p>{info.storageAncestorName}</p>
|
|
|
+ <p>{obj3InStorage(info.storageAncestor)}</p>
|
|
|
</div>
|
|
|
<div>
|
|
|
<span>移库位置:</span>
|