UserInfo.vue 123 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501
  1. <template>
  2. <el-container class="userInfo">
  3. <el-aside class="aside">
  4. <el-card shadow="never" body-style="height:700px">
  5. <template #header>
  6. <div class="card-header">
  7. <span>
  8. <div class="person-bg">
  9. <el-icon size="14"><user-filled></user-filled></el-icon>
  10. </div>
  11. <label class="person-text">基本信息</label>
  12. </span>
  13. </div>
  14. </template>
  15. <div class="user-info">
  16. <div class="user-info-top">
  17. <el-avatar :size="80" :src="userInfo.photo"></el-avatar>
  18. <h2>{{ userInfo.name || "-" }}</h2>
  19. <p>{{ userInfo.sign || "无签名" }}</p>
  20. <el-button type="primary" round icon="collection-tag">{{
  21. userInfo.loginName
  22. }}</el-button>
  23. </div>
  24. <div class="user-info-main">
  25. <el-descriptions :column="1">
  26. <el-descriptions-item>
  27. <template #label>
  28. <el-icon :size="14">
  29. <Iphone />
  30. </el-icon>
  31. </template>
  32. {{ userInfo.mobile }}
  33. </el-descriptions-item>
  34. <el-descriptions-item>
  35. <template #label>
  36. <el-icon :size="14">
  37. <youjian />
  38. </el-icon>
  39. </template>
  40. {{ userInfo.email }}
  41. </el-descriptions-item>
  42. <el-descriptions-item>
  43. <template #label>
  44. <el-icon :size="14">
  45. <location />
  46. </el-icon>
  47. </template>
  48. {{ userInfo.companyDTO?.name }}
  49. </el-descriptions-item>
  50. <el-descriptions-item>
  51. <template #label>
  52. <el-icon :size="14"><office-building /></el-icon>
  53. </template>
  54. {{ userInfo.officeDTO?.name }}
  55. </el-descriptions-item>
  56. <el-descriptions-item>
  57. <template #label>
  58. <el-icon :size="14">
  59. <coin />
  60. </el-icon>
  61. </template>
  62. {{ userInfo.roleNames }}
  63. </el-descriptions-item>
  64. </el-descriptions>
  65. </div>
  66. </div>
  67. </el-card>
  68. </el-aside>
  69. <el-main style="padding: 0">
  70. <el-card shadow="never" body-style="height:700px" v-loading="loading">
  71. <template #header>
  72. <div class="card-header">
  73. <span>
  74. <div class="person-bg">
  75. <el-icon size="14">
  76. <bianji></bianji>
  77. </el-icon>
  78. </div>
  79. <label class="person-text">资料修改</label>
  80. </span>
  81. <div style="float: right;display: flex;justify-content: center;align-items: center;">
  82. <el-button type="primary" @click="submitUserInfo"
  83. v-if="auditStatus != 2 && auditStatus != 4">提交审批</el-button>
  84. <el-tag size="large" style="margin-left: 10px;font-size: 12px; " v-if="auditStatus == 5"
  85. type="success">
  86. <span>审核通过,修改成功</span>
  87. </el-tag>
  88. <el-button type="primary" @click="submitUserInfo"
  89. v-else-if="auditStatus == 4">重新提交</el-button>
  90. <el-popover placement="left" :width="400" trigger="hover">
  91. <template #reference>
  92. <el-button style="margin-left: 10px;" v-if="auditStatus == 2"
  93. type="primary">审批中</el-button>
  94. </template>
  95. <!-- <el-table :data="flowData" ref="flowRef" style="width: 100%;"
  96. highlight-current-row="true">
  97. <el-table-column property="comment.status" label="节点" align="center" />
  98. <el-table-column property="assigneeName" label="审核人" align="center" />
  99. </el-table> -->
  100. <el-timeline style="max-width: 600px" v-if="flowData && flowData.length">
  101. <el-timeline-item v-for="(activity, index) in flowData" :key="index"
  102. :color="index === flowData.length - 1 ? '#0bbd87' : '#dcdfe6'"
  103. :timestamp="activity.histIns.startTime">
  104. 状态:{{ activity.comment.status }}<br />
  105. 审批人:{{ activity.assigneeName }}<br />
  106. </el-timeline-item>
  107. </el-timeline>
  108. <el-result v-else icon="info" title="暂未查询到审批信息">
  109. <template #sub-title>
  110. <span>请刷新后重试</span>
  111. </template>
  112. <template #extra>
  113. </template>
  114. </el-result>
  115. </el-popover>
  116. <el-button style="margin-left: 10px;" v-if="auditStatus == 2" type="warning"
  117. @click="handleRevoke">撤回</el-button>
  118. <el-popover width="300" class="box-item" title="" :content="rejectMessage"
  119. placement="top-start">
  120. <template #reference>
  121. <el-tag size="large" style="margin-left: 10px; max-width: 200px;font-size: 12px;"
  122. v-if="auditStatus == 4 && this.procInsId" type="danger">
  123. <span>已驳回,原因:</span>
  124. <span style="
  125. display: inline-block;
  126. vertical-align: bottom;
  127. max-width: 50px;
  128. overflow: hidden;
  129. white-space: nowrap;
  130. text-overflow: ellipsis;
  131. ">
  132. {{ rejectMessage }}
  133. </span>
  134. </el-tag>
  135. </template>
  136. </el-popover>
  137. </div>
  138. </div>
  139. </template>
  140. <el-tabs tab-position="top" v-model="activeName">
  141. <el-form :model="generalForm" ref="generalForm" label-width="130px" :disabled="auditStatus == 2">
  142. <el-tab-pane label="基本信息" name="basicInfo">
  143. <el-row :gutter="26">
  144. <el-col :span="12">
  145. <el-form-item label="姓名" prop="name"
  146. :rules="[{ required: true, message: '姓名不能为空', trigger: 'blur' }]">
  147. <el-input v-model="generalForm.name"></el-input>
  148. </el-form-item>
  149. </el-col>
  150. <el-col :span="12">
  151. <el-form-item label="身份证号码" prop="idCard"
  152. :rules="[{ required: true, validator: validator.isCardId, trigger: 'blur' }]">
  153. <el-input v-model="generalForm.idCard"
  154. @blur="idCardOnly(generalForm.idCard, generalForm.id)"></el-input>
  155. </el-form-item>
  156. </el-col>
  157. <el-col :span="12">
  158. <el-form-item label="性别" prop="sex" :rules="[
  159. { required: true, message: '性别不能为空', trigger: 'change' }
  160. ]">
  161. <el-radio-group :disabled="true" v-model="generalForm.sex">
  162. <el-radio v-for="item in $dictUtils.getDictList('sex')" :label="item.value"
  163. :key="item.value">{{ item.label
  164. }}</el-radio>
  165. </el-radio-group>
  166. </el-form-item>
  167. </el-col>
  168. <el-col :span="12">
  169. <el-form-item label="年龄" prop="age"
  170. :rules="[{ required: true, message: '年龄不能为空', trigger: 'change' }]">
  171. <el-input :disabled="true" v-model="generalForm.age" type="number"></el-input>
  172. </el-form-item>
  173. </el-col>
  174. <el-col :span="12">
  175. <el-form-item label="出生日期" prop="birthday" :rules="[
  176. { required: true, message: '请填写出生日期', trigger: 'blur' }
  177. ]">
  178. <el-date-picker :disabled="true" style="width: 100%"
  179. v-model="generalForm.birthday" value-format="YYYY-MM-DD" placeholder="选择日期">
  180. </el-date-picker>
  181. </el-form-item>
  182. </el-col>
  183. <el-col :span="12">
  184. <el-form-item label="政治面貌" prop="politicalOutlook" :rules="[]">
  185. <!-- <el-input v-model="generalForm.politicalOutlook"></el-input>-->
  186. <el-select v-model="generalForm.politicalOutlook" placeholder="请选择政治面貌"
  187. style="width:100%;">
  188. <el-option v-for="item in $dictUtils.getDictList('political_outlook')"
  189. :key="item.value" :label="item.label" :value="item.value">
  190. </el-option>
  191. </el-select>
  192. </el-form-item>
  193. </el-col>
  194. <!-- <el-col :span="12">
  195. <el-form-item label="籍贯" prop="nativePlace" :rules="[]">
  196. <el-input v-model="generalForm.nativePlace"></el-input>
  197. </el-form-item>
  198. </el-col>-->
  199. <el-col :span="12">
  200. <el-form-item label="籍贯" prop="nativePlace" :rules="[
  201. { required: true, message: '籍贯不能为空', trigger: 'change' }
  202. ]">
  203. <SelectTree ref="areaTree" :props="{
  204. value: 'id', // ID字段名
  205. label: 'name', // 显示名称
  206. children: 'children' // 子级字段名
  207. }" url="/system-server/sys/area/treeData" :value="generalForm.nativePlace" :clearable="true" size="large"
  208. :accordion="true"
  209. @getValue="(value) => { generalForm.nativePlace = value }" />
  210. </el-form-item>
  211. </el-col>
  212. <!-- <el-col :span="12">
  213. <el-form-item label="民族" prop="nation" :rules="[]">
  214. <el-input v-model="generalForm.nation"></el-input>
  215. </el-form-item>
  216. </el-col>-->
  217. <el-col :span="12">
  218. <el-form-item label="民族" prop="nation" :rules="[]">
  219. <el-select v-model="generalForm.nation" placeholder="请选择民族" clearable
  220. style="width: 100%;">
  221. <el-option v-for="item in $dictUtils.getDictList('sys_nation')"
  222. :key="item.value" :label="item.label" :value="item.value">
  223. </el-option>
  224. </el-select>
  225. </el-form-item>
  226. </el-col>
  227. <el-col :span="12">
  228. <el-form-item label="婚姻状况" prop="maritalStatus" :rules="[]">
  229. <el-select v-model="generalForm.maritalStatus" placeholder="请选择婚姻状况" clearable
  230. style="width: 100%;">
  231. <el-option v-for="item in $dictUtils.getDictList('marital_status')"
  232. :key="item.value" :label="item.label" :value="item.value">
  233. </el-option>
  234. </el-select>
  235. </el-form-item>
  236. </el-col>
  237. <el-col :span="12">
  238. <el-form-item label="邮箱" :rules="[
  239. {
  240. type: 'email',
  241. message: '请输入正确的邮箱地址',
  242. trigger: 'blur',
  243. },
  244. ]" prop="email">
  245. <el-input @blur="checkEmail(concatForm.email)"
  246. v-model="concatForm.email"></el-input>
  247. </el-form-item>
  248. </el-col>
  249. <el-col :span="12">
  250. <el-form-item label="联系电话" prop="mobilePhone"
  251. :rules="[{ required: true, message: '联系电话不能为空', trigger: 'change' }]">
  252. <el-input v-model="generalForm.mobilePhone"
  253. @blur="mobilePhoneOnly(generalForm.mobilePhone)"></el-input>
  254. </el-form-item>
  255. </el-col>
  256. <!-- <el-col :span="12">
  257. <el-form-item label="家庭住址" prop="homeAddress" :rules="[]">
  258. <el-input v-model="generalForm.homeAddress"></el-input>
  259. </el-form-item>
  260. </el-col> -->
  261. <el-col :span="12">
  262. <el-form-item label="常住住址" prop="permanentAddress" :rules="[]">
  263. <el-input v-model="generalForm.permanentAddress"></el-input>
  264. </el-form-item>
  265. </el-col>
  266. <el-col :span="12">
  267. <el-form-item label="参加工作日期" prop="joinWorkDate" :rules="[
  268. ]">
  269. <el-date-picker style="width: 100%" v-model="generalForm.joinWorkDate"
  270. value-format="x" placeholder="">
  271. </el-date-picker>
  272. </el-form-item>
  273. </el-col>
  274. <el-col :span="12">
  275. <el-form-item label="从事行业日期" prop="joinIndustryDate" :rules="[
  276. ]">
  277. <el-date-picker style="width: 100%" v-model="generalForm.joinIndustryDate"
  278. value-format="x" placeholder="">
  279. </el-date-picker>
  280. </el-form-item>
  281. </el-col>
  282. <!--
  283. <el-col :span="24">
  284. <el-form-item label="个人简介" prop="remarks" :rules="[]">
  285. <el-input type="textarea" maxlength="200" show-word-limit
  286. v-model="generalForm.remarks"></el-input>
  287. </el-form-item>
  288. </el-col> -->
  289. </el-row>
  290. <el-row :gutter="26">
  291. <el-col :span="12">
  292. <el-form-item class="star-require" label="身份证人像面" prop="idCardFront" :rules="[]">
  293. <UpLoadComponent ref="idCardFront"></UpLoadComponent>
  294. </el-form-item>
  295. </el-col>
  296. <el-col :span="12">
  297. <el-form-item class="star-require" label="身份证国徽面" prop="idCardBack" :rules="[]">
  298. <UpLoadComponent ref="idCardBack"></UpLoadComponent>
  299. </el-form-item>
  300. </el-col>
  301. </el-row>
  302. </el-tab-pane>
  303. <!-- <el-tab-pane label="学历信息">
  304. <el-row :gutter="26">
  305. <el-col :span="12">
  306. <el-form-item label="毕业院校" prop="graduatedFrom" :rules="[]">
  307. <el-input v-model="generalForm.graduatedFrom"></el-input>
  308. </el-form-item>
  309. </el-col>
  310. <el-col :span="12">
  311. <el-form-item label="专业" prop="speciality" :rules="[]">
  312. <el-input v-model="generalForm.speciality"></el-input>
  313. </el-form-item>
  314. </el-col>
  315. <el-col :span="12">
  316. <el-form-item label="开始时间" prop="startTime" :rules="[
  317. ]">
  318. <el-date-picker style="width: 100%" v-model="generalForm.startTime"
  319. value-format="YYYY-MM-DD" placeholder="选择日期">
  320. </el-date-picker>
  321. </el-form-item>
  322. </el-col>
  323. <el-col :span="12">
  324. <el-form-item label="毕业时间" prop="endTime" :rules="[
  325. ]">
  326. <el-date-picker style="width: 100%" v-model="generalForm.endTime"
  327. value-format="YYYY-MM-DD" placeholder="选择日期">
  328. </el-date-picker>
  329. </el-form-item>
  330. </el-col>
  331. <el-col :span="12">
  332. <el-form-item label="学历" prop="education" :rules="[]">
  333. <el-select v-model="generalForm.education" placeholder="请选择学历" clearable
  334. style="width: 100%;">
  335. <el-option v-for="item in $dictUtils.getDictList('education')"
  336. :key="item.value" :label="item.label" :value="item.value">
  337. </el-option>
  338. </el-select>
  339. </el-form-item>
  340. </el-col>
  341. <el-col :span="12">
  342. <el-form-item label="学历性质" prop="educationNature" :rules="[]">
  343. <el-select v-model="generalForm.educationNature" placeholder="请选择学历性质" clearable
  344. style="width: 100%;">
  345. <el-option v-for="item in $dictUtils.getDictList('education_nature')"
  346. :key="item.value" :label="item.label" :value="item.value">
  347. </el-option>
  348. </el-select>
  349. </el-form-item>
  350. </el-col>
  351. <el-col :span="12">
  352. <el-form-item label="是否毕业" prop="graduatedOrNot" :rules="[]">
  353. <el-radio-group v-model="generalForm.graduatedOrNot">
  354. <el-radio v-for="item in $dictUtils.getDictList('graduated_or_not')"
  355. :label="item.value" :key="item.value">{{ item.label }}</el-radio>
  356. </el-radio-group>
  357. </el-form-item>
  358. </el-col>
  359. <el-col :span="12">
  360. <el-form-item label="英语等级" prop="englishLevel" :rules="[]">
  361. <el-select v-model="generalForm.englishLevel" placeholder="请选择英语等级" clearable
  362. style="width: 100%;">
  363. <el-option v-for="item in $dictUtils.getDictList('english_level')"
  364. :key="item.value" :label="item.label" :value="item.value">
  365. </el-option>
  366. </el-select>
  367. </el-form-item>
  368. </el-col>
  369. <el-col :span="12">
  370. <el-form-item label="计算机等级" prop="ncre" :rules="[]">
  371. <el-select v-model="generalForm.ncre" placeholder="请选择英语等级" clearable
  372. style="width: 100%;">
  373. <el-option v-for="item in $dictUtils.getDictList('computer_level')"
  374. :key="item.value" :label="item.label" :value="item.value">
  375. </el-option>
  376. </el-select>
  377. </el-form-item>
  378. </el-col>
  379. </el-row>
  380. </el-tab-pane> -->
  381. <el-tab-pane label="部门信息">
  382. <el-row :gutter="26">
  383. <el-col :span="24">
  384. <el-form-item label="所属部门" prop="department" :rules="[
  385. ]">
  386. <SelectTree ref="officeTree" :disabled="true" :props="{
  387. value: 'id', // ID字段名
  388. label: 'name', // 显示名称
  389. children: 'children' // 子级字段名
  390. }" :url="`/system-server/sys/office/treeData?type=2`" :value="generalForm.department" :accordion="true"
  391. size="default" @getValue="(value) => { generalForm.department = value }" />
  392. </el-form-item>
  393. </el-col>
  394. <el-col :span="24">
  395. <el-form-item label="员工类型" prop="onJobStatus" :rules="[
  396. ]">
  397. <!-- <el-input v-model="generalForm.politicalOutlook"></el-input>-->
  398. <el-select :disabled="true" v-model="generalForm.onJobStatus"
  399. placeholder="请选择员工类型" style="width:100%;">
  400. <el-option v-for="item in $dictUtils.getDictList('on_job_status')"
  401. :key="item.value" :label="item.label" :value="item.value">
  402. </el-option>
  403. </el-select>
  404. </el-form-item>
  405. </el-col>
  406. <!-- <el-col :span="24">
  407. <el-form-item label="岗位" prop="postIdList" :rules="[]">
  408. <el-select :disabled="true" v-model="generalForm.postIdList" style="width: 100%"
  409. multiple placeholder="请选择">
  410. <el-option v-for="item in postList" :key="item.id" :label="item.name"
  411. :value="item.id">
  412. </el-option>
  413. </el-select>
  414. </el-form-item>
  415. </el-col> -->
  416. <!-- <el-col :span="24">
  417. <el-form-item label="角色" prop="roleIdList"
  418. :rules="[{ required: true, message: '角色不能为空', trigger: 'change' }]">
  419. <el-select :disabled="true" v-model="generalForm.roleIdList" style="width: 100%"
  420. multiple placeholder="请选择">
  421. <el-option v-for="role in roleList" :key="role.id" :label="role.name"
  422. :value="role.id">
  423. </el-option>
  424. </el-select>
  425. </el-form-item>
  426. </el-col> -->
  427. <el-col :span="24">
  428. <el-form-item label="进所日期" prop="entryDate" :rules="[
  429. ]">
  430. <el-date-picker :disabled="true" style="width: 100%"
  431. v-model="generalForm.entryDate" value-format="YYYY-MM-DD"
  432. placeholder="选择日期">
  433. </el-date-picker>
  434. </el-form-item>
  435. </el-col>
  436. <el-col :span="24">
  437. <el-form-item label="合同开始日期" prop="contractStartDate" :rules="[
  438. ]">
  439. <el-date-picker :disabled="true" style="width: 100%"
  440. v-model="generalForm.contractStartDate" value-format="YYYY-MM-DD"
  441. placeholder="选择日期">
  442. </el-date-picker>
  443. </el-form-item>
  444. </el-col>
  445. <el-col :span="24">
  446. <el-form-item label="合同结束日期" prop="contractEndDate" :rules="[
  447. ]">
  448. <el-date-picker :disabled="true" style="width: 100%"
  449. v-model="generalForm.contractEndDate" value-format="YYYY-MM-DD"
  450. placeholder="选择日期">
  451. </el-date-picker>
  452. </el-form-item>
  453. </el-col>
  454. </el-row>
  455. </el-tab-pane>
  456. <!-- <el-tab-pane label="社保信息">
  457. <el-row :gutter="26" v-if="status === 'audit' || status === 'taskFormDetail'">
  458. <el-col :span="12">
  459. <el-form-item label="社保编号" prop="socialSecurityNumber" :rules="[]">
  460. <el-input v-model="generalForm.socialSecurityNumber" maxlength="10"
  461. @input="validateInput"></el-input>
  462. </el-form-item>
  463. </el-col>
  464. <el-col :span="12">
  465. <el-form-item label="社保银行卡号" prop="socialSecurityBankNumber" :rules="[]">
  466. <el-input v-model="generalForm.socialSecurityBankNumber"
  467. @change="checkBankNumber(generalForm.socialSecurityBankNumber)"
  468. maxlength="19"></el-input>
  469. </el-form-item>
  470. </el-col>
  471. <el-col :span="12">
  472. <el-form-item label="社保卡照片正面" prop="socialSecurityPictureFront" :rules="[]">
  473. <el-upload
  474. :action="`${$http.BASE_URL}/public-modules-server/oss/file/webUpload/upload`"
  475. :limit="limitNum" :disabled="hideUploadEdit" list-type="picture-card"
  476. :auto-upload="true" :on-success="handleUploadSuccess"
  477. v-model:file-list="fileList">
  478. <el-icon>
  479. <Plus />
  480. </el-icon>
  481. <template #file="{ file }">
  482. <div>
  483. <img class="el-upload-list__item-thumbnail" :src="file.url"
  484. alt="" />
  485. <span class="el-upload-list__item-actions">
  486. <span class="el-upload-list__item-preview"
  487. @click="handlePictureCardPreview(file)">
  488. <el-icon><zoom-in /></el-icon>
  489. </span>
  490. <span v-if="!disabled" class="el-upload-list__item-delete"
  491. @click="handleDownload(file)">
  492. <el-icon>
  493. <Download />
  494. </el-icon>
  495. </span>
  496. <span v-if="!disabled" style="display:none;"
  497. class="el-upload-list__item-delete"
  498. @click="handleRemove(file, fileList)">
  499. <el-icon>
  500. <Delete />
  501. </el-icon>
  502. </span>
  503. </span>
  504. </div>
  505. </template>
  506. </el-upload>
  507. <el-dialog v-model="dialogVisible">
  508. <img w-full :src="generalForm.socialSecurityPictureFrontUrl"
  509. alt="Preview Image" :style="{ maxWidth: '100%', maxHeight: '100%' }" />
  510. </el-dialog>
  511. </el-form-item>
  512. </el-col>
  513. <el-col :span="12">
  514. <el-form-item label="社保卡照片反面" prop="socialSecurityPictureOpposite" :rules="[]">
  515. <el-upload
  516. :action="`${$http.BASE_URL}/public-modules-server/oss/file/webUpload/upload`"
  517. :limit="limitNum" :disabled="hideUploadEdit2" list-type="picture-card"
  518. :auto-upload="true" :on-success="handleUploadSuccess2"
  519. v-model:file-list="fileList2">
  520. <el-icon>
  521. <Plus />
  522. </el-icon>
  523. <template #file="{ file }">
  524. <div>
  525. <img class="el-upload-list__item-thumbnail" :src="file.url"
  526. alt="" />
  527. <span class="el-upload-list__item-actions">
  528. <span class="el-upload-list__item-preview"
  529. @click="handlePictureCardPreview2(file)">
  530. <el-icon><zoom-in /></el-icon>
  531. </span>
  532. <span v-if="!disabled" class="el-upload-list__item-delete"
  533. @click="handleDownload2(file)">
  534. <el-icon>
  535. <Download />
  536. </el-icon>
  537. </span>
  538. <span v-if="!disabled" style="display:none;"
  539. class="el-upload-list__item-delete"
  540. @click="handleRemove2(file, fileList2)">
  541. <el-icon>
  542. <Delete />
  543. </el-icon>
  544. </span>
  545. </span>
  546. </div>
  547. </template>
  548. </el-upload>
  549. <el-dialog v-model="dialogVisible2">
  550. <img w-full :src="generalForm.socialSecurityPictureOppositeUrl"
  551. alt="Preview Image" :style="{ maxWidth: '100%', maxHeight: '100%' }" />
  552. </el-dialog>
  553. </el-form-item>
  554. </el-col>
  555. </el-row>
  556. <el-row :gutter="26" v-else>
  557. <el-col :span="12">
  558. <el-form-item label="社保编号" prop="socialSecurityNumber" :rules="[]">
  559. <el-input v-model="generalForm.socialSecurityNumber" maxlength="10"
  560. @input="validateInput"></el-input>
  561. </el-form-item>
  562. </el-col>
  563. <el-col :span="12">
  564. <el-form-item label="社保银行卡号" prop="socialSecurityBankNumber" :rules="[]">
  565. <el-input v-model="generalForm.socialSecurityBankNumber"
  566. @change="checkBankNumber(generalForm.socialSecurityBankNumber)"
  567. maxlength="19"></el-input>
  568. </el-form-item>
  569. </el-col>
  570. <el-col :span="12">
  571. <el-form-item label="社保卡照片正面" prop="socialSecurityPictureFront" :rules="[]">
  572. <el-upload
  573. :action="`${$http.BASE_URL}/public-modules-server/oss/file/webUpload/upload`"
  574. :limit="limitNum" :disabled="hideUploadEdit" list-type="picture-card"
  575. :auto-upload="true" :on-success="handleUploadSuccess" :file-list="fileList">
  576. <el-icon>
  577. <Plus />
  578. </el-icon>
  579. <template #file="{ file }">
  580. <div>
  581. <img class="el-upload-list__item-thumbnail" :src="file.url"
  582. alt="" />
  583. <span class="el-upload-list__item-actions">
  584. <span class="el-upload-list__item-preview"
  585. @click="handlePictureCardPreview(file)">
  586. <el-icon><zoom-in /></el-icon>
  587. </span>
  588. <span v-if="!disabled" class="el-upload-list__item-delete"
  589. @click="handleDownload(file)">
  590. <el-icon>
  591. <Download />
  592. </el-icon>
  593. </span>
  594. <span v-if="!disabled" class="el-upload-list__item-delete"
  595. @click="handleRemove(file, fileList)">
  596. <el-icon>
  597. <Delete />
  598. </el-icon>
  599. </span>
  600. </span>
  601. </div>
  602. </template>
  603. </el-upload>
  604. <el-dialog v-model="dialogVisible">
  605. <img w-full :src="generalForm.socialSecurityPictureFrontUrl"
  606. alt="Preview Image" :style="{ maxWidth: '100%', maxHeight: '100%' }" />
  607. </el-dialog>
  608. </el-form-item>
  609. </el-col>
  610. <el-col :span="12">
  611. <el-form-item label="社保卡照片反面" prop="socialSecurityPictureOpposite" :rules="[]">
  612. <el-upload
  613. :action="`${$http.BASE_URL}/public-modules-server/oss/file/webUpload/upload`"
  614. :limit="limitNum" :disabled="hideUploadEdit2" list-type="picture-card"
  615. :auto-upload="true" :on-success="handleUploadSuccess2"
  616. v-model:file-list="fileList2">
  617. <el-icon>
  618. <Plus />
  619. </el-icon>
  620. <template #file="{ file }">
  621. <div>
  622. <img class="el-upload-list__item-thumbnail" :src="file.url"
  623. alt="" />
  624. <span class="el-upload-list__item-actions">
  625. <span class="el-upload-list__item-preview"
  626. @click="handlePictureCardPreview2(file)">
  627. <el-icon><zoom-in /></el-icon>
  628. </span>
  629. <span v-if="!disabled" class="el-upload-list__item-delete"
  630. @click="handleDownload2(file)">
  631. <el-icon>
  632. <Download />
  633. </el-icon>
  634. </span>
  635. <span v-if="!disabled" class="el-upload-list__item-delete"
  636. @click="handleRemove2(file, fileList2)">
  637. <el-icon>
  638. <Delete />
  639. </el-icon>
  640. </span>
  641. </span>
  642. </div>
  643. </template>
  644. </el-upload>
  645. <el-dialog v-model="dialogVisible2">
  646. <img w-full :src="generalForm.socialSecurityPictureOppositeUrl"
  647. alt="Preview Image" :style="{ maxWidth: '100%', maxHeight: '100%' }" />
  648. </el-dialog>
  649. </el-form-item>
  650. </el-col>
  651. </el-row>
  652. </el-tab-pane>
  653. <el-tab-pane label="中信银行卡信息">
  654. <el-row :gutter="26">
  655. <el-col :span="12">
  656. <el-form-item label="中信银行卡号" prop="zxBankCardNumber">
  657. <el-input v-model="generalForm.zxBankCardNumber"
  658. @change="checkBankNumber(generalForm.zxBankCardNumber, 'zx')"
  659. maxlength="19"></el-input>
  660. </el-form-item>
  661. </el-col>
  662. <el-col :span="12">
  663. <el-form-item label="开户行" prop="zxAccountHolder">
  664. <el-input v-model="generalForm.zxAccountHolder"></el-input>
  665. </el-form-item>
  666. </el-col>
  667. <el-col :span="12">
  668. <el-form-item label="银行卡正面" prop="accountHolderFront">
  669. <el-upload
  670. :action="`${$http.BASE_URL}/public-modules-server/oss/file/webUpload/upload`"
  671. :limit="limitNum" :disabled="bankHideUploadEdit" list-type="picture-card"
  672. :auto-upload="true" :on-success="bankHandleUploadSuccess"
  673. v-model:file-list="bankFileList">
  674. <el-icon>
  675. <Plus />
  676. </el-icon>
  677. <template #file="{ file }">
  678. <div>
  679. <img class="el-upload-list__item-thumbnail" :src="file.url"
  680. alt="" />
  681. <span class="el-upload-list__item-actions">
  682. <span class="el-upload-list__item-preview"
  683. @click="bankHandlePictureCardPreview(file)">
  684. <el-icon><zoom-in /></el-icon>
  685. </span>
  686. <span v-if="!disabled" class="el-upload-list__item-delete"
  687. @click="bankHandleDownload(file)">
  688. <el-icon>
  689. <Download />
  690. </el-icon>
  691. </span>
  692. <span v-if="!(method === 'view')"
  693. class="el-upload-list__item-delete"
  694. @click="bankHandleRemove(file, fileList)">
  695. <el-icon>
  696. <Delete />
  697. </el-icon>
  698. </span>
  699. </span>
  700. </div>
  701. </template>
  702. </el-upload>
  703. <el-dialog v-model="bankDialogVisible">
  704. <img w-full :src="generalForm.accountHolderFrontUrl" alt="Preview Image"
  705. :style="{ maxWidth: '100%', maxHeight: '100%' }" />
  706. </el-dialog>
  707. </el-form-item>
  708. </el-col>
  709. <el-col :span="12">
  710. <el-form-item label="银行卡反面" prop="accountHolderOpposite">
  711. <el-upload
  712. :action="`${$http.BASE_URL}/public-modules-server/oss/file/webUpload/upload`"
  713. :limit="limitNum" :disabled="bankHideUploadEdit2" list-type="picture-card"
  714. :auto-upload="true" :on-success="bankHandleUploadSuccess2"
  715. v-model:file-list="bankFileList2">
  716. <el-icon>
  717. <Plus />
  718. </el-icon>
  719. <template #file="{ file }">
  720. <div>
  721. <img class="el-upload-list__item-thumbnail" :src="file.url"
  722. alt="" />
  723. <span class="el-upload-list__item-actions">
  724. <span class="el-upload-list__item-preview"
  725. @click="bankHandlePictureCardPreview2(file)">
  726. <el-icon><zoom-in /></el-icon>
  727. </span>
  728. <span v-if="!disabled" class="el-upload-list__item-delete"
  729. @click="bankHandleDownload2(file)">
  730. <el-icon>
  731. <Download />
  732. </el-icon>
  733. </span>
  734. <span v-if="!(method === 'view')"
  735. class="el-upload-list__item-delete"
  736. @click="bankHandleRemove2(file, fileList)">
  737. <el-icon>
  738. <Delete />
  739. </el-icon>
  740. </span>
  741. </span>
  742. </div>
  743. </template>
  744. </el-upload>
  745. <el-dialog v-model="bankDialogVisible2">
  746. <img w-full :src="generalForm.accountHolderOppositeUrl" alt="Preview Image"
  747. :style="{ maxWidth: '100%', maxHeight: '100%' }" />
  748. </el-dialog>
  749. </el-form-item>
  750. </el-col>
  751. </el-row>
  752. </el-tab-pane>
  753. <el-tab-pane label="招商银行卡信息">
  754. <el-row :gutter="26">
  755. <el-col :span="12">
  756. <el-form-item label="招商银行卡号" prop="gsBankCardNumber">
  757. <el-input v-model="generalForm.gsBankCardNumber"
  758. @change="checkBankNumber(generalForm.gsBankCardNumber, 'gs')"
  759. maxlength="19"></el-input>
  760. </el-form-item>
  761. </el-col>
  762. <el-col :span="12">
  763. <el-form-item label="开户行" prop="gsAccountHolder">
  764. <el-input v-model="generalForm.gsAccountHolder"></el-input>
  765. </el-form-item>
  766. </el-col>
  767. <el-col :span="12">
  768. <el-form-item label="银行卡正面" prop="gsAccountHolderFront">
  769. <el-upload
  770. :action="`${$http.BASE_URL}/public-modules-server/oss/file/webUpload/upload`"
  771. :limit="limitNum" :disabled="gsHideUploadEdit" list-type="picture-card"
  772. :auto-upload="true" :on-success="gsHandleUploadSuccess"
  773. v-model:file-list="gsFileList">
  774. <el-icon>
  775. <Plus />
  776. </el-icon>
  777. <template #file="{ file }">
  778. <div>
  779. <img class="el-upload-list__item-thumbnail" :src="file.url"
  780. alt="" />
  781. <span class="el-upload-list__item-actions">
  782. <span class="el-upload-list__item-preview"
  783. @click="gsHandlePictureCardPreview(file)">
  784. <el-icon><zoom-in /></el-icon>
  785. </span>
  786. <span v-if="!disabled" class="el-upload-list__item-delete"
  787. @click="gsHandleDownload(file)">
  788. <el-icon>
  789. <Download />
  790. </el-icon>
  791. </span>
  792. <span v-if="!(method === 'view')"
  793. class="el-upload-list__item-delete"
  794. @click="gsHandleRemove(file, fileList)">
  795. <el-icon>
  796. <Delete />
  797. </el-icon>
  798. </span>
  799. </span>
  800. </div>
  801. </template>
  802. </el-upload>
  803. <el-dialog v-model="gsDialogVisible">
  804. <img w-full :src="generalForm.gsAccountHolderFrontUrl" alt="Preview Image"
  805. :style="{ maxWidth: '100%', maxHeight: '100%' }" />
  806. </el-dialog>
  807. </el-form-item>
  808. </el-col>
  809. <el-col :span="12">
  810. <el-form-item label="银行卡反面" prop="gsAccountHolderOpposite">
  811. <el-upload
  812. :action="`${$http.BASE_URL}/public-modules-server/oss/file/webUpload/upload`"
  813. :limit="limitNum" :disabled="gsHideUploadEdit2" list-type="picture-card"
  814. :auto-upload="true" :on-success="gsHandleUploadSuccess2"
  815. v-model:file-list="gsFileList2">
  816. <el-icon>
  817. <Plus />
  818. </el-icon>
  819. <template #file="{ file }">
  820. <div>
  821. <img class="el-upload-list__item-thumbnail" :src="file.url"
  822. alt="" />
  823. <span class="el-upload-list__item-actions">
  824. <span class="el-upload-list__item-preview"
  825. @click="gsHandlePictureCardPreview2(file)">
  826. <el-icon><zoom-in /></el-icon>
  827. </span>
  828. <span v-if="!disabled" class="el-upload-list__item-delete"
  829. @click="gsHandleDownload2(file)">
  830. <el-icon>
  831. <Download />
  832. </el-icon>
  833. </span>
  834. <span v-if="!(method === 'view')"
  835. class="el-upload-list__item-delete"
  836. @click="gsHandleRemove2(file, fileList)">
  837. <el-icon>
  838. <Delete />
  839. </el-icon>
  840. </span>
  841. </span>
  842. </div>
  843. </template>
  844. </el-upload>
  845. <el-dialog v-model="gsDialogVisible2">
  846. <img w-full :src="generalForm.gsAccountHolderOppositeUrl"
  847. alt="Preview Image" :style="{ maxWidth: '100%', maxHeight: '100%' }" />
  848. </el-dialog>
  849. </el-form-item>
  850. </el-col>
  851. </el-row>
  852. </el-tab-pane> -->
  853. </el-form>
  854. <el-tab-pane label="教育经历">
  855. <el-card style="width: 100%;transition: all 0.3s ease;" shadow="hover" class="card-info">
  856. <template #header>
  857. <el-divider content-position="left"><i class="el-icon-document"></i> <span
  858. style="font-weight: 900; font-size: 16px; color: #606266;">教育经历</span>
  859. <el-divider direction="vertical" />
  860. <el-button type="primary" @click="addEdu()"
  861. :disabled="auditStatus == 2">新增</el-button>
  862. <el-divider direction="vertical" />
  863. <el-button :type="changeFlag[0] ? 'warning' : 'success'"
  864. @click="changeInfoList(0)">{{
  865. changeFlag[0] ? "收起" : "展开"
  866. }}</el-button>
  867. </el-divider>
  868. </template>
  869. <el-collapse-transition>
  870. <el-row :gutter="26" v-if="changeFlag[0]">
  871. <el-col :span="24">
  872. <el-collapse v-if="eduInfoList && eduInfoList.length > 0"
  873. v-model="activeNames[0]">
  874. <div style="padding: 0 30px;" v-for="(item, index) in eduInfoList">
  875. <el-collapse-item :name="item.id">
  876. <template #title="{ isActive }">
  877. <div class="collapseTitle">
  878. <span style="font-size: 16px;"> {{
  879. $dictUtils.getDictLabel("education",
  880. item.education, '-') + ' - ' +
  881. item.graduatedFrom +
  882. ' - ' + item.cultureMethod }}</span>
  883. <span
  884. style="color: #b0b0b0;font-size: 12px;">&nbsp;|&nbsp;</span>
  885. <span style="font-size: 14px;"> {{
  886. handleDateFormatter(item.startDate) }}</span>
  887. <span
  888. style="color: #b0b0b0;font-size: 12px;">&nbsp;至&nbsp;</span>
  889. <span style="font-size: 14px;"> {{
  890. handleDateFormatter(item.endDate) }}</span>
  891. <el-tag v-if="item.isHighestEducation == 1" size="small"
  892. style="margin-left: 10px;">最高学历</el-tag>
  893. <div style="margin-left: auto;">
  894. <el-button type="text" @click.stop="editEdu(item)"
  895. :disabled="auditStatus == 2">修改</el-button>
  896. <el-button type="text" @click.stop="delEdu(item.id)"
  897. style="color: red;"
  898. :disabled="auditStatus == 2">删除</el-button>
  899. </div>
  900. </div>
  901. </template>
  902. <el-descriptions title="" border :column="2">
  903. <el-descriptions-item label="开始日期:">{{
  904. handleDateFormatter(item.startDate)
  905. }}</el-descriptions-item>
  906. <el-descriptions-item label="结束日期:">{{
  907. handleDateFormatter(item.endDate)
  908. }}</el-descriptions-item>
  909. <el-descriptions-item label="毕业院校:">{{
  910. item.graduatedFrom
  911. }}</el-descriptions-item>
  912. <!-- <el-descriptions-item label="其他毕业院校:">{{
  913. item.otherGraduatedFrom
  914. }}</el-descriptions-item> -->
  915. <el-descriptions-item label="专业:">{{ item.speciality
  916. }}</el-descriptions-item>
  917. <el-descriptions-item label="学历:">{{
  918. $dictUtils.getDictLabel("education",
  919. item.education, '-')
  920. }}</el-descriptions-item>
  921. <el-descriptions-item label="学位:">{{
  922. $dictUtils.getDictLabel("degree", item.degree, '-')
  923. }}</el-descriptions-item>
  924. <el-descriptions-item label="是否最高学历:">
  925. <el-tag v-if="item.isHighestEducation == 1">是</el-tag>
  926. <el-tag type="warning" v-else>否</el-tag>
  927. </el-descriptions-item>
  928. <el-descriptions-item label="是否最高学位:">
  929. <el-tag v-if="item.isHighestDegree == 1">是</el-tag>
  930. <el-tag type="warning" v-else>否</el-tag>
  931. </el-descriptions-item>
  932. <el-descriptions-item label="学习形式:">{{
  933. $dictUtils.getDictLabel("learn_form",
  934. item.learnForms, '-')
  935. }}</el-descriptions-item>
  936. <el-descriptions-item label="毕业类型:">{{
  937. $dictUtils.getDictLabel("graduation_type",
  938. item.graduationType, '-')
  939. }}</el-descriptions-item>
  940. <!-- <el-descriptions-item label="培养方式:">{{ item.cultureMethod
  941. }}</el-descriptions-item> -->
  942. <!-- <el-descriptions-item label="专业描述:">{{
  943. item.specialityDesc
  944. }}</el-descriptions-item> -->
  945. <el-descriptions-item label="学历证明:">
  946. <AttachmentView :fileList="item.educationFile"
  947. :key="uploadKey">
  948. </AttachmentView>
  949. </el-descriptions-item>
  950. <el-descriptions-item label="学位证明:">
  951. <AttachmentView :fileList="item.degreeFile"
  952. :key="uploadKey">
  953. </AttachmentView>
  954. </el-descriptions-item>
  955. </el-descriptions>
  956. </el-collapse-item>
  957. </div>
  958. </el-collapse>
  959. <el-empty image-size="80px"
  960. style="margin-top: 0 !important;padding: 0 !important;" v-else
  961. description="暂无教育经历"></el-empty>
  962. </el-col>
  963. </el-row>
  964. </el-collapse-transition>
  965. </el-card>
  966. </el-tab-pane>
  967. <el-tab-pane label="工作经历">
  968. <el-card style="width: 100%" shadow="hover" class="card-info">
  969. <template #header>
  970. <el-divider content-position="left"><i class="el-icon-document"></i> <span
  971. style="font-weight: 900; font-size: 16px; color: #606266;">工作经历</span>
  972. <el-divider direction="vertical" />
  973. <el-button type="primary" @click="addWork()"
  974. :disabled="auditStatus == 2">新增</el-button>
  975. <el-divider direction="vertical" />
  976. <el-button :type="changeFlag[1] ? 'warning' : 'success'"
  977. @click="changeInfoList(1)">{{
  978. changeFlag[1] ? "收起" : "展开"
  979. }}</el-button>
  980. </el-divider>
  981. </template>
  982. <el-collapse-transition>
  983. <el-row :gutter="26" v-if="changeFlag[1]">
  984. <el-col :span="24">
  985. <el-collapse v-model="activeNames[1]"
  986. v-if="workInfoList && workInfoList.length > 0">
  987. <div style="padding: 0 30px;" v-for="(item, index) in workInfoList">
  988. <el-collapse-item :name="item.id">
  989. <template #title="{ isActive }">
  990. <div class="collapseTitle">
  991. <span style="font-size: 16px;"> {{ item.companyName
  992. + ' - '
  993. +
  994. item.position }}</span>
  995. <span
  996. style="color: #b0b0b0;font-size: 12px;">&nbsp;|&nbsp;</span>
  997. <span style="font-size: 14px;"> {{
  998. handleDateFormatter(item.startDate) }}</span>
  999. <span
  1000. style="color: #b0b0b0;font-size: 12px;">&nbsp;至&nbsp;</span>
  1001. <span style="font-size: 14px;"> {{
  1002. handleDateFormatter(item.endDate) }}</span>
  1003. <div style="margin-left: auto;">
  1004. <el-button type="text" @click.stop="editWork(item)"
  1005. :disabled="auditStatus == 2">修改</el-button>
  1006. <el-button type="text" @click.stop="delWork(item.id)"
  1007. style="color: red;"
  1008. :disabled="auditStatus == 2">删除</el-button>
  1009. </div>
  1010. </div>
  1011. </template>
  1012. <el-descriptions title="" border>
  1013. <el-descriptions-item label="单位名称:">{{ item.companyName
  1014. }}</el-descriptions-item>
  1015. <el-descriptions-item label="职务:">{{ item.position
  1016. }}</el-descriptions-item>
  1017. <el-descriptions-item label="证明人:">{{ item.certifier
  1018. }}</el-descriptions-item>
  1019. <el-descriptions-item label="开始日期:">{{
  1020. handleDateFormatter(item.startDate)
  1021. }}</el-descriptions-item>
  1022. <el-descriptions-item label="结束日期:">{{
  1023. handleDateFormatter(item.endDate)
  1024. }}</el-descriptions-item>
  1025. <el-descriptions-item label="是否本单位工作经历">
  1026. <el-tag
  1027. v-if="item.isCurrentCompanyExperience == 1">是</el-tag>
  1028. <el-tag type="warning" v-else>否</el-tag>
  1029. </el-descriptions-item>
  1030. </el-descriptions>
  1031. </el-collapse-item>
  1032. </div>
  1033. </el-collapse>
  1034. <el-empty image-size="80px"
  1035. style="margin-top: 0 !important;padding: 0 !important;" v-else
  1036. description="暂无工作经历"></el-empty>
  1037. </el-col>
  1038. </el-row>
  1039. </el-collapse-transition>
  1040. </el-card>
  1041. </el-tab-pane>
  1042. <el-tab-pane label="培训经历">
  1043. <!-- 培训经历 -->
  1044. <el-card style="width: 100%" shadow="hover" class="card-info">
  1045. <template #header>
  1046. <el-divider content-position="left"><i class="el-icon-document"></i> <span
  1047. style="font-weight: 900; font-size: 16px; color: #606266;">培训经历</span>
  1048. <el-divider direction="vertical" />
  1049. <el-button type="primary" @click="addTraining()"
  1050. :disabled="auditStatus == 2">新增</el-button>
  1051. <el-divider direction="vertical" />
  1052. <el-button :type="changeFlag[2] ? 'warning' : 'success'"
  1053. @click="changeInfoList(2)">{{
  1054. changeFlag[2] ? "收起" : "展开"
  1055. }}</el-button>
  1056. </el-divider>
  1057. </template>
  1058. <el-collapse-transition>
  1059. <el-row :gutter="26" v-if="changeFlag[2]">
  1060. <el-col :span="24">
  1061. <el-collapse v-model="activeNames[2]"
  1062. v-if="trainingInfoList && trainingInfoList.length > 0">
  1063. <div style="padding: 0 30px;" v-for="(item, index) in trainingInfoList">
  1064. <el-collapse-item :name="item.id">
  1065. <template #title="{ isActive }">
  1066. <div class="collapseTitle">
  1067. <span style="font-size: 16px;"> {{ item.name + ' - '
  1068. +
  1069. item.trainingInstitution }}</span>
  1070. <div style="margin-left: auto;">
  1071. <el-button type="text" @click.stop="editTraining(item)"
  1072. :disabled="auditStatus == 2">修改</el-button>
  1073. <el-button type="text"
  1074. @click.stop="delTraining(item.id)"
  1075. style="color: red;"
  1076. :disabled="auditStatus == 2">删除</el-button>
  1077. </div>
  1078. </div>
  1079. </template>
  1080. <el-descriptions title="" border>
  1081. <el-descriptions-item label="名称:">{{ item.name
  1082. }}</el-descriptions-item>
  1083. <el-descriptions-item label="培训机构:">{{
  1084. item.trainingInstitution
  1085. }}</el-descriptions-item>
  1086. <el-descriptions-item label="培训成绩:">{{
  1087. item.trainingResult
  1088. }}</el-descriptions-item>
  1089. <el-descriptions-item label="附件:">
  1090. <AttachmentView :key="uploadKey" :fileList="item.files">
  1091. </AttachmentView>
  1092. </el-descriptions-item>
  1093. </el-descriptions>
  1094. </el-collapse-item>
  1095. </div>
  1096. </el-collapse>
  1097. <el-empty image-size="80px"
  1098. style="margin-top: 0 !important;padding: 0 !important;" v-else
  1099. description="暂无培训经历"></el-empty>
  1100. </el-col>
  1101. </el-row>
  1102. </el-collapse-transition>
  1103. </el-card>
  1104. </el-tab-pane>
  1105. <el-tab-pane label="执业资格证书">
  1106. <!-- 执业资格证书 -->
  1107. <el-card style="width: 100%" shadow="hover" class="card-info">
  1108. <template #header>
  1109. <el-divider content-position="left"><i class="el-icon-document"></i> <span
  1110. style="font-weight: 900; font-size: 16px; color: #606266;">执业资格证书</span>
  1111. <el-divider direction="vertical" />
  1112. <el-button type="primary" @click="addCertificate()"
  1113. :disabled="auditStatus == 2">新增</el-button>
  1114. <el-divider direction="vertical" />
  1115. <el-button :type="changeFlag[3] ? 'warning' : 'success'"
  1116. @click="changeInfoList(3)">{{
  1117. changeFlag[3] ? "收起" : "展开"
  1118. }}</el-button>
  1119. </el-divider>
  1120. </template>
  1121. <el-collapse-transition>
  1122. <el-row :gutter="26" v-if="changeFlag[3]">
  1123. <el-col :span="24">
  1124. <el-collapse v-model="activeNames[3]"
  1125. v-if="certificateInfoList && certificateInfoList.length > 0">
  1126. <div style="padding: 0 30px;" v-for="(item, index) in certificateInfoList">
  1127. <el-collapse-item :name="item.id">
  1128. <template #title="{ isActive }">
  1129. <div class="collapseTitle">
  1130. <span style="font-size: 16px;"> {{
  1131. $dictUtils.getDictLabel('sys_cert_type', item.type, '-')
  1132. }}</span>
  1133. <div style="margin-left: auto;">
  1134. <el-button type="text"
  1135. @click.stop="editCertificate(item)"
  1136. :disabled="auditStatus == 2">修改</el-button>
  1137. <el-button type="text"
  1138. @click.stop="delCertificate(item.id)"
  1139. style="color: red;"
  1140. :disabled="auditStatus == 2">删除</el-button>
  1141. </div>
  1142. </div>
  1143. </template>
  1144. <el-descriptions title="" border>
  1145. <el-descriptions-item label="证书类型:">
  1146. {{ $dictUtils.getDictLabel('sys_cert_type', item.type, '-')
  1147. }}
  1148. </el-descriptions-item>
  1149. <el-descriptions-item label="证书编号:">
  1150. {{ item.no }}
  1151. </el-descriptions-item>
  1152. <el-descriptions-item label="发证机关:">
  1153. {{ item.authorities }}
  1154. </el-descriptions-item>
  1155. <el-descriptions-item label="发证日期:">
  1156. {{ handleDateFormatter(item.issuedDate) }}
  1157. </el-descriptions-item>
  1158. <el-descriptions-item label="注册日期:">
  1159. {{ handleDateFormatter(item.enrollDate) }}
  1160. </el-descriptions-item>
  1161. <el-descriptions-item label="到期日期:">
  1162. {{ handleDateFormatter(item.expireDate) }}
  1163. </el-descriptions-item>
  1164. <el-descriptions-item label="注册证书编号:">
  1165. {{ item.enrollCertNo }}
  1166. </el-descriptions-item>
  1167. <el-descriptions-item label="专业:">
  1168. {{ item.profession }}
  1169. </el-descriptions-item>
  1170. <el-descriptions-item label="附件:">
  1171. <AttachmentView :key="uploadKey"
  1172. :fileList="item.certificateAttachment">
  1173. </AttachmentView>
  1174. </el-descriptions-item>
  1175. </el-descriptions>
  1176. </el-collapse-item>
  1177. </div>
  1178. </el-collapse>
  1179. <el-empty image-size="80px"
  1180. style="margin-top: 0 !important;padding: 0 !important;" v-else
  1181. description="暂无执业资格证书"></el-empty>
  1182. </el-col>
  1183. </el-row>
  1184. </el-collapse-transition>
  1185. </el-card>
  1186. </el-tab-pane>
  1187. <el-tab-pane label="职称证书">
  1188. <!-- 专业技能 -->
  1189. <el-card style="width: 100%" shadow="hover" class="card-info">
  1190. <template #header>
  1191. <el-divider content-position="left"><i class="el-icon-document"></i> <span
  1192. style="font-weight: 900; font-size: 16px; color: #606266;">职称证书</span>
  1193. <el-divider direction="vertical" />
  1194. <el-button type="primary" @click="addSkill()"
  1195. :disabled="auditStatus == 2">新增</el-button>
  1196. <el-divider direction="vertical" />
  1197. <el-button :type="changeFlag[4] ? 'warning' : 'success'"
  1198. @click="changeInfoList(4)">{{
  1199. changeFlag[4] ? "收起" : "展开"
  1200. }}</el-button>
  1201. </el-divider>
  1202. </template>
  1203. <el-collapse-transition>
  1204. <el-row :gutter="26" v-if="changeFlag[4]">
  1205. <el-col :span="24">
  1206. <el-collapse v-model="activeNames[4]"
  1207. v-if="skillInfoList && skillInfoList.length > 0">
  1208. <div style="padding: 0 30px;" v-for="(item, index) in skillInfoList">
  1209. <el-collapse-item :name="item.id">
  1210. <template #title="{ isActive }">
  1211. <div class="collapseTitle">
  1212. <span style="font-size: 16px;"> {{ item.name
  1213. }}</span>
  1214. <span style="font-size: 16px;" v-if="item.proficiency"> {{
  1215. '-' +
  1216. item.proficiency }}</span>
  1217. <div style="margin-left: auto;">
  1218. <el-button type="text" @click.stop="editSkill(item)"
  1219. :disabled="auditStatus == 2">修改</el-button>
  1220. <el-button type="text" @click.stop="delSkill(item.id)"
  1221. style="color: red;"
  1222. :disabled="auditStatus == 2">删除</el-button>
  1223. </div>
  1224. </div>
  1225. </template>
  1226. <el-descriptions title="" border>
  1227. <el-descriptions-item label="职称名称:">{{
  1228. $dictUtils.getDictLabel('professional_certificate',
  1229. item.name, '-')
  1230. }}</el-descriptions-item>
  1231. <el-descriptions-item label="职称等级:">{{ item.proficiency
  1232. }}</el-descriptions-item>
  1233. <el-descriptions-item label="取得日期:">{{
  1234. handleDateFormatter(item.obtainDate)
  1235. }}</el-descriptions-item>
  1236. <el-descriptions-item label="取得途径:">{{ item.category
  1237. }}</el-descriptions-item>
  1238. <el-descriptions-item label="审批单位:">{{ item.usageTime
  1239. }}</el-descriptions-item>
  1240. <el-descriptions-item label="附件:">
  1241. <AttachmentView :fileList="item.files">
  1242. </AttachmentView>
  1243. </el-descriptions-item>
  1244. </el-descriptions>
  1245. </el-collapse-item>
  1246. </div>
  1247. </el-collapse>
  1248. <el-empty image-size="80px"
  1249. style="margin-top: 0 !important;padding: 0 !important;" v-else
  1250. description="暂无职称证书"></el-empty>
  1251. </el-col>
  1252. </el-row>
  1253. </el-collapse-transition>
  1254. </el-card>
  1255. </el-tab-pane>
  1256. <el-tab-pane label="外语语种">
  1257. <!-- 外语语种 -->
  1258. <el-card style="width: 100%" shadow="hover" class="card-info">
  1259. <template #header>
  1260. <el-divider content-position="left"><i class="el-icon-document"></i> <span
  1261. style="font-weight: 900; font-size: 16px; color: #606266;">外语语种</span>
  1262. <el-divider direction="vertical" />
  1263. <el-button type="primary" @click="addLanguage()"
  1264. :disabled="auditStatus == 2">新增</el-button>
  1265. <el-divider direction="vertical" />
  1266. <el-button :type="changeFlag[5] ? 'warning' : 'success'"
  1267. @click="changeInfoList(5)">{{
  1268. changeFlag[5] ? "收起" : "展开"
  1269. }}</el-button>
  1270. </el-divider>
  1271. </template>
  1272. <el-collapse-transition>
  1273. <el-row :gutter="26" v-if="changeFlag[5]">
  1274. <el-col :span="24">
  1275. <el-collapse v-model="activeNames[5]"
  1276. v-if="languageInfoList && languageInfoList.length > 0">
  1277. <div style="padding: 0 30px;" v-for="(item, index) in languageInfoList">
  1278. <el-collapse-item :name="item.id">
  1279. <template #title="{ isActive }">
  1280. <div class="collapseTitle">
  1281. <span style="font-size: 16px;"> {{ item.language
  1282. }}</span>
  1283. <div style="margin-left: auto;">
  1284. <el-button type="text" @click.stop="editLanguage(item)"
  1285. :disabled="auditStatus == 2">修改</el-button>
  1286. <el-button type="text"
  1287. @click.stop="delLanguage(item.id)"
  1288. style="color: red;"
  1289. :disabled="auditStatus == 2">删除</el-button>
  1290. </div>
  1291. </div>
  1292. </template>
  1293. <el-descriptions title="" border>
  1294. <el-descriptions-item label="语言:">{{ item.language
  1295. }}</el-descriptions-item>
  1296. <el-descriptions-item label="是否母语:">
  1297. <el-tag v-if="item.isNative == 1">是</el-tag>
  1298. <el-tag type="warning" v-else>否</el-tag>
  1299. </el-descriptions-item>
  1300. <el-descriptions-item label="掌握程度:">{{ item.proficiency
  1301. }}</el-descriptions-item>
  1302. <el-descriptions-item label="书写能力:">{{
  1303. item.writingAbility
  1304. }}</el-descriptions-item>
  1305. <el-descriptions-item label="阅读能力:">{{
  1306. item.readingAbility
  1307. }}</el-descriptions-item>
  1308. <el-descriptions-item label="口语能力:">{{
  1309. item.speakingAbility
  1310. }}</el-descriptions-item>
  1311. <el-descriptions-item label="附件:">
  1312. <AttachmentView :key="uploadKey" :fileList="item.files">
  1313. </AttachmentView>
  1314. </el-descriptions-item>
  1315. </el-descriptions>
  1316. </el-collapse-item>
  1317. </div>
  1318. </el-collapse>
  1319. <el-empty image-size="80px"
  1320. style="margin-top: 0 !important;padding: 0 !important;" v-else
  1321. description="暂无外语语种信息"></el-empty>
  1322. </el-col>
  1323. </el-row>
  1324. </el-collapse-transition>
  1325. </el-card>
  1326. </el-tab-pane>
  1327. <el-tab-pane label="家庭情况">
  1328. <!-- 家庭情况 -->
  1329. <el-card style="width: 100%" shadow="hover" class="card-info">
  1330. <template #header>
  1331. <el-divider content-position="left"><i class="el-icon-document"></i> <span
  1332. style="font-weight: 900; font-size: 16px; color: #606266;">家庭情况</span>
  1333. <el-divider direction="vertical" />
  1334. <el-button type="primary" @click="addFamily()"
  1335. :disabled="auditStatus == 2">新增</el-button>
  1336. <el-divider direction="vertical" />
  1337. <el-button :type="changeFlag[6] ? 'warning' : 'success'"
  1338. @click="changeInfoList(6)">{{
  1339. changeFlag[6] ? "收起" : "展开"
  1340. }}</el-button>
  1341. </el-divider>
  1342. </template>
  1343. <el-collapse-transition>
  1344. <el-row :gutter="26" v-if="changeFlag[6]">
  1345. <el-col :span="24">
  1346. <el-collapse v-model="activeNames[6]"
  1347. v-if="familyInfoList && familyInfoList.length > 0">
  1348. <div style="padding: 0 30px;" v-for="(item, index) in familyInfoList">
  1349. <el-collapse-item :name="item.id">
  1350. <template #title="{ isActive }">
  1351. <div class="collapseTitle">
  1352. <span style="font-size: 16px;"> {{ item.relation +
  1353. "-"
  1354. }}</span>
  1355. <span style="font-size: 16px;"> {{ item.name
  1356. }}</span>
  1357. <div style="margin-left: auto;">
  1358. <el-button type="text" @click.stop="editFamily(item)"
  1359. :disabled="auditStatus == 2">修改</el-button>
  1360. <el-button type="text" @click.stop="delFamily(item.id)"
  1361. style="color: red;"
  1362. :disabled="auditStatus == 2">删除</el-button>
  1363. </div>
  1364. </div>
  1365. </template>
  1366. <el-descriptions title="" border>
  1367. <el-descriptions-item label="姓名:">{{ item.name
  1368. }}</el-descriptions-item>
  1369. <el-descriptions-item label="出生日期:">{{
  1370. handleDateFormatter(item.birthDate)
  1371. }}</el-descriptions-item>
  1372. <el-descriptions-item label="与本人关系名称:">{{ item.relation
  1373. }}</el-descriptions-item>
  1374. <el-descriptions-item label="性别:">{{
  1375. $dictUtils.getDictLabel("sex",
  1376. item.gender, '-')
  1377. }}</el-descriptions-item>
  1378. <el-descriptions-item label="手机号码:">{{ item.mobile
  1379. }}</el-descriptions-item>
  1380. <!-- <el-descriptions-item label="工作单位:">{{ item.workUnit
  1381. }}</el-descriptions-item>
  1382. <el-descriptions-item label="联系电话:">{{
  1383. item.contactNumber
  1384. }}</el-descriptions-item> -->
  1385. </el-descriptions>
  1386. </el-collapse-item>
  1387. </div>
  1388. </el-collapse>
  1389. <el-empty image-size="80px"
  1390. style="margin-top: 0 !important;padding: 0 !important;" v-else
  1391. description="暂无家庭情况信息"></el-empty>
  1392. </el-col>
  1393. </el-row>
  1394. </el-collapse-transition>
  1395. </el-card>
  1396. </el-tab-pane>
  1397. <el-tab-pane label="表彰与奖励">
  1398. <el-card style="width: 100%" shadow="hover" class="card-info">
  1399. <template #header>
  1400. <el-divider content-position="left"><i class="el-icon-document"></i> <span
  1401. style="font-weight: 900; font-size: 16px; color: #606266;">表彰与奖励</span>
  1402. <el-divider direction="vertical" />
  1403. <el-button type="primary" @click="addReward()"
  1404. :disabled="auditStatus == 2">新增</el-button>
  1405. <el-divider direction="vertical" />
  1406. <el-button :type="changeFlag[7] ? 'warning' : 'success'"
  1407. @click="changeInfoList(7)">{{
  1408. changeFlag[7] ? "收起" : "展开"
  1409. }}</el-button>
  1410. </el-divider>
  1411. </template>
  1412. <el-collapse-transition>
  1413. <el-row :gutter="26" v-if="changeFlag[7]">
  1414. <el-col :span="24">
  1415. <el-collapse v-model="activeNames[7]"
  1416. v-if="rewardInfoList && rewardInfoList.length > 0">
  1417. <div style="padding: 0 30px;" v-for="(item, index) in rewardInfoList">
  1418. <el-collapse-item :name="item.id">
  1419. <template #title="{ isActive }">
  1420. <div class="collapseTitle">
  1421. <span style="font-size: 16px;"> {{ item.name
  1422. }}</span>
  1423. <span style="font-size: 16px;"> {{ "-" +
  1424. handleDateFormatter(item.rewardDate)
  1425. }}</span>
  1426. <div style="margin-left: auto;">
  1427. <el-button type="text" @click.stop="editReward(item)"
  1428. :disabled="auditStatus == 2">修改</el-button>
  1429. <el-button type="text" @click.stop="delReward(item.id)"
  1430. style="color: red;"
  1431. :disabled="auditStatus == 2">删除</el-button>
  1432. </div>
  1433. </div>
  1434. </template>
  1435. <el-descriptions title="" border :column="2">
  1436. <el-descriptions-item label="奖项:">{{ item.name
  1437. }}</el-descriptions-item>
  1438. <el-descriptions-item label="获奖日期:">{{
  1439. handleDateFormatter(item.rewardDate)
  1440. }}</el-descriptions-item>
  1441. <el-descriptions-item :span="2" label="简述:">{{
  1442. item.description
  1443. }}</el-descriptions-item>
  1444. <el-descriptions-item label="附件:">
  1445. <AttachmentView :key="uploadKey" :fileList="item.files">
  1446. </AttachmentView>
  1447. </el-descriptions-item>
  1448. </el-descriptions>
  1449. </el-collapse-item>
  1450. </div>
  1451. </el-collapse>
  1452. <el-empty image-size="80px"
  1453. style="margin-top: 0 !important;padding: 0 !important;" v-else
  1454. description="暂无表彰与奖励"></el-empty>
  1455. </el-col>
  1456. </el-row>
  1457. </el-collapse-transition>
  1458. </el-card>
  1459. </el-tab-pane>
  1460. <el-tab-pane label="社会及行业职务">
  1461. <el-card style="width: 100%" shadow="hover" class="card-info">
  1462. <template #header>
  1463. <el-divider content-position="left"><i class="el-icon-document"></i> <span
  1464. style="font-weight: 900; font-size: 16px; color: #606266;">社会及行业职务</span>
  1465. <el-divider direction="vertical" />
  1466. <el-button type="primary" @click="addSociety()"
  1467. :disabled="auditStatus == 2">新增</el-button>
  1468. <el-divider direction="vertical" />
  1469. <el-button :type="changeFlag[9] ? 'warning' : 'success'"
  1470. @click="changeInfoList(9)">{{
  1471. changeFlag[9] ? "收起" : "展开"
  1472. }}</el-button>
  1473. </el-divider>
  1474. </template>
  1475. <el-collapse-transition>
  1476. <el-row :gutter="26" v-if="changeFlag[9]">
  1477. <el-col :span="24">
  1478. <el-collapse v-model="activeNames[9]"
  1479. v-if="societyInfoList && societyInfoList.length > 0">
  1480. <div style="padding: 0 30px;" v-for="(item, index) in societyInfoList">
  1481. <el-collapse-item :name="item.id">
  1482. <template #title="{ isActive }">
  1483. <div class="collapseTitle">
  1484. <span style="font-size: 16px;"> {{ item.name }}</span>
  1485. <div style="margin-left: auto;">
  1486. <el-button type="text"
  1487. @click.stop="editSociety(item.id)"
  1488. :disabled="auditStatus == 2">修改</el-button>
  1489. <el-button type="text" @click.stop="delSociety(item.id)"
  1490. style="color: red;"
  1491. :disabled="auditStatus == 2">删除</el-button>
  1492. </div>
  1493. </div>
  1494. </template>
  1495. <el-descriptions title="" border>
  1496. <el-descriptions-item label="职务名称:">{{ item.name
  1497. }}</el-descriptions-item>
  1498. <el-descriptions-item label="任职开始日期:">{{
  1499. handleDateFormatter(item.startDate)
  1500. }}</el-descriptions-item>
  1501. <el-descriptions-item label="任职开始日期:">{{
  1502. handleDateFormatter(item.endDate)
  1503. }}</el-descriptions-item>
  1504. <el-descriptions-item label="任职机构:">{{ item.institution
  1505. }}</el-descriptions-item>
  1506. </el-descriptions>
  1507. </el-collapse-item>
  1508. </div>
  1509. </el-collapse>
  1510. <el-empty image-size="80px"
  1511. style="margin-top: 0 !important;padding: 0 !important;" v-else
  1512. description="暂无社会及行业职务信息"></el-empty>
  1513. </el-col>
  1514. </el-row>
  1515. </el-collapse-transition>
  1516. </el-card>
  1517. </el-tab-pane>
  1518. <el-tab-pane label="工作业绩">
  1519. <el-card style="width: 100%" shadow="hover" class="card-info">
  1520. <template #header>
  1521. <el-divider content-position="left"><i class="el-icon-document"></i> <span
  1522. style="font-weight: 900; font-size: 16px; color: #606266;">工作业绩</span>
  1523. <el-divider direction="vertical" />
  1524. <el-button type="primary" @click="addPerformance()"
  1525. :disabled="auditStatus == 2">新增</el-button>
  1526. <el-divider direction="vertical" />
  1527. <el-button :type="changeFlag[10] ? 'warning' : 'success'"
  1528. @click="changeInfoList(10)">{{
  1529. changeFlag[10] ? "收起" : "展开"
  1530. }}</el-button>
  1531. </el-divider>
  1532. </template>
  1533. <el-collapse-transition>
  1534. <el-row :gutter="26" v-if="changeFlag[10]">
  1535. <el-col :span="24">
  1536. <el-collapse v-model="activeNames[10]"
  1537. v-if="performanceInfoList && performanceInfoList.length > 0">
  1538. <div style="padding: 0 30px;" v-for="(item, index) in performanceInfoList">
  1539. <el-collapse-item :name="item.id">
  1540. <template #title="{ isActive }">
  1541. <div class="collapseTitle">
  1542. <span style="font-size: 16px;"> {{ item.name }}</span>
  1543. <div style="margin-left: auto;">
  1544. <el-button type="text"
  1545. @click.stop="editPerformance(item.id)"
  1546. :disabled="auditStatus == 2">修改</el-button>
  1547. <el-button type="text"
  1548. @click.stop="delPerformance(item.id)"
  1549. style="color: red;"
  1550. :disabled="auditStatus == 2">删除</el-button>
  1551. </div>
  1552. </div>
  1553. </template>
  1554. <el-descriptions title="" border>
  1555. <el-descriptions-item label="项目名称:">{{ item.name
  1556. }}</el-descriptions-item>
  1557. <el-descriptions-item label="委托方:">{{ item.client
  1558. }}</el-descriptions-item>
  1559. <el-descriptions-item label="工程分类:">{{ item.type
  1560. }}</el-descriptions-item>
  1561. <el-descriptions-item label="规模类型/单位/数量:">{{ item.info
  1562. }}</el-descriptions-item>
  1563. <el-descriptions-item label="担任职务:">{{
  1564. $dictUtils.getDictLabel("position_held",
  1565. item.position,
  1566. '-')
  1567. }}</el-descriptions-item>
  1568. <el-descriptions-item label="参与内容:">{{ item.participateContent
  1569. }}</el-descriptions-item>
  1570. </el-descriptions>
  1571. </el-collapse-item>
  1572. </div>
  1573. </el-collapse>
  1574. <el-empty image-size="80px"
  1575. style="margin-top: 0 !important;padding: 0 !important;" v-else
  1576. description="暂无工作业绩信息"></el-empty>
  1577. </el-col>
  1578. </el-row>
  1579. </el-collapse-transition>
  1580. </el-card>
  1581. </el-tab-pane>
  1582. <el-tab-pane label="劳动合同">
  1583. <el-card style="width: 100%" shadow="hover" class="card-info">
  1584. <template #header>
  1585. <el-divider content-position="left"><i class="el-icon-document"></i> <span
  1586. style="font-weight: 900; font-size: 16px; color: #606266;">劳动合同</span>
  1587. <!-- <el-button type="primary" @click="addReward()"
  1588. :disabled="auditStatus == 2">新增</el-button> -->
  1589. <el-divider direction="vertical" />
  1590. <el-button :type="changeFlag[8] ? 'warning' : 'success'"
  1591. @click="changeInfoList(8)">{{
  1592. changeFlag[8] ? "收起" : "展开"
  1593. }}</el-button>
  1594. </el-divider>
  1595. </template>
  1596. <el-collapse-transition>
  1597. <el-row :gutter="26" v-if="changeFlag[8]">
  1598. <el-col :span="24">
  1599. <el-collapse v-model="activeNames[8]"
  1600. v-if="laborContractInfoList && laborContractInfoList.length > 0">
  1601. <div style="padding: 0 30px;"
  1602. v-for="(item, index) in laborContractInfoList">
  1603. <el-collapse-item :name="item.id">
  1604. <template #title="{ isActive }">
  1605. <div class="collapseTitle">
  1606. <span style="font-size: 16px;"> {{
  1607. $dictUtils.getDictLabel("labor_contract_type",
  1608. item.type, '-')
  1609. }}</span>
  1610. <span style="font-size: 16px;"> {{ "-" +
  1611. $dictUtils.getDictLabel("labor_contract_term",
  1612. item.term,
  1613. '-')
  1614. }}</span>
  1615. </div>
  1616. </template>
  1617. <el-descriptions title="" border :column="2">
  1618. <el-descriptions-item label="合同类型:">{{
  1619. $dictUtils.getDictLabel("labor_contract_type", item.type,
  1620. '-')
  1621. }}</el-descriptions-item>
  1622. <!-- <el-descriptions-item label="合同编号:">{{ item.code
  1623. }}</el-descriptions-item> -->
  1624. <el-descriptions-item label="合同期限:">{{
  1625. $dictUtils.getDictLabel("labor_contract_term",
  1626. item.term,
  1627. '-')
  1628. }}</el-descriptions-item>
  1629. <el-descriptions-item label="合同起始日期:">{{
  1630. handleDateFormatter(item.startDate)
  1631. }}</el-descriptions-item>
  1632. <el-descriptions-item label="合同终止日期:">{{
  1633. handleDateFormatter(item.endDate)
  1634. }}</el-descriptions-item>
  1635. <el-descriptions-item label="试用期结束日期:">{{
  1636. handleDateFormatter(item.trialEndDate)
  1637. }}</el-descriptions-item>
  1638. <!-- <el-descriptions-item label="办理日期:">{{
  1639. handleDateFormatter(item.processeDate)
  1640. }}</el-descriptions-item> -->
  1641. <el-descriptions-item label="附件:">
  1642. <AttachmentView :fileList="item.files">
  1643. </AttachmentView>
  1644. </el-descriptions-item>
  1645. </el-descriptions>
  1646. </el-collapse-item>
  1647. </div>
  1648. </el-collapse>
  1649. <el-empty image-size="80px"
  1650. style="margin-top: 0 !important;padding: 0 !important;" v-else
  1651. description="暂无表彰与奖励"></el-empty>
  1652. </el-col>
  1653. </el-row>
  1654. </el-collapse-transition>
  1655. </el-card>
  1656. </el-tab-pane>
  1657. <el-tab-pane label="上传头像">
  1658. <el-form :model="photoForm" ref="photoForm" label-width="100px">
  1659. <el-form-item prop="photo">
  1660. <image-select v-model="photoForm.photo" round icon="el-icon-avatar"
  1661. title="头像"></image-select>
  1662. </el-form-item>
  1663. <!-- <el-form-item>
  1664. <el-button style="width: 148px" type="primary" @click="submitPhotoForm()">保存</el-button>
  1665. </el-form-item> -->
  1666. </el-form>
  1667. </el-tab-pane>
  1668. <!-- <el-tab-pane label="联系方式">
  1669. <el-form :model="concatForm" ref="concatForm" label-width="100px">
  1670. <el-form-item label="手机" prop="mobile" :rules="[
  1671. {
  1672. validator: validator.isMobile,
  1673. trigger: 'blur',
  1674. },
  1675. ]">
  1676. <el-input v-model="concatForm.mobile"></el-input>
  1677. </el-form-item>
  1678. <el-form-item label="电话" prop="phone" :rules="[
  1679. {
  1680. validator: validator.isPhone,
  1681. trigger: 'blur',
  1682. },
  1683. ]">
  1684. <el-input v-model="concatForm.phone"></el-input>
  1685. </el-form-item>
  1686. &lt;!&ndash; <el-form-item>
  1687. <el-button type="primary" @click="submitConcatForm()">保存</el-button>
  1688. </el-form-item> &ndash;&gt;
  1689. </el-form>
  1690. </el-tab-pane>-->
  1691. <!--<el-tab-pane label="修改密码">
  1692. <el-form
  1693. :rules="dataRule"
  1694. :model="pwdForm"
  1695. ref="pwdForm"
  1696. label-width="100px"
  1697. >
  1698. <el-form-item
  1699. label="旧密码"
  1700. :rules="[
  1701. {
  1702. required: true,
  1703. message: '必填项不能为空',
  1704. trigger: 'blur',
  1705. },
  1706. ]"
  1707. prop="oldPassword"
  1708. >
  1709. <el-input
  1710. v-model="pwdForm.oldPassword"
  1711. show-password
  1712. ></el-input>
  1713. </el-form-item>
  1714. <el-form-item
  1715. label="新密码"
  1716. :rules="[
  1717. {
  1718. required: true,
  1719. message: '必填项不能为空',
  1720. trigger: 'blur',
  1721. },
  1722. ]"
  1723. prop="newPassword"
  1724. >
  1725. <el-input
  1726. v-model="pwdForm.newPassword"
  1727. show-password
  1728. ></el-input>
  1729. </el-form-item>
  1730. <el-form-item
  1731. label="确认新密码"
  1732. :rules="rule"
  1733. prop="confirmNewPassword"
  1734. >
  1735. <el-input
  1736. v-model="pwdForm.confirmNewPassword"
  1737. show-password
  1738. ></el-input>
  1739. </el-form-item>
  1740. <el-form-item>
  1741. <el-button
  1742. type="primary"
  1743. @click="submitPwdForm()"
  1744. >保存</el-button
  1745. >
  1746. </el-form-item>
  1747. </el-form>
  1748. </el-tab-pane>-->
  1749. <!--<el-tab-pane label="我的日志">
  1750. <el-menu
  1751. default-active="1"
  1752. mode="horizontal"
  1753. @select="changeLog"
  1754. >
  1755. <el-menu-item index="1">
  1756. <template #title>登陆日志</template>
  1757. </el-menu-item>
  1758. <el-menu-item index="2">
  1759. <template #title>访问日志</template>
  1760. </el-menu-item>
  1761. </el-menu>
  1762. <vxe-table
  1763. auto-resize
  1764. resizable
  1765. height="400px"
  1766. :loading="loading"
  1767. size="mini"
  1768. ref="logTable"
  1769. show-header-overflow
  1770. show-overflow
  1771. highlight-hover-row
  1772. :menu-config="{}"
  1773. :print-config="{}"
  1774. :import-config="{}"
  1775. :export-config="{}"
  1776. @sort-change="sortChangeHandle"
  1777. :sort-config="{ remote: true }"
  1778. :data="dataList"
  1779. :checkbox-config="{}"
  1780. >
  1781. <vxe-column type="seq" width="40"></vxe-column>
  1782. <vxe-column
  1783. title="操作菜单"
  1784. field="title"
  1785. sortable
  1786. ></vxe-column>
  1787. <vxe-column
  1788. title="耗时(毫秒)"
  1789. field="recordTime"
  1790. sortable
  1791. ></vxe-column>
  1792. <vxe-column
  1793. title="请求参数"
  1794. field="params"
  1795. sortable
  1796. ></vxe-column>
  1797. <vxe-column
  1798. title="返回结果"
  1799. field="result"
  1800. sortable
  1801. ></vxe-column>
  1802. <vxe-column
  1803. title="公司"
  1804. field="createBy.companyDTO.name"
  1805. sort-by="c.name"
  1806. sortable
  1807. ></vxe-column>
  1808. <vxe-column
  1809. title="部门"
  1810. field="createBy.officeDTO.name"
  1811. sort-by="o.name"
  1812. sortable
  1813. ></vxe-column>
  1814. <vxe-column
  1815. title="用户"
  1816. field="createBy.name"
  1817. sort-by="u.name"
  1818. sortable
  1819. ></vxe-column>
  1820. <vxe-column
  1821. title="IP地址"
  1822. field="remoteAddr"
  1823. sortable
  1824. ></vxe-column>
  1825. <vxe-column
  1826. title="访问时间"
  1827. field="createTime"
  1828. sort-by="a.create_time"
  1829. sortable
  1830. ></vxe-column>
  1831. </vxe-table>
  1832. <vxe-pager
  1833. background
  1834. size="mini"
  1835. :current-page="tablePage.currentPage"
  1836. :page-size="tablePage.pageSize"
  1837. :total="tablePage.total"
  1838. :page-sizes="[
  1839. 10,
  1840. 20,
  1841. 100,
  1842. 1000,
  1843. { label: '全量数据', value: 1000000 },
  1844. ]"
  1845. :layouts="[
  1846. 'PrevPage',
  1847. 'JumpNumber',
  1848. 'NextPage',
  1849. 'FullJump',
  1850. 'Sizes',
  1851. 'Total',
  1852. ]"
  1853. @page-change="currentChangeHandle"
  1854. >
  1855. </vxe-pager>
  1856. </el-tab-pane>-->
  1857. </el-tabs>
  1858. </el-card>
  1859. </el-main>
  1860. <!-- 教育经历 -->
  1861. <EducationInfo ref="EducationInfo" @addEduInfo="handleAddEduInfo"></EducationInfo>
  1862. <!-- 工作经历 -->
  1863. <WorkInfo ref="WorkInfo" @addWorkInfo="handleAddWorkInfo"></WorkInfo>
  1864. <!-- 培训经历 -->
  1865. <TrainingInfo ref="TrainingInfo" @addTrainingInfo="handleAddTrainingInfo"></TrainingInfo>
  1866. <!-- 执业资格证书 -->
  1867. <CertificateInfo ref="certificateInfo" @addCertificateInfo="handleAddCertificateInfo"></CertificateInfo>
  1868. <!-- 职称证书 -->
  1869. <SkillInfo ref="skillInfo" @addSkillInfo="handleAddSkillInfo"></SkillInfo>
  1870. <!--外语语种 -->
  1871. <LanguageInfo ref="languageInfo" @addLanguageInfo="handleAddLanguageInfo"></LanguageInfo>
  1872. <!-- 家庭情况 -->
  1873. <FamilyInfo ref="familyInfo" @addFamilyInfo="handleAddFamilyInfo"></FamilyInfo>
  1874. <!-- 表彰与奖励 -->
  1875. <RewardInfo ref="rewardInfo" @addRewardInfo="handleAddRewardInfo"></RewardInfo>
  1876. <!-- 社会及行业职务 -->
  1877. <SocietyInfo ref="societyInfo" @addSocietyInfo="handleAddSocietyInfo"></SocietyInfo>
  1878. <!-- 工作业绩 -->
  1879. <PerformanceInfo ref="performanceInfo" @addPerformanceInfo="handleAddPerformanceInfo"></PerformanceInfo>
  1880. </el-container>
  1881. </template>
  1882. <script>
  1883. import colorTool from "@/utils/color";
  1884. import userService from "@/api/sys/userService";
  1885. import logService from "@/api/sys/logService";
  1886. import postService from "@/api/sys/postService";
  1887. import roleService from "@/api/sys/roleService";
  1888. import enrollmentRegistrationService from '@/api/human/enrollment/EnrollmentRegistrationService'
  1889. import SelectTree from '@/components/treeSelect/treeSelect.vue'
  1890. import dayjs from 'dayjs'
  1891. import EducationInfo from "./components/EducationInfo";
  1892. import WorkInfo from "./components/WorkInfo";
  1893. import TrainingInfo from "./components/TrainingInfo";
  1894. import CertificateInfo from "./components/CertificateInfo";
  1895. import SkillInfo from "./components/SkillInfo";
  1896. import LanguageInfo from "./components/LanguageInfo";
  1897. import FamilyInfo from "./components/FamilyInfo";
  1898. import RewardInfo from "./components/RewardInfo";
  1899. import SocietyInfo from "./components/SocietyInfo";
  1900. import PerformanceInfo from "./components/PerformanceInfo";
  1901. import AttachmentView from './components/AttachmentView'
  1902. import UpLoadComponent from '@/views/common/UpLoadComponentCardStyle'
  1903. import processService from '@/api/flowable/processService'
  1904. import taskService from '@/api/flowable/taskService'
  1905. import OSSSerivce, {
  1906. httpRequest,
  1907. fileName,
  1908. toHref,
  1909. } from '@/api/sys/OSSService'
  1910. import { flow } from "lodash";
  1911. export default {
  1912. components: {
  1913. SelectTree,
  1914. EducationInfo,
  1915. WorkInfo,
  1916. TrainingInfo,
  1917. CertificateInfo,
  1918. SkillInfo,
  1919. LanguageInfo,
  1920. FamilyInfo,
  1921. RewardInfo,
  1922. SocietyInfo,
  1923. PerformanceInfo,
  1924. AttachmentView,
  1925. UpLoadComponent
  1926. },
  1927. data() {
  1928. var validatePass2 = (rule, value, callback) => {
  1929. if (value !== this.pwdForm.newPassword) {
  1930. callback(new Error("两次输入密码不一致!"));
  1931. } else {
  1932. callback();
  1933. }
  1934. };
  1935. return {
  1936. activeName: "basicInfo",
  1937. rejectMessage: "无",
  1938. uploadKey: "",
  1939. fileType: ['jpg', 'jpeg', 'png', 'webp'],
  1940. bankHideUploadEdit: false, //控制上传点击
  1941. bankHideUploadEdit2: false, //控制上传点击
  1942. bankFileList: [],
  1943. bankFileList2: [],
  1944. bankDialogVisible: false,
  1945. bankDialogVisible2: false,
  1946. gsDialogVisible: false,
  1947. gsDialogVisible2: false,
  1948. gsHideUploadEdit: false, //控制上传点击
  1949. gsHideUploadEdit2: false, //控制上传点击
  1950. gsFileList: [],
  1951. gsFileList2: [],
  1952. hideUploadEdit: false, //隐藏上传按钮
  1953. hideUploadEdit2: false, //隐藏上传按钮
  1954. limitNum: 1,
  1955. fileList: [],
  1956. fileList2: [],
  1957. dialogImageUrl: '',
  1958. dialogVisible: false,
  1959. dialogVisible2: false,
  1960. disabled: false,
  1961. ossService: null,
  1962. roleList: [],
  1963. postList: [],
  1964. fileList: [],
  1965. fileList2: [],
  1966. type: "1",
  1967. colorList: [
  1968. "#409EFF",
  1969. "#009688",
  1970. "#536dfe",
  1971. "#ff5c93",
  1972. "#c62f2f",
  1973. "#fd726d",
  1974. ],
  1975. config: {
  1976. lang: this.$TOOL.data.get("APP_LANG") || this.$CONFIG.LANG,
  1977. theme: this.$TOOL.data.get("APP_THEME") || "default",
  1978. colorPrimary:
  1979. this.$TOOL.data.get("APP_COLOR") ||
  1980. this.$CONFIG.COLOR ||
  1981. "#409EFF",
  1982. },
  1983. userInfo: {},
  1984. generalForm: {
  1985. id: "",
  1986. name: "",
  1987. sign: "",
  1988. loginName: "",
  1989. companyDTO: {
  1990. name: "",
  1991. },
  1992. officeDTO: {
  1993. name: "",
  1994. },
  1995. remarks: "",
  1996. wageCardId: '',//银行卡信息id
  1997. zxBankCardNumber: '',//银行卡信息
  1998. zxAccountHolder: '',
  1999. accountHolderFront: '',
  2000. accountHolderFrontUrl: '',
  2001. accountHolderOpposite: '',
  2002. accountHolderOppositeUrl: '',
  2003. gsAccountHolder: '',
  2004. gsBankCardNumber: '',
  2005. gsAccountHolderFront: '',
  2006. gsAccountHolderFrontUrl: '',
  2007. gsAccountHolderOpposite: '',
  2008. gsAccountHolderOppositeUrl: '',
  2009. id: '',
  2010. userId: '',
  2011. name: '', //姓名
  2012. sex: '', // 性别
  2013. age: '',//年龄
  2014. birthday: '',//生日
  2015. joinIndustryDate: null, // 参加工作日期
  2016. joinWorkDate: null, // 参加行业日期
  2017. politicalOutlook: '',//政治面貌
  2018. nativePlace: '',//籍贯
  2019. nation: '', //民族
  2020. maritalStatus: '',//婚姻
  2021. mobilePhone: '',//联系电话
  2022. idCard: '', //身份证
  2023. idCardFront: [],
  2024. idCardBack: [],
  2025. homeAddress: '',//家庭住址
  2026. permanentAddress: '',//常驻地址
  2027. email: "",
  2028. graduatedFrom: '',
  2029. speciality: '',
  2030. startTime: '',
  2031. endTime: '',
  2032. education: '',
  2033. educationNature: '',
  2034. graduatedOrNot: '',
  2035. englishLevel: '',
  2036. ncre: '',
  2037. department: '',
  2038. entryDate: '',
  2039. contractStartDate: '',
  2040. contractEndDate: '',
  2041. remarks: '',
  2042. type: '',
  2043. onJobStatus: '',
  2044. socialSecurityNumber: '',
  2045. socialSecurityBankNumber: '',
  2046. socialSecurityPictureFront: '',
  2047. socialSecurityPictureFrontUrl: '',
  2048. socialSecurityPictureOpposite: '',
  2049. socialSecurityPictureOppositeUrl: '',
  2050. roleIdList: [],
  2051. postIdList: [],
  2052. ddId: '',
  2053. registrationId: "",
  2054. status: ""
  2055. },
  2056. concatForm: {
  2057. id: "",
  2058. email: "",
  2059. phone: "",
  2060. mobile: "",
  2061. },
  2062. photoForm: {
  2063. id: "",
  2064. photo: "",
  2065. },
  2066. pwdForm: {
  2067. id: this.$store.state.user.id,
  2068. oldPassword: "",
  2069. newPassword: "",
  2070. confirmNewPassword: "",
  2071. },
  2072. dataRule: {
  2073. password: [
  2074. { required: true, message: '原密码不能为空', trigger: 'blur' }
  2075. ],
  2076. newPassword: [
  2077. { required: true, message: '新密码不能为空', trigger: 'blur' },
  2078. {
  2079. validator: (rule, value, callback) => {
  2080. const passwordRegex = /^(?=(.*[A-Z]))(?=(.*[a-z]))(?=(.*\d))|(?=(.*[A-Z]))(?=(.*[a-z]))(?=(.*[!@#$%^&*.,]))|(?=(.*[A-Z]))(?=(.*\d))(?=(.*[!@#$%^&*.,]))|(?=(.*[a-z]))(?=(.*\d))(?=(.*[!@#$%^&*.,]))[A-Za-z\d!@#$%^&*.,]{8,20}$/;
  2081. if (!value) {
  2082. callback(new Error('新的密码不能为空'));
  2083. } else if (!passwordRegex.test(value)) {
  2084. callback(new Error('密码必须包含大写字母、小写字母、数字或特殊字符中的三种,且长度为8到20个字符'));
  2085. } else {
  2086. callback(); // 验证通过
  2087. }
  2088. },
  2089. trigger: 'blur'
  2090. }
  2091. ],
  2092. confirmNewPassword: [
  2093. { required: true, message: '确认密码不能为空', trigger: 'blur' },
  2094. { validator: validatePass2, trigger: 'blur' },
  2095. {
  2096. validator: (rule, value, callback) => {
  2097. const passwordRegex = /^(?=(.*[A-Z]))(?=(.*[a-z]))(?=(.*\d))|(?=(.*[A-Z]))(?=(.*[a-z]))(?=(.*[!@#$%^&*.,]))|(?=(.*[A-Z]))(?=(.*\d))(?=(.*[!@#$%^&*.,]))|(?=(.*[a-z]))(?=(.*\d))(?=(.*[!@#$%^&*.,]))[A-Za-z\d!@#$%^&*.,]{8,20}$/;
  2098. if (!value) {
  2099. callback(new Error('确认密码不能为空'));
  2100. } else if (!passwordRegex.test(value)) {
  2101. callback(new Error('密码必须包含大写字母、小写字母、数字或特殊字符中的三种,且长度为8到20个字符'));
  2102. } else {
  2103. callback(); // 验证通过
  2104. }
  2105. },
  2106. trigger: 'blur'
  2107. }
  2108. ]
  2109. },
  2110. dataList: [],
  2111. tablePage: {
  2112. total: 0,
  2113. currentPage: 1,
  2114. pageSize: 10,
  2115. orders: [{ column: "a.create_time", asc: false }],
  2116. },
  2117. loading: false,
  2118. rule: [
  2119. { required: true, message: "必填项不能为空", trigger: "blur" },
  2120. { validator: validatePass2, trigger: "blur" },
  2121. ],
  2122. changeFlag: [
  2123. true, true, true, true, true, true, true, true, true, true, true
  2124. ],
  2125. activeNames: [],
  2126. //教育经历
  2127. eduInfoList: [
  2128. ],
  2129. // 工作经历
  2130. workInfoList: [
  2131. ],
  2132. // 培训经历
  2133. trainingInfoList: [
  2134. ],
  2135. // 资质证书
  2136. certificateInfoList: [
  2137. ],
  2138. // 专业技能
  2139. skillInfoList: [
  2140. ],
  2141. languageInfoList: [
  2142. ],
  2143. familyInfoList: [
  2144. ],
  2145. rewardInfoList: [
  2146. ],
  2147. societyInfoList: [],
  2148. performanceInfoList: [],
  2149. laborContractInfoList: [],
  2150. auditStatus: "0",
  2151. flowData: [],
  2152. procInsId: ""
  2153. };
  2154. },
  2155. created() {
  2156. this.ossService = new OSSSerivce()
  2157. this.userInfo = this.$TOOL.data.get("USER_INFO");
  2158. var userId = this.userInfo.id;
  2159. if (userId) {
  2160. this.getDataInfo(userId)
  2161. // this.refreshList(userId);
  2162. }
  2163. },
  2164. computed: {
  2165. userId() {
  2166. return this.$store.state.user.id
  2167. }
  2168. },
  2169. watch: {
  2170. "config.theme"(val) {
  2171. document.body.setAttribute("data-theme", val);
  2172. this.$TOOL.data.set("APP_THEME", val);
  2173. },
  2174. "config.lang"(val) {
  2175. this.$i18n.locale = val;
  2176. this.$TOOL.data.set("APP_LANG", val);
  2177. },
  2178. "config.colorPrimary"(val) {
  2179. colorTool.setAppColors(val);
  2180. this.$TOOL.data.set("APP_COLOR", val);
  2181. },
  2182. },
  2183. methods: {
  2184. getDataInfo(userId) {
  2185. this.loading = true
  2186. enrollmentRegistrationService.getUserInfoAudit({ userId: userId }).then(res => {
  2187. if (res) {
  2188. this.procInsId = res.procInsId
  2189. if (res.procInsId) {
  2190. taskService.historicTaskList(
  2191. res.procInsId
  2192. ).then(result => {
  2193. if (res.status == 4) {
  2194. let rejectObj = result.find(temp => {
  2195. return temp.comment.status == "驳回"
  2196. })
  2197. if (rejectObj && rejectObj.comment.message != "") {
  2198. this.rejectMessage = rejectObj.comment.message
  2199. }
  2200. } else if (res.status == 2) {
  2201. this.flowData = result
  2202. // this.$refs.flowRef.setCurrentRow(this.flowData[this.flowData.length - 1]);
  2203. }
  2204. })
  2205. }
  2206. //审核中就展示提交审核的信息
  2207. if (res.status == 2 || res.status == 4) {
  2208. this.auditStatus = res.status
  2209. this.initAudit(res.id)
  2210. // 完成审核或者已经驳回,就展示最终信息
  2211. } else {
  2212. this.auditStatus = "5"
  2213. userService.queryById(userId).then((data) => {
  2214. // this.recover(this.generalForm, data);
  2215. this.recover(this.concatForm, data);
  2216. this.recover(this.photoForm, data);
  2217. });
  2218. this.init(userId)
  2219. }
  2220. } else {
  2221. this.auditStatus = "6"
  2222. userService.queryById(userId).then((data) => {
  2223. // this.recover(this.generalForm, data);
  2224. this.recover(this.concatForm, data);
  2225. this.recover(this.photoForm, data);
  2226. });
  2227. this.init(userId)
  2228. }
  2229. }).catch(() => {
  2230. this.loading = false
  2231. })
  2232. },
  2233. init(userId) {
  2234. this.loading = true;
  2235. enrollmentRegistrationService.findInfoByUserId(userId).then(async (data) => {
  2236. this.fileList = []
  2237. this.fileList2 = []
  2238. this.generalForm = this.recover(this.generalForm, data)
  2239. this.generalForm = JSON.parse(JSON.stringify(this.generalForm))
  2240. if (this.commonJS.isEmpty(this.generalForm.roleIdList)) {
  2241. this.generalForm.roleIdList = []
  2242. }
  2243. if (this.commonJS.isEmpty(this.generalForm.postIdList)) {
  2244. this.generalForm.postIdList = []
  2245. }
  2246. // 教育经历
  2247. if (this.commonJS.isNotEmpty(data.eduInfoList)) {
  2248. this.eduInfoList = data.eduInfoList
  2249. }
  2250. // 工作经历
  2251. if (this.commonJS.isNotEmpty(data.workInfoList)) {
  2252. this.workInfoList = data.workInfoList
  2253. }
  2254. // 培训经历
  2255. if (this.commonJS.isNotEmpty(data.trainingInfoList)) {
  2256. this.trainingInfoList = data.trainingInfoList
  2257. }
  2258. // 资质证书
  2259. if (this.commonJS.isNotEmpty(data.certificateInfoList)) {
  2260. this.certificateInfoList = data.certificateInfoList
  2261. }
  2262. // 专业技能
  2263. if (this.commonJS.isNotEmpty(data.skillInfoList)) {
  2264. this.skillInfoList = data.skillInfoList
  2265. }
  2266. // 外语语种
  2267. if (this.commonJS.isNotEmpty(data.languageInfoList)) {
  2268. this.languageInfoList = data.languageInfoList
  2269. }
  2270. // 家庭情况
  2271. if (this.commonJS.isNotEmpty(data.familyInfoList)) {
  2272. this.familyInfoList = data.familyInfoList
  2273. }
  2274. // 表彰与奖励
  2275. if (this.commonJS.isNotEmpty(data.rewardInfoList)) {
  2276. this.rewardInfoList = data.rewardInfoList
  2277. }
  2278. // 劳动合同
  2279. if (this.commonJS.isNotEmpty(data.laborContractInfoList)) {
  2280. this.laborContractInfoList = data.laborContractInfoList
  2281. }
  2282. // 社会及行业职务
  2283. if (this.commonJS.isNotEmpty(data.societyInfoList)) {
  2284. this.societyInfoList = data.societyInfoList
  2285. }
  2286. //工作业绩
  2287. if (this.commonJS.isNotEmpty(data.performanceInfoList)) {
  2288. this.performanceInfoList = data.performanceInfoList
  2289. }
  2290. if (this.commonJS.isEmpty(this.generalForm.idCardFront)) {
  2291. this.generalForm.idCardFront = []
  2292. }
  2293. if (this.commonJS.isEmpty(this.generalForm.idCardBack)) {
  2294. this.generalForm.idCardBack = []
  2295. }
  2296. this.certificateInfoList.forEach(temp => {
  2297. this.changeType(temp.type, temp)
  2298. })
  2299. this.activeNames[0] = this.eduInfoList.map(item => item.id)
  2300. this.activeNames[1] = this.workInfoList.map(item => item.id)
  2301. this.activeNames[2] = this.trainingInfoList.map(item => item.id)
  2302. this.activeNames[3] = this.certificateInfoList.map(item => item.id)
  2303. this.activeNames[4] = this.skillInfoList.map(item => item.id)
  2304. this.activeNames[5] = this.languageInfoList.map(item => item.id)
  2305. this.activeNames[6] = this.familyInfoList.map(item => item.id)
  2306. this.activeNames[7] = this.rewardInfoList.map(item => item.id)
  2307. this.activeNames[8] = this.laborContractInfoList.map(item => item.id)
  2308. this.activeNames[9] = this.societyInfoList.map(item => item.id)
  2309. this.activeNames[10] = this.performanceInfoList.map(item => item.id)
  2310. //后面的fileType是限制上传类型
  2311. this.$refs.idCardFront.newUpload('edit', this.generalForm.idCardFront, 'idCard', null, null, null, null, null, [...this.fileType])
  2312. this.$refs.idCardBack.newUpload('edit', this.generalForm.idCardBack, 'idCard', null, null, null, null, null, [...this.fileType])
  2313. if (this.commonJS.isNotEmpty(this.generalForm.socialSecurityPictureFront)) {
  2314. await this.ossService.getTemporaryUrl(this.generalForm.socialSecurityPictureFront).then((data) => {
  2315. let file = {
  2316. url: data
  2317. }
  2318. this.fileList.push(file)
  2319. })
  2320. }
  2321. if (this.commonJS.isNotEmpty(this.generalForm.socialSecurityPictureOpposite)) {
  2322. await this.ossService.getTemporaryUrl(this.generalForm.socialSecurityPictureOpposite).then((data) => {
  2323. let file = {
  2324. url: data
  2325. }
  2326. this.fileList2.push(file)
  2327. })
  2328. }
  2329. if (this.commonJS.isNotEmpty(this.generalForm.accountHolderFront)) {
  2330. await this.ossService.getTemporaryUrl(this.generalForm.accountHolderFront).then((data) => {
  2331. console.log('data', data)
  2332. let file = {
  2333. url: data
  2334. }
  2335. this.bankFileList.push(file)
  2336. })
  2337. }
  2338. if (this.commonJS.isNotEmpty(this.generalForm.accountHolderOpposite)) {
  2339. console.log('123')
  2340. await this.ossService.getTemporaryUrl(this.generalForm.accountHolderOpposite).then((data) => {
  2341. let file = {
  2342. url: data
  2343. }
  2344. this.bankFileList2.push(file)
  2345. })
  2346. }
  2347. if (this.commonJS.isNotEmpty(this.generalForm.gsAccountHolderFront)) {
  2348. await this.ossService.getTemporaryUrl(this.generalForm.gsAccountHolderFront).then((data) => {
  2349. let file = {
  2350. url: data
  2351. }
  2352. this.gsFileList.push(file)
  2353. })
  2354. }
  2355. if (this.commonJS.isNotEmpty(this.generalForm.gsAccountHolderOpposite)) {
  2356. await this.ossService.getTemporaryUrl(this.generalForm.gsAccountHolderOpposite).then((data) => {
  2357. let file = {
  2358. url: data
  2359. }
  2360. this.gsFileList2.push(file)
  2361. })
  2362. }
  2363. if (this.generalForm.type == 5) {
  2364. roleService.list2(this.generalForm.department).then((data) => {
  2365. this.roleList = data
  2366. })
  2367. postService.list2(this.generalForm.department).then((data) => {
  2368. this.postList = data
  2369. })
  2370. }
  2371. this.loading = false
  2372. }).catch(err => {
  2373. this.loading = false;
  2374. })
  2375. },
  2376. initAudit(id) {
  2377. this.generalForm = {
  2378. id: '',
  2379. userId: '',
  2380. name: '', //姓名
  2381. sex: '', // 性别
  2382. age: '',//年龄
  2383. birthday: '',//生日
  2384. joinIndustryDate: null, // 参加工作日期
  2385. joinWorkDate: null, // 参加行业日期
  2386. politicalOutlook: '',//政治面貌
  2387. nativePlace: '',//籍贯
  2388. nation: '', //民族
  2389. maritalStatus: '',//婚姻
  2390. mobilePhone: '',//联系电话
  2391. idCard: '', //身份证
  2392. idCardFront: [],
  2393. idCardBack: [],
  2394. homeAddress: '',//家庭住址
  2395. permanentAddress: '',//常驻地址
  2396. email: "",
  2397. registrationId: "",
  2398. status: ""
  2399. }
  2400. this.generalForm.id = id
  2401. this.visible = true
  2402. this.loading = false
  2403. this.$nextTick(() => {
  2404. this.loading = true
  2405. enrollmentRegistrationService.findAuditInfoById(this.generalForm.id).then(async (data) => {
  2406. this.generalForm = this.recover(this.generalForm, data)
  2407. this.generalForm = JSON.parse(JSON.stringify(this.generalForm))
  2408. this.eduInfoList = data.eduInfoList
  2409. this.certificateInfoList = data.certificateInfoList
  2410. this.skillInfoList = data.skillInfoList
  2411. this.familyInfoList = data.familyInfoList
  2412. this.languageInfoList = data.languageInfoList
  2413. this.trainingInfoList = data.trainingInfoList
  2414. this.rewardInfoList = data.rewardInfoList
  2415. this.laborContractInfoList = data.laborContractInfoList
  2416. this.workInfoList = data.workInfoList
  2417. this.societyInfoList = data.societyInfoList
  2418. this.performanceInfoList = data.performanceInfoList
  2419. this.concatForm.email = data.email
  2420. this.activeNames[0] = this.eduInfoList.map(item => item.id)
  2421. this.activeNames[1] = this.workInfoList.map(item => item.id)
  2422. this.activeNames[2] = this.trainingInfoList.map(item => item.id)
  2423. this.activeNames[3] = this.certificateInfoList.map(item => item.id)
  2424. this.activeNames[4] = this.skillInfoList.map(item => item.id)
  2425. this.activeNames[5] = this.languageInfoList.map(item => item.id)
  2426. this.activeNames[6] = this.familyInfoList.map(item => item.id)
  2427. this.activeNames[7] = this.rewardInfoList.map(item => item.id)
  2428. this.activeNames[8] = this.laborContractInfoList.map(item => item.id)
  2429. this.activeNames[9] = this.societyInfoList.map(item => item.id)
  2430. this.activeNames[10] = this.performanceInfoList.map(item => item.id)
  2431. if (this.commonJS.isEmpty(this.generalForm.idCardFront)) {
  2432. this.generalForm.idCardFront = []
  2433. }
  2434. if (this.commonJS.isEmpty(this.generalForm.idCardBack)) {
  2435. this.generalForm.idCardBack = []
  2436. }
  2437. //后面的fileType是限制上传类型
  2438. let method = ""
  2439. if (this.auditStatus == 2) {
  2440. method = "view"
  2441. }
  2442. if (this.auditStatus == 4) {
  2443. method = "edit"
  2444. }
  2445. this.certificateInfoList.forEach(temp => {
  2446. this.changeType(temp.type, temp)
  2447. })
  2448. this.$refs.idCardFront.newUpload(method, this.generalForm.idCardFront, 'idCard', null, null, null, null, null, [...this.fileType])
  2449. this.$refs.idCardBack.newUpload(method, this.generalForm.idCardBack, 'idCard', null, null, null, null, null, [...this.fileType])
  2450. this.loading = false
  2451. })
  2452. })
  2453. },
  2454. async submitGeneralForm() {
  2455. let valid = await this.$refs["generalForm"].validate();
  2456. if (valid) {
  2457. const loading = this.$loading();
  2458. let data = await userService.saveInfo(this.generalForm);
  2459. let { user } = await userService.info();
  2460. this.userInfo = user;
  2461. this.$TOOL.data.set("USER_INFO", user);
  2462. loading.close();
  2463. this.$message.success(data);
  2464. }
  2465. },
  2466. async submitConcatForm() {
  2467. // let valid = await this.$refs["concatForm"].validate();
  2468. // if (valid) {
  2469. const loading = this.$loading();
  2470. let data = await userService.saveInfo(this.concatForm);
  2471. let { user } = await userService.info();
  2472. this.userInfo = user;
  2473. // this.$TOOL.data.set("USER_INFO", user);
  2474. localStorage.setItem("USER_INFO", JSON.stringify(user))
  2475. loading.close();
  2476. // this.$message.success(data);
  2477. // }
  2478. },
  2479. async submitUserInfo() {
  2480. this.$confirm('确定提交审批吗?', '提示', {
  2481. confirmButtonText: '确定',
  2482. cancelButtonText: '取消',
  2483. type: 'warning'
  2484. }).then(() => {
  2485. if (this.$refs.idCardFront.checkProgress() || this.$refs.idCardBack.checkProgress()) {
  2486. return
  2487. }
  2488. if (this.$refs.idCardFront.getDataList().length == 0 || this.$refs.idCardBack.getDataList().length == 0) {
  2489. this.$message.error("请确保已完整上传身份证正反面照片,再进行提交")
  2490. return
  2491. }
  2492. // if (!this.generalForm.idCard || this.generalForm.idCard == "" || this.generalForm.idCard == null) {
  2493. // this.$message.error("身份证号码未填写")
  2494. // return
  2495. // }
  2496. this.$refs['generalForm'].validate((valid) => {
  2497. if (valid) {
  2498. this.loading = true
  2499. this.submitConcatForm()
  2500. this.submitPhotoForm()
  2501. this.generalForm.idCardFront = this.$refs.idCardFront.getDataList()
  2502. this.generalForm.idCardBack = this.$refs.idCardBack.getDataList()
  2503. this.generalForm.email = this.concatForm.email
  2504. this.generalForm.eduInfoList = this.eduInfoList
  2505. this.generalForm.workInfoList = this.workInfoList
  2506. this.generalForm.certificateInfoList = this.certificateInfoList
  2507. this.generalForm.skillInfoList = this.skillInfoList
  2508. this.generalForm.rewardInfoList = this.rewardInfoList
  2509. this.generalForm.familyInfoList = this.familyInfoList
  2510. this.generalForm.trainingInfoList = this.trainingInfoList
  2511. this.generalForm.languageInfoList = this.languageInfoList
  2512. this.generalForm.societyInfoList = this.societyInfoList
  2513. this.generalForm.performanceInfoList = this.performanceInfoList
  2514. enrollmentRegistrationService.updateInfoAudit(this.generalForm).then((data) => {
  2515. this.close()
  2516. this.$message.success(data.msg)
  2517. this.$refs.idCardBack.clearUpload()
  2518. this.$refs.idCardFront.clearUpload()
  2519. this.getDataInfo(this.userInfo.id)
  2520. this.loading = false
  2521. }).catch(() => {
  2522. this.loading = false
  2523. })
  2524. } else {
  2525. if (!this.generalForm.idCard || this.generalForm.idCard == "" || this.generalForm.idCard == null) {
  2526. this.$message.error("身份证号码未填写")
  2527. }
  2528. this.activeName = "basicInfo"
  2529. }
  2530. })
  2531. }).catch(() => {
  2532. });
  2533. },
  2534. close() {
  2535. this.$refs.generalForm.resetFields()
  2536. this.fileList = []
  2537. this.fileList2 = []
  2538. this.bankFileList = []
  2539. this.bankFileList2 = []
  2540. this.gsFileList = []
  2541. this.gsFileList2 = []
  2542. this.visible = false
  2543. },
  2544. async submitPhotoForm() {
  2545. const loading = this.$loading();
  2546. let data = await userService.saveInfo(this.photoForm);
  2547. let { user } = await userService.info();
  2548. this.userInfo = user;
  2549. this.$TOOL.data.set("USER_INFO", user);
  2550. loading.close();
  2551. // this.$message.success(data);
  2552. },
  2553. async submitPwdForm() {
  2554. console.log(this.pwdForm)
  2555. let valid = await this.$refs["pwdForm"].validate();
  2556. console.log(valid)
  2557. if (valid) {
  2558. const loading = this.$loading();
  2559. try {
  2560. let data = await userService.saveInfo(this.pwdForm); // 可能抛出错误的请求
  2561. // 更新用户信息
  2562. let { user } = await userService.info();
  2563. this.userInfo = user;
  2564. this.$TOOL.data.set("USER_INFO", user);
  2565. this.$message.success(data); // 成功信息提示
  2566. } catch (error) {
  2567. // 捕获请求中的异常
  2568. /*if (error.response && error.response.status === 400) {
  2569. // 使用后端返回的错误信息提示用户
  2570. this.$message.error(error.response.data); // 比如 "修改密码失败,旧密码错误!"
  2571. } else {
  2572. this.$message.error("请求失败,请稍后重试");
  2573. console.error("请求失败", error);
  2574. }*/
  2575. } finally {
  2576. loading.close(); // 确保 loading 状态关闭
  2577. }
  2578. }
  2579. }
  2580. ,
  2581. // 获取数据列表
  2582. refreshList() {
  2583. this.loading = true;
  2584. logService
  2585. .mine({
  2586. current: this.tablePage.currentPage,
  2587. size: this.tablePage.pageSize,
  2588. orders: this.tablePage.orders,
  2589. })
  2590. .then((data) => {
  2591. this.dataList = data.records;
  2592. this.tablePage.total = data.total;
  2593. this.loading = false;
  2594. });
  2595. },
  2596. changeLog(index) {
  2597. this.type = index;
  2598. this.refreshList();
  2599. },
  2600. // 当前页
  2601. currentChangeHandle({ currentPage, pageSize }) {
  2602. this.tablePage.currentPage = currentPage;
  2603. this.tablePage.pageSize = pageSize;
  2604. this.refreshList();
  2605. },
  2606. // 排序
  2607. sortChangeHandle(obj) {
  2608. this.tablePage.orders = [];
  2609. if (obj.order != null) {
  2610. this.tablePage.orders.push({
  2611. column:
  2612. obj.column.sortBy || this.$utils.toLine(obj.property),
  2613. asc: obj.order === "asc",
  2614. });
  2615. } else {
  2616. this.tablePage.orders = [
  2617. { column: "a.create_time", asc: false },
  2618. ];
  2619. }
  2620. this.refreshList();
  2621. },
  2622. //身份证号码唯一性判断
  2623. idCardOnly(idCard, id) {
  2624. enrollmentRegistrationService.findIdCardOnly(idCard, id).then((data) => {
  2625. if (data != 0) {
  2626. this.$message.error('身份证号码已存在,请重新确认')
  2627. this.generalForm.idCard = ''
  2628. throw new Error('身份证号码已存在,请重新确认')
  2629. } else {
  2630. let sex = null
  2631. let birth = null
  2632. let myDate = new Date()
  2633. let month = myDate.getMonth() + 1
  2634. let day = myDate.getDate()
  2635. let age = 0
  2636. if (idCard.length === 18) {
  2637. age = myDate.getFullYear() - idCard.substring(6, 10) - 1
  2638. sex = idCard.substring(16, 17)
  2639. birth = idCard.substring(6, 10) + '-' + idCard.substring(10, 12) + '-' + idCard.substring(12, 14)
  2640. // eslint-disable-next-line no-mixed-operators
  2641. if (idCard.substring(10, 12) < month || idCard.substring(10, 12) === month && idCard.substring(12, 14) <= day) age++
  2642. }
  2643. if (idCard.length === 15) {
  2644. age = myDate.getFullYear() - idCard.substring(6, 8) - 1901
  2645. sex = idCard.substring(13, 14)
  2646. birth = '19' + idCard.substring(6, 8) + '-' + idCard.substring(8, 10) + '-' + idCard.substring(10, 12)
  2647. // eslint-disable-next-line no-mixed-operators
  2648. if (idCard.substring(8, 10) < month || idCard.substring(8, 10) === month && idCard.substring(10, 12) <= day) age++
  2649. }
  2650. if (sex % 2 === 0) {
  2651. sex = '2' // 性别代码 1代表男,2代表女,暂时不涉及其他类型性别
  2652. } else {
  2653. sex = '1'
  2654. }
  2655. //获取户籍所在地
  2656. const regionCode = idCard.substring(0, 6);
  2657. this.generalForm.nativePlace = regionCode
  2658. this.generalForm.age = age
  2659. this.generalForm.sex = sex
  2660. this.generalForm.birthday = birth
  2661. return { age, sex, birth }
  2662. }
  2663. })
  2664. },
  2665. //联系电话唯一性判断
  2666. mobilePhoneOnly(mobilePhone) {
  2667. if (!this.validateXG.isPhoneOrMobile(mobilePhone)) {
  2668. this.$message.error('”联系电话“填写不正确,请重新填写')
  2669. this.loading = false
  2670. this.generalForm.mobilePhone = ''
  2671. throw new Error('”联系电话“填写不正确,请重新填写')
  2672. }
  2673. enrollmentRegistrationService.findMobilePhoneOnly(mobilePhone).then((data) => {
  2674. if (data !== 0) {
  2675. this.$message.error('联系电话已存在,请重新确认')
  2676. this.generalForm.mobilePhone = ''
  2677. throw new Error('联系电话已存在,请重新确认')
  2678. }
  2679. })
  2680. },
  2681. //邮箱验证
  2682. checkEmail(email) {
  2683. if (!this.validateXG.isEmail(email)) {
  2684. this.$message.error('邮箱格式不正确,请重新填写')
  2685. this.loading = false
  2686. this.concatForm.email = ''
  2687. throw new Error('邮箱格式不正确,请重新填写')
  2688. }
  2689. },
  2690. checkBankNumber(bankNumber, type) {
  2691. if (!this.validateXG.isBankNum(bankNumber)) {
  2692. if (type === 'zx') {
  2693. this.generalForm.zxBankCardNumber = ''
  2694. } else if (type === 'gs') {
  2695. this.generalForm.gsBankCardNumber = ''
  2696. } else {
  2697. this.$message.error('请输入正确的社保银行卡号')
  2698. this.generalForm.socialSecurityBankNumber = ''
  2699. throw new Error('请输入正确的社保银行卡号')
  2700. }
  2701. this.$message.error('请输入正确的银行卡号')
  2702. throw new Error('请输入正确的银行卡号')
  2703. }
  2704. },
  2705. handleAvatarSuccess(res, file, fileList, index, val) {
  2706. console.log('foleList', fileList)
  2707. if (val === 'front') {
  2708. this.generalForm.socialSecurityPictureFront = '/' + res.url
  2709. this.generalForm.socialSecurityPictureFrontUrl = res.lsUrl
  2710. console.log('res.url', res.url)
  2711. console.log('res.lsUrl', res.lsUrl)
  2712. }
  2713. this.hideUploadEdit = true
  2714. this.$forceUpdate()
  2715. },
  2716. handleAvatarSuccess2(res, file, fileList, index, val) {
  2717. console.log('foleList', fileList)
  2718. if (val === 'front') {
  2719. this.generalForm.socialSecurityPictureOpposite = '/' + res.url
  2720. this.generalForm.socialSecurityPictureOppositeUrl = res.lsUrl
  2721. }
  2722. this.hideUploadEdit = true
  2723. this.$forceUpdate()
  2724. },
  2725. onPreview(url) {
  2726. if (url !== '' && url !== undefined && url !== null) {
  2727. this.url = url
  2728. this.showViewer = true
  2729. }
  2730. },
  2731. checkIsPic(file) {
  2732. return this.commonJS.isPic(file)
  2733. },
  2734. validateInput() {
  2735. // 使用正则表达式验证输入内容,禁止中文
  2736. this.generalForm.socialSecurityNumber = this.generalForm.socialSecurityNumber.replace(/[\u4e00-\u9fa5]/g, '');
  2737. },
  2738. handleUploadSuccess(response, file, fileList) {
  2739. return this.handleAvatarSuccess(response, file, fileList, null, 'front')
  2740. },
  2741. handleUploadSuccess2(response, file, fileList) {
  2742. return this.handleAvatarSuccess2(response, file, fileList, null, 'front')
  2743. },
  2744. bankHandleUploadSuccess(response, file, fileList) {
  2745. return this.bankHandleAvatarSuccess(response, file, fileList, null, 'front')
  2746. },
  2747. bankHandleAvatarSuccess(res, file, fileList, index, val) {
  2748. if (val === 'front') {
  2749. this.generalForm.accountHolderFront = '/' + res.url
  2750. this.generalForm.accountHolderFrontUrl = res.lsUrl
  2751. }
  2752. this.bankHideUploadEdit = true
  2753. this.$forceUpdate()
  2754. },
  2755. bankHandlePictureCardPreview(file) {
  2756. this.generalForm.accountHolderFrontUrl = file.url
  2757. this.bankDialogVisible = true;
  2758. },
  2759. bankHandleDownload(file) {
  2760. let file2 = {
  2761. url: this.generalForm.accountHolderFront
  2762. }
  2763. toHref(file2)
  2764. },
  2765. bankHandleRemove(file, fileList) {
  2766. this.bankHideUploadEdit = false
  2767. // 如果需要删除图片信息,可以根据file或其他标识从相应的数据结构中删除信息
  2768. const fileIndex = this.bankFileList.indexOf(file);
  2769. if (fileIndex !== -1) {
  2770. this.bankFileList.splice(fileIndex, 1); // 从fileList中删除该图片信息
  2771. this.generalForm.accountHolderFront = ""
  2772. }
  2773. },
  2774. bankHandleUploadSuccess2(response, file, fileList) {
  2775. return this.bankHandleAvatarSuccess2(response, file, fileList, null, 'front')
  2776. },
  2777. bankHandleAvatarSuccess2(res, file, fileList, index, val) {
  2778. if (val === 'front') {
  2779. this.generalForm.accountHolderOpposite = '/' + res.url
  2780. this.generalForm.accountHolderOppositeUrl = res.lsUrl
  2781. }
  2782. this.bankHideUploadEdit2 = true
  2783. this.$forceUpdate()
  2784. },
  2785. bankHandlePictureCardPreview2(file) {
  2786. this.generalForm.accountHolderOppositeUrl = file.url
  2787. this.bankDialogVisible2 = true;
  2788. },
  2789. bankHandleDownload2(file) {
  2790. let file2 = {
  2791. url: this.generalForm.accountHolderOpposite
  2792. }
  2793. toHref(file2)
  2794. },
  2795. bankHandleRemove2(file, fileList) {
  2796. this.hideUploadEdit2 = false
  2797. // 如果需要删除图片信息,可以根据file或其他标识从相应的数据结构中删除信息
  2798. const fileIndex = this.bankFileList2.indexOf(file);
  2799. if (fileIndex !== -1) {
  2800. this.bankFileList2.splice(fileIndex, 1); // 从fileList中删除该图片信息
  2801. this.generalForm.accountHolderOpposite = ""
  2802. }
  2803. },
  2804. gsHandleUploadSuccess(response, file, fileList) {
  2805. return this.gsHandleAvatarSuccess(response, file, fileList, null, 'front')
  2806. },
  2807. gsHandleUploadSuccess2(response, file, fileList) {
  2808. return this.gsHandleAvatarSuccess2(response, file, fileList, null, 'front')
  2809. },
  2810. gsHandleAvatarSuccess(res, file, fileList, index, val) {
  2811. if (val === 'front') {
  2812. this.generalForm.gsAccountHolderFront = '/' + res.url
  2813. this.generalForm.gsAccountHolderFrontUrl = res.lsUrl
  2814. }
  2815. this.hideUploadEdit = true
  2816. this.$forceUpdate()
  2817. },
  2818. gsHandleAvatarSuccess2(res, file, fileList, index, val) {
  2819. if (val === 'front') {
  2820. this.generalForm.gsAccountHolderOpposite = '/' + res.url
  2821. this.generalForm.gsAccountHolderOppositeUrl = res.lsUrl
  2822. }
  2823. this.hideUploadEdit2 = true
  2824. this.$forceUpdate()
  2825. },
  2826. gsHandlePictureCardPreview(file) {
  2827. this.dialogImageUrl = file.url;
  2828. this.generalForm.gsAccountHolderFrontUrl = file.url
  2829. this.gsDialogVisible = true;
  2830. },
  2831. gsHandlePictureCardPreview2(file) {
  2832. this.generalForm.gsAccountHolderOppositeUrl = file.url
  2833. this.gsDialogVisible2 = true;
  2834. },
  2835. gsHandleDownload(file) {
  2836. let file2 = {
  2837. url: this.generalForm.gsAccountHolderFront
  2838. }
  2839. toHref(file2)
  2840. },
  2841. gsHandleDownload2(file) {
  2842. let file2 = {
  2843. url: this.generalForm.gsAccountHolderOpposite
  2844. }
  2845. toHref(file2)
  2846. },
  2847. gsHandleRemove(file, fileList) {
  2848. this.gsHideUploadEdit = false
  2849. // 如果需要删除图片信息,可以根据file或其他标识从相应的数据结构中删除信息
  2850. const fileIndex = this.gsFileList.indexOf(file);
  2851. if (fileIndex !== -1) {
  2852. this.gsFileList.splice(fileIndex, 1); // 从fileList中删除该图片信息
  2853. this.generalForm.gsAccountHolderFront = ""
  2854. }
  2855. },
  2856. gsHandleRemove2(file, fileList) {
  2857. this.gsHideUploadEdit2 = false
  2858. // 如果需要删除图片信息,可以根据file或其他标识从相应的数据结构中删除信息
  2859. const fileIndex = this.gsFileList2.indexOf(file);
  2860. if (fileIndex !== -1) {
  2861. this.gsFileList2.splice(fileIndex, 1); // 从fileList中删除该图片信息
  2862. this.generalForm.gsAccountHolderOpposite = ""
  2863. }
  2864. },
  2865. // 日期格式化
  2866. handleDateFormatter(dateStr) {
  2867. if (!dateStr) return ''; // 如果为空,返回空字符串
  2868. return dayjs(dateStr).format('YYYY年MM月DD日');
  2869. },
  2870. changeInfoList(index) {
  2871. this.changeFlag[index] = !this.changeFlag[index]
  2872. },
  2873. // 教育经历处理
  2874. handleEduInfoChange(val) {
  2875. console.log(val);
  2876. },
  2877. // 教育经历
  2878. addEdu() {
  2879. this.$refs.EducationInfo.init("add", null, this.userId)
  2880. },
  2881. editEdu(row) {
  2882. this.$refs.EducationInfo.init("edit", row, this.userId)
  2883. },
  2884. delEdu(id) {
  2885. this.$confirm('确定删除此条教育经历信息吗?', '提示', {
  2886. confirmButtonText: '确定',
  2887. cancelButtonText: '取消',
  2888. type: 'warning'
  2889. }).then(() => {
  2890. this.eduInfoList = this.eduInfoList.filter(item => item.id !== id)
  2891. }).catch(() => {
  2892. });
  2893. },
  2894. handleAddEduInfo(row) {
  2895. const { id } = row
  2896. let index = this.eduInfoList.findIndex(item => item.id === row.id)
  2897. if (index === -1) {
  2898. // 不存在就新增
  2899. this.eduInfoList.push(row)
  2900. } else {
  2901. // 存在就更新
  2902. this.eduInfoList[index] = row
  2903. this.eduInfoList[index].degreeFile = row.degreeFile
  2904. this.eduInfoList[index].educationFile = row.educationFile
  2905. }
  2906. if (!this.activeNames[0].includes(id)) {
  2907. this.activeNames[0].push(id);
  2908. }
  2909. this.uploadKey = Date.now().toString();
  2910. },
  2911. handleGetEduInfo() {
  2912. enrollmentRegistrationService.findEduInfo({
  2913. userId: this.userId
  2914. }).then(res => {
  2915. this.eduInfoList = res
  2916. })
  2917. },
  2918. // 工作经历处理
  2919. addWork() {
  2920. this.$refs.WorkInfo.init("add", null, this.userId)
  2921. },
  2922. editWork(row) {
  2923. this.$refs.WorkInfo.init("edit", row, this.userId)
  2924. },
  2925. delWork(id) {
  2926. this.$confirm('确定删除此条工作经历信息吗?', '提示', {
  2927. confirmButtonText: '确定',
  2928. cancelButtonText: '取消',
  2929. type: 'warning'
  2930. }).then(() => {
  2931. this.workInfoList = this.workInfoList.filter(item => item.id !== id)
  2932. }).catch(() => {
  2933. });
  2934. },
  2935. handleAddWorkInfo(row) {
  2936. const { id } = row
  2937. let index = this.workInfoList.findIndex(item => item.id === row.id)
  2938. if (index === -1) {
  2939. // 不存在就新增
  2940. this.workInfoList.push(row)
  2941. this.activeNames[1].push(row.id)
  2942. } else {
  2943. // 存在就更新
  2944. this.workInfoList[index] = row
  2945. }
  2946. if (!this.activeNames[1].includes(id)) {
  2947. this.activeNames[1].push(id);
  2948. }
  2949. this.uploadKey = Date.now().toString();
  2950. },
  2951. handleGetWorkInfo() {
  2952. enrollmentRegistrationService.findWorkInfo({
  2953. userId: this.userId
  2954. }).then(res => {
  2955. this.workInfoList = res
  2956. })
  2957. },
  2958. //培训经历处理
  2959. addTraining() {
  2960. this.$refs.TrainingInfo.init("add", null, this.userId)
  2961. },
  2962. editTraining(row) {
  2963. this.$refs.TrainingInfo.init("edit", row, this.userId)
  2964. },
  2965. delTraining(id) {
  2966. this.$confirm('确定删除此条培训经历信息吗?', '提示', {
  2967. confirmButtonText: '确定',
  2968. cancelButtonText: '取消',
  2969. type: 'warning'
  2970. }).then(() => {
  2971. this.trainingInfoList = this.trainingInfoList.filter(item => item.id !== id)
  2972. }).catch(() => {
  2973. });
  2974. },
  2975. handleAddTrainingInfo(row) {
  2976. const { id } = row;
  2977. let index = this.trainingInfoList.findIndex(item => item.id === row.id)
  2978. if (index === -1) {
  2979. // 不存在就新增
  2980. this.trainingInfoList.push(row)
  2981. } else {
  2982. // 存在就更新
  2983. this.trainingInfoList[index] = row
  2984. }
  2985. if (!this.activeNames[2].includes(id)) {
  2986. this.activeNames[2].push(id);
  2987. }
  2988. this.uploadKey = Date.now().toString();
  2989. },
  2990. handleGetTrainingInfo() {
  2991. enrollmentRegistrationService.findTrainingInfo({
  2992. userId: this.userId
  2993. }).then(res => {
  2994. this.trainingInfoList = res
  2995. })
  2996. },
  2997. //资质证书处理
  2998. addCertificate() {
  2999. this.$refs.certificateInfo.init("add", null, this.userId)
  3000. },
  3001. editCertificate(row) {
  3002. this.$refs.certificateInfo.init("edit", row, this.userId)
  3003. },
  3004. delCertificate(id) {
  3005. this.$confirm('确定删除此条执业资格证书信息吗?', '提示', {
  3006. confirmButtonText: '确定',
  3007. cancelButtonText: '取消',
  3008. type: 'warning'
  3009. }).then(() => {
  3010. this.certificateInfoList = this.certificateInfoList.filter(item => item.id !== id)
  3011. }).catch(() => {
  3012. });
  3013. },
  3014. handleAddCertificateInfo(row) {
  3015. const { id } = row
  3016. let index = this.certificateInfoList.findIndex(item => item.id === row.id)
  3017. if (index === -1) {
  3018. // 不存在就新增
  3019. this.certificateInfoList.push(row)
  3020. } else {
  3021. // 存在就更新
  3022. this.certificateInfoList[index] = row
  3023. }
  3024. if (!this.activeNames[3].includes(id)) {
  3025. this.activeNames[3].push(id);
  3026. }
  3027. this.uploadKey = Date.now().toString();
  3028. },
  3029. handleGetCertificateInfo() {
  3030. enrollmentRegistrationService.findCertificateInfo({
  3031. userId: this.userId
  3032. }).then(res => {
  3033. this.certificateInfoList = res
  3034. })
  3035. },
  3036. //职称证书处理
  3037. addSkill() {
  3038. this.$refs.skillInfo.init("add", null, this.userId)
  3039. },
  3040. editSkill(row) {
  3041. this.$refs.skillInfo.init("edit", row, this.userId)
  3042. },
  3043. delSkill(id) {
  3044. this.$confirm('确定删除此条职称证书信息吗?', '提示', {
  3045. confirmButtonText: '确定',
  3046. cancelButtonText: '取消',
  3047. type: 'warning'
  3048. }).then(() => {
  3049. this.skillInfoList = this.skillInfoList.filter(item => item.id !== id)
  3050. }).catch(() => {
  3051. });
  3052. },
  3053. handleAddSkillInfo(row) {
  3054. const { id } = row
  3055. let index = this.skillInfoList.findIndex(item => item.id === id)
  3056. if (index === -1) {
  3057. // 不存在就新增
  3058. this.skillInfoList.push(row)
  3059. } else {
  3060. // 存在就更新
  3061. this.skillInfoList[index] = row
  3062. }
  3063. if (!this.activeNames[4].includes(id)) {
  3064. this.activeNames[4].push(id);
  3065. }
  3066. this.uploadKey = Date.now().toString();
  3067. },
  3068. handleGetSkillInfo() {
  3069. enrollmentRegistrationService.findSkillInfo({
  3070. userId: this.userId
  3071. }).then(res => {
  3072. this.skillInfoList = res
  3073. })
  3074. },
  3075. //外语语种处理
  3076. addLanguage() {
  3077. this.$refs.languageInfo.init("add", null, this.userId)
  3078. },
  3079. editLanguage(row) {
  3080. this.$refs.languageInfo.init("edit", row, this.userId)
  3081. },
  3082. delLanguage(id) {
  3083. this.$confirm('确定删除此条外语语种信息吗?', '提示', {
  3084. confirmButtonText: '确定',
  3085. cancelButtonText: '取消',
  3086. type: 'warning'
  3087. }).then(() => {
  3088. this.languageInfoList = this.languageInfoList.filter(item => item.id !== id)
  3089. }).catch(() => {
  3090. });
  3091. },
  3092. handleAddLanguageInfo(row) {
  3093. const { id } = row
  3094. let index = this.languageInfoList.findIndex(item => item.id === id)
  3095. if (index === -1) {
  3096. // 不存在就新增
  3097. this.languageInfoList.push(row)
  3098. } else {
  3099. // 存在就更新
  3100. this.languageInfoList[index] = row
  3101. }
  3102. if (!this.activeNames[5].includes(id)) {
  3103. this.activeNames[5].push(id);
  3104. }
  3105. this.uploadKey = Date.now().toString();
  3106. },
  3107. handleGetLanguageInfo() {
  3108. enrollmentRegistrationService.findLanguageInfo({
  3109. userId: this.userId
  3110. }).then(res => {
  3111. this.languageInfoList = res
  3112. })
  3113. },
  3114. //家庭情况处理
  3115. addFamily() {
  3116. this.$refs.familyInfo.init("add", null, this.userId)
  3117. },
  3118. editFamily(row) {
  3119. this.$refs.familyInfo.init("edit", row, this.userId)
  3120. },
  3121. delFamily(id) {
  3122. this.$confirm('确定删除此条家庭情况信息吗?', '提示', {
  3123. confirmButtonText: '确定',
  3124. cancelButtonText: '取消',
  3125. type: 'warning'
  3126. }).then(() => {
  3127. this.familyInfoList = this.familyInfoList.filter(item => item.id !== id)
  3128. }).catch(() => {
  3129. });
  3130. },
  3131. handleAddFamilyInfo(row) {
  3132. const { id } = row
  3133. let index = this.familyInfoList.findIndex(item => item.id === row.id)
  3134. if (index === -1) {
  3135. // 不存在就新增
  3136. this.familyInfoList.push(row)
  3137. } else {
  3138. // 存在就更新
  3139. this.familyInfoList[index] = row
  3140. }
  3141. if (!this.activeNames[6].includes(id)) {
  3142. this.activeNames[6].push(id);
  3143. }
  3144. this.uploadKey = Date.now().toString();
  3145. },
  3146. handleGetFamilyInfo(row) {
  3147. enrollmentRegistrationService.findFamilyInfo({
  3148. userId: this.userId
  3149. }).then(res => {
  3150. this.familyInfoList = res
  3151. })
  3152. },
  3153. //表彰与奖励处理
  3154. addReward() {
  3155. this.$refs.rewardInfo.init("add", null, this.userId)
  3156. },
  3157. editReward(row) {
  3158. this.$refs.rewardInfo.init("edit", row, this.userId)
  3159. },
  3160. delReward(id) {
  3161. this.$confirm('确定删除此条奖项信息吗?', '提示', {
  3162. confirmButtonText: '确定',
  3163. cancelButtonText: '取消',
  3164. type: 'warning'
  3165. }).then(() => {
  3166. this.rewardInfoList = this.rewardInfoList.filter(item => item.id !== id)
  3167. }).catch(() => {
  3168. });
  3169. },
  3170. handleAddRewardInfo(row) {
  3171. const { id } = row
  3172. let index = this.rewardInfoList.findIndex(item => item.id === row.id)
  3173. if (index === -1) {
  3174. // 不存在就新增
  3175. this.rewardInfoList.push(row)
  3176. } else {
  3177. // 存在就更新
  3178. this.rewardInfoList[index] = row
  3179. }
  3180. if (!this.activeNames[7].includes(id)) {
  3181. this.activeNames[7].push(id);
  3182. }
  3183. this.uploadKey = Date.now().toString();
  3184. },
  3185. handleGetRewardInfo() {
  3186. enrollmentRegistrationService.findRewardInfo({
  3187. userId: this.userId
  3188. }).then(res => {
  3189. this.rewardInfoList = res
  3190. })
  3191. },
  3192. //社会及行业职务
  3193. addSociety() {
  3194. this.$refs.societyInfo.init("add", null, this.userId)
  3195. },
  3196. editSociety(row) {
  3197. this.$refs.societyInfo.init("edit", row, this.userId)
  3198. },
  3199. delSociety(id) {
  3200. this.$confirm('确定删除此条社会及行业职务信息吗?', '提示', {
  3201. confirmButtonText: '确定',
  3202. cancelButtonText: '取消',
  3203. type: 'warning'
  3204. }).then(() => {
  3205. this.societyInfoList = this.societyInfoList.filter(item => item.id !== id)
  3206. }).catch(() => {
  3207. });
  3208. },
  3209. handleAddSocietyInfo(row) {
  3210. const { id } = row
  3211. let index = this.societyInfoList.findIndex(item => item.id === row.id)
  3212. if (index === -1) {
  3213. // 不存在就新增
  3214. this.societyInfoList.push(row)
  3215. } else {
  3216. // 存在就更新
  3217. this.societyInfoList[index] = row
  3218. }
  3219. if (!this.activeNames[9].includes(id)) {
  3220. this.activeNames[9].push(id);
  3221. }
  3222. this.uploadKey = Date.now().toString();
  3223. },
  3224. handleGetSocietyInfo(row) {
  3225. enrollmentRegistrationService.findSocietyInfo({
  3226. userId: this.userId
  3227. }).then(res => {
  3228. this.societyInfoList = res
  3229. })
  3230. },
  3231. //工作业绩
  3232. addPerformance() {
  3233. this.$refs.performanceInfo.init("add", null, this.userId)
  3234. },
  3235. editPerformance(row) {
  3236. this.$refs.performanceInfo.init("edit", row, this.userId)
  3237. },
  3238. delPerformance(id) {
  3239. this.$confirm('确定删除此条工作业绩信息吗?', '提示', {
  3240. confirmButtonText: '确定',
  3241. cancelButtonText: '取消',
  3242. type: 'warning'
  3243. }).then(() => {
  3244. this.performanceInfoList = this.performanceInfoList.filter(item => item.id !== id)
  3245. }).catch(() => {
  3246. });
  3247. },
  3248. handleAddPerformanceInfo(row) {
  3249. const { id } = row
  3250. let index = this.performanceInfoList.findIndex(item => item.id === row.id)
  3251. if (index === -1) {
  3252. // 不存在就新增
  3253. this.performanceInfoList.push(row)
  3254. } else {
  3255. // 存在就更新
  3256. this.performanceInfoList[index] = row
  3257. }
  3258. if (!this.activeNames[10].includes(id)) {
  3259. this.activeNames[10].push(id);
  3260. }
  3261. this.uploadKey = Date.now().toString();
  3262. },
  3263. handleGetPerformanceInfo(row) {
  3264. enrollmentRegistrationService.findPerformanceInfo({
  3265. userId: this.userId
  3266. }).then(res => {
  3267. this.performanceInfoList = res
  3268. })
  3269. },
  3270. changeType(value, row) {
  3271. if (value === '1' || value === '2') {
  3272. let obj = this.$dictUtils.getDictList('sys_cert_profession_build').find(item => {
  3273. return item.value == row.profession
  3274. })
  3275. if (obj) {
  3276. row.profession = obj.label
  3277. }
  3278. } else if (value === '3' || value === '4') {
  3279. let obj = this.$dictUtils.getDictList('sys_cert_profession_cost').find(item => {
  3280. return item.value == row.profession
  3281. })
  3282. if (obj) {
  3283. row.profession = obj.label
  3284. }
  3285. } else if (value === '5') {
  3286. let obj = this.$dictUtils.getDictList('sys_cert_profession_supervision').find(item => {
  3287. return item.value == row.profession
  3288. })
  3289. if (obj) {
  3290. row.profession = obj.label
  3291. }
  3292. } else if (value === '6') {
  3293. let obj = this.$dictUtils.getDictList('sys_cert_profession_accounting').find(item => {
  3294. return item.value == row.profession
  3295. })
  3296. if (obj) {
  3297. row.profession = obj.label
  3298. }
  3299. }
  3300. },
  3301. handleRevoke() {
  3302. this.$confirm('确定要撤回审批吗?', '提示', {
  3303. confirmButtonText: '确定',
  3304. cancelButtonText: '取消',
  3305. type: 'warning'
  3306. }).then(() => {
  3307. this.loading = true
  3308. processService.revokeProcIns(this.procInsId).then(res => {
  3309. this.generalForm.idCardFront = this.$refs.idCardFront.getDataList()
  3310. this.generalForm.idCardBack = this.$refs.idCardBack.getDataList()
  3311. this.generalForm.email = this.concatForm.email
  3312. this.generalForm.eduInfoList = this.eduInfoList
  3313. this.generalForm.workInfoList = this.workInfoList
  3314. this.generalForm.certificateInfoList = this.certificateInfoList
  3315. this.generalForm.skillInfoList = this.skillInfoList
  3316. this.generalForm.rewardInfoList = this.rewardInfoList
  3317. this.generalForm.familyInfoList = this.familyInfoList
  3318. this.generalForm.trainingInfoList = this.trainingInfoList
  3319. this.generalForm.languageInfoList = this.languageInfoList
  3320. enrollmentRegistrationService.updateStatusByIdUserInfo(this.generalForm).then((data) => {
  3321. this.close()
  3322. this.$message.success(data.msg)
  3323. this.$refs.idCardBack.clearUpload()
  3324. this.$refs.idCardFront.clearUpload()
  3325. this.getDataInfo(this.userInfo.id)
  3326. this.loading = false
  3327. }).catch(() => {
  3328. this.loading = false
  3329. })
  3330. })
  3331. }).catch(() => {
  3332. this.loading = false
  3333. });
  3334. }
  3335. },
  3336. };
  3337. </script>
  3338. <style lang="less">
  3339. .userInfo {
  3340. padding: 8px 12px;
  3341. .aside {
  3342. width: 340px;
  3343. margin-right: 20px;
  3344. }
  3345. .el-card__header {
  3346. padding: calc(var(--el-card-padding) - 2px) var(--el-card-padding);
  3347. border-bottom: 1px solid var(--el-card-border-color);
  3348. box-sizing: border-box;
  3349. }
  3350. .person-bg {
  3351. color: rgb(24, 144, 255);
  3352. background-color: rgb(230, 247, 255);
  3353. width: 24px;
  3354. height: 24px;
  3355. border-radius: 50%;
  3356. text-align: center;
  3357. vertical-align: middle;
  3358. display: inline-block;
  3359. }
  3360. .person-text {
  3361. font-size: 15px;
  3362. margin-left: 5px;
  3363. font-weight: 400;
  3364. }
  3365. }
  3366. .adminui-topbar+.userInfo {
  3367. padding: 12px 12px 8px 12px;
  3368. }
  3369. /deep/ .el-collapse-item__header {
  3370. font-size: 16px !important;
  3371. order: -1;
  3372. }
  3373. .collapseTitle {
  3374. width: 100%;
  3375. display: flex;
  3376. align-items: center;
  3377. order: 1;
  3378. }
  3379. .card-info {
  3380. margin-bottom: 20px;
  3381. }
  3382. .star-require .el-form-item__label::before {
  3383. content: "*";
  3384. color: red;
  3385. }
  3386. </style>