shaogen1995 2 ay önce
ebeveyn
işleme
a8b80b9026

+ 16 - 18
src/pages/B_enterTibet/B34typeIn/B34edit/index.tsx

@@ -77,23 +77,21 @@ function B34edit({ type }: Props) {
   const tableLastBtn = useMemo(() => {
     let arr: any = []
 
-    if (topInfo.status === 4) {
-      arr.push({
-        title: '关联藏品登记',
-        render: (item: C1GoodType) => {
-          return item.subNum && item.relatedOrderId ? (
-            <span
-              onClick={() => openGoodsInfoFu(item.relatedOrderId, '#/register_edit/4/')}
-              className='D1GtNum'
-            >
-              {item.subNum}
-            </span>
-          ) : (
-            '(空)'
-          )
-        }
-      })
-    }
+    arr.push({
+      title: '关联藏品登记',
+      render: (item: C1GoodType) => {
+        return item.subNum && item.relatedOrderId ? (
+          <span
+            onClick={() => openGoodsInfoFu(item.relatedOrderId, '#/register_edit/4/')}
+            className='D1GtNum'
+          >
+            {item.subNum}
+          </span>
+        ) : (
+          '(空)'
+        )
+      }
+    })
 
     arr.push({
       title: '操作',
@@ -119,7 +117,7 @@ function B34edit({ type }: Props) {
     })
 
     return arr
-  }, [topInfo.status, key, snaps])
+  }, [key, snaps])
   // -------新增藏品-新字段-------------
 
   // 创建订单

+ 3 - 2
src/pages/D_storeManage/D2storSet/index.tsx

@@ -11,7 +11,7 @@ import { D2tableC } from '@/utils/tableData'
 import MyPopconfirm from '@/components/MyPopconfirm'
 import { MessageFu } from '@/utils/message'
 import D2edit from './D2edit'
-import history from '@/utils/history'
+// import history from '@/utils/history'
 
 const formDataTemp: TypeD2form = {
   pageNum: 1,
@@ -213,7 +213,8 @@ function D2storSet() {
         <D2edit
           isLook={editId.txt === '查看'}
           sId={editId.id}
-          succToLookFu={id => history.push(`/storSet_look/${id}`)}
+          // succToLookFu={id => history.push(`/storSet_look/${id}`)}
+          succToLookFu={id => getListFu()}
           closeFu={() => setEditId({ id: 0, txt: '' })}
         />
       ) : null}

+ 12 - 12
src/pages/Layout/data.ts

@@ -313,18 +313,18 @@ export default tabLeftArr
 
 // 里面的页面,不是左边的tab栏
 export const routerSon: RouterTypeRow[] = [
-  {
-    id: 1,
-    name: '库房设置-查看',
-    path: '/storSet_look/:id',
-    Com: React.lazy(() => import('../D_storeManage/D2storSet/D2look'))
-  },
-  {
-    id: 2,
-    name: '库房设置-库位设置',
-    path: '/storSet_site/:id/:title',
-    Com: React.lazy(() => import('../D_storeManage/D2storSet/D2site'))
-  },
+  // {
+  //   id: 1,
+  //   name: '库房设置-查看',
+  //   path: '/storSet_look/:id',
+  //   Com: React.lazy(() => import('../D_storeManage/D2storSet/D2look'))
+  // },
+  // {
+  //   id: 2,
+  //   name: '库房设置-库位设置',
+  //   path: '/storSet_site/:id/:title',
+  //   Com: React.lazy(() => import('../D_storeManage/D2storSet/D2site'))
+  // },
 
   // -------------入库-----------------
   {