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