import{ad as t}from"./index-9PRMimni.js";const r="",n="",a="";function u(e){return t.Get(`${n}/ships/roles`,{params:e})}function i(){return t.Post(`${r}/purchase/req/generate`)}function o(e){return t.Get(`${r}/purchase/req/detail/page`,{params:e})}function c(e){return t.Get(`${r}/purchase/req/${e}/`)}function p(e){return t[e.reqId?"Post":"Put"](`${r}/purchase/req/attach`,e)}function l(e){return t.Delete(`${r}/purchase/req/attach/${e}`)}function q(e){return t.Put(`${r}/purchase/req`,e)}function f(e){return t.Post(`${r}/approval/submit`,e)}function $(e){return t.Post(`${a}/approval/reject`,e)}function m(e){return t.Post(`${a}/approval/pass`,e)}function d(e){return t.Get(`${r}/equipment-tree/tree-node`,{params:e})}function h(e){return t.Get(`${r}/materialItem/cascade`,{params:e})}function P(e){return t.Post(`${r}/equipment-spare-part/get-for-purchase`,e)}function R(e){return t.Get(`${r}/materialItem/unit/list`,{params:e})}function g(e){return t.Get(`${r}/materialItem/page`,{params:e})}function I(e){return t.Post(`${r}/purchase/req/detail`,e)}function D(e){return t.Put(`${r}/purchase/req/detail`,e)}function G(e){return t.Put(`${r}/purchase/req/copy`,e)}function v(e){return t.Delete(`${r}/purchase/req/detail/${e}`)}export{d as a,h as b,g as c,P as d,R as e,D as f,u as g,I as h,c as i,l as j,p as k,v as l,o as m,G as n,q as o,m as p,i as q,$ as r,f as s};
