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