import{h as r,u as d}from"./index-B_2CoVdl.js";const a=[{title:"配送单号",align:"center",dataIndex:"orderNo"},{title:"配送部门",align:"center",dataIndex:"deliveryDepartment"},{title:"优先级",align:"center",dataIndex:"priority"},{title:"配送时间",align:"center",dataIndex:"deliveryTime"},{title:"状态",align:"center",dataIndex:"status"}],o=[{label:"配送单号",field:"orderNo",component:"Input"},{label:"配送部门",field:"deliveryDepartment",component:"Input"},{label:"优先级",field:"priority",component:"InputNumber"},{label:"配送时间",field:"deliveryTime",component:"RangePicker",componentProps:{valueType:"Date",showTime:!0}},{label:"状态",field:"status",component:"Input"}],m=[{label:"配送单号",field:"orderNo",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入配送单号!"}]},{label:"配送部门",field:"deliveryDepartment",component:"Input"},{label:"优先级",field:"priority",component:"InputNumber"},{label:"配送时间",field:"deliveryTime",component:"DatePicker",componentProps:{showTime:!0,valueFormat:"YYYY-MM-DD HH:mm:ss"}},{label:"状态",field:"status",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入状态!"}]},{label:"",field:"id",component:"Input",show:!1}],s=[{title:"配送单号",align:"center",dataIndex:"orderNo"},{title:"订单明细行",align:"center",dataIndex:"orderLine"},{title:"物料号",align:"center",dataIndex:"goodsCode"},{title:"物料名称",align:"center",dataIndex:"goodsName"},{title:"批次，目前未使用",align:"center",dataIndex:"batchNo"},{title:"需求数量",align:"center",dataIndex:"qty"},{title:"实际配送数量",align:"center",dataIndex:"realQty"},{title:"状态",align:"center",dataIndex:"itemStatus"},{title:"配送时间",align:"center",dataIndex:"deliveryTime"}],u=[{label:"",field:"id",component:"Input",show:!1},{label:"配送单号",field:"orderNo",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入配送单号!"}]},{label:"订单明细行",field:"orderLine",component:"InputNumber"},{label:"物料号",field:"goodsCode",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入物料号!"}]},{label:"物料名称",field:"goodsName",component:"Input"},{label:"批次，目前未使用",field:"batchNo",component:"Input"},{label:"需求数量",field:"qty",component:"InputNumber",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入需求数量!"}]},{label:"实际配送数量",field:"realQty",component:"InputNumber",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入实际配送数量!"}]},{label:"状态",field:"itemStatus",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入状态!"}]},{label:"配送时间",field:"deliveryTime",component:"DatePicker",componentProps:{showTime:!0,valueFormat:"YYYY-MM-DD HH:mm:ss"}}],O={orderNo:{title:"配送单号",order:0,view:"text",type:"string"},deliveryDepartment:{title:"配送部门",order:1,view:"text",type:"string"},priority:{title:"优先级",order:2,view:"number",type:"number"},deliveryTime:{title:"配送时间",order:3,view:"datetime",type:"string"},status:{title:"状态",order:4,view:"text",type:"string"}},{createConfirm:n}=d();const c="/wms/xhOutOrderDelivery/exportXls",y="/wms/xhOutOrderDelivery/importExcel",h=e=>r.get({url:"/wms/xhOutOrderDelivery/list",params:e}),v=(e,t)=>r.delete({url:"/wms/xhOutOrderDelivery/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),x=(e,t)=>{n({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>r.delete({url:"/wms/xhOutOrderDelivery/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},p=(e,t)=>{let l=t?"/wms/xhOutOrderDelivery/edit":"/wms/xhOutOrderDelivery/add";return r.post({url:l,params:e})},D=e=>e.orderNo?r.get({url:"/wms/xhOutOrderDelivery/listXhOutOrderDeliveryItemByMainId",params:e}):Promise.resolve({}),I=(e,t)=>r.delete({url:"/wms/xhOutOrderDelivery/deleteXhOutOrderDeliveryItem",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),g=(e,t)=>{n({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>r.delete({url:"/wms/xhOutOrderDelivery/deleteBatchXhOutOrderDeliveryItem",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},w=(e,t)=>{let l=t?"/wms/xhOutOrderDelivery/editXhOutOrderDeliveryItem":"/wms/xhOutOrderDelivery/addXhOutOrderDeliveryItem";return r.post({url:l,params:e})},b="/wms/xhOutOrderDelivery/importXhOutOrderDeliveryItem",f="/wms/xhOutOrderDelivery/exportXhOutOrderDeliveryItem";export{D as a,b,f as c,I as d,g as e,w as f,u as g,a as h,y as i,c as j,O as k,h as l,v as m,x as n,p as o,m as p,o as s,s as x};
