technology-archives.js 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221
  1. import request from '../../utils/request'
  2. import {ElMessage, ElMessageBox} from "element-plus";
  3. import {downloadExcel} from "@/utils/excel";
  4. // 查询员工基本信息
  5. export function selectEmployeeInfo(text) {
  6. return request({
  7. url: '/technologyArchives/selectEmployeeInfo',
  8. method: 'get',
  9. params: { text },
  10. })
  11. }
  12. // 查询员工基本信息
  13. export function selectDictInfo() {
  14. return request({
  15. url: '/technologyArchives/selectDictInfo',
  16. method: 'get',
  17. params: { },
  18. })
  19. }
  20. // 保存技术文档基本信息
  21. export function saveTechnologyArchivesMain(data) {
  22. return request({
  23. url: '/technologyArchives/saveTechnologyArchivesMain',
  24. method: 'post',
  25. data,
  26. })
  27. }
  28. // 查询技术文档1
  29. export function selectTechnologyArchives1() {
  30. return request({
  31. url: '/technologyArchives/selectTechnologyArchives1',
  32. method: 'get',
  33. params: { },
  34. })
  35. }
  36. // 查询技术文档1
  37. // export function selectTa1(socialNo) {
  38. // return request({
  39. // url: '/technologyArchives/selectTa1',
  40. // method: 'get',
  41. // params: { socialNo },
  42. // })
  43. // }
  44. export function setImage1(socialNo, getTime, url) {
  45. return request({
  46. url: '/technologyArchives/setImage1',
  47. method: 'get',
  48. params: { socialNo, getTime, url },
  49. })
  50. }
  51. // 查询技术文档的图片
  52. export function selectImage1(socialNo, getTime) {
  53. return request({
  54. url: '/technologyArchives/selectImage1',
  55. method: 'get',
  56. params: { socialNo, getTime },
  57. })
  58. }
  59. // 删除技术文档的图片
  60. // export function deleteImage1(socialNo, getTime) {
  61. // return request({
  62. // url: '/technologyArchives/deleteImage1',
  63. // method: 'get',
  64. // params: { socialNo, getTime },
  65. // })
  66. // }
  67. // 保存技术文档1
  68. export function saveTechnologyArchives1(data) {
  69. return request({
  70. url: '/technologyArchives/saveTechnologyArchives1',
  71. method: 'post',
  72. data,
  73. })
  74. }
  75. // 根据serialNo, getTime删除技术文档1
  76. export function delTechnologyArchives1ByCode(socialNo, getTime) {
  77. return request({
  78. url: '/technologyArchives/delTechnologyArchives1ByCode',
  79. method: 'get',
  80. params: { socialNo, getTime },
  81. })
  82. }
  83. // 查询技术文档2
  84. export function selectTechnologyArchives2() {
  85. return request({
  86. url: '/technologyArchives/selectTechnologyArchives2',
  87. method: 'get',
  88. params: { },
  89. })
  90. }
  91. // 查询技术文档2的图片
  92. export function selectImage2(socialNo, no) {
  93. return request({
  94. url: '/technologyArchives/selectImage2',
  95. method: 'get',
  96. params: { socialNo, no },
  97. })
  98. }
  99. export function setImage2(socialNo, no,url) {
  100. return request({
  101. url: '/technologyArchives/setImage2',
  102. method: 'get',
  103. params: { socialNo, no, url },
  104. })
  105. }
  106. // 保存技术文档2
  107. export function saveTechnologyArchives2(data) {
  108. return request({
  109. url: '/technologyArchives/saveTechnologyArchives2',
  110. method: 'post',
  111. data,
  112. })
  113. }
  114. // 根据serialNo, no删除技术文档2
  115. export function delTechnologyArchives2ByCode(socialNo, no) {
  116. return request({
  117. url: '/technologyArchives/delTechnologyArchives2ByCode',
  118. method: 'get',
  119. params: { socialNo, no },
  120. })
  121. }
  122. // 查询技术文档3
  123. export function selectTechnologyArchives3() {
  124. return request({
  125. url: '/technologyArchives/selectTechnologyArchives3',
  126. method: 'get',
  127. params: { },
  128. })
  129. }
  130. // 保存技术文档3
  131. export function saveTechnologyArchives3(data) {
  132. return request({
  133. url: '/technologyArchives/saveTechnologyArchives3',
  134. method: 'post',
  135. data,
  136. })
  137. }
  138. // 根据serialNo, id删除技术文档3
  139. export function delTechnologyArchives3ByCode(socialNo, id) {
  140. return request({
  141. url: '/technologyArchives/delTechnologyArchives3ByCode',
  142. method: 'get',
  143. params: { socialNo, id },
  144. })
  145. }
  146. // 查询技术文档4
  147. export function selectTechnologyArchives4() {
  148. return request({
  149. url: '/technologyArchives/selectTechnologyArchives4',
  150. method: 'get',
  151. params: { },
  152. })
  153. }
  154. // 保存技术文档4
  155. export function saveTechnologyArchives4(data) {
  156. return request({
  157. url: '/technologyArchives/saveTechnologyArchives4',
  158. method: 'post',
  159. data,
  160. })
  161. }
  162. // 根据serialNo, id删除技术文档4
  163. export function delTechnologyArchives4ByCode(socialNo, id) {
  164. return request({
  165. url: '/technologyArchives/delTechnologyArchives4ByCode',
  166. method: 'get',
  167. params: { socialNo, id },
  168. })
  169. }
  170. export function setTrainingImage(socialNo, beginTime, url) {
  171. return request({
  172. url: '/technologyArchives/setTrainingImage',
  173. method: 'get',
  174. params: { socialNo, beginTime, url },
  175. })
  176. }
  177. // 查询培训证明图片
  178. export function selectTrainingImage(socialNo, id) {
  179. return request({
  180. url: '/technologyArchives/selectTrainingImage',
  181. method: 'get',
  182. params: { socialNo, id },
  183. })
  184. }
  185. // 查询技术文档5
  186. export function selectTechnologyArchives5() {
  187. return request({
  188. url: '/technologyArchives/selectTechnologyArchives5',
  189. method: 'get',
  190. params: { },
  191. })
  192. }
  193. // 保存技术文档5
  194. export function saveTechnologyArchives5(data) {
  195. return request({
  196. url: '/technologyArchives/saveTechnologyArchives5',
  197. method: 'post',
  198. data,
  199. })
  200. }
  201. // 根据serialNo, time删除技术文档5
  202. export function delTechnologyArchives5ByCode(socialNo, time) {
  203. return request({
  204. url: '/technologyArchives/delTechnologyArchives5ByCode',
  205. method: 'get',
  206. params: { socialNo, time },
  207. })
  208. }
  209. // 查询技术文档6
  210. export function selectTechnologyArchives6() {
  211. return request({
  212. url: '/technologyArchives/selectTechnologyArchives6',
  213. method: 'get',
  214. params: { },
  215. })
  216. }
  217. // 保存技术文档6
  218. export function saveTechnologyArchives6(data) {
  219. return request({
  220. url: '/technologyArchives/saveTechnologyArchives6',
  221. method: 'post',
  222. data,
  223. })
  224. }
  225. // 根据serialNo, id删除技术文档6
  226. export function delTechnologyArchives6ByCode(socialNo, id) {
  227. return request({
  228. url: '/technologyArchives/delTechnologyArchives6ByCode',
  229. method: 'get',
  230. params: { socialNo, id },
  231. })
  232. }
  233. // 查询技术文档7
  234. export function selectTechnologyArchives7() {
  235. return request({
  236. url: '/technologyArchives/selectTechnologyArchives7',
  237. method: 'get',
  238. params: { },
  239. })
  240. }
  241. // 保存技术文档7
  242. export function saveTechnologyArchives7(data) {
  243. return request({
  244. url: '/technologyArchives/saveTechnologyArchives7',
  245. method: 'post',
  246. data,
  247. })
  248. }
  249. // 根据serialNo, id删除技术文档7
  250. export function delTechnologyArchives7ByCode(socialNo, id) {
  251. return request({
  252. url: '/technologyArchives/delTechnologyArchives7ByCode',
  253. method: 'get',
  254. params: { socialNo, id },
  255. })
  256. }
  257. // 查询技术文档9
  258. export function selectTechnologyArchives9() {
  259. return request({
  260. url: '/technologyArchives/selectTechnologyArchives9',
  261. method: 'get',
  262. params: { },
  263. })
  264. }
  265. export function setExamineImage(socialNo, time, url) {
  266. return request({
  267. url: '/technologyArchives/setExamineImage',
  268. method: 'get',
  269. params: { socialNo, time, url },
  270. })
  271. }
  272. // 查询考核图片
  273. export function selectExamineImage(socialNo, id) {
  274. return request({
  275. url: '/technologyArchives/selectExamineImage',
  276. method: 'get',
  277. params: { socialNo, id },
  278. })
  279. }
  280. // 保存技术文档9
  281. export function saveTechnologyArchives9(data) {
  282. return request({
  283. url: '/technologyArchives/saveTechnologyArchives9',
  284. method: 'post',
  285. data,
  286. })
  287. }
  288. // 根据serialNo, id删除技术文档9
  289. export function delTechnologyArchives9ByCode(socialNo, id) {
  290. return request({
  291. url: '/technologyArchives/delTechnologyArchives9ByCode',
  292. method: 'get',
  293. params: { socialNo, id },
  294. })
  295. }
  296. // 查询技术文档10
  297. export function selectTechnologyArchives10() {
  298. return request({
  299. url: '/technologyArchives/selectTechnologyArchives10',
  300. method: 'get',
  301. params: { },
  302. })
  303. }
  304. // 保存技术文档10
  305. export function saveTechnologyArchives10(data) {
  306. return request({
  307. url: '/technologyArchives/saveTechnologyArchives10',
  308. method: 'post',
  309. data,
  310. })
  311. }
  312. // 根据serialNo, id删除技术文档10
  313. export function delTechnologyArchives10ByCode(socialNo, id) {
  314. return request({
  315. url: '/technologyArchives/delTechnologyArchives10ByCode',
  316. method: 'get',
  317. params: { socialNo, id },
  318. })
  319. }
  320. // 查询技术文档12
  321. export function selectTechnologyArchives12() {
  322. return request({
  323. url: '/technologyArchives/selectTechnologyArchives12',
  324. method: 'get',
  325. params: { },
  326. })
  327. }
  328. // 保存技术文档12
  329. export function saveTechnologyArchives12(data) {
  330. return request({
  331. url: '/technologyArchives/saveTechnologyArchives12',
  332. method: 'post',
  333. data,
  334. })
  335. }
  336. // 根据serialNo, id删除技术文档12
  337. export function delTechnologyArchives12ByCode(socialNo, id) {
  338. return request({
  339. url: '/technologyArchives/delTechnologyArchives12ByCode',
  340. method: 'get',
  341. params: { socialNo, id },
  342. })
  343. }
  344. // 查询技术文档13
  345. export function selectTechnologyArchives13() {
  346. return request({
  347. url: '/technologyArchives/selectTechnologyArchives13',
  348. method: 'get',
  349. params: { },
  350. })
  351. }
  352. // 查询委任聘书图片
  353. export function selectAppointmentImage(socialNo, name) {
  354. return request({
  355. url: '/technologyArchives/selectAppointmentImage',
  356. method: 'get',
  357. params: { socialNo, name },
  358. })
  359. }
  360. export function setAppointmentImage(socialNo, name, url) {
  361. return request({
  362. url: '/technologyArchives/setAppointmentImage',
  363. method: 'get',
  364. params: { socialNo, name, url },
  365. })
  366. }
  367. // 保存技术文档13
  368. export function saveTechnologyArchives13(data) {
  369. return request({
  370. url: '/technologyArchives/saveTechnologyArchives13',
  371. method: 'post',
  372. data,
  373. })
  374. }
  375. // 根据serialNo, id删除技术文档13
  376. export function delTechnologyArchives13ByCode(socialNo, id) {
  377. return request({
  378. url: '/technologyArchives/delTechnologyArchives13ByCode',
  379. method: 'get',
  380. params: { socialNo, id },
  381. })
  382. }
  383. // 查询技术文档14
  384. export function selectTechnologyArchives14() {
  385. return request({
  386. url: '/technologyArchives/selectTechnologyArchives14',
  387. method: 'get',
  388. params: { },
  389. })
  390. }
  391. // 保存技术文档14
  392. export function saveTechnologyArchives14(data) {
  393. return request({
  394. url: '/technologyArchives/saveTechnologyArchives14',
  395. method: 'post',
  396. data,
  397. })
  398. }
  399. // 根据serialNo, id删除技术文档14
  400. export function delTechnologyArchives14ByCode(socialNo, id) {
  401. return request({
  402. url: '/technologyArchives/delTechnologyArchives14ByCode',
  403. method: 'get',
  404. params: { socialNo, id },
  405. })
  406. }
  407. // 限制类医疗技术档案
  408. // 查询技术文档8
  409. export function selectTechnologyArchives8() {
  410. return request({
  411. url: '/technologyArchives/selectTechnologyArchives8',
  412. method: 'get',
  413. params: { },
  414. })
  415. }
  416. // 保存技术文档8
  417. export function saveTechnologyArchives8(data) {
  418. return request({
  419. url: '/technologyArchives/saveTechnologyArchives8',
  420. method: 'post',
  421. data,
  422. })
  423. }
  424. // 根据serialNo, id删除技术文档8
  425. export function delTechnologyArchives8ByCode(socialNo, id) {
  426. return request({
  427. url: '/technologyArchives/delTechnologyArchives8ByCode',
  428. method: 'get',
  429. params: { socialNo, id },
  430. })
  431. }
  432. // 医疗安全行为记录
  433. // 查询技术文档11
  434. export function selectTechnologyArchives11() {
  435. return request({
  436. url: '/technologyArchives/selectTechnologyArchives11',
  437. method: 'get',
  438. params: { },
  439. })
  440. }
  441. // 保存技术文档11
  442. export function saveTechnologyArchives11(data) {
  443. return request({
  444. url: '/technologyArchives/saveTechnologyArchives11',
  445. method: 'post',
  446. data,
  447. })
  448. }
  449. // 根据serialNo, id删除技术文档11
  450. export function delTechnologyArchives11ByCode(socialNo, id) {
  451. return request({
  452. url: '/technologyArchives/delTechnologyArchives11ByCode',
  453. method: 'get',
  454. params: { socialNo, id },
  455. })
  456. }
  457. // 应用医疗技术权限记录
  458. // 查询技术文档15
  459. export function selectTechnologyArchives15() {
  460. return request({
  461. url: '/technologyArchives/selectTechnologyArchives15',
  462. method: 'get',
  463. params: { },
  464. })
  465. }
  466. // 保存技术文档15
  467. export function saveTechnologyArchives15(data) {
  468. return request({
  469. url: '/technologyArchives/saveTechnologyArchives15',
  470. method: 'post',
  471. data,
  472. })
  473. }
  474. // 根据serialNo, id删除技术文档15
  475. export function delTechnologyArchives15ByCode(socialNo, id) {
  476. return request({
  477. url: '/technologyArchives/delTechnologyArchives15ByCode',
  478. method: 'get',
  479. params: { socialNo, id },
  480. })
  481. }
  482. //教育经历
  483. // 查询技术文档16
  484. export function selectTechnologyArchives16() {
  485. return request({
  486. url: '/technologyArchives/selectTechnologyArchives16',
  487. method: 'get',
  488. params: { },
  489. })
  490. }
  491. // 保存技术文档16
  492. export function saveTechnologyArchives16(data) {
  493. return request({
  494. url: '/technologyArchives/saveTechnologyArchives16',
  495. method: 'post',
  496. data,
  497. })
  498. }
  499. // 根据serialNo, id删除技术文档16
  500. export function delTechnologyArchives16ByCode(socialNo, id) {
  501. return request({
  502. url: '/technologyArchives/delTechnologyArchives16ByCode',
  503. method: 'get',
  504. params: { socialNo, id },
  505. })
  506. }
  507. // 查询技术文档类型 (type: 1 Ⅰ档案 2 Ⅱ档案)
  508. export function selectTechnologyArchivesType(type) {
  509. return request({
  510. url: '/technologyArchives/selectTechnologyArchivesType',
  511. method: 'get',
  512. params: { type },
  513. })
  514. }
  515. // 根据档案类型查询技术档案信息(textType:档案类型)
  516. export function selectTechnologyArchivesInfo(data) {
  517. return request({
  518. url: '/technologyArchives/selectTechnologyArchivesInfo',
  519. method: 'post',
  520. data,
  521. })
  522. }
  523. // 根据档案类型导出技术档案信息
  524. export function exportTechnologyArchivesInfo(params) {
  525. ElMessageBox.prompt('导出文件名字', '提示', {
  526. confirmButtonText: '确定',
  527. cancelButtonText: '取消',
  528. inputPattern: /\S/,
  529. inputErrorMessage: '文件名不能为空 (∩•̀ω•́)⊃-*⋆',
  530. }).then(({ value }) => {
  531. const data = {
  532. param: params,
  533. url: '/technologyArchives/exportTechnologyArchivesInfo',
  534. fileName: value + '.xls',
  535. }
  536. setTimeout(() => {
  537. downloadExcel(data)
  538. }, 500)
  539. }).catch((res) => {
  540. if (res.code === '0') {
  541. ElMessage({
  542. message: res.message,
  543. type: 'success',
  544. duration: 2000,
  545. showClose: true,
  546. })
  547. } else {
  548. ElMessage({
  549. message: res.message,
  550. type: 'warning',
  551. duration: 3000,
  552. showClose: true,
  553. })
  554. }
  555. })
  556. }
  557. //导出护理档案全部信息
  558. export function exportMultiTechnologyArchives(params) {
  559. ElMessageBox.prompt('导出文件名字', '提示', {
  560. confirmButtonText: '确定',
  561. cancelButtonText: '取消',
  562. inputPattern: /\S/,
  563. inputErrorMessage: '文件名不能为空 (∩•̀ω•́)⊃-*⋆',
  564. }).then(({ value }) => {
  565. const data = {
  566. param: params,
  567. url: '/technologyArchives/exportMultiTechnologyArchives',
  568. fileName: value + '.xls',
  569. }
  570. setTimeout(() => {
  571. downloadExcel(data)
  572. }, 500)
  573. }).catch((res) => {
  574. if (res.code === '0') {
  575. ElMessage({
  576. message: res.message,
  577. type: 'success',
  578. duration: 2000,
  579. showClose: true,
  580. })
  581. } else {
  582. ElMessage({
  583. message: res.message,
  584. type: 'warning',
  585. duration: 3000,
  586. showClose: true,
  587. })
  588. }
  589. })
  590. }
  591. export function selectTechnologyArchivesMainDict(){
  592. return request({
  593. url: '/technologyArchives/selectTechnologyArchivesMainDict',
  594. method: 'get',
  595. params: { },
  596. })
  597. }
  598. // 查询护理基本信息
  599. export function selectHLEmployeeInfo(text) {
  600. return request({
  601. url: '/hltechnologyArchives/selectHLEmployeeInfo',
  602. method: 'get',
  603. params: { text },
  604. })
  605. }
  606. export function selectHLImage1(socialNo) {
  607. return request({
  608. url: '/hltechnologyArchives/selectHLImage1',
  609. method: 'get',
  610. params: { socialNo},
  611. })
  612. }
  613. // 查询字典
  614. export function selectHLDictInfo() {
  615. return request({
  616. url: '/hltechnologyArchives/selectDictInfo',
  617. method: 'get',
  618. params: { },
  619. })
  620. }
  621. // 保存护理技术文档基本信息
  622. export function saveTechnologyArchivesHLMain(data) {
  623. return request({
  624. url: '/hltechnologyArchives/saveTechnologyArchivesHLMain',
  625. method: 'post',
  626. data,
  627. })
  628. }
  629. export function setHLImage(url, socialNo) {
  630. return request({
  631. url: '/hltechnologyArchives/setHLImage',
  632. method: 'get',
  633. params: { url, socialNo },
  634. })
  635. }
  636. // 查询专业技术资格证书取得情况
  637. export function selectTechnologyArchivesHL1() {
  638. return request({
  639. url: '/hltechnologyArchives/selectTechnologyArchivesHL1',
  640. method: 'get',
  641. params: { },
  642. })
  643. }
  644. export function setHL1Image(socialNo, getTime, url) {
  645. return request({
  646. url: '/hltechnologyArchives/setHL1Image',
  647. method: 'get',
  648. params: { socialNo, getTime, url },
  649. })
  650. }
  651. // 查询专业技术资格证书取得情况的图片
  652. export function selectHL1Image(socialNo, getTime) {
  653. return request({
  654. url: '/hltechnologyArchives/selectHL1Image',
  655. method: 'get',
  656. params: { socialNo, getTime },
  657. })
  658. }
  659. // 保存专业技术资格证书取得情况
  660. export function saveTechnologyArchivesHL1(data) {
  661. return request({
  662. url: '/hltechnologyArchives/saveTechnologyArchivesHL1',
  663. method: 'post',
  664. data,
  665. })
  666. }
  667. // 根据serialNo, getTime删除专业技术资格证书取得情况
  668. export function delTechnologyArchivesHL1ByCode(socialNo, getTime) {
  669. return request({
  670. url: '/hltechnologyArchives/delTechnologyArchivesHL1ByCode',
  671. method: 'get',
  672. params: { socialNo, getTime },
  673. })
  674. }
  675. export function selectTechnologyArchivesHLMainDict(){
  676. return request({
  677. url: '/technologyArchives/selectTechnologyArchivesHLMainDict',
  678. method: 'get',
  679. params: { },
  680. })
  681. }
  682. // 工作经历
  683. // 查询工作经历
  684. export function selectTechnologyArchivesHL2() {
  685. return request({
  686. url: '/hltechnologyArchives/selectTechnologyArchivesHL2',
  687. method: 'get',
  688. params: { },
  689. })
  690. }
  691. // 保存工作经历
  692. export function saveTechnologyArchivesHL2(data) {
  693. return request({
  694. url: '/hltechnologyArchives/saveTechnologyArchivesHL2',
  695. method: 'post',
  696. data,
  697. })
  698. }
  699. // 根据serialNo, id删除工作经历
  700. export function delTechnologyArchivesHL2ByCode(socialNo, id) {
  701. return request({
  702. url: '/hltechnologyArchives/delTechnologyArchivesHL2ByCode',
  703. method: 'get',
  704. params: { socialNo, id },
  705. })
  706. }
  707. // 教育经历
  708. // 查询教育经历
  709. export function selectTechnologyArchivesHL3() {
  710. return request({
  711. url: '/hltechnologyArchives/selectTechnologyArchivesHL3',
  712. method: 'get',
  713. params: { },
  714. })
  715. }
  716. // 保存教育经历
  717. export function saveTechnologyArchivesHL3(data) {
  718. return request({
  719. url: '/hltechnologyArchives/saveTechnologyArchivesHL3',
  720. method: 'post',
  721. data,
  722. })
  723. }
  724. // 根据serialNo, id删除教育经历
  725. export function delTechnologyArchivesHL3ByCode(socialNo, id) {
  726. return request({
  727. url: '/hltechnologyArchives/delTechnologyArchivesHL3ByCode',
  728. method: 'get',
  729. params: { socialNo, id },
  730. })
  731. }
  732. // 培训经历
  733. // 查询培训经历
  734. export function selectTechnologyArchivesHL4() {
  735. return request({
  736. url: '/hltechnologyArchives/selectTechnologyArchivesHL4',
  737. method: 'get',
  738. params: { },
  739. })
  740. }
  741. export function setHL4Image(socialNo, beginTime, url) {
  742. return request({
  743. url: '/hltechnologyArchives/setHL4Image',
  744. method: 'get',
  745. params: { socialNo, beginTime, url },
  746. })
  747. }
  748. // 查询培训证明图片
  749. export function selectHL4Image(socialNo, id) {
  750. return request({
  751. url: '/hltechnologyArchives/selectHL4Image',
  752. method: 'get',
  753. params: { socialNo, id },
  754. })
  755. }
  756. // 保存培训经历
  757. export function saveTechnologyArchivesHL4(data) {
  758. return request({
  759. url: '/hltechnologyArchives/saveTechnologyArchivesHL4',
  760. method: 'post',
  761. data,
  762. })
  763. }
  764. // 根据serialNo, id删除培训经历
  765. export function delTechnologyArchivesHL4ByCode(socialNo, id) {
  766. return request({
  767. url: '/hltechnologyArchives/delTechnologyArchivesHL4ByCode',
  768. method: 'get',
  769. params: { socialNo, id },
  770. })
  771. }
  772. // 轮科记录
  773. // 查询轮科记录
  774. export function selectTechnologyArchivesHL5() {
  775. return request({
  776. url: '/hltechnologyArchives/selectTechnologyArchivesHL5',
  777. method: 'get',
  778. params: { },
  779. })
  780. }
  781. // 保存轮科记录
  782. export function saveTechnologyArchivesHL5(data) {
  783. return request({
  784. url: '/hltechnologyArchives/saveTechnologyArchivesHL5',
  785. method: 'post',
  786. data,
  787. })
  788. }
  789. // 根据serialNo, id删除轮科记录
  790. export function delTechnologyArchivesHL5ByCode(socialNo, id) {
  791. return request({
  792. url: '/hltechnologyArchives/delTechnologyArchivesHL5ByCode',
  793. method: 'get',
  794. params: { socialNo, id },
  795. })
  796. }
  797. // 科室调动记录
  798. // 查询科室调动记录
  799. export function selectTechnologyArchivesHL6() {
  800. return request({
  801. url: '/hltechnologyArchives/selectTechnologyArchivesHL6',
  802. method: 'get',
  803. params: { },
  804. })
  805. }
  806. // 保存科室调动记录
  807. export function saveTechnologyArchivesHL6(data) {
  808. return request({
  809. url: '/hltechnologyArchives/saveTechnologyArchivesHL6',
  810. method: 'post',
  811. data,
  812. })
  813. }
  814. // 根据serialNo, id删除科室调动记录
  815. export function delTechnologyArchivesHL6ByCode(socialNo, id) {
  816. return request({
  817. url: '/hltechnologyArchives/delTechnologyArchivesHL6ByCode',
  818. method: 'get',
  819. params: { socialNo, id },
  820. })
  821. }
  822. // 休假记录
  823. // 查询休假记录
  824. export function selectTechnologyArchivesHL7() {
  825. return request({
  826. url: '/hltechnologyArchives/selectTechnologyArchivesHL7',
  827. method: 'get',
  828. params: { },
  829. })
  830. }
  831. export function setHL7Image(socialNo, approvalTime, url) {
  832. return request({
  833. url: '/hltechnologyArchives/setHL7Image',
  834. method: 'get',
  835. params: { socialNo, approvalTime, url },
  836. })
  837. }
  838. // 查询请假证明图片
  839. export function selectHL7Image(socialNo, id) {
  840. return request({
  841. url: '/hltechnologyArchives/selectHL7Image',
  842. method: 'get',
  843. params: { socialNo, id },
  844. })
  845. }
  846. // 保存休假记录
  847. export function saveTechnologyArchivesHL7(data) {
  848. return request({
  849. url: '/hltechnologyArchives/saveTechnologyArchivesHL7',
  850. method: 'post',
  851. data,
  852. })
  853. }
  854. // 根据serialNo, approvalTime删除休假记录
  855. export function delTechnologyArchivesHL7ByCode(socialNo, approvalTime) {
  856. return request({
  857. url: '/hltechnologyArchives/delTechnologyArchivesHL7ByCode',
  858. method: 'get',
  859. params: { socialNo, approvalTime },
  860. })
  861. }
  862. // 查询培训考核情况
  863. export function selectTechnologyArchivesHL9() {
  864. return request({
  865. url: '/hltechnologyArchives/selectTechnologyArchivesHL9',
  866. method: 'get',
  867. params: { },
  868. })
  869. }
  870. // 保存培训考核情况
  871. export function saveTechnologyArchivesHL9(data) {
  872. return request({
  873. url: '/hltechnologyArchives/saveTechnologyArchivesHL9',
  874. method: 'post',
  875. data,
  876. })
  877. }
  878. // 根据serialNo, id删除培训考核情况
  879. export function delTechnologyArchivesHL9ByCode(socialNo, id) {
  880. return request({
  881. url: '/hltechnologyArchives/delTechnologyArchivesHL9ByCode',
  882. method: 'get',
  883. params: { socialNo, id },
  884. })
  885. }
  886. // 查询技术文档5
  887. export function hlselectTechnologyArchives5() {
  888. return request({
  889. url: '/hltechnologyArchives/selectTechnologyArchives5',
  890. method: 'get',
  891. params: { },
  892. })
  893. }
  894. // 保存技术文档5
  895. export function hlsaveTechnologyArchives5(data) {
  896. return request({
  897. url: '/hltechnologyArchives/saveTechnologyArchives5',
  898. method: 'post',
  899. data,
  900. })
  901. }
  902. // 根据serialNo, time删除技术文档5
  903. export function hldelTechnologyArchives5ByCode(socialNo, time) {
  904. return request({
  905. url: '/hltechnologyArchives/delTechnologyArchives5ByCode',
  906. method: 'get',
  907. params: { socialNo, time },
  908. })
  909. }
  910. // 查询技术文档7
  911. export function hlselectTechnologyArchives7() {
  912. return request({
  913. url: '/hltechnologyArchives/selectTechnologyArchives7',
  914. method: 'get',
  915. params: { },
  916. })
  917. }
  918. // 保存技术文档7
  919. export function hlsaveTechnologyArchives7(data) {
  920. return request({
  921. url: '/hltechnologyArchives/saveTechnologyArchives7',
  922. method: 'post',
  923. data,
  924. })
  925. }
  926. // 根据serialNo, id删除技术文档7
  927. export function hldelTechnologyArchives7ByCode(socialNo, id) {
  928. return request({
  929. url: '/hltechnologyArchives/delTechnologyArchives7ByCode',
  930. method: 'get',
  931. params: { socialNo, id },
  932. })
  933. }
  934. // 查询技术文档10
  935. export function selectTechnologyArchivesHL10() {
  936. return request({
  937. url: '/hltechnologyArchives/selectTechnologyArchives10',
  938. method: 'get',
  939. params: { },
  940. })
  941. }
  942. // 保存技术文档10
  943. export function saveTechnologyArchivesHL10(data) {
  944. return request({
  945. url: '/hltechnologyArchives/saveTechnologyArchives10',
  946. method: 'post',
  947. data,
  948. })
  949. }
  950. // 根据serialNo, id删除技术文档10
  951. export function delTechnologyArchivesHL10ByCode(socialNo, id) {
  952. return request({
  953. url: '/hltechnologyArchives/delTechnologyArchives10ByCode',
  954. method: 'get',
  955. params: { socialNo, id },
  956. })
  957. }
  958. // 查询技术文档12
  959. export function selectTechnologyArchivesHL12() {
  960. return request({
  961. url: '/hltechnologyArchives/selectTechnologyArchives12',
  962. method: 'get',
  963. params: { },
  964. })
  965. }
  966. // 保存技术文档12
  967. export function saveTechnologyArchivesHL12(data) {
  968. return request({
  969. url: '/hltechnologyArchives/saveTechnologyArchives12',
  970. method: 'post',
  971. data,
  972. })
  973. }
  974. // 根据serialNo, id删除技术文档12
  975. export function delTechnologyArchivesHL12ByCode(socialNo, id) {
  976. return request({
  977. url: '/hltechnologyArchives/delTechnologyArchives12ByCode',
  978. method: 'get',
  979. params: { socialNo, id },
  980. })
  981. }
  982. // 查询技术文档13
  983. export function selectTechnologyArchivesHL13() {
  984. return request({
  985. url: '/hltechnologyArchives/selectTechnologyArchives13',
  986. method: 'get',
  987. params: { },
  988. })
  989. }
  990. // 查询委任聘书图片
  991. export function selectHL13Image(socialNo, name) {
  992. return request({
  993. url: '/hltechnologyArchives/selectAppointmentImage',
  994. method: 'get',
  995. params: { socialNo, name },
  996. })
  997. }
  998. export function setHL13Image(socialNo, name, url) {
  999. return request({
  1000. url: '/hltechnologyArchives/setAppointmentImage',
  1001. method: 'get',
  1002. params: { socialNo, name, url },
  1003. })
  1004. }
  1005. // 保存技术文档13
  1006. export function saveTechnologyArchivesHL13(data) {
  1007. return request({
  1008. url: '/hltechnologyArchives/saveTechnologyArchives13',
  1009. method: 'post',
  1010. data,
  1011. })
  1012. }
  1013. // 根据serialNo, id删除技术文档13
  1014. export function delTechnologyArchivesHL13ByCode(socialNo, id) {
  1015. return request({
  1016. url: '/hltechnologyArchives/delTechnologyArchives13ByCode',
  1017. method: 'get',
  1018. params: { socialNo, id },
  1019. })
  1020. }
  1021. // 查询技术文档14
  1022. export function selectTechnologyArchivesHL14() {
  1023. return request({
  1024. url: '/hltechnologyArchives/selectTechnologyArchives14',
  1025. method: 'get',
  1026. params: { },
  1027. })
  1028. }
  1029. // 保存技术文档14
  1030. export function saveTechnologyArchivesHL14(data) {
  1031. return request({
  1032. url: '/hltechnologyArchives/saveTechnologyArchives14',
  1033. method: 'post',
  1034. data,
  1035. })
  1036. }
  1037. // 根据serialNo, id删除技术文档14
  1038. export function delTechnologyArchivesHL14ByCode(socialNo, id) {
  1039. return request({
  1040. url: '/hltechnologyArchives/delTechnologyArchives14ByCode',
  1041. method: 'get',
  1042. params: { socialNo, id },
  1043. })
  1044. }
  1045. // 查询护理技术文档类型
  1046. export function selectTechnologyArchivesHLType(type) {
  1047. return request({
  1048. url: '/hltechnologyArchives/selectTechnologyArchivesHLType',
  1049. method: 'get',
  1050. params: { type },
  1051. })
  1052. }
  1053. // 根据档案类型查询技术档案信息(textType:档案类型)
  1054. export function selectTechnologyArchivesHLInfo(data) {
  1055. return request({
  1056. url: '/hltechnologyArchives/selectTechnologyArchivesHLInfo',
  1057. method: 'post',
  1058. data,
  1059. })
  1060. }
  1061. //导出护理档案全部信息
  1062. export function exportHLMultiTechnologyArchives(params) {
  1063. ElMessageBox.prompt('导出文件名字', '提示', {
  1064. confirmButtonText: '确定',
  1065. cancelButtonText: '取消',
  1066. inputPattern: /\S/,
  1067. inputErrorMessage: '文件名不能为空 (∩•̀ω•́)⊃-*⋆',
  1068. }).then(({ value }) => {
  1069. const data = {
  1070. param: params,
  1071. url: '/hltechnologyArchives/exportMultiTechnologyArchives',
  1072. fileName: value + '.xls',
  1073. }
  1074. setTimeout(() => {
  1075. downloadExcel(data)
  1076. }, 500)
  1077. }).catch((res) => {
  1078. if (res.code === '0') {
  1079. ElMessage({
  1080. message: res.message,
  1081. type: 'success',
  1082. duration: 2000,
  1083. showClose: true,
  1084. })
  1085. } else {
  1086. ElMessage({
  1087. message: res.message,
  1088. type: 'warning',
  1089. duration: 3000,
  1090. showClose: true,
  1091. })
  1092. }
  1093. })
  1094. }