import{h as n,u as a}from"./index-CLZzJyTP.js";const d=[{title:"仓库",align:"center",dataIndex:"wareCode_dictText"},{title:"站点编码",align:"center",dataIndex:"code"},{title:"IP地址",align:"center",dataIndex:"ipAddress"},{title:"库位编码",align:"center",dataIndex:"locCode"},{title:"楼层",align:"center",dataIndex:"layer"},{title:"方向",align:"center",dataIndex:"areaCode_dictText"},{title:"实际库区",align:"center",dataIndex:"actualArea_dictText"},{title:"打印机IP",align:"center",dataIndex:"printIp"},{title:"类型",align:"center",dataIndex:"type_dictText"},{title:"是否启用",align:"center",dataIndex:"isEnable_dictText"}],c=[{label:"仓库",field:"wareCode",component:"JDictSelectTag",componentProps:{dictCode:"ware_code"}},{label:"站点编码",field:"code",component:"Input"},{label:"IP地址",field:"ipAddress",component:"Input"},{label:"库位编码",field:"locCode",component:"Input"},{label:"楼层",field:"layer",component:"InputNumber"},{label:"方向",field:"areaCode",component:"JDictSelectTag",componentProps:{dictCode:"wms_direction_type"}},{label:"实际库区",field:"actualArea",component:"JDictSelectTag",componentProps:{dictCode:"wms_area_type"}},{label:"打印机IP",field:"printIp",component:"Input"},{label:"类型",field:"type",component:"JDictSelectTag",componentProps:{dictCode:"wms_station_type"}},{label:"是否启用",field:"isEnable",component:"JDictSelectTag",componentProps:{dictCode:"wms_enable_type"}}],l=[{label:"仓库",field:"wareCode",component:"JDictSelectTag",componentProps:{dictCode:"ware_code"},dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入仓库!"}]},{label:"站点编码",field:"code",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入站点编码!"}]},{label:"IP地址",field:"ipAddress",component:"Input"},{label:"库位编码",field:"locCode",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入库位编码!"}]},{label:"楼层",field:"layer",component:"InputNumber"},{label:"方向",field:"areaCode",component:"JDictSelectTag",componentProps:{dictCode:"wms_direction_type"}},{label:"实际库区",field:"actualArea",component:"JDictSelectTag",componentProps:{dictCode:"wms_area_type"}},{label:"打印机IP",field:"printIp",component:"Input"},{label:"类型",field:"type",component:"JDictSelectTag",componentProps:{dictCode:"wms_station_type"},dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入类型!"}]},{label:"是否启用",field:"isEnable",component:"JDictSelectTag",componentProps:{dictCode:"wms_enable_type"},dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入是否启用!"}]},{label:"",field:"id",component:"Input",show:!1}],s={wareCode:{title:"仓库",order:0,view:"text",type:"string"},code:{title:"站点编码",order:1,view:"text",type:"string"},ipAddress:{title:"IP地址",order:2,view:"text",type:"string"},locCode:{title:"库位编码",order:3,view:"text",type:"string"},layer:{title:"楼层",order:4,view:"number",type:"number"},areaCode:{title:"方向",order:5,view:"text",type:"string"},actualArea:{title:"实际库区",order:6,view:"text",type:"string"},printIp:{title:"打印机IP",order:7,view:"text",type:"string"},type:{title:"类型",order:8,view:"text",type:"string"},isEnable:{title:"是否启用",order:9,view:"number",type:"number"}};function m(e){return l}const{createConfirm:r}=a();const p="/wms/wmsStation/exportXls",u="/wms/wmsStation/importExcel",w=e=>n.get({url:"/wms/wmsStation/list",params:e}),g=(e,t)=>n.delete({url:"/wms/wmsStation/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),b=(e,t)=>{r({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>n.delete({url:"/wms/wmsStation/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},I=(e,t)=>{let o=t?"/wms/wmsStation/edit":"/wms/wmsStation/add";return n.post({url:o,params:e})};export{p as a,s as b,d as c,g as d,b as e,I as f,u as g,l as h,m as i,w as l,c as s};
