import{h as r,u as n}from"./index-Cy4uayzW.js";const s=[{title:"出库单ID",align:"center",dataIndex:"orderId"},{title:"料箱号",align:"center",dataIndex:"boxCode"},{title:"实际料箱号",align:"center",dataIndex:"realBoxCode"},{title:"托盘号",align:"center",dataIndex:"palletCode"},{title:"仓库",align:"center",dataIndex:"wareCode_dictText"},{title:"工站号",align:"center",dataIndex:"stationCode"},{title:"状态",align:"center",dataIndex:"status_dictText"},{title:"到站时间",align:"center",dataIndex:"startTime"},{title:"完成时间",align:"center",dataIndex:"finishTime"}],i=[{label:"料箱号",field:"boxCode",component:"Input"},{label:"实际料箱号",field:"realBoxCode",component:"Input"},{label:"托盘号",field:"palletCode",component:"Input"},{label:"仓库",field:"wareCode",component:"JDictSelectTag",componentProps:{dictCode:"ware_code"}},{label:"工站号",field:"stationCode",component:"Input"},{label:"状态",field:"status",component:"JDictSelectTag",componentProps:{dictCode:"wms_out_order_status"}},{label:"到站时间",field:"startTime",component:"RangePicker",componentProps:{valueType:"Date",showTime:!0}},{label:"完成时间",field:"finishTime",component:"RangePicker",componentProps:{valueType:"Date",showTime:!0}}],a=[{label:"出库单ID",field:"orderId",component:"InputNumber",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入出库单ID!"}]},{label:"料箱号",field:"boxCode",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入料箱号!"}]},{label:"实际料箱号",field:"realBoxCode",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入实际料箱号!"}]},{label:"托盘号",field:"palletCode",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入托盘号!"}]},{label:"仓库",field:"wareCode",component:"JDictSelectTag",componentProps:{dictCode:"ware_code"},dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入仓库!"}]},{label:"工站号",field:"stationCode",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入工站号!"}]},{label:"状态",field:"status",component:"JDictSelectTag",componentProps:{dictCode:"wms_out_order_status"},dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入状态!"}]},{label:"到站时间",field:"startTime",component:"DatePicker",componentProps:{showTime:!0,valueFormat:"YYYY-MM-DD HH:mm:ss"}},{label:"完成时间",field:"finishTime",component:"DatePicker",componentProps:{showTime:!0,valueFormat:"YYYY-MM-DD HH:mm:ss"}},{label:"",field:"id",component:"Input",show:!1}],m={orderId:{title:"出库单ID",order:0,view:"number",type:"number"},boxCode:{title:"料箱号",order:1,view:"text",type:"string"},realBoxCode:{title:"实际料箱号",order:2,view:"text",type:"string"},palletCode:{title:"托盘号",order:3,view:"text",type:"string"},wareCode:{title:"仓库",order:4,view:"text",type:"string"},stationCode:{title:"工站号",order:5,view:"text",type:"string"},status:{title:"状态",order:6,view:"text",type:"string"},startTime:{title:"到站时间",order:7,view:"datetime",type:"string"},finishTime:{title:"完成时间",order:8,view:"datetime",type:"string"}};function c(e){return a}const{createConfirm:l}=n();const u="/wms/xhOutOrderBox/exportXls",p="/wms/xhOutOrderBox/importExcel",x=e=>r.get({url:"/wms/xhOutOrderBox/list",params:e}),h=(e,t)=>r.delete({url:"/wms/xhOutOrderBox/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),g=(e,t)=>{l({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>r.delete({url:"/wms/xhOutOrderBox/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},w=(e,t)=>{let o=t?"/wms/xhOutOrderBox/edit":"/wms/xhOutOrderBox/add";return r.post({url:o,params:e})};export{u as a,m as b,s as c,h as d,g as e,w as f,p as g,a as h,c as i,x as l,i as s};
