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

1
  1. "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[941],{57759:function(Se,$,a){var G=a(59530),l=a(55375),r=a(68872),M=a(80876),b=a(86074),I=function(J){var A=J.onUploadComplete,V=J.uploadTxt,y=J.form_name,O=function(m){A&&A(m)};return(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(M.Z,{label:V,name:y,icon:null,fieldProps:{fileList:[],listType:"picture-card",showUploadList:!1,customRequest:function(m){var u=new FormData;u.append("doc",m.file),console.log(u),(0,G.request)(l.FH+"/common/doc/upload?doctype=1",{method:"post",data:u,Headers:{Authorization:sessionStorage.getItem("token"),"X-Requested-With":null}}).then(function(g){O(g.data.filename)}).catch(function(g){console.log(g),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")})}}})})};$.Z=I},67562:function(Se,$,a){var G=a(5574),l=a.n(G),r=a(71167),M=a.n(r),b=a(40190),I=a(62435),o=a(86492),J=a.n(o),A=a(86074),V=function(O){var c=O.defaultValue,m=O.placeholder,u=O.onChange,g=(0,I.useState)(c&&J().decode(c)),f=l()(g,2),R=f[0],_=f[1],B=function(X){_(X),u(X)};return(0,I.useEffect)(function(){if(c){var j=c.replace(/<[^>]*>/g,"");B(j?c:"")}},[c]),(0,A.jsx)("div",{children:(0,A.jsx)(M(),{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:R,onChange:B,theme:"snow",placeholder:m})})};$.Z=V},67119:function(Se,$,a){var G=a(5574),l=a.n(G),r=a(62435),M=a(59530),b=a(55375),I=a(42075),o=a(68872),J=a(98163),A=a(32443),V=a(86074),y=function(c){var m=c.onUploadComplete,u=c.uploadTxt,g=c.image_type,f=c.form_name,R=c.image_length,_=c.multiple,B=c.imageUrl,j=function(e){e&&m(e)},X=(0,r.useState)(B),p=l()(X,2),L=p[0],ve=p[1];return(0,r.useEffect)(function(){ve(B)},[B]),(0,V.jsx)(V.Fragment,{children:(0,V.jsxs)(I.Z,{children:[(0,V.jsx)(A.Z,{label:u,name:f,icon:null,title:u,fieldProps:{maxCount:R,multiple:_,fileList:[],listType:"picture-card",showUploadList:!1,customRequest:function(e){var Ze=new FormData;Ze.append("image",e.file),console.log(Ze),(0,M.request)(b.FH+"/common/image/upload?imgtype="+g,{method:"post",data:Ze,Headers:{Authorization:sessionStorage.getItem("token"),"X-Requested-With":null}}).then(function(xe){ve(xe.data.filename),j(xe.data.filename)}).catch(function(xe){console.log(xe),o.ZP.error("\u4E0A\u4F20\u5931\u8D25")})}}}),L&&(0,V.jsx)(J.Z,{src:"".concat(b.VO).concat(L),width:102,height:102,style:{borderRadius:8}})]})})};$.Z=y},93282:function(Se,$,a){a.r($),a.d($,{default:function(){return pt}});var G=a(5574),l=a.n(G),r=a(62435),M=a(59530),b=a(28459),I=a(15009),o=a.n(I),J=a(97857),A=a.n(J),V=a(99289),y=a.n(V),O=a(97269),c=a(95338),m=a(42075),u=a(26412),g=a(98163),f=a(14726),R=a(17788),_=a(78045),B=a(40411),j=a(68872),X=a(86250),p=a(39680),L=a(55375),ve=a(57759),q=a(67119),e=a(86074),Ze=function(v){var D=v.dispatch,U=v.openModel,ee=v.getId,P=(0,r.useRef)(),te=(0,r.useState)([]),k=l()(te,2),oe=k[0],ie=k[1],de=(0,r.useState)(0),ce=l()(de,2),Be=ce[0],Fe=ce[1],N=(0,r.useState)(1),ae=l()(N,2),ye=ae[0],he=ae[1],Re=(0,r.useState)(10),pe=l()(Re,2),me=pe[0],ne=pe[1],Te=(0,r.useState)([]),je=l()(Te,2),Oe=je[0],Ce=je[1],re=(0,r.useState)(!1),Q=l()(re,2),z=Q[0],ue=Q[1],le=(0,r.useState)([]),fe=l()(le,2),Le=fe[0],Ue=fe[1],We=(0,r.useState)(1),Ke=l()(We,2),De=Ke[0],$e=Ke[1],be=function(n){ee(n)},we=(0,r.useState)(!0),ze=l()(we,2),Ve=ze[0],Xe=ze[1],ke=(0,r.useState)(!0),T=l()(ke,2),Pe=T[0],He=T[1];(0,r.useEffect)(function(){if(!U.openModal){var S;(S=P.current)===null||S===void 0||S.reload()}},[U.openModal]);var x=(0,r.useState)(""),i=l()(x,2),t=i[0],W=i[1],s=(0,r.useRef)(""),_e=function(n){W(n)};(0,r.useEffect)(function(){s.current=t},[t]);var K=(0,r.useState)(""),Ye=l()(K,2),Qe=Ye[0],qe=Ye[1],et=(0,r.useRef)(""),mt=function(n){qe(n)};(0,r.useEffect)(function(){et.current=Qe},[Qe]);var ft=function(n){return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(m.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)(m.Z,{align:"center",children:[(0,e.jsx)(g.Z,{src:"".concat(L.VO).concat(n.photo),width:60,height:60}),(0,e.jsx)(f.ZP,{size:"small",type:"primary",onClick:function(){R.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)(q.Z,{multiple:!1,form_name:"photo",image_length:1,uploadTxt:"\u66F4\u6362\u4F01\u4E1A\u7167\u7247",image_type:3,imageUrl:n.photo,onUploadComplete:_e})})}),onOk:function(){return y()(o()().mark(function F(){var E,w,se;return o()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,(0,p.vNO)({id:n.id});case 2:return w=h.sent,h.next=5,(0,p.j1$)(A()(A()({},w.data),{},{photo:s.current}));case 5:se=h.sent,W(""),(E=P.current)===null||E===void 0||E.reload();case 8:case"end":return h.stop()}},F)}))()},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 d=y()(o()().mark(function Z(F){var E,w,se;return o()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,(0,p.vNO)({id:n.id});case 2:return w=h.sent,h.next=5,(0,p.j1$)(A()(A()({},w.data),{},{photo_status:F.target.value}));case 5:se=h.sent,(E=P.current)===null||E===void 0||E.reload();case 7:case"end":return h.stop()}},Z)}));return function(Z){return d.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)(m.Z,{align:"center",children:[(0,e.jsx)(g.Z,{src:"".concat(L.VO).concat(n.license_path),width:60,height:60}),(0,e.jsx)(f.ZP,{size:"small",type:"primary",onClick:function(){R.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)(q.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:mt})})}),onOk:function(){return y()(o()().mark(function F(){var E,w,se;return o()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,(0,p.vNO)({id:n.id});case 2:return w=h.sent,h.next=5,(0,p.j1$)(A()(A()({},w.data),{},{license_path:et.current}));case 5:se=h.sent,qe(""),(E=P.current)===null||E===void 0||E.reload();case 8:case"end":return h.stop()}},F)}))()},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 d=y()(o()().mark(function Z(F){var E,w,se;return o()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,(0,p.vNO)({id:n.id});case 2:return w=h.sent,h.next=5,(0,p.j1$)(A()(A()({},w.data),{},{license_status:F.target.value}));case 5:se=h.sent,(E=P.current)===null||E===void 0||E.reload();case 7:case"end":return h.stop()}},Z)}));return function(Z){return d.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)(f.ZP,{type:"primary",size:"small",onClick:function(){sessionStorage.setItem("vip_company_info",JSON.stringify(n)),M.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.jsxs)(b.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"},components:{Descriptions:{labelBg:"#ffffff",contentColor:"#000"}}},children:[(0,e.jsx)(c.Z,{size:"small",scroll:{y:480,x:"auto"},bordered:!0,actionRef:P,dataSource:oe,search:{span:6,labelWidth:"auto"},tableAlertRender:function(n){var d=n.selectedRowKeys,Z=n.selectedRows,F=n.onCleanSelected;return Ue(d),(0,e.jsx)(m.Z,{size:24,children:(0,e.jsxs)("span",{children:["\u5DF2\u9009 ",d.length," \u9879",(0,e.jsx)("a",{style:{marginInlineStart:8},onClick:F,children:"\u53D6\u6D88\u9009\u62E9"})]})})},tableAlertOptionRender:function(){return(0,e.jsxs)(m.Z,{size:16,children:[(0,e.jsx)(f.ZP,{onClick:function(){Le.length===0?j.ZP.error("\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\u7684\u6570\u636E"):ue(!0)},children:"\u6279\u91CF\u7BA1\u7406\u8D26\u53F7"}),","]})},rowSelection:{type:"checkbox"},expandable:{expandedRowRender:ft},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,d){return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(_.ZP.Group,{size:"small",value:d.status,onChange:function(){var Z=y()(o()().mark(function F(E){var w;return o()().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:(w=P.current)===null||w===void 0||w.reload();case 1:case"end":return ge.stop()}},F)}));return function(F){return Z.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,d,Z){return[(0,e.jsx)(e.Fragment,{children:Pe&&(0,e.jsx)(f.ZP,{type:"link",onClick:function(){be(d.id),D({type:"openModel/getOpenModal",payload:!0})},children:"\u7F16\u8F91"},"1")}),(0,e.jsx)(f.ZP,{type:"link",onClick:function(){(0,p.vNO)({id:d.id}).then(function(E){sessionStorage.setItem("company_info",JSON.stringify(E.data)),M.history.push({pathname:"/company/department"})})},children:"\u4F01\u4E1A\u90E8\u95E8"},"2"),(0,e.jsx)(f.ZP,{type:"link",onClick:function(){(0,p.vNO)({id:d.id}).then(function(E){sessionStorage.setItem("post_company_info",JSON.stringify(E.data)),M.history.push({pathname:"/company/post"})})},children:"\u4F01\u4E1A\u804C\u4F4D"},"3"),(0,e.jsx)(f.ZP,{type:"link",onClick:function(){sessionStorage.setItem("vip_company_info",JSON.stringify(d)),M.history.push({pathname:"/company/vip"})},children:"\u4F1A\u5458\u4FE1\u606F"},"4"),(0,e.jsx)(f.ZP,{type:"link",onClick:function(){be(d.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,d){he(n),ne(d)},onShowSizeChange:function(n,d){he(n),ne(d)}},request:y()(o()().mark(function S(){var n,d=arguments;return o()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return n=d.length>0&&d[0]!==void 0?d[0]:{},F.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(E){ie(E.data.list),Fe(E.data.total)}));case 2:case"end":return F.stop()}},S)})),headerTitle:"\u4F01\u4E1A\u5217\u8868",toolBarRender:function(){return[(0,e.jsx)(f.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(d){var Z=L.VO+d.data.excel_url;window.open(Z),j.ZP.info("\u6570\u636E\u5BFC\u51FA\u5B8C\u6BD5")})},children:"\u5BFC\u51FA\u6570\u636E"}),(0,e.jsx)(e.Fragment,{children:Ve&&(0,e.jsx)(f.ZP,{type:"primary",onClick:function(){D({type:"openModel/getOpenModal",payload:!0})},children:"\u6DFB\u52A0\u4F01\u4E1A"})}),(0,e.jsx)(f.ZP,{type:"primary",onClick:function(){R.Z.confirm({title:"\u5BFC\u5165\u6587\u4EF6",content:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(ve.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"})]}}),(0,e.jsx)(R.Z,{open:z,title:"\u8BF7\u9009\u62E9\u5BF9\u6279\u91CF\u6570\u636E\u8FDB\u884C\u4F55\u79CD\u64CD\u4F5C",centered:!0,maskClosable:!1,destroyOnClose:!0,width:400,onCancel:function(){ue(!1)},onOk:function(){if(De)(0,p.kL6)({ids:Le,status:De}).then(function(n){var d,Z;ue(!1),(d=P.current)===null||d===void 0||d.clearSelected(),(Z=P.current)===null||Z===void 0||Z.reload()});else return j.ZP.error("\u8BF7\u9009\u62E9\u72B6\u6001"),!1},children:(0,e.jsx)(X.Z,{justify:"center",align:"center",style:{minHeight:100},children:(0,e.jsx)(_.ZP.Group,{size:"small",value:De,onChange:function(n){$e(n.target.value)},options:[{value:1,label:"\u5F00\u901A\u8D26\u53F7"},{value:2,label:"\u5173\u95ED\u8D26\u53F7"},{value:3,label:"\u7981\u75281\u5929"},{value:4,label:"\u7981\u75283\u5929"},{value:5,label:"\u7981\u75287\u5929"},{value:6,label:"\u7981\u752815\u5929"},{value:7,label:"\u7981\u752830\u5929"},{value:8,label:"\u6C38\u4E45\u7981\u7528"}]})})})]})})},xe=(0,M.connect)(function(H){var v=H.openModel;return{openModel:v}})(Ze),tt=a(19632),Ne=a.n(tt),Ee=a(45029),Me=a(88245),Y=a(5966),at=a(50335),Ie=a(8214),nt=a(19109),rt=a(97462),Ge=a(86615),Ae=a(71230),C=a(15746),ut=a(23323),Je=a(36998),lt=a(5251),st=a(67562),ot=function(v){var D=v.dispatch,U=v.dictModel,ee=v.openModel,P=v.id,te=(0,r.useRef)(),k=(0,r.useRef)([]),oe=(0,r.useState)(!1),ie=l()(oe,2),de=ie[0],ce=ie[1],Be=(0,r.useState)(null),Fe=l()(Be,2),N=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),Te=ne[0],je=ne[1],Oe=(0,r.useState)(""),Ce=l()(Oe,2),re=Ce[0],Q=Ce[1],z=(0,r.useState)(""),ue=l()(z,2),le=ue[0],fe=ue[1],Le=(0,r.useState)(""),Ue=l()(Le,2),We=Ue[0],Ke=Ue[1],De=function(i){Ke(i)},$e=(0,r.useState)(""),be=l()($e,2),we=be[0],ze=be[1],Ve=function(i){ze(i)},Xe=(0,r.useState)([]),ke=l()(Xe,2),T=ke[0],Pe=ke[1],He=function(i){Pe([].concat(Ne()(T),[{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)(R.Z,{open:de,title:P?"\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&&P?(0,p.vNO)({id:P}).then(function(t){var W;k==null||(W=k.current)===null||W===void 0||W.forEach(function(s){var _e;t.data.industry_arr=[t.data.industry],t.data.nature_arr=(0,Je.wi)(U.natureList,t.data.nature).concat([t.data.nature]),t.data.scale_arr=(0,Je.wi)(U.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],Pe(t.data.company_photos),s==null||(_e=s.current)===null||_e===void 0||_e.setFieldsValue(t.data)}),ae(t.data)}):ae(null)},children:(0,e.jsxs)(Ee.L0,{formMapRef:k,formRef:te,onFinish:function(){var x=y()(o()().mark(function i(t){var W,s;return o()().wrap(function(K){for(;;)switch(K.prev=K.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=We||"",t.license_path=we||"",t.company_photos=T||[],t.status=1,console.log(t),!N){K.next=29;break}return t.id=N.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,K.next=24,(0,p.XE3)(t);case 24:W=K.sent,j.ZP.success("\u63D0\u4EA4\u6210\u529F"),D({type:"openModel/getOpenModal",payload:!1}),K.next=34;break;case 29:return K.next=31,(0,p.lQv)(t);case 31:s=K.sent,j.ZP.success("\u63D0\u4EA4\u6210\u529F"),D({type:"openModel/getOpenModal",payload:!1});case 34:return K.abrupt("return",!0);case 35:case"end":return K.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)(C.Z,{span:8,children:(0,e.jsx)(Y.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)(Y.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)(at.Z,{width:"lg",name:"establishment_date",label:"\u6210\u7ACB\u65E5\u671F",placeholder:"\u8BF7\u9009\u62E9\u6210\u7ACB\u65E5\u671F",fieldProps:{disabledDate:lt.Y},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6210\u7ACB\u65E5\u671F"}]})}),(0,e.jsx)(C.Z,{span:8,children:(0,e.jsx)(Y.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)(C.Z,{span:8,children:(0,e.jsx)(Y.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)(Y.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)(Y.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)(Y.Z,{label:"\u4F20\u771F",name:"fax",placeholder:"\u8BF7\u8F93\u5165\u4F20\u771F"})}),(0,e.jsx)(C.Z,{span:8,children:(0,e.jsx)(Y.Z,{label:"\u5B98\u7F51",name:"website",placeholder:"\u8BF7\u8F93\u5165\u5B98\u7F51"})}),(0,e.jsx)(C.Z,{span:8,children:(0,e.jsx)(Ie.Z,{label:"\u6240\u5C5E\u884C\u4E1A",name:"industry_arr",fieldProps:{fieldNames:L.Mo,options:U.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)(C.Z,{span:8,children:(0,e.jsx)(Ie.Z,{label:"\u4F01\u4E1A\u6027\u8D28",name:"nature_arr",fieldProps:{fieldNames:L.Mo,options:U.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)(C.Z,{span:8,children:(0,e.jsx)(Ie.Z,{label:"\u4F01\u4E1A\u89C4\u6A21",name:"scale_arr",fieldProps:{fieldNames:L.Mo,options:U.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)(C.Z,{span:8,children:(0,e.jsx)(Ie.Z,{label:"\u4F01\u4E1A\u6240\u5728\u5730\u533A",name:"location_arr",fieldProps:{fieldNames:L.Mo,options:U.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)(C.Z,{span:24,children:(0,e.jsx)(ut.Z.Item,{name:"introduction",label:"\u4F01\u4E1A\u7B80\u4ECB",rules:[{required:!0}],children:(0,e.jsx)(nt.i$,{children:function(){return(0,e.jsx)(rt.Z,{name:["introduction"],children:function(t,W){var s=t.introduction;return(0,e.jsx)(st.Z,{placeholder:"\u8BF7\u8F93\u5165\u4F01\u4E1A\u7B80\u4ECB",defaultValue:s,onChange:function(K){pe(K),W.formRef.current.setFieldsValue({introduction:K})}})}})}})})})})})}),(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)(C.Z,{span:8,children:(0,e.jsx)(Y.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)(C.Z,{span:12,children:(0,e.jsxs)(m.Z,{direction:"vertical",children:[(0,e.jsx)(q.Z,{multiple:!1,form_name:"photo",image_length:1,uploadTxt:"\u4E0A\u4F20\u4F01\u4E1A\u7167\u7247",image_type:3,imageUrl:N==null?void 0:N.photo,onUploadComplete:De}),(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)(C.Z,{span:12,children:(0,e.jsxs)(m.Z,{direction:"vertical",children:[(0,e.jsx)(q.Z,{multiple:!1,form_name:"license_path",image_length:1,uploadTxt:"\u4E0A\u4F20\u8425\u4E1A\u6267\u7167",imageUrl:N==null?void 0:N.license_path,image_type:4,onUploadComplete:Ve}),(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}]})]})}),N?(0,e.jsxs)(C.Z,{span:24,style:{display:"flex"},children:[(0,e.jsx)(q.Z,{multiple:!0,form_name:"photo",image_length:1,uploadTxt:"\u4F01\u4E1A\u76F8\u518C",image_type:3,onUploadComplete:He}),T&&T.length>0?T.map(function(x,i){return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,e.jsx)(f.ZP,{size:"small",type:"link",onClick:function(){T.splice(i,1),Pe(Ne()(T))},children:"\u5220\u9664"}),(0,e.jsx)(g.Z,{src:"".concat(L.VO).concat(x.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)(q.Z,{multiple:!0,form_name:"license_path",image_length:5,uploadTxt:"\u4F01\u4E1A\u76F8\u518C",image_type:3,onUploadComplete:He}),T&&T.length>0?T.map(function(x,i){return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,e.jsx)(f.ZP,{size:"small",type:"link",onClick:function(){T.splice(i,1),Pe(Ne()(T))},children:"\u5220\u9664"}),(0,e.jsx)(g.Z,{src:"".concat(L.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)(C.Z,{span:24,children:P?(0,e.jsx)(Y.Z.Password,{name:"login_pwd",label:"\u767B\u5F55\u5BC6\u7801",fieldProps:{size:"large"},placeholder:"\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801"}):(0,e.jsx)(Y.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"}]})})})})})]})})})})},it=(0,M.connect)(function(H){var v=H.dictModel,D=H.openModel;return{dictModel:v,openModel:D}})(ot),dt=function(v){var D=v.dispatch,U=v.openModel,ee=v.id,P=(0,r.useRef)(),te=(0,r.useState)(!1),k=l()(te,2),oe=k[0],ie=k[1],de=(0,r.useState)([]),ce=l()(de,2),Be=ce[0],Fe=ce[1],N=(0,r.useState)(0),ae=l()(N,2),ye=ae[0],he=ae[1],Re=(0,r.useState)(1),pe=l()(Re,2),me=pe[0],ne=pe[1],Te=(0,r.useState)(10),je=l()(Te,2),Oe=je[0],Ce=je[1];return(0,r.useEffect)(function(){ie(U.openBindModal)},[U.openBindModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(b.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,e.jsx)(R.Z,{open:oe,title:"",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){D({type:"openModel/getOpenBindModal",payload:!1})},children:(0,e.jsx)(c.Z,{search:!1,size:"small",bordered:!0,scroll:{x:1300},actionRef:P,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,z,ue){return[(0,e.jsx)(f.ZP,{type:"link",onClick:function(){(0,p.oGb)({company_id:z.company_id,customer_id:z.id,role:1}).then(function(fe){j.ZP.success("\u89E3\u9664\u6388\u6743\u6210\u529F"),P.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,z){ne(Q),Ce(z)},onShowSizeChange:function(Q,z){ne(Q),Ce(z)}},request:y()(o()().mark(function re(){var Q,z=arguments;return o()().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return Q=z.length>0&&z[0]!==void 0?z[0]:{},le.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 le.stop()}},re)})),headerTitle:"\u7BA1\u7406\u5DF2\u7ECF\u6388\u6743\u7684\u8D26\u53F7"})})})})},ct=(0,M.connect)(function(H){var v=H.openModel;return{openModel:v}})(dt),ht=function(v){var D=v.dispatch,U=v.openModel,ee=(0,r.useState)(0),P=l()(ee,2),te=P[0],k=P[1],oe=function(de){k(de)};return(0,r.useEffect)(function(){U.openModal||k(0)},[U.openModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(b.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:[(0,e.jsx)(xe,{getId:oe}),(0,e.jsx)(it,{id:te}),(0,e.jsx)(ct,{id:te})]})})},pt=(0,M.connect)(function(H){var v=H.openModel;return{openModel:v}})(ht)},36998:function(Se,$,a){a.d($,{Zq:function(){return J},aT:function(){return o},wi:function(){return A}});var G=a(19632),l=a.n(G),r=a(64599),M=a.n(r),b=a(52677),I=a.n(b),o=function(c,m){var u=!1;return u=c.includes(m),u},J=function(c,m){return c.every(function(u){return I()(u)===m})};function A(O,c){var m=[];function u(_){if(_.id===c)return!0;if(_.children){var B=M()(_.children),j;try{for(B.s();!(j=B.n()).done;){var X=j.value;if(u(X))return m.unshift(_.id),!0}}catch(p){B.e(p)}finally{B.f()}}return!1}var g=M()(O),f;try{for(g.s();!(f=g.n()).done;){var R=f.value;u(R)}}catch(_){g.e(_)}finally{g.f()}return m}function V(O,c){var m=[],u=function f(R,_){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],j=_createForOfIteratorHelper(R),X;try{for(j.s();!(X=j.n()).done;){var p=X.value;if(p.name===_)return[].concat(_toConsumableArray(B),[p]);if(p.children){var L=f(p.children,_,[].concat(_toConsumableArray(B),[p]));if(L.length>0)return L}}}catch(ve){j.e(ve)}finally{j.f()}return[]},g=u(O,c);return g}function y(O,c){var m=_createForOfIteratorHelper(O),u;try{for(m.s();!(u=m.n()).done;){var g=u.value;if(g.id===c)return!0;if(g.children&&Array.isArray(g.children)){var f=y(g.children,c);if(f)return!0}}}catch(R){m.e(R)}finally{m.f()}return!1}},5251:function(Se,$,a){a.d($,{Y:function(){return M},_:function(){return r}});var G=a(27484),l=a.n(G),r=function(I){return I&&I<l()().endOf("day")},M=function(I){return I&&I>l()().endOf("day")}}}]);