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