import{a as r}from"./index-n5dZU89t.js";function a(a){return r.get({url:"/api/order/query",params:a,showErrorMessage:!1,skipUnauthorizedHandler:!0})}function e(r,e){return t=this,n=null,o=function*(){const t=yield a({keyword:r,page:1,size:1,is_auto:0,captcha_key:e}),n=Array.isArray(null==t?void 0:t.records)?t.records:[];return n.find(a=>a.trade_no===r)||n[0]||null},new Promise((r,a)=>{var e=r=>{try{u(o.next(r))}catch(e){a(e)}},i=r=>{try{u(o.throw(r))}catch(e){a(e)}},u=a=>a.done?r(a.value):Promise.resolve(a.value).then(e,i);u((o=o.apply(t,n)).next())});var t,n,o}function t(a){return r.post({url:"/api/order/create",data:a,skipUnauthorizedHandler:!0})}function n(a){return r.get({url:"/api/order/admin/list",params:a})}function o(a,e){return r.post({url:`/api/order/admin/update/${a}`,data:e})}function i(a){return r.post({url:"/api/order/admin/delete",data:{id:a}})}function u(a){return r.post({url:"/api/order/admin/batch_operate",data:a})}function d(a){return r.post({url:`/api/order/admin/update/${a}`,data:{action:"resend_notify"}})}function s(a){return r.post({url:"/api/order/receipt/code",data:a})}function p(a){return r.post({url:"/api/order/confirm_receipt",data:a})}export{a,p as b,t as c,u as d,d as e,o as f,i as g,n as h,e as q,s};
