You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

p__Activity__List__index.2bd97a52.async.js 13KB

6 月之前
1
  1. "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[313],{64317:function(ue,V,e){var v=e(1413),d=e(45987),i=e(22270),F=e(62435),A=e(66758),J=e(16764),h=e(86074),Y=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],S=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],p=function(c,R){var w=c.fieldProps,u=c.children,s=c.params,P=c.proFieldProps,m=c.mode,L=c.valueEnum,Z=c.request,f=c.showSearch,x=c.options,n=(0,d.Z)(c,Y),r=(0,F.useContext)(A.Z);return(0,h.jsx)(J.Z,(0,v.Z)((0,v.Z)({valueEnum:(0,i.h)(L),request:Z,params:s,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,v.Z)({options:x,mode:m,showSearch:f,getPopupContainer:r.getPopupContainer},w),ref:R,proFieldProps:P},n),{},{children:u}))},I=F.forwardRef(function(t,c){var R=t.fieldProps,w=t.children,u=t.params,s=t.proFieldProps,P=t.mode,m=t.valueEnum,L=t.request,Z=t.options,f=(0,d.Z)(t,S),x=(0,v.Z)({options:Z,mode:P||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},R),n=(0,F.useContext)(A.Z);return(0,h.jsx)(J.Z,(0,v.Z)((0,v.Z)({valueEnum:(0,i.h)(m),request:L,params:u,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,v.Z)({getPopupContainer:n.getPopupContainer},x),ref:c,proFieldProps:s},f),{},{children:w}))}),b=F.forwardRef(p),g=I,U=b;U.SearchSelect=g,U.displayName="ProFormComponent",V.Z=U},5966:function(ue,V,e){var v=e(97685),d=e(1413),i=e(45987),F=e(21770),A=e(23323),J=e(55241),h=e(97435),Y=e(62435),S=e(16764),p=e(86074),I=["fieldProps","proFieldProps"],b=["fieldProps","proFieldProps"],g="text",U=function(u){var s=u.fieldProps,P=u.proFieldProps,m=(0,i.Z)(u,I);return(0,p.jsx)(S.Z,(0,d.Z)({valueType:g,fieldProps:s,filedConfig:{valueType:g},proFieldProps:P},m))},t=function(u){var s=(0,F.Z)(u.open||!1,{value:u.open,onChange:u.onOpenChange}),P=(0,v.Z)(s,2),m=P[0],L=P[1];return(0,p.jsx)(A.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(f){var x,n=f.getFieldValue(u.name||[]);return(0,p.jsx)(J.Z,(0,d.Z)((0,d.Z)({getPopupContainer:function(a){return a&&a.parentNode?a.parentNode:a},onOpenChange:function(a){return L(a)},content:(0,p.jsxs)("div",{style:{padding:"4px 0"},children:[(x=u.statusRender)===null||x===void 0?void 0:x.call(u,n),u.strengthText?(0,p.jsx)("div",{style:{marginTop:10},children:(0,p.jsx)("span",{children:u.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},u.popoverProps),{},{open:m,children:u.children}))}})},c=function(u){var s=u.fieldProps,P=u.proFieldProps,m=(0,i.Z)(u,b),L=(0,Y.useState)(!1),Z=(0,v.Z)(L,2),f=Z[0],x=Z[1];return s!=null&&s.statusRender&&m.name?(0,p.jsx)(t,{name:m.name,statusRender:s==null?void 0:s.statusRender,popoverProps:s==null?void 0:s.popoverProps,strengthText:s==null?void 0:s.strengthText,open:f,onOpenChange:x,children:(0,p.jsx)("div",{children:(0,p.jsx)(S.Z,(0,d.Z)({valueType:"password",fieldProps:(0,d.Z)((0,d.Z)({},(0,h.Z)(s,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(r){var a;s==null||(a=s.onBlur)===null||a===void 0||a.call(s,r),x(!1)},onClick:function(r){var a;s==null||(a=s.onClick)===null||a===void 0||a.call(s,r),x(!0)}}),proFieldProps:P,filedConfig:{valueType:g}},m))})}):(0,p.jsx)(S.Z,(0,d.Z)({valueType:"password",fieldProps:s,proFieldProps:P,filedConfig:{valueType:g}},m))},R=U;R.Password=c,R.displayName="ProFormComponent",V.Z=R},38326:function(ue,V,e){e.r(V),e.d(V,{default:function(){return a}});var v=e(5574),d=e.n(v),i=e(62435),F=e(59530),A=e(28459),J=e(15009),h=e.n(J),Y=e(99289),S=e.n(Y),p=e(67211),I=e(14726),b=e(68872),g=e(39680),U=e(55375),t=e(86074),c=function(l){var O=l.dispatch,K=l.openModel,T=l.getId,M=(0,i.useRef)(),z=(0,i.useState)([]),G=d()(z,2),H=G[0],E=G[1],Q=(0,i.useState)(0),q=d()(Q,2),W=q[0],oe=q[1],_=(0,i.useState)(1),ee=d()(_,2),k=ee[0],ae=ee[1],te=(0,i.useState)(10),se=d()(te,2),re=se[0],ie=se[1],de=function(C){T(C)};return(0,i.useEffect)(function(){K.openModal||M.current.reload()},[K.openModal]),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(A.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,t.jsx)(p.Z,{size:"small",bordered:!0,actionRef:M,dataSource:H,columns:[{title:"ID",dataIndex:"id",width:100,search:!1},{title:"\u5730\u5740",dataIndex:"address",width:240,search:!1},{title:"\u5730\u5740\u5206\u7C7B",dataIndex:"cate",valueType:"select",width:100,valueEnum:{\u83CA\u57CE\u4EBA\u624D:{text:"\u83CA\u57CE\u4EBA\u624D"},\u79FB\u52A8:{text:"\u79FB\u52A8"},\u6751\u9547\u94F6\u884C:{text:"\u6751\u9547\u94F6\u884C"},\u7535\u4FE1:{text:"\u7535\u4FE1"},\u8054\u901A:{text:"\u8054\u901A"}}},{title:"\u5BA1\u6838\u8D26\u53F7",dataIndex:"audit_mobile",ellipsis:!0,width:120,search:!1},{title:"\u5BA1\u6838\u4EBA",dataIndex:"contact_person",width:120,search:!1},{title:"\u64CD\u4F5C",width:100,key:"option",valueType:"option",fixed:"right",render:function(C,B,le){return[(0,t.jsx)(I.ZP,{type:"link",onClick:function(){de(B.id),O({type:"openModel/getOpenModal",payload:!0})},children:"\u7F16\u8F91"},"1"),(0,t.jsx)(I.ZP,{type:"link",onClick:function(){},children:"\u5220\u9664"},"2")]}}],rowKey:"id",pagination:{current:k,pageSize:re,showSizeChanger:!0,total:W,pageSizeOptions:[9,18,27,99],onChange:function(C,B){ae(C),ie(B)},onShowSizeChange:function(C,B){ae(C),ie(B)}},request:S()(h()().mark(function X(){var C,B=arguments;return h()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return C=B.length>0&&B[0]!==void 0?B[0]:{},y.abrupt("return",(0,g.P$W)({page:k,pagesize:re,sort:"id",sortby:"desc",keyword:C.name,cate:C.cate}).then(function(j){E(j.data.addresss),oe(j.data.total)}));case 2:case"end":return y.stop()}},X)})),headerTitle:"\u6D3B\u52A8\u95E8\u5E97",toolBarRender:function(){return[(0,t.jsx)(I.ZP,{type:"primary",onClick:function(){b.ZP.info("\u6570\u636E\u5BFC\u51FA\u9700\u8981\u65F6\u95F4\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85"),(0,g.gTc)().then(function(B){var le=U.VO+B.data.excel_url;window.open(le),b.ZP.info("\u6570\u636E\u5BFC\u51FA\u5B8C\u6BD5")})},children:"\u5BFC\u51FA\u6570\u636E"}),(0,t.jsx)(I.ZP,{type:"primary",onClick:function(){O({type:"openModel/getOpenModal",payload:!0})},children:"\u6DFB\u52A0\u6D3B\u52A8\u95E8\u5E97"})]}})})})},R=(0,F.connect)(function(o){var l=o.openModel;return{openModel:l}})(c),w=e(97269),u=e(5966),s=e(64317),P=e(17788),m=e(86250),L=e(42075),Z=e(71230),f=e(15746),x=function(l){var O=l.dispatch,K=l.dictModel,T=l.openModel,M=l.id,z=(0,i.useRef)(),G=(0,i.useState)(!1),H=d()(G,2),E=H[0],Q=H[1],q=(0,i.useState)(null),W=d()(q,2),oe=W[0],_=W[1],ee=(0,i.useState)(!1),k=d()(ee,2),ae=k[0],te=k[1],se=(0,i.useState)(""),re=d()(se,2),ie=re[0],de=re[1],X=(0,i.useState)(""),C=d()(X,2),B=C[0],le=C[1];return(0,i.useEffect)(function(){Q(T.openModal)},[T.openModal]),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(A.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,t.jsx)(P.Z,{open:E,title:M?"\u7F16\u8F91\u6D3B\u52A8\u5730\u5740":"\u6DFB\u52A0\u6D3B\u52A8\u5730\u5740",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){O({type:"openModel/getOpenModal",payload:!1})},children:(0,t.jsx)(w.A,{formRef:z,request:S()(h()().mark(function y(){var j;return h()().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(!M){$.next=8;break}return $.next=3,(0,g.S34)({id:M});case 3:return j=$.sent,_(j.data),$.abrupt("return",j.data);case 8:return $.abrupt("return",{address:"",store_name:"",lat:"",lng:"",contact_person:"",mobile:"",audit_mobile:"",communal:"",cate:""});case 9:case"end":return $.stop()}},y)})),submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(j,N){return(0,t.jsxs)(m.Z,{justify:"flex-end",children:[" ",(0,t.jsx)(L.Z,{children:N})]})},onReset:function(){_(null),O({type:"openModel/getOpenModal",payload:!1})}},onFinish:function(){var y=S()(h()().mark(function j(N){var $,ne;return h()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(console.log(N),!M){D.next=10;break}return N.id=M,D.next=5,(0,g.Zz2)(N);case 5:$=D.sent,b.ZP.success("\u63D0\u4EA4\u6210\u529F"),O({type:"openModel/getOpenModal",payload:!1}),D.next=15;break;case 10:return D.next=12,(0,g.Y8k)(N);case 12:ne=D.sent,b.ZP.success("\u63D0\u4EA4\u6210\u529F"),O({type:"openModel/getOpenModal",payload:!1});case 15:case"end":return D.stop()}},j)}));return function(j){return y.apply(this,arguments)}}(),children:(0,t.jsxs)(Z.Z,{gutter:[16,16],children:[(0,t.jsx)(f.Z,{span:24,children:(0,t.jsx)(Z.Z,{gutter:[16,16],children:(0,t.jsx)(f.Z,{span:8,children:(0,t.jsx)(u.Z,{label:"\u95E8\u5E97\u5730\u5740",name:"address",placeholder:"\u8BF7\u5728\u5730\u56FE\u4E0A\u9009\u62E9\u6216\u8F93\u5165\u95E8\u5E97\u5730\u5740",rules:[{required:!0,message:"\u8BF7\u5728\u5730\u56FE\u4E0A\u9009\u62E9\u6216\u8F93\u5165\u95E8\u5E97\u5730\u5740"}]})})})}),(0,t.jsx)(f.Z,{span:24,children:(0,t.jsx)(u.Z,{label:"\u95E8\u5E97\u540D",name:"store_name",placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97\u540D",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u95E8\u5E97\u540D"}]})}),(0,t.jsx)(f.Z,{span:12,children:(0,t.jsx)(u.Z,{label:"\u8054\u7CFB\u4EBA",name:"store_name",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA"}]})}),(0,t.jsx)(f.Z,{span:12,children:(0,t.jsx)(u.Z,{label:"\u8054\u7CFB\u7535\u8BDD",name:"mobile",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD"}]})}),(0,t.jsx)(f.Z,{span:12,children:(0,t.jsx)(u.Z,{label:"\u5BA1\u6838\u7535\u8BDD",name:"audit_mobile",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6838\u7535\u8BDD",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BA1\u6838\u7535\u8BDD"}]})}),(0,t.jsx)(f.Z,{span:12,children:(0,t.jsx)(u.Z,{label:"\u6240\u5C5E\u793E\u533A",name:"communal",placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5E\u793E\u533A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6240\u5C5E\u793E\u533A"}]})}),(0,t.jsx)(f.Z,{span:12,children:(0,t.jsx)(s.Z,{label:"\u5730\u5740\u5206\u7C7B",name:"cate",request:function(){var y=S()(h()().mark(function j(N){return h()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.abrupt("return",(0,g.m9q)({page:1,pagesize:100,keyword:N.keyWords}).then(function(ce){return ce.data.activity_address_cate.map(function(D){return{label:D,value:D}})}));case 1:case"end":return ne.stop()}},j)}));return function(j){return y.apply(this,arguments)}}(),placeholder:"\u8BF7\u641C\u7D22\u9009\u62E9\u5730\u5740\u5206\u7C7B"})})]})})})})})},n=(0,F.connect)(function(o){var l=o.dictModel,O=o.openModel;return{dictModel:l,openModel:O}})(x),r=function(l){var O=l.dispatch,K=l.openModel,T=(0,i.useState)(0),M=d()(T,2),z=M[0],G=M[1],H=function(Q){G(Q)};return(0,i.useEffect)(function(){K.openModal||G(0)},[K.openModal]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(A.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:[(0,t.jsx)(R,{getId:H}),(0,t.jsx)(n,{id:z})]})})},a=(0,F.connect)(function(o){var l=o.openModel;return{openModel:l}})(r)},86250:function(ue,V,e){e.d(V,{Z:function(){return x}});var v=e(62435),d=e(93967),i=e.n(d),F=e(98423),A=e(98065),J=e(53124),h=e(92030),Y=e(45503);const S=["wrap","nowrap","wrap-reverse"],p=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],I=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],b=(n,r)=>{const a=r.wrap===!0?"wrap":r.wrap;return{[`${n}-wrap-${a}`]:a&&S.includes(a)}},g=(n,r)=>{const a={};return I.forEach(o=>{a[`${n}-align-${o}`]=r.align===o}),a[`${n}-align-stretch`]=!r.align&&!!r.vertical,a},U=(n,r)=>{const a={};return p.forEach(o=>{a[`${n}-justify-${o}`]=r.justify===o}),a};function t(n,r){return i()(Object.assign(Object.assign(Object.assign({},b(n,r)),g(n,r)),U(n,r)))}var c=t;const R=n=>{const{componentCls:r}=n;return{[r]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},w=n=>{const{componentCls:r}=n;return{[r]:{"&-gap-small":{gap:n.flexGapSM},"&-gap-middle":{gap:n.flexGap},"&-gap-large":{gap:n.flexGapLG}}}},u=n=>{const{componentCls:r}=n,a={};return S.forEach(o=>{a[`${r}-wrap-${o}`]={flexWrap:o}}),a},s=n=>{const{componentCls:r}=n,a={};return I.forEach(o=>{a[`${r}-align-${o}`]={alignItems:o}}),a},P=n=>{const{componentCls:r}=n,a={};return p.forEach(o=>{a[`${r}-justify-${o}`]={justifyContent:o}}),a},m=()=>({});var L=(0,h.I$)("Flex",n=>{const{paddingXS:r,padding:a,paddingLG:o}=n,l=(0,Y.TS)(n,{flexGapSM:r,flexGap:a,flexGapLG:o});return[R(l),w(l),u(l),s(l),P(l)]},m,{resetStyle:!1}),Z=function(n,r){var a={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&r.indexOf(o)<0&&(a[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(n);l<o.length;l++)r.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(n,o[l])&&(a[o[l]]=n[o[l]]);return a},x=v.forwardRef((n,r)=>{const{prefixCls:a,rootClassName:o,className:l,style:O,flex:K,gap:T,children:M,vertical:z=!1,component:G="div"}=n,H=Z(n,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:E,direction:Q,getPrefixCls:q}=v.useContext(J.E_),W=q("flex",a),[oe,_,ee]=L(W),k=z!=null?z:E==null?void 0:E.vertical,ae=i()(l,o,E==null?void 0:E.className,W,_,ee,c(W,n),{[`${W}-rtl`]:Q==="rtl",[`${W}-gap-${T}`]:(0,A.n)(T),[`${W}-vertical`]:k}),te=Object.assign(Object.assign({},E==null?void 0:E.style),O);return K&&(te.flex=K),T&&!(0,A.n)(T)&&(te.gap=T),oe(v.createElement(G,Object.assign({ref:r,className:ae,style:te},(0,F.Z)(H,["justify","wrap","align"])),M))})}}]);