Prechádzať zdrojové kódy

全景修改审批的申请记录列表

shaogen1995 3 mesiacov pred
rodič
commit
6e11410df0

+ 11 - 2
src/pages/B_enterTibet/B3_4page/B3edit/main.tsx

@@ -298,6 +298,9 @@ function B3editMain({ pageSta }: Props) {
     )
   }, [btnX, delFu, lookBtnFu, lookJumpFu, topInfo])
 
+  // 申请记录
+  const [auditsShow, setAuditsShow] = useState(false)
+
   return (
     <div className={styles.B3editMain}>
       <div className='pageTitle'>
@@ -314,8 +317,8 @@ function B3editMain({ pageSta }: Props) {
             {pageSta === '新增' ? null : <B3goodsTable ref={goodsTableRef} pageSta={pageSta} />}
 
             {/* 申请流程 */}
-            {['查看', '审批'].includes(pageSta) ? (
-              <B3flowTable tableArr={topInfo.audits || []} />
+            {auditsShow ? (
+              <B3flowTable tableArr={topInfo.audits || []} closeFu={() => setAuditsShow(false)} />
             ) : null}
           </>
         }
@@ -323,6 +326,12 @@ function B3editMain({ pageSta }: Props) {
 
       {/* 底部按钮 */}
       <div className='B3eBtn'>
+        {['查看', '审批'].includes(key) && topInfo.audits && topInfo.audits.length ? (
+          <Button type='primary' onClick={() => setAuditsShow(true)}>
+            申请记录
+          </Button>
+        ) : null}
+
         {/* 编辑的时候是保存 审批的时候是提交 */}
         {['编辑', '审批'].includes(pageSta) ? (
           <Button type='primary' onClick={btnOk}>

+ 12 - 1
src/pages/C_goodsManage/C6edit/C6add/index.tsx

@@ -440,6 +440,9 @@ function C6add() {
   //查看富文本信息
   const [look, setLook] = useState('')
 
+  // 申请记录
+  const [auditsShow, setAuditsShow] = useState(false)
+
   return (
     <div className={styles.C6add}>
       <div className='pageTitle'>藏品编辑-{Reflect.get(pageTitTxtObj, key)}</div>
@@ -606,11 +609,19 @@ function C6add() {
         </div>
 
         {/* 申请流程 */}
-        {['3', '4'].includes(key) ? <B3flowTable tableArr={topInfo.audits || []} /> : null}
+        {auditsShow ? (
+          <B3flowTable tableArr={topInfo.audits || []} closeFu={() => setAuditsShow(false)} />
+        ) : null}
       </div>
 
       {/* 底部按钮 */}
       <div className='C6btn'>
+        {['3', '4'].includes(key) && topInfo.audits && topInfo.audits.length ? (
+          <Button type='primary' onClick={() => setAuditsShow(true)}>
+            申请记录
+          </Button>
+        ) : null}
+
         {key === '4' ? (
           lookBtn
         ) : (

+ 12 - 1
src/pages/D_storeManage/D4impStor/D4edit/index.tsx

@@ -488,6 +488,9 @@ function D4edit() {
     }
   }, [topInfo])
 
+  // 申请记录
+  const [auditsShow, setAuditsShow] = useState(false)
+
   return (
     <div className={styles.D4edit}>
       <div className='pageTitle'>藏品入库-{pageTitTxt}</div>
@@ -706,11 +709,19 @@ function D4edit() {
         </div>
 
         {/* 申请流程 */}
-        {['3', '4'].includes(key) ? <B3flowTable tableArr={topInfo.audits || []} /> : null}
+        {auditsShow ? (
+          <B3flowTable tableArr={topInfo.audits || []} closeFu={() => setAuditsShow(false)} />
+        ) : null}
       </div>
 
       {/* 底部按钮 */}
       <div className='D4btn'>
+        {['3', '4'].includes(key) && topInfo.audits && topInfo.audits.length ? (
+          <Button type='primary' onClick={() => setAuditsShow(true)}>
+            申请记录
+          </Button>
+        ) : null}
+
         {key === '4' ? (
           lookBtn
         ) : (

+ 12 - 1
src/pages/D_storeManage/D6putsStor/D6edit/index.tsx

@@ -374,6 +374,9 @@ function D6edit() {
     )
   }, [delFu, lookBtnFu, lookJumpFu, topInfo])
 
+  // 申请记录
+  const [auditsShow, setAuditsShow] = useState(false)
+
   return (
     <div className={styles.D6edit}>
       <div className='pageTitle'>藏品出库-{pageTitTxt}</div>
@@ -600,11 +603,19 @@ function D6edit() {
         {key === '4' ? <D6impRelation list={topInfo.relatedOrder || []} /> : null}
 
         {/* 申请流程 */}
-        {['3', '4'].includes(key) ? <B3flowTable tableArr={topInfo.audits || []} /> : null}
+        {auditsShow ? (
+          <B3flowTable tableArr={topInfo.audits || []} closeFu={() => setAuditsShow(false)} />
+        ) : null}
       </div>
 
       {/* 底部按钮 */}
       <div className='D6btn'>
+        {['3', '4'].includes(key) && topInfo.audits && topInfo.audits.length ? (
+          <Button type='primary' onClick={() => setAuditsShow(true)}>
+            申请记录
+          </Button>
+        ) : null}
+
         {key === '4' ? (
           lookBtn
         ) : (

+ 12 - 1
src/pages/E_goodsStorage/E2damaged/E2edit/index.tsx

@@ -335,6 +335,9 @@ function E2edit() {
     )
   }, [delFu, lookBtnFu, lookJumpFu, topInfo])
 
+  // 申请记录
+  const [auditsShow, setAuditsShow] = useState(false)
+
   return (
     <div className={styles.E2edit}>
       <div className='pageTitle'>残损登记-{pageTitTxt}</div>
@@ -495,11 +498,19 @@ function E2edit() {
         </div>
 
         {/* 申请流程 */}
-        {['3', '4'].includes(key) ? <B3flowTable tableArr={topInfo.audits || []} /> : null}
+        {auditsShow ? (
+          <B3flowTable tableArr={topInfo.audits || []} closeFu={() => setAuditsShow(false)} />
+        ) : null}
       </div>
 
       {/* 底部按钮 */}
       <div className='E2btn'>
+        {['3', '4'].includes(key) && topInfo.audits && topInfo.audits.length ? (
+          <Button type='primary' onClick={() => setAuditsShow(true)}>
+            申请记录
+          </Button>
+        ) : null}
+
         {key === '4' ? (
           lookBtn
         ) : (

+ 12 - 1
src/pages/E_goodsStorage/E3actuality/E3edit/index.tsx

@@ -337,6 +337,9 @@ function E3edit() {
     )
   }, [delFu, lookBtnFu, lookJumpFu, topInfo])
 
+  // 申请记录
+  const [auditsShow, setAuditsShow] = useState(false)
+
   return (
     <div className={styles.E3edit}>
       <div className='pageTitle'>现状登记-{pageTitTxt}</div>
@@ -496,11 +499,19 @@ function E3edit() {
         </div>
 
         {/* 申请流程 */}
-        {['3', '4'].includes(key) ? <B3flowTable tableArr={topInfo.audits || []} /> : null}
+        {auditsShow ? (
+          <B3flowTable tableArr={topInfo.audits || []} closeFu={() => setAuditsShow(false)} />
+        ) : null}
       </div>
 
       {/* 底部按钮 */}
       <div className='E2btn'>
+        {['3', '4'].includes(key) && topInfo.audits && topInfo.audits.length ? (
+          <Button type='primary' onClick={() => setAuditsShow(true)}>
+            申请记录
+          </Button>
+        ) : null}
+
         {key === '4' ? (
           lookBtn
         ) : (