您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

p__Company__List__index.cb52b437.async.js 31KB

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