import{h as n,u as a}from"./index-Cy4uayzW.js";const i=[{title:"仓库编码",align:"center",dataIndex:"wareCode"},{title:"料箱编号",align:"center",dataIndex:"containerCode"},{title:"物料编码",align:"center",dataIndex:"sku"},{title:"批次号",align:"center",dataIndex:"batchNo"},{title:"品番类型",align:"center",dataIndex:"type"},{title:"库位号",align:"center",dataIndex:"locCode"},{title:"楼层",align:"center",dataIndex:"layer"},{title:"虚拟库区",align:"center",dataIndex:"areaCode"},{title:"实际库区",align:"center",dataIndex:"actualArea"},{title:"库存数量",align:"center",dataIndex:"qty"},{title:"分配数量",align:"center",dataIndex:"qtyAllocated"},{title:"上架数量",align:"center",dataIndex:"qtyPutaway"},{title:"冻结数量",align:"center",dataIndex:"qtyHold"},{title:"预留字段1",align:"center",dataIndex:"extendStrOne"},{title:"预留字段2",align:"center",dataIndex:"extendStrTwo"},{title:"预留时间1",align:"center",dataIndex:"extendDateOne"},{title:"预留时间2",align:"center",dataIndex:"extendDateTwo"}],c=[{label:"仓库编码",field:"wareCode",component:"Input"},{label:"料箱编号",field:"containerCode",component:"Input"},{label:"物料编码",field:"sku",component:"Input"},{label:"批次号",field:"batchNo",component:"Input"},{label:"品番类型",field:"type",component:"Input"},{label:"库位号",field:"locCode",component:"Input"},{label:"楼层",field:"layer",component:"InputNumber"},{label:"虚拟库区",field:"areaCode",component:"Input"},{label:"实际库区",field:"actualArea",component:"Input"},{label:"库存数量",field:"qty",component:"InputNumber"},{label:"分配数量",field:"qtyAllocated",component:"InputNumber"},{label:"上架数量",field:"qtyPutaway",component:"InputNumber"},{label:"冻结数量",field:"qtyHold",component:"InputNumber"}],o=[{label:"仓库编码",field:"wareCode",component:"Input"},{label:"料箱编号",field:"containerCode",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入料箱编号!"}]},{label:"物料编码",field:"sku",component:"Input"},{label:"批次号",field:"batchNo",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入批次号!"}]},{label:"品番类型",field:"type",component:"Input"},{label:"库位号",field:"locCode",component:"Input"},{label:"楼层",field:"layer",component:"InputNumber"},{label:"虚拟库区",field:"areaCode",component:"Input"},{label:"实际库区",field:"actualArea",component:"Input"},{label:"库存数量",field:"qty",component:"InputNumber",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入库存数量!"}]},{label:"分配数量",field:"qtyAllocated",component:"InputNumber",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入分配数量!"}]},{label:"上架数量",field:"qtyPutaway",component:"InputNumber",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入上架数量!"}]},{label:"冻结数量",field:"qtyHold",component:"InputNumber",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入冻结数量!"}]},{label:"预留字段1",field:"extendStrOne",component:"Input"},{label:"预留字段2",field:"extendStrTwo",component:"Input"},{label:"预留时间1",field:"extendDateOne",component:"DatePicker",componentProps:{showTime:!0,valueFormat:"YYYY-MM-DD HH:mm:ss"}},{label:"预留时间2",field:"extendDateTwo",component:"DatePicker",componentProps:{showTime:!0,valueFormat:"YYYY-MM-DD HH:mm:ss"}},{label:"",field:"id",component:"Input",show:!1}],m={wareCode:{title:"仓库编码",order:0,view:"text",type:"string"},containerCode:{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"},locCode:{title:"库位号",order:5,view:"text",type:"string"},layer:{title:"楼层",order:6,view:"number",type:"number"},areaCode:{title:"虚拟库区",order:7,view:"text",type:"string"},actualArea:{title:"实际库区",order:8,view:"text",type:"string"},qty:{title:"库存数量",order:9,view:"number",type:"number"},qtyAllocated:{title:"分配数量",order:10,view:"number",type:"number"},qtyPutaway:{title:"上架数量",order:11,view:"number",type:"number"},qtyHold:{title:"冻结数量",order:12,view:"number",type:"number"},extendStrOne:{title:"预留字段1",order:13,view:"text",type:"string"},extendStrTwo:{title:"预留字段2",order:14,view:"text",type:"string"},extendDateOne:{title:"预留时间1",order:15,view:"datetime",type:"string"},extendDateTwo:{title:"预留时间2",order:16,view:"datetime",type:"string"}};function s(e){return o}const{createConfirm:r}=a();const u="/wms/wmsStockLocSku/exportXls",p="/wms/wmsStockLocSku/importExcel",w=e=>n.get({url:"/wms/wmsStockLocSku/list",params:e}),b=(e,t)=>n.delete({url:"/wms/wmsStockLocSku/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),y=(e,t)=>{r({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>n.delete({url:"/wms/wmsStockLocSku/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},x=(e,t)=>{let l=t?"/wms/wmsStockLocSku/edit":"/wms/wmsStockLocSku/add";return n.post({url:l,params:e})};export{u as a,m as b,i as c,b as d,y as e,x as f,p as g,o as h,s as i,w as l,c as s};
