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