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__Jobseeker__List__index.a4088fb7.async.js 107KB

1
  1. "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[955],{67562:function(ze,De,b){var Ie=b(5574),F=b.n(Ie),u=b(71167),oe=b.n(u),pe=b(40190),Ze=b(62435),d=b(86492),Te=b.n(d),L=b(86074),Ce=function(fe){var ae=fe.defaultValue,we=fe.placeholder,_e=fe.onChange,Ee=(0,Ze.useState)(ae&&Te().decode(ae)),q=F()(Ee,2),h=q[0],Se=q[1],e=function(Re){Se(Re),_e(Re)};return(0,Ze.useEffect)(function(){if(ae){var ge=ae.replace(/<[^>]*>/g,"");e(ge?ae:"")}},[ae]),(0,L.jsx)("div",{children:(0,L.jsx)(oe(),{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:h,onChange:e,theme:"snow",placeholder:we})})};De.Z=Ce},67119:function(ze,De,b){var Ie=b(5574),F=b.n(Ie),u=b(62435),oe=b(59530),pe=b(55375),Ze=b(42075),d=b(68872),Te=b(98163),L=b(32443),Ce=b(86074),Me=function(ae){var we=ae.onUploadComplete,_e=ae.uploadTxt,Ee=ae.image_type,q=ae.form_name,h=ae.image_length,Se=ae.multiple,e=ae.imageUrl,ge=function(ce){ce&&we(ce)},Re=(0,u.useState)(e),Je=F()(Re,2),$e=Je[0],ke=Je[1];return(0,u.useEffect)(function(){ke(e)},[e]),(0,Ce.jsx)(Ce.Fragment,{children:(0,Ce.jsxs)(Ze.Z,{children:[(0,Ce.jsx)(L.Z,{label:_e,name:q,icon:null,title:_e,fieldProps:{maxCount:h,multiple:Se,fileList:[],listType:"picture-card",showUploadList:!1,customRequest:function(ce){var Le=new FormData;Le.append("image",ce.file),console.log(Le),(0,oe.request)(pe.FH+"/common/image/upload?imgtype="+Ee,{method:"post",data:Le,Headers:{Authorization:sessionStorage.getItem("token"),"X-Requested-With":null}}).then(function(Ae){ke(Ae.data.filename),ge(Ae.data.filename)}).catch(function(Ae){console.log(Ae),d.ZP.error("\u4E0A\u4F20\u5931\u8D25")})}}}),$e&&(0,Ce.jsx)(Te.Z,{src:"".concat(pe.VO).concat($e),width:102,height:102,style:{borderRadius:8}})]})})};De.Z=Me},62394:function(ze,De,b){b.r(De),b.d(De,{default:function(){return tn}});var Ie=b(5574),F=b.n(Ie),u=b(62435),oe=b(59530),pe=b(28459),Ze=b(15009),d=b.n(Ze),Te=b(99289),L=b.n(Te),Ce=b(95338),Me=b(42075),fe=b(26412),ae=b(78045),we=b(25278),_e=b(14726),Ee=b(17788),q=b(68872),h=b(39680),Se=b(55375),e=b(86074),ge={label:"name",value:"id"},Re=function(n){var i=n.dispatch,w=n.getId,Q=n.dictModel,p=n.openModel,M=(0,u.useState)({status:1,customer_id:0,id:0,audit_memo:""}),A=F()(M,2),I=A[0],B=A[1],W=(0,u.useRef)(),R=(0,u.useState)([]),s=F()(R,2),x=s[0],l=s[1],$=(0,u.useState)(0),V=F()($,2),r=V[0],P=V[1],U=(0,u.useState)(1),ie=F()(U,2),de=ie[0],he=ie[1],ee=(0,u.useState)(10),D=F()(ee,2),f=D[0],E=D[1],a=function(c){w(c)};(0,u.useEffect)(function(){p.openModal||W.current.reload()},[p.openModal]),(0,u.useEffect)(function(){i({type:"dictModel/getList",payload:{code:2004,type:"setPositionList"}}),i({type:"dictModel/getList",payload:{code:2009,type:"setAreaList"}}),i({type:"dictModel/getList",payload:{code:2005,type:"setPayList"}}),i({type:"dictModel/getList",payload:{code:2016,type:"setAccommodationRequirementList"}}),i({type:"dictModel/getList",payload:{code:2017,type:"setHolidayRestList"}}),i({type:"dictModel/getList",payload:{code:2018,type:"setLicenseList"}}),i({type:"dictModel/getList",payload:{code:2021,type:"setWorkExperienceList"}}),i({type:"dictModel/getList",payload:{code:2006,type:"setEducationList"}}),i({type:"dictModel/getList",payload:{code:2014,type:"setTitleList"}}),i({type:"dictModel/getList",payload:{code:2015,type:"setSkillCertificationeList"}}),i({type:"dictModel/getList",payload:{code:2007,type:"setOtherLanguageList"}}),i({type:"dictModel/getList",payload:{code:2008,type:"setDegreeList"}}),i({type:"dictModel/getList",payload:{code:2027,type:"setIndustryPostList"}}),i({type:"dictModel/getList",payload:{code:2010,type:"setPoliticalList"}})},[]);var t=function(c){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(Me.Z,{direction:"vertical",style:{width:"100%"},children:(0,e.jsxs)(fe.Z,{title:"\u57FA\u672C\u4FE1\u606F",bordered:!0,column:3,contentStyle:{fontWeight:"bold"},labelStyle:{width:180},children:[(0,e.jsx)(fe.Z.Item,{label:"\u82F1\u8BED",children:c.english_txt}),(0,e.jsx)(fe.Z.Item,{label:"\u56FD\u8BED",children:c.mandarin_txt}),(0,e.jsx)(fe.Z.Item,{label:"\u7CA4\u8BED",children:c.cantonese_txt}),(0,e.jsx)(fe.Z.Item,{label:"\u804C\u79F0",children:c.title_txt}),(0,e.jsx)(fe.Z.Item,{label:"\u653F\u6CBB\u9762\u8C8C",children:c.political_status_txt}),(0,e.jsx)(fe.Z.Item,{label:"\u6708\u85AA\u8981\u6C42\u8303\u56F4",children:c.salary_range_txt}),(0,e.jsx)(fe.Z.Item,{label:"\u5BA1\u6838\u72B6\u6001",children:(0,e.jsxs)(ae.ZP.Group,{size:"small",defaultValue:c.status,onChange:function(){var g=L()(d()().mark(function _(v){var y,Y;return d()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.next=2,(0,h.d5h)({customer_id:c.customer_id,id:c.id,status:v.target.value});case 2:Y=k.sent,(y=W.current)===null||y===void 0||y.reload();case 4:case"end":return k.stop()}},_)}));return function(_){return g.apply(this,arguments)}}(),children:[(0,e.jsx)(ae.ZP,{value:1,children:"\u5F85\u5BA1"}),(0,e.jsx)(ae.ZP,{value:2,children:"\u901A\u8FC7"}),(0,e.jsx)(ae.ZP,{value:3,children:"\u4E0D\u901A\u8FC7"})]})}),c.status==3?(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(fe.Z.Item,{label:"\u4E0D\u901A\u8FC7\u539F\u56E0",children:(0,e.jsx)(we.Z,{size:"small",placeholder:"\u8F93\u5165\u539F\u56E0,\u6309\u56DE\u8F66\u952E\u4FDD\u5B58",defaultValue:c.status_txt,onPressEnter:function(){var g=L()(d()().mark(function _(v){var y,Y;return d()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.next=2,(0,h.d5h)({customer_id:c.customer_id,id:c.id,status:3,audit_memo:v.target.value});case 2:Y=k.sent,(y=W.current)===null||y===void 0||y.reload();case 4:case"end":return k.stop()}},_)}));return function(_){return g.apply(this,arguments)}}()})})}):c.status_txt]})})})};return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(pe.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,e.jsx)(Ce.Z,{size:"small",scroll:{y:480,x:"auto"},bordered:!0,actionRef:W,dataSource:x,search:{span:8,labelWidth:"auto"},rowSelection:{type:"checkbox"},expandable:{expandedRowRender:t},columns:[{title:"\u7B5B\u9009\u65E5\u671F",dataIndex:"date_range",hidden:!0,width:200,valueType:"dateRange"},{title:"\u59D3\u540D",dataIndex:"seekername",width:200},{title:"\u6027\u522B",dataIndex:"gender",width:200,valueType:"select",valueEnum:{\u7537:"\u7537",\u5973:"\u5973"}},{title:"\u6559\u80B2\u7A0B\u5EA6",dataIndex:"education_txt",width:200,search:!1},{title:"\u6559\u80B2\u7A0B\u5EA6",dataIndex:"education",width:200,hidden:!0,valueType:"select",fieldProps:{fieldNames:ge,options:Q.educationList}},{title:"\u82F1\u8BED",dataIndex:"english",width:200,hidden:!0,valueType:"select",fieldProps:{fieldNames:ge,options:Q.degreeList}},{title:"\u56FD\u8BED",dataIndex:"mandarin",width:200,hidden:!0,valueType:"select",fieldProps:{fieldNames:ge,options:Q.degreeList}},{title:"\u7CA4\u8BED",dataIndex:"cantonese",width:200,hidden:!0,valueType:"select",fieldProps:{fieldNames:ge,options:Q.degreeList}},{title:"\u804C\u79F0",dataIndex:"title",width:200,hidden:!0,valueType:"select",fieldProps:{fieldNames:ge,options:Q.titleList}},{title:"\u653F\u6CBB\u9762\u8C8C",dataIndex:"political_status",width:200,hidden:!0,valueType:"select",fieldProps:{fieldNames:ge,options:Q.politicalList}},{title:"\u6708\u85AA\u8981\u6C42",dataIndex:"salary_range_desire",width:200,hidden:!0,valueType:"select",fieldProps:{fieldNames:ge,options:Q.payList}},{title:"\u5BA1\u6838\u72B6\u6001",dataIndex:"status",width:200,hidden:!0,valueType:"select",valueEnum:{0:"\u5168\u90E8",1:"\u5F85\u5BA1\u6838",2:"\u5BA1\u6838\u901A\u8FC7",3:"\u5BA1\u6838\u4E0D\u901A\u8FC7"}},{title:"\u7B80\u5386\u662F\u5426\u53EF\u89C1",dataIndex:"hide_resume",width:200,search:!1,render:function(c,g){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("span",{children:g.hide_resume==1?"\u53EF\u89C1":"\u4E0D\u53EF\u89C1"})})}},{title:"\u7B80\u5386\u662F\u5426\u5728\u5BB6\u653F\u6A21\u5757\u53EF\u89C1",dataIndex:"house_keeping_status",width:200,search:!1,render:function(c,g){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("span",{children:g.house_keeping_status==1?"\u53EF\u89C1":"\u4E0D\u53EF\u89C1"})})}},{title:"\u64CD\u4F5C",key:"option",valueType:"option",render:function(c,g,_){return[(0,e.jsx)(_e.ZP,{type:"link",onClick:function(){a(g),i({type:"openModel/getOpenModal",payload:!0})},children:"\u7F16\u8F91"},"1"),(0,e.jsx)(_e.ZP,{type:"link",onClick:function(){a(g),i({type:"openModel/getOpenResumeHelpModal",payload:!0})},children:"\u5DE5\u4F5C\u5E2E\u6276\u60C5\u51B5"},"2"),(0,e.jsx)(_e.ZP,{type:"link",onClick:function(){a(g),i({type:"openModel/getOpenResumeDetailModal",payload:!0})},children:"\u9884\u89C8\u7B80\u5386"},"3"),(0,e.jsx)(_e.ZP,{type:"link",onClick:function(){a(g),i({type:"openModel/getOpenExportModal",payload:!0})},children:"\u5BFC\u51FA\u767B\u8BB0\u8868"},"4")]}}],rowKey:"id",pagination:{current:de,pageSize:f,showSizeChanger:!0,total:r,pageSizeOptions:[9,18,27,99],onChange:function(c,g){he(c),E(g)},onShowSizeChange:function(c,g){he(c),E(g)}},request:L()(d()().mark(function C(){var c,g=arguments;return d()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return c=g.length>0&&g[0]!==void 0?g[0]:{},v.abrupt("return",(0,h.k1T)({page:de,pagesize:f,sort:"id",sortby:"desc",keyword:c.seekername,gender:c.gender,education:c.education,english:c.english,mandarin:c.mandarin,cantonese:c.cantonese,title:c.title,political_status:c.political_status,salary_range_desire:c.salary_range_desire,status:c.status?Number(c.status):0,start_date:c.date_range?c.date_range[0]:"",end_date:c.date_range?c.date_range[1]:""}).then(function(y){l(y.data.seekers),P(y.data.total)}));case 2:case"end":return v.stop()}},C)})),toolBarRender:function(){return[(0,e.jsx)(_e.ZP,{type:"primary",onClick:function(g){Ee.Z.confirm({title:"\u8BF7\u9009\u62E9\u5BF9\u6279\u91CF\u6570\u636E\u5BA1\u6838",content:(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(Me.Z,{direction:"vertical",style:{width:"100%",padding:20},children:[(0,e.jsxs)(ae.ZP.Group,{size:"small",onChange:function(){var _=L()(d()().mark(function v(y){var Y;return d()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:(Y=W.current)===null||Y===void 0||Y.reload();case 1:case"end":return k.stop()}},v)}));return function(v){return _.apply(this,arguments)}}(),children:[(0,e.jsx)(ae.ZP,{value:2,children:"\u901A\u8FC7"}),(0,e.jsx)(ae.ZP,{value:3,children:"\u4E0D\u901A\u8FC7"})]}),(0,e.jsx)("h4",{children:"\u5982\u4E0D\u901A\u8FC7\u8BF7\u8F93\u5165\u539F\u56E0,\u6309\u56DE\u8F66\u952E\u4FDD\u5B58\uFF0C\u4E5F\u53EF\u4E0D\u586B"}),(0,e.jsx)(we.Z,{style:{width:"100%"},placeholder:"\u6B64\u5904\u4E0D\u901A\u8FC7\u539F\u56E0",defaultValue:g.status_txt,onPressEnter:function(){var _=L()(d()().mark(function v(y){var Y,J;return d()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.next=2,(0,h.d5h)({customer_id:g.customer_id,id:g.id,status:3,audit_memo:y.target.value});case 2:J=O.sent,(Y=W.current)===null||Y===void 0||Y.reload();case 4:case"end":return O.stop()}},v)}));return function(v){return _.apply(this,arguments)}}()})]})}),onOk:function(){},onCancel:function(){console.log("Cancel")},okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",centered:!0})},children:"\u6279\u91CF\u5BA1\u6838"}),(0,e.jsx)(_e.ZP,{type:"primary",onClick:function(){q.ZP.info("\u6570\u636E\u5BFC\u51FA\u9700\u8981\u65F6\u95F4\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85"),(0,h.C6i)().then(function(g){var _=Se.VO+g.data.excel_url;window.open(_),q.ZP.info("\u6570\u636E\u5BFC\u51FA\u5B8C\u6BD5")})},children:"\u5BFC\u51FA\u6570\u636E"})]},headerTitle:"\u7B80\u5386\u5217\u8868"})})})},Je=(0,oe.connect)(function(m){var n=m.dictModel,i=m.openModel;return{dictModel:n,openModel:i}})(Re),$e=b(92398),ke=b(97269),ve=b(5966),ce=b(64317),Le=b(8214),Ae=b(31199),Oe=b(86250),be=b(71230),K=b(15746),Ye=b(67119),rt=function(n){if(n.length===18){var i=n.charAt(17),w;return i==="X"||i=="x"?w=10:w=parseInt(i,10),w%2===0?"\u5973":"\u7537"}else if(n.length===15){var Q=parseInt(n.substring(13,15),10);return Q%2===0?"\u5973":"\u7537"}else return"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801"},qe=function(n){var i=/^(^[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(i.test(n))if(n.length==18){for(var w=new Array(7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2),Q=new Array(1,0,10,9,8,7,6,5,4,3,2),p=0,M=0;M<17;M++)p+=n.substring(M,M+1)*w[M];var A=p%11,I=n.substring(17);return A==2?I=="X"||I=="x"?!0:(q.ZP.error("\u8EAB\u4EFD\u8BC1\u53F7\u7801\u9519\u8BEF"),!1):I==Q[A]?!0:(q.ZP.error("\u8EAB\u4EFD\u8BC1\u53F7\u7801\u9519\u8BEF"),!1)}else return!0;else return q.ZP.error("\u8BF7\u8F93\u5165\u6709\u6548\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801"),!1},it=function(n){var i=/^(\+)?(0|86|17951)?1(3\d|4[579]|5\d|6\d|7\d|8\d|9\d)\d{8}$/;return i.test(n)?!0:(q.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7"),!1)},Ne={label:"name",value:"id"},Ve={label:"name",value:"id",children:"children"},st=function(n){var i=n.dispatch,w=n.dictModel,Q=n.openModel,p=n.id,M=(0,u.useRef)(),A=(0,u.useState)(null),I=F()(A,2),B=I[0],W=I[1];(0,u.useEffect)(function(){i({type:"dictModel/getList",payload:{code:2004,type:"setPositionList"}}),i({type:"dictModel/getList",payload:{code:2009,type:"setAreaList"}}),i({type:"dictModel/getList",payload:{code:2005,type:"setPayList"}}),i({type:"dictModel/getList",payload:{code:2016,type:"setAccommodationRequirementList"}}),i({type:"dictModel/getList",payload:{code:2017,type:"setHolidayRestList"}}),i({type:"dictModel/getList",payload:{code:2018,type:"setLicenseList"}}),i({type:"dictModel/getList",payload:{code:2021,type:"setWorkExperienceList"}}),i({type:"dictModel/getList",payload:{code:2006,type:"setEducationList"}}),i({type:"dictModel/getList",payload:{code:2014,type:"setTitleList"}}),i({type:"dictModel/getList",payload:{code:2015,type:"setSkillCertificationeList"}}),i({type:"dictModel/getList",payload:{code:2007,type:"setOtherLanguageList"}}),i({type:"dictModel/getList",payload:{code:2008,type:"setDegreeList"}}),i({type:"dictModel/getList",payload:{code:2027,type:"setIndustryPostList"}}),i({type:"dictModel/getList",payload:{code:2010,type:"setPoliticalList"}})},[]);var R=(0,u.useState)(""),s=F()(R,2),x=s[0],l=s[1],$=function(r){l(r)};return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(pe.ZP,{theme:{token:{colorPrimary:"#4FBE70"},components:{Segmented:{itemSelectedBg:"#19be6e",itemSelectedColor:"#ffffff"}}},children:(0,e.jsx)(ke.A,{formRef:M,request:L()(d()().mark(function V(){var r;return d()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:if(!p){U.next=10;break}return U.next=3,(0,h.JAg)({customer_id:p.customer_id});case 3:return r=U.sent,r.data.reg_arr=[r.data.reg_level1?r.data.reg_level1:0,r.data.reg_level2?r.data.reg_level2:0,r.data.reg_level3?r.data.reg_level3:0,r.data.reg_level4?r.data.reg_level4:0],r.data.now_arr=[r.data.now_level1?r.data.now_level1:0,r.data.now_level2?r.data.now_level2:0,r.data.now_level3?r.data.now_level3:0,r.data.now_level4?r.data.now_level4:0],r.data.native_arr=["",r.data.native_place_txt?r.data.native_place_txt:0],l(r.data.photo),W(r.data),U.abrupt("return",r.data);case 10:case"end":return U.stop()}},V)})),submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(r,P){return(0,e.jsxs)(Oe.Z,{justify:"flex-end",children:[" ",(0,e.jsx)(Me.Z,{children:P})]})},onReset:function(){i({type:"openModel/getOpenModal",payload:!1})}},onFinish:function(){var V=L()(d()().mark(function r(P){var U,ie,de,he,ee,D,f;return d()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:for(P.photo=x||"",U=0;U<4;U++)P["reg_level".concat(U+1)]=P.reg_arr[U]||0;for(ie=0;ie<4;ie++)P["now_level".concat(ie+1)]=P.now_arr[ie]||0;if(P.native_arr&&P.native_arr.length==1?q.ZP.warning("\u8BF7\u9009\u62E9\u5E02"):P.native_place=B&&B.native_place!=0?B.native_place:P.native_arr[1],de=P.id_number.substring(6,10),he=P.id_number.substring(10,12),ee=P.id_number.substring(12,14),P.dob=de+"-"+he+"-"+ee,P.gender=rt(P.id_number),delete P.reg_arr,delete P.now_arr,delete P.native_arr,!B){a.next=21;break}return P.id=B.id,P.customer_id=B.customer_id,a.next=17,(0,h.d5h)(P);case 17:D=a.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),a.next=26;break;case 21:return a.next=23,(0,h.dwg)(P);case 23:f=a.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),i({type:"openModel/getOpenModal",payload:!1});case 26:case"end":return a.stop()}},r)}));return function(r){return V.apply(this,arguments)}}(),children:(0,e.jsxs)(be.Z,{gutter:[16,16],children:[(0,e.jsx)(K.Z,{span:24,style:{display:"flex"},children:(0,e.jsx)(Ye.Z,{multiple:!1,form_name:"photo",image_length:1,uploadTxt:"\u4E2A\u4EBA\u7167\u7247",image_type:3,imageUrl:x,onUploadComplete:$})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ve.Z,{label:"\u59D3\u540D",name:"name",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D"})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ve.Z,{label:"\u8EAB\u4EFD\u8BC1",name:"id_number",placeholder:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1",validateTrigger:"onBlur",rules:[{required:!1},function(){return{validator:function(r,P){var U=qe(P);return typeof U=="boolean"?Promise.resolve():Promise.reject(new Error(U))}}}]})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ce.Z,{name:"education",label:"\u5B66\u5386",fieldProps:{fieldNames:Ne},options:w.educationList})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(Le.Z,{label:"\u6237\u53E3\u6240\u5728\u5730",name:"reg_arr",fieldProps:{fieldNames:Ve,options:w.areaList,changeOnSelect:!0},placeholder:"\u8BF7\u9009\u62E9\u6237\u53E3\u6240\u5728\u5730"})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(Le.Z,{label:"\u73B0\u5C45\u5730",name:"now_arr",fieldProps:{fieldNames:Ve,options:w.areaList,changeOnSelect:!0},placeholder:"\u8BF7\u9009\u62E9\u73B0\u5C45\u5730",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u73B0\u5C45\u5730"}]})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ce.Z,{name:"title",label:"\u804C\u79F0",fieldProps:{fieldNames:Ne},options:w.titleList})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ce.Z,{name:"marital_status",label:"\u5A5A\u59FB\u72B6\u51B5",fieldProps:{fieldNames:Ne},options:w.maritalList})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ce.Z,{name:"ethnicity",label:"\u6C11\u65CF",fieldProps:{fieldNames:Ne},options:w.ethnicityList})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ce.Z,{name:"political_status",label:"\u653F\u6CBB\u9762\u8C8C",fieldProps:{fieldNames:Ne},options:w.politicalList})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(Le.Z,{label:"\u7C4D\u8D2F",name:"native_arr",fieldProps:{fieldNames:Ve,options:w.areaList,changeOnSelect:!0},placeholder:"\u8BF7\u9009\u62E9\u7C4D\u8D2F"})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(Ae.Z,{label:"\u8EAB\u9AD8(\u5398\u7C73cm)",placeholder:"\u8BF7\u8F93\u5165\u8EAB\u9AD8(\u5398\u7C73cm)",name:"height",min:0,max:300})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(Ae.Z,{label:"\u4F53\u91CD(\u5343\u514Bkg)",placeholder:"\u8BF7\u8F93\u5165\u4F53\u91CD(\u5343\u514Bkg)",name:"weight",min:0,max:300})})]})})})})},lt=(0,oe.connect)(function(m){var n=m.dictModel,i=m.openModel;return{dictModel:n,openModel:i}})(st),at=function(n){var i=n.dispatch,w=n.dictModel,Q=n.openModel,p=n.id,M=(0,u.useRef)(),A=(0,u.useState)(null),I=F()(A,2),B=I[0],W=I[1];return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(pe.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,e.jsx)(ke.A,{formRef:M,request:L()(d()().mark(function R(){var s;return d()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!p){l.next=6;break}return l.next=3,(0,h.dQ0)({customer_id:p.customer_id});case 3:return s=l.sent,W(s.data),l.abrupt("return",s.data);case 6:case"end":return l.stop()}},R)})),submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(s,x){return(0,e.jsxs)(Oe.Z,{justify:"flex-end",children:[" ",(0,e.jsx)(Me.Z,{children:x})]})},onReset:function(){}},onFinish:function(){var R=L()(d()().mark(function s(x){var l,$;return d()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(console.log(x),!B){r.next=10;break}return x.id=B.id,x.customer_id=B.customer_id,r.next=6,(0,h.vnr)(x);case 6:l=r.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),r.next=14;break;case 10:return r.next=12,(0,h.aWE)(x);case 12:$=r.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F");case 14:case"end":return r.stop()}},s)}));return function(s){return R.apply(this,arguments)}}(),children:(0,e.jsxs)(be.Z,{gutter:[16,16],children:[(0,e.jsx)(K.Z,{span:12,children:(0,e.jsx)(ve.Z,{label:"\u56FA\u8BDD",name:"landline",placeholder:"\u8BF7\u8F93\u5165\u56FA\u8BDD"})}),(0,e.jsx)(K.Z,{span:12,children:(0,e.jsx)(ve.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)(K.Z,{span:12,children:(0,e.jsx)(ve.Z,{label:"QQ",name:"qq",placeholder:"\u8BF7\u8F93\u5165QQ"})}),(0,e.jsx)(K.Z,{span:12,children:(0,e.jsx)(ve.Z,{label:"\u4E2A\u4EBA\u7F51\u7AD9",name:"personal_website",placeholder:"\u8BF7\u8F93\u5165\u4E2A\u4EBA\u7F51\u7AD9"})}),(0,e.jsx)(K.Z,{span:12,children:(0,e.jsx)(ve.Z,{label:"\u901A\u4FE1\u5730\u5740",name:"mailing_address",placeholder:"\u8BF7\u8F93\u5165\u901A\u4FE1\u5730\u5740"})}),(0,e.jsx)(K.Z,{span:12,children:(0,e.jsx)(ve.Z,{label:"\u90AE\u7F16",name:"postal_code",placeholder:"\u8BF7\u8F93\u5165\u90AE\u7F16"})})]})})})})},dt=(0,oe.connect)(function(m){var n=m.dictModel,i=m.openModel;return{dictModel:n,openModel:i}})(at),Fe=b(50727),ut=b(98163),ot=function(n){var i=n.dispatch,w=n.dictModel,Q=n.openModel,p=n.id,M=(0,u.useRef)(),A=(0,u.useState)([]),I=F()(A,2),B=I[0],W=I[1],R=(0,u.useState)([]),s=F()(R,2),x=s[0],l=s[1],$=(0,u.useState)([]),V=F()($,2),r=V[0],P=V[1],U=(0,u.useState)(0),ie=F()(U,2),de=ie[0],he=ie[1],ee=(0,u.useState)(""),D=F()(ee,2),f=D[0],E=D[1],a=function(C){E(C)};return(0,u.useEffect)(function(){i({type:"dictModel/getList",payload:{code:2007,type:"setOtherLanguageList"}}),i({type:"dictModel/getList",payload:{code:2008,type:"setDegreeList"}}),i({type:"dictModel/getList",payload:{code:2023,type:"setVehicleList"}}),i({type:"dictModel/getList",payload:{code:2024,type:"setOvertimeList"}})},[]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(pe.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,e.jsx)(Fe.Z,{actionRef:M,rowKey:"id",loading:!1,request:L()(d()().mark(function t(){var C;return d()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,(0,h.OcR)({customer_id:p.customer_id,sortby:"asc",sort:"id"});case 2:return C=g.sent,l(C.data.jobapplicantcertificates),P(C.data.jobapplicantcertificates),he(C.data.total),g.abrupt("return",{data:C.data.jobapplicantcertificates,total:C.data.total,success:!0});case 7:case"end":return g.stop()}},t)})),columns:[{title:"ID",dataIndex:"id",editable:!1,width:100},{title:"\u8BC1\u4E66\u540D\u79F0",dataIndex:"name",formItemProps:{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC1\u4E66\u540D\u79F0"}]}},{title:"\u8BC1\u4E66\u63CF\u8FF0",dataIndex:"description",formItemProps:{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC1\u4E66\u63CF\u8FF0"}]}},{title:"\u8BC1\u4E66",dataIndex:"certificate_photo",formItemProps:{rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u8BC1\u4E66"}]},render:function(C,c){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(ut.Z,{src:"".concat(Se.VO+c.certificate_photo),width:40,height:40,preview:!1})})},renderFormItem:function(C,c,g){var _=g.isEditable;return _?(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(Ye.Z,{multiple:!1,form_name:"certificate_photo",image_length:1,uploadTxt:"\u8BC1\u4E66",image_type:2,imageUrl:c.certificate_photo,onUploadComplete:a})}):(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(Ye.Z,{multiple:!1,form_name:"certificate_photo",image_length:1,uploadTxt:"\u8BC1\u4E66",image_type:2,imageUrl:"",onUploadComplete:a})})}},{title:"\u64CD\u4F5C",valueType:"option",width:200,render:function(C,c,g,_){return[(0,e.jsx)("a",{onClick:function(){var y;_==null||(y=_.startEditable)===null||y===void 0||y.call(_,c.id)},children:"\u7F16\u8F91"},"editable"),(0,e.jsx)("a",{onClick:function(){},children:"\u5220\u9664"},"delete")]}}],editable:{type:"single",editableKeys:B,onSave:function(){var t=L()(d()().mark(function c(g,_,v){var y,Y;return d()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(console.log(g,_,v),_.customer_id=p.customer_id,_.certificate_photo=f||"",delete _.index,!(g&&r.findIndex(function(O){return O.id===g})!==-1)){k.next=13;break}return _.id=g,k.next=8,(0,h.QSI)(_);case 8:y=k.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),M.current.reload(),k.next=19;break;case 13:return delete _.id,k.next=16,(0,h.jnc)(_);case 16:Y=k.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),M.current.reload();case 19:case"end":return k.stop()}},c)}));function C(c,g,_){return t.apply(this,arguments)}return C}(),onChange:W},recordCreatorProps:{position:"bottom",record:function(){return{id:x.length>0?(x[x.length-1].id+1).toFixed(0):0}}}})})})},ct=(0,oe.connect)(function(m){var n=m.dictModel,i=m.openModel;return{dictModel:n,openModel:i}})(ot),pt=function(n){var i=n.dispatch,w=n.dictModel,Q=n.openModel,p=n.id,M=(0,u.useRef)(),A=(0,u.useState)([]),I=F()(A,2),B=I[0],W=I[1],R=(0,u.useState)([]),s=F()(R,2),x=s[0],l=s[1],$=(0,u.useState)([]),V=F()($,2),r=V[0],P=V[1],U=(0,u.useState)(0),ie=F()(U,2),de=ie[0],he=ie[1];return(0,u.useEffect)(function(){i({type:"dictModel/getList",payload:{code:2007,type:"setOtherLanguageList"}}),i({type:"dictModel/getList",payload:{code:2008,type:"setDegreeList"}}),i({type:"dictModel/getList",payload:{code:2023,type:"setVehicleList"}}),i({type:"dictModel/getList",payload:{code:2024,type:"setOvertimeList"}})},[]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(pe.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,e.jsx)(Fe.Z,{actionRef:M,rowKey:"id",loading:!1,request:L()(d()().mark(function ee(){var D;return d()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,(0,h.pgG)({customer_id:p.customer_id,sortby:"asc",sort:"id"});case 2:return D=E.sent,l(D.data.jobapplicantexperiences),P(D.data.jobapplicantexperiences),he(D.data.total),E.abrupt("return",{data:D.data.jobapplicantexperiences,total:D.data.total,success:!0});case 7:case"end":return E.stop()}},ee)})),columns:[{title:"ID",dataIndex:"id",editable:!1,width:100},{title:"\u8D77\u6B62\u65F6\u95F4",dataIndex:"date",valueType:"dateRange",fieldProps:{format:"YYYY-MM"},width:200,formItemProps:{rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8D77\u6B62\u65F6\u95F4"}]},render:function(D,f,E,a){return(0,e.jsx)(e.Fragment,{children:"".concat(f.start_year,"-").concat(f.start_month,"\u81F3").concat(f.end_year,"-").concat(f.end_month)})}},{title:"\u662F\u5426\u81F3\u4ECA",dataIndex:"end_today",width:100,valueType:"select",fieldProps:{options:[{label:"\u975E\u81F3\u4ECA",value:1},{label:"\u81F3\u4ECA",value:2}]},formItemProps:{rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u81F3\u4ECA"}]}},{title:"\u516C\u53F8\u540D\u79F0",dataIndex:"company_name",formItemProps:{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u516C\u53F8\u540D\u79F0"}]}},{title:"\u804C\u4F4D",dataIndex:"position",formItemProps:{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u804C\u4F4D"}]}},{title:"\u79BB\u804C\u539F\u56E0",dataIndex:"reason_for_leaving",formItemProps:{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u79BB\u804C\u539F\u56E0"}]}},{title:"\u64CD\u4F5C",valueType:"option",width:200,render:function(D,f,E,a){return[(0,e.jsx)("a",{onClick:function(){var C;f.date=["".concat(f.start_year,"-").concat(f.start_month),"".concat(f.end_year,"-").concat(f.end_month)],a==null||(C=a.startEditable)===null||C===void 0||C.call(a,f.id)},children:"\u7F16\u8F91"},"editable"),(0,e.jsx)("a",{onClick:function(){},children:"\u5220\u9664"},"delete")]}}],editable:{type:"single",editableKeys:B,onSave:function(){var ee=L()(d()().mark(function f(E,a,t){var C,c,g,_;return d()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(console.log(E,a,t),a.customer_id=p.customer_id,C=a.date[0].split("-"),c=a.date[1].split("-"),a.start_year=parseInt(C[0],10),a.start_month=parseInt(C[1],10),a.end_year=parseInt(c[0],10),a.end_month=parseInt(c[1],10),delete a.date,delete a.index,!(E&&r.findIndex(function(Y){return Y.id===E})!==-1)){y.next=19;break}return a.id=E,y.next=14,(0,h.lbw)(a);case 14:g=y.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),M.current.reload(),y.next=25;break;case 19:return delete a.id,y.next=22,(0,h.ah5)(a);case 22:_=y.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),M.current.reload();case 25:case"end":return y.stop()}},f)}));function D(f,E,a){return ee.apply(this,arguments)}return D}(),onChange:W},recordCreatorProps:{position:"bottom",record:function(){return{id:x.length>0?(x[x.length-1].id+1).toFixed(0):0}}}})})})},ht=(0,oe.connect)(function(m){var n=m.dictModel,i=m.openModel;return{dictModel:n,openModel:i}})(pt),xt=b(19109),Qe=b(97462),mt=b(23323),ft=b(67562),vt=function(n){var i=n.dispatch,w=n.dictModel,Q=n.openModel,p=n.id,M=(0,u.useRef)(),A=(0,u.useState)(null),I=F()(A,2),B=I[0],W=I[1];return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(pe.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,e.jsx)(ke.A,{formRef:M,request:L()(d()().mark(function R(){var s;return d()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!p){l.next=6;break}return l.next=3,(0,h.E2U)({customer_id:p.customer_id});case 3:return s=l.sent,W(s.data),l.abrupt("return",s.data);case 6:case"end":return l.stop()}},R)})),submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(s,x){return(0,e.jsxs)(Oe.Z,{justify:"flex-end",children:[" ",(0,e.jsx)(Me.Z,{children:x})]})},onReset:function(){W(null),i({type:"openModel/getOpenModal",payload:!1})}},onFinish:function(){var R=L()(d()().mark(function s(x){var l,$;return d()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!B){r.next=9;break}return x.id=B.id,x.customer_id=B.customer_id,r.next=5,(0,h.adD)(x);case 5:l=r.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),r.next=13;break;case 9:return r.next=11,(0,h.TEe)(x);case 11:$=r.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F");case 13:case"end":return r.stop()}},s)}));return function(s){return R.apply(this,arguments)}}(),children:(0,e.jsx)(be.Z,{gutter:[16,16],children:(0,e.jsx)(K.Z,{span:24,children:(0,e.jsx)(mt.Z.Item,{name:"description",label:"\u4E2A\u4EBA\u7B80\u4ECB",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E2A\u4EBA\u7B80\u4ECB"}],children:(0,e.jsx)(xt.i$,{children:function(){return(0,e.jsx)(Qe.Z,{name:["description"],children:function(x,l){var $=x.description;return(0,e.jsx)(ft.Z,{placeholder:"\u8BF7\u8F93\u5165\u4E2A\u4EBA\u7B80\u4ECB",defaultValue:$,onChange:function(r){l.formRef.current.setFieldsValue({description:r})}})}})}})})})})})})})},gt=(0,oe.connect)(function(m){var n=m.dictModel,i=m.openModel;return{dictModel:n,openModel:i}})(vt),Ue={label:"name",value:"id"},yt=function(n){var i=n.dispatch,w=n.dictModel,Q=n.openModel,p=n.id,M=(0,u.useRef)(),A=(0,u.useState)(null),I=F()(A,2),B=I[0],W=I[1];return(0,u.useEffect)(function(){i({type:"dictModel/getList",payload:{code:2007,type:"setOtherLanguageList"}}),i({type:"dictModel/getList",payload:{code:2008,type:"setDegreeList"}}),i({type:"dictModel/getList",payload:{code:2023,type:"setVehicleList"}})},[]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(pe.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,e.jsx)(ke.A,{formRef:M,request:L()(d()().mark(function R(){var s;return d()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!p){l.next=6;break}return l.next=3,(0,h.$8h)({customer_id:p.customer_id});case 3:return s=l.sent,W(s.data),l.abrupt("return",s.data);case 6:case"end":return l.stop()}},R)})),submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(s,x){return(0,e.jsxs)(Oe.Z,{justify:"flex-end",children:[" ",(0,e.jsx)(Me.Z,{children:x})]})},onReset:function(){}},onFinish:function(){var R=L()(d()().mark(function s(x){var l,$;return d()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(x.computer_skills="\u7535\u8111\u6C34\u5E73"+x.computer_skills,!B){r.next=10;break}return x.id=B.id,x.customer_id=B.customer_id,r.next=6,(0,h._dG)(x);case 6:l=r.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),r.next=15;break;case 10:return x.customer_id=p.customer_id,r.next=13,(0,h.zXV)(x);case 13:$=r.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F");case 15:case"end":return r.stop()}},s)}));return function(s){return R.apply(this,arguments)}}(),children:(0,e.jsxs)(be.Z,{gutter:[16,16],children:[(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ce.Z,{name:"english",label:"\u82F1\u8BED",fieldProps:{fieldNames:Ue,placeholder:"\u8BF7\u9009\u62E9\u82F1\u8BED\u7684\u638C\u63E1\u7A0B\u5EA6"},options:w.degreeList,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u82F1\u8BED\u7684\u638C\u63E1\u7A0B\u5EA6"}]})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ce.Z,{name:"mandarin",label:"\u56FD\u8BED",fieldProps:{fieldNames:Ue,placeholder:"\u8BF7\u9009\u62E9\u56FD\u8BED\u7684\u638C\u63E1\u7A0B\u5EA6"},options:w.degreeList,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u56FD\u8BED\u7684\u638C\u63E1\u7A0B\u5EA6"}]})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ce.Z,{name:"cantonese",label:"\u7CA4\u8BED",fieldProps:{fieldNames:Ue,placeholder:"\u8BF7\u9009\u62E9\u7CA4\u8BED\u7684\u638C\u63E1\u7A0B\u5EA6"},options:w.degreeList,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7CA4\u8BED\u7684\u638C\u63E1\u7A0B\u5EA6"}]})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ce.Z,{name:"other_language",label:"\u7B2C\u4E8C\u5916\u8BED",fieldProps:{fieldNames:Ue,placeholder:"\u8BF7\u9009\u62E9\u7B2C\u4E8C\u5916\u8BED"},options:w.otherLanguageList})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ce.Z,{name:"computer_skills",label:"\u7535\u8111\u6C34\u5E73",fieldProps:{fieldNames:{label:"name",value:"name"},placeholder:"\u8BF7\u9009\u62E9\u7535\u8111\u6C34\u5E73"},options:w.degreeList.filter(function(R){return[100103,100101,1001096].includes(R.id)}),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7535\u8111\u6C34\u5E73"}]})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ce.Z,{name:"vehicle_type",label:"\u4EA4\u901A\u5DE5\u5177",fieldProps:{fieldNames:Ue,placeholder:"\u8BF7\u9009\u62E9\u4EA4\u901A\u5DE5\u5177"},options:w.vehicleList})}),(0,e.jsx)(Qe.Z,{name:["vehicle_type"],children:function(s){var x=s.vehicle_type;return x===1001101&&(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ve.Z,{label:"\u5176\u4ED6\u4EA4\u901A\u5DE5\u5177",name:"vehicle_type_other",placeholder:"\u8BF7\u8F93\u5165\u5176\u4ED6\u4EA4\u901A\u5DE5\u5177"})})}}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ve.Z,{label:"\u9A7E\u7167\u7C7B\u578B",name:"drive_type",placeholder:"\u8BF7\u8F93\u5165\u9A7E\u7167\u7C7B\u578B"})})]})})})})},jt=(0,oe.connect)(function(m){var n=m.dictModel,i=m.openModel;return{dictModel:n,openModel:i}})(yt),_t=function(n){var i=n.dispatch,w=n.dictModel,Q=n.openModel,p=n.id,M=(0,u.useRef)(),A=(0,u.useState)([]),I=F()(A,2),B=I[0],W=I[1],R=(0,u.useState)([]),s=F()(R,2),x=s[0],l=s[1],$=(0,u.useState)([]),V=F()($,2),r=V[0],P=V[1],U=(0,u.useState)(0),ie=F()(U,2),de=ie[0],he=ie[1];return(0,u.useEffect)(function(){i({type:"dictModel/getList",payload:{code:2007,type:"setOtherLanguageList"}}),i({type:"dictModel/getList",payload:{code:2008,type:"setDegreeList"}}),i({type:"dictModel/getList",payload:{code:2023,type:"setVehicleList"}}),i({type:"dictModel/getList",payload:{code:2024,type:"setOvertimeList"}})},[]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(pe.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,e.jsx)(Fe.Z,{actionRef:M,rowKey:"id",loading:!1,request:L()(d()().mark(function ee(){var D;return d()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,(0,h.TYf)({customer_id:p.customer_id,sortby:"asc",sort:"id"});case 2:return D=E.sent,l(D.data.jobapplicanttrainings),P(D.data.jobapplicanttrainings),he(D.data.total),E.abrupt("return",{data:D.data.jobapplicanttrainings,total:D.data.total,success:!0});case 7:case"end":return E.stop()}},ee)})),columns:[{title:"ID",dataIndex:"id",editable:!1,width:100},{title:"\u8D77\u6B62\u65F6\u95F4",dataIndex:"date",valueType:"dateRange",fieldProps:{format:"YYYY-MM"},width:200,formItemProps:{rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8D77\u6B62\u65F6\u95F4"}]},render:function(D,f,E,a){return(0,e.jsx)(e.Fragment,{children:"".concat(f.start_year,"-").concat(f.start_month,"\u81F3").concat(f.end_year,"-").concat(f.end_month)})}},{title:"\u662F\u5426\u81F3\u4ECA",dataIndex:"end_today",width:100,valueType:"select",fieldProps:{options:[{label:"\u975E\u81F3\u4ECA",value:1},{label:"\u81F3\u4ECA",value:2}]},formItemProps:{rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u81F3\u4ECA"}]}},{title:"\u5B66\u6821/\u57F9\u8BAD\u673A\u6784",dataIndex:"school_or_institution",formItemProps:{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u6821/\u57F9\u8BAD\u673A\u6784"}]}},{title:"\u4E13\u4E1A",dataIndex:"major",formItemProps:{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E13\u4E1A"}]}},{title:"\u83B7\u5F97\u8BC1\u4E66",dataIndex:"certificate",formItemProps:{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u83B7\u5F97\u8BC1\u4E66"}]}},{title:"\u66FE\u83B7\u5B66\u6821\u5956\u9879\u6216\u6280\u80FD\u6BD4\u8D5B\u5956\u9879",dataIndex:"awards",formItemProps:{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u66FE\u83B7\u5B66\u6821\u5956\u9879\u6216\u6280\u80FD\u6BD4\u8D5B\u5956\u9879"}]}},{title:"\u66FE\u4EFB\u804C\u52A1",dataIndex:"positions_held",formItemProps:{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u66FE\u4EFB\u804C\u52A1"}]}},{title:"\u64CD\u4F5C",valueType:"option",width:200,render:function(D,f,E,a){return[(0,e.jsx)("a",{onClick:function(){var C;f.date=["".concat(f.start_year,"-").concat(f.start_month),"".concat(f.end_year,"-").concat(f.end_month)],a==null||(C=a.startEditable)===null||C===void 0||C.call(a,f.id)},children:"\u7F16\u8F91"},"editable"),(0,e.jsx)("a",{onClick:function(){},children:"\u5220\u9664"},"delete")]}}],editable:{type:"single",editableKeys:B,onSave:function(){var ee=L()(d()().mark(function f(E,a,t){var C,c,g,_;return d()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(console.log(E,a,t),a.customer_id=p.customer_id,C=a.date[0].split("-"),c=a.date[1].split("-"),a.start_year=parseInt(C[0],10),a.start_month=parseInt(C[1],10),a.end_year=parseInt(c[0],10),a.end_month=parseInt(c[1],10),delete a.date,delete a.index,!(E&&r.findIndex(function(Y){return Y.id===E})!==-1)){y.next=19;break}return a.id=E,y.next=14,(0,h.C4Y)(a);case 14:g=y.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),M.current.reload(),y.next=25;break;case 19:return delete a.id,y.next=22,(0,h.mgk)(a);case 22:_=y.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),M.current.reload();case 25:case"end":return y.stop()}},f)}));function D(f,E,a){return ee.apply(this,arguments)}return D}(),onChange:W},recordCreatorProps:{position:"bottom",record:function(){return{id:x.length>0?(x[x.length-1].id+1).toFixed(0):0}}}})})})},bt=(0,oe.connect)(function(m){var n=m.dictModel,i=m.openModel;return{dictModel:n,openModel:i}})(_t),Pe={label:"name",value:"id"},Ft=function(n){var i=n.dispatch,w=n.dictModel,Q=n.openModel,p=n.id,M=(0,u.useRef)(),A=(0,u.useState)(null),I=F()(A,2),B=I[0],W=I[1];return(0,u.useEffect)(function(){i({type:"dictModel/getList",payload:{code:2019,type:"setJobTypeList"}}),i({type:"dictModel/getList",payload:{code:2020,type:"setTalentTypeList"}}),i({type:"dictModel/getList",payload:{code:2021,type:"setWorkExperienceList"}}),i({type:"dictModel/getList",payload:{code:2005,type:"setScaleList"}}),i({type:"dictModel/getList",payload:{code:2013,type:"setAvailableDateList"}}),i({type:"dictModel/getList",payload:{code:2014,type:"setTitleList"}}),i({type:"dictModel/getList",payload:{code:2015,type:"setSkillCertificationeList"}}),i({type:"dictModel/getList",payload:{code:2016,type:"setAccommodationRequirementList"}}),i({type:"dictModel/getList",payload:{code:2017,type:"setHolidayRestList"}})},[]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(pe.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,e.jsx)(ke.A,{formRef:M,request:L()(d()().mark(function R(){var s;return d()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!p){l.next=6;break}return l.next=3,(0,h.yr9)({customer_id:p.customer_id});case 3:return s=l.sent,W(s.data),l.abrupt("return",s.data);case 6:case"end":return l.stop()}},R)})),submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(s,x){return(0,e.jsxs)(Oe.Z,{justify:"flex-end",children:[" ",(0,e.jsx)(Me.Z,{children:x})]})},onReset:function(){}},onFinish:function(){var R=L()(d()().mark(function s(x){var l,$;return d()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(console.log(x),!B){r.next=10;break}return x.id=B.id,x.customer_id=B.customer_id,r.next=6,(0,h.B9V)(x);case 6:l=r.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),r.next=15;break;case 10:return x.customer_id=p.customer_id,r.next=13,(0,h.Yur)(x);case 13:$=r.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F");case 15:case"end":return r.stop()}},s)}));return function(s){return R.apply(this,arguments)}}(),children:(0,e.jsxs)(be.Z,{gutter:[16,16],children:[(0,e.jsx)(K.Z,{span:24,children:(0,e.jsx)(ve.Z,{label:"\u5176\u4ED6\u804C\u4F4D",name:"other_positions",placeholder:"\u8BF7\u8F93\u5165\u5176\u4ED6\u804C\u4F4D"})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ce.Z,{name:"job_type",label:"\u6C42\u804C\u7C7B\u578B",fieldProps:{fieldNames:Pe,placeholder:"\u8BF7\u9009\u62E9\u6C42\u804C\u7C7B\u578B"},options:w.jobTypeList,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6C42\u804C\u7C7B\u578B"}]})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ce.Z,{name:"talent_type",label:"\u4EBA\u624D\u7C7B\u578B",fieldProps:{fieldNames:Pe,placeholder:"\u8BF7\u9009\u62E9\u4EBA\u624D\u7C7B\u578B"},options:w.talentTypeList,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4EBA\u624D\u7C7B\u578B"}]})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ce.Z,{name:"work_experience",label:"\u5DE5\u4F5C\u7ECF\u9A8C",fieldProps:{fieldNames:Pe,placeholder:"\u8BF7\u9009\u62E9\u5DE5\u4F5C\u7ECF\u9A8C"},options:w.workExperienceList,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5DE5\u4F5C\u7ECF\u9A8C"}]})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ce.Z,{name:"salary_range",label:"\u6708\u85AA\u8981\u6C42\u8303\u56F4",fieldProps:{fieldNames:Pe,placeholder:"\u8BF7\u9009\u62E9\u6708\u85AA\u8981\u6C42\u8303\u56F4"},options:w.scaleList,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6708\u85AA\u8981\u6C42\u8303\u56F4"}]})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ce.Z,{name:"available_date",label:"\u53EF\u5230\u804C\u65E5\u671F",fieldProps:{fieldNames:Pe,placeholder:"\u8BF7\u9009\u62E9\u53EF\u5230\u804C\u65E5\u671F"},options:w.availableDateList,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u53EF\u5230\u804C\u65E5\u671F"}]})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ce.Z,{name:"title_requirement",label:"\u804C\u79F0\u8981\u6C42",fieldProps:{fieldNames:Pe,placeholder:"\u8BF7\u9009\u62E9\u804C\u79F0\u8981\u6C42"},options:w.titleList})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ce.Z,{name:"skill_certification",label:"\u6280\u80FD\u8BA4\u8BC1",fieldProps:{fieldNames:Pe,placeholder:"\u8BF7\u9009\u62E9\u6280\u80FD\u8BA4\u8BC1"},options:w.skillCertificationeList})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ce.Z,{name:"accommodation_requirement",label:"\u98DF\u5BBF\u8981\u6C42",fieldProps:{fieldNames:Pe,placeholder:"\u8BF7\u9009\u62E9\u98DF\u5BBF\u8981\u6C42"},options:w.accommodationRequirementList})}),(0,e.jsx)(K.Z,{span:8,children:(0,e.jsx)(ce.Z,{name:"holiday_rest",label:"\u8282\u5047\u65E5\u4F11\u606F\u60C5\u51B5",fieldProps:{fieldNames:Pe,placeholder:"\u8BF7\u9009\u62E9\u8282\u5047\u65E5\u4F11\u606F\u60C5\u51B5"},options:w.holidayRestList})})]})})})})},Mt=(0,oe.connect)(function(m){var n=m.dictModel,i=m.openModel;return{dictModel:n,openModel:i}})(Ft),rn={label:"name",value:"id",children:"children"},Ke={label:"name",value:"id",children:"childss"},wt=function(n){var i=n.dispatch,w=n.dictModel,Q=n.openModel,p=n.id,M=(0,u.useRef)(),A=(0,u.useRef)(),I=(0,u.useState)([]),B=F()(I,2),W=B[0],R=B[1],s=(0,u.useState)([]),x=F()(s,2),l=x[0],$=x[1],V=(0,u.useState)([]),r=F()(V,2),P=r[0],U=r[1],ie=(0,u.useState)(0),de=F()(ie,2),he=de[0],ee=de[1];(0,u.useEffect)(function(){i({type:"dictModel/getList",payload:{code:2009,type:"setAreaList"}})},[]);var D=(0,u.useState)([]),f=F()(D,2),E=f[0],a=f[1],t=(0,u.useState)([]),C=F()(t,2),c=C[0],g=C[1],_=(0,u.useState)([]),v=F()(_,2),y=v[0],Y=v[1];return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(pe.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,e.jsx)(Fe.Z,{editableFormRef:A,actionRef:M,rowKey:"id",loading:!1,request:L()(d()().mark(function J(){var k;return d()().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return re.next=2,(0,h.Ihr)({customer_id:p.customer_id,sortby:"asc",sort:"id"});case 2:return k=re.sent,$(k.data.jobapplicantareas),U(k.data.jobapplicantareas),ee(k.data.total),re.abrupt("return",{data:k.data.jobapplicantareas,total:k.data.total,success:!0});case 7:case"end":return re.stop()}},J)})),columns:[{title:"ID",dataIndex:"id",editable:!1,width:100},{title:"\u7701\u7EA7",dataIndex:"level1",render:function(k,O){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("span",{children:O.level1_txt})})},valueType:"select",fieldProps:function(k,O){return{placeholder:"\u8BF7\u9009\u62E9\u7701\u7EA7",options:w.areaList,fieldNames:Ke,onChange:function(){var re=L()(d()().mark(function X(se,xe){var N,T,H,S,G,Z,j;return d()().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return le.next=2,(0,h.UW$)({code:xe.code});case 2:j=le.sent,a(j.data.dicts),(N=A.current)===null||N===void 0||(T=N.setRowData)===null||T===void 0||T.call(N,O.entity.id,{level2:0}),(H=A.current)===null||H===void 0||(S=H.setRowData)===null||S===void 0||S.call(H,O.entity.id,{level3:0}),(G=A.current)===null||G===void 0||(Z=G.setRowData)===null||Z===void 0||Z.call(G,O.entity.id,{level4:0});case 7:case"end":return le.stop()}},X)}));function te(X,se){return re.apply(this,arguments)}return te}()}}},{title:"\u5E02\u7EA7",dataIndex:"level2",render:function(k,O){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("span",{children:O.level2_txt})})},valueType:"select",fieldProps:function(k,O){return{placeholder:"\u8BF7\u9009\u62E9\u5E02\u7EA7",options:E,fieldNames:Ke,onChange:function(){var re=L()(d()().mark(function X(se,xe){var N,T,H,S,G;return d()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,(0,h.UW$)({code:xe.code});case 2:G=j.sent,g(G.data.dicts),(N=A.current)===null||N===void 0||(T=N.setRowData)===null||T===void 0||T.call(N,O.entity.id,{level3:0}),(H=A.current)===null||H===void 0||(S=H.setRowData)===null||S===void 0||S.call(H,O.entity.id,{level4:0});case 6:case"end":return j.stop()}},X)}));function te(X,se){return re.apply(this,arguments)}return te}()}}},{title:"\u4E61\u9547",dataIndex:"level3",render:function(k,O){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("span",{children:O.level3_txt})})},valueType:"select",fieldProps:function(k,O){return{placeholder:"\u8BF7\u9009\u62E9\u4E61\u9547",options:c,fieldNames:Ke,onChange:function(){var re=L()(d()().mark(function X(se,xe){var N,T,H;return d()().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,(0,h.UW$)({code:xe.code});case 2:H=G.sent,Y(H.data.dicts),(N=A.current)===null||N===void 0||(T=N.setRowData)===null||T===void 0||T.call(N,O.entity.id,{level4:0});case 5:case"end":return G.stop()}},X)}));function te(X,se){return re.apply(this,arguments)}return te}()}}},{title:"\u793E\u533A",dataIndex:"level4",render:function(k,O){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("span",{children:O.level4_txt})})},valueType:"select",fieldProps:{placeholder:"\u8BF7\u9009\u62E9\u793E\u533A",options:y,fieldNames:Ke}},{title:"\u64CD\u4F5C",valueType:"option",width:200,render:function(k,O,re,te){return[(0,e.jsx)("a",{onClick:L()(d()().mark(function X(){var se,xe,N,T;return d()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(!O.level1){S.next=5;break}return S.next=3,(0,h.dBj)({id:O.level1});case 3:xe=S.sent,a(xe.data.childs);case 5:if(!O.level2){S.next=10;break}return S.next=8,(0,h.dBj)({id:O.level2});case 8:N=S.sent,g(N.data.childs);case 10:if(!O.level3){S.next=15;break}return S.next=13,(0,h.dBj)({id:O.level3});case 13:T=S.sent,Y(T.data.childs);case 15:te==null||(se=te.startEditable)===null||se===void 0||se.call(te,O.id);case 16:case"end":return S.stop()}},X)})),children:"\u7F16\u8F91"},"editable"),(0,e.jsx)("a",{onClick:function(){},children:"\u5220\u9664"},"delete")]}}],editable:{type:"single",editableKeys:W,onSave:function(){var J=L()(d()().mark(function O(re,te,X){var se,xe;return d()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(console.log(re,te,X),te.customer_id=p.customer_id,delete te.index,!(re&&P.findIndex(function(H){return H.id===re})!==-1)){T.next=12;break}return te.id=re,T.next=7,(0,h.oUC)(te);case 7:se=T.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),M.current.reload(),T.next=18;break;case 12:return delete te.id,T.next=15,(0,h.zPM)(te);case 15:xe=T.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),M.current.reload();case 18:case"end":return T.stop()}},O)}));function k(O,re,te){return J.apply(this,arguments)}return k}(),onChange:R},recordCreatorProps:{position:"bottom",record:function(){return{id:l.length>0?(l[l.length-1].id+1).toFixed(0):0}}}})})})},Et=(0,oe.connect)(function(m){var n=m.dictModel,i=m.openModel;return{dictModel:n,openModel:i}})(wt),Ct={label:"name",value:"id",children:"childss"},St=function(n){var i=n.dispatch,w=n.dictModel,Q=n.openModel,p=n.id,M=(0,u.useRef)(),A=(0,u.useRef)(),I=(0,u.useState)([]),B=F()(I,2),W=B[0],R=B[1],s=(0,u.useState)([]),x=F()(s,2),l=x[0],$=x[1],V=(0,u.useState)([]),r=F()(V,2),P=r[0],U=r[1],ie=(0,u.useState)(0),de=F()(ie,2),he=de[0],ee=de[1];return(0,u.useEffect)(function(){i({type:"dictModel/getList",payload:{code:2009,type:"setAreaList"}})},[]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(pe.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,e.jsx)(Fe.Z,{editableFormRef:A,actionRef:M,rowKey:"id",loading:!1,request:L()(d()().mark(function D(){var f;return d()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,h.Tw7)({customer_id:p.customer_id,sortby:"asc",sort:"id"});case 2:return f=a.sent,$(f.data.jobapplicantindustrys),U(f.data.jobapplicantindustrys),ee(f.data.total),a.abrupt("return",{data:f.data.jobapplicantindustrys,total:f.data.total,success:!0});case 7:case"end":return a.stop()}},D)})),columns:[{title:"ID",dataIndex:"id",editable:!1,width:100},{title:"\u884C\u4E1A",dataIndex:"industry",render:function(f,E){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("span",{children:E.industry_txt})})},valueType:"select",fieldProps:function(f,E){return{placeholder:"\u8BF7\u9009\u62E9\u884C\u4E1A",options:w.industryPostList,fieldNames:Ct}}},{title:"\u64CD\u4F5C",valueType:"option",width:200,render:function(f,E,a,t){return[(0,e.jsx)("a",{onClick:L()(d()().mark(function C(){var c;return d()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(!(he>3)){_.next=3;break}return q.ZP.error("\u6700\u591A\u6DFB\u52A03\u6761\u610F\u5411\u884C\u4E1A"),_.abrupt("return",!1);case 3:t==null||(c=t.startEditable)===null||c===void 0||c.call(t,E.post_id);case 4:case"end":return _.stop()}},C)})),children:"\u7F16\u8F91"},"editable"),(0,e.jsx)("a",{onClick:function(){},children:"\u5220\u9664"},"delete")]}}],editable:{type:"single",editableKeys:W,onSave:function(){var D=L()(d()().mark(function E(a,t,C){var c,g;return d()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(console.log(a,t,C),t.customer_id=p.customer_id,!(a&&P.findIndex(function(y){return y.id===a})!==-1)){v.next=11;break}return t.id=a,v.next=6,(0,h.g2b)({id:t.id,customer_id:t.customer_id,industry:t.industry});case 6:c=v.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),M.current.reload(),v.next=16;break;case 11:return v.next=13,(0,h.IBU)({customer_id:t.customer_id,industry:t.industry});case 13:g=v.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),M.current.reload();case 16:case"end":return v.stop()}},E)}));function f(E,a,t){return D.apply(this,arguments)}return f}(),onChange:R},recordCreatorProps:{position:"bottom",record:function(){return{id:l.length>0?(l[l.length-1].id+1).toFixed(0):0}}}})})})},Pt=(0,oe.connect)(function(m){var n=m.dictModel,i=m.openModel;return{dictModel:n,openModel:i}})(St),kt=b(97857),ue=b.n(kt),He={label:"name",value:"id",children:"childss"},Bt=function(n){var i=n.dispatch,w=n.dictModel,Q=n.openModel,p=n.id,M=(0,u.useRef)(),A=(0,u.useRef)(),I=(0,u.useState)([]),B=F()(I,2),W=B[0],R=B[1],s=(0,u.useState)([]),x=F()(s,2),l=x[0],$=x[1],V=(0,u.useState)([]),r=F()(V,2),P=r[0],U=r[1],ie=(0,u.useState)(0),de=F()(ie,2),he=de[0],ee=de[1];(0,u.useEffect)(function(){i({type:"dictModel/getList",payload:{code:2009,type:"setAreaList"}})},[]);var D=(0,u.useState)([]),f=F()(D,2),E=f[0],a=f[1],t=(0,u.useState)([]),C=F()(t,2),c=C[0],g=C[1];return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(pe.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,e.jsx)(Fe.Z,{editableFormRef:A,actionRef:M,rowKey:"id",loading:!1,request:L()(d()().mark(function _(){var v,y;return d()().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.next=2,(0,h.cvX)({customer_id:p.customer_id,sortby:"asc",sort:"id"});case 2:return v=J.sent,J.next=5,Promise.all(v.data.jobapplicantpositions.filter(function(k){return k.level1!==0}).map(function(){var k=L()(d()().mark(function O(re,te){var X,se;return d()().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,(0,h.dBj)({id:re.level1});case 2:return X=N.sent,N.next=5,(0,h.dBj)({id:X.data.parent_id});case 5:return se=N.sent,N.abrupt("return",ue()(ue()({},re),{},{post_id:re.id,industry_txt:se.data?se.data.name:"",industry:se.data?se.data.id:""}));case 7:case"end":return N.stop()}},O)}));return function(O,re){return k.apply(this,arguments)}}()));case 5:return y=J.sent,$(y),U(y),ee(v.data.total),J.abrupt("return",{data:y,total:v.data.total,success:!0});case 10:case"end":return J.stop()}},_)})),columns:[{title:"ID",dataIndex:"id",editable:!1,width:100},{title:"\u884C\u4E1A\u5927\u7C7B",dataIndex:"industry",render:function(v,y){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("span",{children:y.industry_txt})})},valueType:"select",fieldProps:function(v,y){return{placeholder:"\u8BF7\u9009\u62E9\u884C\u4E1A\u5927\u7C7B",options:w.industryPostList,fieldNames:He,onChange:function(){var Y=L()(d()().mark(function k(O,re){var te,X,se,xe,N;return d()().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,(0,h.UW$)({code:re.code});case 2:N=H.sent,a(N.data.dicts),(te=A.current)===null||te===void 0||(X=te.setRowData)===null||X===void 0||X.call(te,y.entity.id,{level1:0}),(se=A.current)===null||se===void 0||(xe=se.setRowData)===null||xe===void 0||xe.call(se,y.entity.id,{level2:0});case 6:case"end":return H.stop()}},k)}));function J(k,O){return Y.apply(this,arguments)}return J}()}}},{title:"\u884C\u4E1A\u4E8C\u7C7B",dataIndex:"level1",render:function(v,y){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("span",{children:y.level1_txt})})},valueType:"select",fieldProps:function(v,y){return{placeholder:"\u8BF7\u9009\u62E9\u884C\u4E1A\u4E8C\u7C7B",options:E,fieldNames:He,onChange:function(){var Y=L()(d()().mark(function k(O,re){var te,X,se;return d()().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,(0,h.UW$)({code:re.code});case 2:se=N.sent,g(se.data.dicts),(te=A.current)===null||te===void 0||(X=te.setRowData)===null||X===void 0||X.call(te,y.entity.id,{level2:0});case 5:case"end":return N.stop()}},k)}));function J(k,O){return Y.apply(this,arguments)}return J}()}}},{title:"\u804C\u4F4D",dataIndex:"level2",render:function(v,y){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("span",{children:y.level2_txt})})},valueType:"select",fieldProps:function(v,y){return{placeholder:"\u8BF7\u9009\u62E9\u804C\u4F4D",options:c,fieldNames:He}}},{title:"\u64CD\u4F5C",valueType:"option",width:200,render:function(v,y,Y,J){return[(0,e.jsx)("a",{onClick:L()(d()().mark(function k(){var O,re,te,X,se;return d()().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(console.log(y),!y.level1){N.next=9;break}return N.next=4,(0,h.dBj)({id:y.level1});case 4:return re=N.sent,N.next=7,(0,h.dBj)({id:re.data.parent_id});case 7:te=N.sent,a(te.data.childs);case 9:if(!y.level2){N.next=17;break}return N.next=12,(0,h.dBj)({id:y.level2});case 12:return X=N.sent,N.next=15,(0,h.dBj)({id:X.data.parent_id});case 15:se=N.sent,g(se.data.childs);case 17:J==null||(O=J.startEditable)===null||O===void 0||O.call(J,y.id);case 18:case"end":return N.stop()}},k)})),children:"\u7F16\u8F91"},"editable"),(0,e.jsx)("a",{onClick:function(){},children:"\u5220\u9664"},"delete")]}}],editable:{type:"single",editableKeys:W,onSave:function(){var _=L()(d()().mark(function y(Y,J,k){var O,re;return d()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(console.log(Y,J,k),J.customer_id=p.customer_id,!(Y&&P.findIndex(function(se){return se.id===Y})!==-1)){X.next=11;break}return J.id=Y,X.next=6,(0,h.VrM)({id:J.id,customer_id:J.customer_id,level1:J.level1,level2:J.level2});case 6:O=X.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),M.current.reload(),X.next=16;break;case 11:return X.next=13,(0,h.Efk)({customer_id:J.customer_id,level1:J.level1,level2:J.level2});case 13:re=X.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),M.current.reload();case 16:case"end":return X.stop()}},y)}));function v(y,Y,J){return _.apply(this,arguments)}return v}(),onChange:R},recordCreatorProps:{position:"bottom",record:function(){return{id:l.length>0?(l[l.length-1].id+1).toFixed(0):0}}}})})})},Lt=(0,oe.connect)(function(m){var n=m.dictModel,i=m.openModel;return{dictModel:n,openModel:i}})(Bt),At=function(n){var i=n.dispatch,w=n.dictModel,Q=n.openModel,p=n.id,M=(0,u.useState)(!1),A=F()(M,2),I=A[0],B=A[1];return(0,u.useEffect)(function(){B(Q.openModal)},[Q.openModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(pe.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,e.jsx)(Ee.Z,{open:I,title:p?"\u7F16\u8F91\u7B80\u5386":"\u6DFB\u52A0\u7B80\u5386",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1200,onCancel:function(){i({type:"openModel/getOpenModal",payload:!1})},children:(0,e.jsx)($e.Z,{destroyInactiveTabPane:!0,type:"card",items:[{label:"\u57FA\u672C\u4FE1\u606F",key:"1",children:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(lt,{id:p})})},{label:"\u8054\u7CFB\u4FE1\u606F",key:"2",children:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(dt,{id:p})})},{label:"\u4E2A\u4EBA\u7B80\u4ECB",key:"3",children:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(gt,{id:p})})},{label:"\u4E13\u4E1A\u6280\u80FD\u638C\u63E1\u7A0B\u5EA6",key:"4",children:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(jt,{id:p})})},{label:"\u57F9\u8BAD\u7ECF\u5386",key:"5",children:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(bt,{id:p})})},{label:"\u5DE5\u4F5C\u7ECF\u5386",key:"6",children:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(ht,{id:p})})},{label:"\u8BC1\u4E66",key:"7",children:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(ct,{id:p})})},{label:"\u57FA\u672C\u610F\u5411",key:"8",children:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(Mt,{id:p})})},{label:"\u610F\u5411\u5730\u533A",key:"9",children:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(Et,{id:p})})},{label:"\u610F\u5411\u884C\u4E1A",key:"10",children:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(Pt,{id:p})})},{label:"\u610F\u5411\u804C\u4F4D",key:"11",children:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(Lt,{id:p})})}]})})})})},Dt=(0,oe.connect)(function(m){var n=m.dictModel,i=m.openModel;return{dictModel:n,openModel:i}})(At),Zt=b(64082),Rt=b(36441),It=b(84567),Tt=b(2058),$t=b(27484),Xe=b.n($t),We={label:"name",value:"id"},Ge={label:"name",value:"id",children:"children"},Ot=function(n){var i=n.dispatch,w=n.dictModel,Q=n.openModel,p=n.id,M=(0,u.useRef)(),A=(0,u.useState)([]),I=F()(A,2),B=I[0],W=I[1],R=(0,u.useState)(!1),s=F()(R,2),x=s[0],l=s[1],$=(0,u.useState)(null),V=F()($,2),r=V[0],P=V[1],U=(0,u.useState)(!1),ie=F()(U,2),de=ie[0],he=ie[1];(0,u.useEffect)(function(){l(Q.openRegisterModal)},[Q.openRegisterModal]);var ee=(0,u.useState)(""),D=F()(ee,2),f=D[0],E=D[1],a=function(H){E(H)},t=(0,u.useState)(!1),C=F()(t,2),c=C[0],g=C[1],_=(0,u.useState)(""),v=F()(_,2),y=v[0],Y=v[1],J=function(H){Y(H)},k=(0,u.useState)(""),O=F()(k,2),re=O[0],te=O[1];(0,u.useEffect)(function(){i({type:"dictModel/getList",payload:{code:2011,type:"setMaritalList"}}),i({type:"dictModel/getList",payload:{code:2006,type:"setEducationList"}}),i({type:"dictModel/getList",payload:{code:2012,type:"setEthnicityList"}}),i({type:"dictModel/getList",payload:{code:2020,type:"setTalentTypeList"}}),i({type:"dictModel/getList",payload:{code:2008,type:"setDegreeList"}}),i({type:"dictModel/getList",payload:{code:2023,type:"setVehicleList"}}),i({type:"dictModel/getList",payload:{code:2024,type:"setOvertimeList"}}),i({type:"dictModel/getList",payload:{code:2009,type:"setAreaList"}})},[]);var X=(0,u.useState)(""),se=F()(X,2),xe=se[0],N=se[1];return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(pe.ZP,{theme:{},children:(0,e.jsx)(Ee.Z,{open:x,centered:!0,footer:null,maskClosable:!1,destroyOnClose:!0,width:1200,onCancel:function(){i({type:"openModel/getOpenRegisterModal",payload:!1})},afterOpenChange:function(){var T=L()(d()().mark(function H(S){var G;return d()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(!S){j.next=5;break}return j.next=3,(0,h.tsR)({customer_id:p.customer_id,application_id:p.id});case 3:G=j.sent,P(G.data);case 5:case"end":return j.stop()}},H)}));return function(H){return T.apply(this,arguments)}}(),children:r&&(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{id:"export-container",children:[(0,e.jsx)("h1",{style:{fontWeight:"bold",textAlign:"center",marginBottom:"20px"},children:"\u5C31\u4E1A\u670D\u52A1\u767B\u8BB0\u8868"}),xe,(0,e.jsx)(Rt.vY,{labelStyle:{width:"120px"},bordered:!0,actionRef:M,column:24,request:L()(d()().mark(function T(){return d()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return console.log(r),S.abrupt("return",Promise.resolve({success:!0,data:r}));case 2:case"end":return S.stop()}},T)})),editable:{onSave:function(){var T=L()(d()().mark(function S(G,Z){var j,z,le;return d()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:N(G),console.log(G),console.log(Z,Xe()(Z.dob).format("YYYY-MM-DD")),j=null,z=null,o.t0=G,o.next=o.t0==="seekername"?8:o.t0==="gender"?16:o.t0==="dob"?24:o.t0==="marital_status_txt"?32:o.t0==="education_txt"?40:o.t0==="ethnicity_txt"?48:o.t0==="mobile"?56:o.t0==="id_number"?71:o.t0==="now_level"?83:o.t0==="reg_level"?92:o.t0==="talent_type_txt"?100:108;break;case 8:return o.next=10,(0,h.d5h)({id:r.id,customer_id:r.customer_id,name:Z.seekername});case 10:return j=o.sent,o.next=13,(0,h.tsR)({customer_id:p.customer_id,application_id:p.id});case 13:return z=o.sent,P(function(ne){return ue()(ue()({},ne),{},{seekername:z.data.seekername})}),o.abrupt("break",108);case 16:return o.next=18,(0,h.d5h)({id:r.id,customer_id:r.customer_id,gender:Z.gender});case 18:return j=o.sent,o.next=21,(0,h.tsR)({customer_id:p.customer_id,application_id:p.id});case 21:return z=o.sent,P(function(ne){return ue()(ue()({},ne),{},{gender:z.data.gender})}),o.abrupt("break",108);case 24:return o.next=26,(0,h.d5h)({id:r.id,customer_id:r.customer_id,dob:Xe()(Z.dob).format("YYYY-MM-DD")});case 26:return j=o.sent,o.next=29,(0,h.tsR)({customer_id:p.customer_id,application_id:p.id});case 29:return z=o.sent,P(function(ne){return ue()(ue()({},ne),{},{dob:z.data.dob})}),o.abrupt("break",108);case 32:return o.next=34,(0,h.d5h)({id:r.id,customer_id:r.customer_id,marital_status:Z.marital_status_txt});case 34:return j=o.sent,o.next=37,(0,h.tsR)({customer_id:p.customer_id,application_id:p.id});case 37:return z=o.sent,P(function(ne){return ue()(ue()({},ne),{},{marital_status_txt:z.data.marital_status_txt})}),o.abrupt("break",108);case 40:return o.next=42,(0,h.d5h)({id:r.id,customer_id:r.customer_id,education:Z.education_txt});case 42:return j=o.sent,o.next=45,(0,h.tsR)({customer_id:p.customer_id,application_id:p.id});case 45:return z=o.sent,P(function(ne){return ue()(ue()({},ne),{},{education_txt:z.data.education_txt})}),o.abrupt("break",108);case 48:return o.next=50,(0,h.d5h)({id:r.id,customer_id:r.customer_id,ethnicity:Z.ethnicity_txt});case 50:return j=o.sent,o.next=53,(0,h.tsR)({customer_id:p.customer_id,application_id:p.id});case 53:return z=o.sent,P(function(ne){return ue()(ue()({},ne),{},{ethnicity_txt:z.data.ethnicity_txt})}),o.abrupt("break",108);case 56:if(!it(Z.mobile)){o.next=69;break}return o.next=59,(0,h.dQ0)({id:r.id,customer_id:r.customer_id});case 59:return le=o.sent,o.next=62,(0,h.vnr)({id:le.data.id,customer_id:r.customer_id,mobile:Z.mobile});case 62:return j=o.sent,o.next=65,(0,h.tsR)({customer_id:p.customer_id,application_id:p.id});case 65:z=o.sent,P(function(ne){return ue()(ue()({},ne),{},{mobile:z.data.mobile})}),o.next=70;break;case 69:return o.abrupt("return",!1);case 70:return o.abrupt("break",108);case 71:if(!qe(Z.id_number)){o.next=81;break}return o.next=74,(0,h.d5h)({id:r.id,customer_id:r.customer_id,id_number:Z.id_number});case 74:return j=o.sent,o.next=77,(0,h.tsR)({customer_id:p.customer_id,application_id:p.id});case 77:z=o.sent,P(function(ne){return ue()(ue()({},ne),{},{id_number:z.data.id_number})}),o.next=82;break;case 81:return o.abrupt("return",!1);case 82:return o.abrupt("break",108);case 83:return o.next=85,(0,h.d5h)({id:r.id,customer_id:r.customer_id,now_level1:Z.now_level.length>0&&Z.now_level[0]?Z.now_level[0]:0,now_level2:Z.now_level.length>0&&Z.now_level[1]?Z.now_level[1]:0,now_level3:Z.now_level.length>0&&Z.now_level[2]?Z.now_level[2]:0,now_level4:Z.now_level.length>0&&Z.now_level[3]?Z.now_level[3]:0});case 85:return j=o.sent,o.next=88,(0,h.tsR)({customer_id:p.customer_id,application_id:p.id});case 88:return z=o.sent,console.log(z.data),P(function(ne){return ue()(ue()({},ne),{},{now_level1_txt:"111",now_level2_txt:z.data.now_level2_txt,now_level3_txt:z.data.now_level3_txt,now_level4_txt:z.data.now_level4_txt})}),o.abrupt("break",108);case 92:return o.next=94,(0,h.d5h)({id:r.id,customer_id:r.customer_id,reg_level1:Z.reg_level.length>0&&Z.reg_level[0]?Z.reg_level[0]:0,reg_level2:Z.reg_level.length>0&&Z.reg_level[1]?Z.reg_level[1]:0,reg_level3:Z.reg_level.length>0&&Z.reg_level[2]?Z.reg_level[2]:0,reg_level4:Z.reg_level.length>0&&Z.reg_level[3]?Z.reg_level[3]:0});case 94:return j=o.sent,o.next=97,(0,h.tsR)({customer_id:p.customer_id,application_id:p.id});case 97:return z=o.sent,P(function(ne){return ue()(ue()({},ne),{},{reg_level1_txt:z.data.reg_level1_txt,reg_level2_txt:z.data.reg_level2_txt,reg_level3_txt:z.data.reg_level3_txt,reg_level4_txt:z.data.reg_level4_txt})}),o.abrupt("break",108);case 100:return o.next=102,(0,h.B9V)({id:r.id,customer_id:r.customer_id,talent_type:Z.talent_type});case 102:return j=o.sent,o.next=105,(0,h.tsR)({customer_id:p.customer_id,application_id:p.id});case 105:return z=o.sent,P(function(ne){return ue()(ue()({},ne),{},{talent_type_txt:z.data.talent_type_txt})}),o.abrupt("break",108);case 108:case"end":return o.stop()}},S)}));function H(S,G){return T.apply(this,arguments)}return H}()},columns:[{span:8,title:"\u59D3\u540D",key:"seekername",dataIndex:"seekername"},{span:4,title:"\u6027\u522B",key:"gender",dataIndex:"gender",valueType:"select",valueEnum:{\u7537:{text:"\u7537"},\u5973:{text:"\u5973"}}},{span:8,title:"\u51FA\u751F\u65E5\u671F",key:"dob",dataIndex:"dob",valueType:"date"},{span:4,title:"\u5A5A\u59FB\u72B6\u51B5",key:"marital_status_txt",dataIndex:"marital_status_txt",valueType:"select",fieldProps:{fieldNames:We},request:function(){return w.maritalList}},{span:6,title:"\u6587\u5316\u7A0B\u5EA6",key:"education",dataIndex:"education_txt",valueType:"select",fieldProps:{fieldNames:We},request:function(){return w.educationList}},{span:6,title:"\u6BD5\u4E1A\u5B66\u6821",key:"school_name",dataIndex:"school_name",editable:!1,render:function(H,S,G,Z){return(0,e.jsx)(e.Fragment,{children:r.trainings&&r.trainings.length>0&&(0,e.jsx)("span",{children:r.trainings[0].school_or_institution})})}},{span:6,title:"\u4E13\u4E1A",key:"major",dataIndex:"major",editable:!1,render:function(H,S,G,Z){return(0,e.jsx)(e.Fragment,{children:r.trainings&&r.trainings.length>0&&(0,e.jsx)("span",{children:r.trainings[0].major})})}},{span:6,title:"\u6C11\u65CF",key:"ethnicity",dataIndex:"ethnicity_txt",valueType:"select",fieldProps:{fieldNames:We,children:(0,e.jsx)(e.Fragment,{children:"ddd"})},request:function(){return w.ethnicityList}},{span:12,title:"\u8054\u7CFB\u65B9\u5F0F",key:"mobile",dataIndex:"mobile"},{span:12,title:"\u8EAB\u4EFD\u8BC1\u53F7",key:"id_number",dataIndex:"id_number"},{span:12,title:"\u73B0\u5C45\u4F4F\u5730",key:"now_level",dataIndex:"now_level",valueType:"cascader",fieldProps:{fieldNames:Ge},request:function(){return w.areaList},render:function(H,S,G,Z){return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("span",{children:[S.now_level1_txt?S.now_level1_txt:"",S.now_level2_txt?S.now_level2_txt:"",S.now_level3_txt?S.now_level3_txt:"",S.now_level4_txt?S.now_level4_txt:""]})})}},{span:12,title:"\u6237\u53E3\u6240\u5728\u5730",key:"reg_level",dataIndex:"reg_level",valueType:"cascader",fieldProps:{fieldNames:Ge},request:function(){return w.areaList},render:function(H,S,G,Z){return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("span",{children:[S.reg_level1_txt?S.reg_level1_txt:"",S.reg_level2_txt?S.reg_level2_txt:"",S.reg_level3_txt?S.reg_level3_txt:"",S.reg_level4_txt?S.reg_level4_txt:""]})})}},{span:24,title:"\u4EBA\u5458\u7C7B\u522B",key:"talent_type",dataIndex:"talent_type_txt",editable:!1,render:function(H,S,G,Z){return(0,e.jsx)(e.Fragment,{children:w.talentTypeList.filter(function(j){return[1001091,1001092,1001093,1001028].includes(j.id)}).map(function(j){return(0,e.jsx)(ae.ZP,{value:j.id,checked:S.talent_type==j.id,onChange:function(){var z=L()(d()().mark(function le(me){var o,ne,ye;return d()().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(!me.target.checked){je.next=14;break}return je.next=3,(0,h.yr9)({id:r.id,customer_id:r.customer_id});case 3:if(o=je.sent,o.code!=404){je.next=14;break}return je.next=7,(0,h.B9V)({id:o.data.id,customer_id:r.customer_id,talent_type:me.target.value});case 7:return ne=je.sent,je.next=10,(0,h.tsR)({customer_id:p.customer_id,application_id:p.id});case 10:ye=je.sent,P(function(nn){return ue()(ue()({},nn),{},{talent_type_txt:ye.data.talent_type_txt})}),je.next=14;break;case 14:case"end":return je.stop()}},le)}));return function(le){return z.apply(this,arguments)}}(),children:j.name},j.id)})})}},{span:10,title:"\u7535\u8111\u6C34\u5E73",key:"talent_type",dataIndex:"talent_type_txt",editable:!1,render:function(H,S,G,Z){return(0,e.jsx)(e.Fragment,{children:w.degreeList.filter(function(j){return[100103,100101,1001096].includes(j.id)}).map(function(j){return(0,e.jsx)(ae.ZP,{value:j.id,checked:S.talent_type==j.name,children:j.name},j.id)})})}},{span:8,title:"\u666E\u901A\u8BDD\u6C34\u5E73",key:"mandarin",dataIndex:"mandarin_txt",editable:!1,render:function(H,S,G,Z){return(0,e.jsx)(e.Fragment,{children:w.degreeList.filter(function(j){return[1001095,100101,1001096].includes(j.id)}).map(function(j){return(0,e.jsx)(ae.ZP,{value:j.id,checked:S.mandarin==j.id,children:j.name},j.id)})})}},{span:6,title:"\u5916\u8BED\u6C34\u5E73",key:"marital_status",dataIndex:"marital_status_txt",valueType:"select",fieldProps:{fieldNames:We},request:function(H,S){return w.degreeList}},{span:10,title:"\u4EA4\u901A\u5DE5\u5177",key:"talent_type",dataIndex:"talent_type_txt",editable:!1,render:function(H,S,G,Z){return(0,e.jsx)(e.Fragment,{children:w.vehicleList.filter(function(j){return[1001098,1001099,1001100,1001101].includes(j.id)}).map(function(j){return(0,e.jsx)(ae.ZP,{value:j.id,children:j.name},j.id)})})}},{span:4,title:"\u9A7E\u7167\u7C7B\u578B",key:"seekername",dataIndex:"seekername"},{span:10,title:"\u53EF\u5426\u52A0\u591C\u73ED",key:"talent_type",dataIndex:"talent_type_txt",editable:!1,render:function(H,S,G,Z){return(0,e.jsx)(e.Fragment,{children:w.overtimeList.filter(function(j){return[1001103,1001104,1001105].includes(j.id)}).map(function(j){return(0,e.jsx)(ae.ZP,{value:j.id,children:j.name},j.id)})})}},{span:24,title:"\u5B66\u4E60\u6216\u5DE5\u4F5C\u7ECF\u5386",key:"seekername",dataIndex:"seekername",editable:!1,render:function(H,S){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(Fe.Z,{rowKey:"id",loading:!1,value:[{id:"1",date:"2020-12-12",danwei:"kgkjgk",gangwei:"dsfsfsdf"},{id:"2",date:"2020-12-12",danwei:"kgkjgk",gangwei:"dsfsfsdf"},{id:"3",date:"2020-12-12",danwei:"kgkjgk",gangwei:"dsfsfsdf"}],columns:[{title:"\u8D77\u6B62\u65F6\u95F4",dataIndex:"date",valueType:"dateRange",fieldProps:{format:"YYYY-MM"}},{title:"\u5B66\u6821/\u5DE5\u4F5C\u5355\u4F4D",dataIndex:"danwei"},{title:"\u804C\u52A1/\u5DE5\u4F5C\u5C97\u4F4D",dataIndex:"gangwei"},{title:"\u64CD\u4F5C",valueType:"option",width:200,render:function(Z,j,z,le){return[(0,e.jsx)("a",{onClick:function(){var o;le==null||(o=le.startEditable)===null||o===void 0||o.call(le,j.id)},children:"\u7F16\u8F91"},"editable"),(0,e.jsx)("a",{onClick:function(){},children:"\u5220\u9664"},"delete")]}}],editable:{type:"multiple",editableKeys:B,onSave:function(){var G=L()(d()().mark(function j(z,le,me){return d()().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:console.log(z,le,me);case 1:case"end":return ne.stop()}},j)}));function Z(j,z,le){return G.apply(this,arguments)}return Z}(),onChange:W},recordCreatorProps:{position:"bottom",record:function(){return{id:(Math.random()*1e6).toFixed(0)}}}})})}},{span:24,title:"\u6C42\u804C\u610F\u5411",editable:!1,render:function(H,S,G,Z){return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(be.Z,{gutter:[16,16],children:[(0,e.jsx)(K.Z,{span:4,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:"\u60F3\u4ECE\u4E8B\u804C\u4F4D"}),(0,e.jsxs)(K.Z,{span:20,children:[(0,e.jsxs)(be.Z,{gutter:[16,16],style:{padding:"8px"},children:[(0,e.jsxs)(K.Z,{span:8,style:{display:"flex",alignItems:"center",justifyContent:"flex-start"},children:[(0,e.jsx)("div",{children:"1\u3001"})," ",(0,e.jsx)(we.Z,{style:{width:"80%"}})]}),(0,e.jsxs)(K.Z,{span:8,style:{display:"flex",alignItems:"center",justifyContent:"flex-start"},children:[(0,e.jsx)("div",{children:"2\u3001"}),(0,e.jsx)(we.Z,{style:{width:"80%"}})]}),(0,e.jsxs)(K.Z,{span:8,style:{display:"flex",alignItems:"center",justifyContent:"flex-start"},children:[(0,e.jsx)("div",{children:"3\u3001"}),(0,e.jsx)(we.Z,{style:{width:"80%"}})]})]}),(0,e.jsxs)(be.Z,{gutter:[16,16],style:{padding:"8px"},children:[(0,e.jsxs)(K.Z,{span:14,children:["4\u3001\u662F\u5426\u63A5\u6536\u5176\u4ED6\u804C\u4F4D\u7684\u63A8\u8350\uFF08",(0,e.jsx)(It.Z,{}),"\uFF09 "]}),(0,e.jsxs)(K.Z,{span:10,style:{display:"flex",alignItems:"center",justifyContent:"flex-start"},children:["\u85AA\u916C\u8981\u6C42\uFF1A",(0,e.jsx)(we.Z,{style:{width:"40%"}})," \u5143/\u6708"]})]})]})]})})}},{span:24,title:"\u4ECB\u7ECD\u5DE5\u4F5C\u60C5\u51B5",editable:!1,render:function(H,S,G,Z){return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(be.Z,{gutter:[16,16],children:[(0,e.jsx)(K.Z,{span:14,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,e.jsx)(be.Z,{gutter:[16,16],style:{padding:"8px"},children:(0,e.jsx)(Fe.Z,{showHeader:!1,scroll:{x:"100%"},rowKey:"id",loading:!1,value:[{id:"1",date:"2020-12-12",danwei:"kgkjgk",gangwei:"dsfsfsdf"},{id:"2",date:"2020-12-12",danwei:"kgkjgk",gangwei:"dsfsfsdf"}],columns:[{dataIndex:"date"},{valueType:"option",width:200,render:function(z,le,me,o){return[(0,e.jsx)("a",{onClick:function(){var ye;o==null||(ye=o.startEditable)===null||ye===void 0||ye.call(o,le.id)},children:"\u7F16\u8F91"},"editable"),(0,e.jsx)("a",{onClick:function(){},children:"\u5220\u9664"},"delete")]}}],editable:{type:"multiple",editableKeys:B,onSave:function(){var j=L()(d()().mark(function le(me,o,ne){return d()().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:console.log(me,o,ne);case 1:case"end":return Be.stop()}},le)}));function z(le,me,o){return j.apply(this,arguments)}return z}(),onChange:W},recordCreatorProps:{position:"bottom",record:function(){return{id:(Math.random()*1e6).toFixed(0)}}}})})}),(0,e.jsx)(K.Z,{span:10,children:(0,e.jsx)(be.Z,{gutter:[16,16],style:{padding:"8px"},children:(0,e.jsxs)(Tt.Z.Dragger,{name:"file",customRequest:function(z){var le=new FormData;le.append("image",z.file),console.log(le),(0,oe.request)(Se.FH+"/common/image/upload?imgtype=3",{method:"post",data:le,Headers:{Authorization:sessionStorage.getItem("token"),"X-Requested-With":null}}).then(function(me){}).catch(function(me){console.log(me),q.ZP.error("\u4E0A\u4F20\u5931\u8D25")})},style:{width:"100%",padding:"0 100px"},children:[(0,e.jsx)("p",{className:"ant-upload-drag-icon",children:(0,e.jsx)(Zt.Z,{})}),(0,e.jsx)("p",{className:"ant-upload-text",children:"\u76F8\u7247\u6216\u8EAB\u4EFD\u8BC1\u590D\u5370\u5904"}),(0,e.jsx)("p",{className:"ant-upload-hint",children:"\u53EF\u62D6\u62FD\u4E0A\u4F20\u6216\u8005\u70B9\u51FB\u9009\u62E9\u4E0A\u4F20"})]})})})]})})}},{span:24,title:"\u5E2E\u6276\u60C5\u51B5",editable:!1,render:function(H,S,G,Z){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(Fe.Z,{showHeader:!1,scroll:{x:"100%"},rowKey:"id",loading:!1,value:[{id:"1",date:"2020-12-12",danwei:"kgkjgk",gangwei:"dsfsfsdf"},{id:"2",date:"2020-12-12",danwei:"kgkjgk",gangwei:"dsfsfsdf"}],columns:[{dataIndex:"date"},{valueType:"option",width:200,render:function(z,le,me,o){return[(0,e.jsx)("a",{onClick:function(){var ye;o==null||(ye=o.startEditable)===null||ye===void 0||ye.call(o,le.id)},children:"\u7F16\u8F91"},"editable"),(0,e.jsx)("a",{onClick:function(){},children:"\u5220\u9664"},"delete")]}}],editable:{type:"multiple",editableKeys:B,onSave:function(){var j=L()(d()().mark(function le(me,o,ne){return d()().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:console.log(me,o,ne);case 1:case"end":return Be.stop()}},le)}));function z(le,me,o){return j.apply(this,arguments)}return z}(),onChange:W},recordCreatorProps:{position:"bottom",record:function(){return{id:(Math.random()*1e6).toFixed(0)}}}})})}}]})]})})})})})},Nt=(0,oe.connect)(function(m){var n=m.dictModel,i=m.openModel;return{dictModel:n,openModel:i}})(Ot),et=b(97088),tt=b(93162),sn={label:"name",value:"id"},Ut=function(n){var i,w,Q,p,M,A,I,B,W,R,s,x,l,$,V,r,P=n.dispatch,U=n.dictModel,ie=n.openModel,de=n.id,he=(0,u.useState)(!1),ee=F()(he,2),D=ee[0],f=ee[1],E=(0,u.useState)(null),a=F()(E,2),t=a[0],C=a[1];return(0,u.useEffect)(function(){f(ie.openExportModal)},[ie.openExportModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(pe.ZP,{theme:{},children:(0,e.jsx)(Ee.Z,{open:D,centered:!0,maskClosable:!1,destroyOnClose:!0,width:1e3,onCancel:function(){P({type:"openModel/getOpenExportModal",payload:!1})},afterOpenChange:function(){var c=L()(d()().mark(function g(_){var v;return d()().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(!_){Y.next=5;break}return Y.next=3,(0,h.tsR)({customer_id:de.customer_id,application_id:de.id});case 3:v=Y.sent,C(v.data);case 5:case"end":return Y.stop()}},g)}));return function(g){return c.apply(this,arguments)}}(),onOk:L()(d()().mark(function c(){var g,_,v;return d()().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return g=document.getElementById("export-container"),_=et.m(g==null?void 0:g.outerHTML),Y.next=4,_;case 4:v=Y.sent,(0,tt.saveAs)(v,t.seekername+"\u5C31\u4E1A\u670D\u52A1\u767B\u8BB0\u8868.docx");case 6:case"end":return Y.stop()}},c)})),children:t&&(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{id:"export-container",children:[(0,e.jsx)("h1",{style:{fontWeight:"bold",textAlign:"center",marginBottom:"20px"},children:"\u5C31\u4E1A\u670D\u52A1\u767B\u8BB0\u8868"}),(0,e.jsx)("table",{border:1,style:{tableLayout:"fixed",borderCollapse:"collapse",width:"100%",fontSize:"12px"},children:(0,e.jsxs)("tbody",{children:[(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{style:{width:"10%",textAlign:"center"},children:"\u59D3\u540D"}),(0,e.jsx)("td",{colSpan:2,children:(i=t==null?void 0:t.seekername)!==null&&i!==void 0?i:""}),(0,e.jsx)("td",{style:{width:"10%",textAlign:"center"},children:"\u6027\u522B"}),(0,e.jsx)("td",{style:{width:"10%"},children:(w=t==null?void 0:t.gender)!==null&&w!==void 0?w:""}),(0,e.jsx)("td",{style:{width:"10%",textAlign:"center"},children:"\u51FA\u751F\u65E5\u671F"}),(0,e.jsx)("td",{colSpan:2,children:(Q=t==null?void 0:t.dob)!==null&&Q!==void 0?Q:""}),(0,e.jsx)("td",{style:{width:"10%",textAlign:"center"},children:"\u5A5A\u59FB\u72B6\u51B5"}),(0,e.jsx)("td",{style:{width:"10%"},children:(p=t==null?void 0:t.marital_status_txt)!==null&&p!==void 0?p:""})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{style:{width:"10%",textAlign:"center"},children:"\u6587\u5316\u7A0B\u5EA6"}),(0,e.jsx)("td",{style:{width:"10%"},children:(M=t==null?void 0:t.education_txt)!==null&&M!==void 0?M:""}),(0,e.jsx)("td",{style:{width:"10%",textAlign:"center"},children:"\u6BD5\u4E1A\u5B66\u6821"}),(0,e.jsx)("td",{colSpan:2,children:"\u6BD5\u4E1A\u5B66\u6821\u6BD5\u4E1A\u5B66\u6821"}),(0,e.jsx)("td",{style:{width:"10%",textAlign:"center"},children:"\u4E13\u4E1A"}),(0,e.jsx)("td",{colSpan:2,children:"\u6BD5\u4E1A\u5B66\u6821\u6BD5\u4E1A\u5B66\u6821"}),(0,e.jsx)("td",{style:{width:"10%",textAlign:"center"},children:"\u6C11\u65CF"}),(0,e.jsx)("td",{style:{width:"10%"},children:(A=t==null?void 0:t.ethnicity_txt)!==null&&A!==void 0?A:""})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{style:{width:"10%",textAlign:"center"},children:"\u8054\u7CFB\u65B9\u5F0F"}),(0,e.jsx)("td",{colSpan:4,children:(I=t==null?void 0:t.mobile)!==null&&I!==void 0?I:""}),(0,e.jsx)("td",{style:{width:"10%",textAlign:"center"},children:"\u8EAB\u4EFD\u8BC1\u53F7"}),(0,e.jsx)("td",{colSpan:4,children:(B=t==null?void 0:t.id_number)!==null&&B!==void 0?B:""})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{style:{width:"10%",textAlign:"center"},children:"\u73B0\u5C45\u4F4F\u5730"}),(0,e.jsxs)("td",{colSpan:4,children:[(W=t==null?void 0:t.now_level1_txt)!==null&&W!==void 0?W:"",(R=t==null?void 0:t.now_level2_txt)!==null&&R!==void 0?R:"",(s=t==null?void 0:t.now_level3_txt)!==null&&s!==void 0?s:"",(x=t==null?void 0:t.now_level4_txt)!==null&&x!==void 0?x:""]}),(0,e.jsx)("td",{style:{width:"10%",textAlign:"center"},children:"\u6237\u53E3\u6240\u5730"}),(0,e.jsxs)("td",{colSpan:4,children:[(l=t==null?void 0:t.reg_level1_txt)!==null&&l!==void 0?l:"",($=t==null?void 0:t.reg_level2_txt)!==null&&$!==void 0?$:"",(V=t==null?void 0:t.reg_level3_txt)!==null&&V!==void 0?V:"",(r=t==null?void 0:t.reg_level4_txt)!==null&&r!==void 0?r:""]})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{style:{width:"10%",textAlign:"center"},children:"\u4EBA\u5458\u7C7B\u522B"}),(0,e.jsxs)("td",{colSpan:9,children:[t.talent_type==1001091?"\u2611":"\u25A1","\u9000\u4F0D\u4EBA\u5458 \xA0",t.talent_type==1001092?"\u2611":"\u25A1","\u6B8B\u75BE\u4EBA \xA0",t.talent_type==1001093?"\u2611":"\u25A1","\u201C40\u300150\u201D\u4EBA\u5458 \xA0",t.talent_type==1001028?"\u2611":"\u25A1","\u5E94\u5C4A\u6BD5\u4E1A\u751F \xA0",t.talent_type==0?"\u2611":"\u25A1","\u5176\u4ED6"]})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{style:{width:"10%",textAlign:"center"},children:"\u7535\u8111\u6C34\u5E73"}),(0,e.jsxs)("td",{colSpan:3,children:[t.talent_type==1001028?"\u2611":"\u25A1","\u719F\u6089 \xA0",t.talent_type==1001028?"\u2611":"\u25A1","\u4E00\u822C \xA0",t.talent_type==1001028?"\u2611":"\u25A1","\u4E0D\u61C2"]}),(0,e.jsx)("td",{style:{width:"10%",textAlign:"center"},children:"\u666E\u901A\u8BDD\u6C34\u5E73"}),(0,e.jsxs)("td",{colSpan:3,children:[t.talent_type==1001028?"\u2611":"\u25A1","\u6D41\u5229 \xA0",t.talent_type==1001028?"\u2611":"\u25A1","\u4E00\u822C \xA0",t.talent_type==1001028?"\u2611":"\u25A1","\u4E0D\u61C2"]}),(0,e.jsx)("td",{style:{width:"10%",textAlign:"center"},children:"\u5916\u8BED\u6C34\u5E73"}),(0,e.jsx)("td",{style:{width:"10%"}})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{style:{width:"10%",textAlign:"center"},children:"\u4EA4\u901A\u5DE5\u5177"}),(0,e.jsxs)("td",{colSpan:3,children:[t.talent_type==1001098?"\u2611":"\u25A1","\u5C0F\u8F66 \xA0",t.talent_type==1001099?"\u2611":"\u25A1","\u6469\u6258\u8F66 \xA0",t.talent_type==1001100?"\u2611":"\u25A1","\u81EA\u884C\u8F66 \xA0",t.talent_type==1001101?"\u2611":"\u25A1","\u5176\u4ED6 \xA0"]}),(0,e.jsx)("td",{style:{width:"10%",textAlign:"center"},children:"\u9A7E\u7167\u7C7B\u578B"}),(0,e.jsx)("td",{style:{width:"10%",textAlign:"center"}}),(0,e.jsx)("td",{style:{width:"10%",textAlign:"center"},children:"\u53EF\u5426\u52A0\u591C\u73ED"}),(0,e.jsxs)("td",{colSpan:3,children:[t.talent_type==1001103?"\u2611":"\u25A1","\u53EF\u4EE5 \xA0",t.talent_type==1001104?"\u2611":"\u25A1","\u4E0D\u53EF\u4EE5 \xA0",t.talent_type==1001105?"\u2611":"\u25A1","\u5076\u7136\u53EF\u4EE5"]})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{rowSpan:4,style:{width:"10%",textAlign:"center"},children:"\u5B66\u4E60\u6216\u5DE5\u4F5C\u7ECF\u5386"}),(0,e.jsx)("td",{colSpan:3,style:{width:"10%",textAlign:"center"},children:"\u8D77\u6B62\u65F6\u95F4"}),(0,e.jsx)("td",{colSpan:3,style:{width:"10%",textAlign:"center"},children:"\u5B66\u6821/\u5DE5\u4F5C\u5355\u4F4D"}),(0,e.jsx)("td",{colSpan:3,style:{width:"10%",textAlign:"center"},children:"\u804C\u52A1/\u5DE5\u4F5C\u5C97\u4F4D"})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{colSpan:3,style:{width:"10%",textAlign:"center"}}),(0,e.jsx)("td",{colSpan:3,style:{width:"10%",textAlign:"center"}}),(0,e.jsx)("td",{colSpan:3,style:{width:"10%",textAlign:"center"}})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{colSpan:3,style:{width:"10%",textAlign:"center"}}),(0,e.jsx)("td",{colSpan:3,style:{width:"10%",textAlign:"center"}}),(0,e.jsx)("td",{colSpan:3,style:{width:"10%",textAlign:"center"}})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{colSpan:3,style:{width:"10%",textAlign:"center"}}),(0,e.jsx)("td",{colSpan:3,style:{width:"10%",textAlign:"center"}}),(0,e.jsx)("td",{colSpan:3,style:{width:"10%",textAlign:"center"}})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{rowSpan:2,style:{width:"10%",textAlign:"center"},children:"\u6C42\u804C\u610F\u5411"}),(0,e.jsx)("td",{rowSpan:2,style:{width:"10%",textAlign:"center"},children:"\u60F3\u4ECE\u4E8B\u804C\u4F4D"}),(0,e.jsx)("td",{colSpan:8,children:"\u5B66\u6821/\u5DE5\u4F5C\u5355\u4F4D"})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{colSpan:5,children:"\u662F\u5426\u63A5\u6536\u5176\u4ED6\u804C\u4F4D\u7684\u63A8\u8350\uFF08 \uFF09"}),(0,e.jsx)("td",{colSpan:3,children:"\u85AA\u916C\u8981\u6C42\uFF1A 20000\u5143/\u6708"})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{style:{width:"10%",textAlign:"center"},children:"\u83B7\u4F55\u79CD\u8BC1\u4E66\u6216\u5956\u52B1"}),(0,e.jsx)("td",{colSpan:9})]}),t.intros?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{rowSpan:t.intros&&t.intros.length>5?t.intros.length+2:7,style:{width:"10%",textAlign:"center"},children:"\u4ECB\u7ECD\u5DE5\u4F5C\u60C5\u51B5"}),(0,e.jsx)("td",{colSpan:5,children:t.intros&&t.intros.length>0&&t.intros[0].content}),(0,e.jsx)("td",{rowSpan:5,colSpan:4,children:"\u76F8\u7247\u6216\u8EAB\u4EFD\u8BC1\u590D\u5370\u5904"})]}),t.intros&&t.intros.length>5?(0,e.jsxs)(e.Fragment,{children:[t.intros&&t.intros.length>5&&t.intros.slice(1,5).map(function(c,g){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("tr",{style:{height:"30px"},children:(0,e.jsx)("td",{colSpan:5,children:c.content})})})}),t.intros&&t.intros.length>5&&t.intros.slice(5).map(function(c,g){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("tr",{style:{height:"30px"},children:(0,e.jsx)("td",{colSpan:9,children:c.content})})})}),(0,e.jsx)("tr",{style:{height:"30px"},children:(0,e.jsx)("td",{colSpan:9})}),(0,e.jsx)("tr",{style:{height:"30px"},children:(0,e.jsx)("td",{colSpan:9})})]}):(0,e.jsxs)(e.Fragment,{children:[t.intros&&t.intros.slice(1,t.intros.length).map(function(c,g){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("tr",{style:{height:"30px"},children:(0,e.jsx)("td",{colSpan:9,children:c.content})})})}),t.intros.length<5&&(0,e.jsx)(e.Fragment,{children:Array(7-t.intros.length).fill(0).map(function(c,g){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("tr",{style:{height:"30px"},children:(0,e.jsx)("td",{colSpan:9})})})})})]})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{rowSpan:7,style:{width:"10%",textAlign:"center"},children:"\u4ECB\u7ECD\u5DE5\u4F5C\u60C5\u51B5"}),(0,e.jsx)("td",{colSpan:5}),(0,e.jsx)("td",{rowSpan:5,colSpan:4,children:"\u76F8\u7247\u6216\u8EAB\u4EFD\u8BC1\u590D\u5370\u5904"})]}),(0,e.jsx)("tr",{style:{height:"30px"},children:(0,e.jsx)("td",{colSpan:5})}),(0,e.jsx)("tr",{style:{height:"30px"},children:(0,e.jsx)("td",{colSpan:5})}),(0,e.jsx)("tr",{style:{height:"30px"},children:(0,e.jsx)("td",{colSpan:5})}),(0,e.jsx)("tr",{style:{height:"30px"},children:(0,e.jsx)("td",{colSpan:5})}),(0,e.jsx)("tr",{style:{height:"30px"},children:(0,e.jsx)("td",{colSpan:9})}),(0,e.jsx)("tr",{style:{height:"30px"},children:(0,e.jsx)("td",{colSpan:9})})]}),t.assists?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{rowSpan:t.assists&&t.assists.length>4?t.assists.length+2:4,style:{width:"10%",textAlign:"center"},children:"\u5E2E\u6276\u60C5\u51B5"}),(0,e.jsx)("td",{colSpan:9,children:t.assists&&t.assists.length>0&&t.assists[0].content})]}),t.assists&&t.assists.length>0&&t.assists.slice(1).map(function(c,g){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("tr",{style:{height:"30px"},children:(0,e.jsx)("td",{colSpan:9,children:c.content})})})}),Array(4-t.assists.length).fill(0).map(function(c,g){return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("tr",{style:{height:"30px"},children:(0,e.jsx)("td",{colSpan:9})})})})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{rowSpan:4,style:{width:"10%",textAlign:"center"},children:"\u5E2E\u6276\u60C5\u51B5"}),(0,e.jsx)("td",{colSpan:9})]}),(0,e.jsx)("tr",{style:{height:"30px"},children:(0,e.jsx)("td",{colSpan:9})}),(0,e.jsx)("tr",{style:{height:"30px"},children:(0,e.jsx)("td",{colSpan:9})}),(0,e.jsx)("tr",{style:{height:"30px"},children:(0,e.jsx)("td",{colSpan:9})})]})]})})]})})})})})},Jt=(0,oe.connect)(function(m){var n=m.dictModel,i=m.openModel;return{dictModel:n,openModel:i}})(Ut),Kt=b(86492),Wt=b.n(Kt),ln={label:"name",value:"id"},Yt=function(n){var i=n.dispatch,w=n.dictModel,Q=n.openModel,p=n.id,M=(0,u.useState)(!1),A=F()(M,2),I=A[0],B=A[1],W=(0,u.useState)(null),R=F()(W,2),s=R[0],x=R[1];return(0,u.useEffect)(function(){B(Q.openResumeDetailModal)},[Q.openResumeDetailModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(pe.ZP,{theme:{},children:(0,e.jsx)(Ee.Z,{open:I,centered:!0,okText:"\u4E0B\u8F7D\u7B80\u5386",maskClosable:!1,destroyOnClose:!0,width:1e3,onCancel:function(){i({type:"openModel/getOpenResumeDetailModal",payload:!1})},afterOpenChange:function(){var l=L()(d()().mark(function $(V){var r;return d()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:if(!V){U.next=5;break}return U.next=3,(0,h.tsR)({customer_id:p.customer_id,application_id:p.id});case 3:r=U.sent,x(r.data);case 5:case"end":return U.stop()}},$)}));return function($){return l.apply(this,arguments)}}(),onOk:L()(d()().mark(function l(){var $,V,r;return d()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return $=document.getElementById("export-container"),V=et.m($==null?void 0:$.outerHTML),U.next=4,V;case 4:r=U.sent,(0,tt.saveAs)(r,s.seekername+"\u4E2A\u4EBA\u7B80\u5386.docx");case 6:case"end":return U.stop()}},l)})),children:s&&(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{id:"export-container",children:[(0,e.jsx)("h1",{style:{fontWeight:"bold",textAlign:"center",marginBottom:"20px"},children:"\u4E2A\u4EBA\u7B80\u5386"}),(0,e.jsxs)("div",{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{style:{color:"#4fbe70",margin:"10px 0"},children:(0,e.jsx)("h3",{children:"\u57FA\u672C\u8D44\u6599"})}),(0,e.jsx)("div",{children:(0,e.jsx)("table",{border:1,style:{borderCollapse:"collapse",textAlign:"center",width:"100%"},children:(0,e.jsxs)("tbody",{children:[(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{children:"\u59D3\xA0\u540D"}),(0,e.jsx)("td",{children:s.seekername}),(0,e.jsx)("td",{children:"\u6027\xA0\u522B"}),(0,e.jsx)("td",{children:s.gender}),(0,e.jsx)("td",{rowspan:6,style:{textAlign:"center",verticalAlign:"middle"},children:(0,e.jsx)("img",{src:Se.VO+s.photo,alt:"",width:"90",height:"150"})})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{children:"\u51FA\u751F\u65E5\u671F"}),(0,e.jsx)("td",{children:s.dob}),(0,e.jsx)("td",{children:"\u804C\xA0\u79F0"}),(0,e.jsx)("td",{children:s.title_txt})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{children:"\u73B0\u5C45\u4F4F\u5730"}),(0,e.jsxs)("td",{children:[s.now_level1_txt?s.now_level1_txt:"",s.now_level2_txt?s.now_level2_txt:"",s.now_level3_txt?s.now_level3_txt:"",s.now_level4_txt?s.now_level4_txt:""]}),(0,e.jsx)("td",{children:"\u6237\u53E3\u6240\u5728\u5730"}),(0,e.jsxs)("td",{children:[s.now_level1_txt?s.now_level1_txt:"",s.now_level2_txt?s.now_level2_txt:"",s.now_level3_txt?s.now_level3_txt:"",s.now_level4_txt?s.now_level4_txt:""]})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{children:"\u5B66\xA0\u5386"}),(0,e.jsx)("td",{children:s.education_txt}),(0,e.jsx)("td",{children:"\u5A5A\u59FB\u72B6\u51B5"}),(0,e.jsx)("td",{children:s.marital_status_txt})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{children:"\u6C11\xA0\u65CF"}),(0,e.jsx)("td",{children:s.ethnicity_txt}),(0,e.jsx)("td",{children:"\u653F\u6CBB\u9762\u8C8C"}),(0,e.jsx)("td",{children:s.political_status_txt})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{children:"\u4F53\xA0\u91CD"}),(0,e.jsxs)("td",{children:[s.weight,"kg"]}),(0,e.jsx)("td",{children:"\u8EAB\xA0\u9AD8"}),(0,e.jsxs)("td",{children:[s.height,"cm"]})]})]})})})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{style:{color:"#4fbe70",margin:"10px 0"},children:(0,e.jsx)("h3",{children:"\u4E2A\u4EBA\u7B80\u4ECB"})}),(0,e.jsx)("div",{children:(0,e.jsx)("table",{border:1,style:{borderCollapse:"collapse",textAlign:"center",width:"100%"},children:(0,e.jsx)("tbody",{children:(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{style:{width:"20%"},children:"\u4E2A\u4EBA\u7B80\u4ECB"}),(0,e.jsx)("td",{style:{width:"80%"},children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:Wt().decode(s.introduction)}})})]})})})})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{style:{color:"#4fbe70",margin:"10px 0"},children:(0,e.jsx)("h3",{children:"\u6C42\u804C\u671F\u671B"})}),(0,e.jsx)("div",{children:(0,e.jsx)("table",{border:1,style:{borderCollapse:"collapse",textAlign:"center",width:"100%"},children:(0,e.jsxs)("tbody",{children:[(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{style:{width:"20%"},children:"\u6C42\u804C\u7C7B\u578B"}),(0,e.jsx)("td",{style:{width:"30%"},children:s.job_type_txt}),(0,e.jsx)("td",{style:{width:"20%"},children:"\u53EF\u5230\u804C\u65E5\u671F"}),(0,e.jsx)("td",{style:{width:"30%"},children:s.available_date_txt})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{style:{width:"20%"},children:"\u4EBA\u624D\u7C7B\u578B"}),(0,e.jsx)("td",{style:{width:"30%"},children:s.talent_type_txt}),(0,e.jsx)("td",{style:{width:"20%"},children:"\u5DE5\u4F5C\u7ECF\u9A8C"}),(0,e.jsx)("td",{style:{width:"30%"},children:s.work_experience})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{style:{width:"20%"},children:"\u6708\u85AA\u8981\u6C42"}),(0,e.jsx)("td",{colspan:3,style:{width:"80%"},children:s.salary_range_txt})]}),s.desire_areas&&s.desire_areas.map(function(l,$){return(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsxs)("td",{style:{width:"20%"},children:["\u671F\u671B\u5DE5\u4F5C\u5730\u533A",$+1]}),(0,e.jsxs)("td",{colspan:3,style:{width:"80%"},children:[l.level1_txt?l.level1_txt:"",l.level2_txt?l.level2_txt:"",l.level3_txt?l.level3_txt:"",l.level4_txt?l.level4_txt:""]})]})}),s.desire_industrys&&s.desire_industrys.map(function(l,$){return(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsxs)("td",{style:{width:"20%"},children:["\u671F\u671B\u4ECE\u4E8B\u884C\u4E1A",$+1]}),(0,e.jsx)("td",{colspan:3,style:{width:"80%"},children:l.industry_txt?l.industry_txt:""})]})}),s.desire_positions&&s.desire_positions.map(function(l,$){return(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsxs)("td",{style:{width:"20%"},children:["\u671F\u671B\u4ECE\u4E8B\u804C\u4F4D",$+1]}),(0,e.jsxs)("td",{colspan:3,style:{width:"80%"},children:[l.level1_txt?l.level1_txt:"",l.level2_txt?l.level2_txt:""]})]})})]})})})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{style:{color:"#4fbe70",margin:"10px 0"},children:(0,e.jsx)("h3",{children:"\u6559\u80B2\u57F9\u8BAD"})}),(0,e.jsx)("div",{children:(0,e.jsxs)("table",{border:1,style:{borderCollapse:"collapse",textAlign:"center",width:"100%"},children:[(0,e.jsxs)("thead",{children:[(0,e.jsx)("th",{style:{height:"30px",width:"20%"},children:"\u8D77\u6B62\u65F6\u95F4"}),(0,e.jsx)("th",{style:{height:"30px",width:"20%"},children:"\u5B66\u6821/\u57F9\u8BAD\u673A\u6784"}),(0,e.jsx)("th",{style:{height:"30px",width:"20%"},children:"\u4E13\u4E1A"}),(0,e.jsx)("th",{style:{height:"30px",width:"20%"},children:"\u66FE\u62C5\u4EFB\u7684\u804C\u52A1"}),(0,e.jsx)("th",{style:{height:"30px",width:"20%"},children:"\u83B7\u5F97\u8BC1\u4E66\u5956\u9879"})]}),(0,e.jsx)("tbody",{children:s.trainings&&s.trainings.map(function(l,$){return(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsxs)("td",{style:{width:"20%"},children:[l.start_year,".",l.start_month,"\u81F3",l.end_year,".",l.end_month]}),(0,e.jsx)("td",{style:{width:"20%"},children:l.school_or_institution}),(0,e.jsx)("td",{style:{width:"20%"},children:l.major}),(0,e.jsx)("td",{style:{width:"20%"},children:l.positions_held}),(0,e.jsxs)("td",{style:{width:"20%"},children:[(0,e.jsx)("div",{children:l.certificate}),(0,e.jsx)("div",{children:l.awards})]})]})})})]})})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{style:{color:"#4fbe70",margin:"10px 0"},children:(0,e.jsx)("h3",{children:"\u5DE5\u4F5C\u7ECF\u5386"})}),(0,e.jsx)("div",{children:(0,e.jsxs)("table",{border:1,style:{borderCollapse:"collapse",textAlign:"center",width:"100%"},children:[(0,e.jsxs)("thead",{children:[(0,e.jsx)("th",{style:{height:"30px",width:"25%"},children:"\u8D77\u6B62\u65F6\u95F4"}),(0,e.jsx)("th",{style:{height:"30px",width:"25%"},children:"\u5355\u4F4D\u540D\u79F0"}),(0,e.jsx)("th",{style:{height:"30px",width:"25%"},children:"\u804C\u4F4D"}),(0,e.jsx)("th",{style:{height:"30px",width:"25%"},children:"\u79BB\u804C\u539F\u56E0"})]}),(0,e.jsx)("tbody",{children:s.experiences&&s.experiences.map(function(l,$){return(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsxs)("td",{style:{width:"25%"},children:[l.start_year,".",l.start_month,"\u81F3",l.end_year,".",l.end_month]}),(0,e.jsx)("td",{style:{width:"25%"},children:l.company_name}),(0,e.jsx)("td",{style:{width:"25%"},children:l.position}),(0,e.jsx)("td",{style:{width:"25%"},children:l.reason_for_leaving})]})})})]})})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{style:{color:"#4fbe70",margin:"10px 0"},children:(0,e.jsx)("h3",{children:"\u4E13\u4E1A\u6280\u80FD\u638C\u63E1\u80FD\u529B"})}),(0,e.jsx)("div",{children:(0,e.jsx)("table",{border:1,style:{borderCollapse:"collapse",textAlign:"center",width:"100%"},children:(0,e.jsxs)("tbody",{children:[(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{style:{width:"25%"},children:"\u82F1\xA0\u8BED"}),(0,e.jsx)("td",{style:{width:"25%"},children:s.english_txt}),(0,e.jsx)("td",{style:{width:"25%"},children:"\u7CA4\xA0\u8BED"}),(0,e.jsx)("td",{style:{width:"25%"},children:s.mandarin_txt})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{style:{width:"25%"},children:"\u56FD\xA0\u8BED"}),(0,e.jsx)("td",{style:{width:"25%"},children:s.cantonese_txt}),(0,e.jsx)("td",{style:{width:"25%"},children:"\u7B2C\u4E8C\u5916\u8BED"}),(0,e.jsx)("td",{style:{width:"25%"},children:s.other_language_txt})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{style:{width:"25%"},children:"\u8BA1\u7B97\u673A\u80FD\u529B"}),(0,e.jsx)("td",{colspan:7,style:{width:"75%"},children:s.computer_skills})]})]})})})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{style:{color:"#4fbe70",margin:"10px 0"},children:(0,e.jsx)("h3",{children:"\u8054\u7CFB\u4FE1\u606F"})}),(0,e.jsx)("div",{children:(0,e.jsx)("table",{border:1,style:{borderCollapse:"collapse",textAlign:"center",width:"100%"},children:(0,e.jsxs)("tbody",{children:[(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{style:{width:"15%"},children:"\u79FB\u52A8\u7535\u8BDD"}),(0,e.jsx)("td",{style:{width:"35%"},children:s.mobile}),(0,e.jsx)("td",{style:{width:"15%"},children:"\u56FA\u5B9A\u7535\u8BDD"}),(0,e.jsx)("td",{style:{width:"35%"},children:s.landline})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{style:{width:"15%"},children:"\u8054\u7CFB\u90AE\u7BB1"}),(0,e.jsx)("td",{style:{width:"35%"},children:s.email}),(0,e.jsx)("td",{style:{width:"15%"},children:"Q\xA0Q"}),(0,e.jsx)("td",{style:{width:"35%"},children:s.qq})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{style:{width:"15%"},children:"\u901A\u8BAF\u5730\u5740"}),(0,e.jsx)("td",{style:{width:"35%"},children:s.mailing_address}),(0,e.jsx)("td",{style:{width:"15%"},children:"\u90AE\xA0\u7F16"}),(0,e.jsx)("td",{style:{width:"35%"},children:s.postal_code})]}),(0,e.jsxs)("tr",{style:{height:"30px"},children:[(0,e.jsx)("td",{style:{width:"15%"},children:"\u4E2A\u4EBA\u4E3B\u9875"}),(0,e.jsx)("td",{colspan:3,style:{width:"85%"},children:s.personal_website})]})]})})}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{style:{color:"#4fbe70",margin:"10px 0"},children:(0,e.jsx)("h3",{children:"\u8BC1\u4E66\u4FE1\u606F"})}),(0,e.jsx)("div",{children:(0,e.jsxs)("table",{border:1,style:{borderCollapse:"collapse",textAlign:"center",width:"100%"},children:[(0,e.jsxs)("thead",{children:[(0,e.jsx)("th",{style:{height:"30px",width:"25%"},children:"\u8BC1\u4E66\u540D\u79F0"}),(0,e.jsx)("th",{style:{height:"30px",width:"80%"},children:"\u8BC1\u4E66\u56FE\u7247"})]}),(0,e.jsx)("tbody",{children:s.certificates&&s.certificates.map(function(l,$){return(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{style:{width:"25%"},children:l.name}),(0,e.jsx)("td",{style:{width:"80%"},children:(0,e.jsx)("img",{src:Se.VO+l.certificate_photo,alt:"",width:"90",height:"150"})})]})})})]})})]})]})]})]})})})})})},Vt=(0,oe.connect)(function(m){var n=m.dictModel,i=m.openModel;return{dictModel:n,openModel:i}})(Yt),nt=b(86738),an={label:"name",value:"id",children:"childss"},Ht=function(n){var i=n.dispatch,w=n.dictModel,Q=n.openModel,p=n.id,M=(0,u.useRef)(),A=(0,u.useRef)(),I=(0,u.useState)([]),B=F()(I,2),W=B[0],R=B[1],s=(0,u.useState)([]),x=F()(s,2),l=x[0],$=x[1],V=(0,u.useState)([]),r=F()(V,2),P=r[0],U=r[1],ie=(0,u.useState)(0),de=F()(ie,2),he=de[0],ee=de[1];return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(pe.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,e.jsx)(Fe.Z,{editableFormRef:A,actionRef:M,rowKey:"id",loading:!1,request:L()(d()().mark(function D(){var f;return d()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,h.B9J)({customer_id:p.customer_id,sortby:"asc",sort:"id"});case 2:return f=a.sent,$(f.data.jobapplicantintros),U(f.data.jobapplicantintros),ee(f.data.total),a.abrupt("return",{data:f.data.jobapplicantintros,total:f.data.total,success:!0});case 7:case"end":return a.stop()}},D)})),columns:[{title:"ID",dataIndex:"id",editable:!1,width:100},{title:"\u4ECB\u7ECD\u60C5\u51B5",dataIndex:"content"},{title:"\u64CD\u4F5C",valueType:"option",width:200,render:function(f,E,a,t){return[(0,e.jsx)("a",{onClick:L()(d()().mark(function C(){var c;return d()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:t==null||(c=t.startEditable)===null||c===void 0||c.call(t,E.id);case 1:case"end":return _.stop()}},C)})),children:"\u7F16\u8F91"},"editable"),(0,e.jsx)(nt.Z,{title:"\u662F\u5426\u5220\u9664",onConfirm:function(c){(0,h.eL)({id:E.id}).then(function(g){q.ZP.success("\u5220\u9664\u6210\u529F"),M.current.reload()})},okText:"\u5220\u9664",cancelText:"\u53D6\u6D88",children:(0,e.jsx)("a",{children:"\u5220\u9664"},"delete")})]}}],editable:{type:"single",editableKeys:W,onSave:function(){var D=L()(d()().mark(function E(a,t,C){var c,g;return d()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(console.log(a,t,C),t.customer_id=p.customer_id,!(a&&P.findIndex(function(y){return y.id===a})!==-1)){v.next=10;break}return v.next=5,(0,h.CS_)({id:a,customer_id:t.customer_id,content:t.content});case 5:c=v.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),M.current.reload(),v.next=15;break;case 10:return v.next=12,(0,h.UY5)({customer_id:t.customer_id,intro_content:[t.content]});case 12:g=v.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),M.current.reload();case 15:case"end":return v.stop()}},E)}));function f(E,a,t){return D.apply(this,arguments)}return f}(),onChange:R},recordCreatorProps:{position:"bottom",record:function(){return{id:l.length>0?(l[l.length-1].id+1).toFixed(0):0}}}})})})},zt=(0,oe.connect)(function(m){var n=m.dictModel,i=m.openModel;return{dictModel:n,openModel:i}})(Ht),qt=function(n){var i=n.dispatch,w=n.dictModel,Q=n.openModel,p=n.id,M=(0,u.useRef)(),A=(0,u.useRef)(),I=(0,u.useState)([]),B=F()(I,2),W=B[0],R=B[1],s=(0,u.useState)([]),x=F()(s,2),l=x[0],$=x[1],V=(0,u.useState)([]),r=F()(V,2),P=r[0],U=r[1],ie=(0,u.useState)(0),de=F()(ie,2),he=de[0],ee=de[1];return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(pe.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,e.jsx)(Fe.Z,{editableFormRef:A,actionRef:M,rowKey:"id",loading:!1,request:L()(d()().mark(function D(){var f;return d()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,h.PQA)({customer_id:p.customer_id,sortby:"asc",sort:"id"});case 2:return f=a.sent,$(f.data.jobapplicantassists),U(f.data.jobapplicantassists),ee(f.data.total),a.abrupt("return",{data:f.data.jobapplicantassists,total:f.data.total,success:!0});case 7:case"end":return a.stop()}},D)})),columns:[{title:"ID",dataIndex:"id",editable:!1,width:100},{title:"\u5E2E\u6276\u60C5\u51B5",dataIndex:"content"},{title:"\u64CD\u4F5C",valueType:"option",width:200,render:function(f,E,a,t){return[(0,e.jsx)("a",{onClick:L()(d()().mark(function C(){var c;return d()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:t==null||(c=t.startEditable)===null||c===void 0||c.call(t,E.id);case 1:case"end":return _.stop()}},C)})),children:"\u7F16\u8F91"},"editable"),(0,e.jsx)(nt.Z,{title:"\u662F\u5426\u5220\u9664",onConfirm:function(c){(0,h.U8O)({id:E.id}).then(function(g){q.ZP.success("\u5220\u9664\u6210\u529F"),M.current.reload()})},okText:"\u5220\u9664",cancelText:"\u53D6\u6D88",children:(0,e.jsx)("a",{children:"\u5220\u9664"},"delete")})]}}],editable:{type:"single",editableKeys:W,onSave:function(){var D=L()(d()().mark(function E(a,t,C){var c,g;return d()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(console.log(a,t,C),t.customer_id=p.customer_id,!(a&&P.findIndex(function(y){return y.id===a})!==-1)){v.next=10;break}return v.next=5,(0,h.g6D)({id:a,customer_id:t.customer_id,content:t.content});case 5:c=v.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),M.current.reload(),v.next=15;break;case 10:return v.next=12,(0,h.UY5)({customer_id:t.customer_id,assist_content:[t.content]});case 12:g=v.sent,q.ZP.success("\u63D0\u4EA4\u6210\u529F"),M.current.reload();case 15:case"end":return v.stop()}},E)}));function f(E,a,t){return D.apply(this,arguments)}return f}(),onChange:R},recordCreatorProps:{position:"bottom",record:function(){return{id:l.length>0?(l[l.length-1].id+1).toFixed(0):0}}}})})})},Qt=(0,oe.connect)(function(m){var n=m.dictModel,i=m.openModel;return{dictModel:n,openModel:i}})(qt),Xt=function(n){var i=n.dispatch,w=n.dictModel,Q=n.openModel,p=n.id,M=(0,u.useState)(!1),A=F()(M,2),I=A[0],B=A[1];return(0,u.useEffect)(function(){B(Q.openResumeHelpModal)},[Q.openResumeHelpModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(pe.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,e.jsx)(Ee.Z,{open:I,title:"\u5DE5\u4F5C\u5E2E\u6276\u60C5\u51B5",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){i({type:"openModel/getOpenResumeHelpModal",payload:!1})},children:(0,e.jsx)($e.Z,{destroyInactiveTabPane:!0,type:"card",items:[{label:"\u4ECB\u7ECD\u5DE5\u4F5C\u60C5\u51B5",key:"1",children:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(zt,{id:p})})},{label:"\u5E2E\u6276\u60C5\u51B5",key:"2",children:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(Qt,{id:p})})}]})})})})},Gt=(0,oe.connect)(function(m){var n=m.dictModel,i=m.openModel;return{dictModel:n,openModel:i}})(Xt),en=function(n){var i=n.dispatch,w=n.openModel,Q=(0,u.useState)(null),p=F()(Q,2),M=p[0],A=p[1],I=function(W){A(W)};return(0,u.useEffect)(function(){w.openModal||A(0)},[w.openModal]),(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(pe.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:[(0,e.jsx)(Je,{getId:I}),(0,e.jsx)(Dt,{id:M}),(0,e.jsx)(Nt,{id:M}),(0,e.jsx)(Jt,{id:M}),(0,e.jsx)(Vt,{id:M}),(0,e.jsx)(Gt,{id:M})]})})},tn=(0,oe.connect)(function(m){var n=m.openModel;return{openModel:n}})(en)}}]);