import{h as r,u as m}from"./index-CYriLmQo.js";const s=[{title:"客户订单号",align:"center",dataIndex:"orderNo"},{title:"订单明细行",align:"center",dataIndex:"orderLine"},{title:"物料号",align:"center",dataIndex:"goodsCode"},{title:"需求数量",align:"center",dataIndex:"qty"},{title:"状态",align:"center",dataIndex:"itemStatus_dictText"}],a=[{label:"客户订单号",field:"orderNo",component:"Input"},{label:"订单明细行",field:"orderLine",component:"InputNumber"},{label:"物料号",field:"goodsCode",component:"Input"},{label:"需求数量",field:"qty",component:"InputNumber"},{label:"状态",field:"itemStatus",component:"JDictSelectTag",componentProps:{dictCode:"xh_out_order_requirement_item_status"}}],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:"qty",component:"InputNumber",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入需求数量!"}]},{label:"状态",field:"itemStatus",component:"JDictSelectTag",componentProps:{dictCode:"xh_out_order_requirement_item_status"},dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入状态 INIT:初始化 FINISHED:已处理 CANCELLED:已放弃!"}]},{label:"",field:"id",component:"Input",show:!1}],u={orderNo:{title:"客户订单号",order:0,view:"text",type:"string"},orderLine:{title:"订单明细行",order:1,view:"number",type:"number"},goodscode:{title:"物料号",order:2,view:"text",type:"string"},qty:{title:"需求数量",order:4,view:"number",type:"number"},itemStatus:{title:"状态",order:5,view:"text",type:"string"}};function i(e){return o}const{createConfirm:d}=m();const c="/wms/xhOutOrderRequirementItem/exportXls",p="/wms/xhOutOrderRequirementItem/importExcel",x=e=>r.get({url:"/wms/xhOutOrderRequirementItem/list",params:e}),h=(e,t)=>r.delete({url:"/wms/xhOutOrderRequirementItem/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),I=(e,t)=>{d({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>r.delete({url:"/wms/xhOutOrderRequirementItem/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},O=(e,t)=>{let n=t?"/wms/xhOutOrderRequirementItem/edit":"/wms/xhOutOrderRequirementItem/add";return r.post({url:n,params:e})};export{c as a,u as b,s as c,h as d,I as e,O as f,p as g,o as h,i,x as l,a as s};
