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