import{j as e,G as t,U as a,Q as s,s as o}from"./index-52f0fde8.js";const{isLoading:r,sendRequest:n}=function(){const r=e(!1);return{isLoading:r,sendRequest:function(e){let n=function(e){return e.header={Authorization:"Bearer "+sessionStorage.getItem("access_token"),"Content-Type":"application/json"},e}(e);return r.value=!0,t({title:"加载中"}),new Promise(((e,t)=>{a({...n,success:t=>{let a=200===(n=t).statusCode?(0==n.data.status&&o({title:n.data.msg,icon:"none"}),n.data):(o({title:"请求失败，请稍后重试",icon:"none"}),Promise.reject(n.data));var n;r.value=!1,s(),e(a)},fail:e=>{r.value=!1,s(),t(e)}})}))}}}();let i="https://service-platform.sixinyun.com",d=i+"/api/";const l=()=>i,u=e=>n({url:d+"H5/MianMiLogin",method:"POST",data:e}),v=e=>n({url:d+"v1/H5/InvoiceSave",method:"POST",data:e}),c=e=>n({url:d+"v1/H5/InvoiceGetList",method:"POST",data:e}),m=e=>n({url:d+"v1/H5/InvoiceGetDetail",method:"POST",data:e}),h=e=>n({url:d+"v1/H5/InvoiceGetHistory",method:"POST",data:e}),O=e=>n({url:d+"v1/H5/WorkOrderList",method:"POST",data:e}),S=e=>n({url:d+"v1/H5/WorkOrderSave",method:"POST",data:e}),P=e=>n({url:d+"v1/H5/GetSelfMsgList",method:"POST",data:e}),H=e=>n({url:d+"v1/H5/GetWorkOrderInfo",method:"POST",data:e}),T=e=>n({url:d+"v1/H5/InsertMsg",method:"POST",data:e}),g=e=>n({url:d+"v1/H5/UserChangeWorkOrder",method:"POST",data:e}),f=()=>d+"v1/UpFile";export{l as B,P as G,c as I,f as U,O as W,m as a,S as b,H as c,g as d,T as e,h as f,v as g,u as l};
