main.service.ts 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090
  1. import { Injectable } from "@angular/core";
  2. import { HttpClient, HttpHeaders } from "@angular/common/http";
  3. import host from "../../assets/js/http";
  4. import { Observable } from "rxjs";
  5. import { AES, mode, pad, enc } from "crypto-js";
  6. import { MarkingService } from './marking.service';
  7. @Injectable({
  8. providedIn: "root",
  9. })
  10. export class MainService {
  11. constructor(private http: HttpClient, private markingService: MarkingService) {}
  12. headers = new HttpHeaders({
  13. "Content-Type": "application/json",
  14. "Cache-Control": "no-cache",
  15. });
  16. exportHeader = new HttpHeaders().set("Accept", "*/*"); //导出excel表使用
  17. // 单点登录
  18. singleSignOnLogin(data): any {
  19. return this.http.post(host.host + "/auth/portalLogin", data, {
  20. headers: this.headers,
  21. });
  22. }
  23. //aes加密
  24. encryptByEnAES(data: string): string {
  25. data = enc.Utf8.parse(data);
  26. let Key = enc.Utf8.parse('Aes2Util666AQWER');
  27. let tmpAES = AES.encrypt(data, Key, {
  28. mode: mode.ECB,
  29. padding: pad.Pkcs7,
  30. });
  31. return tmpAES.toString();
  32. }
  33. // 登录
  34. login(name: string, pwd: string): any {
  35. let data:any = {
  36. username: name,
  37. password: pwd,
  38. type: "PC",
  39. };
  40. data = {
  41. k: this.encryptByEnAES(JSON.stringify(data))
  42. };
  43. return this.http.post(host.host + "/auth/login", data, {
  44. headers: this.headers,
  45. });
  46. }
  47. // 登出
  48. logOut(): any {
  49. return this.http.delete(host.host + "/auth/logout2", {
  50. headers: this.headers,
  51. });
  52. }
  53. // 修改密码
  54. upPwd(data): any {
  55. return this.http.post(host.host + "/auth/uppwd", data, {
  56. headers: this.headers,
  57. });
  58. }
  59. // 字典表
  60. cachedDictionary = {}; //缓存到内存的字典
  61. getDictionary(type, key, flag = false): any {
  62. const data = {
  63. type: type,
  64. key: key,
  65. };
  66. console.log(this.cachedDictionary, "------------db");
  67. if (flag) {
  68. //特殊情况下处理,flag是true
  69. return this.http.post(host.host + "/common/common/getDictionary", data, {
  70. headers: this.headers,
  71. });
  72. } else if (this.cachedDictionary[key]) {
  73. return new Observable((observer) => {
  74. observer.next(this.cachedDictionary[key]);
  75. });
  76. } else {
  77. return new Observable((observer) => {
  78. this.http
  79. .post(host.host + "/common/common/getDictionary", data, {
  80. headers: this.headers,
  81. })
  82. .subscribe((result) => {
  83. this.cachedDictionary[key] = result;
  84. observer.next(result);
  85. });
  86. });
  87. }
  88. }
  89. //清除字典表缓存
  90. clearDictionary() {
  91. this.cachedDictionary = {};
  92. console.log(this.cachedDictionary, "------clearDb");
  93. }
  94. // 列表搜索(通用)
  95. getFetchDataList(type, target, data): any {
  96. return this.http.post(
  97. host.host + "/" + type + "/fetchDataList/" + target,
  98. data,
  99. { headers: this.headers }
  100. );
  101. }
  102. // 调度台 获取配送人员信息
  103. getSerInfo(type, data): any {
  104. return this.http.post(host.host + "/ser/" + type, data, {
  105. headers: this.headers,
  106. });
  107. }
  108. // 通用操作data信息(新增/更新/删除)//coop:操作类型addData:新增,updData更新,rmvData删除
  109. coopData(coop, type, data): any {
  110. return this.http.post(host.host + "/data/" + coop + "/" + type, data, {
  111. headers: this.headers,
  112. });
  113. }
  114. // 清空药品
  115. coopDataM(coop, data): any {
  116. return this.http.post(host.host + "/" + coop, data, {
  117. headers: this.headers,
  118. });
  119. }
  120. // 通用操作user data信息(新增/更新/删除)//coop:操作类型addData:新增,updData更新,rmvData删除
  121. coopUserData(coop, type, data): any {
  122. return this.http.post(host.host + "/user/data/" + coop + "/" + type, data, {
  123. headers: this.headers,
  124. });
  125. }
  126. // 获取院区user信息
  127. getHosUser(type, id): any {
  128. return this.http.get(host.host + "/user/data/" + type + "/" + id, {});
  129. }
  130. // 通用操作configuration信息 有操作类型(新增/更新/删除)//coop:操作类型addData:新增,updData更新,rmvData删除
  131. coopTypeConfig(coop, type, data): any {
  132. return this.http.post(
  133. host.host + "/configuration/" + coop + "/" + type,
  134. data,
  135. { headers: this.headers }
  136. );
  137. }
  138. // 通用操作configuration信息(新增/更新/删除)
  139. coopConfig(type, data): any {
  140. return this.http.post(host.host + "/configuration/" + type, data, {
  141. headers: this.headers,
  142. });
  143. }
  144. // 通用操作configuration信息 有操作类型(新增/更新/删除)//coop:操作类型addData:新增,updData更新,rmvData删除
  145. apiPublicData(coop, type, data): any {
  146. return this.http.post(
  147. host.host + "/data/" + coop + "/" + type,
  148. data,
  149. { headers: this.headers }
  150. );
  151. }
  152. // 权限相关
  153. getPermission(type): any {
  154. return this.http.get(host.host + "/permission/roleMenu/" + type, {
  155. headers: this.headers,
  156. });
  157. }
  158. // fetchData查看详情
  159. getFetchData(type, info, id): any {
  160. return this.http.get(
  161. host.host + "/" + type + "/fetchData/" + info + "/" + id,
  162. { headers: this.headers }
  163. );
  164. }
  165. // 自定义请求 post
  166. postCustom(type, info, data): any {
  167. return this.http.post(host.host + "/" + type + "/" + info, data, {
  168. headers: this.headers,
  169. });
  170. }
  171. // 科室二维码打印flag=1
  172. postCustomCode(type, info, data): any {
  173. return this.http.post(host.host + "/" + type + "/" + info + "/1", data, {
  174. headers: this.headers,
  175. });
  176. }
  177. // 自定义请求 get
  178. getCustom(type, info): any {
  179. return this.http.get(host.host + "/" + type + "/" + info, {
  180. headers: this.headers,
  181. });
  182. }
  183. // 调度台-分派工单
  184. assignWorker(data, type): any {
  185. return this.http.post(host.host + "/workerOrder/" + type, data, {
  186. headers: this.headers,
  187. });
  188. }
  189. // 调度台-删除工单
  190. delOrder(id): any {
  191. return this.http.get(host.host + "/workerOrder/delWorkOrder/" + id, {
  192. headers: this.headers,
  193. });
  194. }
  195. // 工单列表-删除工单
  196. delOrders(ids): any {
  197. return this.http.post(
  198. host.host + "/workerOrder/delWorkOrders",
  199. { ids },
  200. { headers: this.headers }
  201. );
  202. }
  203. // 调度台工单相关
  204. coopWorkerOrder(type, data): any {
  205. return this.http.post(host.host + "/workerOrder/" + type, data, {
  206. headers: this.headers,
  207. });
  208. }
  209. // 调度台-工单历史记录
  210. getWorkOrderLog(id): any {
  211. return this.http.get(host.host + "/ser/fetchWorkOrderLog/" + id, {
  212. headers: this.headers,
  213. });
  214. }
  215. // 综合报表
  216. postReportCount(type, data): any {
  217. return this.http.post(host.host + "/report/orderCount/" + type, data, {
  218. headers: this.headers,
  219. });
  220. }
  221. // 报表导出
  222. exportReport(type, data): any {
  223. return this.http.post(host.host + "/report/export/" + type, data, {
  224. headers: this.exportHeader,
  225. responseType: "arraybuffer",
  226. });
  227. }
  228. dataExport(type, data): any {
  229. return this.http.post(host.host + "/data/export/" + type, data, {
  230. headers: this.exportHeader,
  231. responseType: "arraybuffer",
  232. });
  233. }
  234. //新增/编辑轮巡计划
  235. addRoundRobin(type: string, data: any): any {
  236. return this.http.post(host.host + "/orderPlan/" + type, data, {
  237. headers: this.headers,
  238. });
  239. }
  240. //删除轮巡计划
  241. delRoundRobin(id): any {
  242. return this.http.get(host.host + "/orderPlan/deletePlan/" + id, {
  243. headers: this.headers,
  244. });
  245. }
  246. //启用/停用轮巡计划
  247. switchRoundRobin(isSwitch, id): any {
  248. return this.http.get(
  249. `${host.host}/orderPlan/activePlan/${isSwitch}/${id}`,
  250. { headers: this.headers }
  251. );
  252. }
  253. //新增/编辑快捷建单
  254. addShortcutBuildOrders(type: string, data: any): any {
  255. return this.http.post(host.host + "/api/" + type + "/quickOrder", data, {
  256. headers: this.headers,
  257. });
  258. }
  259. //删除快捷建单
  260. delShortcutBuildOrders(id): any {
  261. return this.http.post(host.host + "/api/rmvData/quickOrder", [id], {
  262. headers: this.headers,
  263. });
  264. }
  265. // 快捷建单二维码批量打印
  266. printShortcutBuildOrders(idArr): any {
  267. return this.http.post(host.host + "/api/orderCodes", idArr, {
  268. headers: this.headers,
  269. });
  270. }
  271. //护士端返回二维码信息,flag=0,动态二维码
  272. getDeptCode(idArr) {
  273. return this.http.post(host.host + "/dept/deptCodes/0", idArr, {
  274. headers: this.headers,
  275. });
  276. }
  277. //药房端打印二维码的接口
  278. printRequisition(idArr) {
  279. return this.http.post(host.host + "/drugsBag/printRequisition", idArr, {
  280. headers: this.headers,
  281. });
  282. }
  283. //药房端待打印变为待配药接口
  284. changeToDispensing(idArr, name) {
  285. return this.http.post(
  286. host.host + "/drugsBag/changeToDispensing/" + name,
  287. idArr,
  288. { headers: this.headers }
  289. );
  290. }
  291. //新建工单->获取新建类型
  292. getAutoWorkTypes(hosId) {
  293. return this.http.get(host.host + "/ser/getAutoWorkTypes/" + hosId, {
  294. headers: this.headers,
  295. });
  296. }
  297. //服务台新建工单—调度台建单获取起点科室或者终点科室列表
  298. getdeptList(taskTypeId, patientCode?, startTime?, endTime?) {
  299. return this.http.post(
  300. host.host + "/ser/getdeptList",
  301. { taskTypeId, patientCode: patientCode || undefined, startTime, endTime },
  302. { headers: this.headers }
  303. );
  304. }
  305. //服务台新建工单—调度台建单获取患者
  306. getPatientList(data) {
  307. return this.http.post(host.host + "/ser/getPatientInfo", data, {
  308. headers: this.headers,
  309. });
  310. }
  311. //服务台新建工单—调度台建单获取起点科室或者终点科室列表
  312. buildOrder(data) {
  313. return this.http.post(host.host + "/ser/buildOrder", data, {
  314. headers: this.headers,
  315. });
  316. }
  317. //获取当前用户信息
  318. getCurrentUser1() {
  319. return this.http.get(host.host + "/user/data/getCurrentUser", {
  320. headers: this.headers,
  321. });
  322. }
  323. //获取通话记录音频地址
  324. getCallLogPath(data) {
  325. return this.http.post(host.host + "/callLog/getRecordByPath", data, {
  326. headers: this.headers,
  327. });
  328. }
  329. //根据工作分配和人员id获取科室信息
  330. getDeptByUser(data) {
  331. return this.http.post(host.host + "/api/getDeptByUser", data, {
  332. headers: this.headers,
  333. });
  334. }
  335. //根据工作分配和分组id获取科室信息
  336. getDeptByGroup(data) {
  337. return this.http.post(host.host + "/api/getDeptByGroup", data, {
  338. headers: this.headers,
  339. });
  340. }
  341. //微信配置修改
  342. changeWechatConfig(data) {
  343. return this.http.post(
  344. host.host + "/simple/data/addData/wechatConfig",
  345. data,
  346. { headers: this.headers }
  347. );
  348. }
  349. //系统配置修改
  350. changeSysConfig(data) {
  351. return this.http.post(
  352. host.host + "/simple/data/addListData/systemConfiguration",
  353. data,
  354. { headers: this.headers }
  355. );
  356. }
  357. //数据字典楼栋保存接口
  358. saveBuildingList(data) {
  359. return this.http.post(
  360. host.host + "/simple/data/addListData/building",
  361. data,
  362. { headers: this.headers }
  363. );
  364. }
  365. //数据字典楼栋删除接口
  366. delBuildingList(data) {
  367. return this.http.post(host.host + "/simple/data/rmvData/building", data, {
  368. headers: this.headers,
  369. });
  370. }
  371. //数据字典楼层保存接口
  372. saveFloorList(data) {
  373. return this.http.post(host.host + "/simple/data/addListData/floor", data, {
  374. headers: this.headers,
  375. });
  376. }
  377. //数据字典楼层保存接口
  378. delFloorList(data) {
  379. return this.http.post(host.host + "/simple/data/rmvData/floor", data, {
  380. headers: this.headers,
  381. });
  382. }
  383. //simple增删改查,addData新增,addListData批量新增
  384. simplePost(coop, type, data): any {
  385. return this.http.post(
  386. host.host + "/simple/data/" + coop + "/" + type,
  387. data,
  388. { headers: this.headers }
  389. );
  390. }
  391. //api增删改查
  392. apiPost(coop, type, data): any {
  393. return this.http.post(
  394. host.host + "/api/" + coop + "/" + type,
  395. data,
  396. { headers: this.headers }
  397. );
  398. }
  399. //data增删改查
  400. dataPost(coop, type, data): any {
  401. return this.http.post(
  402. host.host + "/data/" + coop + "/" + type,
  403. data,
  404. { headers: this.headers }
  405. );
  406. }
  407. //获取工单详情里的历史记录
  408. getWorkOrderRecord(data): any {
  409. return this.http.post(host.host + "/workerOrder/getWorkOrderRecord", data, {
  410. headers: this.headers,
  411. });
  412. }
  413. //刷新字典缓存
  414. refreshDic(): any {
  415. return this.http.post(
  416. host.host + "/common/common/refreshCache",
  417. {},
  418. { headers: this.headers }
  419. );
  420. }
  421. //调度台建单获取可搜索的任务类型列表
  422. getTaskTypeBySearchKey(data): any {
  423. return this.http.post(host.host + "/ser/getTaskTypeBySearchKey", data, {
  424. headers: this.headers,
  425. });
  426. }
  427. //调度台建单获取可搜索的任务类型列表-统计备注
  428. getTaskTypeCountRemarkList(data): any {
  429. return this.http.post(host.host + "/ser/getTaskTypeCountRemarkList", data, {
  430. headers: this.headers,
  431. });
  432. }
  433. //切换院区
  434. changeHospital(data): any {
  435. return this.http.post(host.host + "/auth/changeHospital", data, {
  436. headers: this.headers,
  437. });
  438. }
  439. //刷新缓存
  440. refreshTaskType(): any {
  441. return this.http.get(host.host + "/ser/refreshTaskType", {
  442. headers: this.headers,
  443. });
  444. }
  445. //楼栋配置保存接口
  446. saveBuildings(data) {
  447. return this.http.post(
  448. host.host + "/simple/data/addListData/workOrderGradeBuilding",
  449. data,
  450. { headers: this.headers }
  451. );
  452. }
  453. //删除接口
  454. delBuildings(data) {
  455. return this.http.post(
  456. host.host + "/simple/data/rmvData/workOrderGradeBuilding",
  457. data,
  458. { headers: this.headers }
  459. );
  460. }
  461. //检查信息,患者信息
  462. listMsgByMain(type, data) {
  463. return this.http.post(host.host + "/nurse/" + type, data, {
  464. headers: this.headers,
  465. });
  466. }
  467. //院区系统配置修改
  468. changeHospitalSysConfig(data) {
  469. return this.http.post(
  470. host.host + "/simple/data/addListData/hospitalConfig",
  471. data,
  472. { headers: this.headers }
  473. );
  474. }
  475. //删除用户(包含企业微信用户)
  476. rmvDataAndWeChatNum(data, flag) {
  477. return this.http.post(
  478. host.host + "/user/data/rmvDataAndWeChatNum/" + flag,
  479. data,
  480. {
  481. headers: this.headers,
  482. }
  483. );
  484. }
  485. //数据核对
  486. infoSearch(type, id) {
  487. return this.http.get(host.host + "/testData/view/" + type + "/" + id, {
  488. headers: this.headers,
  489. });
  490. }
  491. // 更新,新增,删除检查类型设置
  492. upDictionary(data) {
  493. return this.http.post(host.host + "/common/common/upDictionary", data, {
  494. headers: this.headers,
  495. });
  496. }
  497. // 护士端定时预约工单立即执行
  498. executeNow(id) {
  499. return this.http.get(host.host + "/api/directStartOrder/" + id, {
  500. headers: this.headers,
  501. });
  502. }
  503. //定时下班列表立即执行
  504. executeNowClassesJob(data) {
  505. return this.http.post(host.host + "/configuration/directOffDuty", data, {
  506. headers: this.headers,
  507. });
  508. }
  509. //轮巡计划列表立即执行
  510. executeNowOrderPlan(id) {
  511. return this.http.get(host.host + "/orderPlan/directOrderPlan/" + id, {
  512. headers: this.headers,
  513. });
  514. }
  515. //查报修列表
  516. listWxIncident(data) {
  517. return this.http.post(host.host + "/itsm/fetchDataList/incident", data, {
  518. headers: this.headers,
  519. });
  520. }
  521. //获取附件图片
  522. listAttachment(type, id) {
  523. return this.http.get(host.host + "/itsm/common/listAttachment/" + type + "/" + id, {
  524. headers: this.headers,
  525. });
  526. }
  527. //查列表
  528. fetchListBx(type, data) {
  529. return this.http.post(host.host + "/itsm/fetchDataList/" + type, data, {
  530. headers: this.headers,
  531. });
  532. }
  533. //查单个
  534. fetchDataBx(target, id) {
  535. return this.http.post(host.host + "/itsm/fetchData/" + target + "/" + id,{}, {
  536. headers: this.headers,
  537. });
  538. }
  539. //提交报修
  540. addWxIncident(data) {
  541. return this.http.post(host.host + "/itsm/addWxIncident", data, {
  542. headers: this.headers,
  543. });
  544. }
  545. //获取工单单号
  546. wxbx(data) {
  547. return this.http.post(host.host + "/itsm/restful/sj", data, {
  548. headers: this.headers,
  549. });
  550. }
  551. //获取ITSM字典
  552. getDictionaryByITSM(data) {
  553. return this.http.post(host.host + "/itsm/common/getDictionary", data, {
  554. headers: this.headers,
  555. });
  556. }
  557. //报修评价
  558. degree(data) {
  559. return this.http.post(host.host + "/itsm/bpm/degree", data, {
  560. headers: this.headers,
  561. });
  562. }
  563. //汇总单
  564. querySummaryDoc(data) {
  565. return this.http.post(host.host + "/itsm/bpm/querySummaryDoc", data, {
  566. headers: this.headers,
  567. });
  568. }
  569. //修改用户
  570. saveUser(data) {
  571. return this.http.post(host.host + "/itsm/user/saveUser", data, {
  572. headers: this.headers,
  573. });
  574. }
  575. //复制院区
  576. copyHosTaskType(data) {
  577. return this.http.post(host.host + "/api/copyHosTaskType", data, {
  578. headers: this.headers,
  579. });
  580. }
  581. //药房端2统计数据
  582. getDrugsBagStateCount(data) {
  583. return this.http.post(host.host + "/ser/getDrugsBagStateCount", data, {
  584. headers: this.headers,
  585. });
  586. }
  587. // 标本视图查询列表接口
  588. specimenView2(data): any {
  589. return this.http.post(
  590. host.host + "/nurse/specimenView2",
  591. data,
  592. { headers: this.headers }
  593. );
  594. }
  595. //问卷发布
  596. managerQuestionnaire(data) {
  597. return this.http.post(
  598. host.host + "/user/data/managerQuestionnaire",
  599. data,
  600. {
  601. headers: this.headers,
  602. }
  603. );
  604. }
  605. //问卷预览
  606. managerQuestionnairePreview(data,token) {
  607. return this.http.post(
  608. host.host + "/api/survey/" + token,
  609. data,
  610. {
  611. headers: this.headers,
  612. }
  613. );
  614. }
  615. //问卷提交答案
  616. surveyCommit(data) {
  617. return this.http.post(
  618. host.host + "/api/survey/commit",
  619. data,
  620. {
  621. headers: this.headers,
  622. }
  623. );
  624. }
  625. //查询回收数据
  626. listQuestionnaire(data) {
  627. return this.http.post(
  628. host.host + "/user/data/listQuestionnaire",
  629. data,
  630. {
  631. headers: this.headers,
  632. }
  633. );
  634. }
  635. //查询楼栋核酸
  636. getNucleicAcidBuildingSummary(data) {
  637. return this.http.post(
  638. host.host + "/workerOrder/nucleicAcidBuildingSummary",
  639. data,
  640. {
  641. headers: this.headers,
  642. }
  643. );
  644. }
  645. //打印楼栋核酸
  646. printNucleicAcid(data) {
  647. return this.http.post(
  648. host.host + "/api/printNucleicAcid",
  649. data,
  650. {
  651. headers: this.headers,
  652. }
  653. );
  654. }
  655. //获取附件-通用
  656. getPreviewImage(type, id) {
  657. return this.http.get(host.host + "/common/common/listAttachment/"+ type +"/" + id, {
  658. headers: this.headers,
  659. });
  660. }
  661. //补充打印楼栋核酸
  662. supplementPrintNucleicAcid(data) {
  663. return this.http.post(
  664. host.host + "/api/supplementPrintNucleicAcid",
  665. data,
  666. {
  667. headers: this.headers,
  668. }
  669. );
  670. }
  671. //查看工单里的血制品信息
  672. checkData(data) {
  673. return this.http.post(
  674. host.host + "/transflow/checkData",
  675. data,
  676. {
  677. headers: this.headers,
  678. }
  679. );
  680. }
  681. //陪检配置保存接口
  682. saveInspections(data) {
  683. return this.http.post(
  684. host.host + "/simple/data/addListData/workOrderInspectScore",
  685. data,
  686. { headers: this.headers }
  687. );
  688. }
  689. // 重置密码
  690. resetpwd(id): any {
  691. return this.http.get(host.host + "/auth/resetpwd/" + id, {});
  692. }
  693. // api接口
  694. apiPostAll(type, data) {
  695. return this.http.post(
  696. host.host + "/api/" + type,
  697. data,
  698. { headers: this.headers }
  699. );
  700. }
  701. //手动创建手术工单
  702. createOrTakeOrder(data) {
  703. return this.http.post(
  704. host.host + "/transflow/createOrTakeOrder",
  705. data,
  706. {
  707. headers: this.headers,
  708. }
  709. );
  710. }
  711. //手动创建手术工单-送回病房
  712. createRemandOrder(data) {
  713. return this.http.post(
  714. host.host + "/transflow/createRemandOrder",
  715. data,
  716. {
  717. headers: this.headers,
  718. }
  719. );
  720. }
  721. // 获取logo和title
  722. getSysNameAndLogo(hosId): any {
  723. return this.http.get(host.host + "/auth/getSysNameAndLogo" + (hosId ? '?hosId=' + hosId : ''), {});
  724. }
  725. //获取启动中的工作分配方案
  726. getUserWorkDept(data) {
  727. return this.http.post(
  728. host.host + "/auth/getUserWorkDept",
  729. data,
  730. {
  731. headers: this.headers,
  732. }
  733. );
  734. }
  735. //上下班
  736. onOrOffLine(data) {
  737. return this.http.post(
  738. host.host + "/auth/onOrOffLine",
  739. data,
  740. {
  741. headers: this.headers,
  742. }
  743. );
  744. }
  745. // 科室检查率统计
  746. postReportDept(type, data): any {
  747. return this.http.post(host.host + "/report/dept/" + type, data, {
  748. headers: this.headers,
  749. });
  750. }
  751. // 楼栋检查率统计
  752. postReportBuilding(type, data): any {
  753. return this.http.post(host.host + "/report/building/" + type, data, {
  754. headers: this.headers,
  755. });
  756. }
  757. // 楼栋检查统计
  758. postReportBuild(type, data): any {
  759. return this.http.post(host.host + "/report/build/" + type, data, {
  760. headers: this.headers,
  761. });
  762. }
  763. // 获取检验项目列表
  764. specimenCount(data): any {
  765. return this.http.post(host.host + "/api/specimenDesc/specimenCount", data, {
  766. headers: this.headers,
  767. });
  768. }
  769. // 被服洗涤-视图
  770. clothesWashing(data, type): any {
  771. return this.http.post(host.host + "/clothesWashing/" + type, data, {
  772. headers: this.headers,
  773. });
  774. }
  775. // transflow
  776. transflow(data, type): any {
  777. return this.http.post(host.host + "/transflow/" + type, data, {
  778. headers: this.headers,
  779. });
  780. }
  781. // 打印门诊服务点二维码
  782. qrcodeCardNo(data): any {
  783. return this.http.post(host.host + "/patient/qrCode", data, {
  784. headers: this.headers,
  785. });
  786. }
  787. // 医废-获取重量和袋数
  788. getWeightAndCount(data): any {
  789. return this.http.post(host.host + "/medicalWaste/getWeightAndCount", data, {
  790. headers: this.headers,
  791. });
  792. }
  793. // 医废-出库
  794. medicalWasteComplete(data): any {
  795. return this.http.post(host.host + "/medicalWaste/complete", data, {
  796. headers: this.headers,
  797. });
  798. }
  799. // 模板导出
  800. exportExcel(model, data): any {
  801. return this.http.post(host.host + "/user/data/exportExcel/" + model, data, {
  802. headers: this.exportHeader,
  803. responseType: "arraybuffer",
  804. });
  805. }
  806. // 巡检相关接口
  807. inspectionPost(type, data): any {
  808. return this.http.post(host.host + "/inspection/" + type, data, {
  809. headers: this.headers,
  810. });
  811. }
  812. // 验证工单问卷二维码是否过期
  813. verifyPastApi(data): any {
  814. return this.http.post(host.host + "/questionnaire/check", data, {
  815. headers: this.headers,
  816. });
  817. }
  818. // 科室发药单打印
  819. transfusionPrint(model, id): any {
  820. return this.http.get(host.host + `/simple/data/fetchData/${model}/${id}`);
  821. }
  822. // 科室发药配送建单
  823. transfusionBuildOrder(data): any {
  824. return this.http.post(host.host + "/infusion/solutions/createOrTakeOrder", data, {
  825. headers: this.headers,
  826. });
  827. }
  828. // 发药批次-配置科室删除
  829. transfusionConfigDeptDel(data): any {
  830. return this.http.post(host.host + "/infusion/solutions/remove", data, {
  831. headers: this.headers,
  832. });
  833. }
  834. // 配置中心
  835. incidentPost(type, data): any {
  836. return this.http.post(host.host + "/incident/" + type, data, {
  837. headers: this.headers,
  838. });
  839. }
  840. // 发药批次-配置科室数据
  841. getConsumeDept(data): any {
  842. return this.http.post(host.host + "/infusion/solutions/getConsumeDept", data, {
  843. headers: this.headers,
  844. });
  845. }
  846. //删除附件图片
  847. removeAttachment(token) {
  848. return this.http.post(host.host + `/common/common/removeAttachment/${token}`,{}, {
  849. headers: this.headers,
  850. });
  851. }
  852. // wechat相关-重置token
  853. refreshToken(type, data): any {
  854. return this.http.post(host.host + "/wechat/" + type, data, {
  855. headers: this.headers,
  856. });
  857. }
  858. // 故障工单-获取数量
  859. getCount(data): any {
  860. return this.http.post(host.host + "/flow/incident/list/count", data, {
  861. headers: this.headers,
  862. });
  863. }
  864. // 故障工单-导出
  865. downDataModel(data): any {
  866. return this.http.post(host.host + "/incident/data/downDataModel/incident/3", data, {
  867. headers: this.exportHeader,
  868. responseType: "arraybuffer",
  869. });
  870. }
  871. // 故障工单-流程操作
  872. flowPost(type, data): any {
  873. return this.http.post(host.host + "/flow/" + type, data, {
  874. headers: this.headers,
  875. });
  876. }
  877. // 查询汇总单
  878. querySummaryDocNew(data): any {
  879. return this.http.post(host.host + "/incident/data/querySummaryDoc", data, {
  880. headers: this.headers,
  881. });
  882. }
  883. // 新增汇总单
  884. addSummaryDoc(data): any {
  885. return this.http.post(host.host + "/incident/data/addSummaryDoc", data, {
  886. headers: this.headers,
  887. });
  888. }
  889. // 返回附件上传url
  890. returnUploadUrl(type, id): string {
  891. return `${host.host}/common/common/uploadAttachment/${type}/${id}/${id}`;
  892. }
  893. // 返回excel导入url
  894. returnImportExcelUrl(type): string {
  895. return `${host.host}/user/data/importExcel/${type}`
  896. }
  897. // 设置责任部门
  898. changeIncidentDuty(data): any {
  899. return this.http.post(host.host + "/incident/data/changeIncidentDuty", data, {
  900. headers: this.headers,
  901. });
  902. }
  903. // 下载附件
  904. downloadAttachment(token): any {
  905. return host.host + "/common/common/downloadAttachment/" + token;
  906. }
  907. //病理申请单打印
  908. pathologyPrint(data) {
  909. return this.http.post(host.host + `/pathology/print`, data, {
  910. headers: this.headers,
  911. });
  912. }
  913. //病理申请单追加打印/全量打印
  914. pathologyCheckPrint(type,businessId,data) {
  915. return this.http.post(host.host + `/pathology/check/${type}/${businessId}`, data, {
  916. headers: this.headers,
  917. });
  918. }
  919. // 病例申请单暂存
  920. pathologyOperation(data,operation) {
  921. return this.http.post(host.host + `/pathology/${operation}`, data, {
  922. headers: this.headers,
  923. });
  924. }
  925. // 病理查询标本条码
  926. pathologyScanCode(data) {
  927. return this.http.post(host.host + `/pathology/scanCode`, data, {
  928. headers: this.headers,
  929. });
  930. }
  931. // 工号搜索
  932. jobSearch(data) {
  933. return this.http.post(host.host + `/data/isRepeat`, data, {
  934. headers: this.headers,
  935. });
  936. }
  937. // 标本间获取批次号
  938. generateBatchNumber() {
  939. return this.http.post(host.host + `/pathology/generateBatchNumber/blbatch`, {}, {
  940. headers: this.headers,
  941. });
  942. }
  943. // 标本间获取标本接收信息
  944. getSpecimenInfo(batchNo,deptId,data) {
  945. return this.http.post(host.host + `/pathology/getInfo/${batchNo}/${deptId}`, data, {
  946. headers: this.headers,
  947. });
  948. }
  949. // 标本间标本接收-交接完成
  950. handoverCompleted(data) {
  951. return this.http.post(host.host + `/pathology/handoverCompleted`, data, {
  952. headers: this.headers,
  953. });
  954. }
  955. // 病理科打包
  956. pathologyPack(data) {
  957. return this.http.post(host.host + `/pathology/pack`, data, {
  958. headers: this.headers,
  959. });
  960. }
  961. // 病理科今日接收汇总
  962. pathologyToday(data) {
  963. return this.http.post(host.host + `/pathology/receiveToday`, data, {
  964. headers: this.headers,
  965. });
  966. }
  967. // 大输液-发药批次-发药总量
  968. drugsGross(batchId) {
  969. return this.http.get(host.host + `/infusion/solutions/drugsNum/${batchId}`, {
  970. headers: this.headers,
  971. });
  972. }
  973. // 大输液-发药批次-发药信息
  974. drugsInfo(data) {
  975. return this.http.post(host.host + `/infusion/solutions/dispensing/medicine/details`,data, {
  976. headers: this.headers,
  977. });
  978. }
  979. // 统计分析-陪检统计
  980. inspectionStatistics(data) {
  981. return this.http.post(host.host + `/report/accompanied/inspection`,data, {
  982. headers: this.headers,
  983. });
  984. }
  985. // 调度台工单列表
  986. orderList(data) {
  987. return this.http.post(host.host + `/ser/merge/orderList`,data, {
  988. headers: this.headers,
  989. });
  990. }
  991. // 调度台头部运维分组
  992. incidentUserTaskCount(data) {
  993. return this.http.post(host.host + `/incident/incidentUserTaskCount`,data, {
  994. headers: this.headers,
  995. });
  996. }
  997. // 大输液-科室汇总统计
  998. summaryData(data) {
  999. return this.http.post(host.host + `/infusion/solutions/dept/summary`,data, {
  1000. headers: this.headers,
  1001. });
  1002. }
  1003. // 获取动态密钥
  1004. getSecretKey(deptId) {
  1005. return this.http.post(host.host + `/dept/secretKey/${deptId}`,{}, {
  1006. headers: this.headers,
  1007. });
  1008. }
  1009. // 根据来电电话查科室
  1010. findPhoneDept(data) {
  1011. return this.http.post(host.host + `/user/data/findPhoneDept`, data, {
  1012. headers: this.headers,
  1013. });
  1014. }
  1015. // 获取细胞学标本
  1016. getCellDictionary(data) {
  1017. return this.http.post(host.host + `/common/common/getDictionary`,data, {
  1018. headers: this.headers,
  1019. });
  1020. }
  1021. // 门诊病理采样端单点登录查询
  1022. registerOutpatient(name, value, data) {
  1023. return this.http.post(host.host + `/pathology/outpatient/${name}/${value}`,data, {
  1024. headers: this.headers,
  1025. });
  1026. }
  1027. // 删除故障现象
  1028. deleteIncidentCategory(data) {
  1029. return this.http.post(host.host + `/incident/deleteIncidentCategory`, data, {
  1030. headers: this.headers,
  1031. });
  1032. }
  1033. // 综合统计
  1034. getReportData(data) {
  1035. return this.http.post(host.host + `/itsm/report/index`, data, {
  1036. headers: this.headers,
  1037. });
  1038. }
  1039. }