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