
import { Button, Popconfirm } from 'antd'
import FormPage from '../../components/FormPage';
import {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={'QC001'} data={data}/>,
      click: regClick
    }
  },
}
