import{h as r,u as o}from"./index-Cy4uayzW.js";const l=[{title:"出库单ID",align:"center",dataIndex:"orderId"},{title:"料箱号",align:"center",dataIndex:"boxCode"},{title:"物料编码",align:"center",dataIndex:"sku"},{title:"批次",align:"center",dataIndex:"batchNo"},{title:"物料类型",align:"center",dataIndex:"goodsType"},{title:"物料名称",align:"center",dataIndex:"goodsName"},{title:"二次拣选数量",align:"center",dataIndex:"pickedQty"},{title:"状态",align:"center",dataIndex:"status_dictText"},{title:"执行开始时间",align:"center",dataIndex:"startTime"},{title:"完成时间",align:"center",dataIndex:"finishTime"}],s=[{label:"料箱号",field:"boxCode",component:"Input"},{label:"物料编码",field:"sku",component:"Input"},{label:"批次",field:"batchNo",component:"Input"},{label:"物料类型",field:"goodsType",component:"Input"},{label:"物料名称",field:"goodsName",component:"Input"},{label:"二次拣选数量",field:"pickedQty",component:"InputNumber"},{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}}],d=[{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:"sku",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入物料!"}]},{label:"批次",field:"batchNo",component:"Input"},{label:"物料类型",field:"goodsType",component:"Input"},{label:"物料名称",field:"goodsName",component:"Input"},{label:"二次拣选数量",field:"pickedQty",component:"InputNumber",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}],c={orderId:{title:"出库单ID",order:0,view:"number",type:"number"},boxCode:{title:"料箱号",order:1,view:"text",type:"string"},sku:{title:"物料",order:2,view:"text",type:"string"},batchNo:{title:"批次",order:3,view:"text",type:"string"},goodsType:{title:"物料类型",order:4,view:"text",type:"string"},goodsName:{title:"物料名称",order:5,view:"text",type:"string"},pickedQty:{title:"二次拣选数量",order:6,view:"number",type:"number"},status:{title:"状态",order:7,view:"text",type:"string"},startTime:{title:"执行开始时间",order:8,view:"datetime",type:"string"},finishTime:{title:"完成时间",order:9,view:"datetime",type:"string"}};function m(e){return d}const{createConfirm:a}=o();const u="/wms/xhOutOrderSecondPick/exportXls",p="/wms/xhOutOrderSecondPick/importExcel",h=e=>r.get({url:"/wms/xhOutOrderSecondPick/list",params:e}),x=(e,t)=>r.delete({url:"/wms/xhOutOrderSecondPick/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),g=(e,t)=>{a({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>r.delete({url:"/wms/xhOutOrderSecondPick/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},b=(e,t)=>{let n=t?"/wms/xhOutOrderSecondPick/edit":"/wms/xhOutOrderSecondPick/add";return r.post({url:n,params:e})};export{u as a,c as b,l as c,x as d,g as e,b as f,p as g,d as h,m as i,h as l,s};
