import{h as o,u as r}from"./index-Cy4uayzW.js";const i=[{title:"订单号",align:"center",dataIndex:"orderNo"},{title:"载具编码",align:"center",dataIndex:"containerCode"},{title:"物料编码",align:"center",dataIndex:"sku"},{title:"订单数量",align:"center",dataIndex:"qty"},{title:"物料名称",align:"center",dataIndex:"name"},{title:"状态",align:"center",dataIndex:"itemStatus_dictText"},{title:"执行时间",align:"center",dataIndex:"executeTime"},{title:"完成时间",align:"center",dataIndex:"finishTime"},{title:"批次",align:"center",dataIndex:"batchNo"},{title:"物料类型",align:"center",dataIndex:"goodsType"},{title:"物料组",align:"center",dataIndex:"goodsGroup"},{title:"项目名称",align:"center",dataIndex:"projectName"},{title:"项目大类",align:"center",dataIndex:"projectCategory"}],s=[{label:"订单号",field:"orderNo",component:"Input"},{label:"载具编码",field:"containerCode",component:"Input"},{label:"物料编码",field:"sku",component:"Input"},{label:"订单数量",field:"qty",component:"InputNumber"},{label:"物料名称",field:"name",component:"Input"},{label:"状态",field:"itemStatus",component:"JDictSelectTag",componentProps:{dictCode:"wms_order_status"}},{label:"执行时间",field:"executeTime",component:"RangePicker",componentProps:{valueType:"Date",showTime:!0}},{label:"完成时间",field:"finishTime",component:"RangePicker",componentProps:{valueType:"Date",showTime:!0}},{label:"批次",field:"batchNo",component:"Input"},{label:"物料类型",field:"goodsType",component:"Input"},{label:"物料组",field:"goodsGroup",component:"Input"},{label:"项目名称",field:"projectName",component:"Input"},{label:"项目大类",field:"projectCategory",component:"Input"}],l=[{label:"订单号",field:"orderNo",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入订单号!"}]},{label:"载具编码",field:"containerCode",component:"Input"},{label:"物料编码",field:"sku",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:"wms_order_status"},dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入状态!"}]},{label:"执行时间",field:"executeTime",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:"batchNo",component:"Input"},{label:"物料类型",field:"goodsType",component:"Input"},{label:"物料组",field:"goodsGroup",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入物料组!"}]},{label:"项目名称",field:"projectName",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入项目名称!"}]},{label:"项目大类",field:"projectCategory",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入项目大类!"}]},{label:"",field:"id",component:"Input",show:!1}],d={orderNo:{title:"订单号",order:0,view:"text",type:"string"},containerCode:{title:"载具编码",order:2,view:"text",type:"string"},sku:{title:"物料",order:3,view:"text",type:"string"},name:{title:"物料名称",order:3,view:"text",type:"string"},qty:{title:"订单数量",order:4,view:"number",type:"number"},itemStatus:{title:"状态",order:5,view:"text",type:"string"},executeTime:{title:"执行时间",order:6,view:"datetime",type:"string"},finishTime:{title:"完成时间",order:7,view:"datetime",type:"string"},batchNo:{title:"批次",order:8,view:"text",type:"string"},goodsType:{title:"物料类型",order:9,view:"text",type:"string"},goodsGroup:{title:"物料组",order:10,view:"text",type:"string"},projectName:{title:"项目名称",order:11,view:"text",type:"string"},projectCategory:{title:"项目大类",order:12,view:"text",type:"string"}};function c(e){return l}const{createConfirm:a}=r();const p="/wms/wmsSoItem/exportXls",u="/wms/wmsSoItem/importExcel",g=e=>o.get({url:"/wms/wmsSoItem/list",params:e}),w=(e,t)=>o.delete({url:"/wms/wmsSoItem/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),I=(e,t)=>{a({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>o.delete({url:"/wms/wmsSoItem/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},f=(e,t)=>{let n=t?"/wms/wmsSoItem/edit":"/wms/wmsSoItem/add";return o.post({url:n,params:e})};export{p as a,d as b,i as c,w as d,I as e,f,u as g,l as h,c as i,g as l,s};
