import{h as r,u as a}from"./index-B_2CoVdl.js";const d=[{title:"出库单ID",align:"center",dataIndex:"orderId"},{title:"托盘号",align:"center",dataIndex:"palletCode"},{title:"工站号",align:"center",dataIndex:"stationCode"},{title:"状态",align:"center",dataIndex:"status_dictText"},{title:"到站时间",align:"center",dataIndex:"startTime"},{title:"完成时间",align:"center",dataIndex:"finishTime"}],i=[{label:"托盘号",field:"palletCode",component:"Input"},{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}}],s=[{label:"出库单ID",field:"orderId",component:"InputNumber",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入出库单ID!"}]},{label:"托盘号",field:"palletCode",component:"Input",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"},palletCode:{title:"托盘号",order:1,view:"text",type:"string"},stationCode:{title:"工站号",order:2,view:"text",type:"string"},status:{title:"状态",order:3,view:"text",type:"string"},startTime:{title:"到站时间",order:4,view:"datetime",type:"string"},finishTime:{title:"完成时间",order:5,view:"datetime",type:"string"}};function c(e){return s}const{createConfirm:n}=a();const u="/wms/xhOutOrderPallet/exportXls",p="/wms/xhOutOrderPallet/importExcel",h=e=>r.get({url:"/wms/xhOutOrderPallet/list",params:e}),x=(e,t)=>r.delete({url:"/wms/xhOutOrderPallet/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),O=(e,t)=>{n({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>r.delete({url:"/wms/xhOutOrderPallet/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},w=(e,t)=>{let l=t?"/wms/xhOutOrderPallet/edit":"/wms/xhOutOrderPallet/add";return r.post({url:l,params:e})};export{u as a,m as b,d as c,x as d,O as e,w as f,p as g,s as h,c as i,h as l,i as s};
