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