
import { Button, Popconfirm } from 'antd'
import FormPage from '../../components/FormPage'
import {extendRule, initFilter, initQueryFilter} from "../../utils/common";
import {message} from "antd/lib/index";

//其它入库
export default {
  btnImport:({record,close,loadData,custom,dispatch})=> {
    const closeF=()=>{
      loadData();
    };
    const regClick=async function (){
      await dispatch({
        type: 'custom/save',
        payload: {
          orderImportClick:true
        },
      });
    };
    const data={
      close:closeF,
      orderImportClick:custom.orderImportClick
    };
    return {
      content: <FormPage formCode={'WH025'} data={data}/>,
      click: regClick
    }
  },
}
