import{h as n,u as l}from"./index-B_2CoVdl.js";const m=[{title:"编码",align:"center",dataIndex:"code"},{title:"类型",align:"center",dataIndex:"type"},{title:"子类型",align:"center",dataIndex:"subType"},{title:"长",align:"center",dataIndex:"length"},{title:"宽",align:"center",dataIndex:"width"},{title:"高",align:"center",dataIndex:"height"},{title:"分区数量",align:"center",dataIndex:"regionCount"},{title:"是否防静电",align:"center",dataIndex:"isElectric"},{title:"是否启用",align:"center",dataIndex:"isEnable"},{title:"仓库编码",align:"center",dataIndex:"wareCode"}],s=[{label:"编码",field:"code",component:"Input"},{label:"类型",field:"type",component:"Input"},{label:"子类型",field:"subType",component:"Input"},{label:"长",field:"length",component:"InputNumber"},{label:"宽",field:"width",component:"InputNumber"},{label:"高",field:"height",component:"InputNumber"},{label:"分区数量",field:"regionCount",component:"InputNumber"},{label:"是否防静电",field:"isElectric",component:"InputNumber"},{label:"是否启用",field:"isEnable",component:"InputNumber"},{label:"仓库编码",field:"wareCode",component:"Input"}],i=[{label:"编码",field:"code",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:"subType",component:"Input"},{label:"长",field:"length",component:"InputNumber"},{label:"宽",field:"width",component:"InputNumber"},{label:"高",field:"height",component:"InputNumber"},{label:"分区数量",field:"regionCount",component:"InputNumber"},{label:"是否防静电",field:"isElectric",component:"InputNumber",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入是否防静电!"}]},{label:"是否启用",field:"isEnable",component:"InputNumber",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入是否启用!"}]},{label:"仓库编码",field:"wareCode",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入仓库编码!"}]},{label:"",field:"id",component:"Input",show:!1}],d={code:{title:"编码",order:0,view:"text",type:"string"},type:{title:"类型",order:1,view:"text",type:"string"},subType:{title:"子类型",order:2,view:"text",type:"string"},length:{title:"长",order:3,view:"number",type:"number"},width:{title:"宽",order:4,view:"number",type:"number"},height:{title:"高",order:5,view:"number",type:"number"},regionCount:{title:"分区数量",order:6,view:"number",type:"number"},isElectric:{title:"是否防静电",order:7,view:"number",type:"number"},isEnable:{title:"是否启用",order:8,view:"number",type:"number"},wareCode:{title:"仓库编码",order:9,view:"text",type:"string"}};function u(e){return i}const{createConfirm:o}=l();const c="/wms/wmsContainerConfig/exportXls",p="/wms/wmsContainerConfig/importExcel",b=e=>n.get({url:"/wms/wmsContainerConfig/list",params:e}),g=(e,t)=>n.delete({url:"/wms/wmsContainerConfig/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),w=(e,t)=>{o({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>n.delete({url:"/wms/wmsContainerConfig/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},f=(e,t)=>{let r=t?"/wms/wmsContainerConfig/edit":"/wms/wmsContainerConfig/add";return n.post({url:r,params:e})};export{c as a,d as b,m as c,g as d,w as e,f,p as g,i as h,u as i,b as l,s};
