technology-archives.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  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 saveTechnologyArchives1(data) {
  38. return request({
  39. url: '/technologyArchives/saveTechnologyArchives1',
  40. method: 'post',
  41. data,
  42. })
  43. }
  44. // 根据serialNo, getTime删除技术文档1
  45. export function delTechnologyArchives1ByCode(socialNo, getTime) {
  46. return request({
  47. url: '/technologyArchives/delTechnologyArchives1ByCode',
  48. method: 'get',
  49. params: { socialNo, getTime },
  50. })
  51. }
  52. // 查询技术文档2
  53. export function selectTechnologyArchives2() {
  54. return request({
  55. url: '/technologyArchives/selectTechnologyArchives2',
  56. method: 'get',
  57. params: { },
  58. })
  59. }
  60. // 保存技术文档2
  61. export function saveTechnologyArchives2(data) {
  62. return request({
  63. url: '/technologyArchives/saveTechnologyArchives2',
  64. method: 'post',
  65. data,
  66. })
  67. }
  68. // 根据serialNo, no删除技术文档2
  69. export function delTechnologyArchives2ByCode(socialNo, no) {
  70. return request({
  71. url: '/technologyArchives/delTechnologyArchives2ByCode',
  72. method: 'get',
  73. params: { socialNo, no },
  74. })
  75. }
  76. // 查询技术文档3
  77. export function selectTechnologyArchives3() {
  78. return request({
  79. url: '/technologyArchives/selectTechnologyArchives3',
  80. method: 'get',
  81. params: { },
  82. })
  83. }
  84. // 保存技术文档3
  85. export function saveTechnologyArchives3(data) {
  86. return request({
  87. url: '/technologyArchives/saveTechnologyArchives3',
  88. method: 'post',
  89. data,
  90. })
  91. }
  92. // 根据serialNo, id删除技术文档3
  93. export function delTechnologyArchives3ByCode(socialNo, id) {
  94. return request({
  95. url: '/technologyArchives/delTechnologyArchives3ByCode',
  96. method: 'get',
  97. params: { socialNo, id },
  98. })
  99. }
  100. // 查询技术文档4
  101. export function selectTechnologyArchives4() {
  102. return request({
  103. url: '/technologyArchives/selectTechnologyArchives4',
  104. method: 'get',
  105. params: { },
  106. })
  107. }
  108. // 保存技术文档4
  109. export function saveTechnologyArchives4(data) {
  110. return request({
  111. url: '/technologyArchives/saveTechnologyArchives4',
  112. method: 'post',
  113. data,
  114. })
  115. }
  116. // 根据serialNo, id删除技术文档4
  117. export function delTechnologyArchives4ByCode(socialNo, id) {
  118. return request({
  119. url: '/technologyArchives/delTechnologyArchives4ByCode',
  120. method: 'get',
  121. params: { socialNo, id },
  122. })
  123. }
  124. // 查询技术文档5
  125. export function selectTechnologyArchives5() {
  126. return request({
  127. url: '/technologyArchives/selectTechnologyArchives5',
  128. method: 'get',
  129. params: { },
  130. })
  131. }
  132. // 保存技术文档5
  133. export function saveTechnologyArchives5(data) {
  134. return request({
  135. url: '/technologyArchives/saveTechnologyArchives5',
  136. method: 'post',
  137. data,
  138. })
  139. }
  140. // 根据serialNo, time删除技术文档5
  141. export function delTechnologyArchives5ByCode(socialNo, time) {
  142. return request({
  143. url: '/technologyArchives/delTechnologyArchives5ByCode',
  144. method: 'get',
  145. params: { socialNo, time },
  146. })
  147. }
  148. // 查询技术文档6
  149. export function selectTechnologyArchives6() {
  150. return request({
  151. url: '/technologyArchives/selectTechnologyArchives6',
  152. method: 'get',
  153. params: { },
  154. })
  155. }
  156. // 保存技术文档6
  157. export function saveTechnologyArchives6(data) {
  158. return request({
  159. url: '/technologyArchives/saveTechnologyArchives6',
  160. method: 'post',
  161. data,
  162. })
  163. }
  164. // 根据serialNo, id删除技术文档6
  165. export function delTechnologyArchives6ByCode(socialNo, id) {
  166. return request({
  167. url: '/technologyArchives/delTechnologyArchives6ByCode',
  168. method: 'get',
  169. params: { socialNo, id },
  170. })
  171. }
  172. // 查询技术文档7
  173. export function selectTechnologyArchives7() {
  174. return request({
  175. url: '/technologyArchives/selectTechnologyArchives7',
  176. method: 'get',
  177. params: { },
  178. })
  179. }
  180. // 保存技术文档7
  181. export function saveTechnologyArchives7(data) {
  182. return request({
  183. url: '/technologyArchives/saveTechnologyArchives7',
  184. method: 'post',
  185. data,
  186. })
  187. }
  188. // 根据serialNo, id删除技术文档7
  189. export function delTechnologyArchives7ByCode(socialNo, id) {
  190. return request({
  191. url: '/technologyArchives/delTechnologyArchives7ByCode',
  192. method: 'get',
  193. params: { socialNo, id },
  194. })
  195. }
  196. // 查询技术文档9
  197. export function selectTechnologyArchives9() {
  198. return request({
  199. url: '/technologyArchives/selectTechnologyArchives9',
  200. method: 'get',
  201. params: { },
  202. })
  203. }
  204. // 保存技术文档9
  205. export function saveTechnologyArchives9(data) {
  206. return request({
  207. url: '/technologyArchives/saveTechnologyArchives9',
  208. method: 'post',
  209. data,
  210. })
  211. }
  212. // 根据serialNo, id删除技术文档9
  213. export function delTechnologyArchives9ByCode(socialNo, id) {
  214. return request({
  215. url: '/technologyArchives/delTechnologyArchives9ByCode',
  216. method: 'get',
  217. params: { socialNo, id },
  218. })
  219. }
  220. // 查询技术文档10
  221. export function selectTechnologyArchives10() {
  222. return request({
  223. url: '/technologyArchives/selectTechnologyArchives10',
  224. method: 'get',
  225. params: { },
  226. })
  227. }
  228. // 保存技术文档10
  229. export function saveTechnologyArchives10(data) {
  230. return request({
  231. url: '/technologyArchives/saveTechnologyArchives10',
  232. method: 'post',
  233. data,
  234. })
  235. }
  236. // 根据serialNo, id删除技术文档10
  237. export function delTechnologyArchives10ByCode(socialNo, id) {
  238. return request({
  239. url: '/technologyArchives/delTechnologyArchives10ByCode',
  240. method: 'get',
  241. params: { socialNo, id },
  242. })
  243. }
  244. // 查询技术文档12
  245. export function selectTechnologyArchives12() {
  246. return request({
  247. url: '/technologyArchives/selectTechnologyArchives12',
  248. method: 'get',
  249. params: { },
  250. })
  251. }
  252. // 保存技术文档10
  253. export function saveTechnologyArchives12(data) {
  254. return request({
  255. url: '/technologyArchives/saveTechnologyArchives12',
  256. method: 'post',
  257. data,
  258. })
  259. }
  260. // 根据serialNo, id删除技术文档7
  261. export function delTechnologyArchives12ByCode(socialNo, id) {
  262. return request({
  263. url: '/technologyArchives/delTechnologyArchives12ByCode',
  264. method: 'get',
  265. params: { socialNo, id },
  266. })
  267. }
  268. // 查询技术文档13
  269. export function selectTechnologyArchives13() {
  270. return request({
  271. url: '/technologyArchives/selectTechnologyArchives13',
  272. method: 'get',
  273. params: { },
  274. })
  275. }
  276. // 保存技术文档13
  277. export function saveTechnologyArchives13(data) {
  278. return request({
  279. url: '/technologyArchives/saveTechnologyArchives13',
  280. method: 'post',
  281. data,
  282. })
  283. }
  284. // 根据serialNo, id删除技术文档13
  285. export function delTechnologyArchives13ByCode(socialNo, id) {
  286. return request({
  287. url: '/technologyArchives/delTechnologyArchives13ByCode',
  288. method: 'get',
  289. params: { socialNo, id },
  290. })
  291. }
  292. // 查询技术文档14
  293. export function selectTechnologyArchives14() {
  294. return request({
  295. url: '/technologyArchives/selectTechnologyArchives14',
  296. method: 'get',
  297. params: { },
  298. })
  299. }
  300. // 保存技术文档14
  301. export function saveTechnologyArchives14(data) {
  302. return request({
  303. url: '/technologyArchives/saveTechnologyArchives14',
  304. method: 'post',
  305. data,
  306. })
  307. }
  308. // 根据serialNo, id删除技术文档14
  309. export function delTechnologyArchives14ByCode(socialNo, id) {
  310. return request({
  311. url: '/technologyArchives/delTechnologyArchives14ByCode',
  312. method: 'get',
  313. params: { socialNo, id },
  314. })
  315. }
  316. // 限制类医疗技术档案
  317. // 查询技术文档8
  318. export function selectTechnologyArchives8() {
  319. return request({
  320. url: '/technologyArchives/selectTechnologyArchives8',
  321. method: 'get',
  322. params: { },
  323. })
  324. }
  325. // 保存技术文档8
  326. export function saveTechnologyArchives8(data) {
  327. return request({
  328. url: '/technologyArchives/saveTechnologyArchives8',
  329. method: 'post',
  330. data,
  331. })
  332. }
  333. // 根据serialNo, id删除技术文档8
  334. export function delTechnologyArchives8ByCode(socialNo, id) {
  335. return request({
  336. url: '/technologyArchives/delTechnologyArchives8ByCode',
  337. method: 'get',
  338. params: { socialNo, id },
  339. })
  340. }
  341. // 医疗安全行为记录
  342. // 查询技术文档11
  343. export function selectTechnologyArchives11() {
  344. return request({
  345. url: '/technologyArchives/selectTechnologyArchives11',
  346. method: 'get',
  347. params: { },
  348. })
  349. }
  350. // 保存技术文档11
  351. export function saveTechnologyArchives11(data) {
  352. return request({
  353. url: '/technologyArchives/saveTechnologyArchives11',
  354. method: 'post',
  355. data,
  356. })
  357. }
  358. // 根据serialNo, id删除技术文档11
  359. export function delTechnologyArchives11ByCode(socialNo, id) {
  360. return request({
  361. url: '/technologyArchives/delTechnologyArchives11ByCode',
  362. method: 'get',
  363. params: { socialNo, id },
  364. })
  365. }
  366. // 应用医疗技术权限记录
  367. // 查询技术文档15
  368. export function selectTechnologyArchives15() {
  369. return request({
  370. url: '/technologyArchives/selectTechnologyArchives15',
  371. method: 'get',
  372. params: { },
  373. })
  374. }
  375. // 保存技术文档15
  376. export function saveTechnologyArchives15(data) {
  377. return request({
  378. url: '/technologyArchives/saveTechnologyArchives15',
  379. method: 'post',
  380. data,
  381. })
  382. }
  383. // 根据serialNo, id删除技术文档15
  384. export function delTechnologyArchives15ByCode(socialNo, id) {
  385. return request({
  386. url: '/technologyArchives/delTechnologyArchives15ByCode',
  387. method: 'get',
  388. params: { socialNo, id },
  389. })
  390. }
  391. // 查询技术文档类型 (type: 1 Ⅰ档案 2 Ⅱ档案)
  392. export function selectTechnologyArchivesType(type) {
  393. return request({
  394. url: '/technologyArchives/selectTechnologyArchivesType',
  395. method: 'get',
  396. params: { type },
  397. })
  398. }
  399. // 根据档案类型查询技术档案信息(textType:档案类型)
  400. export function selectTechnologyArchivesInfo(data) {
  401. return request({
  402. url: '/technologyArchives/selectTechnologyArchivesInfo',
  403. method: 'post',
  404. data,
  405. })
  406. }
  407. // 根据档案类型导出技术档案信息
  408. export function exportTechnologyArchivesInfo(params) {
  409. ElMessageBox.prompt('导出文件名字', '提示', {
  410. confirmButtonText: '确定',
  411. cancelButtonText: '取消',
  412. inputPattern: /\S/,
  413. inputErrorMessage: '文件名不能为空 (∩•̀ω•́)⊃-*⋆',
  414. }).then(({ value }) => {
  415. const data = {
  416. param: params,
  417. url: '/technologyArchives/exportTechnologyArchivesInfo',
  418. fileName: value + '.xlsx',
  419. }
  420. setTimeout(() => {
  421. downloadExcel(data)
  422. }, 500)
  423. }).catch((res) => {
  424. if (res.code === '0') {
  425. ElMessage({
  426. message: res.message,
  427. type: 'success',
  428. duration: 2000,
  429. showClose: true,
  430. })
  431. } else {
  432. ElMessage({
  433. message: res.message,
  434. type: 'warning',
  435. duration: 3000,
  436. showClose: true,
  437. })
  438. }
  439. })
  440. }
  441. export function selectTechnologyArchivesMainDict(){
  442. return request({
  443. url: '/technologyArchives/selectTechnologyArchivesMainDict',
  444. method: 'get',
  445. params: { },
  446. })
  447. }