import{render as s}from"./renderUtils-BgFeePLc.js";import{h as o,u as l}from"./index-CLZzJyTP.js";const d=[{title:"站点编码",align:"center",dataIndex:"locCode"},{title:"组名",align:"center",dataIndex:"groupName"},{title:"状态",align:"center",dataIndex:"status_dictText"},{title:"是否启用",align:"center",dataIndex:"isEnable_dictText",customRender:({text:e})=>s.renderSwitch(e,[{text:"是",value:"1"},{text:"否",value:"1"}])}],i=[{label:"站点编码",field:"locCode",component:"Input"},{label:"组名",field:"groupName",component:"Input"},{label:"状态",field:"status",component:"JDictSelectTag",componentProps:{dictCode:"xh_sort_loc_status"}},{label:"是否启用",field:"isEnable",component:"JDictSelectTag",componentProps:{dictCode:"wms_enbale_status"}}],n=[{label:"站点编码",field:"locCode",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入站点编码!"}]},{label:"组名",field:"groupName",component:"Input"},{label:"状态",field:"status",component:"JDictSelectTag",componentProps:{dictCode:"xh_sort_loc_status"},dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入状态!"}]},{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}],u={locCode:{title:"站点编码",order:0,view:"text",type:"string"},groupName:{title:"组名",order:1,view:"text",type:"string"},status:{title:"状态",order:2,view:"text",type:"string"},isEnable:{title:"是否启用",order:3,view:"number",type:"number"}};function p(e){return n}const{createConfirm:a}=l();const x="/wms/xhSortLoc/exportXls",h="/wms/xhSortLoc/importExcel",g=e=>o.get({url:"/wms/xhSortLoc/list",params:e}),w=(e,t)=>o.delete({url:"/wms/xhSortLoc/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),S=(e,t)=>{a({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>o.delete({url:"/wms/xhSortLoc/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},b=(e,t)=>{let r=t?"/wms/xhSortLoc/edit":"/wms/xhSortLoc/add";return o.post({url:r,params:e})};export{x as a,u as b,d as c,w as d,S as e,b as f,h as g,n as h,p as i,g as l,i as s};
