import{h as n,u as s}from"./index-Cy4uayzW.js";const r=[{title:"工作站编码",align:"center",dataIndex:"stationCode"},{title:"库位编码",align:"center",dataIndex:"locCode"},{title:"目标站点编码",align:"center",dataIndex:"code"},{title:"编号",align:"center",dataIndex:"number"},{title:"类型",align:"center",dataIndex:"type_dictText"},{title:"状态",align:"center",dataIndex:"pointStatus_dictText"},{title:"是否启用",align:"center",dataIndex:"isEnable_dictText"}],m=[{label:"工作站编码",field:"stationCode",component:"Input"},{label:"库位编码",field:"locCode",component:"Input"},{label:"目标站点编码",field:"code",component:"Input"},{label:"编号",field:"number",component:"Input"},{label:"类型",field:"type",component:"JDictSelectTag",componentProps:{dictCode:"wms_station_point_type"}},{label:"状态",field:"pointStatus",component:"JDictSelectTag",componentProps:{dictCode:"wms_station_point_status"}},{label:"是否启用",field:"isEnable",component:"JDictSelectTag",componentProps:{dictCode:"wms_enable_status"}}],a=[{label:"工作站编码",field:"stationCode",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入工作站编码!"}]},{label:"库位编码",field:"locCode",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:"number",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入编号!"}]},{label:"类型",field:"type",component:"JDictSelectTag",componentProps:{dictCode:"wms_station_point_type"},dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请选择类型!"}]},{label:"状态",field:"pointStatus",component:"JDictSelectTag",componentProps:{dictCode:"wms_station_point_status"}},{label:"是否启用",field:"isEnable",component:"JDictSelectTag",componentProps:{dictCode:"wms_enable_status"},dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入是否启用!"}]},{label:"",field:"id",component:"Input",show:!1}],d={stationCode:{title:"工作站编码",order:0,view:"text",type:"string"},locCode:{title:"库位编码",order:1,view:"text",type:"string"},code:{title:"目标站点编码",order:2,view:"text",type:"string"},number:{title:"编号",order:3,view:"text",type:"string"},type:{title:"类型",order:4,view:"text",type:"string"},pointStatus:{title:"状态",order:5,view:"text",type:"string"},isEnable:{title:"是否启用",order:6,view:"number",type:"number"}};function c(e){return a}const{createConfirm:i}=s();const p="/wms/wmsStationPoint/exportXls",u="/wms/wmsStationPoint/importExcel",w=e=>n.get({url:"/wms/wmsStationPoint/list",params:e}),g=(e,t)=>n.delete({url:"/wms/wmsStationPoint/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),b=(e,t)=>{i({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>n.delete({url:"/wms/wmsStationPoint/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},S=(e,t)=>{let o=t?"/wms/wmsStationPoint/edit":"/wms/wmsStationPoint/add";return n.post({url:o,params:e})};export{p as a,d as b,r as c,g as d,b as e,S as f,u as g,a as h,c as i,w as l,m as s};
