main.service.ts 29 KB

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