UserInfo.vue 114 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269
  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-button type="primary" @click="addReward()"
  1466. :disabled="auditStatus == 2">新增</el-button> -->
  1467. <el-divider direction="vertical" />
  1468. <el-button :type="changeFlag[8] ? 'warning' : 'success'"
  1469. @click="changeInfoList(8)">{{
  1470. changeFlag[8] ? "收起" : "展开"
  1471. }}</el-button>
  1472. </el-divider>
  1473. </template>
  1474. <el-collapse-transition>
  1475. <el-row :gutter="26" v-if="changeFlag[8]">
  1476. <el-col :span="24">
  1477. <el-collapse v-model="activeNames[8]"
  1478. v-if="laborContractInfoList && laborContractInfoList.length > 0">
  1479. <div style="padding: 0 30px;"
  1480. v-for="(item, index) in laborContractInfoList">
  1481. <el-collapse-item :name="item.id">
  1482. <template #title="{ isActive }">
  1483. <div class="collapseTitle">
  1484. <span style="font-size: 16px;"> {{
  1485. $dictUtils.getDictLabel("labor_contract_type",
  1486. item.type, '-')
  1487. }}</span>
  1488. <span style="font-size: 16px;"> {{ "-" +
  1489. $dictUtils.getDictLabel("labor_contract_term",
  1490. item.term,
  1491. '-')
  1492. }}</span>
  1493. </div>
  1494. </template>
  1495. <el-descriptions title="" border :column="2">
  1496. <el-descriptions-item label="合同类型:">{{
  1497. $dictUtils.getDictLabel("labor_contract_type", item.type,
  1498. '-')
  1499. }}</el-descriptions-item>
  1500. <!-- <el-descriptions-item label="合同编号:">{{ item.code
  1501. }}</el-descriptions-item> -->
  1502. <el-descriptions-item label="合同期限:">{{
  1503. $dictUtils.getDictLabel("labor_contract_term",
  1504. item.term,
  1505. '-')
  1506. }}</el-descriptions-item>
  1507. <el-descriptions-item label="合同起始日期:">{{
  1508. handleDateFormatter(item.startDate)
  1509. }}</el-descriptions-item>
  1510. <el-descriptions-item label="合同终止日期:">{{
  1511. handleDateFormatter(item.endDate)
  1512. }}</el-descriptions-item>
  1513. <el-descriptions-item label="试用期结束日期:">{{
  1514. handleDateFormatter(item.trialEndDate)
  1515. }}</el-descriptions-item>
  1516. <!-- <el-descriptions-item label="办理日期:">{{
  1517. handleDateFormatter(item.processeDate)
  1518. }}</el-descriptions-item> -->
  1519. <el-descriptions-item label="附件:">
  1520. <AttachmentView :fileList="item.files">
  1521. </AttachmentView>
  1522. </el-descriptions-item>
  1523. </el-descriptions>
  1524. </el-collapse-item>
  1525. </div>
  1526. </el-collapse>
  1527. <el-empty image-size="80px"
  1528. style="margin-top: 0 !important;padding: 0 !important;" v-else
  1529. description="暂无表彰与奖励"></el-empty>
  1530. </el-col>
  1531. </el-row>
  1532. </el-collapse-transition>
  1533. </el-card>
  1534. </el-tab-pane>
  1535. <el-tab-pane label="上传头像">
  1536. <el-form :model="photoForm" ref="photoForm" label-width="100px">
  1537. <el-form-item prop="photo">
  1538. <image-select v-model="photoForm.photo" round icon="el-icon-avatar"
  1539. title="头像"></image-select>
  1540. </el-form-item>
  1541. <!-- <el-form-item>
  1542. <el-button style="width: 148px" type="primary" @click="submitPhotoForm()">保存</el-button>
  1543. </el-form-item> -->
  1544. </el-form>
  1545. </el-tab-pane>
  1546. <!-- <el-tab-pane label="联系方式">
  1547. <el-form :model="concatForm" ref="concatForm" label-width="100px">
  1548. <el-form-item label="手机" prop="mobile" :rules="[
  1549. {
  1550. validator: validator.isMobile,
  1551. trigger: 'blur',
  1552. },
  1553. ]">
  1554. <el-input v-model="concatForm.mobile"></el-input>
  1555. </el-form-item>
  1556. <el-form-item label="电话" prop="phone" :rules="[
  1557. {
  1558. validator: validator.isPhone,
  1559. trigger: 'blur',
  1560. },
  1561. ]">
  1562. <el-input v-model="concatForm.phone"></el-input>
  1563. </el-form-item>
  1564. &lt;!&ndash; <el-form-item>
  1565. <el-button type="primary" @click="submitConcatForm()">保存</el-button>
  1566. </el-form-item> &ndash;&gt;
  1567. </el-form>
  1568. </el-tab-pane>-->
  1569. <!--<el-tab-pane label="修改密码">
  1570. <el-form
  1571. :rules="dataRule"
  1572. :model="pwdForm"
  1573. ref="pwdForm"
  1574. label-width="100px"
  1575. >
  1576. <el-form-item
  1577. label="旧密码"
  1578. :rules="[
  1579. {
  1580. required: true,
  1581. message: '必填项不能为空',
  1582. trigger: 'blur',
  1583. },
  1584. ]"
  1585. prop="oldPassword"
  1586. >
  1587. <el-input
  1588. v-model="pwdForm.oldPassword"
  1589. show-password
  1590. ></el-input>
  1591. </el-form-item>
  1592. <el-form-item
  1593. label="新密码"
  1594. :rules="[
  1595. {
  1596. required: true,
  1597. message: '必填项不能为空',
  1598. trigger: 'blur',
  1599. },
  1600. ]"
  1601. prop="newPassword"
  1602. >
  1603. <el-input
  1604. v-model="pwdForm.newPassword"
  1605. show-password
  1606. ></el-input>
  1607. </el-form-item>
  1608. <el-form-item
  1609. label="确认新密码"
  1610. :rules="rule"
  1611. prop="confirmNewPassword"
  1612. >
  1613. <el-input
  1614. v-model="pwdForm.confirmNewPassword"
  1615. show-password
  1616. ></el-input>
  1617. </el-form-item>
  1618. <el-form-item>
  1619. <el-button
  1620. type="primary"
  1621. @click="submitPwdForm()"
  1622. >保存</el-button
  1623. >
  1624. </el-form-item>
  1625. </el-form>
  1626. </el-tab-pane>-->
  1627. <!--<el-tab-pane label="我的日志">
  1628. <el-menu
  1629. default-active="1"
  1630. mode="horizontal"
  1631. @select="changeLog"
  1632. >
  1633. <el-menu-item index="1">
  1634. <template #title>登陆日志</template>
  1635. </el-menu-item>
  1636. <el-menu-item index="2">
  1637. <template #title>访问日志</template>
  1638. </el-menu-item>
  1639. </el-menu>
  1640. <vxe-table
  1641. auto-resize
  1642. resizable
  1643. height="400px"
  1644. :loading="loading"
  1645. size="mini"
  1646. ref="logTable"
  1647. show-header-overflow
  1648. show-overflow
  1649. highlight-hover-row
  1650. :menu-config="{}"
  1651. :print-config="{}"
  1652. :import-config="{}"
  1653. :export-config="{}"
  1654. @sort-change="sortChangeHandle"
  1655. :sort-config="{ remote: true }"
  1656. :data="dataList"
  1657. :checkbox-config="{}"
  1658. >
  1659. <vxe-column type="seq" width="40"></vxe-column>
  1660. <vxe-column
  1661. title="操作菜单"
  1662. field="title"
  1663. sortable
  1664. ></vxe-column>
  1665. <vxe-column
  1666. title="耗时(毫秒)"
  1667. field="recordTime"
  1668. sortable
  1669. ></vxe-column>
  1670. <vxe-column
  1671. title="请求参数"
  1672. field="params"
  1673. sortable
  1674. ></vxe-column>
  1675. <vxe-column
  1676. title="返回结果"
  1677. field="result"
  1678. sortable
  1679. ></vxe-column>
  1680. <vxe-column
  1681. title="公司"
  1682. field="createBy.companyDTO.name"
  1683. sort-by="c.name"
  1684. sortable
  1685. ></vxe-column>
  1686. <vxe-column
  1687. title="部门"
  1688. field="createBy.officeDTO.name"
  1689. sort-by="o.name"
  1690. sortable
  1691. ></vxe-column>
  1692. <vxe-column
  1693. title="用户"
  1694. field="createBy.name"
  1695. sort-by="u.name"
  1696. sortable
  1697. ></vxe-column>
  1698. <vxe-column
  1699. title="IP地址"
  1700. field="remoteAddr"
  1701. sortable
  1702. ></vxe-column>
  1703. <vxe-column
  1704. title="访问时间"
  1705. field="createTime"
  1706. sort-by="a.create_time"
  1707. sortable
  1708. ></vxe-column>
  1709. </vxe-table>
  1710. <vxe-pager
  1711. background
  1712. size="mini"
  1713. :current-page="tablePage.currentPage"
  1714. :page-size="tablePage.pageSize"
  1715. :total="tablePage.total"
  1716. :page-sizes="[
  1717. 10,
  1718. 20,
  1719. 100,
  1720. 1000,
  1721. { label: '全量数据', value: 1000000 },
  1722. ]"
  1723. :layouts="[
  1724. 'PrevPage',
  1725. 'JumpNumber',
  1726. 'NextPage',
  1727. 'FullJump',
  1728. 'Sizes',
  1729. 'Total',
  1730. ]"
  1731. @page-change="currentChangeHandle"
  1732. >
  1733. </vxe-pager>
  1734. </el-tab-pane>-->
  1735. </el-tabs>
  1736. </el-card>
  1737. </el-main>
  1738. <!-- 教育经历 -->
  1739. <EducationInfo ref="EducationInfo" @addEduInfo="handleAddEduInfo"></EducationInfo>
  1740. <!-- 工作经历 -->
  1741. <WorkInfo ref="WorkInfo" @addWorkInfo="handleAddWorkInfo"></WorkInfo>
  1742. <!-- 培训经历 -->
  1743. <TrainingInfo ref="TrainingInfo" @addTrainingInfo="handleAddTrainingInfo"></TrainingInfo>
  1744. <!-- 执业资格证书 -->
  1745. <CertificateInfo ref="certificateInfo" @addCertificateInfo="handleAddCertificateInfo"></CertificateInfo>
  1746. <!-- 职称证书 -->
  1747. <SkillInfo ref="skillInfo" @addSkillInfo="handleAddSkillInfo"></SkillInfo>
  1748. <!--外语语种 -->
  1749. <LanguageInfo ref="languageInfo" @addLanguageInfo="handleAddLanguageInfo"></LanguageInfo>
  1750. <!-- 家庭情况 -->
  1751. <FamilyInfo ref="familyInfo" @addFamilyInfo="handleAddFamilyInfo"></FamilyInfo>
  1752. <!-- 表彰与奖励 -->
  1753. <RewardInfo ref="rewardInfo" @addRewardInfo="handleAddRewardInfo"></RewardInfo>
  1754. </el-container>
  1755. </template>
  1756. <script>
  1757. import colorTool from "@/utils/color";
  1758. import userService from "@/api/sys/userService";
  1759. import logService from "@/api/sys/logService";
  1760. import postService from "@/api/sys/postService";
  1761. import roleService from "@/api/sys/roleService";
  1762. import enrollmentRegistrationService from '@/api/human/enrollment/EnrollmentRegistrationService'
  1763. import SelectTree from '@/components/treeSelect/treeSelect.vue'
  1764. import dayjs from 'dayjs'
  1765. import EducationInfo from "./components/EducationInfo";
  1766. import WorkInfo from "./components/WorkInfo";
  1767. import TrainingInfo from "./components/TrainingInfo";
  1768. import CertificateInfo from "./components/CertificateInfo";
  1769. import SkillInfo from "./components/SkillInfo";
  1770. import LanguageInfo from "./components/LanguageInfo";
  1771. import FamilyInfo from "./components/FamilyInfo";
  1772. import RewardInfo from "./components/RewardInfo";
  1773. import AttachmentView from './components/AttachmentView'
  1774. import UpLoadComponent from '@/views/common/UpLoadComponentCardStyle'
  1775. import processService from '@/api/flowable/processService'
  1776. import taskService from '@/api/flowable/taskService'
  1777. import OSSSerivce, {
  1778. httpRequest,
  1779. fileName,
  1780. toHref,
  1781. } from '@/api/sys/OSSService'
  1782. import { flow } from "lodash";
  1783. export default {
  1784. components: {
  1785. SelectTree,
  1786. EducationInfo,
  1787. WorkInfo,
  1788. TrainingInfo,
  1789. CertificateInfo,
  1790. SkillInfo,
  1791. LanguageInfo,
  1792. FamilyInfo,
  1793. RewardInfo,
  1794. AttachmentView,
  1795. UpLoadComponent
  1796. },
  1797. data() {
  1798. var validatePass2 = (rule, value, callback) => {
  1799. if (value !== this.pwdForm.newPassword) {
  1800. callback(new Error("两次输入密码不一致!"));
  1801. } else {
  1802. callback();
  1803. }
  1804. };
  1805. return {
  1806. activeName: "basicInfo",
  1807. rejectMessage: "无",
  1808. uploadKey: "",
  1809. fileType: ['jpg', 'jpeg', 'png', 'webp'],
  1810. bankHideUploadEdit: false, //控制上传点击
  1811. bankHideUploadEdit2: false, //控制上传点击
  1812. bankFileList: [],
  1813. bankFileList2: [],
  1814. bankDialogVisible: false,
  1815. bankDialogVisible2: false,
  1816. gsDialogVisible: false,
  1817. gsDialogVisible2: false,
  1818. gsHideUploadEdit: false, //控制上传点击
  1819. gsHideUploadEdit2: false, //控制上传点击
  1820. gsFileList: [],
  1821. gsFileList2: [],
  1822. hideUploadEdit: false, //隐藏上传按钮
  1823. hideUploadEdit2: false, //隐藏上传按钮
  1824. limitNum: 1,
  1825. fileList: [],
  1826. fileList2: [],
  1827. dialogImageUrl: '',
  1828. dialogVisible: false,
  1829. dialogVisible2: false,
  1830. disabled: false,
  1831. ossService: null,
  1832. roleList: [],
  1833. postList: [],
  1834. fileList: [],
  1835. fileList2: [],
  1836. type: "1",
  1837. colorList: [
  1838. "#409EFF",
  1839. "#009688",
  1840. "#536dfe",
  1841. "#ff5c93",
  1842. "#c62f2f",
  1843. "#fd726d",
  1844. ],
  1845. config: {
  1846. lang: this.$TOOL.data.get("APP_LANG") || this.$CONFIG.LANG,
  1847. theme: this.$TOOL.data.get("APP_THEME") || "default",
  1848. colorPrimary:
  1849. this.$TOOL.data.get("APP_COLOR") ||
  1850. this.$CONFIG.COLOR ||
  1851. "#409EFF",
  1852. },
  1853. userInfo: {},
  1854. generalForm: {
  1855. id: "",
  1856. name: "",
  1857. sign: "",
  1858. loginName: "",
  1859. companyDTO: {
  1860. name: "",
  1861. },
  1862. officeDTO: {
  1863. name: "",
  1864. },
  1865. remarks: "",
  1866. wageCardId: '',//银行卡信息id
  1867. zxBankCardNumber: '',//银行卡信息
  1868. zxAccountHolder: '',
  1869. accountHolderFront: '',
  1870. accountHolderFrontUrl: '',
  1871. accountHolderOpposite: '',
  1872. accountHolderOppositeUrl: '',
  1873. gsAccountHolder: '',
  1874. gsBankCardNumber: '',
  1875. gsAccountHolderFront: '',
  1876. gsAccountHolderFrontUrl: '',
  1877. gsAccountHolderOpposite: '',
  1878. gsAccountHolderOppositeUrl: '',
  1879. id: '',
  1880. userId: '',
  1881. name: '', //姓名
  1882. sex: '', // 性别
  1883. age: '',//年龄
  1884. birthday: '',//生日
  1885. joinIndustryDate: null, // 参加工作日期
  1886. joinWorkDate: null, // 参加行业日期
  1887. politicalOutlook: '',//政治面貌
  1888. nativePlace: '',//籍贯
  1889. nation: '', //民族
  1890. maritalStatus: '',//婚姻
  1891. mobilePhone: '',//联系电话
  1892. idCard: '', //身份证
  1893. idCardFront: [],
  1894. idCardBack: [],
  1895. homeAddress: '',//家庭住址
  1896. permanentAddress: '',//常驻地址
  1897. email: "",
  1898. graduatedFrom: '',
  1899. speciality: '',
  1900. startTime: '',
  1901. endTime: '',
  1902. education: '',
  1903. educationNature: '',
  1904. graduatedOrNot: '',
  1905. englishLevel: '',
  1906. ncre: '',
  1907. department: '',
  1908. entryDate: '',
  1909. contractStartDate: '',
  1910. contractEndDate: '',
  1911. remarks: '',
  1912. type: '',
  1913. onJobStatus: '',
  1914. socialSecurityNumber: '',
  1915. socialSecurityBankNumber: '',
  1916. socialSecurityPictureFront: '',
  1917. socialSecurityPictureFrontUrl: '',
  1918. socialSecurityPictureOpposite: '',
  1919. socialSecurityPictureOppositeUrl: '',
  1920. roleIdList: [],
  1921. postIdList: [],
  1922. ddId: '',
  1923. registrationId: "",
  1924. status: ""
  1925. },
  1926. concatForm: {
  1927. id: "",
  1928. email: "",
  1929. phone: "",
  1930. mobile: "",
  1931. },
  1932. photoForm: {
  1933. id: "",
  1934. photo: "",
  1935. },
  1936. pwdForm: {
  1937. id: this.$store.state.user.id,
  1938. oldPassword: "",
  1939. newPassword: "",
  1940. confirmNewPassword: "",
  1941. },
  1942. dataRule: {
  1943. password: [
  1944. { required: true, message: '原密码不能为空', trigger: 'blur' }
  1945. ],
  1946. newPassword: [
  1947. { required: true, message: '新密码不能为空', trigger: 'blur' },
  1948. {
  1949. validator: (rule, value, callback) => {
  1950. const passwordRegex = /^(?=(.*[A-Z]))(?=(.*[a-z]))(?=(.*\d))|(?=(.*[A-Z]))(?=(.*[a-z]))(?=(.*[!@#$%^&*.,]))|(?=(.*[A-Z]))(?=(.*\d))(?=(.*[!@#$%^&*.,]))|(?=(.*[a-z]))(?=(.*\d))(?=(.*[!@#$%^&*.,]))[A-Za-z\d!@#$%^&*.,]{8,20}$/;
  1951. if (!value) {
  1952. callback(new Error('新的密码不能为空'));
  1953. } else if (!passwordRegex.test(value)) {
  1954. callback(new Error('密码必须包含大写字母、小写字母、数字或特殊字符中的三种,且长度为8到20个字符'));
  1955. } else {
  1956. callback(); // 验证通过
  1957. }
  1958. },
  1959. trigger: 'blur'
  1960. }
  1961. ],
  1962. confirmNewPassword: [
  1963. { required: true, message: '确认密码不能为空', trigger: 'blur' },
  1964. { validator: validatePass2, trigger: 'blur' },
  1965. {
  1966. validator: (rule, value, callback) => {
  1967. const passwordRegex = /^(?=(.*[A-Z]))(?=(.*[a-z]))(?=(.*\d))|(?=(.*[A-Z]))(?=(.*[a-z]))(?=(.*[!@#$%^&*.,]))|(?=(.*[A-Z]))(?=(.*\d))(?=(.*[!@#$%^&*.,]))|(?=(.*[a-z]))(?=(.*\d))(?=(.*[!@#$%^&*.,]))[A-Za-z\d!@#$%^&*.,]{8,20}$/;
  1968. if (!value) {
  1969. callback(new Error('确认密码不能为空'));
  1970. } else if (!passwordRegex.test(value)) {
  1971. callback(new Error('密码必须包含大写字母、小写字母、数字或特殊字符中的三种,且长度为8到20个字符'));
  1972. } else {
  1973. callback(); // 验证通过
  1974. }
  1975. },
  1976. trigger: 'blur'
  1977. }
  1978. ]
  1979. },
  1980. dataList: [],
  1981. tablePage: {
  1982. total: 0,
  1983. currentPage: 1,
  1984. pageSize: 10,
  1985. orders: [{ column: "a.create_time", asc: false }],
  1986. },
  1987. loading: false,
  1988. rule: [
  1989. { required: true, message: "必填项不能为空", trigger: "blur" },
  1990. { validator: validatePass2, trigger: "blur" },
  1991. ],
  1992. changeFlag: [
  1993. true, true, true, true, true, true, true, true, true
  1994. ],
  1995. activeNames: [],
  1996. //教育经历
  1997. eduInfoList: [
  1998. ],
  1999. // 工作经历
  2000. workInfoList: [
  2001. ],
  2002. // 培训经历
  2003. trainingInfoList: [
  2004. ],
  2005. // 资质证书
  2006. certificateInfoList: [
  2007. ],
  2008. // 专业技能
  2009. skillInfoList: [
  2010. ],
  2011. languageInfoList: [
  2012. ],
  2013. familyInfoList: [
  2014. ],
  2015. rewardInfoList: [
  2016. ],
  2017. laborContractInfoList: [],
  2018. auditStatus: "0",
  2019. flowData: [],
  2020. procInsId: ""
  2021. };
  2022. },
  2023. created() {
  2024. this.ossService = new OSSSerivce()
  2025. this.userInfo = this.$TOOL.data.get("USER_INFO");
  2026. var userId = this.userInfo.id;
  2027. if (userId) {
  2028. this.getDataInfo(userId)
  2029. // this.refreshList(userId);
  2030. }
  2031. },
  2032. computed: {
  2033. userId() {
  2034. return this.$store.state.user.id
  2035. }
  2036. },
  2037. watch: {
  2038. "config.theme"(val) {
  2039. document.body.setAttribute("data-theme", val);
  2040. this.$TOOL.data.set("APP_THEME", val);
  2041. },
  2042. "config.lang"(val) {
  2043. this.$i18n.locale = val;
  2044. this.$TOOL.data.set("APP_LANG", val);
  2045. },
  2046. "config.colorPrimary"(val) {
  2047. colorTool.setAppColors(val);
  2048. this.$TOOL.data.set("APP_COLOR", val);
  2049. },
  2050. },
  2051. methods: {
  2052. getDataInfo(userId) {
  2053. this.loading = true
  2054. enrollmentRegistrationService.getUserInfoAudit({ userId: userId }).then(res => {
  2055. if (res) {
  2056. this.procInsId = res.procInsId
  2057. if (res.procInsId) {
  2058. taskService.historicTaskList(
  2059. res.procInsId
  2060. ).then(result => {
  2061. if (res.status == 4) {
  2062. let rejectObj = result.find(temp => {
  2063. return temp.comment.status == "驳回"
  2064. })
  2065. if (rejectObj && rejectObj.comment.message != "") {
  2066. this.rejectMessage = rejectObj.comment.message
  2067. }
  2068. } else if (res.status == 2) {
  2069. this.flowData = result
  2070. // this.$refs.flowRef.setCurrentRow(this.flowData[this.flowData.length - 1]);
  2071. }
  2072. })
  2073. }
  2074. //审核中就展示提交审核的信息
  2075. if (res.status == 2 || res.status == 4) {
  2076. this.auditStatus = res.status
  2077. this.initAudit(res.id)
  2078. // 完成审核或者已经驳回,就展示最终信息
  2079. } else {
  2080. this.auditStatus = "5"
  2081. userService.queryById(userId).then((data) => {
  2082. // this.recover(this.generalForm, data);
  2083. this.recover(this.concatForm, data);
  2084. this.recover(this.photoForm, data);
  2085. });
  2086. this.init(userId)
  2087. }
  2088. } else {
  2089. this.auditStatus = "6"
  2090. userService.queryById(userId).then((data) => {
  2091. // this.recover(this.generalForm, data);
  2092. this.recover(this.concatForm, data);
  2093. this.recover(this.photoForm, data);
  2094. });
  2095. this.init(userId)
  2096. }
  2097. }).catch(() => {
  2098. this.loading = false
  2099. })
  2100. },
  2101. init(userId) {
  2102. this.loading = true;
  2103. enrollmentRegistrationService.findInfoByUserId(userId).then(async (data) => {
  2104. this.fileList = []
  2105. this.fileList2 = []
  2106. this.generalForm = this.recover(this.generalForm, data)
  2107. this.generalForm = JSON.parse(JSON.stringify(this.generalForm))
  2108. if (this.commonJS.isEmpty(this.generalForm.roleIdList)) {
  2109. this.generalForm.roleIdList = []
  2110. }
  2111. if (this.commonJS.isEmpty(this.generalForm.postIdList)) {
  2112. this.generalForm.postIdList = []
  2113. }
  2114. // 教育经历
  2115. if (this.commonJS.isNotEmpty(data.eduInfoList)) {
  2116. this.eduInfoList = data.eduInfoList
  2117. }
  2118. // 工作经历
  2119. if (this.commonJS.isNotEmpty(data.workInfoList)) {
  2120. this.workInfoList = data.workInfoList
  2121. }
  2122. // 培训经历
  2123. if (this.commonJS.isNotEmpty(data.trainingInfoList)) {
  2124. this.trainingInfoList = data.trainingInfoList
  2125. }
  2126. // 资质证书
  2127. if (this.commonJS.isNotEmpty(data.certificateInfoList)) {
  2128. this.certificateInfoList = data.certificateInfoList
  2129. }
  2130. // 专业技能
  2131. if (this.commonJS.isNotEmpty(data.skillInfoList)) {
  2132. this.skillInfoList = data.skillInfoList
  2133. }
  2134. // 外语语种
  2135. if (this.commonJS.isNotEmpty(data.languageInfoList)) {
  2136. this.languageInfoList = data.languageInfoList
  2137. }
  2138. // 家庭情况
  2139. if (this.commonJS.isNotEmpty(data.familyInfoList)) {
  2140. this.familyInfoList = data.familyInfoList
  2141. }
  2142. // 表彰与奖励
  2143. if (this.commonJS.isNotEmpty(data.rewardInfoList)) {
  2144. this.rewardInfoList = data.rewardInfoList
  2145. }
  2146. // 劳动合同
  2147. if (this.commonJS.isNotEmpty(data.laborContractInfoList)) {
  2148. this.laborContractInfoList = data.laborContractInfoList
  2149. }
  2150. if (this.commonJS.isEmpty(this.generalForm.idCardFront)) {
  2151. this.generalForm.idCardFront = []
  2152. }
  2153. if (this.commonJS.isEmpty(this.generalForm.idCardBack)) {
  2154. this.generalForm.idCardBack = []
  2155. }
  2156. this.certificateInfoList.forEach(temp => {
  2157. this.changeType(temp.type, temp)
  2158. })
  2159. this.activeNames[0] = this.eduInfoList.map(item => item.id)
  2160. this.activeNames[1] = this.workInfoList.map(item => item.id)
  2161. this.activeNames[2] = this.trainingInfoList.map(item => item.id)
  2162. this.activeNames[3] = this.certificateInfoList.map(item => item.id)
  2163. this.activeNames[4] = this.skillInfoList.map(item => item.id)
  2164. this.activeNames[5] = this.languageInfoList.map(item => item.id)
  2165. this.activeNames[6] = this.familyInfoList.map(item => item.id)
  2166. this.activeNames[7] = this.rewardInfoList.map(item => item.id)
  2167. this.activeNames[8] = this.laborContractInfoList.map(item => item.id)
  2168. //后面的fileType是限制上传类型
  2169. this.$refs.idCardFront.newUpload('edit', this.generalForm.idCardFront, 'idCard', null, null, null, null, null, [...this.fileType])
  2170. this.$refs.idCardBack.newUpload('edit', this.generalForm.idCardBack, 'idCard', null, null, null, null, null, [...this.fileType])
  2171. if (this.commonJS.isNotEmpty(this.generalForm.socialSecurityPictureFront)) {
  2172. await this.ossService.getTemporaryUrl(this.generalForm.socialSecurityPictureFront).then((data) => {
  2173. let file = {
  2174. url: data
  2175. }
  2176. this.fileList.push(file)
  2177. })
  2178. }
  2179. if (this.commonJS.isNotEmpty(this.generalForm.socialSecurityPictureOpposite)) {
  2180. await this.ossService.getTemporaryUrl(this.generalForm.socialSecurityPictureOpposite).then((data) => {
  2181. let file = {
  2182. url: data
  2183. }
  2184. this.fileList2.push(file)
  2185. })
  2186. }
  2187. if (this.commonJS.isNotEmpty(this.generalForm.accountHolderFront)) {
  2188. await this.ossService.getTemporaryUrl(this.generalForm.accountHolderFront).then((data) => {
  2189. console.log('data', data)
  2190. let file = {
  2191. url: data
  2192. }
  2193. this.bankFileList.push(file)
  2194. })
  2195. }
  2196. if (this.commonJS.isNotEmpty(this.generalForm.accountHolderOpposite)) {
  2197. console.log('123')
  2198. await this.ossService.getTemporaryUrl(this.generalForm.accountHolderOpposite).then((data) => {
  2199. let file = {
  2200. url: data
  2201. }
  2202. this.bankFileList2.push(file)
  2203. })
  2204. }
  2205. if (this.commonJS.isNotEmpty(this.generalForm.gsAccountHolderFront)) {
  2206. await this.ossService.getTemporaryUrl(this.generalForm.gsAccountHolderFront).then((data) => {
  2207. let file = {
  2208. url: data
  2209. }
  2210. this.gsFileList.push(file)
  2211. })
  2212. }
  2213. if (this.commonJS.isNotEmpty(this.generalForm.gsAccountHolderOpposite)) {
  2214. await this.ossService.getTemporaryUrl(this.generalForm.gsAccountHolderOpposite).then((data) => {
  2215. let file = {
  2216. url: data
  2217. }
  2218. this.gsFileList2.push(file)
  2219. })
  2220. }
  2221. if (this.generalForm.type == 5) {
  2222. roleService.list2(this.generalForm.department).then((data) => {
  2223. this.roleList = data
  2224. })
  2225. postService.list2(this.generalForm.department).then((data) => {
  2226. this.postList = data
  2227. })
  2228. }
  2229. this.loading = false
  2230. }).catch(err => {
  2231. this.loading = false;
  2232. })
  2233. },
  2234. initAudit(id) {
  2235. this.generalForm = {
  2236. id: '',
  2237. userId: '',
  2238. name: '', //姓名
  2239. sex: '', // 性别
  2240. age: '',//年龄
  2241. birthday: '',//生日
  2242. joinIndustryDate: null, // 参加工作日期
  2243. joinWorkDate: null, // 参加行业日期
  2244. politicalOutlook: '',//政治面貌
  2245. nativePlace: '',//籍贯
  2246. nation: '', //民族
  2247. maritalStatus: '',//婚姻
  2248. mobilePhone: '',//联系电话
  2249. idCard: '', //身份证
  2250. idCardFront: [],
  2251. idCardBack: [],
  2252. homeAddress: '',//家庭住址
  2253. permanentAddress: '',//常驻地址
  2254. email: "",
  2255. registrationId: "",
  2256. status: ""
  2257. }
  2258. this.generalForm.id = id
  2259. this.visible = true
  2260. this.loading = false
  2261. this.$nextTick(() => {
  2262. this.loading = true
  2263. enrollmentRegistrationService.findAuditInfoById(this.generalForm.id).then(async (data) => {
  2264. this.generalForm = this.recover(this.generalForm, data)
  2265. this.generalForm = JSON.parse(JSON.stringify(this.generalForm))
  2266. this.eduInfoList = data.eduInfoList
  2267. this.certificateInfoList = data.certificateInfoList
  2268. this.skillInfoList = data.skillInfoList
  2269. this.familyInfoList = data.familyInfoList
  2270. this.languageInfoList = data.languageInfoList
  2271. this.trainingInfoList = data.trainingInfoList
  2272. this.rewardInfoList = data.rewardInfoList
  2273. this.laborContractInfoList = data.laborContractInfoList
  2274. this.workInfoList = data.workInfoList
  2275. this.concatForm.email = data.email
  2276. this.activeNames[0] = this.eduInfoList.map(item => item.id)
  2277. this.activeNames[1] = this.workInfoList.map(item => item.id)
  2278. this.activeNames[2] = this.trainingInfoList.map(item => item.id)
  2279. this.activeNames[3] = this.certificateInfoList.map(item => item.id)
  2280. this.activeNames[4] = this.skillInfoList.map(item => item.id)
  2281. this.activeNames[5] = this.languageInfoList.map(item => item.id)
  2282. this.activeNames[6] = this.familyInfoList.map(item => item.id)
  2283. this.activeNames[7] = this.rewardInfoList.map(item => item.id)
  2284. this.activeNames[8] = this.laborContractInfoList.map(item => item.id)
  2285. if (this.commonJS.isEmpty(this.generalForm.idCardFront)) {
  2286. this.generalForm.idCardFront = []
  2287. }
  2288. if (this.commonJS.isEmpty(this.generalForm.idCardBack)) {
  2289. this.generalForm.idCardBack = []
  2290. }
  2291. //后面的fileType是限制上传类型
  2292. let method = ""
  2293. if (this.auditStatus == 2) {
  2294. method = "view"
  2295. }
  2296. if (this.auditStatus == 4) {
  2297. method = "edit"
  2298. }
  2299. this.certificateInfoList.forEach(temp => {
  2300. this.changeType(temp.type, temp)
  2301. })
  2302. this.$refs.idCardFront.newUpload(method, this.generalForm.idCardFront, 'idCard', null, null, null, null, null, [...this.fileType])
  2303. this.$refs.idCardBack.newUpload(method, this.generalForm.idCardBack, 'idCard', null, null, null, null, null, [...this.fileType])
  2304. this.loading = false
  2305. })
  2306. })
  2307. },
  2308. async submitGeneralForm() {
  2309. let valid = await this.$refs["generalForm"].validate();
  2310. if (valid) {
  2311. const loading = this.$loading();
  2312. let data = await userService.saveInfo(this.generalForm);
  2313. let { user } = await userService.info();
  2314. this.userInfo = user;
  2315. this.$TOOL.data.set("USER_INFO", user);
  2316. loading.close();
  2317. this.$message.success(data);
  2318. }
  2319. },
  2320. async submitConcatForm() {
  2321. // let valid = await this.$refs["concatForm"].validate();
  2322. // if (valid) {
  2323. const loading = this.$loading();
  2324. let data = await userService.saveInfo(this.concatForm);
  2325. let { user } = await userService.info();
  2326. this.userInfo = user;
  2327. // this.$TOOL.data.set("USER_INFO", user);
  2328. localStorage.setItem("USER_INFO", JSON.stringify(user))
  2329. loading.close();
  2330. // this.$message.success(data);
  2331. // }
  2332. },
  2333. async submitUserInfo() {
  2334. this.$confirm('确定提交审批吗?', '提示', {
  2335. confirmButtonText: '确定',
  2336. cancelButtonText: '取消',
  2337. type: 'warning'
  2338. }).then(() => {
  2339. if (this.$refs.idCardFront.checkProgress() || this.$refs.idCardBack.checkProgress()) {
  2340. return
  2341. }
  2342. if (this.$refs.idCardFront.getDataList().length == 0 || this.$refs.idCardBack.getDataList().length == 0) {
  2343. this.$message.error("请确保已完整上传身份证正反面照片,再进行提交")
  2344. return
  2345. }
  2346. // if (!this.generalForm.idCard || this.generalForm.idCard == "" || this.generalForm.idCard == null) {
  2347. // this.$message.error("身份证号码未填写")
  2348. // return
  2349. // }
  2350. this.$refs['generalForm'].validate((valid) => {
  2351. if (valid) {
  2352. this.loading = true
  2353. this.submitConcatForm()
  2354. this.submitPhotoForm()
  2355. this.generalForm.idCardFront = this.$refs.idCardFront.getDataList()
  2356. this.generalForm.idCardBack = this.$refs.idCardBack.getDataList()
  2357. this.generalForm.email = this.concatForm.email
  2358. this.generalForm.eduInfoList = this.eduInfoList
  2359. this.generalForm.workInfoList = this.workInfoList
  2360. this.generalForm.certificateInfoList = this.certificateInfoList
  2361. this.generalForm.skillInfoList = this.skillInfoList
  2362. this.generalForm.rewardInfoList = this.rewardInfoList
  2363. this.generalForm.familyInfoList = this.familyInfoList
  2364. this.generalForm.trainingInfoList = this.trainingInfoList
  2365. this.generalForm.languageInfoList = this.languageInfoList
  2366. enrollmentRegistrationService.updateInfoAudit(this.generalForm).then((data) => {
  2367. this.close()
  2368. this.$message.success(data.msg)
  2369. this.$refs.idCardBack.clearUpload()
  2370. this.$refs.idCardFront.clearUpload()
  2371. this.getDataInfo(this.userInfo.id)
  2372. this.loading = false
  2373. }).catch(() => {
  2374. this.loading = false
  2375. })
  2376. } else {
  2377. if (!this.generalForm.idCard || this.generalForm.idCard == "" || this.generalForm.idCard == null) {
  2378. this.$message.error("身份证号码未填写")
  2379. }
  2380. this.activeName = "basicInfo"
  2381. }
  2382. })
  2383. }).catch(() => {
  2384. });
  2385. },
  2386. close() {
  2387. this.$refs.generalForm.resetFields()
  2388. this.fileList = []
  2389. this.fileList2 = []
  2390. this.bankFileList = []
  2391. this.bankFileList2 = []
  2392. this.gsFileList = []
  2393. this.gsFileList2 = []
  2394. this.visible = false
  2395. },
  2396. async submitPhotoForm() {
  2397. const loading = this.$loading();
  2398. let data = await userService.saveInfo(this.photoForm);
  2399. let { user } = await userService.info();
  2400. this.userInfo = user;
  2401. this.$TOOL.data.set("USER_INFO", user);
  2402. loading.close();
  2403. // this.$message.success(data);
  2404. },
  2405. async submitPwdForm() {
  2406. console.log(this.pwdForm)
  2407. let valid = await this.$refs["pwdForm"].validate();
  2408. console.log(valid)
  2409. if (valid) {
  2410. const loading = this.$loading();
  2411. try {
  2412. let data = await userService.saveInfo(this.pwdForm); // 可能抛出错误的请求
  2413. // 更新用户信息
  2414. let { user } = await userService.info();
  2415. this.userInfo = user;
  2416. this.$TOOL.data.set("USER_INFO", user);
  2417. this.$message.success(data); // 成功信息提示
  2418. } catch (error) {
  2419. // 捕获请求中的异常
  2420. /*if (error.response && error.response.status === 400) {
  2421. // 使用后端返回的错误信息提示用户
  2422. this.$message.error(error.response.data); // 比如 "修改密码失败,旧密码错误!"
  2423. } else {
  2424. this.$message.error("请求失败,请稍后重试");
  2425. console.error("请求失败", error);
  2426. }*/
  2427. } finally {
  2428. loading.close(); // 确保 loading 状态关闭
  2429. }
  2430. }
  2431. }
  2432. ,
  2433. // 获取数据列表
  2434. refreshList() {
  2435. this.loading = true;
  2436. logService
  2437. .mine({
  2438. current: this.tablePage.currentPage,
  2439. size: this.tablePage.pageSize,
  2440. orders: this.tablePage.orders,
  2441. })
  2442. .then((data) => {
  2443. this.dataList = data.records;
  2444. this.tablePage.total = data.total;
  2445. this.loading = false;
  2446. });
  2447. },
  2448. changeLog(index) {
  2449. this.type = index;
  2450. this.refreshList();
  2451. },
  2452. // 当前页
  2453. currentChangeHandle({ currentPage, pageSize }) {
  2454. this.tablePage.currentPage = currentPage;
  2455. this.tablePage.pageSize = pageSize;
  2456. this.refreshList();
  2457. },
  2458. // 排序
  2459. sortChangeHandle(obj) {
  2460. this.tablePage.orders = [];
  2461. if (obj.order != null) {
  2462. this.tablePage.orders.push({
  2463. column:
  2464. obj.column.sortBy || this.$utils.toLine(obj.property),
  2465. asc: obj.order === "asc",
  2466. });
  2467. } else {
  2468. this.tablePage.orders = [
  2469. { column: "a.create_time", asc: false },
  2470. ];
  2471. }
  2472. this.refreshList();
  2473. },
  2474. //身份证号码唯一性判断
  2475. idCardOnly(idCard, id) {
  2476. enrollmentRegistrationService.findIdCardOnly(idCard, id).then((data) => {
  2477. if (data != 0) {
  2478. this.$message.error('身份证号码已存在,请重新确认')
  2479. this.generalForm.idCard = ''
  2480. throw new Error('身份证号码已存在,请重新确认')
  2481. } else {
  2482. let sex = null
  2483. let birth = null
  2484. let myDate = new Date()
  2485. let month = myDate.getMonth() + 1
  2486. let day = myDate.getDate()
  2487. let age = 0
  2488. if (idCard.length === 18) {
  2489. age = myDate.getFullYear() - idCard.substring(6, 10) - 1
  2490. sex = idCard.substring(16, 17)
  2491. birth = idCard.substring(6, 10) + '-' + idCard.substring(10, 12) + '-' + idCard.substring(12, 14)
  2492. // eslint-disable-next-line no-mixed-operators
  2493. if (idCard.substring(10, 12) < month || idCard.substring(10, 12) === month && idCard.substring(12, 14) <= day) age++
  2494. }
  2495. if (idCard.length === 15) {
  2496. age = myDate.getFullYear() - idCard.substring(6, 8) - 1901
  2497. sex = idCard.substring(13, 14)
  2498. birth = '19' + idCard.substring(6, 8) + '-' + idCard.substring(8, 10) + '-' + idCard.substring(10, 12)
  2499. // eslint-disable-next-line no-mixed-operators
  2500. if (idCard.substring(8, 10) < month || idCard.substring(8, 10) === month && idCard.substring(10, 12) <= day) age++
  2501. }
  2502. if (sex % 2 === 0) {
  2503. sex = '2' // 性别代码 1代表男,2代表女,暂时不涉及其他类型性别
  2504. } else {
  2505. sex = '1'
  2506. }
  2507. //获取户籍所在地
  2508. const regionCode = idCard.substring(0, 6);
  2509. this.generalForm.nativePlace = regionCode
  2510. this.generalForm.age = age
  2511. this.generalForm.sex = sex
  2512. this.generalForm.birthday = birth
  2513. return { age, sex, birth }
  2514. }
  2515. })
  2516. },
  2517. //联系电话唯一性判断
  2518. mobilePhoneOnly(mobilePhone) {
  2519. if (!this.validateXG.isPhoneOrMobile(mobilePhone)) {
  2520. this.$message.error('”联系电话“填写不正确,请重新填写')
  2521. this.loading = false
  2522. this.generalForm.mobilePhone = ''
  2523. throw new Error('”联系电话“填写不正确,请重新填写')
  2524. }
  2525. enrollmentRegistrationService.findMobilePhoneOnly(mobilePhone).then((data) => {
  2526. if (data !== 0) {
  2527. this.$message.error('联系电话已存在,请重新确认')
  2528. this.generalForm.mobilePhone = ''
  2529. throw new Error('联系电话已存在,请重新确认')
  2530. }
  2531. })
  2532. },
  2533. //邮箱验证
  2534. checkEmail(email) {
  2535. if (!this.validateXG.isEmail(email)) {
  2536. this.$message.error('邮箱格式不正确,请重新填写')
  2537. this.loading = false
  2538. this.concatForm.email = ''
  2539. throw new Error('邮箱格式不正确,请重新填写')
  2540. }
  2541. },
  2542. checkBankNumber(bankNumber, type) {
  2543. if (!this.validateXG.isBankNum(bankNumber)) {
  2544. if (type === 'zx') {
  2545. this.generalForm.zxBankCardNumber = ''
  2546. } else if (type === 'gs') {
  2547. this.generalForm.gsBankCardNumber = ''
  2548. } else {
  2549. this.$message.error('请输入正确的社保银行卡号')
  2550. this.generalForm.socialSecurityBankNumber = ''
  2551. throw new Error('请输入正确的社保银行卡号')
  2552. }
  2553. this.$message.error('请输入正确的银行卡号')
  2554. throw new Error('请输入正确的银行卡号')
  2555. }
  2556. },
  2557. handleAvatarSuccess(res, file, fileList, index, val) {
  2558. console.log('foleList', fileList)
  2559. if (val === 'front') {
  2560. this.generalForm.socialSecurityPictureFront = '/' + res.url
  2561. this.generalForm.socialSecurityPictureFrontUrl = res.lsUrl
  2562. console.log('res.url', res.url)
  2563. console.log('res.lsUrl', res.lsUrl)
  2564. }
  2565. this.hideUploadEdit = true
  2566. this.$forceUpdate()
  2567. },
  2568. handleAvatarSuccess2(res, file, fileList, index, val) {
  2569. console.log('foleList', fileList)
  2570. if (val === 'front') {
  2571. this.generalForm.socialSecurityPictureOpposite = '/' + res.url
  2572. this.generalForm.socialSecurityPictureOppositeUrl = res.lsUrl
  2573. }
  2574. this.hideUploadEdit = true
  2575. this.$forceUpdate()
  2576. },
  2577. onPreview(url) {
  2578. if (url !== '' && url !== undefined && url !== null) {
  2579. this.url = url
  2580. this.showViewer = true
  2581. }
  2582. },
  2583. checkIsPic(file) {
  2584. return this.commonJS.isPic(file)
  2585. },
  2586. validateInput() {
  2587. // 使用正则表达式验证输入内容,禁止中文
  2588. this.generalForm.socialSecurityNumber = this.generalForm.socialSecurityNumber.replace(/[\u4e00-\u9fa5]/g, '');
  2589. },
  2590. handleUploadSuccess(response, file, fileList) {
  2591. return this.handleAvatarSuccess(response, file, fileList, null, 'front')
  2592. },
  2593. handleUploadSuccess2(response, file, fileList) {
  2594. return this.handleAvatarSuccess2(response, file, fileList, null, 'front')
  2595. },
  2596. bankHandleUploadSuccess(response, file, fileList) {
  2597. return this.bankHandleAvatarSuccess(response, file, fileList, null, 'front')
  2598. },
  2599. bankHandleAvatarSuccess(res, file, fileList, index, val) {
  2600. if (val === 'front') {
  2601. this.generalForm.accountHolderFront = '/' + res.url
  2602. this.generalForm.accountHolderFrontUrl = res.lsUrl
  2603. }
  2604. this.bankHideUploadEdit = true
  2605. this.$forceUpdate()
  2606. },
  2607. bankHandlePictureCardPreview(file) {
  2608. this.generalForm.accountHolderFrontUrl = file.url
  2609. this.bankDialogVisible = true;
  2610. },
  2611. bankHandleDownload(file) {
  2612. let file2 = {
  2613. url: this.generalForm.accountHolderFront
  2614. }
  2615. toHref(file2)
  2616. },
  2617. bankHandleRemove(file, fileList) {
  2618. this.bankHideUploadEdit = false
  2619. // 如果需要删除图片信息,可以根据file或其他标识从相应的数据结构中删除信息
  2620. const fileIndex = this.bankFileList.indexOf(file);
  2621. if (fileIndex !== -1) {
  2622. this.bankFileList.splice(fileIndex, 1); // 从fileList中删除该图片信息
  2623. this.generalForm.accountHolderFront = ""
  2624. }
  2625. },
  2626. bankHandleUploadSuccess2(response, file, fileList) {
  2627. return this.bankHandleAvatarSuccess2(response, file, fileList, null, 'front')
  2628. },
  2629. bankHandleAvatarSuccess2(res, file, fileList, index, val) {
  2630. if (val === 'front') {
  2631. this.generalForm.accountHolderOpposite = '/' + res.url
  2632. this.generalForm.accountHolderOppositeUrl = res.lsUrl
  2633. }
  2634. this.bankHideUploadEdit2 = true
  2635. this.$forceUpdate()
  2636. },
  2637. bankHandlePictureCardPreview2(file) {
  2638. this.generalForm.accountHolderOppositeUrl = file.url
  2639. this.bankDialogVisible2 = true;
  2640. },
  2641. bankHandleDownload2(file) {
  2642. let file2 = {
  2643. url: this.generalForm.accountHolderOpposite
  2644. }
  2645. toHref(file2)
  2646. },
  2647. bankHandleRemove2(file, fileList) {
  2648. this.hideUploadEdit2 = false
  2649. // 如果需要删除图片信息,可以根据file或其他标识从相应的数据结构中删除信息
  2650. const fileIndex = this.bankFileList2.indexOf(file);
  2651. if (fileIndex !== -1) {
  2652. this.bankFileList2.splice(fileIndex, 1); // 从fileList中删除该图片信息
  2653. this.generalForm.accountHolderOpposite = ""
  2654. }
  2655. },
  2656. gsHandleUploadSuccess(response, file, fileList) {
  2657. return this.gsHandleAvatarSuccess(response, file, fileList, null, 'front')
  2658. },
  2659. gsHandleUploadSuccess2(response, file, fileList) {
  2660. return this.gsHandleAvatarSuccess2(response, file, fileList, null, 'front')
  2661. },
  2662. gsHandleAvatarSuccess(res, file, fileList, index, val) {
  2663. if (val === 'front') {
  2664. this.generalForm.gsAccountHolderFront = '/' + res.url
  2665. this.generalForm.gsAccountHolderFrontUrl = res.lsUrl
  2666. }
  2667. this.hideUploadEdit = true
  2668. this.$forceUpdate()
  2669. },
  2670. gsHandleAvatarSuccess2(res, file, fileList, index, val) {
  2671. if (val === 'front') {
  2672. this.generalForm.gsAccountHolderOpposite = '/' + res.url
  2673. this.generalForm.gsAccountHolderOppositeUrl = res.lsUrl
  2674. }
  2675. this.hideUploadEdit2 = true
  2676. this.$forceUpdate()
  2677. },
  2678. gsHandlePictureCardPreview(file) {
  2679. this.dialogImageUrl = file.url;
  2680. this.generalForm.gsAccountHolderFrontUrl = file.url
  2681. this.gsDialogVisible = true;
  2682. },
  2683. gsHandlePictureCardPreview2(file) {
  2684. this.generalForm.gsAccountHolderOppositeUrl = file.url
  2685. this.gsDialogVisible2 = true;
  2686. },
  2687. gsHandleDownload(file) {
  2688. let file2 = {
  2689. url: this.generalForm.gsAccountHolderFront
  2690. }
  2691. toHref(file2)
  2692. },
  2693. gsHandleDownload2(file) {
  2694. let file2 = {
  2695. url: this.generalForm.gsAccountHolderOpposite
  2696. }
  2697. toHref(file2)
  2698. },
  2699. gsHandleRemove(file, fileList) {
  2700. this.gsHideUploadEdit = false
  2701. // 如果需要删除图片信息,可以根据file或其他标识从相应的数据结构中删除信息
  2702. const fileIndex = this.gsFileList.indexOf(file);
  2703. if (fileIndex !== -1) {
  2704. this.gsFileList.splice(fileIndex, 1); // 从fileList中删除该图片信息
  2705. this.generalForm.gsAccountHolderFront = ""
  2706. }
  2707. },
  2708. gsHandleRemove2(file, fileList) {
  2709. this.gsHideUploadEdit2 = false
  2710. // 如果需要删除图片信息,可以根据file或其他标识从相应的数据结构中删除信息
  2711. const fileIndex = this.gsFileList2.indexOf(file);
  2712. if (fileIndex !== -1) {
  2713. this.gsFileList2.splice(fileIndex, 1); // 从fileList中删除该图片信息
  2714. this.generalForm.gsAccountHolderOpposite = ""
  2715. }
  2716. },
  2717. // 日期格式化
  2718. handleDateFormatter(dateStr) {
  2719. if (!dateStr) return ''; // 如果为空,返回空字符串
  2720. return dayjs(dateStr).format('YYYY年MM月DD日');
  2721. },
  2722. changeInfoList(index) {
  2723. this.changeFlag[index] = !this.changeFlag[index]
  2724. },
  2725. // 教育经历处理
  2726. handleEduInfoChange(val) {
  2727. console.log(val);
  2728. },
  2729. // 教育经历
  2730. addEdu() {
  2731. this.$refs.EducationInfo.init("add", null, this.userId)
  2732. },
  2733. editEdu(row) {
  2734. this.$refs.EducationInfo.init("edit", row, this.userId)
  2735. },
  2736. delEdu(id) {
  2737. this.$confirm('确定删除此条教育经历信息吗?', '提示', {
  2738. confirmButtonText: '确定',
  2739. cancelButtonText: '取消',
  2740. type: 'warning'
  2741. }).then(() => {
  2742. this.eduInfoList = this.eduInfoList.filter(item => item.id !== id)
  2743. }).catch(() => {
  2744. });
  2745. },
  2746. handleAddEduInfo(row) {
  2747. const { id } = row
  2748. let index = this.eduInfoList.findIndex(item => item.id === row.id)
  2749. if (index === -1) {
  2750. // 不存在就新增
  2751. this.eduInfoList.push(row)
  2752. } else {
  2753. // 存在就更新
  2754. this.eduInfoList[index] = row
  2755. this.eduInfoList[index].degreeFile = row.degreeFile
  2756. this.eduInfoList[index].educationFile = row.educationFile
  2757. }
  2758. if (!this.activeNames[0].includes(id)) {
  2759. this.activeNames[0].push(id);
  2760. }
  2761. this.uploadKey = Date.now().toString();
  2762. },
  2763. handleGetEduInfo() {
  2764. enrollmentRegistrationService.findEduInfo({
  2765. userId: this.userId
  2766. }).then(res => {
  2767. this.eduInfoList = res
  2768. })
  2769. },
  2770. // 工作经历处理
  2771. addWork() {
  2772. this.$refs.WorkInfo.init("add", null, this.userId)
  2773. },
  2774. editWork(row) {
  2775. this.$refs.WorkInfo.init("edit", row, this.userId)
  2776. },
  2777. delWork(id) {
  2778. this.$confirm('确定删除此条工作经历信息吗?', '提示', {
  2779. confirmButtonText: '确定',
  2780. cancelButtonText: '取消',
  2781. type: 'warning'
  2782. }).then(() => {
  2783. this.workInfoList = this.workInfoList.filter(item => item.id !== id)
  2784. }).catch(() => {
  2785. });
  2786. },
  2787. handleAddWorkInfo(row) {
  2788. const { id } = row
  2789. let index = this.workInfoList.findIndex(item => item.id === row.id)
  2790. if (index === -1) {
  2791. // 不存在就新增
  2792. this.workInfoList.push(row)
  2793. this.activeNames[1].push(row.id)
  2794. } else {
  2795. // 存在就更新
  2796. this.workInfoList[index] = row
  2797. }
  2798. if (!this.activeNames[1].includes(id)) {
  2799. this.activeNames[1].push(id);
  2800. }
  2801. this.uploadKey = Date.now().toString();
  2802. },
  2803. handleGetWorkInfo() {
  2804. enrollmentRegistrationService.findWorkInfo({
  2805. userId: this.userId
  2806. }).then(res => {
  2807. this.workInfoList = res
  2808. })
  2809. },
  2810. //培训经历处理
  2811. addTraining() {
  2812. this.$refs.TrainingInfo.init("add", null, this.userId)
  2813. },
  2814. editTraining(row) {
  2815. this.$refs.TrainingInfo.init("edit", row, this.userId)
  2816. },
  2817. delTraining(id) {
  2818. this.$confirm('确定删除此条培训经历信息吗?', '提示', {
  2819. confirmButtonText: '确定',
  2820. cancelButtonText: '取消',
  2821. type: 'warning'
  2822. }).then(() => {
  2823. this.trainingInfoList = this.trainingInfoList.filter(item => item.id !== id)
  2824. }).catch(() => {
  2825. });
  2826. },
  2827. handleAddTrainingInfo(row) {
  2828. const { id } = row;
  2829. let index = this.trainingInfoList.findIndex(item => item.id === row.id)
  2830. if (index === -1) {
  2831. // 不存在就新增
  2832. this.trainingInfoList.push(row)
  2833. } else {
  2834. // 存在就更新
  2835. this.trainingInfoList[index] = row
  2836. }
  2837. if (!this.activeNames[2].includes(id)) {
  2838. this.activeNames[2].push(id);
  2839. }
  2840. this.uploadKey = Date.now().toString();
  2841. },
  2842. handleGetTrainingInfo() {
  2843. enrollmentRegistrationService.findTrainingInfo({
  2844. userId: this.userId
  2845. }).then(res => {
  2846. this.trainingInfoList = res
  2847. })
  2848. },
  2849. //资质证书处理
  2850. addCertificate() {
  2851. this.$refs.certificateInfo.init("add", null, this.userId)
  2852. },
  2853. editCertificate(row) {
  2854. this.$refs.certificateInfo.init("edit", row, this.userId)
  2855. },
  2856. delCertificate(id) {
  2857. this.$confirm('确定删除此条执业资格证书信息吗?', '提示', {
  2858. confirmButtonText: '确定',
  2859. cancelButtonText: '取消',
  2860. type: 'warning'
  2861. }).then(() => {
  2862. this.certificateInfoList = this.certificateInfoList.filter(item => item.id !== id)
  2863. }).catch(() => {
  2864. });
  2865. },
  2866. handleAddCertificateInfo(row) {
  2867. const { id } = row
  2868. let index = this.certificateInfoList.findIndex(item => item.id === row.id)
  2869. if (index === -1) {
  2870. // 不存在就新增
  2871. this.certificateInfoList.push(row)
  2872. } else {
  2873. // 存在就更新
  2874. this.certificateInfoList[index] = row
  2875. }
  2876. if (!this.activeNames[3].includes(id)) {
  2877. this.activeNames[3].push(id);
  2878. }
  2879. this.uploadKey = Date.now().toString();
  2880. },
  2881. handleGetCertificateInfo() {
  2882. enrollmentRegistrationService.findCertificateInfo({
  2883. userId: this.userId
  2884. }).then(res => {
  2885. this.certificateInfoList = res
  2886. })
  2887. },
  2888. //职称证书处理
  2889. addSkill() {
  2890. this.$refs.skillInfo.init("add", null, this.userId)
  2891. },
  2892. editSkill(row) {
  2893. this.$refs.skillInfo.init("edit", row, this.userId)
  2894. },
  2895. delSkill(id) {
  2896. this.$confirm('确定删除此条职称证书信息吗?', '提示', {
  2897. confirmButtonText: '确定',
  2898. cancelButtonText: '取消',
  2899. type: 'warning'
  2900. }).then(() => {
  2901. this.skillInfoList = this.skillInfoList.filter(item => item.id !== id)
  2902. }).catch(() => {
  2903. });
  2904. },
  2905. handleAddSkillInfo(row) {
  2906. const { id } = row
  2907. let index = this.skillInfoList.findIndex(item => item.id === id)
  2908. if (index === -1) {
  2909. // 不存在就新增
  2910. this.skillInfoList.push(row)
  2911. } else {
  2912. // 存在就更新
  2913. this.skillInfoList[index] = row
  2914. }
  2915. if (!this.activeNames[4].includes(id)) {
  2916. this.activeNames[4].push(id);
  2917. }
  2918. this.uploadKey = Date.now().toString();
  2919. },
  2920. handleGetSkillInfo() {
  2921. enrollmentRegistrationService.findSkillInfo({
  2922. userId: this.userId
  2923. }).then(res => {
  2924. this.skillInfoList = res
  2925. })
  2926. },
  2927. //外语语种处理
  2928. addLanguage() {
  2929. this.$refs.languageInfo.init("add", null, this.userId)
  2930. },
  2931. editLanguage(row) {
  2932. this.$refs.languageInfo.init("edit", row, this.userId)
  2933. },
  2934. delLanguage(id) {
  2935. this.$confirm('确定删除此条外语语种信息吗?', '提示', {
  2936. confirmButtonText: '确定',
  2937. cancelButtonText: '取消',
  2938. type: 'warning'
  2939. }).then(() => {
  2940. this.languageInfoList = this.languageInfoList.filter(item => item.id !== id)
  2941. }).catch(() => {
  2942. });
  2943. },
  2944. handleAddLanguageInfo(row) {
  2945. const { id } = row
  2946. let index = this.languageInfoList.findIndex(item => item.id === id)
  2947. if (index === -1) {
  2948. // 不存在就新增
  2949. this.languageInfoList.push(row)
  2950. } else {
  2951. // 存在就更新
  2952. this.languageInfoList[index] = row
  2953. }
  2954. if (!this.activeNames[5].includes(id)) {
  2955. this.activeNames[5].push(id);
  2956. }
  2957. this.uploadKey = Date.now().toString();
  2958. },
  2959. handleGetLanguageInfo() {
  2960. enrollmentRegistrationService.findLanguageInfo({
  2961. userId: this.userId
  2962. }).then(res => {
  2963. this.languageInfoList = res
  2964. })
  2965. },
  2966. //家庭情况处理
  2967. addFamily() {
  2968. this.$refs.familyInfo.init("add", null, this.userId)
  2969. },
  2970. editFamily(row) {
  2971. this.$refs.familyInfo.init("edit", row, this.userId)
  2972. },
  2973. delFamily(id) {
  2974. this.$confirm('确定删除此条家庭情况信息吗?', '提示', {
  2975. confirmButtonText: '确定',
  2976. cancelButtonText: '取消',
  2977. type: 'warning'
  2978. }).then(() => {
  2979. this.familyInfoList = this.familyInfoList.filter(item => item.id !== id)
  2980. }).catch(() => {
  2981. });
  2982. },
  2983. handleAddFamilyInfo(row) {
  2984. const { id } = row
  2985. let index = this.familyInfoList.findIndex(item => item.id === row.id)
  2986. if (index === -1) {
  2987. // 不存在就新增
  2988. this.familyInfoList.push(row)
  2989. } else {
  2990. // 存在就更新
  2991. this.familyInfoList[index] = row
  2992. }
  2993. if (!this.activeNames[6].includes(id)) {
  2994. this.activeNames[6].push(id);
  2995. }
  2996. this.uploadKey = Date.now().toString();
  2997. },
  2998. handleGetFamilyInfo(row) {
  2999. enrollmentRegistrationService.findFamilyInfo({
  3000. userId: this.userId
  3001. }).then(res => {
  3002. this.familyInfoList = res
  3003. })
  3004. },
  3005. //表彰与奖励处理
  3006. addReward() {
  3007. this.$refs.rewardInfo.init("add", null, this.userId)
  3008. },
  3009. editReward(row) {
  3010. this.$refs.rewardInfo.init("edit", row, this.userId)
  3011. },
  3012. delReward(id) {
  3013. this.$confirm('确定删除此条奖项信息吗?', '提示', {
  3014. confirmButtonText: '确定',
  3015. cancelButtonText: '取消',
  3016. type: 'warning'
  3017. }).then(() => {
  3018. this.rewardInfoList = this.rewardInfoList.filter(item => item.id !== id)
  3019. }).catch(() => {
  3020. });
  3021. },
  3022. handleAddRewardInfo(row) {
  3023. const { id } = row
  3024. let index = this.rewardInfoList.findIndex(item => item.id === row.id)
  3025. if (index === -1) {
  3026. // 不存在就新增
  3027. this.rewardInfoList.push(row)
  3028. } else {
  3029. // 存在就更新
  3030. this.rewardInfoList[index] = row
  3031. }
  3032. if (!this.activeNames[7].includes(id)) {
  3033. this.activeNames[7].push(id);
  3034. }
  3035. this.uploadKey = Date.now().toString();
  3036. },
  3037. handleGetRewardInfo() {
  3038. enrollmentRegistrationService.findRewardInfo({
  3039. userId: this.userId
  3040. }).then(res => {
  3041. this.rewardInfoList = res
  3042. })
  3043. },
  3044. changeType(value, row) {
  3045. if (value === '1' || value === '2') {
  3046. let obj = this.$dictUtils.getDictList('sys_cert_profession_build').find(item => {
  3047. return item.value == row.profession
  3048. })
  3049. if (obj) {
  3050. row.profession = obj.label
  3051. }
  3052. } else if (value === '3' || value === '4') {
  3053. let obj = this.$dictUtils.getDictList('sys_cert_profession_cost').find(item => {
  3054. return item.value == row.profession
  3055. })
  3056. if (obj) {
  3057. row.profession = obj.label
  3058. }
  3059. } else if (value === '5') {
  3060. let obj = this.$dictUtils.getDictList('sys_cert_profession_supervision').find(item => {
  3061. return item.value == row.profession
  3062. })
  3063. if (obj) {
  3064. row.profession = obj.label
  3065. }
  3066. } else if (value === '6') {
  3067. let obj = this.$dictUtils.getDictList('sys_cert_profession_accounting').find(item => {
  3068. return item.value == row.profession
  3069. })
  3070. if (obj) {
  3071. row.profession = obj.label
  3072. }
  3073. }
  3074. },
  3075. handleRevoke() {
  3076. this.$confirm('确定要撤回审批吗?', '提示', {
  3077. confirmButtonText: '确定',
  3078. cancelButtonText: '取消',
  3079. type: 'warning'
  3080. }).then(() => {
  3081. this.loading = true
  3082. processService.revokeProcIns(this.procInsId).then(res => {
  3083. this.generalForm.idCardFront = this.$refs.idCardFront.getDataList()
  3084. this.generalForm.idCardBack = this.$refs.idCardBack.getDataList()
  3085. this.generalForm.email = this.concatForm.email
  3086. this.generalForm.eduInfoList = this.eduInfoList
  3087. this.generalForm.workInfoList = this.workInfoList
  3088. this.generalForm.certificateInfoList = this.certificateInfoList
  3089. this.generalForm.skillInfoList = this.skillInfoList
  3090. this.generalForm.rewardInfoList = this.rewardInfoList
  3091. this.generalForm.familyInfoList = this.familyInfoList
  3092. this.generalForm.trainingInfoList = this.trainingInfoList
  3093. this.generalForm.languageInfoList = this.languageInfoList
  3094. enrollmentRegistrationService.updateStatusByIdUserInfo(this.generalForm).then((data) => {
  3095. this.close()
  3096. this.$message.success(data.msg)
  3097. this.$refs.idCardBack.clearUpload()
  3098. this.$refs.idCardFront.clearUpload()
  3099. this.getDataInfo(this.userInfo.id)
  3100. this.loading = false
  3101. }).catch(() => {
  3102. this.loading = false
  3103. })
  3104. })
  3105. }).catch(() => {
  3106. this.loading = false
  3107. });
  3108. }
  3109. },
  3110. };
  3111. </script>
  3112. <style lang="less">
  3113. .userInfo {
  3114. padding: 8px 12px;
  3115. .aside {
  3116. width: 340px;
  3117. margin-right: 20px;
  3118. }
  3119. .el-card__header {
  3120. padding: calc(var(--el-card-padding) - 2px) var(--el-card-padding);
  3121. border-bottom: 1px solid var(--el-card-border-color);
  3122. box-sizing: border-box;
  3123. }
  3124. .person-bg {
  3125. color: rgb(24, 144, 255);
  3126. background-color: rgb(230, 247, 255);
  3127. width: 24px;
  3128. height: 24px;
  3129. border-radius: 50%;
  3130. text-align: center;
  3131. vertical-align: middle;
  3132. display: inline-block;
  3133. }
  3134. .person-text {
  3135. font-size: 15px;
  3136. margin-left: 5px;
  3137. font-weight: 400;
  3138. }
  3139. }
  3140. .adminui-topbar+.userInfo {
  3141. padding: 12px 12px 8px 12px;
  3142. }
  3143. /deep/ .el-collapse-item__header {
  3144. font-size: 16px !important;
  3145. order: -1;
  3146. }
  3147. .collapseTitle {
  3148. width: 100%;
  3149. display: flex;
  3150. align-items: center;
  3151. order: 1;
  3152. }
  3153. .card-info {
  3154. margin-bottom: 20px;
  3155. }
  3156. .star-require .el-form-item__label::before {
  3157. content: "*";
  3158. color: red;
  3159. }
  3160. </style>