1 |
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[454],{12044:function(z,P,a){a.d(P,{j:function(){return o}});var t=a(34155),n=typeof t!="undefined"&&t.versions!=null&&t.versions.node!=null,o=function(){return typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.matchMedia!="undefined"&&!n}},17651:function(z,P,a){a.r(P),a.d(P,{default:function(){return Y}});var t=a(15009),n=a.n(t),o=a(99289),h=a.n(o),c=a(5574),l=a.n(c),i=a(67294),F=a(7529),R=a(21532),d=a(86250),L=a(83622),p=a(26412),S=a(17788),f=a(70489),U=a(75891),O=a(97269),B=a(5966),J=a(42075),V=a(71230),E=a(15746),b=a(68872),H=a(89627),e=a(85893),N=function(v){var K=v.dispatch,G=v.dictModel,x=v.detail,w=v.closeModel,A=(0,i.useRef)();return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(R.ZP,{theme:{token:{colorPrimary:"#19be6e"},components:{}},children:(0,e.jsx)(O.A,{formRef:A,request:h()(n()().mark(function m(){return n()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!(x&&x.id)){r.next=4;break}return r.abrupt("return",x);case 4:return r.abrupt("return",{});case 5:case"end":return r.stop()}},m)})),submitter:{searchConfig:{resetText:"\u9000\u51FA\u7F16\u8F91",submitText:"\u4FDD\u5B58"},render:function(s,r){return(0,e.jsxs)(d.Z,{justify:"flex-end",children:[" ",(0,e.jsx)(J.Z,{children:r})]})},onReset:function(){S.Z.confirm({title:"\u9000\u51FA\u7F16\u8F91",content:"\u672A\u5B8C\u6210\u7F16\u8F91\uFF0C\u6B64\u65F6\u9000\u51FA\u5F53\u524D\u7F16\u8F91\u5185\u5BB9\u4E0D\u4F1A\u4FDD\u5B58\uFF0C\u662F\u5426\u786E\u5B9A\u9000\u51FA\uFF1F",centered:!0,okText:"\u9000\u51FA",cancelText:"\u53D6\u6D88",onOk:function(){w(!1)},onCancel:function(){}})}},onFinish:function(){var m=h()(n()().mark(function s(r){var j,I;return n()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(!(x&&x.id)){y.next=8;break}return r.id=x.id,y.next=4,(0,f.T7)(r);case 4:j=y.sent,w(!1),y.next=12;break;case 8:return y.next=10,(0,f.Ld)(r);case 10:I=y.sent,w(!1);case 12:case"end":return y.stop()}},s)}));return function(s){return m.apply(this,arguments)}}(),children:(0,e.jsxs)(V.Z,{gutter:20,children:[(0,e.jsx)(E.Z,{span:8,children:(0,e.jsx)(B.Z,{name:"name",label:"\u90E8\u95E8\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u90E8\u95E8\u540D\u79F0"}]})}),(0,e.jsx)(E.Z,{span:8,children:(0,e.jsx)(B.Z,{name:"contact",label:"\u8054\u7CFB\u4EBA",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA"}]})}),(0,e.jsx)(E.Z,{span:8,children:(0,e.jsx)(B.Z,{name:"mobile",label:(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(d.Z,{align:"center",children:["\u624B\u673A\u53F7",(0,e.jsx)("div",{style:{color:"#19be6e",paddingLeft:8},onClick:function(){(0,f.vN)({id:localStorage.getItem("companyid")}).then(function(s){if(s.data.phone){var r;(r=A.current)===null||r===void 0||r.setFieldValue("mobile",s.data.mobile)}else b.ZP.error("\u6682\u65E0\u624B\u673A\u53F7")})},children:"\u83B7\u53D6\u4F01\u4E1A\u624B\u673A\u53F7"})]})}),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7"},function(){return{validator:function(s,r){var j=(0,H.Zj)(r);return typeof j=="boolean"?Promise.resolve():Promise.reject(new Error(j))}}}]})}),(0,e.jsx)(E.Z,{span:8,children:(0,e.jsx)(B.Z,{name:"phone",label:(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(d.Z,{align:"center",children:["\u8054\u7CFB\u7535\u8BDD",(0,e.jsx)("div",{style:{color:"#19be6e",paddingLeft:8},onClick:function(){(0,f.vN)({id:localStorage.getItem("companyid")}).then(function(s){if(s.data.phone){var r;(r=A.current)===null||r===void 0||r.setFieldValue("phone",s.data.phone)}else b.ZP.error("\u6682\u65E0\u8054\u7CFB\u7535\u8BDD")})},children:"\u83B7\u53D6\u4F01\u4E1A\u8054\u7CFB\u7535\u8BDD"})]})}),placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD"}]})}),(0,e.jsx)(E.Z,{span:8,children:(0,e.jsx)(B.Z,{name:"email",label:(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(d.Z,{align:"center",children:["\u90AE\u7BB1",(0,e.jsx)("div",{style:{color:"#19be6e",paddingLeft:8},onClick:function(){(0,f.vN)({id:localStorage.getItem("companyid")}).then(function(s){if(s.data.phone){var r;(r=A.current)===null||r===void 0||r.setFieldValue("email",s.data.email)}else b.ZP.error("\u6682\u65E0\u90AE\u7BB1")})},children:"\u83B7\u53D6\u4F01\u4E1A\u90AE\u7BB1"})]})}),placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u90AE\u7BB1"}]})})]})})})})},X=(0,U.connect)(function(T){var v=T.dictModel;return{dictModel:v}})(N),$=function(){var v=(0,i.useRef)(),K=(0,i.useState)([]),G=l()(K,2),x=G[0],w=G[1],A=(0,i.useState)(0),m=l()(A,2),s=m[0],r=m[1],j=(0,i.useState)(1),I=l()(j,2),k=I[0],y=I[1],re=(0,i.useState)(4),_=l()(re,2),ee=_[0],ne=_[1],ue=(0,i.useState)(!1),te=l()(ue,2),se=te[0],M=te[1],ie=(0,i.useState)({}),oe=l()(ie,2),Q=oe[0],ae=oe[1];(0,i.useEffect)(function(){(0,f.UE)({page:1,pagesize:12,sortby:"desc"}).then(function(C){w(C.data.rows?C.data.rows:[{},{}]),r(C.data.total)})},[]);var le=function(g){M(g),(0,f.UE)({page:1,pagesize:12,sortby:"desc"}).then(function(u){w(u.data.rows?u.data.rows:[{},{}]),r(u.data.total)})};return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(R.ZP,{theme:{token:{colorPrimary:"#19be6e"},components:{Button:{colorText:"#19be6e"}}},children:[(0,e.jsxs)("div",{style:{minHeight:"800px"},children:[(0,e.jsx)(d.Z,{justify:"flex-end",align:"center",children:(0,e.jsx)(L.ZP,{size:"large",type:"primary",onClick:function(){ae({}),M(!0)},children:"\u6DFB\u52A0\u90E8\u95E8"})}),(0,e.jsx)(F.Rs,{actionRef:v,ghost:!0,grid:{gutter:16,column:3},rowKey:"id",dataSource:x,request:h()(n()().mark(function C(){var g,u=arguments;return n()().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return g=u.length>0&&u[0]!==void 0?u[0]:{},Z.abrupt("return",(0,f.UE)({page:k,pagesize:ee,sort:"id",sortby:"desc"}).then(function(D){w(D.data.rows?D.data.rows:[]),r(D.data.total)}));case 2:case"end":return Z.stop()}},C)})),pagination:{current:k,pageSize:ee,total:s,hideOnSinglePage:!0,onChange:function(g,u){y(g),ne(u)},onShowSizeChange:function(g,u){y(g),ne(u)}},showActions:"hover",metas:{title:{dataIndex:"name"},content:{render:function(g,u){return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(p.Z,{children:[(0,e.jsx)(p.Z.Item,{span:24,label:"\u8054\u7CFB\u4EBA",children:u.contact}),(0,e.jsx)(p.Z.Item,{span:24,label:"\u624B\u673A\u53F7",children:u.mobile}),(0,e.jsx)(p.Z.Item,{span:24,label:"\u90AE\u7BB1",children:u.email}),(0,e.jsx)(p.Z.Item,{span:24,label:"\u8054\u7CFB\u7535\u8BDD",children:u.phone}),(0,e.jsx)(p.Z.Item,{span:24,label:"\u4F01\u4E1A\u540D\u79F0",children:u.company_name})]})})}},actions:{cardActionProps:"actions",render:function(g,u){return[(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{style:{width:"100%",display:"flex",justifyContent:"space-around"},children:[(0,e.jsx)(L.ZP,{size:"small",onClick:h()(n()().mark(function W(){return n()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:ae(u),M(!0);case 2:case"end":return D.stop()}},W)})),children:"\u7F16\u8F91"}),",",(0,e.jsx)(L.ZP,{size:"small",onClick:function(){S.Z.confirm({title:"\u5220\u9664\u90E8\u95E8",content:"\u786E\u5B9A\u5220\u9664\u90E8\u95E8\u5417\uFF1F",onOk:function(){(0,f.aY)({id:u.id}).then(function(D){var q;(q=v.current)===null||q===void 0||q.reload()})},onCancel:function(){console.log("Cancel")},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0})},children:"\u5220\u9664"})]})})]}}}})]}),(0,e.jsx)(S.Z,{open:se,title:Q&&Q.id?"\u7F16\u8F91\u90E8\u95E8\u4FE1\u606F":"\u6DFB\u52A0\u90E8\u95E8\u4FE1\u606F",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){M(!1)},children:(0,e.jsx)(X,{detail:Q,closeModel:le})})]})})},Y=$},70489:function(z,P,a){a.d(P,{lu:function(){return m},UE:function(){return f},L:function(){return i},Mm:function(){return h},Gc:function(){return v},vN:function(){return l},Cg:function(){return J},DH:function(){return c},Zq:function(){return O},mX:function(){return U},Os:function(){return k},du:function(){return r},EZ:function(){return B},Qt:function(){return H},xP:function(){return V},s4:function(){return Y},Mt:function(){return x},Jm:function(){return w},Ld:function(){return L},aY:function(){return p},T7:function(){return S},XE:function(){return F},Cl:function(){return G},su:function(){return X},z0:function(){return T},Dz:function(){return $},NJ:function(){return d},cL:function(){return R},Og:function(){return N},Px:function(){return e},h9:function(){return I},FI:function(){return E},mj:function(){return b},un:function(){return j}});var t=a(75334),n=a(55375),o={CompanyFamousList:n.xw+"/company/famous_list",CompanyProbationList:n.xw+"/company/probation_list",CompanyInfo:n.xw+"/company/info",CompanyDetailInfo:n.xw+"/company/detail_info",CompanyEdit:n.xw+"/company/edit",CompanyPhotoUpload:n.xw+"/company/photo_upload",CompanyLicenseUpload:n.xw+"/company/license_upload",CompanyDepartmentAdd:n.xw+"/company/department_add",CompanyDepartmentDel:n.xw+"/company/department_del",CompanyDepartmentEdit:n.xw+"/company/department_edit",CompanyDepartmentList:n.xw+"/company/department_list",CompanyRecommentResume:n.xw+"/company/recomment_resume",CompanyProfile:n.xw+"/company/profile",CompanyResumeList:n.xw+"/company/resume_list",CompanyInterviewList:n.xw+"/company/interview_list",CompanyTalentPoolList:n.xw+"/company/talent_pool_list",CompanyTalentPoolAdd:n.xw+"/company/talent_pool_add",CompanyTalentPoolDel:n.xw+"/company/talent_pool_del",CompanyResumeRecycleList:n.xw+"/company/resume_recycle_list",CompanyResumeRecycle:n.xw+"/company/resume_recycle",CompanyResumeRecover:n.xw+"/company/resume_recover",CompanyInterviewAdd:n.xw+"/company/interview_add",CompanyInterviewDel:n.xw+"/company/interview_del",CompanyViewedContactList:n.xw+"/company/viewed_contact_list",CompanyInterviewAdmission:n.xw+"/company/interview_admission",CompanyFee:n.xw+"/company/fee",CompanyPwdEdit:n.xw+"/company/pwd_edit",CompanyEmailEdit:n.xw+"/company/email_edit",CompanyCustomerCodeAdd:n.xw+"/companycustomercode/add",CompanyCustomerCodeDel:n.xw+"/companycustomercode/del",CompanyCustomerCodeUpdate:n.xw+"/companycustomercode/update",CompanyCustomerCodeList:n.xw+"/companycustomercode/list",CompanyCustomerCodeDetail:n.xw+"/companycustomercode/detail",CompanyRecruiters:n.xw+"/company/recruiters",JobseekerResetPwd:n.xw+"/jobseeker/resetpwd",CompanySearch:n.xw+"/company/search",CompanyRecrBookList:n.xw+"/company/recr_book_list"},h=(0,t.y)(o.CompanyFamousList),c=(0,t.y)(o.CompanyProbationList),l=(0,t.y)(o.CompanyInfo),i=(0,t.y)(o.CompanyDetailInfo),F=(0,t.L)(o.CompanyEdit),R=(0,t.L)(o.CompanyPhotoUpload),d=(0,t.L)(o.CompanyLicenseUpload),L=(0,t.L)(o.CompanyDepartmentAdd),p=(0,t.L)(o.CompanyDepartmentDel),S=(0,t.L)(o.CompanyDepartmentEdit),f=(0,t.y)(o.CompanyDepartmentList),U=(0,t.y)(o.CompanyRecommentResume),O=(0,t.y)(o.CompanyProfile),B=(0,t.y)(o.CompanyResumeList),J=(0,t.y)(o.CompanyInterviewList),V=(0,t.y)(o.CompanyTalentPoolList),E=(0,t.L)(o.CompanyTalentPoolAdd),b=(0,t.L)(o.CompanyTalentPoolDel),H=(0,t.y)(o.CompanyResumeRecycleList),e=(0,t.L)(o.CompanyResumeRecycle),N=(0,t.L)(o.CompanyResumeRecover),X=(0,t.L)(o.CompanyInterviewAdd),$=(0,t.L)(o.CompanyInterviewDel),Y=(0,t.y)(o.CompanyViewedContactList),T=(0,t.L)(o.CompanyInterviewAdmission),v=(0,t.y)(o.CompanyFee),K=(0,t.L)(o.CompanyPwdEdit),G=(0,t.L)(o.CompanyEmailEdit),x=(0,t.L)(o.CompanyCustomerCodeAdd),w=(0,t.L)(o.CompanyCustomerCodeDel),A=(0,t.L)(o.CompanyCustomerCodeUpdate),m=(0,t.y)(o.CompanyCustomerCodeList),s=(0,t.y)(o.CompanyCustomerCodeDetail),r=(0,t.y)(o.CompanyRecruiters),j=(0,t.L)(o.JobseekerResetPwd),I=(0,t.L)(o.CompanySearch),k=(0,t.y)(o.CompanyRecrBookList)},89627:function(z,P,a){a.d(P,{P4:function(){return n},Zj:function(){return o},z1:function(){return t}});var t=function(c){if(c.length===18){var l=c.charAt(17),i;return l==="X"||l=="x"?i=10:i=parseInt(l,10),i%2===0?"\u5973":"\u7537"}else if(c.length===15){var F=parseInt(c.substring(13,15),10);return F%2===0?"\u5973":"\u7537"}else return"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801"},n=function(c){var l=/^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/;if(l.test(c))if(c.length==18){for(var i=new Array(7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2),F=new Array(1,0,10,9,8,7,6,5,4,3,2),R=0,d=0;d<17;d++)R+=c.substring(d,d+1)*i[d];var L=R%11,p=c.substring(17);return L==2?p=="X"||p=="x"?!0:"\u8EAB\u4EFD\u8BC1\u53F7\u7801\u9519\u8BEF":p==F[L]?!0:"\u8EAB\u4EFD\u8BC1\u53F7\u7801\u9519\u8BEF"}else return!0;else return"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801"},o=function(c){var l=/^(\+)?(0|86|17951)?1(3\d|4[579]|5\d|6\d|7\d|8\d|9\d)\d{8}$/;return l.test(c)?!0:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7"}}}]);
|