Jelajahi Sumber

修改bom最新需求

Renxy 2 tahun lalu
induk
melakukan
307abe6678

+ 0 - 1
src/pages/PurchaseAdmin/PurchaseList/Detail/Index.js

@@ -547,7 +547,6 @@ function Detail(props) {
         } 
         return true;
       }
-      console.log('是否有权限提交流转',getIsSubmit())
       if(getIsSubmit()) menuList.push(<Menu.Item key="commitAudit">提交流转</Menu.Item>);
       
 

+ 2 - 1
src/pages/PurchaseAdmin/PurchaseList/Detail/LuckySheet.js

@@ -116,12 +116,13 @@ class LuckySheet extends React.Component {
         //   }, 300);
         // },
       };
+      console.log(version)
       if(version.flow_id) {
         option.authority = {
           sheet: true,
           hintText: '当前处于审批节点,禁止编辑!'
         }
-      } else if(version.audit_status != 0) {
+      } else if(version.audit_status != 0 || version.status == 1) {
         option.authority = {
           sheet: true,
           hintText: '当前清单不可编辑!'

+ 3 - 3
src/pages/PurchaseAdmin/PurchaseList/Detail/TimeNode.js

@@ -14,10 +14,10 @@ function TimeNode(props) {
     onApprove,
   } = props;
 
-  if (active !== 0) {
+  if (!list || list.FlowNodes?.length != 0) {
     return (
       <div className={styles.top}>
-        <Steps current={current}>
+        <Steps current={current} status={active == 0 ? 'error' : 'process'}>
           {list.FlowNodes.map(item => (
             <Step
               key={item.id}
@@ -27,7 +27,7 @@ function TimeNode(props) {
           ))}
         </Steps>
         <div className={styles.btns} style={{ marginLeft: 80 }}>
-          {isAuditor && (
+          {active == 0 ? <Button  type="primary" disabled>审批拒绝</Button> : isAuditor && active != 0 && (
             <>
               <Button type="primary" onClick={() => onApprove(true)}>
                 审批通过