import{h as n,u as o}from"./index-Cy4uayzW.js";const s=[{title:"仓库编码",align:"center",dataIndex:"wareCode"},{title:"货箱二维码",align:"center",dataIndex:"qrCode"},{title:"物料编码",align:"center",dataIndex:"sku"},{title:"批次",align:"center",dataIndex:"batchNo"},{title:"货品类型",align:"center",dataIndex:"type"},{title:"数量",align:"center",dataIndex:"qty"},{title:"接收数量",align:"center",dataIndex:"qtyReceipt"},{title:"单位",align:"center",dataIndex:"unit"},{title:"库位编码",align:"center",dataIndex:"locCode"},{title:"状态",align:"center",dataIndex:"goodsStatus"},{title:"楼层",align:"center",dataIndex:"layer"},{title:"虚拟库区",align:"center",dataIndex:"areaCode"},{title:"实际库区",align:"center",dataIndex:"actualArea"}],i=[{label:"仓库编码",field:"wareCode",component:"Input"},{label:"货箱二维码",field:"qrCode",component:"Input"},{label:"物料编码",field:"sku",component:"Input"},{label:"批次",field:"batchNo",component:"Input"},{label:"货品类型",field:"type",component:"Input"},{label:"数量",field:"qty",component:"InputNumber"},{label:"接收数量",field:"qtyReceipt",component:"InputNumber"},{label:"单位",field:"unit",component:"Input"},{label:"库位编码",field:"locCode",component:"Input"},{label:"状态",field:"goodsStatus",component:"Input"},{label:"楼层",field:"layer",component:"InputNumber"},{label:"虚拟库区",field:"areaCode",component:"Input"},{label:"实际库区",field:"actualArea",component:"Input"}],a=[{label:"仓库编码",field:"wareCode",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入仓库编码!"}]},{label:"货箱二维码",field:"qrCode",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入货箱二维码!"}]},{label:"物料编码",field:"sku",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入物料编码!"}]},{label:"批次",field:"batchNo",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入批次!"}]},{label:"货品类型",field:"type",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入货品类型!"}]},{label:"数量",field:"qty",component:"InputNumber"},{label:"接收数量",field:"qtyReceipt",component:"InputNumber"},{label:"单位",field:"unit",component:"Input"},{label:"库位编码",field:"locCode",component:"Input"},{label:"状态",field:"goodsStatus",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入状态!"}]},{label:"楼层",field:"layer",component:"InputNumber"},{label:"虚拟库区",field:"areaCode",component:"Input"},{label:"实际库区",field:"actualArea",component:"Input"},{label:"",field:"id",component:"Input",show:!1}],m={wareCode:{title:"仓库编码",order:0,view:"text",type:"string"},qrCode:{title:"货箱二维码",order:1,view:"text",type:"string"},sku:{title:"物料编码",order:2,view:"text",type:"string"},batchNo:{title:"批次",order:3,view:"text",type:"string"},type:{title:"货品类型",order:4,view:"text",type:"string"},qty:{title:"数量",order:5,view:"number",type:"number"},qtyReceipt:{title:"接收数量",order:6,view:"number",type:"number"},unit:{title:"单位",order:7,view:"text",type:"string"},locCode:{title:"库位编码",order:8,view:"text",type:"string"},goodsStatus:{title:"状态",order:9,view:"text",type:"string"},layer:{title:"楼层",order:10,view:"number",type:"number"},areaCode:{title:"虚拟库区",order:11,view:"text",type:"string"},actualArea:{title:"实际库区",order:12,view:"text",type:"string"}};function c(e){return a}const{createConfirm:r}=o();const u="/wms/wmsGoods/exportXls",p="/wms/wmsGoods/importExcel",w=e=>n.get({url:"/wms/wmsGoods/list",params:e}),b=(e,t)=>n.delete({url:"/wms/wmsGoods/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),I=(e,t)=>{r({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>n.delete({url:"/wms/wmsGoods/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},g=(e,t)=>{let l=t?"/wms/wmsGoods/edit":"/wms/wmsGoods/add";return n.post({url:l,params:e})};export{u as a,m as b,s as c,b as d,I as e,g as f,p as g,a as h,c as i,w as l,i as s};
