Files
houyi-admin/dist/src__pages__bill__withdraw__index.f67de527.async.js
PC-202306242200\Administrator 23dc139a31 first commit
2026-03-28 23:25:01 +08:00

2 lines
8.9 KiB
JavaScript

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[489],{17675:function(y,E,t){t.d(E,{Z:function(){return h}});var D=t(52319),m=t(93236),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},f=j,i=t(85651),_=function(O,C){return m.createElement(i.Z,(0,D.Z)({},O,{ref:C,icon:f}))},h=m.forwardRef(_)},52586:function(y,E,t){var D=t(88351),m=t(87841),j=t(93236),f=t(8263),i=t(62086),_=["fieldProps","proFieldProps"],h=function(O,C){var M=O.fieldProps,v=O.proFieldProps,o=(0,m.Z)(O,_);return(0,i.jsx)(f.Z,(0,D.Z)({ref:C,valueType:"textarea",fieldProps:M,proFieldProps:v},o))};E.Z=j.forwardRef(h)},61786:function(y,E,t){var D=t(88351),m=t(87841),j=t(93236),f=t(8263),i=t(62086),_=["fieldProps","proFieldProps"],h=["fieldProps","proFieldProps"],r="text",O=function(o){var F=o.fieldProps,x=o.proFieldProps,B=(0,m.Z)(o,_);return(0,i.jsx)(f.Z,(0,D.Z)({valueType:r,fieldProps:F,filedConfig:{valueType:r},proFieldProps:x},B))},C=function(o){var F=o.fieldProps,x=o.proFieldProps,B=(0,m.Z)(o,h);return(0,i.jsx)(f.Z,(0,D.Z)({valueType:"password",fieldProps:F,proFieldProps:x,filedConfig:{valueType:r}},B))},M=O;M.Password=C,M.displayName="ProFormComponent",E.Z=M},85968:function(y,E,t){var D=t(23674),m=t(62086),j=function(i){var _=(0,D.useModel)("@@initialState"),h=_.initialState,r=_.loading,O=_.error,C=_.refresh,M=_.setInitialState,v=h==null?void 0:h.authPermissionAction;if(!v)return(0,m.jsx)("span",{children:i.children});var o=v.indexOf(i.action);return o>=0?(0,m.jsx)("span",{children:i.children}):(0,m.jsx)(m.Fragment,{})};E.Z=j},24221:function(y,E,t){t.r(E);var D=t(28931),m=t(61786),j=t(52586),f=t(93236),i=t(62086);E.default=function(_){var h=_.values,r=_.modalOpenState,O=_.onModalOpenState,C=_.onSubmit,M=(0,f.useRef)();return(0,f.useEffect)(function(){var v;(v=M.current)===null||v===void 0||v.setFieldsValue(h)},[h]),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(D.Y,{title:"\u63D0\u73B0-\u9A73\u56DE",formRef:M,submitter:{searchConfig:{resetText:"\u91CD\u7F6E"},resetButtonProps:{onClick:function(){var o;(o=M.current)===null||o===void 0||o.resetFields()}}},initialValues:h,onFinish:C,open:r,onOpenChange:O,children:[(0,i.jsx)(m.Z,{hidden:!0,width:"md",name:"id"}),(0,i.jsx)(j.Z,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}],name:"note",label:"\u9A73\u56DE\u539F\u56E0",placeholder:"\u8BF7\u8F93\u5165\u539F\u56E0"})]})})}},42993:function(y,E,t){t.r(E);var D=t(52510),m=t.n(D),j=t(12342),f=t.n(j),i=t(25359),_=t.n(i),h=t(57213),r=t.n(h),O=t(49811),C=t.n(O),M=t(54306),v=t.n(M),o=t(93236),F=t(23674),x=t(11776),B=t(61385),W=t(14649),b=t(85594),N=t(23041),G=t(17675),J=t(50336),Q=t(87708),X=t(5726),k=t.n(X),q=t(89541),ee=t(89971),L=t(85968),te=t(24221),Z=t(90627),a=t(62086),ne=["type","defaultRender","formItemProps","fieldProps"],ae=["type","defaultRender","formItemProps","fieldProps"],g=Z.Z.WithdrawController,oe=g.withdrawItems,_e=g.withdrawFail,re=Z.Z.ShopController.shopItems;E.default=function(){var U,K=(0,o.useRef)(),le=(0,o.useState)(),$=v()(le,2),s=$[0],de=$[1],ie=(0,o.useState)(null),w=v()(ie,2),se=w[0],ue=w[1],me=(0,o.useState)([]),Y=v()(me,2),ve=Y[0],pe=Y[1],ce=(0,o.useState)(!1),V=v()(ce,2),he=V[0],S=V[1],Pe={id:""},Ee=(0,o.useState)(Pe),z=v()(Ee,2),H=z[0],fe=z[1],De=function(n){re({username:n}).then(function(e){var l,u=e.data,d=[];u==null||(l=u.data)===null||l===void 0||l.map(function(P){P.label="".concat(P.username," ").concat(P.mobile),d.push(P)}),pe(d)})},Oe=function(){var p=C()(_()().mark(function n(e){var l,u,d;return _()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,_e(r()({},e));case 2:l=c.sent,u=l.success,u&&((d=K.current)===null||d===void 0||d.reload(),S(!1));case 5:case"end":return c.stop()}},n)}));return function(e){return p.apply(this,arguments)}}(),Me=[{title:"\u8BA2\u5355\u53F7",dataIndex:"order_no",search:!1},{title:"\u6295\u8D44\u4EBA",dataIndex:"shop_id",renderFormItem:function(n,e,l){var u=e.type,d=e.defaultRender,P=e.formItemProps,c=e.fieldProps,I=f()(e,ne);return(0,a.jsx)(x.Z,r()(r()({},c),{},{allowClear:!0,showSearch:!0,placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",style:{width:"100%"},filterOption:!1,onSearch:function(R){R&&De(R)},fieldNames:{label:"label",value:"id"},options:ve}))},render:function(n,e){var l,u,d;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{children:e==null||(l=e.shop)===null||l===void 0?void 0:l.nickname}),(0,a.jsx)("div",{children:e==null||(u=e.shop)===null||u===void 0?void 0:u.username}),(0,a.jsx)("div",{children:e==null||(d=e.shop)===null||d===void 0?void 0:d.mobile})]})}},{title:"\u7C7B\u578B",dataIndex:"type",search:!1,render:function(n,e){return s==null?void 0:s.type[e.type]}},{title:"\u63D0\u73B0\u91D1\u989D",dataIndex:"money",search:!1},{title:"\u63D0\u73B0\u624B\u7EED\u8D39",dataIndex:"fee",search:!1},{title:"\u5F53\u524D\u4F59\u989D",dataIndex:"cur_money",search:!1},{title:"\u652F\u4ED8\u65B9\u5F0F",dataIndex:"pay_type",search:!1,render:function(n,e){return s==null?void 0:s.pay_type[e==null?void 0:e.pay_type]}},{title:"\u63D0\u73B0\u8D26\u53F7",dataIndex:"account",search:!1,render:function(n,e){var l,u,d,P,c;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{children:[(e==null||(l=e.account)===null||l===void 0?void 0:l.role)===1?"\u4E2A\u4EBA":"\u4F01\u4E1A"," \uFF1A",e==null||(u=e.account)===null||u===void 0?void 0:u.realname]}),(0,a.jsx)("div",{children:e==null||(d=e.account)===null||d===void 0?void 0:d.subname}),(0,a.jsx)("div",{children:e==null||(P=e.account)===null||P===void 0?void 0:P.num}),(0,a.jsx)("div",{children:e==null||(c=e.account)===null||c===void 0?void 0:c.idcard})]})}},{title:"\u72B6\u6001",dataIndex:"status",search:!0,renderFormItem:function(n,e,l){var u=e.type,d=e.defaultRender,P=e.formItemProps,c=e.fieldProps,I=f()(e,ae),T=[];for(var R in s==null?void 0:s.status)s!=null&&s.status.hasOwnProperty(R)&&T.push({label:s==null?void 0:s.status[R],key:R});return(0,a.jsx)(x.Z,r()(r()({},c),{},{allowClear:!0,defaultValue:"1",style:{width:"100%"},filterOption:!1,fieldNames:{label:"label",value:"key"},options:T}))},render:function(n,e){return s==null?void 0:s.status[e==null?void 0:e.status]}},{title:"\u5907\u6CE8",dataIndex:"note",search:!1},{title:"\u540E\u53F0\u5907\u6CE8",dataIndex:"admin_note",search:!1},{title:"\u4ED8\u6B3E\u65F6\u95F4",dataIndex:"pay_time",search:!1,render:function(n,e){return e!=null&&e.pay_time?k()((e==null?void 0:e.pay_time)*1e3).format("YYYY-MM-DD HH:mm:ss"):""}},(U={title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",search:!0,valueType:"dateRange"},m()(U,"search",{transform:function(n){return{start_date:n[0],end_date:n[1]}}}),m()(U,"render",function(n,e){return e==null?void 0:e.created_at}),U),{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(n,e){return(0,a.jsx)(B.Z,{children:(e==null?void 0:e.status)===1?(0,a.jsx)(L.Z,{action:"admin/withdraw/fail",children:(0,a.jsx)(W.ZP,{type:"text",danger:!0,onClick:function(){fe(r()(r()({},H),e)),S(!0)},children:"\u9A73\u56DE"})},"admin/withdraw/fail"):""})}}],Ie={name:"file",action:"https://shopapi.houyi2023.cn/admin/withdraw/import1",headers:{Authorization:"Bearer "+(0,ee.LP)()},onChange:function(n){if(n.file.status!=="uploading"&&console.log(n.file,n.fileList),n.file.status==="done"){var e;b.ZP.success("".concat(n.file.name," \u5BFC\u5165\u6210\u529F")),(e=K.current)===null||e===void 0||e.reload()}else n.file.status==="error"&&b.ZP.success("".concat(n.file.name," \u4E0A\u4F20\u5931\u8D25"))}};return(0,a.jsx)(J._z,{ghost:!0,children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(te.default,{values:H,modalOpenState:he,onModalOpenState:S,onSubmit:Oe}),(0,a.jsx)(Q.Z,{actionRef:K,rowKey:"id",search:{defaultCollapsed:!1},toolBarRender:function(){return[(0,a.jsx)(L.Z,{action:"admin/withdraw/export1",children:(0,a.jsx)(W.ZP,{type:"primary",onClick:function(){window.location.href=(0,q.ix)(se,"/admin/withdraw/export1")},children:"\u5BFC\u51FA\u63D0\u73B0\u7533\u8BF7"})},"admin/withdraw/export1"),(0,a.jsx)(L.Z,{action:"admin/withdraw/import1",children:(0,a.jsx)(N.Z,r()(r()({},Ie),{},{children:(0,a.jsx)(W.ZP,{icon:(0,a.jsx)(G.Z,{}),children:"\u5BFC\u5165\u63D0\u73B0\u7ED3\u679C"})}))},"admin/withdraw/import1")]},request:function(){var p=C()(_()().mark(function n(e,l,u){var d,P,c,I,T;return _()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return e!=null&&e.status||(e.status=1),ue(r()({token:""},e)),A.next=4,oe(r()(r()({},e),{},{sorter:l,filter:u}));case 4:return c=A.sent,I=c.data,T=c.success,de(I==null?void 0:I.config),A.abrupt("return",{data:(I==null||(d=I.items)===null||d===void 0?void 0:d.data)||[],total:I==null||(P=I.items)===null||P===void 0?void 0:P.total,success:T});case 9:case"end":return A.stop()}},n)}));return function(n,e,l){return p.apply(this,arguments)}}(),columns:Me})]})})}}}]);