import{h as l,u as o}from"./index-Cy4uayzW.js";const m=[{title:"托盘编码",align:"center",dataIndex:"palletCode"},{title:"库位编码",align:"center",dataIndex:"locCode"},{title:"托盘在库类型",align:"center",dataIndex:"palletType_dictText"},{title:"执行任务类型",align:"center",dataIndex:"execTaskType_dictText"},{title:"备注",align:"center",dataIndex:"remark"},{title:"是否冻结",align:"center",dataIndex:"isFreeze_dictText"},{title:"状态",align:"center",dataIndex:"palletStatus_dictText"}],d=[{label:"托盘编码",field:"palletCode",component:"JInput"},{label:"库位编码",field:"locCode",component:"JInput"},{label:"托盘在库类型",field:"palletType",component:"JDictSelectTag",componentProps:{dictCode:"wms_pallet_type"}},{label:"执行任务类型",field:"execTaskType",component:"JDictSelectTag",componentProps:{dictCode:"wms_task_type"}},{label:"是否冻结",field:"isFreeze",component:"JDictSelectTag",componentProps:{dictCode:"wms_is_freeze"}},{label:"状态",field:"palletStatus",component:"JDictSelectTag",componentProps:{dictCode:"wms_pallet_status"}}],n=[{label:"托盘编码",field:"palletCode",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入托盘编码!"}]},{label:"库位编码",field:"locCode",component:"Input"},{label:"托盘在库类型",field:"palletType",component:"JDictSelectTag",componentProps:{dictCode:"wms_pallet_type"},dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入托盘在库类型!"}]},{label:"执行任务类型",field:"execTaskType",component:"JDictSelectTag",componentProps:{dictCode:"wms_task_type"}},{label:"备注",field:"remark",component:"Input"},{label:"是否冻结",field:"isFreeze",component:"JDictSelectTag",componentProps:{dictCode:"wms_is_freeze"},dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入是否冻结!"}]},{label:"状态",field:"palletStatus",component:"JDictSelectTag",componentProps:{dictCode:"wms_pallet_status"},dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入状态!"}]},{label:"目标库位编码",field:"toLocCode",component:"JDictSelectTag",componentProps:{dictCode:"wms_pallet_station"}},{label:"",field:"id",component:"Input",show:!1}],i={palletCode:{title:"托盘编码",order:0,view:"text",type:"string"},locCode:{title:"库位编码",order:1,view:"text",type:"string"},palletType:{title:"托盘类型",order:2,view:"text",type:"string"},execTaskType:{title:"执行任务类型",order:3,view:"text",type:"string"},remark:{title:"备注",order:4,view:"text",type:"string"},isFreeze:{title:"是否冻结",order:5,view:"number",type:"number"},palletStatus:{title:"状态",order:6,view:"text",type:"string"}};function p(e){return n}const{createConfirm:r}=o();const u="/wms/wmsPallet/exportXls",w="/wms/wmsPallet/importExcel",g=e=>l.get({url:"/wms/wmsPallet/list",params:e}),x=(e,t)=>l.delete({url:"/wms/wmsPallet/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),T=(e,t)=>{r({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>l.delete({url:"/wms/wmsPallet/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},P=(e,t,s)=>{let a=t?"/wms/wmsPallet/edit":"/wms/wmsPallet/add";return a=s?"/wms/wmsPallet/takeOutOne":a,l.post({url:a,params:e})};export{u as a,i as b,m as c,x as d,T as e,n as f,w as g,P as h,p as i,g as l,d as s};
