import{h as r,u as s}from"./index-CLZzJyTP.js";const a=[{title:"推送id",align:"center",dataIndex:"pushId"},{title:"物料编码",align:"center",dataIndex:"goodsCode"},{title:"物料批次",align:"center",dataIndex:"batchNo"},{title:"物料名称",align:"center",dataIndex:"goodsName"},{title:"数量",align:"center",dataIndex:"qty"},{title:"推送类型",align:"center",dataIndex:"type"},{title:"错误信息",align:"center",dataIndex:"errorMsg"}],i=[{label:"物料编码",field:"goodsCode",component:"Input"},{label:"物料批次",field:"batchNo",component:"Input"},{label:"物料名称",field:"goodsName",component:"Input"},{label:"数量",field:"qty",component:"InputNumber"},{label:"推送类型",field:"type",component:"Input"},{label:"错误信息",field:"errorMsg",component:"Input"}],n=[{label:"推送id",field:"pushId",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入推送id!"}],dynamicDisabled:!0},{label:"物料编码",field:"goodsCode",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入物料编码!"}]},{label:"物料批次",field:"batchNo",component:"Input"},{label:"物料名称",field:"goodsName",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入物料名称!"}]},{label:"数量",field:"qty",component:"InputNumber",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入数量!"}]},{label:"推送类型",field:"type",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入推送类型!"}]},{label:"错误信息",field:"errorMsg",component:"InputTextArea"},{label:"",field:"id",component:"Input",show:!1}],m={pushId:{title:"推送id",order:0,view:"text",type:"string"},goodsCode:{title:"物料编码",order:1,view:"text",type:"string"},batchNo:{title:"物料批次",order:2,view:"text",type:"string"},goodsName:{title:"物料名称",order:3,view:"text",type:"string"},qty:{title:"数量",order:4,view:"number",type:"number"},type:{title:"推送类型",order:5,view:"text",type:"string"},errorMsg:{title:"错误信息",order:6,view:"textarea",type:"string"}};function u(e){return n}const{createConfirm:l}=s();const c="/wms/xhGoodsPushError/exportXls",h="/wms/xhGoodsPushError/importExcel",p=e=>r.get({url:"/wms/xhGoodsPushError/list",params:e}),x=(e,t)=>r.delete({url:"/wms/xhGoodsPushError/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),g=(e,t)=>{l({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>r.delete({url:"/wms/xhGoodsPushError/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},b=(e,t)=>{let o=t?"/wms/xhGoodsPushError/edit":"/wms/xhGoodsPushError/add";return r.post({url:o,params:e})};export{c as a,m as b,a as c,x as d,g as e,b as f,h as g,n as h,u as i,p as l,i as s};
