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