import{h as r,u as n}from"./index-CLZzJyTP.js";const i=[{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"}],m=[{label:"订单明细行",field:"orderLine",component:"InputNumber"},{label:"物料号",field:"goodsCode",component:"Input"},{label:"物料名称",field:"goodsName",component:"Input"},{label:"批次，目前未使用",field:"batchNo",component:"Input"},{label:"需求数量",field:"qty",component:"InputNumber"},{label:"实际配送数量",field:"realQty",component:"InputNumber"},{label:"状态",field:"itemStatus",component:"Input"},{label:"配送时间",field:"deliveryTime",component:"RangePicker",componentProps:{valueType:"Date",showTime:!0}}],o=[{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"}},{label:"",field:"id",component:"Input",show:!1}],s={orderNo:{title:"配送单号",order:0,view:"text",type:"string"},orderLine:{title:"订单明细行",order:1,view:"number",type:"number"},goodsCode:{title:"物料号",order:2,view:"text",type:"string"},goodsName:{title:"物料名称",order:3,view:"text",type:"string"},batchNo:{title:"批次，目前未使用",order:4,view:"text",type:"string"},qty:{title:"需求数量",order:5,view:"number",type:"number"},realQty:{title:"实际配送数量",order:6,view:"number",type:"number"},itemStatus:{title:"状态",order:7,view:"text",type:"string"},deliveryTime:{title:"配送时间",order:8,view:"datetime",type:"string"}};function u(e){return o}const{createConfirm:a}=n();const c="/wms/xhOutOrderDeliveryItem/exportXls",p="/wms/xhOutOrderDeliveryItem/importExcel",y=e=>r.get({url:"/wms/xhOutOrderDeliveryItem/list",params:e}),I=(e,t)=>r.delete({url:"/wms/xhOutOrderDeliveryItem/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),h=(e,t)=>{a({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>r.delete({url:"/wms/xhOutOrderDeliveryItem/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},x=(e,t)=>{let l=t?"/wms/xhOutOrderDeliveryItem/edit":"/wms/xhOutOrderDeliveryItem/add";return r.post({url:l,params:e})};export{c as a,s as b,i as c,I as d,h as e,x as f,p as g,o as h,u as i,y as l,m as s};
