import{h as s,u as r}from"./index-CYriLmQo.js";const o=[{title:"编码",align:"center",dataIndex:"code"},{title:"名称",align:"center",dataIndex:"name"}],w=[{label:"编码",field:"code",component:"Input"},{label:"名称",field:"name",component:"Input"}],a=[{label:"编码",field:"code",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入编码!"}]},{label:"名称",field:"name",component:"Input"},{label:"",field:"id",component:"Input",show:!1}],c={code:{title:"编码",order:0,view:"text",type:"string"},name:{title:"名称",order:1,view:"text",type:"string"}};function d(e){return a}const{createConfirm:m}=r();const i="/wms/wmsOwner/exportXls",u="/wms/wmsOwner/importExcel",p=e=>s.get({url:"/wms/wmsOwner/list",params:e}),O=(e,t)=>s.delete({url:"/wms/wmsOwner/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),h=(e,t)=>{m({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>s.delete({url:"/wms/wmsOwner/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},x=(e,t)=>{let n=t?"/wms/wmsOwner/edit":"/wms/wmsOwner/add";return s.post({url:n,params:e})};export{i as a,c as b,o as c,O as d,h as e,x as f,u as g,a as h,d as i,p as l,w as s};
