import{h as n,u as r}from"./index-B_2CoVdl.js";const d=[{title:"仓库",align:"center",dataIndex:"wareCode_dictText"},{title:"库区",align:"center",dataIndex:"areaCode"},{title:"物料编码",align:"center",dataIndex:"code"},{title:"名称",align:"center",dataIndex:"name"},{title:"物料类型",align:"center",dataIndex:"type"},{title:"物料组",align:"center",dataIndex:"goodsGroup"},{title:"项目名称",align:"center",dataIndex:"projectName"},{title:"项目大类",align:"center",dataIndex:"projectCategory"},{title:"库存单位",align:"center",dataIndex:"stockUnit_dictText"},{title:"货主",align:"center",dataIndex:"ownerCode"}],i=[{label:"仓库",field:"wareCode",component:"JDictSelectTag",componentProps:{dictCode:"ware_code"}},{label:"库区",field:"areaCode",component:"Input"},{label:"物料编码",field:"code",component:"Input"},{label:"名称",field:"name",component:"Input"},{label:"物料类型",field:"type",component:"Input"},{label:"物料组",field:"goodsGroup",component:"Input"},{label:"项目名称",field:"projectName",component:"Input"},{label:"项目大类",field:"projectCategory",component:"Input"},{label:"库存单位",field:"stockUnit",component:"JDictSelectTag",componentProps:{dictCode:"wms_stock_unit"}},{label:"货主",field:"ownerCode",component:"Input"}],l=[{label:"仓库",field:"wareCode",component:"JDictSelectTag",componentProps:{dictCode:"ware_code"}},{label:"库区",field:"areaCode",component:"Input"},{label:"物料编码",field:"code",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入物料编码!"}]},{label:"名称",field:"name",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:"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:"stockUnit",component:"JDictSelectTag",componentProps:{dictCode:"wms_stock_unit"}},{label:"货主",field:"ownerCode",component:"Input"},{label:"",field:"id",component:"Input",show:!1}],c={wareCode:{title:"仓库",order:0,view:"text",type:"string"},areaCode:{title:"库区",order:1,view:"text",type:"string"},code:{title:"物料编码",order:2,view:"text",type:"string"},name:{title:"名称",order:3,view:"text",type:"string"},type:{title:"物料类型",order:4,view:"text",type:"string"},goodsGroup:{title:"物料组",order:5,view:"text",type:"string"},projectName:{title:"项目名称",order:6,view:"text",type:"string"},projectCategory:{title:"项目大类",order:7,view:"text",type:"string"},stockUnit:{title:"库存单位",order:8,view:"text",type:"string"},ownerCode:{title:"货主",order:10,view:"text",type:"string"}};function m(e){return l}const{createConfirm:a}=r();const p="/wms/wmsSku/exportXls",u="/wms/wmsSku/importExcel",w=e=>n.get({url:"/wms/wmsSku/list",params:e}),g=(e,t)=>n.delete({url:"/wms/wmsSku/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),x=(e,t)=>{a({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>n.delete({url:"/wms/wmsSku/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},f=(e,t)=>{let o=t?"/wms/wmsSku/edit":"/wms/wmsSku/add";return n.post({url:o,params:e})};export{p as a,c as b,d as c,g as d,x as e,f,u as g,l as h,m as i,w as l,i as s};
