"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6109],{3599:function(P,h,n){n.r(h);var E=n(48305),r=n.n(E),p=n(50959),d=n(94675),i=n(33917),v=n(92790),t=n(11527);h.default=function(m){var _=m.values,O=m.modalOpenState,o=m.onModalOpenState,D=(0,p.useState)(null),l=r()(D,2),a=l[0],u=l[1],c=(0,p.useState)(null),e=r()(c,2),j=e[0],A=e[1];(0,p.useEffect)(function(){_!=null&&_.id&&(0,v.QN)(_==null?void 0:_.id).then(function(f){var T=f.data;A(T||[])}).catch(function(){})},[_]);var M=[{title:"\u8D26\u5355\u53F7",dataIndex:"orderNo",search:!1},{title:"\u6295\u8D44\u4EBA",dataIndex:"shop",search:!1,render:function(T,s){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{children:["\u7528\u6237\u540D\uFF1A",s==null?void 0:s.username]}),(0,t.jsxs)("div",{children:["\u624B\u673A\u53F7\uFF1A",s==null?void 0:s.phone]}),(0,t.jsxs)("div",{children:["\u7B49\u7EA7\uFF1A",s==null?void 0:s.level]})]})}},{title:"\u7C7B\u578B",dataIndex:"typeValue",search:!1},{title:"\u91D1\u989D",dataIndex:"points",search:!1},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createTime",search:!1}];return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(d.Z,{width:"800px",title:"\u5206\u7EA2",open:O,onOk:function(){o(!1)},onCancel:function(){o(!1)},children:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(i.Z,{rowKey:"id",columns:M,dataSource:j,pagination:!1})})})})}},92790:function(P,h,n){n.d(h,{Lp:function(){return D},QN:function(){return O},aT:function(){return v},tX:function(){return m}});var E=n(90228),r=n.n(E),p=n(87999),d=n.n(p),i=n(7485);function v(a){return t.apply(this,arguments)}function t(){return t=d()(r()().mark(function a(u){return r()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/orders/page",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:u||{}}));case 1:case"end":return e.stop()}},a)})),t.apply(this,arguments)}function m(a){return _.apply(this,arguments)}function _(){return _=d()(r()().mark(function a(u){return r()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/orders/export",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:u||{},responseType:"blob"}));case 1:case"end":return e.stop()}},a)})),_.apply(this,arguments)}function O(a){return o.apply(this,arguments)}function o(){return o=d()(r()().mark(function a(u){return r()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/orders/orderIncomeList?id=".concat(u),{method:"GET",headers:{"Content-Type":"application/json;charset=UTF-8"}}));case 1:case"end":return e.stop()}},a)})),o.apply(this,arguments)}function D(a){return l.apply(this,arguments)}function l(){return l=d()(r()().mark(function a(u){return r()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/orders/orderRefund",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:u||{}}));case 1:case"end":return e.stop()}},a)})),l.apply(this,arguments)}}}]);
