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.5fa38f43.async.js 31KB

1
  1. "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[941],{57759:function(Ze,V,a){var J=a(59530),l=a(55375),r=a(68872),Z=a(80876),b=a(86074),I=function(X){var A=X.onUploadComplete,H=X.uploadTxt,y=X.form_name,O=function(f){A&&A(f)};return(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(Z.Z,{label:H,name:y,icon:null,fieldProps:{fileList:[],listType:"picture-card",showUploadList:!1,customRequest:function(f){var u=new FormData;u.append("doc",f.file),console.log(u),(0,J.request)(l.FH+"/common/doc/upload?doctype=1",{method:"post",data:u,Headers:{Authorization:sessionStorage.getItem("token"),"X-Requested-With":null}}).then(function(v){O(v.data.filename)}).catch(function(v){console.log(v),r.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u6587\u4EF6\u7C7B\u578B\uFF0C\u5982\u6709\u7591\u95EE\uFF0C\u8BF7\u54A8\u8BE2\u7BA1\u7406\u5458")})}}})})};V.Z=I},67562:function(Ze,V,a){var J=a(5574),l=a.n(J),r=a(71167),Z=a.n(r),b=a(40190),I=a(62435),o=a(86492),X=a.n(o),A=a(86074),H=function(O){var d=O.defaultValue,f=O.placeholder,u=O.onChange,v=(0,I.useState)(d&&X().decode(d)),m=l()(v,2),T=m[0],_=m[1],B=function(p){_(p),u(p)};return(0,I.useEffect)(function(){if(d){var j=d.replace(/<[^>]*>/g,"");B(j?d:"")}},[d]),(0,A.jsx)("div",{children:(0,A.jsx)(Z(),{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:T,onChange:B,theme:"snow",placeholder:f})})};V.Z=H},67119:function(Ze,V,a){var J=a(5574),l=a.n(J),r=a(62435),Z=a(59530),b=a(55375),I=a(42075),o=a(68872),X=a(98163),A=a(32443),H=a(86074),y=function(d){var f=d.onUploadComplete,u=d.uploadTxt,v=d.image_type,m=d.form_name,T=d.image_length,_=d.multiple,B=d.imageUrl,j=function(ve){ve&&f(ve)},p=(0,r.useState)(B),C=l()(p,2),oe=C[0],Y=C[1];return(0,r.useEffect)(function(){Y(B)},[B]),(0,H.jsx)(H.Fragment,{children:(0,H.jsxs)(I.Z,{children:[(0,H.jsx)(A.Z,{label:u,name:m,icon:null,title:u,fieldProps:{maxCount:T,multiple:_,fileList:[],listType:"picture-card",showUploadList:!1,customRequest:function(ve){var Se=new FormData;Se.append("image",ve.file),console.log(Se),(0,Z.request)(b.FH+"/common/image/upload?imgtype="+v,{method:"post",data:Se,Headers:{Authorization:sessionStorage.getItem("token"),"X-Requested-With":null}}).then(function(xe){Y(xe.data.filename),j(xe.data.filename)}).catch(function(xe){console.log(xe),o.ZP.error("\u4E0A\u4F20\u5931\u8D25")})}}}),oe&&(0,H.jsx)(X.Z,{src:"".concat(b.VO).concat(oe),width:102,height:102,style:{borderRadius:8}})]})})};V.Z=y},93282:function(Ze,V,a){a.r(V),a.d(V,{default:function(){return st}});var J=a(5574),l=a.n(J),r=a(62435),Z=a(59530),b=a(28459),I=a(15009),o=a.n(I),X=a(97857),A=a.n(X),H=a(99289),y=a.n(H),O=a(97269),d=a(95338),f=a(42075),u=a(26412),v=a(98163),m=a(14726),T=a(17788),_=a(78045),B=a(40411),j=a(68872),p=a(39680),C=a(55375),oe=a(57759),Y=a(67119),e=a(86074),ve=function(F){var D=F.dispatch,k=F.openModel,ee=F.getId,S=(0,r.useRef)(),te=(0,r.useState)([]),N=l()(te,2),se=N[0],ie=N[1],de=(0,r.useState)(0),ce=l()(de,2),Be=ce[0],Fe=ce[1],$=(0,r.useState)(1),ae=l()($,2),ye=ae[0],he=ae[1],Re=(0,r.useState)(10),pe=l()(Re,2),me=pe[0],ne=pe[1],Le=(0,r.useState)([]),je=l()(Le,2),Oe=je[0],Ce=je[1],re=(0,r.useState)([]),q=l()(re,2),K=q[0],Pe=q[1],ue=(0,r.useState)(0),fe=l()(ue,2),De=fe[0],Ue=fe[1],be=function(n){ee(n)},Ne=(0,r.useState)(!0),We=l()(Ne,2),$e=We[0],Ve=We[1],ke=(0,r.useState)(!0),Ke=l()(ke,2),He=Ke[0],Xe=Ke[1];(0,r.useEffect)(function(){if(!k.openModal){var U;(U=S.current)===null||U===void 0||U.reload()}},[k.openModal]);var we=(0,r.useState)(""),R=l()(we,2),_e=R[0],Ie=R[1],x=(0,r.useRef)(""),i=function(n){Ie(n)};(0,r.useEffect)(function(){x.current=_e},[_e]);var t=(0,r.useState)(""),w=l()(t,2),s=w[0],le=w[1],L=(0,r.useRef)(""),it=function(n){le(n)};(0,r.useEffect)(function(){L.current=s},[s]);var dt=function(n){return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(f.Z,{direction:"vertical",style:{width:"100%"},children:[(0,e.jsxs)(u.Z,{title:"\u57FA\u672C\u4FE1\u606F",bordered:!0,column:3,contentStyle:{fontWeight:"bold"},labelStyle:{width:180},children:[(0,e.jsx)(u.Z.Item,{label:"\u6210\u7ACB\u65E5\u671F",children:n.establishment_date}),(0,e.jsx)(u.Z.Item,{label:"\u6765\u6E90",children:n.origin_text}),(0,e.jsx)(u.Z.Item,{label:"\u767B\u5F55\u6B21\u6570",children:n.login_count}),(0,e.jsx)(u.Z.Item,{label:"\u70B9\u51FB\u6B21\u6570",children:n.click_count}),(0,e.jsx)(u.Z.Item,{label:"\u4F01\u4E1A\u7167\u7247",children:(0,e.jsxs)(f.Z,{align:"center",children:[(0,e.jsx)(v.Z,{src:"".concat(C.VO).concat(n.photo),width:60,height:60}),(0,e.jsx)(m.ZP,{size:"small",type:"primary",onClick:function(){T.Z.confirm({title:"\u66F4\u6362\u4F01\u4E1A\u7167\u7247",content:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(O.A,{submitter:{render:!1},children:(0,e.jsx)(Y.Z,{multiple:!1,form_name:"photo",image_length:1,uploadTxt:"\u66F4\u6362\u4F01\u4E1A\u7167\u7247",image_type:3,imageUrl:n.photo,onUploadComplete:i})})}),onOk:function(){return y()(o()().mark(function E(){var g,W,z;return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,p.vNO)({id:n.id});case 2:return W=c.sent,c.next=5,(0,p.j1$)(A()(A()({},W.data),{},{photo:x.current}));case 5:z=c.sent,Ie(""),(g=S.current)===null||g===void 0||g.reload();case 8:case"end":return c.stop()}},E)}))()},onCancel:function(){console.log("Cancel")},okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",centered:!0})},children:"\u66F4\u6362\u4F01\u4E1A\u7167\u7247"})]})}),(0,e.jsx)(u.Z.Item,{label:"\u7167\u7247\u5BA1\u6838",children:(0,e.jsxs)(_.ZP.Group,{value:n.photo_status,size:"small",onChange:function(){var h=y()(o()().mark(function M(E){var g,W,z;return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,p.vNO)({id:n.id});case 2:return W=c.sent,c.next=5,(0,p.j1$)(A()(A()({},W.data),{},{photo_status:E.target.value}));case 5:z=c.sent,(g=S.current)===null||g===void 0||g.reload();case 7:case"end":return c.stop()}},M)}));return function(M){return h.apply(this,arguments)}}(),children:[(0,e.jsx)(_.ZP,{value:1,children:"\u5F85\u5BA1"}),(0,e.jsx)(_.ZP,{value:2,children:"\u901A\u8FC7"}),(0,e.jsx)(_.ZP,{value:3,children:"\u4E0D\u901A\u8FC7"})]})}),(0,e.jsx)(u.Z.Item,{label:"\u767B\u5F55\u8D26\u53F7",children:n.login_name}),(0,e.jsx)(u.Z.Item,{label:"\u8425\u4E1A\u6267\u7167",children:(0,e.jsxs)(f.Z,{align:"center",children:[(0,e.jsx)(v.Z,{src:"".concat(C.VO).concat(n.license_path),width:60,height:60}),(0,e.jsx)(m.ZP,{size:"small",type:"primary",onClick:function(){T.Z.confirm({title:"\u66F4\u6362\u8425\u4E1A\u6267\u7167",content:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(O.A,{submitter:{render:!1},children:(0,e.jsx)(Y.Z,{multiple:!1,form_name:"license_path",image_length:1,uploadTxt:"\u66F4\u6362\u8425\u4E1A\u6267\u7167",image_type:3,imageUrl:n.license_path,onUploadComplete:it})})}),onOk:function(){return y()(o()().mark(function E(){var g,W,z;return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,p.vNO)({id:n.id});case 2:return W=c.sent,c.next=5,(0,p.j1$)(A()(A()({},W.data),{},{license_path:L.current}));case 5:z=c.sent,le(""),(g=S.current)===null||g===void 0||g.reload();case 8:case"end":return c.stop()}},E)}))()},onCancel:function(){console.log("Cancel")},okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",centered:!0})},children:"\u66F4\u6362\u8425\u4E1A\u6267\u7167"})]})}),(0,e.jsx)(u.Z.Item,{label:"\u8425\u4E1A\u6267\u7167\u5BA1\u6838",children:(0,e.jsxs)(_.ZP.Group,{value:n.photo_status,size:"small",onChange:function(){var h=y()(o()().mark(function M(E){var g,W,z;return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,p.vNO)({id:n.id});case 2:return W=c.sent,c.next=5,(0,p.j1$)(A()(A()({},W.data),{},{license_status:E.target.value}));case 5:z=c.sent,(g=S.current)===null||g===void 0||g.reload();case 7:case"end":return c.stop()}},M)}));return function(M){return h.apply(this,arguments)}}(),children:[(0,e.jsx)(_.ZP,{value:1,children:"\u5F85\u5BA1"}),(0,e.jsx)(_.ZP,{value:2,children:"\u901A\u8FC7"}),(0,e.jsx)(_.ZP,{value:3,children:"\u4E0D\u901A\u8FC7"})]})})]}),(0,e.jsxs)(u.Z,{title:"\u4F1A\u5458\u4FE1\u606F",bordered:!0,column:3,contentStyle:{fontWeight:"bold"},labelStyle:{width:180},children:[(0,e.jsx)(u.Z.Item,{label:"\u4F1A\u5458\u7C7B\u578B",children:n.member_type_text&&(0,e.jsx)(m.ZP,{type:"primary",size:"small",onClick:function(){sessionStorage.setItem("vip_company_info",JSON.stringify(n)),Z.history.push({pathname:"/company/vip"})},children:n.member_type_text})}),(0,e.jsx)(u.Z.Item,{label:"\u5F00\u59CB\u65F6\u95F4",children:n.start_date}),(0,e.jsx)(u.Z.Item,{label:"\u5230\u671F\u65F6\u95F4",children:n.end_date}),(0,e.jsx)(u.Z.Item,{label:"\u5269\u4F59\u70B9\u6570",children:n.code}),(0,e.jsx)(u.Z.Item,{label:"\u4F1A\u5458\u72B6\u6001",children:n.member_status===2?(0,e.jsx)(B.Z,{status:"processing",text:n.member_status_text}):(0,e.jsx)(B.Z,{status:"error",text:n.member_status_text})})]})]})})};return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(b.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"},components:{Descriptions:{labelBg:"#ffffff",contentColor:"#000"}}},children:(0,e.jsx)(d.Z,{size:"small",scroll:{y:480,x:"auto"},bordered:!0,actionRef:S,dataSource:se,search:{span:6,labelWidth:"auto"},rowSelection:{type:"checkbox",onChange:function(n,h){Pe(n)}},expandable:{expandedRowRender:dt},columns:[{title:"\u7B5B\u9009\u65E5\u671F",dataIndex:"date_range",hidden:!0,valueType:"dateRange",search:{transform:function(n){return{start_date:n[0],end_date:n[1]}}},width:200},{title:"ID",dataIndex:"id",width:200},{title:"\u4F01\u4E1A\u540D\u79F0",dataIndex:"full_name",width:200},{title:"\u793E\u4F1A\u7EDF\u4E00\u4FE1\u7528\u4EE3\u7801",dataIndex:"registration_number",width:200,search:!1},{title:"\u6027\u8D28",dataIndex:"nature_text",width:200,search:!1},{title:"\u89C4\u6A21",dataIndex:"scale_text",width:200,search:!1},{title:"\u8D26\u53F7\u72B6\u6001",dataIndex:"status",width:200,render:function(n,h){return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(_.ZP.Group,{size:"small",value:h.status,onChange:function(){var M=y()(o()().mark(function E(g){var W;return o()().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:(W=S.current)===null||W===void 0||W.reload();case 1:case"end":return ge.stop()}},E)}));return function(E){return M.apply(this,arguments)}}(),children:[(0,e.jsx)(_.ZP,{value:1,children:"\u5F00\u901A"}),(0,e.jsx)(_.ZP,{value:2,children:"\u5173\u95ED"})]})})},valueType:"select",valueEnum:{0:{text:"\u5168\u90E8"},1:{text:"\u5F00\u901A",status:"Processing"},2:{text:"\u5173\u95ED",status:"Error"}}},{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:"\u64CD\u4F5C",key:"option",valueType:"option",render:function(n,h,M){return[(0,e.jsx)(e.Fragment,{children:He&&(0,e.jsx)(m.ZP,{type:"link",onClick:function(){be(h.id),D({type:"openModel/getOpenModal",payload:!0})},children:"\u7F16\u8F91"},"1")}),(0,e.jsx)(m.ZP,{type:"link",onClick:function(){(0,p.vNO)({id:h.id}).then(function(g){sessionStorage.setItem("company_info",JSON.stringify(g.data)),Z.history.push({pathname:"/company/department"})})},children:"\u4F01\u4E1A\u90E8\u95E8"},"2"),(0,e.jsx)(m.ZP,{type:"link",onClick:function(){(0,p.vNO)({id:h.id}).then(function(g){sessionStorage.setItem("post_company_info",JSON.stringify(g.data)),Z.history.push({pathname:"/company/post"})})},children:"\u4F01\u4E1A\u804C\u4F4D"},"3"),(0,e.jsx)(m.ZP,{type:"link",onClick:function(){sessionStorage.setItem("vip_company_info",JSON.stringify(h)),Z.history.push({pathname:"/company/vip"})},children:"\u4F1A\u5458\u4FE1\u606F"},"4"),(0,e.jsx)(m.ZP,{type:"link",onClick:function(){be(h.id),D({type:"openModel/getOpenBindModal",payload:!0})},children:"\u5B50\u8D26\u53F7\u89E3\u7ED1"},"5")]}}],rowKey:"id",pagination:{current:ye,pageSize:me,showSizeChanger:!0,total:Be,pageSizeOptions:[9,18,27,99],onChange:function(n,h){he(n),ne(h)},onShowSizeChange:function(n,h){he(n),ne(h)}},request:y()(o()().mark(function U(){var n,h=arguments;return o()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return n=h.length>0&&h[0]!==void 0?h[0]:{},E.abrupt("return",(0,p.m_v)({page:ye,pagesize:me,sort:"id",sortby:"desc",id:n.id,keyword:n.full_name,login_name:n.login_name,member_type:n.member_type,member_status:n.member_status,status:n.status,start_date:n.start_date,end_date:n.end_date}).then(function(g){ie(g.data.list),Fe(g.data.total)}));case 2:case"end":return E.stop()}},U)})),headerTitle:"\u4F01\u4E1A\u5217\u8868",toolBarRender:function(){return[(0,e.jsx)(m.ZP,{type:"primary",onClick:function(){K.length===0?j.ZP.error("\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\u7684\u6570\u636E"):T.Z.confirm({title:"\u8BF7\u9009\u62E9\u5BF9\u6279\u91CF\u6570\u636E\u8FDB\u884C\u4F55\u79CD\u64CD\u4F5C",content:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(_.ZP.Group,{size:"small",value:De,onChange:function(M){Ue(M.target.value)},options:[{value:1,label:"\u5F00\u901A\u8D26\u53F7"},{value:2,label:"\u5173\u95ED\u8D26\u53F7"}]})}),onOk:function(){return y()(o()().mark(function M(){var E,g;return o()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if(!De){z.next=5;break}g=(0,p.kL6)({ids:K,status:De}),(E=S.current)===null||E===void 0||E.reload(),z.next=7;break;case 5:return j.ZP.error("\u8BF7\u9009\u62E9\u72B6\u6001"),z.abrupt("return",!1);case 7:case"end":return z.stop()}},M)}))()},onCancel:function(){console.log("Cancel")},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0})},children:"\u6279\u91CF\u7BA1\u7406\u8D26\u53F7"}),(0,e.jsx)(m.ZP,{type:"primary",onClick:function(){j.ZP.info("\u6570\u636E\u5BFC\u51FA\u9700\u8981\u65F6\u95F4\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85"),(0,p.YFK)().then(function(h){var M=C.VO+h.data.excel_url;window.open(M),j.ZP.info("\u6570\u636E\u5BFC\u51FA\u5B8C\u6BD5")})},children:"\u5BFC\u51FA\u6570\u636E"}),(0,e.jsx)(e.Fragment,{children:$e&&(0,e.jsx)(m.ZP,{type:"primary",onClick:function(){D({type:"openModel/getOpenModal",payload:!0})},children:"\u6DFB\u52A0\u4F01\u4E1A"})}),(0,e.jsx)(m.ZP,{type:"primary",onClick:function(){T.Z.confirm({title:"\u5BFC\u5165\u6587\u4EF6",content:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(oe.Z,{form_name:"doc_url",uploadTxt:"\u5BFC\u5165\u6587\u4EF6"})}),onOk:function(){},onCancel:function(){console.log("Cancel")},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0})},children:"\u5BFC\u5165\u6570\u636E"})]}})})})},Se=(0,Z.connect)(function(G){var F=G.openModel;return{openModel:F}})(ve),xe=a(19632),ze=a.n(xe),Ee=a(45029),Me=a(88245),Q=a(5966),Ye=a(50335),Te=a(8214),Qe=a(19109),qe=a(97462),Ge=a(86615),Ae=a(71230),P=a(15746),et=a(23323),Je=a(36998),tt=a(5251),at=a(67562),nt=function(F){var D=F.dispatch,k=F.dictModel,ee=F.openModel,S=F.id,te=(0,r.useRef)(),N=(0,r.useRef)([]),se=(0,r.useState)(!1),ie=l()(se,2),de=ie[0],ce=ie[1],Be=(0,r.useState)(null),Fe=l()(Be,2),$=Fe[0],ae=Fe[1],ye=(0,r.useState)(""),he=l()(ye,2),Re=he[0],pe=he[1],me=(0,r.useState)(!1),ne=l()(me,2),Le=ne[0],je=ne[1],Oe=(0,r.useState)(""),Ce=l()(Oe,2),re=Ce[0],q=Ce[1],K=(0,r.useState)(""),Pe=l()(K,2),ue=Pe[0],fe=Pe[1],De=(0,r.useState)(""),Ue=l()(De,2),be=Ue[0],Ne=Ue[1],We=function(i){Ne(i)},$e=(0,r.useState)(""),Ve=l()($e,2),ke=Ve[0],Ke=Ve[1],He=function(i){Ke(i)},Xe=(0,r.useState)([]),we=l()(Xe,2),R=we[0],_e=we[1],Ie=function(i){_e([].concat(ze()(R),[{photo:i}]))};return(0,r.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,r.useEffect)(function(){ce(ee.openModal)},[ee.openModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(b.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,e.jsx)(T.Z,{open:de,title:S?"\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(i){i&&S?(0,p.vNO)({id:S}).then(function(t){var w;N==null||(w=N.current)===null||w===void 0||w.forEach(function(s){var le;t.data.industry_arr=[t.data.industry],t.data.nature_arr=(0,Je.wi)(k.natureList,t.data.nature).concat([t.data.nature]),t.data.scale_arr=(0,Je.wi)(k.scaleList,t.data.scale).concat([t.data.scale]),t.data.location_arr=[t.data.province?t.data.province:0,t.data.city?t.data.city:0,t.data.district?t.data.district:0,t.data.street?t.data.street:0],_e(t.data.company_photos),s==null||(le=s.current)===null||le===void 0||le.setFieldsValue(t.data)}),ae(t.data)}):ae(null)},children:(0,e.jsxs)(Ee.L0,{formMapRef:N,formRef:te,onFinish:function(){var x=y()(o()().mark(function i(t){var w,s;return o()().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(t.industry=t.industry_arr&&t.industry_arr.length>0&&t.industry_arr[0]?t.industry_arr[0]:0,t.province=t.location_arr&&t.location_arr[0]?t.location_arr[0]:0,t.city=t.location_arr&&t.location_arr[1]?t.location_arr[1]:0,t.district=t.location_arr&&t.location_arr[2]?t.location_arr[2]:0,t.street=t.location_arr&&t.location_arr[3]?t.location_arr[3]:0,t.nature=t.nature_arr&&t.nature_arr.length>0?t.nature_arr[t.nature_arr.length-1]:0,t.scale=t.scale_arr&&t.scale_arr.length>0?t.scale_arr[t.scale_arr.length-1]:0,delete t.nature_arr,delete t.scale_arr,delete t.location_arr,delete t.industry_arr,t.photo=be||"",t.license_path=ke||"",t.company_photos=R||[],t.status=1,console.log(t),!$){L.next=29;break}return t.id=$.id,t.nature=t.nature_arr&&t.nature_arr.length>0?t.nature_arr[t.nature_arr.length-1]:0,t.scale=t.scale_arr&&t.scale_arr.length>0?t.scale_arr[t.scale_arr.length-1]:0,delete t.nature_arr,delete t.scale_arr,L.next=24,(0,p.XE3)(t);case 24:w=L.sent,j.ZP.success("\u63D0\u4EA4\u6210\u529F"),D({type:"openModel/getOpenModal",payload:!1}),L.next=34;break;case 29:return L.next=31,(0,p.lQv)(t);case 31:s=L.sent,j.ZP.success("\u63D0\u4EA4\u6210\u529F"),D({type:"openModel/getOpenModal",payload:!1});case 34:return L.abrupt("return",!0);case 35:case"end":return L.stop()}},i)}));return function(i){return x.apply(this,arguments)}}(),children:[(0,e.jsx)(Ee.L0.StepForm,{title:"\u57FA\u672C\u4FE1\u606F",onFinish:function(){var x=y()(o()().mark(function i(t){return o()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",!0);case 1:case"end":return s.stop()}},i)}));return function(i){return x.apply(this,arguments)}}(),children:(0,e.jsx)(Me.Z,{ghost:!0,style:{minWidth:800,maxWidth:"100%"},children:(0,e.jsxs)(Ae.Z,{gutter:[16,16],children:[(0,e.jsx)(P.Z,{span:8,children:(0,e.jsx)(Q.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)(Q.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)(Ye.Z,{width:"lg",name:"establishment_date",label:"\u6210\u7ACB\u65E5\u671F",placeholder:"\u8BF7\u9009\u62E9\u6210\u7ACB\u65E5\u671F",fieldProps:{disabledDate:tt.Y},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6210\u7ACB\u65E5\u671F"}]})}),(0,e.jsx)(P.Z,{span:8,children:(0,e.jsx)(Q.Z,{label:"\u8054\u7CFB\u4EBA",name:"contact",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA"}]})}),(0,e.jsx)(P.Z,{span:8,children:(0,e.jsx)(Q.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)(Q.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)(Q.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)(Q.Z,{label:"\u4F20\u771F",name:"fax",placeholder:"\u8BF7\u8F93\u5165\u4F20\u771F"})}),(0,e.jsx)(P.Z,{span:8,children:(0,e.jsx)(Q.Z,{label:"\u5B98\u7F51",name:"website",placeholder:"\u8BF7\u8F93\u5165\u5B98\u7F51"})}),(0,e.jsx)(P.Z,{span:8,children:(0,e.jsx)(Te.Z,{label:"\u6240\u5C5E\u884C\u4E1A",name:"industry_arr",fieldProps:{fieldNames:C.Mo,options:k.industryPostList,changeOnSelect:!0},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6240\u5C5E\u884C\u4E1A"}],placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u884C\u4E1A"})}),(0,e.jsx)(P.Z,{span:8,children:(0,e.jsx)(Te.Z,{label:"\u4F01\u4E1A\u6027\u8D28",name:"nature_arr",fieldProps:{fieldNames:C.Mo,options:k.natureList,changeOnSelect:!0},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4F01\u4E1A\u6027\u8D28"}],placeholder:"\u8BF7\u9009\u62E9\u4F01\u4E1A\u6027\u8D28"})}),(0,e.jsx)(P.Z,{span:8,children:(0,e.jsx)(Te.Z,{label:"\u4F01\u4E1A\u89C4\u6A21",name:"scale_arr",fieldProps:{fieldNames:C.Mo,options:k.scaleList,changeOnSelect:!0},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4F01\u4E1A\u89C4\u6A21"}],placeholder:"\u8BF7\u9009\u62E9\u4F01\u4E1A\u89C4\u6A21"})}),(0,e.jsx)(P.Z,{span:8,children:(0,e.jsx)(Te.Z,{label:"\u4F01\u4E1A\u6240\u5728\u5730\u533A",name:"location_arr",fieldProps:{fieldNames:C.Mo,options:k.areaList,changeOnSelect:!0},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4F01\u4E1A\u6240\u5728\u5730\u533A"}],placeholder:"\u4F01\u4E1A\u6240\u5728\u5730\u533A"})})]})})}),(0,e.jsx)(Ee.L0.StepForm,{title:"\u4F01\u4E1A\u7B80\u4ECB",onFinish:function(){var x=y()(o()().mark(function i(t){return o()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",!0);case 1:case"end":return s.stop()}},i)}));return function(i){return x.apply(this,arguments)}}(),children:(0,e.jsx)(Me.Z,{ghost:!0,style:{minWidth:800,maxWidth:"100%"},children:(0,e.jsx)(Ae.Z,{gutter:[16,16],children:(0,e.jsx)(P.Z,{span:24,children:(0,e.jsx)(et.Z.Item,{name:"introduction",label:"\u4F01\u4E1A\u7B80\u4ECB",rules:[{required:!0}],children:(0,e.jsx)(Qe.i$,{children:function(){return(0,e.jsx)(qe.Z,{name:["introduction"],children:function(t,w){var s=t.introduction;return(0,e.jsx)(at.Z,{placeholder:"\u8BF7\u8F93\u5165\u4F01\u4E1A\u7B80\u4ECB",defaultValue:s,onChange:function(L){pe(L),w.formRef.current.setFieldsValue({introduction:L})}})}})}})})})})})}),(0,e.jsx)(Ee.L0.StepForm,{title:"\u4F01\u4E1A\u5730\u5740",onFinish:function(){var x=y()(o()().mark(function i(t){return o()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",!0);case 1:case"end":return s.stop()}},i)}));return function(i){return x.apply(this,arguments)}}(),children:(0,e.jsx)(Me.Z,{ghost:!0,style:{minWidth:800,maxWidth:"100%"},children:(0,e.jsx)(Ae.Z,{gutter:[16,16],children:(0,e.jsx)(P.Z,{span:8,children:(0,e.jsx)(Q.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"}]})})})})}),(0,e.jsx)(Ee.L0.StepForm,{title:"\u76F8\u5173\u56FE\u7247",onFinish:function(){var x=y()(o()().mark(function i(t){return o()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",!0);case 1:case"end":return s.stop()}},i)}));return function(i){return x.apply(this,arguments)}}(),children:(0,e.jsx)(Me.Z,{ghost:!0,style:{minWidth:800,maxWidth:"100%"},children:(0,e.jsxs)(Ae.Z,{gutter:[16,16],children:[(0,e.jsx)(P.Z,{span:12,children:(0,e.jsxs)(f.Z,{direction:"vertical",children:[(0,e.jsx)(Y.Z,{multiple:!1,form_name:"photo",image_length:1,uploadTxt:"\u4E0A\u4F20\u4F01\u4E1A\u7167\u7247",image_type:3,imageUrl:$==null?void 0:$.photo,onUploadComplete:We}),(0,e.jsx)(Ge.Z.Group,{name:"photo_status",label:"\u4F01\u4E1A\u7167\u7247\u5BA1\u6838\u72B6\u6001",fieldProps:{buttonStyle:"solid"},options:[{label:"\u5F85\u5BA1",value:1},{label:"\u901A\u8FC7",value:2},{label:"\u4E0D\u901A\u8FC7",value:3}]})]})}),(0,e.jsx)(P.Z,{span:12,children:(0,e.jsxs)(f.Z,{direction:"vertical",children:[(0,e.jsx)(Y.Z,{multiple:!1,form_name:"license_path",image_length:1,uploadTxt:"\u4E0A\u4F20\u8425\u4E1A\u6267\u7167",imageUrl:$==null?void 0:$.license_path,image_type:4,onUploadComplete:He}),(0,e.jsx)(Ge.Z.Group,{name:"license_status",label:"\u8425\u4E1A\u6267\u7167\u5BA1\u6838\u72B6\u6001",fieldProps:{buttonStyle:"solid"},options:[{label:"\u5F85\u5BA1",value:1},{label:"\u901A\u8FC7",value:2},{label:"\u4E0D\u901A\u8FC7",value:3}]})]})}),$?(0,e.jsxs)(P.Z,{span:24,style:{display:"flex"},children:[(0,e.jsx)(Y.Z,{multiple:!0,form_name:"photo",image_length:1,uploadTxt:"\u4F01\u4E1A\u76F8\u518C",image_type:3,onUploadComplete:Ie}),R&&R.length>0?R.map(function(x,i){return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,e.jsx)(m.ZP,{size:"small",type:"link",onClick:function(){R.splice(i,1),_e(ze()(R))},children:"\u5220\u9664"}),(0,e.jsx)(v.Z,{src:"".concat(C.VO).concat(x.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)(Y.Z,{multiple:!0,form_name:"license_path",image_length:5,uploadTxt:"\u4F01\u4E1A\u76F8\u518C",image_type:3,onUploadComplete:Ie}),R&&R.length>0?R.map(function(x,i){return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,e.jsx)(m.ZP,{size:"small",type:"link",onClick:function(){R.splice(i,1),_e(ze()(R))},children:"\u5220\u9664"}),(0,e.jsx)(v.Z,{src:"".concat(C.VO).concat(x.photo),style:{marginTop:"8px",marginLeft:"16px",width:"100px",height:"100px"}})]})})}):""]})})]})})}),(0,e.jsx)(Ee.L0.StepForm,{title:"\u767B\u5F55\u5BC6\u7801",onFinish:function(){var x=y()(o()().mark(function i(t){return o()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",!0);case 1:case"end":return s.stop()}},i)}));return function(i){return x.apply(this,arguments)}}(),children:(0,e.jsx)(Me.Z,{ghost:!0,style:{minWidth:800,maxWidth:"100%"},children:(0,e.jsx)(Ae.Z,{gutter:[16,16],children:(0,e.jsx)(P.Z,{span:24,children:S?(0,e.jsx)(Q.Z.Password,{name:"login_pwd",label:"\u767B\u5F55\u5BC6\u7801",fieldProps:{size:"large"},placeholder:"\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801"}):(0,e.jsx)(Q.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,Z.connect)(function(G){var F=G.dictModel,D=G.openModel;return{dictModel:F,openModel:D}})(nt),ut=function(F){var D=F.dispatch,k=F.openModel,ee=F.id,S=(0,r.useRef)(),te=(0,r.useState)(!1),N=l()(te,2),se=N[0],ie=N[1],de=(0,r.useState)([]),ce=l()(de,2),Be=ce[0],Fe=ce[1],$=(0,r.useState)(0),ae=l()($,2),ye=ae[0],he=ae[1],Re=(0,r.useState)(1),pe=l()(Re,2),me=pe[0],ne=pe[1],Le=(0,r.useState)(10),je=l()(Le,2),Oe=je[0],Ce=je[1];return(0,r.useEffect)(function(){ie(k.openBindModal)},[k.openBindModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(b.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,e.jsx)(T.Z,{open:se,title:"",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){D({type:"openModel/getOpenBindModal",payload:!1})},children:(0,e.jsx)(d.Z,{search:!1,size:"small",bordered:!0,scroll:{x:1300},actionRef:S,dataSource:Be,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(q,K,Pe){return[(0,e.jsx)(m.ZP,{type:"link",onClick:function(){(0,p.oGb)({company_id:K.company_id,customer_id:K.id,role:1}).then(function(fe){j.ZP.success("\u89E3\u9664\u6388\u6743\u6210\u529F"),S.current.reload()})},children:"\u89E3\u9664\u6388\u6743"},"1")]}}],rowKey:"id",pagination:{current:me,pageSize:Oe,showSizeChanger:!0,total:ye,pageSizeOptions:[9,18,27,99],onChange:function(q,K){ne(q),Ce(K)},onShowSizeChange:function(q,K){ne(q),Ce(K)}},request:y()(o()().mark(function re(){var q,K=arguments;return o()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return q=K.length>0&&K[0]!==void 0?K[0]:{},ue.abrupt("return",(0,p.duC)({page:me,pagesize:Oe,sort:"id",sortby:"desc",id:ee}).then(function(fe){Fe(fe.data.customers),he(fe.data.total)}));case 2:case"end":return ue.stop()}},re)})),headerTitle:"\u7BA1\u7406\u5DF2\u7ECF\u6388\u6743\u7684\u8D26\u53F7"})})})})},lt=(0,Z.connect)(function(G){var F=G.openModel;return{openModel:F}})(ut),ot=function(F){var D=F.dispatch,k=F.openModel,ee=(0,r.useState)(0),S=l()(ee,2),te=S[0],N=S[1],se=function(de){N(de)};return(0,r.useEffect)(function(){k.openModal||N(0)},[k.openModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(b.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:[(0,e.jsx)(Se,{getId:se}),(0,e.jsx)(rt,{id:te}),(0,e.jsx)(lt,{id:te})]})})},st=(0,Z.connect)(function(G){var F=G.openModel;return{openModel:F}})(ot)},36998:function(Ze,V,a){a.d(V,{Zq:function(){return X},aT:function(){return o},wi:function(){return A}});var J=a(19632),l=a.n(J),r=a(64599),Z=a.n(r),b=a(52677),I=a.n(b),o=function(d,f){var u=!1;return u=d.includes(f),u},X=function(d,f){return d.every(function(u){return I()(u)===f})};function A(O,d){var f=[];function u(_){if(_.id===d)return!0;if(_.children){var B=Z()(_.children),j;try{for(B.s();!(j=B.n()).done;){var p=j.value;if(u(p))return f.unshift(_.id),!0}}catch(C){B.e(C)}finally{B.f()}}return!1}var v=Z()(O),m;try{for(v.s();!(m=v.n()).done;){var T=m.value;u(T)}}catch(_){v.e(_)}finally{v.f()}return f}function H(O,d){var f=[],u=function m(T,_){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],j=_createForOfIteratorHelper(T),p;try{for(j.s();!(p=j.n()).done;){var C=p.value;if(C.name===_)return[].concat(_toConsumableArray(B),[C]);if(C.children){var oe=m(C.children,_,[].concat(_toConsumableArray(B),[C]));if(oe.length>0)return oe}}}catch(Y){j.e(Y)}finally{j.f()}return[]},v=u(O,d);return v}function y(O,d){var f=_createForOfIteratorHelper(O),u;try{for(f.s();!(u=f.n()).done;){var v=u.value;if(v.id===d)return!0;if(v.children&&Array.isArray(v.children)){var m=y(v.children,d);if(m)return!0}}}catch(T){f.e(T)}finally{f.f()}return!1}},5251:function(Ze,V,a){a.d(V,{Y:function(){return Z},_:function(){return r}});var J=a(27484),l=a.n(J),r=function(I){return I&&I<l()().endOf("day")},Z=function(I){return I&&I>l()().endOf("day")}}}]);