"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2540],{52:function(S,v,t){t.r(v);var f=t(54306),r=t.n(f),o=t(93236),E=t(92750),O=t(1045),p=t(90627),n=t(62086),D=p.Z.ShopOrderController.shopOrderBonus;v.default=function(i){var d=i.values,M=i.modalOpenState,c=i.onModalOpenState,A=(0,o.useState)(null),h=r()(A,2),l=h[0],x=h[1],P=(0,o.useState)(null),m=r()(P,2),j=m[0],C=m[1];(0,o.useEffect)(function(){D({order_id:d==null?void 0:d.id}).then(function(s){var a=s.data,e=s.success;e&&(C((a==null?void 0:a.items)||[]),x(a==null?void 0:a.config))}).catch(function(){})},[d]);var I=[{title:"\u8D26\u5355\u53F7",dataIndex:"order_no",search:!1},{title:"\u6295\u8D44\u4EBA",dataIndex:"shop",search:!1,render:function(a,e){var u,_;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{children:["\u7528\u6237\u540D\uFF1A",e==null||(u=e.shop)===null||u===void 0?void 0:u.username]}),(0,n.jsxs)("div",{children:["\u624B\u673A\u53F7\uFF1A",e==null||(_=e.shop)===null||_===void 0?void 0:_.mobile]}),(0,n.jsxs)("div",{children:["\u7B49\u7EA7\uFF1A",e==null?void 0:e.vip]})]})}},{title:"\u7C7B\u578B",dataIndex:"type",search:!1,render:function(a,e){return(l==null?void 0:l.scene[e==null?void 0:e.scene])+"-"+(l==null?void 0:l.type[e==null?void 0:e.type])}},{title:"\u91D1\u989D",dataIndex:"money",search:!1},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",search:!1}];return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(E.Z,{width:"800px",title:"\u5206\u7EA2",open:M,onOk:function(){c(!1)},onCancel:function(){c(!1)},children:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(O.Z,{rowKey:"id",columns:I,dataSource:j,pagination:!1})})})})}}}]);
