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__Company__List__index.c970a9f2.async.js 29KB

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