import{h as o,u as n}from"./index-CLZzJyTP.js";const l=[{title:"货品id",align:"center",dataIndex:"goodsId"},{title:"变更类型",align:"center",dataIndex:"type"},{title:"变更前json",align:"center",dataIndex:"changeBefore"},{title:"变更后json",align:"center",dataIndex:"changeAfter"}],m=[{label:"变更类型",field:"type",component:"Input"}],r=[{label:"货品id",field:"goodsId",component:"InputNumber",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入货品id!"}]},{label:"变更类型",field:"type",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入变更类型!"}]},{label:"变更前json",field:"changeBefore",component:"Input"},{label:"变更后json",field:"changeAfter",component:"Input"},{label:"",field:"id",component:"Input",show:!1}],c={goodsId:{title:"货品id",order:0,view:"number",type:"number"},type:{title:"变更类型",order:1,view:"text",type:"string"},changeBefore:{title:"变更前json",order:2,view:"text",type:"string"},changeAfter:{title:"变更后json",order:3,view:"text",type:"string"}};function i(e){return r}const{createConfirm:a}=n();const g="/wms/wmsGoodsLog/exportXls",u="/wms/wmsGoodsLog/importExcel",w=e=>o.get({url:"/wms/wmsGoodsLog/list",params:e}),p=(e,t)=>o.delete({url:"/wms/wmsGoodsLog/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),h=(e,t)=>{a({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>o.delete({url:"/wms/wmsGoodsLog/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},f=(e,t)=>{let s=t?"/wms/wmsGoodsLog/edit":"/wms/wmsGoodsLog/add";return o.post({url:s,params:e})};export{g as a,c as b,l as c,p as d,h as e,f,u as g,r as h,i,w as l,m as s};
