import { PlusOutlined, UploadOutlined,ArrowLeftOutlined } from '@ant-design/icons';
import { Button, Card, message, Steps, Empty, Form, Input, Upload, Select, InputNumber, Switch,TreeSelect,Divider,Space,Popconfirm } from 'antd';
import { GridContent, PageContainer, RouteContext } from '@ant-design/pro-layout';
import React, { Fragment, useRef, useState, useEffect } from 'react';

import GoodsTechnologyMaken from './components/goodstechnologymaken'
import axios from 'axios';
import { history } from 'umi';
const { Step } = Steps;
const { Option, OptGroup } = Select;
const { TextArea } = Input;
const Advanced = (props) => {
  
 
  //设置
 
  useEffect(() => {
    // if(!props.location?.query?.values){
    //   history.push({
    //     pathname: '/database/goods/newgoods',
    //   });
    // }else{
     //SetCurrTabKey(tabStatus.tabActiveKey);
      //initGoodsUnit();
      //initGoodsType();
      //initGetbomType();
      //intBatching();//默认原料
    //}
   
  }, [])
  return (
    <PageContainer
    host header={{
      title: [<a  key="back"
      onClick={() => {
        history.push({
          pathname: '/database/goods/newgoods',
        });
      }}><ArrowLeftOutlined />返回</a>],
      breadcrumb: {},
    }}
      title={'商品工艺'}
    >
      
      <GoodsTechnologyMaken goodsid={props.location.query.values?.id}></GoodsTechnologyMaken>
    </PageContainer>
  );
};

export default Advanced;
