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