Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

p__Company__List__index.1dd5d489.async.js 31KB

1
  1. "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[941],{8214:function(ce,R,t){var l=t(1413),r=t(45987),n=t(62435),i=t(66758),f=t(92767),g=t(86074),s=["fieldProps","request","params","proFieldProps"],S=function(F,v){var b=F.fieldProps,U=F.request,c=F.params,x=F.proFieldProps,m=(0,r.Z)(F,s),O=(0,n.useContext)(i.Z);return(0,g.jsx)(f.Z,(0,l.Z)({valueType:"cascader",fieldProps:(0,l.Z)({getPopupContainer:O.getPopupContainer},b),ref:v,request:U,params:c,filedConfig:{customLightMode:!0},proFieldProps:x},m))};R.Z=n.forwardRef(S)},50335:function(ce,R,t){t.d(R,{Z:function(){return ye}});var l=t(1413),r=t(45987),n=t(62435),i=t(66758),f=t(92767),g=t(86074),s=["proFieldProps","fieldProps"],S="date",W=n.forwardRef(function(C,y){var A=C.proFieldProps,ee=C.fieldProps,te=(0,r.Z)(C,s),de=(0,n.useContext)(i.Z);return(0,g.jsx)(f.Z,(0,l.Z)({ref:y,valueType:S,fieldProps:(0,l.Z)({getPopupContainer:de.getPopupContainer},ee),proFieldProps:A,filedConfig:{valueType:S,customLightMode:!0}},te))}),F=W,v=["proFieldProps","fieldProps"],b="dateMonth",U=n.forwardRef(function(C,y){var A=C.proFieldProps,ee=C.fieldProps,te=(0,r.Z)(C,v),de=(0,n.useContext)(i.Z);return(0,g.jsx)(f.Z,(0,l.Z)({ref:y,valueType:b,fieldProps:(0,l.Z)({getPopupContainer:de.getPopupContainer},ee),proFieldProps:A,filedConfig:{valueType:b,customLightMode:!0}},te))}),c=U,x=["fieldProps"],m="dateQuarter",O=n.forwardRef(function(C,y){var A=C.fieldProps,ee=(0,r.Z)(C,x),te=(0,n.useContext)(i.Z);return(0,g.jsx)(f.Z,(0,l.Z)({ref:y,valueType:m,fieldProps:(0,l.Z)({getPopupContainer:te.getPopupContainer},A),filedConfig:{valueType:m,customLightMode:!0}},ee))}),B=O,E=["proFieldProps","fieldProps"],$="dateWeek",se=n.forwardRef(function(C,y){var A=C.proFieldProps,ee=C.fieldProps,te=(0,r.Z)(C,E),de=(0,n.useContext)(i.Z);return(0,g.jsx)(f.Z,(0,l.Z)({ref:y,valueType:$,fieldProps:(0,l.Z)({getPopupContainer:de.getPopupContainer},ee),proFieldProps:A,filedConfig:{valueType:$,customLightMode:!0}},te))}),e=se,fe=["proFieldProps","fieldProps"],pe="dateYear",he=n.forwardRef(function(C,y){var A=C.proFieldProps,ee=C.fieldProps,te=(0,r.Z)(C,fe),de=(0,n.useContext)(i.Z);return(0,g.jsx)(f.Z,(0,l.Z)({ref:y,valueType:pe,fieldProps:(0,l.Z)({getPopupContainer:de.getPopupContainer},ee),proFieldProps:A,filedConfig:{valueType:pe,customLightMode:!0}},te))}),ve=he,D=F;D.Week=e,D.Month=c,D.Quarter=B,D.Year=ve,D.displayName="ProFormComponent";var ye=D},86615:function(ce,R,t){var l=t(1413),r=t(45987),n=t(22270),i=t(78045),f=t(62435),g=t(28614),s=t(92767),S=t(86074),W=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],F=f.forwardRef(function(c,x){var m=c.fieldProps,O=c.options,B=c.radioType,E=c.layout,$=c.proFieldProps,se=c.valueEnum,e=(0,r.Z)(c,W);return(0,S.jsx)(s.Z,(0,l.Z)((0,l.Z)({valueType:B==="button"?"radioButton":"radio",ref:x,valueEnum:(0,n.h)(se,void 0)},e),{},{fieldProps:(0,l.Z)({options:O,layout:E},m),proFieldProps:$,filedConfig:{customLightMode:!0}}))}),v=f.forwardRef(function(c,x){var m=c.fieldProps,O=c.children;return(0,S.jsx)(i.ZP,(0,l.Z)((0,l.Z)({},m),{},{ref:x,children:O}))}),b=(0,g.G)(v,{valuePropName:"checked",ignoreWidth:!0}),U=b;U.Group=F,U.Button=i.ZP.Button,U.displayName="ProFormComponent",R.Z=U},64317:function(ce,R,t){var l=t(1413),r=t(45987),n=t(22270),i=t(62435),f=t(66758),g=t(92767),s=t(86074),S=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],W=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],F=function(m,O){var B=m.fieldProps,E=m.children,$=m.params,se=m.proFieldProps,e=m.mode,fe=m.valueEnum,pe=m.request,he=m.showSearch,ve=m.options,D=(0,r.Z)(m,S),ye=(0,i.useContext)(f.Z);return(0,s.jsx)(g.Z,(0,l.Z)((0,l.Z)({valueEnum:(0,n.h)(fe),request:pe,params:$,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,l.Z)({options:ve,mode:e,showSearch:he,getPopupContainer:ye.getPopupContainer},B),ref:O,proFieldProps:se},D),{},{children:E}))},v=i.forwardRef(function(x,m){var O=x.fieldProps,B=x.children,E=x.params,$=x.proFieldProps,se=x.mode,e=x.valueEnum,fe=x.request,pe=x.options,he=(0,r.Z)(x,W),ve=(0,l.Z)({options:pe,mode:se||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},O),D=(0,i.useContext)(f.Z);return(0,s.jsx)(g.Z,(0,l.Z)((0,l.Z)({valueEnum:(0,n.h)(e),request:fe,params:E,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,l.Z)({getPopupContainer:D.getPopupContainer},ve),ref:m,proFieldProps:$},he),{},{children:B}))}),b=i.forwardRef(F),U=v,c=b;c.SearchSelect=U,c.displayName="ProFormComponent",R.Z=c},3601:function(ce,R,t){var l=t(5574),r=t.n(l),n=t(62435),i=t(86074),f=function(s){var S=s.getLoc,W=s.lat,F=s.lng,v=(0,n.useState)(""),b=r()(v,2),U=b[0],c=b[1],x=!0;return(0,n.useEffect)(function(){c("https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=MPBBZ-HUICZ-EGRXB-7AHZI-R4GQZ-QWBSO&referer=myapp"),W&&F&&c("https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=MPBBZ-HUICZ-EGRXB-7AHZI-R4GQZ-QWBSO&referer=myapp"+"&coord=".concat(W,",").concat(F));var m=function(B){x&&B.data&&B.data.module==="locationPicker"&&S(B.data)};return window.addEventListener("message",m),function(){window.removeEventListener("message",m),x=!1}},[]),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,i.jsx)("iframe",{id:"mapPage",width:"100%",height:"800",frameborder:0,src:U})})})};R.Z=f},67562:function(ce,R,t){var l=t(5574),r=t.n(l),n=t(71167),i=t.n(n),f=t(40190),g=t(62435),s=t(86074),S=function(F){var v=F.defaultValue,b=F.placeholder,U=F.onChange,c=(0,g.useState)(v),x=r()(c,2),m=x[0],O=x[1],B=function($){O($),U($)};return(0,g.useEffect)(function(){if(v){var E=v.replace(/<[^>]*>/g,"");B(E?v:"")}},[v]),(0,s.jsx)("div",{children:(0,s.jsx)(i(),{bounds:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{align:[]}],["clean"],["link","image","video"]]},value:m,onChange:B,theme:"snow",placeholder:b})})};R.Z=S},67119:function(ce,R,t){var l=t(59530),r=t(55375),n=t(68872),i=t(32443),f=t(86074),g=function(S){var W=S.onUploadComplete,F=S.uploadTxt,v=S.image_type,b=S.form_name,U=S.image_length,c=S.multiple,x=function(O){W&&W(O)};return(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(i.Z,{label:F,name:b,icon:null,title:F,fieldProps:{maxCount:U,multiple:c,fileList:[],listType:"picture-card",showUploadList:!1,customRequest:function(O){var B=new FormData;B.append("image",O.file),console.log(B),(0,l.request)(r.FH+"/common/image/upload?imgtype="+v,{method:"post",data:B,Headers:{Authorization:sessionStorage.getItem("token"),"X-Requested-With":null}}).then(function(E){x(E.data.filename)}).catch(function(E){console.log(E),n.ZP.error("\u4E0A\u4F20\u5931\u8D25")})}}})})};R.Z=g},28582:function(ce,R,t){t.r(R),t.d(R,{default:function(){return ot}});var l=t(5574),r=t.n(l),n=t(62435),i=t(59530),f=t(28459),g=t(15009),s=t.n(g),S=t(97857),W=t.n(S),F=t(99289),v=t.n(F),b=t(67211),U=t(45987),c=t(1413),x=t(80882),m=t(89705),O=t(86413),B=t(85418),E=t(14726),$=t(93967),se=t.n($),e=t(86074),fe=["key","name"],pe=function(u){var T=u.children,L=u.menus,z=u.onSelect,I=u.className,G=u.style,w=(0,n.useContext)(f.ZP.ConfigContext),ae=w.getPrefixCls,ne=ae("pro-table-dropdown"),re=(0,O.Q)({onClick:function(J){return z&&z(J.key)},items:L==null?void 0:L.map(function(Q){return{label:Q.name,key:Q.key}})});return(0,e.jsx)(B.Z,(0,c.Z)((0,c.Z)({},re),{},{className:se()(ne,I),children:(0,e.jsxs)(E.ZP,{style:G,children:[T," ",(0,e.jsx)(x.Z,{})]})}))},he=function(u){var T=u.className,L=u.style,z=u.onSelect,I=u.menus,G=I===void 0?[]:I,w=u.children,ae=(0,n.useContext)(f.ZP.ConfigContext),ne=ae.getPrefixCls,re=ne("pro-table-dropdown"),Q=(0,O.Q)({onClick:function(ue){z==null||z(ue.key)},items:G.map(function(J){var ue=J.key,Z=J.name,oe=(0,U.Z)(J,fe);return(0,c.Z)((0,c.Z)({key:ue},oe),{},{title:oe.title,label:Z})})});return(0,e.jsx)(B.Z,(0,c.Z)((0,c.Z)({},Q),{},{className:se()(re,T),children:(0,e.jsx)("a",{style:L,children:w||(0,e.jsx)(m.Z,{})})}))};he.Button=pe;var ve=he,D=t(98163),ye=t(34041),C=t(68872),y=t(39680),A=t(55375),ee=function(u){var T=u.dispatch,L=u.openModel,z=u.getId,I=(0,n.useRef)(),G=(0,n.useState)([]),w=r()(G,2),ae=w[0],ne=w[1],re=(0,n.useState)(0),Q=r()(re,2),J=Q[0],ue=Q[1],Z=(0,n.useState)(1),oe=r()(Z,2),Me=oe[0],ge=oe[1],De=(0,n.useState)(10),Pe=r()(De,2),Ee=Pe[0],me=Pe[1],Ce=function(P){z(P)};return(0,n.useEffect)(function(){L.openModal||I.current.reload()},[L.openModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(f.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,e.jsx)(b.Z,{size:"small",bordered:!0,scroll:{x:1300},actionRef:I,dataSource:ae,columns:[{title:"ID",dataIndex:"id",width:100,fixed:"left"},{title:"\u4F01\u4E1A\u540D\u79F0",dataIndex:"full_name",width:240},{title:"\u6765\u6E90",dataIndex:"origin_text",search:!1,width:100},{title:"\u767B\u5F55\u6B21\u6570",dataIndex:"login_count",search:!1,width:100},{title:"\u70B9\u51FB\u6B21\u6570",dataIndex:"click_count",search:!1,width:100},{title:"\u4F1A\u5458\u7C7B\u578B",dataIndex:"member_type",width:100,hidden:!0,valueType:"select",valueEnum:{0:{text:"\u5168\u90E8"},1:{text:"\u8BD5\u7528\u7533\u8BF7\u4E2D"},2:{text:"\u8BD5\u7528\u6B63\u5F0F"},3:{text:"\u666E\u901A\u7533\u8BF7\u4E2D"},4:{text:"\u666E\u901A\u6B63\u5F0F"},5:{text:"VIP\u7533\u8BF7\u4E2D"},6:{text:"VIP\u6B63\u5F0F"}}},{title:"\u4F1A\u5458\u7C7B\u578B",dataIndex:"member_type_text",width:100,search:!1,render:function(P,d){return(0,e.jsx)(e.Fragment,{children:d.member_type_text&&(0,e.jsx)(E.ZP,{type:"primary",size:"small",onClick:function(){sessionStorage.setItem("vip_company_info",JSON.stringify(d)),i.history.push({pathname:"/company/vip"})},children:d.member_type_text})})},valueType:"select",valueEnum:{0:{text:"\u5168\u90E8"},1:{text:"\u8BD5\u7528\u7533\u8BF7\u4E2D"},2:{text:"\u8BD5\u7528\u6B63\u5F0F"},3:{text:"\u666E\u901A\u7533\u8BF7\u4E2D"},4:{text:"\u666E\u901A\u6B63\u5F0F"},5:{text:"VIP\u7533\u8BF7\u4E2D"},6:{text:"VIP\u6B63\u5F0F"}}},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"start_date",search:!1,width:140},{title:"\u5230\u671F\u65F6\u95F4",dataIndex:"end_date",search:!1,width:140},{title:"\u5269\u4F59\u70B9\u6570",dataIndex:"code",search:!1,width:100},{title:"\u4F1A\u5458\u72B6\u6001",dataIndex:"member_status",width:100,hidden:!0,valueType:"select",valueEnum:{0:{text:"\u5168\u90E8"},1:{text:"\u5F85\u5BA1"},2:{text:"\u6B63\u5E38"},3:{text:"\u5230\u671F"},4:{text:"\u63A8\u8350"}}},{title:"\u72B6\u6001",dataIndex:"status",hidden:!0,valueType:"select",valueEnum:{0:{text:"\u5168\u90E8"},1:{text:"\u5F00\u901A"},2:{text:"\u5173\u95ED"}}},{title:"\u4F1A\u5458\u72B6\u6001",dataIndex:"member_status_text",width:120,search:!1,valueType:"select",valueEnum:{0:{text:"\u5168\u90E8"},1:{text:"\u5F85\u5BA1"},2:{text:"\u6B63\u5E38"},3:{text:"\u5230\u671F"},4:{text:"\u63A8\u8350"}}},{title:"\u4F01\u4E1A\u7167\u7247",dataIndex:"photo",search:!1,width:100,render:function(P,d){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(D.Z,{src:"".concat(A.VO+d.photo),width:40,height:40})})}},{title:"\u7167\u7247\u5BA1\u6838",dataIndex:"photo_status_text",search:!1,width:120,render:function(P,d){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(ye.Z,{size:"small",style:{width:100},value:d.photo_status_text,options:[{label:"\u5F85\u5BA1",value:1},{label:"\u901A\u8FC7",value:2},{label:"\u4E0D\u901A\u8FC7",value:3}],onChange:function(){var N=v()(s()().mark(function j(M){var ie,le;return s()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.next=2,(0,y.vNO)({id:d.id});case 2:return ie=k.sent,k.next=5,(0,y.j1$)(W()(W()({},ie.data),{},{photo_status:M}));case 5:le=k.sent,I.current.reload();case 7:case"end":return k.stop()}},j)}));return function(j){return N.apply(this,arguments)}}()})})}},{title:"\u8425\u4E1A\u6267\u7167",dataIndex:"license_path",search:!1,width:120,render:function(P,d){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(D.Z,{src:"".concat(A.VO).concat(d.license_path),width:40,height:40})})}},{title:"\u8425\u4E1A\u6267\u7167\u5BA1\u6838",dataIndex:"license_status_text",search:!1,width:120,render:function(P,d){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(ye.Z,{size:"small",style:{width:100},value:d.license_status_text,options:[{label:"\u5F85\u5BA1",value:1},{label:"\u901A\u8FC7",value:2},{label:"\u4E0D\u901A\u8FC7",value:3}],onChange:function(){var N=v()(s()().mark(function j(M){var ie,le;return s()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.next=2,(0,y.vNO)({id:d.id});case 2:return ie=k.sent,k.next=5,(0,y.j1$)(W()(W()({},ie.data),{},{license_status:M}));case 5:le=k.sent,I.current.reload();case 7:case"end":return k.stop()}},j)}));return function(j){return N.apply(this,arguments)}}()})})}},{title:"\u767B\u5F55\u8D26\u53F7",dataIndex:"login_name",width:200},{title:"\u64CD\u4F5C",width:300,key:"option",valueType:"option",fixed:"right",render:function(P,d,N){return[(0,e.jsx)(E.ZP,{type:"link",onClick:function(){Ce(d.id),T({type:"openModel/getOpenModal",payload:!0})},children:"\u7F16\u8F91"},"1"),(0,e.jsx)(E.ZP,{type:"link",onClick:function(){(0,y.vNO)({id:d.id}).then(function(M){sessionStorage.setItem("company_info",JSON.stringify(M.data)),i.history.push({pathname:"/company/department"})})},children:"\u67E5\u770B\u90E8\u95E8"},"2"),(0,e.jsx)(ve,{menus:[{name:"\u67E5\u770B\u804C\u4F4D",key:"3",onClick:function(){(0,y.vNO)({id:d.id}).then(function(M){sessionStorage.setItem("post_company_info",JSON.stringify(M.data)),i.history.push({pathname:"/company/post"})})}},{name:"\u5B50\u8D26\u53F7\u89E3\u7ED1",key:"4",onClick:function(){Ce(d.id),T({type:"openModel/getOpenBindModal",payload:!0})}}]},"actionGroup")]}}],rowKey:"id",pagination:{current:Me,pageSize:Ee,showSizeChanger:!0,total:J,pageSizeOptions:[9,18,27,99],onChange:function(P,d){ge(P),me(d)},onShowSizeChange:function(P,d){ge(P),me(d)}},request:v()(s()().mark(function K(){var P,d=arguments;return s()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return P=d.length>0&&d[0]!==void 0?d[0]:{},j.abrupt("return",(0,y.m_v)({page:Me,pagesize:Ee,sort:"id",sortby:"desc",id:P.id,keyword:P.full_name,login_name:P.login_name,member_type:P.member_type,member_status:P.member_status,status:P.status}).then(function(M){ne(M.data.list),ue(M.data.total)}));case 2:case"end":return j.stop()}},K)})),headerTitle:"\u4F01\u4E1A\u5217\u8868",toolBarRender:function(){return[(0,e.jsx)(E.ZP,{type:"primary",onClick:function(){C.ZP.info("\u6570\u636E\u5BFC\u51FA\u9700\u8981\u65F6\u95F4\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85"),(0,y.YFK)().then(function(d){var N=A.VO+d.data.excel_url;window.open(N),C.ZP.info("\u6570\u636E\u5BFC\u51FA\u5B8C\u6BD5")})},children:"\u5BFC\u51FA\u6570\u636E"}),(0,e.jsx)(E.ZP,{type:"primary",onClick:function(){T({type:"openModel/getOpenModal",payload:!0})},children:"\u6DFB\u52A0\u4F01\u4E1A"})]}})})})},te=(0,i.connect)(function(V){var u=V.openModel;return{openModel:u}})(ee),de=t(19632),Te=t.n(de),Ze=t(45029),Be=t(88245),X=t(5966),ze=t(50335),Ve=t(64317),Le=t(8214),$e=t(19109),Ge=t(97462),Re=t(86615),We=t(17788),xe=t(71230),p=t(15746),Qe=t(23323),Ye=t(72269),He=t(5251),Xe=t(3601),Je=t(67562),je=t(67119),qe={label:"name",value:"id",children:"children"},Ie={label:"name",value:"id",children:"children"},et=function(u){var T=u.dispatch,L=u.dictModel,z=u.openModel,I=u.id,G=(0,n.useRef)(),w=(0,n.useRef)([]),ae=(0,n.useState)(!1),ne=r()(ae,2),re=ne[0],Q=ne[1],J=(0,n.useState)(null),ue=r()(J,2),Z=ue[0],oe=ue[1],Me=(0,n.useState)(""),ge=r()(Me,2),De=ge[0],Pe=ge[1],Ee=(0,n.useState)(!1),me=r()(Ee,2),Ce=me[0],K=me[1],P=(0,n.useState)(""),d=r()(P,2),N=d[0],j=d[1],M=(0,n.useState)(""),ie=r()(M,2),le=ie[0],Fe=ie[1],k=(0,n.useState)(""),be=r()(k,2),_e=be[0],lt=be[1],Ue=function(o){lt(o)},st=(0,n.useState)(""),we=r()(st,2),Se=we[0],ut=we[1],Ke=function(o){ut(o)},it=(0,n.useState)([]),ke=r()(it,2),Y=ke[0],Ae=ke[1],Ne=function(o){Ae([].concat(Te()(Y),[{photo:o}]))};return(0,n.useEffect)(function(){T({type:"dictModel/getList",payload:{code:2e3,type:"setClassificationList"}}),T({type:"dictModel/getList",payload:{code:2009,type:"setAreaList"}}),T({type:"dictModel/getList",payload:{code:2002,type:"setNatureList"}}),T({type:"dictModel/getList",payload:{code:2003,type:"setScaleList"}}),T({type:"dictModel/getList",payload:{code:2027,type:"setIndustryPostList"}})},[]),(0,n.useEffect)(function(){Q(z.openModal)},[z.openModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(f.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,e.jsx)(We.Z,{open:re,title:I?"\u7F16\u8F91\u4F01\u4E1A":"\u6DFB\u52A0\u4F01\u4E1A",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){T({type:"openModel/getOpenModal",payload:!1})},afterOpenChange:function(o){o&&I?(0,y.vNO)({id:I}).then(function(a){var q;w==null||(q=w.current)===null||q===void 0||q.forEach(function(h){var Oe;a.data.nature_arr=[a.data.nature_text],a.data.scale_arr=[a.data.scale_text],a.data.location_arr=[a.data.province?a.data.province:0,a.data.city?a.data.city:0,a.data.district?a.data.district:0,a.data.street?a.data.street:0],Ae(a.data.company_photos),h==null||(Oe=h.current)===null||Oe===void 0||Oe.setFieldsValue(a.data)}),oe(a.data)}):oe(null)},children:(0,e.jsxs)(Ze.L0,{formMapRef:w,formRef:G,onFinish:function(){var _=v()(s()().mark(function o(a){var q,h;return s()().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:if(console.log(a),a.province=a.location_arr[0]?a.location_arr[0]:0,a.city=a.location_arr[1]?a.location_arr[1]:0,a.district=a.location_arr[2]?a.location_arr[2]:0,a.street=a.location_arr[3]?a.location_arr[3]:0,delete a.location_arr,a.photo=_e||"",a.license_path=Se||"",a.company_photos=Y||[],a.status=1,console.log(a),!Z){H.next=24;break}return a.id=Z.id,a.nature=Z.nature?Z.nature:0,a.scale=Z.scale?Z.scale:0,delete a.nature_arr,delete a.scale_arr,H.next=19,(0,y.XE3)(a);case 19:q=H.sent,C.ZP.success("\u63D0\u4EA4\u6210\u529F"),T({type:"openModel/getOpenModal",payload:!1}),H.next=33;break;case 24:return a.nature=a.nature_arr.length>0?a.nature_arr[a.nature_arr.length-1]:0,a.scale=a.scale_arr.length>0?a.scale_arr[a.scale_arr.length-1]:0,delete a.nature_arr,delete a.scale_arr,H.next=30,(0,y.lQv)(a);case 30:h=H.sent,C.ZP.success("\u63D0\u4EA4\u6210\u529F"),T({type:"openModel/getOpenModal",payload:!1});case 33:return H.abrupt("return",!0);case 34:case"end":return H.stop()}},o)}));return function(o){return _.apply(this,arguments)}}(),children:[(0,e.jsx)(Ze.L0.StepForm,{title:"\u57FA\u672C\u4FE1\u606F",onFinish:function(){var _=v()(s()().mark(function o(a){return s()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",!0);case 1:case"end":return h.stop()}},o)}));return function(o){return _.apply(this,arguments)}}(),children:(0,e.jsx)(Be.Z,{ghost:!0,style:{minWidth:800,maxWidth:"100%"},children:(0,e.jsxs)(xe.Z,{gutter:[16,16],children:[(0,e.jsx)(p.Z,{span:8,children:(0,e.jsx)(X.Z,{label:"\u4F01\u4E1A\u540D\u79F0",name:"full_name",placeholder:"\u8BF7\u8F93\u5165\u4F01\u4E1A\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F01\u4E1A\u540D\u79F0"}]})}),(0,e.jsx)(p.Z,{span:8,children:(0,e.jsx)(X.Z,{label:"\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801",name:"registration_number",placeholder:"\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801"})}),(0,e.jsx)(p.Z,{span:8,children:(0,e.jsx)(ze.Z,{width:"lg",name:"establishment_date",label:"\u6210\u7ACB\u65E5\u671F",placeholder:"\u8BF7\u9009\u62E9\u6210\u7ACB\u65E5\u671F",fieldProps:{disabledDate:He.Y},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6210\u7ACB\u65E5\u671F"}]})}),(0,e.jsx)(p.Z,{span:8,children:(0,e.jsx)(X.Z,{label:"\u8054\u7CFB\u4EBA",name:"contact",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA"})}),(0,e.jsx)(p.Z,{span:8,children:(0,e.jsx)(X.Z,{label:"\u8054\u7CFB\u56FA\u8BDD",name:"phone",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD"}]})}),(0,e.jsx)(p.Z,{span:8,children:(0,e.jsx)(X.Z,{label:"\u624B\u673A\u53F7",name:"mobile",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7"}]})}),(0,e.jsx)(p.Z,{span:8,children:(0,e.jsx)(X.Z,{label:"\u8054\u7CFB\u90AE\u7BB1",name:"email",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u90AE\u7BB1",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8054\u7CFB\u90AE\u7BB1"}]})}),(0,e.jsx)(p.Z,{span:8,children:(0,e.jsx)(X.Z,{label:"\u4F20\u771F",name:"fax",placeholder:"\u8BF7\u8F93\u5165\u4F20\u771F"})}),(0,e.jsx)(p.Z,{span:8,children:(0,e.jsx)(X.Z,{label:"\u5B98\u7F51",name:"website",placeholder:"\u8BF7\u8F93\u5165\u5B98\u7F51"})}),(0,e.jsx)(p.Z,{span:8,children:(0,e.jsx)(Ve.Z,{label:"\u6240\u5C5E\u884C\u4E1A",name:"industry",fieldProps:{fieldNames:qe,options:L.industryPostList},placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u884C\u4E1A"})}),(0,e.jsx)(p.Z,{span:8,children:(0,e.jsx)(Le.Z,{label:"\u4F01\u4E1A\u6027\u8D28",name:"nature_arr",fieldProps:{fieldNames:Ie,options:L.natureList,changeOnSelect:!0},placeholder:"\u8BF7\u9009\u62E9\u4F01\u4E1A\u6027\u8D28"})}),(0,e.jsx)(p.Z,{span:8,children:(0,e.jsx)(Le.Z,{label:"\u4F01\u4E1A\u89C4\u6A21",name:"scale_arr",fieldProps:{fieldNames:Ie,options:L.scaleList,changeOnSelect:!0},placeholder:"\u8BF7\u9009\u62E9\u4F01\u4E1A\u89C4\u6A21"})}),(0,e.jsx)(p.Z,{span:8,children:(0,e.jsx)(Le.Z,{label:"\u4F01\u4E1A\u6240\u5728\u5730\u533A",name:"location_arr",fieldProps:{fieldNames:Ie,options:L.areaList,changeOnSelect:!0},placeholder:"\u4F01\u4E1A\u6240\u5728\u5730\u533A"})})]})})}),(0,e.jsx)(Ze.L0.StepForm,{title:"\u4F01\u4E1A\u7B80\u4ECB",onFinish:function(){var _=v()(s()().mark(function o(a){return s()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",!0);case 1:case"end":return h.stop()}},o)}));return function(o){return _.apply(this,arguments)}}(),children:(0,e.jsx)(Be.Z,{ghost:!0,style:{minWidth:800,maxWidth:"100%"},children:(0,e.jsx)(xe.Z,{gutter:[16,16],children:(0,e.jsx)(p.Z,{span:24,children:(0,e.jsx)(Qe.Z.Item,{name:"introduction",label:"\u4F01\u4E1A\u7B80\u4ECB",rules:[{required:!0}],children:(0,e.jsx)($e.i$,{children:function(){return(0,e.jsx)(Ge.Z,{name:["introduction"],children:function(a,q){var h=a.introduction;return(0,e.jsx)(Je.Z,{placeholder:"\u8BF7\u8F93\u5165\u4F01\u4E1A\u7B80\u4ECB",defaultValue:h,onChange:function(H){Pe(H),q.formRef.current.setFieldsValue({introduction:H})}})}})}})})})})})}),(0,e.jsx)(Ze.L0.StepForm,{title:"\u4F01\u4E1A\u5730\u5740",onFinish:function(){var _=v()(s()().mark(function o(a){return s()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",!0);case 1:case"end":return h.stop()}},o)}));return function(o){return _.apply(this,arguments)}}(),children:(0,e.jsx)(Be.Z,{ghost:!0,style:{minWidth:800,maxWidth:"100%"},children:(0,e.jsxs)(xe.Z,{gutter:[16,16],children:[(0,e.jsx)(p.Z,{span:24,children:(0,e.jsx)(Ye.Z,{checked:Ce,checkedChildren:"\u5730\u56FE\u5DF2\u663E\u793A",unCheckedChildren:"\u5730\u56FE\u5DF2\u5173\u95ED",onChange:function(o){K(o)}})}),(0,e.jsx)(p.Z,{span:8,children:(0,e.jsx)(X.Z,{label:"\u7ECF\u5EA6",name:"longitude",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)(p.Z,{span:8,children:(0,e.jsx)(X.Z,{label:"\u7EAC\u5EA6",name:"latitude",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)(p.Z,{span:8,children:(0,e.jsx)(X.Z,{label:"\u8BE6\u7EC6\u5730\u5740",name:"address",placeholder:"\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"}]})}),Ce&&(0,e.jsx)(p.Z,{span:24,children:(0,e.jsx)(Xe.Z,{lat:N,lng:le,getLoc:function(o){G.current.setFieldsValue({latitude:o.latlng.lat,longitude:o.latlng.lng,address:o.poiaddress}),j(o.latlng.lat),Fe(o.latlng.lng),K(!1)}})})]})})}),(0,e.jsx)(Ze.L0.StepForm,{title:"\u76F8\u5173\u56FE\u7247",onFinish:function(){var _=v()(s()().mark(function o(a){return s()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",!0);case 1:case"end":return h.stop()}},o)}));return function(o){return _.apply(this,arguments)}}(),children:(0,e.jsxs)(Be.Z,{ghost:!0,style:{minWidth:800,maxWidth:"100%"},children:[(0,e.jsxs)(xe.Z,{gutter:[16,16],children:[Z?(0,e.jsx)(p.Z,{span:6,children:(0,e.jsx)(je.Z,{multiple:!1,form_name:"photo",image_length:1,uploadTxt:"\u4E0A\u4F20\u4F01\u4E1A\u7167\u7247",image_type:3,onUploadComplete:Ue})}):(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(p.Z,{span:6,children:(0,e.jsx)(je.Z,{multiple:!1,form_name:"photo",image_length:1,uploadTxt:"\u4E0A\u4F20\u4F01\u4E1A\u7167\u7247",image_type:3,onUploadComplete:Ue})})}),(0,e.jsx)(p.Z,{span:8,children:(0,e.jsx)(Re.Z.Group,{name:"photo_status",label:"\u4F01\u4E1A\u7167\u7247\u5BA1\u6838\u72B6\u6001",radioType:"button",fieldProps:{buttonStyle:"solid"},options:[{label:"\u5F85\u5BA1",value:1},{label:"\u901A\u8FC7",value:2},{label:"\u4E0D\u901A\u8FC7",value:3}]})}),Z?(0,e.jsx)(p.Z,{span:8,children:_e?(0,e.jsx)(D.Z,{src:"".concat(A.VO).concat(_e),style:{marginTop:"32px",width:"100px",height:"100px"}}):(0,e.jsx)(D.Z,{src:"".concat(A.VO).concat(Z==null?void 0:Z.photo),style:{marginTop:"32px",width:"100px",height:"100px"}})}):(0,e.jsx)(e.Fragment,{children:_e?(0,e.jsxs)(p.Z,{span:8,children:[" ",(0,e.jsx)(D.Z,{src:"".concat(A.VO).concat(_e),style:{marginTop:"32px",width:"100px",height:"100px"}})," "]}):""})]}),(0,e.jsxs)(xe.Z,{gutter:[16,16],children:[Z?(0,e.jsx)(p.Z,{span:6,children:(0,e.jsx)(je.Z,{multiple:!1,form_name:"photo",image_length:1,uploadTxt:"\u4E0A\u4F20\u8425\u4E1A\u6267\u7167",image_type:4,onUploadComplete:Ke})}):(0,e.jsx)(p.Z,{span:6,children:(0,e.jsx)(je.Z,{multiple:!1,form_name:"license_path",image_length:1,uploadTxt:"\u4E0A\u4F20\u8425\u4E1A\u6267\u7167",image_type:4,onUploadComplete:Ke})}),(0,e.jsx)(p.Z,{span:8,children:(0,e.jsx)(Re.Z.Group,{name:"license_status",label:"\u8425\u4E1A\u6267\u7167\u5BA1\u6838\u72B6\u6001",radioType:"button",fieldProps:{buttonStyle:"solid"},options:[{label:"\u5F85\u5BA1",value:1},{label:"\u901A\u8FC7",value:2},{label:"\u4E0D\u901A\u8FC7",value:3}]})}),Z?(0,e.jsx)(p.Z,{span:8,children:Se?(0,e.jsx)(D.Z,{src:"".concat(A.VO).concat(Se),style:{marginTop:"32px",width:"100px",height:"100px"}}):(0,e.jsx)(D.Z,{src:"".concat(A.VO).concat(Z==null?void 0:Z.license_path),style:{marginTop:"32px",width:"100px",height:"100px"}})}):(0,e.jsx)(e.Fragment,{children:Se?(0,e.jsxs)(p.Z,{span:8,children:[" ",(0,e.jsx)(D.Z,{src:"".concat(A.VO).concat(Se),style:{marginTop:"32px",width:"100px",height:"100px"}})," "]}):""})]}),(0,e.jsx)(xe.Z,{gutter:[16,16],children:Z?(0,e.jsxs)(p.Z,{span:24,style:{display:"flex"},children:[(0,e.jsx)(je.Z,{multiple:!0,form_name:"photo",image_length:1,uploadTxt:"\u4F01\u4E1A\u76F8\u518C",image_type:3,onUploadComplete:Ne}),Y&&Y.length>0?Y.map(function(_,o){return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,e.jsx)(E.ZP,{size:"small",type:"link",onClick:function(){Y.splice(o,1),Ae(Te()(Y))},children:"\u5220\u9664"}),(0,e.jsx)(D.Z,{src:"".concat(A.VO).concat(_.photo),style:{marginTop:"8px",marginLeft:"16px",width:"100px",height:"100px"}})]})})}):""]}):(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(p.Z,{span:24,style:{display:"flex"},children:[(0,e.jsx)(je.Z,{multiple:!0,form_name:"license_path",image_length:5,uploadTxt:"\u4F01\u4E1A\u76F8\u518C",image_type:3,onUploadComplete:Ne}),Y&&Y.length>0?Y.map(function(_,o){return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,e.jsx)(E.ZP,{size:"small",type:"link",onClick:function(){Y.splice(o,1),Ae(Te()(Y))},children:"\u5220\u9664"}),(0,e.jsx)(D.Z,{src:"".concat(A.VO).concat(_.photo),style:{marginTop:"8px",marginLeft:"16px",width:"100px",height:"100px"}})]})})}):""]})})})]})}),(0,e.jsx)(Ze.L0.StepForm,{title:"\u767B\u5F55\u5BC6\u7801",onFinish:function(){var _=v()(s()().mark(function o(a){return s()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",!0);case 1:case"end":return h.stop()}},o)}));return function(o){return _.apply(this,arguments)}}(),children:(0,e.jsx)(Be.Z,{ghost:!0,style:{minWidth:800,maxWidth:"100%"},children:(0,e.jsx)(xe.Z,{gutter:[16,16],children:(0,e.jsx)(p.Z,{span:24,children:(0,e.jsx)(X.Z.Password,{name:"login_pwd",label:"\u767B\u5F55\u5BC6\u7801",fieldProps:{size:"large"},placeholder:"\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801"}]})})})})})]})})})})},tt=(0,i.connect)(function(V){var u=V.dictModel,T=V.openModel;return{dictModel:u,openModel:T}})(et),at=function(u){var T=u.dispatch,L=u.openModel,z=u.id,I=(0,n.useRef)(),G=(0,n.useState)(!1),w=r()(G,2),ae=w[0],ne=w[1],re=(0,n.useState)([]),Q=r()(re,2),J=Q[0],ue=Q[1],Z=(0,n.useState)(0),oe=r()(Z,2),Me=oe[0],ge=oe[1],De=(0,n.useState)(1),Pe=r()(De,2),Ee=Pe[0],me=Pe[1],Ce=(0,n.useState)(10),K=r()(Ce,2),P=K[0],d=K[1];return(0,n.useEffect)(function(){ne(L.openBindModal)},[L.openBindModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(f.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,e.jsx)(We.Z,{open:ae,title:"",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){T({type:"openModel/getOpenBindModal",payload:!1})},children:(0,e.jsx)(b.Z,{search:!1,size:"small",bordered:!0,scroll:{x:1300},actionRef:I,dataSource:J,columns:[{title:"\u8D26\u53F7",dataIndex:"username",search:!1},{title:"\u624B\u673A\u53F7",dataIndex:"mobile",search:!1},{title:"\u7ED1\u5B9A\u65F6\u95F4",dataIndex:"updated_at",search:!1},{title:"\u64CD\u4F5C",width:300,key:"option",valueType:"option",fixed:"right",render:function(j,M,ie){return[(0,e.jsx)(E.ZP,{type:"link",onClick:function(){(0,y.oGb)({company_id:M.company_id,customer_id:M.id,role:1}).then(function(Fe){C.ZP.success("\u89E3\u9664\u6388\u6743\u6210\u529F"),I.current.reload()})},children:"\u89E3\u9664\u6388\u6743"},"1")]}}],rowKey:"id",pagination:{current:Ee,pageSize:P,showSizeChanger:!0,total:Me,pageSizeOptions:[9,18,27,99],onChange:function(j,M){me(j),d(M)},onShowSizeChange:function(j,M){me(j),d(M)}},request:v()(s()().mark(function N(){var j,M=arguments;return s()().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return j=M.length>0&&M[0]!==void 0?M[0]:{},le.abrupt("return",(0,y.duC)({page:Ee,pagesize:P,sort:"id",sortby:"desc",id:z}).then(function(Fe){ue(Fe.data.customers),ge(Fe.data.total)}));case 2:case"end":return le.stop()}},N)})),headerTitle:"\u7BA1\u7406\u5DF2\u7ECF\u6388\u6743\u7684\u8D26\u53F7"})})})})},nt=(0,i.connect)(function(V){var u=V.openModel;return{openModel:u}})(at),rt=function(u){var T=u.dispatch,L=u.openModel,z=(0,n.useState)(0),I=r()(z,2),G=I[0],w=I[1],ae=function(re){w(re)};return(0,n.useEffect)(function(){L.openModal||w(0)},[L.openModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(f.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:[(0,e.jsx)(te,{getId:ae}),(0,e.jsx)(tt,{id:G}),(0,e.jsx)(nt,{id:G})]})})},ot=(0,i.connect)(function(V){var u=V.openModel;return{openModel:u}})(rt)},5251:function(ce,R,t){t.d(R,{Y:function(){return i},_:function(){return n}});var l=t(27484),r=t.n(l),n=function(g){return g&&g<r()().endOf("day")},i=function(g){return g&&g>r()().endOf("day")}}}]);