TechnologyArchivesMain.vue 113 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976
  1. <template>
  2. <div class="layout_container">
  3. <header>
  4. <el-input v-model="text" class="w-50 m-2" style="width: 360px" placeholder="请输入工号/身份证号/姓名" clearable>
  5. <template #prepend>工号/身份证号/姓名 </template>
  6. </el-input>
  7. <el-button type="primary" icon="Search" @click="queryEmployeeInfo" style="margin-left: 10px">查询</el-button>
  8. <el-button type="primary" icon="Check" @click="submitForm(ruleFormRef)" style="margin-left: 10px">保存</el-button>
  9. <el-button type="primary" icon="Refresh" @click="resetForm(ruleFormRef)" style="margin-left: 10px">重置</el-button>
  10. <el-button type="primary" icon="Plus" @click="onAddItem" style="margin-left: 5px">新增记录</el-button>
  11. </header>
  12. <div class="layout_main">
  13. <el-tabs class="el-tabs__fill" v-model="editableTabsValue" type="border-card" @tab-click="handleClick">
  14. <el-tab-pane key="baseInfo" label="基本信息" name="baseInfo">
  15. <div class="layout_display_flex_y">
  16. <div class="layout_flex_1-y">
  17. <el-form ref="ruleFormRef" :rules="rulesInfo" label-width="134px" :model="baseInfoForm" class="demo-ruleForm" size="default">
  18. <el-row>
  19. <el-col :span="6">
  20. <el-form-item label="姓名" prop="name">
  21. <el-input v-model="baseInfoForm.name" maxlength="20" show-word-limit placeholder="请填写姓名"/>
  22. </el-form-item>
  23. </el-col>
  24. <el-col :span="6">
  25. <el-form-item label="性别" prop="sex">
  26. <el-select v-model="baseInfoForm.sex" placeholder="请选择性别" filterable clearable style="width: 100%">
  27. <el-option v-for="item in dictData.sex" :key="item.code" :label="item.name" :value="item.code">
  28. <span style="float: left">{{ item.name }}</span>
  29. <span style="float: right; color: var(--el-text-color-secondary); font-size: 13px;">
  30. {{ item.code }}
  31. </span>
  32. </el-option>
  33. </el-select>
  34. </el-form-item>
  35. </el-col>
  36. <el-col :span="6">
  37. <el-form-item label="身份证号" prop="socialNo">
  38. <el-input v-model="baseInfoForm.socialNo" maxlength="20" show-word-limit placeholder="请填写身份证号" @change="birthdayFormat"/>
  39. </el-form-item>
  40. </el-col>
  41. <el-col :span="6">
  42. <el-form-item label="出生年月" prop="birthday">
  43. <el-date-picker v-model="baseInfoForm.birthday" type="month" aria-label="出生年月"
  44. value-format="YYYY-MM" placeholder="请选择出生年月" style="width: 100%"/>
  45. </el-form-item>
  46. </el-col>
  47. </el-row>
  48. <el-row>
  49. <el-col :span="6">
  50. <el-form-item label="民族" prop="nation">
  51. <el-select v-model="baseInfoForm.nation" placeholder="请选择民族" filterable clearable style="width: 100%">
  52. <el-option v-for="item in dictData.nation" :key="item.code" :label="item.name" :value="item.code">
  53. <span style="float: left">{{ item.name }}</span>
  54. <span style="float: right; color: var(--el-text-color-secondary); font-size: 13px;">
  55. {{ item.code }}
  56. </span>
  57. </el-option>
  58. </el-select>
  59. </el-form-item>
  60. </el-col>
  61. <el-col :span="6">
  62. <el-form-item label="籍贯" prop="nativePlace">
  63. <el-select v-model="baseInfoForm.nativePlace" placeholder="请选择籍贯" filterable clearable style="width: 100%">
  64. <el-option v-for="item in dictData.city" :key="item.code" :label="item.name" :value="item.code">
  65. <span style="float: left">{{ item.name }}</span>
  66. <span style="float: right; color: var(--el-text-color-secondary); font-size: 13px;">
  67. {{ item.code }}
  68. </span>
  69. </el-option>
  70. </el-select>
  71. </el-form-item>
  72. </el-col>
  73. <el-col :span="6">
  74. <el-form-item label="政治面貌" prop="politicCountenance">
  75. <el-select v-model="baseInfoForm.politicCountenance" placeholder="请选择政治面貌" filterable clearable style="width: 100%">
  76. <el-option v-for="item in dictData.political" :key="item.code" :label="item.name" :value="item.code">
  77. <span style="float: left">{{ item.name }}</span>
  78. <span style="float: right; color: var(--el-text-color-secondary); font-size: 13px;">
  79. {{ item.code }}
  80. </span>
  81. </el-option>
  82. </el-select>
  83. </el-form-item>
  84. </el-col>
  85. <el-col :span="6">
  86. <el-form-item label="最高学历" prop="education">
  87. <el-select v-model="baseInfoForm.education" placeholder="请选择最高学历" filterable clearable style="width: 100%">
  88. <el-option v-for="item in dictData.education" :key="item.code" :label="item.name" :value="item.code">
  89. <span style="float: left">{{ item.name }}</span>
  90. <span style="float: right; color: var(--el-text-color-secondary); font-size: 13px;">
  91. {{ item.code }}
  92. </span>
  93. </el-option>
  94. </el-select>
  95. </el-form-item>
  96. </el-col>
  97. </el-row>
  98. <el-row>
  99. <el-col :span="6">
  100. <el-form-item label="专业" prop="speciality">
  101. <el-input v-model="baseInfoForm.speciality" maxlength="40" show-word-limit placeholder="请填写专业"/>
  102. </el-form-item>
  103. </el-col>
  104. <el-col :span="6">
  105. <el-form-item label="毕业学校" prop="graduationSchool">
  106. <el-input v-model="baseInfoForm.graduationSchool" maxlength="40" show-word-limit placeholder="请填写毕业学校" />
  107. </el-form-item>
  108. </el-col>
  109. <el-col :span="6">
  110. <el-form-item label="参加工作时间" prop="firstWorktime">
  111. <el-date-picker v-model="baseInfoForm.firstWorktime" type="month" aria-label="参加工作时间"
  112. value-format="YYYY-MM" placeholder="请选择参加工作时间" style="width: 100%"/>
  113. </el-form-item>
  114. </el-col>
  115. <el-col :span="6">
  116. <el-form-item label="职务" prop="position">
  117. <el-select v-model="baseInfoForm.position" placeholder="请选择职务" filterable clearable style="width: 100%">
  118. <el-option v-for="item in dictData.title" :key="item.code" :label="item.name" :value="item.code">
  119. <span style="float: left">{{ item.name }}</span>
  120. <span style="float: right; color: var(--el-text-color-secondary); font-size: 13px;">
  121. {{ item.code }}
  122. </span>
  123. </el-option>
  124. </el-select>
  125. </el-form-item>
  126. </el-col>
  127. </el-row>
  128. <el-row>
  129. <el-col :span="12">
  130. <el-form-item label="现住地址" prop="address">
  131. <el-input v-model="baseInfoForm.address" maxlength="64" show-word-limit placeholder="请填写现住地址"/>
  132. </el-form-item>
  133. </el-col>
  134. <el-col :span="6">
  135. <el-form-item label="健康状况" prop="healthCondition">
  136. <el-input v-model="baseInfoForm.healthCondition" maxlength="12" show-word-limit placeholder="请填写健康状况" />
  137. </el-form-item>
  138. </el-col>
  139. <el-col :span="6">
  140. <el-form-item label="联系电话" prop="phone">
  141. <el-input v-model="baseInfoForm.phone" maxlength="20" show-word-limit placeholder="请填写联系电话" />
  142. </el-form-item>
  143. </el-col>
  144. </el-row>
  145. <el-row>
  146. <el-col :span="6">
  147. <el-form-item label="医师资格证书编码" prop="physicianCertificate">
  148. <el-input v-model="baseInfoForm.physicianCertificate" maxlength="40" show-word-limit placeholder="请填写医师资格证书编码"/>
  149. </el-form-item>
  150. </el-col>
  151. <el-col :span="6">
  152. <el-form-item label="获取时间" prop="physicianCertificateTime">
  153. <el-date-picker v-model="baseInfoForm.physicianCertificateTime" type="date" aria-label="获取时间"
  154. value-format="YYYY-MM-DD" placeholder="请选择获取时间" style="width: 100%"/>
  155. </el-form-item>
  156. </el-col>
  157. <el-col :span="6">
  158. <el-form-item label="医师执业证书编码" prop="physicianPracticingCertificate">
  159. <el-input v-model="baseInfoForm.physicianPracticingCertificate" maxlength="40" show-word-limit placeholder="请填写医师执业证书编码"/>
  160. </el-form-item>
  161. </el-col>
  162. <el-col :span="6">
  163. <el-form-item label="获取时间" prop="physicianPracticingCertificateTime">
  164. <el-date-picker v-model="baseInfoForm.physicianPracticingCertificateTime" type="date" aria-label="获取时间"
  165. value-format="YYYY-MM-DD" placeholder="请选择获取时间" style="width: 100%"/>
  166. </el-form-item>
  167. </el-col>
  168. </el-row>
  169. </el-form>
  170. <el-divider>
  171. <el-icon><star-filled /></el-icon><b style="color: #0d84ff">技术档案填写说明</b><el-icon><star-filled /></el-icon>
  172. </el-divider>
  173. <ol class="numbered-list">
  174. <li>
  175. <el-text class="mx-1" type="danger" style="font-size: 1.2em">
  176. 本表主要供与本院有正式劳动关系的专业技术人员建立专业技术档案使用;照片贴二寸正面彩色免冠近照。
  177. </el-text>
  178. </li>
  179. <li>
  180. <el-text class="mx-1" type="danger" style="font-size: 1.2em">
  181. 填写人员必须实事求是,填写时一律用钢笔或黑色签字笔(可交打印版),字迹要清楚端正。
  182. </el-text>
  183. </li>
  184. <li>
  185. <el-text class="mx-1" type="danger" style="font-size: 1.2em">
  186. 建档时间为到本单位工作的时间。
  187. </el-text>
  188. </li>
  189. <li>
  190. <el-text class="mx-1" type="danger" style="font-size: 1.2em">
  191. 学历栏一律按最高学历填写(包括自考、成教等形式获得的学历均可)。
  192. </el-text>
  193. </li>
  194. <li>
  195. <el-text class="mx-1" type="danger" style="font-size: 1.2em">
  196. 取得医师资格证书和执业证书时间以证书上标注的发证时间为准。
  197. </el-text>
  198. </li>
  199. <li>
  200. <el-text class="mx-1" type="danger" style="font-size: 1.2em">
  201. 专业技术职务晋升情况从初级(师/士)开始填写。
  202. </el-text>
  203. </li>
  204. <li>
  205. <el-text class="mx-1" type="danger" style="font-size: 1.2em">
  206. 其它资格证书取得情况主要填写与本专业工作相关的证书。
  207. </el-text>
  208. </li>
  209. <li>
  210. <el-text class="mx-1" type="danger" style="font-size: 1.2em">
  211. 工作经历指从毕业后参加工作开始计算,包括工作满两个月以上的所有工作单位(转科医师的转科经历也需要填写)。
  212. </el-text>
  213. </li>
  214. <li>
  215. <el-text class="mx-1" type="danger" style="font-size: 1.2em">
  216. 个人学习经历从医学相关专业的初始学历开始填写;进修只包括一月以上脱产进修,参加学术会议等不算在此类。
  217. </el-text>
  218. </li>
  219. <li>
  220. <el-text class="mx-1" type="danger" style="font-size: 1.2em">
  221. 所有的资格证书、发表的论文、著作等,均需向医务部提交复印件或电子扫描版本存档。
  222. </el-text>
  223. </li>
  224. <li>
  225. <el-text class="mx-1" type="danger" style="font-size: 1.2em">
  226. 表10、14由医务部填写,其他均由建档本人填写完整。
  227. </el-text>
  228. </li>
  229. </ol>
  230. </div>
  231. </div>
  232. </el-tab-pane>
  233. <el-tab-pane key="firstInfo" label="专业技术职称晋升情况" name="firstInfo">
  234. <div class="layout_display_flex_y">
  235. <div class="layout_flex_1-y">
  236. <el-table :data="firstData" border style="width: 100%; height: 100%" stripe highlight-current-row :key="firstKey">
  237. <el-table-column type="index" label="序号" width="100" />
  238. <el-table-column prop="socialNo" label="身份证号" width="200">
  239. <template v-slot="scope">
  240. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.socialNo"></el-input>
  241. <span v-else>{{ scope.row.socialNo }}</span>
  242. </template>
  243. </el-table-column>
  244. <el-table-column prop="getTime" label="批准时间" width="200">
  245. <template v-slot="scope">
  246. <el-date-picker v-if="scope.row.isEdit" v-model="scope.row.getTime" type="date" style="width: 100%"
  247. format="YYYY-MM-DD" value-format="YYYY-MM-DD"/>
  248. <span v-else>{{ scope.row.getTime }}</span>
  249. </template>
  250. </el-table-column>
  251. <el-table-column prop="title" label="技术职称" width="280">
  252. <template v-slot="scope">
  253. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.title"></el-input>
  254. <span v-else>{{ scope.row.title }}</span>
  255. </template>
  256. </el-table-column>
  257. <el-table-column prop="issuingAuthority" label="批准机关" width="280">
  258. <template v-slot="scope">
  259. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.issuingAuthority"></el-input>
  260. <span v-else>{{ scope.row.issuingAuthority }}</span>
  261. </template>
  262. </el-table-column>
  263. <el-table-column prop="image" label="图片链接">
  264. <template v-slot="scope">
  265. <!-- <el-input size="small" v-model="scope.row.image"></el-input>-->
  266. <div v-if="scope.row.isEdit" stylr="display:flex;">
  267. <el-upload
  268. ref="upload"
  269. v-model:file-list="fileList"
  270. list-type="picture-card"
  271. :action="apiUrl + `/technologyArchives/putCertificateImage?getTime=` + scope.row.getTime"
  272. :headers="header"
  273. :on-success="uploadSuccess"
  274. :on-preview="handlePreview"
  275. :on-remove="handleRemove"
  276. :before-upload="beforeUpload"
  277. :auto-upload="false"
  278. :multiple
  279. :show-file-list="true"
  280. >
  281. <el-icon> <Plus /></el-icon>
  282. </el-upload>
  283. <el-button style="margin-top: 10px" type="success" icon="Upload" @click="submitUpload(scope.row)">上传到服务器</el-button>
  284. <el-dialog width="75%" v-model="dialogVisible">
  285. <img width="100%" :src="dialogImageUrl" />
  286. </el-dialog>
  287. </div>
  288. <!-- <span v-else>{{ scope.row.image }}</span> -->
  289. <div v-else class="demo-image__preview">
  290. <el-image
  291. style="width: 100px; height: 100px"
  292. :src="url"
  293. :zoom-rate="1.2"
  294. :max-scale="7"
  295. :min-scale="0.2"
  296. :preview-src-list="srcList"
  297. fit="cover"
  298. />
  299. </div>
  300. </template>
  301. </el-table-column>
  302. <el-table-column fixed="right" label="操作" min-width="180" width="180" center>
  303. <template #default="scope">
  304. <el-button type="primary" size="small" v-if="!scope.row.isEdit"
  305. @click="editFirstInfo(scope.row)">编辑</el-button>
  306. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  307. @click="updateFirstInfo(scope.row)">保存</el-button>
  308. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  309. @click="cancelFirstInfo(scope.row, scope.$index)">取消
  310. </el-button>
  311. <el-button type="danger" size="small"
  312. @click.prevent="deleteFirstInfo(scope.row)">
  313. 删除
  314. </el-button>
  315. </template>
  316. </el-table-column>
  317. </el-table>
  318. </div>
  319. </div>
  320. </el-tab-pane>
  321. <el-tab-pane key="secondInfo" label="其它资格证书取得情况" name="secondInfo">
  322. <div class="layout_display_flex_y">
  323. <div class="layout_flex_1-y">
  324. <el-table :data="secondData" border style="width: 100%; height: 100%" stripe highlight-current-row :key="secondKey">
  325. <el-table-column type="index" label="排序" width="80" />
  326. <el-table-column prop="no" label="序号" width="80">
  327. <template v-slot="scope">
  328. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.no"></el-input>
  329. <span v-else>{{ scope.row.no }}</span>
  330. </template>
  331. </el-table-column>
  332. <el-table-column prop="socialNo" label="身份证号" width="180">
  333. <template v-slot="scope">
  334. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.socialNo"></el-input>
  335. <span v-else>{{ scope.row.socialNo }}</span>
  336. </template>
  337. </el-table-column>
  338. <el-table-column prop="name" label="证书名称" width="180">
  339. <template v-slot="scope">
  340. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.name"></el-input>
  341. <span v-else>{{ scope.row.name }}</span>
  342. </template>
  343. </el-table-column>
  344. <el-table-column prop="number" label="证书编号" width="180">
  345. <template v-slot="scope">
  346. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.number"></el-input>
  347. <span v-else>{{ scope.row.number }}</span>
  348. </template>
  349. </el-table-column>
  350. <el-table-column prop="getTime" label="取得时间" width="200">
  351. <template v-slot="scope">
  352. <el-date-picker v-if="scope.row.isEdit" v-model="scope.row.getTime" type="date" style="width: 100%"
  353. format="YYYY-MM-DD" value-format="YYYY-MM-DD"/>
  354. <span v-else>{{ scope.row.getTime }}</span>
  355. </template>
  356. </el-table-column>
  357. <el-table-column prop="comment" label="备注" width="280">
  358. <template v-slot="scope">
  359. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.comment"></el-input>
  360. <span v-else>{{ scope.row.comment }}</span>
  361. </template>
  362. </el-table-column>
  363. <el-table-column prop="image" label="图片链接">
  364. <template v-slot="scope">
  365. <!-- <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.image"></el-input> -->
  366. <div v-if="scope.row.isEdit">
  367. <el-upload
  368. class="upload-demo"
  369. ref="upload"
  370. :action="apiUrl + '/technologyArchives/putProImage'"
  371. :headers="header"
  372. :file-list="fileList"
  373. :data="{ socialNo: scope.row.socialNo }"
  374. :on-success="uploadSuccess"
  375. :auto-upload="false"
  376. >
  377. <template #trigger>
  378. <el-button type="primary" icon="Picture">选取文件</el-button>
  379. </template>
  380. <el-button style="margin-left: 10px" type="success" icon="Upload" @click="submitUpload">上传到服务器</el-button>
  381. </el-upload>
  382. </div>
  383. <span v-else>{{ scope.row.image }}</span>
  384. </template>
  385. </el-table-column>
  386. <el-table-column fixed="right" label="操作" min-width="180" width="180" center>
  387. <template #default="scope">
  388. <el-button type="primary" size="small" v-if="!scope.row.isEdit"
  389. @click="editSecondInfo(scope.row)">编辑</el-button>
  390. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  391. @click="updateSecondInfo(scope.row)">保存</el-button>
  392. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  393. @click="cancelSecondInfo(scope.row, scope.$index)">取消
  394. </el-button>
  395. <el-button type="danger" size="small" @click.prevent="deleteSecondInfo(scope.row)">
  396. 删除</el-button>
  397. </template>
  398. </el-table-column>
  399. </el-table>
  400. </div>
  401. </div>
  402. </el-tab-pane>
  403. <el-tab-pane key="thirdInfo" label="工作经历" name="thirdInfo">
  404. <div class="layout_display_flex_y">
  405. <div class="layout_flex_1-y">
  406. <el-table :data="thirdData" border style="width: 100%; height: 100%" stripe highlight-current-row :key="thirdKey">
  407. <el-table-column type="index" prop="no" label="序号" width="80" />
  408. <el-table-column prop="id" label="id号" width="80" v-if="false"/>
  409. <el-table-column prop="socialNo" label="身份证号" width="180">
  410. <template v-slot="scope">
  411. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.socialNo"></el-input>
  412. <span v-else>{{ scope.row.socialNo }}</span>
  413. </template>
  414. </el-table-column>
  415. <el-table-column prop="beginTime" label="开始时间" width="200">
  416. <template v-slot="scope">
  417. <el-date-picker v-if="scope.row.isEdit" v-model="scope.row.beginTime" type="date" style="width: 100%"
  418. format="YYYY-MM-DD" value-format="YYYY-MM-DD"/>
  419. <span v-else>{{ scope.row.beginTime }}</span>
  420. </template>
  421. </el-table-column>
  422. <el-table-column prop="endTime" label="结束时间" width="200">
  423. <template v-slot="scope">
  424. <el-date-picker v-if="scope.row.isEdit" v-model="scope.row.endTime" type="date" style="width: 100%"
  425. format="YYYY-MM-DD" value-format="YYYY-MM-DD"/>
  426. <span v-else>{{ scope.row.endTime }}</span>
  427. </template>
  428. </el-table-column>
  429. <el-table-column prop="unit" label="单位" width="180">
  430. <template v-slot="scope">
  431. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.unit"></el-input>
  432. <span v-else>{{ scope.row.unit }}</span>
  433. </template>
  434. </el-table-column>
  435. <el-table-column prop="title" label="技术职务" width="180">
  436. <template #header>
  437. <span>技术职务</span>
  438. <el-tooltip class="box-item" effect="dark" placement="top">
  439. <template #content>注:<br />技术职务临床医师写见习医师、住院医师、主治医师、副主任医师、主任医师,各医技科室参照写。</template>
  440. <el-icon color="red" size="14"><QuestionFilled /></el-icon>
  441. </el-tooltip>
  442. </template>
  443. <template v-slot="scope">
  444. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.title"></el-input>
  445. <span v-else>{{ scope.row.title }}</span>
  446. </template>
  447. </el-table-column>
  448. <el-table-column prop="workTime" label="受聘时间" width="200">
  449. <template v-slot="scope">
  450. <el-date-picker v-if="scope.row.isEdit" v-model="scope.row.workTime" type="date" style="width: 100%"
  451. format="YYYY-MM-DD" value-format="YYYY-MM-DD"/>
  452. <span v-else>{{ scope.row.workTime }}</span>
  453. </template>
  454. </el-table-column>
  455. <el-table-column prop="speciality" label="专业">
  456. <template v-slot="scope">
  457. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.speciality"></el-input>
  458. <span v-else>{{ scope.row.speciality }}</span>
  459. </template>
  460. </el-table-column>
  461. <el-table-column fixed="right" label="操作" min-width="180" width="180" center>
  462. <template #default="scope">
  463. <el-button type="primary" size="small" v-if="!scope.row.isEdit"
  464. @click="editThirdInfo(scope.row)">编辑</el-button>
  465. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  466. @click="updateThirdInfo(scope.row)">保存</el-button>
  467. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  468. @click="cancelThirdInfo(scope.row, scope.$index)">取消
  469. </el-button>
  470. <el-button type="danger" size="small" @click.prevent="deleteThirdInfo(scope.row)">
  471. 删除</el-button>
  472. </template>
  473. </el-table-column>
  474. </el-table>
  475. </div>
  476. </div>
  477. </el-tab-pane>
  478. <el-tab-pane key="fourthInfo" label="学习培训情况" name="fourthInfo">
  479. <div class="layout_display_flex_y">
  480. <div class="layout_flex_1-y">
  481. <el-table :data="fourthData" border style="width: 100%; height: 100%" stripe highlight-current-row :key="fourthKey">
  482. <el-table-column type="index" prop="no" label="序号" width="80" />
  483. <el-table-column prop="id" label="id号" width="80" v-if="false"/>
  484. <el-table-column prop="socialNo" label="身份证号" width="180">
  485. <template v-slot="scope">
  486. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.socialNo"></el-input>
  487. <span v-else>{{ scope.row.socialNo }}</span>
  488. </template>
  489. </el-table-column>
  490. <el-table-column prop="beginTime" label="开始时间" width="200">
  491. <template v-slot="scope">
  492. <el-date-picker v-if="scope.row.isEdit" v-model="scope.row.beginTime" type="date" style="width: 100%"
  493. format="YYYY-MM-DD" value-format="YYYY-MM-DD"/>
  494. <span v-else>{{ scope.row.beginTime }}</span>
  495. </template>
  496. </el-table-column>
  497. <el-table-column prop="endTime" label="结束时间" width="200">
  498. <template v-slot="scope">
  499. <el-date-picker v-if="scope.row.isEdit" v-model="scope.row.endTime" type="date" style="width: 100%"
  500. format="YYYY-MM-DD" value-format="YYYY-MM-DD"/>
  501. <span v-else>{{ scope.row.endTime }}</span>
  502. </template>
  503. </el-table-column>
  504. <el-table-column prop="learningStyle" label="学习方式" width="180">
  505. <template v-slot="scope">
  506. <div v-if="scope.row.isEdit">
  507. <el-select v-model="scope.row.learningStyle" clearable placeholder="请选择学习方式">
  508. <el-option v-for="option in learnOptions" :key="option.code" :label="option.name"
  509. :value="option.code"></el-option>
  510. </el-select>
  511. </div>
  512. <div v-else>
  513. <el-select v-model="scope.row.learningStyle" disabled placeholder="请选择学习方式">
  514. <el-option v-for="option in learnOptions" :key="option.code" :label="option.name"
  515. :value="option.code"></el-option>
  516. </el-select>
  517. </div>
  518. </template>
  519. </el-table-column>
  520. <el-table-column prop="learningContent" label="学习内容" show-overflow-tooltip>
  521. <template v-slot="scope">
  522. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.learningContent"></el-input>
  523. <span v-else>{{ scope.row.learningContent }}</span>
  524. </template>
  525. </el-table-column>
  526. <el-table-column prop="learningUnit" label="主办(进修)单位" width="200">
  527. <template v-slot="scope">
  528. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.learningUnit"></el-input>
  529. <span v-else>{{ scope.row.learningUnit }}</span>
  530. </template>
  531. </el-table-column>
  532. <el-table-column fixed="right" label="操作" min-width="180" width="180" center>
  533. <template #default="scope">
  534. <el-button type="primary" size="small" v-if="!scope.row.isEdit"
  535. @click="editFourthInfo(scope.row)">编辑</el-button>
  536. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  537. @click="updateFourthInfo(scope.row)">保存</el-button>
  538. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  539. @click="cancelFourthInfo(scope.row, scope.$index)">取消</el-button>
  540. <el-button type="danger" size="small" @click.prevent="deleteFourthInfo(scope.row)">
  541. 删除</el-button>
  542. </template>
  543. </el-table-column>
  544. </el-table>
  545. </div>
  546. </div>
  547. </el-tab-pane>
  548. <el-tab-pane key="fifthInfo" label="发表论文专著情况" name="fifthInfo">
  549. <div class="layout_display_flex_y">
  550. <div class="layout_flex_1-y">
  551. <el-table :data="fifthData" border style="width: 100%; height: 100%" stripe highlight-current-row :key="fifthKey">
  552. <el-table-column type="index" prop="no" label="序号" width="80" />
  553. <el-table-column prop="socialNo" label="身份证号" width="180">
  554. <template v-slot="scope">
  555. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.socialNo"></el-input>
  556. <span v-else>{{ scope.row.socialNo }}</span>
  557. </template>
  558. </el-table-column>
  559. <el-table-column prop="time" label="发表时间" width="200">
  560. <template v-slot="scope">
  561. <el-date-picker v-if="scope.row.isEdit" v-model="scope.row.time" type="date" style="width: 100%"
  562. format="YYYY-MM-DD" value-format="YYYY-MM-DD"/>
  563. <span v-else>{{ scope.row.time }}</span>
  564. </template>
  565. </el-table-column>
  566. <el-table-column prop="topic" label="发表论文或专著题目" width="300" show-overflow-tooltip>
  567. <template #header>
  568. <span>发表论文或专著题目</span>
  569. <el-tooltip class="box-item" effect="dark" placement="top">
  570. <template #content>注:<br />至少是近五年内发表的论文、专著,为第一作者。</template>
  571. <el-icon color="red" size="14"><QuestionFilled /></el-icon>
  572. </el-tooltip>
  573. </template>
  574. <template v-slot="scope">
  575. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.topic"></el-input>
  576. <span v-else>{{ scope.row.topic }}</span>
  577. </template>
  578. </el-table-column>
  579. <el-table-column prop="periodical" label="期刊名称" width="300" show-overflow-tooltip>
  580. <template v-slot="scope">
  581. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.periodical"></el-input>
  582. <span v-else>{{ scope.row.periodical }}</span>
  583. </template>
  584. </el-table-column>
  585. <el-table-column prop="awards" label="获奖情况" show-overflow-tooltip>
  586. <template v-slot="scope">
  587. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.awards"></el-input>
  588. <span v-else>{{ scope.row.awards }}</span>
  589. </template>
  590. </el-table-column>
  591. <el-table-column fixed="right" label="操作" min-width="180" width="180" center>
  592. <template #default="scope">
  593. <el-button type="primary" size="small" v-if="!scope.row.isEdit"
  594. @click="editFifthInfo(scope.row)">编辑</el-button>
  595. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  596. @click="updateFifthInfo(scope.row)">保存</el-button>
  597. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  598. @click="cancelFifthInfo(scope.row, scope.$index)">取消</el-button>
  599. <el-button type="danger" size="small" @click.prevent="deleteFifthInfo(scope.row)">
  600. 删除</el-button>
  601. </template>
  602. </el-table-column>
  603. </el-table>
  604. </div>
  605. </div>
  606. </el-tab-pane>
  607. <el-tab-pane key="sixthInfo" label="科研情况" name="sixthInfo">
  608. <div class="layout_display_flex_y">
  609. <div class="layout_flex_1-y">
  610. <el-table :data="sixthData" border style="width: 100%; height: 100%" stripe highlight-current-row :key="sixthKey">
  611. <el-table-column type="index" prop="no" label="序号" width="80" />
  612. <el-table-column prop="id" label="id号" width="80" v-if="false"/>
  613. <el-table-column prop="socialNo" label="身份证号" width="180">
  614. <template v-slot="scope">
  615. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.socialNo"></el-input>
  616. <span v-else>{{ scope.row.socialNo }}</span>
  617. </template>
  618. </el-table-column>
  619. <el-table-column prop="time" label="立项时间" width="200">
  620. <template v-slot="scope">
  621. <el-date-picker v-if="scope.row.isEdit" v-model="scope.row.time" type="date" style="width: 100%"
  622. format="YYYY-MM-DD" value-format="YYYY-MM-DD"/>
  623. <span v-else>{{ scope.row.time }}</span>
  624. </template>
  625. </el-table-column>
  626. <el-table-column prop="name" label="科研名称" width="300" show-overflow-tooltip>
  627. <template v-slot="scope">
  628. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.name"></el-input>
  629. <span v-else>{{ scope.row.name }}</span>
  630. </template>
  631. </el-table-column>
  632. <el-table-column prop="forth" label="完成情况" header-align="center">
  633. <el-table-column prop="first" label="第一年" width="160">
  634. <template v-slot="scope">
  635. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.first"></el-input>
  636. <span v-else>{{ scope.row.first }}</span>
  637. </template>
  638. </el-table-column>
  639. <el-table-column prop="second" label="第二年" width="160">
  640. <template v-slot="scope">
  641. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.second"></el-input>
  642. <span v-else>{{ scope.row.second }}</span>
  643. </template>
  644. </el-table-column>
  645. <el-table-column prop="third" label="第三年" width="160">
  646. <template v-slot="scope">
  647. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.third"></el-input>
  648. <span v-else>{{ scope.row.third }}</span>
  649. </template>
  650. </el-table-column>
  651. </el-table-column>
  652. <el-table-column prop="comment" label="备注" width="300" show-overflow-tooltip>
  653. <template v-slot="scope">
  654. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.comment"></el-input>
  655. <span v-else>{{ scope.row.comment }}</span>
  656. </template>
  657. </el-table-column>
  658. <el-table-column fixed="right" label="操作" min-width="180" width="180" center>
  659. <template #default="scope">
  660. <el-button type="primary" size="small" v-if="!scope.row.isEdit"
  661. @click="editSixthInfo(scope.row)">编辑</el-button>
  662. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  663. @click="updateSixthInfo(scope.row)">保存</el-button>
  664. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  665. @click="cancelSixthInfo(scope.row, scope.$index)">取消</el-button>
  666. <el-button type="danger" size="small" @click.prevent="deleteSixthInfo(scope.row)">
  667. 删除</el-button>
  668. </template>
  669. </el-table-column>
  670. </el-table>
  671. </div>
  672. </div>
  673. </el-tab-pane>
  674. <el-tab-pane key="seventhInfo" label="开展新技术情况" name="seventhInfo">
  675. <div class="layout_display_flex_y">
  676. <div class="layout_flex_1-y">
  677. <el-table :data="seventhData" border style="width: 100%; height: 100%" stripe highlight-current-row :key="seventhKey">
  678. <el-table-column type="index" prop="no" label="序号" width="80" />
  679. <el-table-column prop="id" label="id号" width="80" v-if="false"/>
  680. <el-table-column prop="socialNo" label="身份证号" width="180">
  681. <template v-slot="scope">
  682. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.socialNo"></el-input>
  683. <span v-else>{{ scope.row.socialNo }}</span>
  684. </template>
  685. </el-table-column>
  686. <el-table-column prop="time" label="开展时间" width="200">
  687. <template v-slot="scope">
  688. <el-date-picker v-if="scope.row.isEdit" v-model="scope.row.time" type="date" style="width: 100%"
  689. format="YYYY-MM-DD" value-format="YYYY-MM-DD"/>
  690. <span v-else>{{ scope.row.time }}</span>
  691. </template>
  692. </el-table-column>
  693. <el-table-column prop="name" label="新技术名称" width="300" show-overflow-tooltip>
  694. <template v-slot="scope">
  695. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.name"></el-input>
  696. <span v-else>{{ scope.row.name }}</span>
  697. </template>
  698. </el-table-column>
  699. <el-table-column prop="forth" label="完成情况" header-align="center">
  700. <el-table-column prop="first" label="第一年" width="120">
  701. <template v-slot="scope">
  702. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.first"></el-input>
  703. <span v-else>{{ scope.row.first }}</span>
  704. </template>
  705. </el-table-column>
  706. <el-table-column prop="second" label="第二年" width="120">
  707. <template v-slot="scope">
  708. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.second"></el-input>
  709. <span v-else>{{ scope.row.second }}</span>
  710. </template>
  711. </el-table-column>
  712. <el-table-column prop="third" label="第三年" width="120">
  713. <template v-slot="scope">
  714. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.third"></el-input>
  715. <span v-else>{{ scope.row.third }}</span>
  716. </template>
  717. </el-table-column>
  718. <el-table-column prop="fourth" label="第四年" width="120">
  719. <template v-slot="scope">
  720. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.fourth"></el-input>
  721. <span v-else>{{ scope.row.fourth }}</span>
  722. </template>
  723. </el-table-column>
  724. <el-table-column prop="fifth" label="第五年" width="120">
  725. <template v-slot="scope">
  726. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.fifth"></el-input>
  727. <span v-else>{{ scope.row.fifth }}</span>
  728. </template>
  729. </el-table-column>
  730. </el-table-column>
  731. <el-table-column prop="comment" label="备注" width="300" show-overflow-tooltip>
  732. <template v-slot="scope">
  733. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.comment"></el-input>
  734. <span v-else>{{ scope.row.comment }}</span>
  735. </template>
  736. </el-table-column>
  737. <el-table-column fixed="right" label="操作" min-width="180" width="180" center>
  738. <template #default="scope">
  739. <el-button type="primary" size="small" v-if="!scope.row.isEdit"
  740. @click="editSeventhInfo(scope.row)">编辑</el-button>
  741. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  742. @click="updateSeventhInfo(scope.row)">保存</el-button>
  743. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  744. @click="cancelSeventhInfo(scope.row, scope.$index)">取消</el-button>
  745. <el-button type="danger" size="small" @click.prevent="deleteSeventhInfo(scope.row)">
  746. 删除</el-button>
  747. </template>
  748. </el-table-column>
  749. </el-table>
  750. </div>
  751. </div>
  752. </el-tab-pane>
  753. <el-tab-pane key="ninthInfo" label="培训考试考核情况" name="ninthInfo">
  754. <div class="layout_display_flex_y">
  755. <div class="layout_flex_1-y">
  756. <el-table :data="ninthData" border style="width: 100%; height: 100%" stripe highlight-current-row :key="ninthKey">
  757. <el-table-column type="index" prop="no" label="序号" width="80" />
  758. <el-table-column prop="id" label="id号" width="80" v-if="false"/>
  759. <el-table-column prop="socialNo" label="身份证号" width="180">
  760. <template v-slot="scope">
  761. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.socialNo"></el-input>
  762. <span v-else>{{ scope.row.socialNo }}</span>
  763. </template>
  764. </el-table-column>
  765. <el-table-column prop="time" label="时间" width="200">
  766. <template v-slot="scope">
  767. <el-date-picker v-if="scope.row.isEdit" v-model="scope.row.time" type="date" style="width: 100%"
  768. format="YYYY-MM-DD" value-format="YYYY-MM-DD"/>
  769. <span v-else>{{ scope.row.time }}</span>
  770. </template>
  771. </el-table-column>
  772. <el-table-column prop="content" label="培训考试考核内容" width="360" show-overflow-tooltip>
  773. <template #header>
  774. <span>培训考试考核内容</span>
  775. <el-tooltip class="box-item" effect="dark" placement="top">
  776. <template #content>注:<br />指医师定期考核、三基考核、住院医师规范化培训等各项内容。</template>
  777. <el-icon color="red" size="14"><QuestionFilled /></el-icon>
  778. </el-tooltip>
  779. </template>
  780. <template v-slot="scope">
  781. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.content"></el-input>
  782. <span v-else>{{ scope.row.content }}</span>
  783. </template>
  784. </el-table-column>
  785. <el-table-column prop="mode" label="考核方式" width="160">
  786. <template v-slot="scope">
  787. <div v-if="scope.row.isEdit">
  788. <el-select v-model="scope.row.mode" clearable placeholder="请选择考核方式">
  789. <el-option v-for="option in assessOptions" :key="option.code" :label="option.name"
  790. :value="option.code"></el-option>
  791. </el-select>
  792. </div>
  793. <div v-else>
  794. <el-select v-model="scope.row.mode" disabled placeholder="请选择考核方式">
  795. <el-option v-for="option in assessOptions" :key="option.code" :label="option.name"
  796. :value="option.code"></el-option>
  797. </el-select>
  798. </div>
  799. </template>
  800. </el-table-column>
  801. <el-table-column prop="result" label="结果" width="120" show-overflow-tooltip>
  802. <template v-slot="scope">
  803. <div v-if="scope.row.isEdit">
  804. <el-select v-model="scope.row.result" clearable placeholder="请选择结果">
  805. <el-option v-for="option in resultOptions" :key="option.code" :label="option.name"
  806. :value="option.code"></el-option>
  807. </el-select>
  808. </div>
  809. <div v-else>
  810. <el-select v-model="scope.row.result" disabled placeholder="请选择结果">
  811. <el-option v-for="option in resultOptions" :key="option.code" :label="option.name"
  812. :value="option.code"></el-option>
  813. </el-select>
  814. </div>
  815. </template>
  816. </el-table-column>
  817. <el-table-column prop="comment" label="备注" width="300" show-overflow-tooltip>
  818. <template v-slot="scope">
  819. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.comment"></el-input>
  820. <span v-else>{{ scope.row.comment }}</span>
  821. </template>
  822. </el-table-column>
  823. <el-table-column fixed="right" label="操作" min-width="180" width="180" center>
  824. <template #default="scope">
  825. <el-button type="primary" size="small" v-if="!scope.row.isEdit"
  826. @click="editNinthInfo(scope.row)">编辑</el-button>
  827. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  828. @click="updateNinthInfo(scope.row)">保存</el-button>
  829. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  830. @click="cancelNinthInfo(scope.row, scope.$index)">取消</el-button>
  831. <el-button type="danger" size="small" @click.prevent="deleteNinthInfo(scope.row)">
  832. 删除</el-button>
  833. </template>
  834. </el-table-column>
  835. </el-table>
  836. </div>
  837. </div>
  838. </el-tab-pane>
  839. <el-tab-pane key="tenthInfo" label="各种医疗活动记录" name="tenthInfo">
  840. <div class="layout_display_flex_y">
  841. <div class="layout_flex_1-y">
  842. <el-table :data="tenthData" border style="width: 100%; height: 100%" stripe highlight-current-row :key="tenthKey">
  843. <el-table-column type="index" prop="no" label="序号" width="80" />
  844. <el-table-column prop="id" label="id号" width="80" v-if="false"/>
  845. <el-table-column prop="socialNo" label="身份证号" width="180">
  846. <template v-slot="scope">
  847. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.socialNo"></el-input>
  848. <span v-else>{{ scope.row.socialNo }}</span>
  849. </template>
  850. </el-table-column>
  851. <el-table-column prop="time" label="时间" width="200">
  852. <template v-slot="scope">
  853. <el-date-picker v-if="scope.row.isEdit" v-model="scope.row.time" type="date" style="width: 100%"
  854. format="YYYY-MM-DD" value-format="YYYY-MM-DD"/>
  855. <span v-else>{{ scope.row.time }}</span>
  856. </template>
  857. </el-table-column>
  858. <el-table-column prop="record" label="活动记录" width="360" show-overflow-tooltip>
  859. <template #header>
  860. <span>活动记录</span>
  861. <el-tooltip class="box-item" effect="dark" placement="top">
  862. <template #content>注:<br />医疗活动包括外出义诊、救助等政府指令性活动,不含单位自行组织的。</template>
  863. <el-icon color="red" size="14"><QuestionFilled /></el-icon>
  864. </el-tooltip>
  865. </template>
  866. <template v-slot="scope">
  867. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.record"></el-input>
  868. <span v-else>{{ scope.row.record }}</span>
  869. </template>
  870. </el-table-column>
  871. <el-table-column prop="comment" label="备注" width="300" show-overflow-tooltip>
  872. <template v-slot="scope">
  873. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.comment"></el-input>
  874. <span v-else>{{ scope.row.comment }}</span>
  875. </template>
  876. </el-table-column>
  877. <el-table-column fixed="right" label="操作" min-width="180" width="180" center>
  878. <template #default="scope">
  879. <el-button type="primary" size="small" v-if="!scope.row.isEdit"
  880. @click="editTenthInfo(scope.row)">编辑</el-button>
  881. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  882. @click="updateTenthInfo(scope.row)">保存</el-button>
  883. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  884. @click="cancelTenthInfo(scope.row, scope.$index)">取消</el-button>
  885. <el-button type="danger" size="small" @click.prevent="deleteTenthInfo(scope.row)">
  886. 删除</el-button>
  887. </template>
  888. </el-table-column>
  889. </el-table>
  890. </div>
  891. </div>
  892. </el-tab-pane>
  893. <el-tab-pane key="twelfthInfo" label="奖惩情况" name="twelfthInfo">
  894. <div class="layout_display_flex_y">
  895. <div class="layout_flex_1-y">
  896. <el-table :data="twelfthData" border style="width: 100%; height: 100%" stripe highlight-current-row :key="twelfthKey">
  897. <el-table-column type="index" prop="no" label="序号" width="80" />
  898. <el-table-column prop="id" label="id号" width="80" v-if="false"/>
  899. <el-table-column prop="socialNo" label="身份证号" width="180">
  900. <template v-slot="scope">
  901. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.socialNo"></el-input>
  902. <span v-else>{{ scope.row.socialNo }}</span>
  903. </template>
  904. </el-table-column>
  905. <el-table-column prop="time" label="时间" width="200">
  906. <template v-slot="scope">
  907. <el-date-picker v-if="scope.row.isEdit" v-model="scope.row.time" type="date" style="width: 100%"
  908. format="YYYY-MM-DD" value-format="YYYY-MM-DD"/>
  909. <span v-else>{{ scope.row.time }}</span>
  910. </template>
  911. </el-table-column>
  912. <el-table-column prop="comment" label="受过何种奖励表彰或处罚" width="480" show-overflow-tooltip>
  913. <template #header>
  914. <span>受过何种奖励表彰或处罚</span>
  915. <el-tooltip class="box-item" effect="dark" placement="top">
  916. <template #content>注:<br />指院级以上的奖励、表彰或处罚。</template>
  917. <el-icon color="red" size="14"><QuestionFilled /></el-icon>
  918. </el-tooltip>
  919. </template>
  920. <template v-slot="scope">
  921. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.comment"></el-input>
  922. <span v-else>{{ scope.row.comment }}</span>
  923. </template>
  924. </el-table-column>
  925. <el-table-column prop="unit" label="奖励或处罚单位" width="280" show-overflow-tooltip>
  926. <template v-slot="scope">
  927. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.unit"></el-input>
  928. <span v-else>{{ scope.row.unit }}</span>
  929. </template>
  930. </el-table-column>
  931. <el-table-column fixed="right" label="操作" min-width="180" width="180" center>
  932. <template #default="scope">
  933. <el-button type="primary" size="small" v-if="!scope.row.isEdit"
  934. @click="editTwelfthInfo(scope.row)">编辑</el-button>
  935. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  936. @click="updateTwelfthInfo(scope.row)">保存</el-button>
  937. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  938. @click="cancelTwelfthInfo(scope.row, scope.$index)">取消</el-button>
  939. <el-button type="danger" size="small" @click.prevent="deleteTwelfthInfo(scope.row)">
  940. 删除</el-button>
  941. </template>
  942. </el-table-column>
  943. </el-table>
  944. </div>
  945. </div>
  946. </el-tab-pane>
  947. <el-tab-pane key="thirteenthInfo" label="专业学会任职情况" name="thirteenthInfo">
  948. <div class="layout_display_flex_y">
  949. <div class="layout_flex_1-y">
  950. <el-table :data="thirteenthData" border style="width: 100%; height: 100%" stripe highlight-current-row :key="thirteenthKey">
  951. <el-table-column type="index" prop="no" label="序号" width="80" />
  952. <el-table-column prop="id" label="id号" width="80" v-if="false"/>
  953. <el-table-column prop="socialNo" label="身份证号" width="180">
  954. <template v-slot="scope">
  955. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.socialNo"></el-input>
  956. <span v-else>{{ scope.row.socialNo }}</span>
  957. </template>
  958. </el-table-column>
  959. <el-table-column prop="time" label="时间" width="200">
  960. <template v-slot="scope">
  961. <el-date-picker v-if="scope.row.isEdit" v-model="scope.row.time" type="date" style="width: 100%"
  962. format="YYYY-MM-DD" value-format="YYYY-MM-DD"/>
  963. <span v-else>{{ scope.row.time }}</span>
  964. </template>
  965. </el-table-column>
  966. <el-table-column prop="name" label="学会名称" width="420" show-overflow-tooltip>
  967. <template v-slot="scope">
  968. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.name"></el-input>
  969. <span v-else>{{ scope.row.name }}</span>
  970. </template>
  971. </el-table-column>
  972. <el-table-column prop="title" label="任职情况" width="240" show-overflow-tooltip>
  973. <template v-slot="scope">
  974. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.title"></el-input>
  975. <span v-else>{{ scope.row.title }}</span>
  976. </template>
  977. </el-table-column>
  978. <el-table-column fixed="right" label="操作" min-width="180" width="180" center>
  979. <template #default="scope">
  980. <el-button type="primary" size="small" v-if="!scope.row.isEdit"
  981. @click="editThirteenthInfo(scope.row)">编辑</el-button>
  982. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  983. @click="updateThirteenthInfo(scope.row)">保存</el-button>
  984. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  985. @click="cancelThirteenthInfo(scope.row, scope.$index)">取消</el-button>
  986. <el-button type="danger" size="small" @click.prevent="deleteThirteenthInfo(scope.row)">
  987. 删除</el-button>
  988. </template>
  989. </el-table-column>
  990. </el-table>
  991. </div>
  992. </div>
  993. </el-tab-pane>
  994. <el-tab-pane key="fourteenthInfo" label="继续教育学分获得情况" name="fourteenthInfo">
  995. <div class="layout_display_flex_y">
  996. <div class="layout_flex_1-y">
  997. <el-table :data="fourteenthData" border style="width: 100%; height: 100%" stripe highlight-current-row :key="fourteenthKey">
  998. <el-table-column type="index" prop="no" label="序号" width="80" />
  999. <el-table-column prop="id" label="id号" width="80" v-if="false"/>
  1000. <el-table-column prop="socialNo" label="身份证号" width="180">
  1001. <template v-slot="scope">
  1002. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.socialNo"></el-input>
  1003. <span v-else>{{ scope.row.socialNo }}</span>
  1004. </template>
  1005. </el-table-column>
  1006. <el-table-column prop="year" label="年度" width="160">
  1007. <template v-slot="scope">
  1008. <el-date-picker v-if="scope.row.isEdit" v-model="scope.row.year" type="year" style="width: 100%"
  1009. format="YYYY" value-format="YYYY"/>
  1010. <span v-else>{{ scope.row.year }}</span>
  1011. </template>
  1012. </el-table-column>
  1013. <el-table-column prop="finish" label="完成情况" header-align="center">
  1014. <el-table-column prop="score1" label="Ⅰ类学分" width="120">
  1015. <template v-slot="scope">
  1016. <el-input v-if="scope.row.isEdit" size="small" v-model.trim="scope.row.score1" @change="totalFormat(scope.row)"></el-input>
  1017. <span v-else>{{ scope.row.score1 }}</span>
  1018. </template>
  1019. </el-table-column>
  1020. <el-table-column prop="score2" label="Ⅱ类学分" width="120">
  1021. <template v-slot="scope">
  1022. <el-input v-if="scope.row.isEdit" size="small" v-model.trim="scope.row.score2" @change="totalFormat(scope.row)"></el-input>
  1023. <span v-else>{{ scope.row.score2 }}</span>
  1024. </template>
  1025. </el-table-column>
  1026. <el-table-column prop="other" label="其他" width="120">
  1027. <template v-slot="scope">
  1028. <el-input v-if="scope.row.isEdit" size="small" v-model.trim="scope.row.other" @change="totalFormat(scope.row)"></el-input>
  1029. <span v-else>{{ scope.row.other }}</span>
  1030. </template>
  1031. </el-table-column>
  1032. <el-table-column prop="total" label="合计" width="120"></el-table-column>
  1033. </el-table-column>
  1034. <el-table-column prop="result" label="验证结果" width="130" show-overflow-tooltip>
  1035. <template v-slot="scope">
  1036. <div v-if="scope.row.isEdit">
  1037. <el-select v-model="scope.row.result" clearable placeholder="请选择结果">
  1038. <el-option v-for="option in verifyOptions" :key="option.code" :label="option.name"
  1039. :value="option.code"></el-option>
  1040. </el-select>
  1041. </div>
  1042. <div v-else>
  1043. <el-select v-model="scope.row.result" disabled placeholder="请选择结果">
  1044. <el-option v-for="option in verifyOptions" :key="option.code" :label="option.name"
  1045. :value="option.code"></el-option>
  1046. </el-select>
  1047. </div>
  1048. </template>
  1049. </el-table-column>
  1050. <el-table-column prop="comment" label="备注" width="360" show-overflow-tooltip>
  1051. <template v-slot="scope">
  1052. <el-input v-if="scope.row.isEdit" size="small" v-model="scope.row.comment"></el-input>
  1053. <span v-else>{{ scope.row.comment }}</span>
  1054. </template>
  1055. </el-table-column>
  1056. <el-table-column fixed="right" label="操作" min-width="180" width="180" center>
  1057. <template #default="scope">
  1058. <el-button type="primary" size="small" v-if="!scope.row.isEdit"
  1059. @click="editFourteenthInfo(scope.row)">编辑</el-button>
  1060. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  1061. @click="updateFourteenthInfo(scope.row)">保存</el-button>
  1062. <el-button type="primary" size="small" v-if="scope.row.isEdit"
  1063. @click="cancelFourteenthInfo(scope.row, scope.$index)">取消</el-button>
  1064. <el-button type="danger" size="small" @click.prevent="deleteFourteenthInfo(scope.row)">
  1065. 删除</el-button>
  1066. </template>
  1067. </el-table-column>
  1068. </el-table>
  1069. </div>
  1070. </div>
  1071. </el-tab-pane>
  1072. </el-tabs>
  1073. </div>
  1074. </div>
  1075. </template>
  1076. <script setup lang="ts" name="TechnologyArchivesMain">
  1077. import {nextTick, onMounted, ref} from "vue";
  1078. import {ElMessage, ElMessageBox} from "element-plus";
  1079. import type { UploadFile, UploadFiles, UploadProps, UploadUserFile, UploadInstance } from 'element-plus'
  1080. import XEUtils from "xe-utils";
  1081. import {stringIsBlank} from "@/utils/blank-utils";
  1082. import {QuestionFilled, StarFilled} from '@element-plus/icons-vue'
  1083. import {
  1084. delTechnologyArchives10ByCode,
  1085. delTechnologyArchives12ByCode,
  1086. delTechnologyArchives13ByCode,
  1087. delTechnologyArchives14ByCode,
  1088. delTechnologyArchives1ByCode,
  1089. delTechnologyArchives2ByCode,
  1090. delTechnologyArchives3ByCode,
  1091. delTechnologyArchives4ByCode,
  1092. delTechnologyArchives5ByCode,
  1093. delTechnologyArchives6ByCode,
  1094. delTechnologyArchives7ByCode,
  1095. delTechnologyArchives9ByCode,
  1096. saveTechnologyArchives1,
  1097. selectImage1,
  1098. deleteImage1,
  1099. saveTechnologyArchives10,
  1100. saveTechnologyArchives12,
  1101. saveTechnologyArchives13,
  1102. saveTechnologyArchives14,
  1103. saveTechnologyArchives2,
  1104. saveTechnologyArchives3,
  1105. saveTechnologyArchives4,
  1106. saveTechnologyArchives5,
  1107. saveTechnologyArchives6,
  1108. saveTechnologyArchives7,
  1109. saveTechnologyArchives9,
  1110. saveTechnologyArchivesMain,
  1111. selectDictInfo,
  1112. selectEmployeeInfo,
  1113. selectTechnologyArchives1,
  1114. selectTechnologyArchives10,
  1115. selectTechnologyArchives12,
  1116. selectTechnologyArchives13,
  1117. selectTechnologyArchives14,
  1118. selectTechnologyArchives2,
  1119. selectTechnologyArchives3,
  1120. selectTechnologyArchives4,
  1121. selectTechnologyArchives5,
  1122. selectTechnologyArchives6,
  1123. selectTechnologyArchives7,
  1124. selectTechnologyArchives9
  1125. } from "@/api/technology-archives/technology-archives";
  1126. import {useUserStore} from "@/pinia/user-store";
  1127. const editableTabsValue = ref('baseInfo')
  1128. const ruleFormRef = ref()
  1129. const isEdit = ref(false)
  1130. const dictData = ref([])
  1131. const learnOptions = [{ code: '1', name: '讲座' }, { code: '2', name: '学习班' }, { code: '3', name: '培训班' }, { code: '4', name: '外出进修' }]
  1132. const resultOptions = [{ code: '1', name: '通过' }, { code: '2', name: '不通过' }]
  1133. const assessOptions = [{ code: '1', name: '笔试' }, { code: '2', name: '面试' }, { code: '3', name: '综合考评' }]
  1134. const verifyOptions = [{ code: '1', name: '通过' }, { code: '2', name: '不通过' }, { code: '9', name: '其他' }]
  1135. const userInfo = useUserStore().userInfo
  1136. onMounted(() => {
  1137. nextTick(() => {
  1138. queryDictInfo()
  1139. selectEmployeeInfo(userInfo.code)
  1140. .then((res) => {
  1141. if(res){
  1142. baseInfoForm.value = res
  1143. }
  1144. })
  1145. })
  1146. })
  1147. let baseInfoForm = ref({
  1148. modeFlag: '', // 模式:edit 编辑; add 新增
  1149. name: '', // 姓名
  1150. sex: '', // 性别
  1151. socialNo: '', // 身份证号码
  1152. nation: '', // 民族
  1153. birthday: '', // 出生年月
  1154. nativePlace: '', // 籍贯
  1155. politicCountenance: '', // 政治面貌
  1156. education: '', // 最高学历
  1157. speciality: '', // 专业
  1158. graduationSchool: '', // 毕业学校
  1159. firstWorktime: '', // 参加工作时间
  1160. position: '', // 职务
  1161. address: '', // 现住地址
  1162. healthCondition: '', // 健康状况
  1163. phone: '', // 联系电话
  1164. physicianCertificate: '', // 医师资格证
  1165. physicianCertificateTime: '', // 医师资格证获取时间
  1166. physicianPracticingCertificate: '', // 医生执业证书
  1167. physicianPracticingCertificateTime: '', // 医生执业证书获取时间
  1168. })
  1169. const rulesInfo = reactive({
  1170. name: [
  1171. { required: true, message: '请填写姓名', trigger: 'blur' },
  1172. ],
  1173. sex: [
  1174. { required: true, message: '请选择性别', trigger: 'change' },
  1175. ],
  1176. socialNo: [
  1177. { required: true, message: '请填写身份证号', trigger: 'blur' },
  1178. ],
  1179. })
  1180. const text = ref('')
  1181. const queryEmployeeInfo = () => {
  1182. if(!text.value){
  1183. ElMessage({
  1184. type: "warning",
  1185. message: '查询关键字不能为空!',
  1186. duration: 2500,
  1187. showClose: true,
  1188. });
  1189. return
  1190. }
  1191. selectEmployeeInfo(text.value)
  1192. .then((res) => {
  1193. if(res){
  1194. baseInfoForm.value = res
  1195. }
  1196. })
  1197. }
  1198. const queryDictInfo = () => {
  1199. selectDictInfo()
  1200. .then((res) => {
  1201. if (res) {
  1202. dictData.value = res
  1203. }
  1204. })
  1205. }
  1206. // 出身年月格式化
  1207. const birthdayFormat = () => {
  1208. let sfz = baseInfoForm.value.socialNo
  1209. baseInfoForm.value.birthday = sfz.substring(6, 10) + '-' + sfz.substring(10, 12)
  1210. }
  1211. // 保存基本信息
  1212. const submitForm = async (formEl) => {
  1213. if(editableTabsValue.value !== 'baseInfo'){
  1214. ElMessage({
  1215. type: "info",
  1216. message: '只能保存基本信息,请知悉!',
  1217. duration: 2500,
  1218. showClose: true,
  1219. });
  1220. return
  1221. }
  1222. if (!formEl) return
  1223. await formEl.validate((valid, fields) => {
  1224. if (valid) {
  1225. ElMessageBox.confirm('请确认是否保存技术档案基本信息?', {
  1226. cancelButtonText: '取消',
  1227. confirmButtonText: '确定',
  1228. type: 'warning',
  1229. distinguishCancelAndClose: true,
  1230. }).then(() => {
  1231. saveTechnologyArchivesMain(baseInfoForm.value).then((res) => {
  1232. ElMessage({
  1233. type: "success",
  1234. message: res.cg,
  1235. duration: 2500,
  1236. showClose: true,
  1237. });
  1238. })
  1239. }).catch((action) => {
  1240. })
  1241. } else {
  1242. ElMessage({
  1243. type: "info",
  1244. message: '保存失败,请确认!',
  1245. duration: 2500,
  1246. showClose: true,
  1247. });
  1248. }
  1249. })
  1250. }
  1251. // 重置
  1252. const resetForm = (formEl) => {
  1253. if (!formEl) return
  1254. formEl.resetFields()
  1255. }
  1256. // 切换tab
  1257. const handleClick = (tab) => {
  1258. // 查询哪个tab页面
  1259. editableTabsValue.value = tab.props.name
  1260. if (editableTabsValue.value === 'baseInfo') {
  1261. if(!userInfo.code && userInfo.code != null){
  1262. selectEmployeeInfo(userInfo.code)
  1263. .then((res) => {
  1264. if(res){
  1265. baseInfoForm.value = res
  1266. }
  1267. })
  1268. }
  1269. } else if(editableTabsValue.value === 'firstInfo'){
  1270. queryTechnologyArchives1()
  1271. } else if(editableTabsValue.value === 'secondInfo'){
  1272. queryTechnologyArchives2()
  1273. } else if(editableTabsValue.value === 'thirdInfo'){
  1274. queryTechnologyArchives3()
  1275. } else if(editableTabsValue.value === 'fourthInfo'){
  1276. queryTechnologyArchives4()
  1277. } else if(editableTabsValue.value === 'fifthInfo'){
  1278. queryTechnologyArchives5()
  1279. } else if(editableTabsValue.value === 'sixthInfo'){
  1280. queryTechnologyArchives6()
  1281. } else if(editableTabsValue.value === 'seventhInfo'){
  1282. queryTechnologyArchives7()
  1283. } else if(editableTabsValue.value === 'ninthInfo'){
  1284. queryTechnologyArchives9()
  1285. } else if(editableTabsValue.value === 'tenthInfo'){
  1286. queryTechnologyArchives10()
  1287. } else if(editableTabsValue.value === 'twelfthInfo'){
  1288. queryTechnologyArchives12()
  1289. } else if(editableTabsValue.value === 'thirteenthInfo'){
  1290. queryTechnologyArchives13()
  1291. } else if(editableTabsValue.value === 'fourteenthInfo'){
  1292. queryTechnologyArchives14()
  1293. }
  1294. }
  1295. const megTip = '核心数据有变更,与原始数据记录存在关联,请谨慎做更改,是否确认!!!'
  1296. let firstKey = ref(1)
  1297. const firstData = ref([])
  1298. let secondKey = ref(1)
  1299. const secondData = ref([])
  1300. let thirdKey = ref(1)
  1301. const thirdData = ref([])
  1302. let fourthKey = ref(1)
  1303. const fourthData = ref([])
  1304. let fifthKey = ref(1)
  1305. const fifthData = ref([])
  1306. let sixthKey = ref(1)
  1307. const sixthData = ref([])
  1308. let seventhKey = ref(1)
  1309. const seventhData = ref([])
  1310. let ninthKey = ref(1)
  1311. const ninthData = ref([])
  1312. let tenthKey = ref(1)
  1313. const tenthData = ref([])
  1314. let twelfthKey = ref(1)
  1315. const twelfthData = ref([])
  1316. let thirteenthKey = ref(1)
  1317. const thirteenthData = ref([])
  1318. let fourteenthKey = ref(1)
  1319. const fourteenthData = ref([])
  1320. const queryTechnologyArchives1 = () => {
  1321. selectTechnologyArchives1()
  1322. .then((res) => {
  1323. res.forEach(row => {
  1324. // 是否标记
  1325. row['isEdit'] = false
  1326. // 是否新增
  1327. row['isAdd'] = false
  1328. selectImage1(row.socialNo, row.getTime)
  1329. .then((res1)=>{
  1330. url.value = row.image
  1331. srcList.value = [res1.data.image]
  1332. console.log(res1.data)
  1333. console.log(srcList.value)
  1334. })
  1335. })
  1336. firstData.value = res
  1337. })
  1338. .catch(() => {
  1339. firstData.value = []
  1340. })
  1341. }
  1342. const queryTechnologyArchives2 = () => {
  1343. selectTechnologyArchives2()
  1344. .then((res) => {
  1345. res.forEach(row => {
  1346. // 是否标记
  1347. row['isEdit'] = false
  1348. // 是否新增
  1349. row['isAdd'] = false
  1350. })
  1351. secondData.value = res
  1352. })
  1353. .catch(() => {
  1354. secondData.value = []
  1355. })
  1356. }
  1357. const queryTechnologyArchives3 = () => {
  1358. selectTechnologyArchives3()
  1359. .then((res) => {
  1360. res.forEach(row => {
  1361. // 是否标记
  1362. row['isEdit'] = false
  1363. // 是否新增
  1364. row['isAdd'] = false
  1365. })
  1366. thirdData.value = res
  1367. })
  1368. .catch(() => {
  1369. thirdData.value = []
  1370. })
  1371. }
  1372. const queryTechnologyArchives4 = () => {
  1373. selectTechnologyArchives4()
  1374. .then((res) => {
  1375. res.forEach(row => {
  1376. // 是否标记
  1377. row['isEdit'] = false
  1378. // 是否新增
  1379. row['isAdd'] = false
  1380. })
  1381. fourthData.value = res
  1382. })
  1383. .catch(() => {
  1384. fourthData.value = []
  1385. })
  1386. }
  1387. const queryTechnologyArchives5 = () => {
  1388. selectTechnologyArchives5()
  1389. .then((res) => {
  1390. res.forEach(row => {
  1391. // 是否标记
  1392. row['isEdit'] = false
  1393. // 是否新增
  1394. row['isAdd'] = false
  1395. })
  1396. fifthData.value = res
  1397. })
  1398. .catch(() => {
  1399. fifthData.value = []
  1400. })
  1401. }
  1402. const queryTechnologyArchives6 = () => {
  1403. selectTechnologyArchives6()
  1404. .then((res) => {
  1405. res.forEach(row => {
  1406. // 是否标记
  1407. row['isEdit'] = false
  1408. // 是否新增
  1409. row['isAdd'] = false
  1410. })
  1411. sixthData.value = res
  1412. })
  1413. .catch(() => {
  1414. sixthData.value = []
  1415. })
  1416. }
  1417. const queryTechnologyArchives7 = () => {
  1418. selectTechnologyArchives7()
  1419. .then((res) => {
  1420. res.forEach(row => {
  1421. // 是否标记
  1422. row['isEdit'] = false
  1423. // 是否新增
  1424. row['isAdd'] = false
  1425. })
  1426. seventhData.value = res
  1427. })
  1428. .catch(() => {
  1429. seventhData.value = []
  1430. })
  1431. }
  1432. const queryTechnologyArchives9 = () => {
  1433. selectTechnologyArchives9()
  1434. .then((res) => {
  1435. res.forEach(row => {
  1436. // 是否标记
  1437. row['isEdit'] = false
  1438. // 是否新增
  1439. row['isAdd'] = false
  1440. })
  1441. ninthData.value = res
  1442. })
  1443. .catch(() => {
  1444. ninthData.value = []
  1445. })
  1446. }
  1447. const queryTechnologyArchives10 = () => {
  1448. selectTechnologyArchives10()
  1449. .then((res) => {
  1450. res.forEach(row => {
  1451. // 是否标记
  1452. row['isEdit'] = false
  1453. // 是否新增
  1454. row['isAdd'] = false
  1455. })
  1456. tenthData.value = res
  1457. })
  1458. .catch(() => {
  1459. tenthData.value = []
  1460. })
  1461. }
  1462. const queryTechnologyArchives12 = () => {
  1463. selectTechnologyArchives12()
  1464. .then((res) => {
  1465. res.forEach(row => {
  1466. // 是否标记
  1467. row['isEdit'] = false
  1468. // 是否新增
  1469. row['isAdd'] = false
  1470. })
  1471. twelfthData.value = res
  1472. })
  1473. .catch(() => {
  1474. twelfthData.value = []
  1475. })
  1476. }
  1477. const queryTechnologyArchives13 = () => {
  1478. selectTechnologyArchives13()
  1479. .then((res) => {
  1480. res.forEach(row => {
  1481. // 是否标记
  1482. row['isEdit'] = false
  1483. // 是否新增
  1484. row['isAdd'] = false
  1485. })
  1486. thirteenthData.value = res
  1487. })
  1488. .catch(() => {
  1489. thirteenthData.value = []
  1490. })
  1491. }
  1492. const queryTechnologyArchives14 = () => {
  1493. selectTechnologyArchives14()
  1494. .then((res) => {
  1495. res.forEach(row => {
  1496. // 是否标记
  1497. row['isEdit'] = false
  1498. // 是否新增
  1499. row['isAdd'] = false
  1500. })
  1501. fourteenthData.value = res
  1502. })
  1503. .catch(() => {
  1504. fourteenthData.value = []
  1505. })
  1506. }
  1507. // 新增行
  1508. const onAddItem = () => {
  1509. if (editableTabsValue.value === 'firstInfo') {
  1510. firstData.value.push({
  1511. socialNo: baseInfoForm.value.socialNo,
  1512. getTime: '',
  1513. title: '',
  1514. issuingAuthority: '',
  1515. image: '',
  1516. isEdit: true,
  1517. isAdd: true,
  1518. isUpload: false
  1519. })
  1520. } else if(editableTabsValue.value === 'secondInfo'){
  1521. secondData.value.push({
  1522. no: secondData.value.length + 1,
  1523. socialNo: baseInfoForm.value.socialNo,
  1524. name: '',
  1525. number: '',
  1526. getTime: '',
  1527. comment: '',
  1528. image: '',
  1529. isEdit: true,
  1530. isAdd: true,
  1531. })
  1532. } else if(editableTabsValue.value === 'thirdInfo'){
  1533. thirdData.value.push({
  1534. socialNo: baseInfoForm.value.socialNo,
  1535. beginTime: '',
  1536. endTime: '',
  1537. unit: '',
  1538. title: '',
  1539. workTime: '',
  1540. speciality: '',
  1541. id: '',
  1542. isEdit: true,
  1543. isAdd: true,
  1544. })
  1545. } else if(editableTabsValue.value === 'fourthInfo'){
  1546. fourthData.value.push({
  1547. socialNo: baseInfoForm.value.socialNo,
  1548. beginTime: '',
  1549. endTime: '',
  1550. learningStyle: '',
  1551. learningContent: '',
  1552. learningUnit: '',
  1553. learningName: '',
  1554. id: '',
  1555. isEdit: true,
  1556. isAdd: true,
  1557. })
  1558. } else if(editableTabsValue.value === 'fifthInfo'){
  1559. fifthData.value.push({
  1560. socialNo: baseInfoForm.value.socialNo,
  1561. time: '',
  1562. topic: '',
  1563. periodical: '',
  1564. awards: '',
  1565. isEdit: true,
  1566. isAdd: true,
  1567. })
  1568. } else if(editableTabsValue.value === 'sixthInfo'){
  1569. sixthData.value.push({
  1570. socialNo: baseInfoForm.value.socialNo,
  1571. time: '',
  1572. name: '',
  1573. first: '',
  1574. second: '',
  1575. third: '',
  1576. comment: '',
  1577. isEdit: true,
  1578. isAdd: true,
  1579. })
  1580. } else if(editableTabsValue.value === 'seventhInfo'){
  1581. seventhData.value.push({
  1582. socialNo: baseInfoForm.value.socialNo,
  1583. time: '',
  1584. name: '',
  1585. first: '',
  1586. second: '',
  1587. third: '',
  1588. fourth: '',
  1589. fifth: '',
  1590. comment: '',
  1591. isEdit: true,
  1592. isAdd: true,
  1593. })
  1594. } else if(editableTabsValue.value === 'ninthInfo'){
  1595. ninthData.value.push({
  1596. socialNo: baseInfoForm.value.socialNo,
  1597. time: '',
  1598. content: '',
  1599. mode: '',
  1600. result: '',
  1601. comment: '',
  1602. isEdit: true,
  1603. isAdd: true,
  1604. })
  1605. } else if(editableTabsValue.value === 'tenthInfo'){
  1606. tenthData.value.push({
  1607. socialNo: baseInfoForm.value.socialNo,
  1608. time: '',
  1609. record: '',
  1610. comment: '',
  1611. isEdit: true,
  1612. isAdd: true,
  1613. })
  1614. } else if(editableTabsValue.value === 'twelfthInfo'){
  1615. twelfthData.value.push({
  1616. socialNo: baseInfoForm.value.socialNo,
  1617. time: '',
  1618. record: '',
  1619. comment: '',
  1620. unit: '',
  1621. isEdit: true,
  1622. isAdd: true,
  1623. })
  1624. } else if(editableTabsValue.value === 'thirteenthInfo'){
  1625. thirteenthData.value.push({
  1626. socialNo: baseInfoForm.value.socialNo,
  1627. time: '',
  1628. name: '',
  1629. title: '',
  1630. isEdit: true,
  1631. isAdd: true,
  1632. })
  1633. } else if(editableTabsValue.value === 'fourteenthInfo'){
  1634. fourteenthData.value.push({
  1635. socialNo: baseInfoForm.value.socialNo,
  1636. year: '',
  1637. score1: '',
  1638. score2: '',
  1639. other: '',
  1640. total: '',
  1641. result: '',
  1642. comment: '',
  1643. isEdit: true,
  1644. isAdd: true,
  1645. })
  1646. }
  1647. }
  1648. // 专业技术职称晋升情况增删改存开始
  1649. // 编辑
  1650. const editFirstInfo = (row) => {
  1651. // 备份原始数据
  1652. row['oldRow'] = JSON.parse(JSON.stringify(row))
  1653. row.isEdit = true
  1654. // if(!row.isUpload){
  1655. // for(let i=0; i<fileList.value.length; i++){
  1656. // fileList.value[i].name = row[i].image
  1657. // }
  1658. // }else{
  1659. // fileList.value = []
  1660. // }
  1661. }
  1662. // 取消
  1663. const cancelFirstInfo = (row, index) => {
  1664. // 如果是新增的数据
  1665. if (row.isAdd) {
  1666. firstData.value.splice(index, 1)
  1667. } else {
  1668. // 不是新增的数据 还原数据
  1669. for (const i in row.oldRow) {
  1670. row[i] = row.oldRow[i]
  1671. }
  1672. }
  1673. firstKey.value = Math.random()
  1674. }
  1675. //上传图片
  1676. const apiUrl = import.meta.env.VITE_BASE_URL
  1677. const upload = ref()
  1678. const fileList = ref([])
  1679. const dialogImageUrl = ref('')
  1680. const dialogVisible = ref(false)
  1681. const handleRemove= (uploadFile, uploadFiles) => {
  1682. console.log(uploadFile, uploadFiles)
  1683. }
  1684. const handlePreview= (uploadFile) => {
  1685. dialogImageUrl.value = uploadFile.url
  1686. dialogVisible.value = true
  1687. console.log(fileList.value[0].name)
  1688. }
  1689. const isOversize = ref(false)
  1690. // 图片上传前文件信息
  1691. const beforeUpload = (file: File) => {
  1692. if (file.size / 1024 / 1024 > 2) {
  1693. ElMessage.error('上传图片大小不能超过 2MB!')
  1694. return isOversize.value = true
  1695. }
  1696. console.log('正在上传文件:'+ file.name)
  1697. }
  1698. const header = {
  1699. token: localStorage.token,
  1700. }
  1701. const multiple = computed(() => {
  1702. // return stringIsBlank(props.getTime)
  1703. if(fileList.value.length > 1){
  1704. return true
  1705. }
  1706. return false
  1707. })
  1708. const submitUpload = (row) => {
  1709. upload.value!.submit();
  1710. if(!isOversize.value){
  1711. row.isUpload = true
  1712. }else{
  1713. row.isUpload = false
  1714. }
  1715. }
  1716. function uploadSuccess(response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) {
  1717. const index = XEUtils.findLastIndexOf(fileList.value, (item: UploadUserFile) => {
  1718. return item.uid === uploadFile.uid;
  1719. })
  1720. if (response.code === 200) {
  1721. fileList.value[index] = {
  1722. ...fileList.value[index],
  1723. ...response.data,
  1724. }
  1725. ElMessage.success("上传成功");
  1726. } else {
  1727. fileList.value[index].status = 'fail'
  1728. ElMessage.error("上传失败");
  1729. }
  1730. }
  1731. //查看图片
  1732. const srcList = ref([])
  1733. const url = ref("")
  1734. // 保存
  1735. const updateFirstInfo = (row) => {
  1736. if (!row.socialNo || !row.getTime) {
  1737. ElMessage({
  1738. type: "warning",
  1739. message: "身份证号或批准时间不存在,请检查!",
  1740. duration: 2500,
  1741. showClose: true,
  1742. });
  1743. return
  1744. }
  1745. if (row.isAdd) {
  1746. let fe = 0
  1747. for (let num in firstData.value) {
  1748. if (firstData.value[num].getTime === row.getTime) {
  1749. fe++
  1750. }
  1751. }
  1752. if (fe === 2) {
  1753. ElMessage({
  1754. type: "warning",
  1755. message: "存在重复的技术职称,请核对!",
  1756. duration: 2500,
  1757. showClose: true,
  1758. });
  1759. } else {
  1760. callSaveFirstInfo(row, null)
  1761. }
  1762. }else {
  1763. let oldGetTime = row.oldRow.getTime
  1764. if (oldGetTime !== row.getTime) {
  1765. ElMessageBox.confirm(megTip, {
  1766. cancelButtonText: '取消',
  1767. confirmButtonText: '确定',
  1768. type: 'warning',
  1769. distinguishCancelAndClose: true,
  1770. dangerouslyUseHTMLString: true
  1771. }).then(() => {
  1772. callSaveFirstInfo(row, oldGetTime)
  1773. }).catch((action) => {
  1774. if (action === 'cancel') {
  1775. queryTechnologyArchives1()
  1776. }
  1777. })
  1778. } else {
  1779. callSaveFirstInfo(row, oldGetTime)
  1780. }
  1781. }
  1782. }
  1783. const callSaveFirstInfo = (row, oldGetTime) => {
  1784. if(!row.isUpload){
  1785. ElMessage({
  1786. type: "warning",
  1787. message: "图片还未上传!",
  1788. duration: 2500,
  1789. showClose: true,
  1790. });
  1791. }else{
  1792. let title = '请确认是否保存<span style="color:#d12020;">' + row.title + '</span>?'
  1793. ElMessageBox.confirm(title, {
  1794. cancelButtonText: '取消',
  1795. confirmButtonText: '确定',
  1796. type: 'warning',
  1797. distinguishCancelAndClose: true,
  1798. dangerouslyUseHTMLString: true
  1799. }).then(() => {
  1800. saveTechnologyArchives1(row).then((res) => {
  1801. ElMessage({
  1802. type: "success",
  1803. message: res.cg,
  1804. duration: 2500,
  1805. showClose: true,
  1806. });
  1807. if (oldGetTime !== null && oldGetTime !== row.getTime) {
  1808. // 删除原始数据
  1809. delTechnologyArchives1ByCode(row.socialNo, oldGetTime).then((res) => {
  1810. queryTechnologyArchives1()
  1811. })
  1812. } else {
  1813. queryTechnologyArchives1()
  1814. }
  1815. })
  1816. }).catch((action) => {
  1817. if (action === 'cancel') {
  1818. queryTechnologyArchives1()
  1819. }
  1820. })
  1821. }
  1822. }
  1823. const deleteFirstInfo = (row) => {
  1824. let title = '请确认是否删除<span style="color:#d12020;">' + row.title + '</span>?'
  1825. ElMessageBox.confirm(title, {
  1826. cancelButtonText: '取消',
  1827. confirmButtonText: '确定',
  1828. type: 'warning',
  1829. distinguishCancelAndClose: true,
  1830. dangerouslyUseHTMLString: true
  1831. }).then(() => {
  1832. delTechnologyArchives1ByCode(row.socialNo, row.getTime).then((res) => {
  1833. ElMessage({
  1834. type: "success",
  1835. message: res.cg,
  1836. duration: 2500,
  1837. showClose: true,
  1838. });
  1839. queryTechnologyArchives1()
  1840. })
  1841. }).catch((action) => {
  1842. if (action === 'cancel') {
  1843. queryTechnologyArchives1()
  1844. }
  1845. })
  1846. fileList.value = [];
  1847. }
  1848. // 专业技术职称晋升情况增删改存结束
  1849. // 其它资格证书取得情况增删改存开始
  1850. // 编辑
  1851. const editSecondInfo = (row) => {
  1852. // 备份原始数据
  1853. row['oldRow'] = JSON.parse(JSON.stringify(row))
  1854. row.isEdit = true
  1855. }
  1856. // 取消
  1857. const cancelSecondInfo = (row, index) => {
  1858. // 如果是新增的数据
  1859. if (row.isAdd) {
  1860. secondData.value.splice(index, 1)
  1861. } else {
  1862. // 不是新增的数据 还原数据
  1863. for (const i in row.oldRow) {
  1864. row[i] = row.oldRow[i]
  1865. }
  1866. }
  1867. secondKey.value = Math.random()
  1868. }
  1869. // 保存
  1870. const updateSecondInfo = (row) => {
  1871. if (!row.socialNo || !row.no) {
  1872. ElMessage({
  1873. type: "warning",
  1874. message: "身份证号或序号不存在,请检查!",
  1875. duration: 2500,
  1876. showClose: true,
  1877. });
  1878. return
  1879. }
  1880. let strNo = row.no + ''
  1881. if (!strNo.match(/^[0-9]+$/) || strNo.length > 10000) {
  1882. ElMessage({
  1883. type: "warning",
  1884. message: "序号不是正整数或者超长,请检查!",
  1885. duration: 2500,
  1886. showClose: true,
  1887. });
  1888. return
  1889. }
  1890. if (row.isAdd) {
  1891. let fe = 0
  1892. for (let num in secondData.value) {
  1893. if (secondData.value[num].no === row.no) {
  1894. fe++
  1895. }
  1896. }
  1897. if (fe === 2) {
  1898. ElMessage({
  1899. type: "warning",
  1900. message: "存在重复的技术职称,请核对!",
  1901. duration: 2500,
  1902. showClose: true,
  1903. });
  1904. } else {
  1905. callSaveSecondInfo(row, null)
  1906. }
  1907. } else {
  1908. let oldNo = row.oldRow.no
  1909. if (oldNo !== row.no) {
  1910. ElMessageBox.confirm(megTip, {
  1911. cancelButtonText: '取消',
  1912. confirmButtonText: '确定',
  1913. type: 'warning',
  1914. distinguishCancelAndClose: true,
  1915. dangerouslyUseHTMLString: true
  1916. }).then(() => {
  1917. callSaveSecondInfo(row, oldNo)
  1918. }).catch((action) => {
  1919. if (action === 'cancel') {
  1920. queryTechnologyArchives2()
  1921. }
  1922. })
  1923. } else {
  1924. callSaveSecondInfo(row, oldNo)
  1925. }
  1926. }
  1927. }
  1928. const callSaveSecondInfo = (row, oldNo) => {
  1929. let title = '请确认是否保存<span style="color:#d12020;">' + row.name + '</span>?'
  1930. ElMessageBox.confirm(title, {
  1931. cancelButtonText: '取消',
  1932. confirmButtonText: '确定',
  1933. type: 'warning',
  1934. distinguishCancelAndClose: true,
  1935. dangerouslyUseHTMLString: true
  1936. }).then(() => {
  1937. saveTechnologyArchives2(row).then((res) => {
  1938. ElMessage({
  1939. type: "success",
  1940. message: res.cg,
  1941. duration: 2500,
  1942. showClose: true,
  1943. });
  1944. if (oldNo !== null && oldNo !== row.no) {
  1945. // 删除原始数据
  1946. delTechnologyArchives2ByCode(row.socialNo, row.no).then((res) => {
  1947. queryTechnologyArchives2()
  1948. })
  1949. } else {
  1950. queryTechnologyArchives2()
  1951. }
  1952. })
  1953. }).catch((action) => {
  1954. if (action === 'cancel') {
  1955. queryTechnologyArchives2()
  1956. }
  1957. })
  1958. }
  1959. const deleteSecondInfo = (row) => {
  1960. let title = '请确认是否删除<span style="color:#d12020;">' + row.name + '</span>?'
  1961. ElMessageBox.confirm(title, {
  1962. cancelButtonText: '取消',
  1963. confirmButtonText: '确定',
  1964. type: 'warning',
  1965. distinguishCancelAndClose: true,
  1966. dangerouslyUseHTMLString: true
  1967. }).then(() => {
  1968. delTechnologyArchives2ByCode(row.socialNo, row.no).then((res) => {
  1969. ElMessage({
  1970. type: "success",
  1971. message: res.cg,
  1972. duration: 2500,
  1973. showClose: true,
  1974. });
  1975. queryTechnologyArchives2()
  1976. })
  1977. }).catch((action) => {
  1978. if (action === 'cancel') {
  1979. queryTechnologyArchives2()
  1980. }
  1981. })
  1982. }
  1983. // 其它资格证书取得情况增删改存结束
  1984. // 工作经历增删改存开始
  1985. // 编辑
  1986. const editThirdInfo = (row) => {
  1987. // 备份原始数据
  1988. row['oldRow'] = JSON.parse(JSON.stringify(row))
  1989. row.isEdit = true
  1990. }
  1991. // 取消
  1992. const cancelThirdInfo = (row, index) => {
  1993. // 如果是新增的数据
  1994. if (row.isAdd) {
  1995. thirdData.value.splice(index, 1)
  1996. } else {
  1997. // 不是新增的数据 还原数据
  1998. for (const i in row.oldRow) {
  1999. row[i] = row.oldRow[i]
  2000. }
  2001. }
  2002. thirdKey.value = Math.random()
  2003. }
  2004. // 保存
  2005. const updateThirdInfo = (row) => {
  2006. if (!row.socialNo) {
  2007. ElMessage({
  2008. type: "warning",
  2009. message: "身份证号不存在,请检查!",
  2010. duration: 2500,
  2011. showClose: true,
  2012. });
  2013. return
  2014. }
  2015. if (!row.isAdd && row.socialNo !== row.oldRow.socialNo) {
  2016. row.oldSocialNo = row.oldRow.socialNo
  2017. }
  2018. callSaveThirdInfo(row)
  2019. }
  2020. const callSaveThirdInfo = (row) => {
  2021. let title = '请确认是否保存<span style="color:#d12020;">' + row.title + '</span>?'
  2022. ElMessageBox.confirm(title, {
  2023. cancelButtonText: '取消',
  2024. confirmButtonText: '确定',
  2025. type: 'warning',
  2026. distinguishCancelAndClose: true,
  2027. dangerouslyUseHTMLString: true
  2028. }).then(() => {
  2029. saveTechnologyArchives3(row).then((res) => {
  2030. ElMessage({
  2031. type: "success",
  2032. message: res.cg,
  2033. duration: 2500,
  2034. showClose: true,
  2035. });
  2036. queryTechnologyArchives3()
  2037. })
  2038. }).catch((action) => {
  2039. if (action === 'cancel') {
  2040. queryTechnologyArchives3()
  2041. }
  2042. })
  2043. }
  2044. const deleteThirdInfo = (row) => {
  2045. let title = '请确认是否删除<span style="color:#d12020;">' + row.title + '</span>?'
  2046. ElMessageBox.confirm(title, {
  2047. cancelButtonText: '取消',
  2048. confirmButtonText: '确定',
  2049. type: 'warning',
  2050. distinguishCancelAndClose: true,
  2051. dangerouslyUseHTMLString: true
  2052. }).then(() => {
  2053. delTechnologyArchives3ByCode(row.socialNo, row.id).then((res) => {
  2054. ElMessage({
  2055. type: "success",
  2056. message: res.cg,
  2057. duration: 2500,
  2058. showClose: true,
  2059. });
  2060. queryTechnologyArchives3()
  2061. })
  2062. }).catch((action) => {
  2063. if (action === 'cancel') {
  2064. queryTechnologyArchives3()
  2065. }
  2066. })
  2067. }
  2068. // 工作经历增删改存结束
  2069. // (院内、院外)学习培训情况删改存开始
  2070. // 编辑
  2071. const editFourthInfo = (row) => {
  2072. // 备份原始数据
  2073. row['oldRow'] = JSON.parse(JSON.stringify(row))
  2074. row.isEdit = true
  2075. }
  2076. // 取消
  2077. const cancelFourthInfo = (row, index) => {
  2078. // 如果是新增的数据
  2079. if (row.isAdd) {
  2080. fourthData.value.splice(index, 1)
  2081. } else {
  2082. // 不是新增的数据 还原数据
  2083. for (const i in row.oldRow) {
  2084. row[i] = row.oldRow[i]
  2085. }
  2086. }
  2087. fourthKey.value = Math.random()
  2088. }
  2089. // 保存
  2090. const updateFourthInfo = (row) => {
  2091. if (!row.socialNo) {
  2092. ElMessage({
  2093. type: "warning",
  2094. message: "身份证号不存在,请检查!",
  2095. duration: 2500,
  2096. showClose: true,
  2097. });
  2098. return
  2099. }
  2100. if (!row.isAdd && row.socialNo !== row.oldRow.socialNo) {
  2101. row.oldSocialNo = row.oldRow.socialNo
  2102. }
  2103. callSaveFourthInfo(row)
  2104. }
  2105. const callSaveFourthInfo = (row) => {
  2106. let title = '请确认是否保存<span style="color:#d12020;">' + row.learningContent.length > 10 ? row.learningContent.substring(0,10) + '...' : row.learningContent + '</span>?'
  2107. ElMessageBox.confirm(title, {
  2108. cancelButtonText: '取消',
  2109. confirmButtonText: '确定',
  2110. type: 'warning',
  2111. distinguishCancelAndClose: true,
  2112. dangerouslyUseHTMLString: true
  2113. }).then(() => {
  2114. let learnData = learnOptions.filter((item) => {
  2115. return item.code === row.learningStyle
  2116. })
  2117. row.learningName = learnData[0].name
  2118. saveTechnologyArchives4(row).then((res) => {
  2119. ElMessage({
  2120. type: "success",
  2121. message: res.cg,
  2122. duration: 2500,
  2123. showClose: true,
  2124. });
  2125. queryTechnologyArchives4()
  2126. })
  2127. }).catch((action) => {
  2128. if (action === 'cancel') {
  2129. queryTechnologyArchives4()
  2130. }
  2131. })
  2132. }
  2133. const deleteFourthInfo = (row) => {
  2134. let title = '请确认是否删除<span style="color:#d12020;">' + row.learningContent.length > 10 ? row.learningContent.substring(0,10) + '...' : row.learningContent + '</span>?'
  2135. ElMessageBox.confirm(title, {
  2136. cancelButtonText: '取消',
  2137. confirmButtonText: '确定',
  2138. type: 'warning',
  2139. distinguishCancelAndClose: true,
  2140. dangerouslyUseHTMLString: true
  2141. }).then(() => {
  2142. delTechnologyArchives4ByCode(row.socialNo, row.id).then((res) => {
  2143. ElMessage({
  2144. type: "success",
  2145. message: res.cg,
  2146. duration: 2500,
  2147. showClose: true,
  2148. });
  2149. queryTechnologyArchives4()
  2150. })
  2151. }).catch((action) => {
  2152. if (action === 'cancel') {
  2153. queryTechnologyArchives4()
  2154. }
  2155. })
  2156. }
  2157. // (院内、院外)学习培训情况删改存开始增删改存结束
  2158. // 发表论文或专著情况增删改存开始
  2159. // 编辑
  2160. const editFifthInfo = (row) => {
  2161. // 备份原始数据
  2162. row['oldRow'] = JSON.parse(JSON.stringify(row))
  2163. row.isEdit = true
  2164. }
  2165. // 取消
  2166. const cancelFifthInfo = (row, index) => {
  2167. // 如果是新增的数据
  2168. if (row.isAdd) {
  2169. fifthData.value.splice(index, 1)
  2170. } else {
  2171. // 不是新增的数据 还原数据
  2172. for (const i in row.oldRow) {
  2173. row[i] = row.oldRow[i]
  2174. }
  2175. }
  2176. fifthKey.value = Math.random()
  2177. }
  2178. // 保存
  2179. const updateFifthInfo = (row) => {
  2180. if (!row.socialNo || !row.time) {
  2181. ElMessage({
  2182. type: "warning",
  2183. message: "身份证号或发表时间不存在,请检查!",
  2184. duration: 2500,
  2185. showClose: true,
  2186. });
  2187. return
  2188. }
  2189. if (row.isAdd) {
  2190. let fe = 0
  2191. for (let num in fifthData.value) {
  2192. if (fifthData.value[num].time === row.time) {
  2193. fe++
  2194. }
  2195. }
  2196. if (fe === 2) {
  2197. ElMessage({
  2198. type: "warning",
  2199. message: "存在重复的论文或专著题目,请核对!",
  2200. duration: 2500,
  2201. showClose: true,
  2202. });
  2203. } else {
  2204. callSaveFifthInfo(row, null)
  2205. }
  2206. } else {
  2207. let oldTime = row.oldRow.time
  2208. if (oldTime !== row.time) {
  2209. ElMessageBox.confirm(megTip, {
  2210. cancelButtonText: '取消',
  2211. confirmButtonText: '确定',
  2212. type: 'warning',
  2213. distinguishCancelAndClose: true,
  2214. dangerouslyUseHTMLString: true
  2215. }).then(() => {
  2216. callSaveFifthInfo(row, oldTime)
  2217. }).catch((action) => {
  2218. if (action === 'cancel') {
  2219. queryTechnologyArchives5()
  2220. }
  2221. })
  2222. } else {
  2223. callSaveFifthInfo(row, oldTime)
  2224. }
  2225. }
  2226. }
  2227. const callSaveFifthInfo = (row, oldTime) => {
  2228. let title = '请确认是否保存<span style="color:#d12020;">' + row.topic + '</span>?'
  2229. ElMessageBox.confirm(title, {
  2230. cancelButtonText: '取消',
  2231. confirmButtonText: '确定',
  2232. type: 'warning',
  2233. distinguishCancelAndClose: true,
  2234. dangerouslyUseHTMLString: true
  2235. }).then(() => {
  2236. saveTechnologyArchives5(row).then((res) => {
  2237. ElMessage({
  2238. type: "success",
  2239. message: res.cg,
  2240. duration: 2500,
  2241. showClose: true,
  2242. });
  2243. if (oldTime !== null && oldTime !== row.time) {
  2244. // 删除原始数据
  2245. delTechnologyArchives5ByCode(row.socialNo, oldTime).then((res) => {
  2246. queryTechnologyArchives5()
  2247. })
  2248. } else {
  2249. queryTechnologyArchives5()
  2250. }
  2251. })
  2252. }).catch((action) => {
  2253. if (action === 'cancel') {
  2254. queryTechnologyArchives5()
  2255. }
  2256. })
  2257. }
  2258. const deleteFifthInfo = (row) => {
  2259. let title = '请确认是否删除<span style="color:#d12020;">' + row.topic + '</span>?'
  2260. ElMessageBox.confirm(title, {
  2261. cancelButtonText: '取消',
  2262. confirmButtonText: '确定',
  2263. type: 'warning',
  2264. distinguishCancelAndClose: true,
  2265. dangerouslyUseHTMLString: true
  2266. }).then(() => {
  2267. delTechnologyArchives5ByCode(row.socialNo, row.time).then((res) => {
  2268. ElMessage({
  2269. type: "success",
  2270. message: res.cg,
  2271. duration: 2500,
  2272. showClose: true,
  2273. });
  2274. queryTechnologyArchives5()
  2275. })
  2276. }).catch((action) => {
  2277. if (action === 'cancel') {
  2278. queryTechnologyArchives5()
  2279. }
  2280. })
  2281. }
  2282. // 发表论文或专著情况增删改存结束
  2283. // 科研情况增删改存开始
  2284. // 编辑
  2285. const editSixthInfo = (row) => {
  2286. // 备份原始数据
  2287. row['oldRow'] = JSON.parse(JSON.stringify(row))
  2288. row.isEdit = true
  2289. }
  2290. // 取消
  2291. const cancelSixthInfo = (row, index) => {
  2292. // 如果是新增的数据
  2293. if (row.isAdd) {
  2294. sixthData.value.splice(index, 1)
  2295. } else {
  2296. // 不是新增的数据 还原数据
  2297. for (const i in row.oldRow) {
  2298. row[i] = row.oldRow[i]
  2299. }
  2300. }
  2301. sixthKey.value = Math.random()
  2302. }
  2303. // 保存
  2304. const updateSixthInfo = (row) => {
  2305. if (!row.socialNo) {
  2306. ElMessage({
  2307. type: "warning",
  2308. message: "身份证号不存在,请检查!",
  2309. duration: 2500,
  2310. showClose: true,
  2311. });
  2312. return
  2313. }
  2314. if (!row.isAdd && row.socialNo !== row.oldRow.socialNo) {
  2315. row.oldSocialNo = row.oldRow.socialNo
  2316. }
  2317. callSaveSixthInfo(row)
  2318. }
  2319. const callSaveSixthInfo = (row) => {
  2320. let title = '请确认是否保存<span style="color:#d12020;">' + row.name + '</span>?'
  2321. ElMessageBox.confirm(title, {
  2322. cancelButtonText: '取消',
  2323. confirmButtonText: '确定',
  2324. type: 'warning',
  2325. distinguishCancelAndClose: true,
  2326. dangerouslyUseHTMLString: true
  2327. }).then(() => {
  2328. saveTechnologyArchives6(row).then((res) => {
  2329. ElMessage({
  2330. type: "success",
  2331. message: res.cg,
  2332. duration: 2500,
  2333. showClose: true,
  2334. });
  2335. queryTechnologyArchives6()
  2336. })
  2337. }).catch((action) => {
  2338. if (action === 'cancel') {
  2339. queryTechnologyArchives6()
  2340. }
  2341. })
  2342. }
  2343. // 删除
  2344. const deleteSixthInfo = (row) => {
  2345. let title = '请确认是否删除<span style="color:#d12020;">' + row.name + '</span>?'
  2346. ElMessageBox.confirm(title, {
  2347. cancelButtonText: '取消',
  2348. confirmButtonText: '确定',
  2349. type: 'warning',
  2350. distinguishCancelAndClose: true,
  2351. dangerouslyUseHTMLString: true
  2352. }).then(() => {
  2353. delTechnologyArchives6ByCode(row.socialNo, row.id).then((res) => {
  2354. ElMessage({
  2355. type: "success",
  2356. message: res.cg,
  2357. duration: 2500,
  2358. showClose: true,
  2359. });
  2360. queryTechnologyArchives6()
  2361. })
  2362. }).catch((action) => {
  2363. if (action === 'cancel') {
  2364. queryTechnologyArchives6()
  2365. }
  2366. })
  2367. }
  2368. // 科研情况增删改存结束
  2369. // 开展新技术情况增删改存开始
  2370. // 编辑
  2371. const editSeventhInfo = (row) => {
  2372. // 备份原始数据
  2373. row['oldRow'] = JSON.parse(JSON.stringify(row))
  2374. row.isEdit = true
  2375. }
  2376. // 取消
  2377. const cancelSeventhInfo = (row, index) => {
  2378. // 如果是新增的数据
  2379. if (row.isAdd) {
  2380. seventhData.value.splice(index, 1)
  2381. } else {
  2382. // 不是新增的数据 还原数据
  2383. for (const i in row.oldRow) {
  2384. row[i] = row.oldRow[i]
  2385. }
  2386. }
  2387. seventhKey.value = Math.random()
  2388. }
  2389. // 保存
  2390. const updateSeventhInfo = (row) => {
  2391. if (!row.socialNo) {
  2392. ElMessage({
  2393. type: "warning",
  2394. message: "身份证号不存在,请检查!",
  2395. duration: 2500,
  2396. showClose: true,
  2397. });
  2398. return
  2399. }
  2400. if (!row.isAdd && row.socialNo !== row.oldRow.socialNo) {
  2401. row.oldSocialNo = row.oldRow.socialNo
  2402. }
  2403. callSaveSeventhInfo(row)
  2404. }
  2405. const callSaveSeventhInfo = (row) => {
  2406. let title = '请确认是否保存<span style="color:#d12020;">' + row.name + '</span>?'
  2407. ElMessageBox.confirm(title, {
  2408. cancelButtonText: '取消',
  2409. confirmButtonText: '确定',
  2410. type: 'warning',
  2411. distinguishCancelAndClose: true,
  2412. dangerouslyUseHTMLString: true
  2413. }).then(() => {
  2414. saveTechnologyArchives7(row).then((res) => {
  2415. ElMessage({
  2416. type: "success",
  2417. message: res.cg,
  2418. duration: 2500,
  2419. showClose: true,
  2420. });
  2421. queryTechnologyArchives7()
  2422. })
  2423. }).catch((action) => {
  2424. if (action === 'cancel') {
  2425. queryTechnologyArchives7()
  2426. }
  2427. })
  2428. }
  2429. // 删除
  2430. const deleteSeventhInfo = (row) => {
  2431. let title = '请确认是否删除<span style="color:#d12020;">' + row.name + '</span>?'
  2432. ElMessageBox.confirm(title, {
  2433. cancelButtonText: '取消',
  2434. confirmButtonText: '确定',
  2435. type: 'warning',
  2436. distinguishCancelAndClose: true,
  2437. dangerouslyUseHTMLString: true
  2438. }).then(() => {
  2439. delTechnologyArchives7ByCode(row.socialNo, row.id).then((res) => {
  2440. ElMessage({
  2441. type: "success",
  2442. message: res.cg,
  2443. duration: 2500,
  2444. showClose: true,
  2445. });
  2446. queryTechnologyArchives7()
  2447. })
  2448. }).catch((action) => {
  2449. if (action === 'cancel') {
  2450. queryTechnologyArchives7()
  2451. }
  2452. })
  2453. }
  2454. // 开展新技术情况增删改存结束
  2455. // 培训考试考核情况增删改存开始
  2456. // 编辑
  2457. const editNinthInfo = (row) => {
  2458. // 备份原始数据
  2459. row['oldRow'] = JSON.parse(JSON.stringify(row))
  2460. row.isEdit = true
  2461. }
  2462. // 取消
  2463. const cancelNinthInfo = (row, index) => {
  2464. // 如果是新增的数据
  2465. if (row.isAdd) {
  2466. ninthData.value.splice(index, 1)
  2467. } else {
  2468. // 不是新增的数据 还原数据
  2469. for (const i in row.oldRow) {
  2470. row[i] = row.oldRow[i]
  2471. }
  2472. }
  2473. ninthKey.value = Math.random()
  2474. }
  2475. // 保存
  2476. const updateNinthInfo = (row) => {
  2477. if (!row.socialNo) {
  2478. ElMessage({
  2479. type: "warning",
  2480. message: "身份证号不存在,请检查!",
  2481. duration: 2500,
  2482. showClose: true,
  2483. });
  2484. return
  2485. }
  2486. if (!row.isAdd && row.socialNo !== row.oldRow.socialNo) {
  2487. row.oldSocialNo = row.oldRow.socialNo
  2488. }
  2489. callSaveNinthInfo(row)
  2490. }
  2491. const callSaveNinthInfo = (row) => {
  2492. let title = '请确认是否保存<span style="color:#d12020;">' + row.content.length > 10 ? row.content.substring(0,10) + '...' : row.content + '</span>?'
  2493. ElMessageBox.confirm(title, {
  2494. cancelButtonText: '取消',
  2495. confirmButtonText: '确定',
  2496. type: 'warning',
  2497. distinguishCancelAndClose: true,
  2498. dangerouslyUseHTMLString: true
  2499. }).then(() => {
  2500. saveTechnologyArchives9(row).then((res) => {
  2501. ElMessage({
  2502. type: "success",
  2503. message: res.cg,
  2504. duration: 2500,
  2505. showClose: true,
  2506. });
  2507. queryTechnologyArchives9()
  2508. })
  2509. }).catch((action) => {
  2510. if (action === 'cancel') {
  2511. queryTechnologyArchives9()
  2512. }
  2513. })
  2514. }
  2515. // 删除
  2516. const deleteNinthInfo = (row) => {
  2517. let title = '请确认是否删除<span style="color:#d12020;">' + row.content.length > 10 ? row.content.substring(0,10) + '...' : row.content + '</span>?'
  2518. ElMessageBox.confirm(title, {
  2519. cancelButtonText: '取消',
  2520. confirmButtonText: '确定',
  2521. type: 'warning',
  2522. distinguishCancelAndClose: true,
  2523. dangerouslyUseHTMLString: true
  2524. }).then(() => {
  2525. delTechnologyArchives9ByCode(row.socialNo, row.id).then((res) => {
  2526. ElMessage({
  2527. type: "success",
  2528. message: res.cg,
  2529. duration: 2500,
  2530. showClose: true,
  2531. });
  2532. queryTechnologyArchives9()
  2533. })
  2534. }).catch((action) => {
  2535. if (action === 'cancel') {
  2536. queryTechnologyArchives9()
  2537. }
  2538. })
  2539. }
  2540. // 培训考试考核情况增删改存结束
  2541. // 各种医疗活动记录增删改存开始
  2542. // 编辑
  2543. const editTenthInfo = (row) => {
  2544. // 备份原始数据
  2545. row['oldRow'] = JSON.parse(JSON.stringify(row))
  2546. row.isEdit = true
  2547. }
  2548. // 取消
  2549. const cancelTenthInfo = (row, index) => {
  2550. // 如果是新增的数据
  2551. if (row.isAdd) {
  2552. tenthData.value.splice(index, 1)
  2553. } else {
  2554. // 不是新增的数据 还原数据
  2555. for (const i in row.oldRow) {
  2556. row[i] = row.oldRow[i]
  2557. }
  2558. }
  2559. tenthKey.value = Math.random()
  2560. }
  2561. // 保存
  2562. const updateTenthInfo = (row) => {
  2563. if (!row.socialNo) {
  2564. ElMessage({
  2565. type: "warning",
  2566. message: "身份证号不存在,请检查!",
  2567. duration: 2500,
  2568. showClose: true,
  2569. });
  2570. return
  2571. }
  2572. if (!row.isAdd && row.socialNo !== row.oldRow.socialNo) {
  2573. row.oldSocialNo = row.oldRow.socialNo
  2574. }
  2575. callSaveTenthInfo(row)
  2576. }
  2577. const callSaveTenthInfo = (row) => {
  2578. let title = '请确认是否保存<span style="color:#d12020;">' + row.record.length > 10 ? row.record.substring(0,10) + '...' : row.record + '</span>?'
  2579. ElMessageBox.confirm(title, {
  2580. cancelButtonText: '取消',
  2581. confirmButtonText: '确定',
  2582. type: 'warning',
  2583. distinguishCancelAndClose: true,
  2584. dangerouslyUseHTMLString: true
  2585. }).then(() => {
  2586. saveTechnologyArchives10(row).then((res) => {
  2587. ElMessage({
  2588. type: "success",
  2589. message: res.cg,
  2590. duration: 2500,
  2591. showClose: true,
  2592. });
  2593. queryTechnologyArchives10()
  2594. })
  2595. }).catch((action) => {
  2596. if (action === 'cancel') {
  2597. queryTechnologyArchives10()
  2598. }
  2599. })
  2600. }
  2601. // 删除
  2602. const deleteTenthInfo = (row) => {
  2603. let title = '请确认是否删除<span style="color:#d12020;">' + row.record.length > 10 ? row.record.substring(0,10) + '...' : row.record + '</span>?'
  2604. ElMessageBox.confirm(title, {
  2605. cancelButtonText: '取消',
  2606. confirmButtonText: '确定',
  2607. type: 'warning',
  2608. distinguishCancelAndClose: true,
  2609. dangerouslyUseHTMLString: true
  2610. }).then(() => {
  2611. delTechnologyArchives10ByCode(row.socialNo, row.id).then((res) => {
  2612. ElMessage({
  2613. type: "success",
  2614. message: res.cg,
  2615. duration: 2500,
  2616. showClose: true,
  2617. });
  2618. queryTechnologyArchives10()
  2619. })
  2620. }).catch((action) => {
  2621. if (action === 'cancel') {
  2622. queryTechnologyArchives10()
  2623. }
  2624. })
  2625. }
  2626. // 各种医疗活动记录增删改存结束
  2627. // 奖惩情况增删改存开始
  2628. // 编辑
  2629. const editTwelfthInfo = (row) => {
  2630. // 备份原始数据
  2631. row['oldRow'] = JSON.parse(JSON.stringify(row))
  2632. row.isEdit = true
  2633. }
  2634. // 取消
  2635. const cancelTwelfthInfo = (row, index) => {
  2636. // 如果是新增的数据
  2637. if (row.isAdd) {
  2638. twelfthData.value.splice(index, 1)
  2639. } else {
  2640. // 不是新增的数据 还原数据
  2641. for (const i in row.oldRow) {
  2642. row[i] = row.oldRow[i]
  2643. }
  2644. }
  2645. twelfthKey.value = Math.random()
  2646. }
  2647. // 保存
  2648. const updateTwelfthInfo = (row) => {
  2649. if (!row.socialNo) {
  2650. ElMessage({
  2651. type: "warning",
  2652. message: "身份证号不存在,请检查!",
  2653. duration: 2500,
  2654. showClose: true,
  2655. });
  2656. return
  2657. }
  2658. if (!row.isAdd && row.socialNo !== row.oldRow.socialNo) {
  2659. row.oldSocialNo = row.oldRow.socialNo
  2660. }
  2661. callSaveTwelfthInfo(row)
  2662. }
  2663. const callSaveTwelfthInfo = (row) => {
  2664. let title = '请确认是否保存<span style="color:#d12020;">' + row.comment.length > 10 ? row.comment.substring(0,10) + '...' : row.comment + '</span>?'
  2665. ElMessageBox.confirm(title, {
  2666. cancelButtonText: '取消',
  2667. confirmButtonText: '确定',
  2668. type: 'warning',
  2669. distinguishCancelAndClose: true,
  2670. dangerouslyUseHTMLString: true
  2671. }).then(() => {
  2672. saveTechnologyArchives12(row).then((res) => {
  2673. ElMessage({
  2674. type: "success",
  2675. message: res.cg,
  2676. duration: 2500,
  2677. showClose: true,
  2678. });
  2679. queryTechnologyArchives12()
  2680. })
  2681. }).catch((action) => {
  2682. if (action === 'cancel') {
  2683. queryTechnologyArchives12()
  2684. }
  2685. })
  2686. }
  2687. // 删除
  2688. const deleteTwelfthInfo = (row) => {
  2689. let title = '请确认是否删除<span style="color:#d12020;">' + row.comment.length > 10 ? row.comment.substring(0,10) + '...' : row.comment + '</span>?'
  2690. ElMessageBox.confirm(title, {
  2691. cancelButtonText: '取消',
  2692. confirmButtonText: '确定',
  2693. type: 'warning',
  2694. distinguishCancelAndClose: true,
  2695. dangerouslyUseHTMLString: true
  2696. }).then(() => {
  2697. delTechnologyArchives12ByCode(row.socialNo, row.id).then((res) => {
  2698. ElMessage({
  2699. type: "success",
  2700. message: res.cg,
  2701. duration: 2500,
  2702. showClose: true,
  2703. });
  2704. queryTechnologyArchives12()
  2705. })
  2706. }).catch((action) => {
  2707. if (action === 'cancel') {
  2708. queryTechnologyArchives12()
  2709. }
  2710. })
  2711. }
  2712. // 奖惩情况增删改存结束
  2713. // 专业学会任职情况增删改存开始
  2714. // 编辑
  2715. const editThirteenthInfo = (row) => {
  2716. // 备份原始数据
  2717. row['oldRow'] = JSON.parse(JSON.stringify(row))
  2718. row.isEdit = true
  2719. }
  2720. // 取消
  2721. const cancelThirteenthInfo = (row, index) => {
  2722. // 如果是新增的数据
  2723. if (row.isAdd) {
  2724. thirteenthData.value.splice(index, 1)
  2725. } else {
  2726. // 不是新增的数据 还原数据
  2727. for (const i in row.oldRow) {
  2728. row[i] = row.oldRow[i]
  2729. }
  2730. }
  2731. thirteenthKey.value = Math.random()
  2732. }
  2733. // 保存
  2734. const updateThirteenthInfo = (row) => {
  2735. if (!row.socialNo) {
  2736. ElMessage({
  2737. type: "warning",
  2738. message: "身份证号不存在,请检查!",
  2739. duration: 2500,
  2740. showClose: true,
  2741. });
  2742. return
  2743. }
  2744. if (!row.isAdd && row.socialNo !== row.oldRow.socialNo) {
  2745. row.oldSocialNo = row.oldRow.socialNo
  2746. }
  2747. callSaveThirteenthInfo(row)
  2748. }
  2749. const callSaveThirteenthInfo = (row) => {
  2750. let title = '请确认是否保存<span style="color:#d12020;">' + row.name.length > 10 ? row.name.substring(0,10) + '...' : row.name + '</span>?'
  2751. ElMessageBox.confirm(title, {
  2752. cancelButtonText: '取消',
  2753. confirmButtonText: '确定',
  2754. type: 'warning',
  2755. distinguishCancelAndClose: true,
  2756. dangerouslyUseHTMLString: true
  2757. }).then(() => {
  2758. saveTechnologyArchives13(row).then((res) => {
  2759. ElMessage({
  2760. type: "success",
  2761. message: res.cg,
  2762. duration: 2500,
  2763. showClose: true,
  2764. });
  2765. queryTechnologyArchives13()
  2766. })
  2767. }).catch((action) => {
  2768. if (action === 'cancel') {
  2769. queryTechnologyArchives13()
  2770. }
  2771. })
  2772. }
  2773. // 删除
  2774. const deleteThirteenthInfo = (row) => {
  2775. let title = '请确认是否删除<span style="color:#d12020;">' + row.name.length > 10 ? row.name.substring(0,10) + '...' : row.name + '</span>?'
  2776. ElMessageBox.confirm(title, {
  2777. cancelButtonText: '取消',
  2778. confirmButtonText: '确定',
  2779. type: 'warning',
  2780. distinguishCancelAndClose: true,
  2781. dangerouslyUseHTMLString: true
  2782. }).then(() => {
  2783. delTechnologyArchives13ByCode(row.socialNo, row.id).then((res) => {
  2784. ElMessage({
  2785. type: "success",
  2786. message: res.cg,
  2787. duration: 2500,
  2788. showClose: true,
  2789. });
  2790. queryTechnologyArchives13()
  2791. })
  2792. }).catch((action) => {
  2793. if (action === 'cancel') {
  2794. queryTechnologyArchives13()
  2795. }
  2796. })
  2797. }
  2798. // 专业学会任职情况增删改存结束
  2799. // 继续教育学分获得情况增删改存开始
  2800. // 编辑
  2801. const editFourteenthInfo = (row) => {
  2802. // 备份原始数据
  2803. row['oldRow'] = JSON.parse(JSON.stringify(row))
  2804. row.isEdit = true
  2805. }
  2806. // 取消
  2807. const cancelFourteenthInfo = (row, index) => {
  2808. // 如果是新增的数据
  2809. if (row.isAdd) {
  2810. fourteenthData.value.splice(index, 1)
  2811. } else {
  2812. // 不是新增的数据 还原数据
  2813. for (const i in row.oldRow) {
  2814. row[i] = row.oldRow[i]
  2815. }
  2816. }
  2817. fourteenthKey.value = Math.random()
  2818. }
  2819. // 保存
  2820. const updateFourteenthInfo = (row) => {
  2821. if (!row.socialNo) {
  2822. ElMessage({
  2823. type: "warning",
  2824. message: "身份证号不存在,请检查!",
  2825. duration: 2500,
  2826. showClose: true,
  2827. });
  2828. return
  2829. }
  2830. let reg = /^[0-9]+([.][0-9]+)?$/
  2831. if (!reg.test(row.score1 === '' ? '0' : row.score1)
  2832. || !reg.test(row.score2 === '' ? '0' : row.score2)
  2833. || !reg.test(row.other === '' ? '0' : row.other)) {
  2834. ElMessage({
  2835. type: "warning",
  2836. message: "各个学分存在不是数字,请检查各个学分填写是否合理!",
  2837. duration: 2500,
  2838. showClose: true,
  2839. });
  2840. return
  2841. }
  2842. if (!row.isAdd && row.socialNo !== row.oldRow.socialNo) {
  2843. row.oldSocialNo = row.oldRow.socialNo
  2844. }
  2845. callSaveFourteenthInfo(row)
  2846. }
  2847. const callSaveFourteenthInfo = (row) => {
  2848. let title = '请确认是否保存<span style="color:#d12020;">' + row.year + '</span>?'
  2849. ElMessageBox.confirm(title, {
  2850. cancelButtonText: '取消',
  2851. confirmButtonText: '确定',
  2852. type: 'warning',
  2853. distinguishCancelAndClose: true,
  2854. dangerouslyUseHTMLString: true
  2855. }).then(() => {
  2856. saveTechnologyArchives14(row).then((res) => {
  2857. ElMessage({
  2858. type: "success",
  2859. message: res.cg,
  2860. duration: 2500,
  2861. showClose: true,
  2862. });
  2863. queryTechnologyArchives14()
  2864. })
  2865. }).catch((action) => {
  2866. if (action === 'cancel') {
  2867. queryTechnologyArchives14()
  2868. }
  2869. })
  2870. }
  2871. // 删除
  2872. const deleteFourteenthInfo = (row) => {
  2873. let title = '请确认是否删除<span style="color:#d12020;">' + row.year + '</span>?'
  2874. ElMessageBox.confirm(title, {
  2875. cancelButtonText: '取消',
  2876. confirmButtonText: '确定',
  2877. type: 'warning',
  2878. distinguishCancelAndClose: true,
  2879. dangerouslyUseHTMLString: true
  2880. }).then(() => {
  2881. delTechnologyArchives14ByCode(row.socialNo, row.id).then((res) => {
  2882. ElMessage({
  2883. type: "success",
  2884. message: res.cg,
  2885. duration: 2500,
  2886. showClose: true,
  2887. });
  2888. queryTechnologyArchives14()
  2889. })
  2890. }).catch((action) => {
  2891. if (action === 'cancel') {
  2892. queryTechnologyArchives14()
  2893. }
  2894. })
  2895. }
  2896. // 继续教育学分获得情况增删改存结束
  2897. // 继续教育学分获得情况合计格式化
  2898. const totalFormat = (data) => {
  2899. data.total = Number.parseFloat(data.score1 === '' ? '0' : data.score1)
  2900. + Number.parseFloat(data.score2 === '' ? '0' : data.score2)
  2901. + Number.parseFloat(data.other === '' ? '0' : data.other)
  2902. }
  2903. </script>
  2904. <style scoped>
  2905. .numbered-list {
  2906. counter-reset: section; /* 创建一个名为section的计数器 */
  2907. }
  2908. .numbered-list li::before {
  2909. counter-increment: section; /* 每个li元素增加计数器的值 */
  2910. content: counters(section, ".") " "; /* 在li元素前添加计数器的当前值 */
  2911. }
  2912. </style>