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