2 lines
1.0 KiB
Java
2 lines
1.0 KiB
Java
import{s as t,d as s}from"./index-X7Y8jykP.js";const{createConfirm:a}=t(),r="/xslmes/mesXslRubberSmallLockReason/exportXls",c="/xslmes/mesXslRubberSmallLockReason/importExcel",m=e=>s.get({url:"/xslmes/mesXslRubberSmallLockReason/list",params:e}),u=()=>s.get({url:"/xslmes/mesXslRubberSmallLockReason/nextReasonCode"},{successMessageMode:"none"}),b=e=>s.get({url:"/xslmes/mesXslRubberSmallLockReason/optionsByBarcodeType",params:e},{successMessageMode:"none"}),R=(e,o)=>s.delete({url:"/xslmes/mesXslRubberSmallLockReason/delete",params:e},{joinParamsToUrl:!0}).then(()=>{o()}),d=(e,o)=>{a({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>s.delete({url:"/xslmes/mesXslRubberSmallLockReason/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{o()})})},x=(e,o)=>{const l=o?"/xslmes/mesXslRubberSmallLockReason/edit":"/xslmes/mesXslRubberSmallLockReason/add";return s.post({url:l,params:e})};export{r as a,d as b,R as d,u as f,c as g,m as l,b as o,x as s};
|