Renxy 2 年之前
父节点
当前提交
ecefce2635
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/pages/PurchaseAdmin/PurchaseList/Detail/CommitAuditModal.js

+ 4 - 3
src/pages/PurchaseAdmin/PurchaseList/Detail/CommitAuditModal.js

@@ -255,6 +255,7 @@ function CommitAuditModal(props) {
         addAuditList.push(res.data.result);
       }
     }
+    console.log(addAuditList);
     setAuditList(
       addAuditList.map((item, index) => {
         let FormComponents = Form3x.create({
@@ -267,7 +268,7 @@ function CommitAuditModal(props) {
 
         return {
           ...item,
-          FormComponents: <FormComponents items={schemaContent.items} />,
+          FormComponents: <FormComponents items={item.schemaContent.items} />,
         };
       })
     );
@@ -403,11 +404,11 @@ function CommitAuditModal(props) {
         </Form.Item>
       </Form>
       <Tabs defaultActiveKey="1" onChange={onTabChange}>
-        {auditList.map(item => (
+        {auditList.map((item, idx) => (
           // <TabPane tab={item.label} key={`${item.Id}_${item.label}`}>
           //   <AuditDetailed />
           // </TabPane>
-          <TabPane tab={schemaContent.title} key={`${item.Id}_${item.label}`}>
+          <TabPane tab={item.title} key={`${idx}_${item.title}`}>
             {item.FormComponents}
           </TabPane>
         ))}