api.js 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. import { get, post, path } from "@/http/http.js"
  2. /**
  3. * 微信登录
  4. */
  5. export function api_wechatLoginEncrypt(data){
  6. return post("/auth/wxlogina", data);
  7. }
  8. /**
  9. * 微信登录2
  10. */
  11. export function api_wechatAuth(data){
  12. return post("/auth/wxlogin", data);
  13. }
  14. /**
  15. * 绑定工号
  16. */
  17. export function api_bindAccount(data){
  18. return post("/data/isBindAccount", data);
  19. }
  20. /**
  21. * 获取系统名称
  22. */
  23. export function api_getSysNameAndLogo(){
  24. return get("/auth/getSysNameAndLogo");
  25. }
  26. /**
  27. * 获取字典列表
  28. */
  29. export function api_getDictionary(data){
  30. return post("/common/common/getDictionary", data);
  31. }
  32. /**
  33. * 获取工单列表
  34. */
  35. export function api_incident(data){
  36. return post("/user/data/fetchDataList/incident", data);
  37. }
  38. /**
  39. * 获取工单列表-数量
  40. */
  41. export function api_incident_count(data){
  42. return post("/flow/incident/list/count", data);
  43. }
  44. /**
  45. * 获取楼栋列表
  46. */
  47. export function api_area(data){
  48. return post("/user/data/fetchDataList/area", data);
  49. }
  50. /**
  51. * 获取故障现象列表
  52. */
  53. export function api_incidentcategory(data){
  54. return post("/incident/listIncidentCategory", data);
  55. }
  56. /**
  57. * 获取报修图片列表
  58. */
  59. export function api_wechatRequesterIncident(data){
  60. return get("/common/common/listAttachment/wechatRequesterIncident/" + data);
  61. }
  62. /**
  63. * 获取报修录音
  64. */
  65. export function api_wechatIncidentRecord(data){
  66. return get("/common/common/listAttachment/wechatIncidentRecord/" + data);
  67. }
  68. /**
  69. * 获取通话音频
  70. */
  71. export function api_callrecord(data){
  72. return post("/simple/data/fetchDataList/callLog", data);
  73. }
  74. export function api_getRecordCall(data){
  75. return post("/callLog/getRecordByPath", data);
  76. }
  77. /**
  78. * 获取工作组列表
  79. */
  80. export function api_group(data){
  81. return post("/data/fetchDataList/group2", data);
  82. }
  83. /**
  84. * 获取人员列表
  85. */
  86. export function api_user(data){
  87. return post("/data/fetchDataList/user", data);
  88. }
  89. /**
  90. * 获取院区列表
  91. */
  92. export function api_branch(data){
  93. return post("/data/fetchDataList/hospital", data);
  94. }
  95. /**
  96. * 获取责任科室列表
  97. */
  98. export function api_dutyDepartment(data){
  99. return post("/user/data/fetchDataList/dutyDepartment", data);
  100. }
  101. /**
  102. * 获取事件详情
  103. */
  104. export function api_incidentDetail(data){
  105. return get("/simple/data/fetchData/incident/" + data);
  106. }
  107. /**
  108. * 转派/指派/退回/延期处理/新建事件
  109. */
  110. export function api_incidentTask(type, data){
  111. return post("/flow/incident/task/" + type, data);
  112. }
  113. /**
  114. * 获取汇总单信息
  115. */
  116. export function api_querySummaryDoc(data){
  117. return post("/incident/data/querySummaryDoc", data);
  118. }
  119. /**
  120. * 获取耗材列表
  121. */
  122. export function api_consumable(data){
  123. return post("/bpm/data/fetchDataList/consumable", data);
  124. }
  125. /**
  126. * 添加/修改/删除耗材
  127. */
  128. export function api_addSummaryDoc(data){
  129. return post("/incident/data/addSummaryDoc", data);
  130. }
  131. /**
  132. * 获取工时管理列表
  133. */
  134. export function api_workHourManagement(data){
  135. return post("/bpm/data/fetchDataList/workHourManagement", data);
  136. }
  137. /**
  138. * 上传附件
  139. */
  140. export function api_uploadAttachment(type, id){
  141. return `${path}/common/common/uploadAttachment/${type}/${id}/${id}`
  142. }
  143. /**
  144. * 获取附件
  145. */
  146. export function api_listAttachment(type, id){
  147. return get(`/common/common/listAttachment/${type}/${id}`);
  148. }
  149. /**
  150. * 获取事件流程
  151. */
  152. export function api_incidentLog(data){
  153. return post("/simple/data/fetchDataList/incidentLog", data);
  154. }
  155. /**
  156. * 获取报修科室列表
  157. */
  158. export function api_department(data){
  159. return post("/data/fetchDataList/department", data);
  160. }
  161. /**
  162. * 获取地点列表
  163. */
  164. export function api_place(data){
  165. return post("/user/data/fetchDataList/place", data);
  166. }
  167. /**
  168. * 获取系统配置
  169. */
  170. export function api_systemConfiguration(data){
  171. return post("/sysinfo/data/fetchDataList/systemConfiguration", data);
  172. }
  173. /**
  174. * 获取事件单号
  175. */
  176. export function api_sj(){
  177. return get("/bpm/bpm/restful");
  178. }
  179. /**
  180. * 获取故障耗材
  181. */
  182. export function api_incidentCategoryConsumable(data){
  183. return post("/user/data/fetchDataList/incidentCategoryConsumable", data);
  184. }
  185. // 获取知识库列表
  186. export function api_getSolution(data){
  187. return post("/data/fetchDataList/solution", data);
  188. }
  189. /**
  190. * 账号密码登录
  191. */
  192. export function api_loginEncrypt(data){
  193. return post("/auth/loginEncrypt", data);
  194. }
  195. /**
  196. * 获取巡检执行列表
  197. */
  198. export function api_inspectionTask(data){
  199. return post("/simple/data/fetchDataList/inspectionTask", data);
  200. }
  201. /**
  202. * 获取巡检执行列表-数量
  203. */
  204. export function api_listCount(data){
  205. return post("/itsmTemp/listCount", data);
  206. }
  207. /**
  208. * 获取字典列表
  209. */
  210. export function api_hsms_getDictionary(data){
  211. return post("/hsms/common/getDictionary", data);
  212. }
  213. /**
  214. * 获取巡检单列表
  215. */
  216. export function api_inspectionForm(data){
  217. return post("/simple/data/fetchDataList/inspectionForm", data);
  218. }
  219. /**
  220. * 获取楼栋列表
  221. */
  222. export function api_building(data){
  223. return post("/hsms/fetchDataList/building", data);
  224. }
  225. /**
  226. * 巡检签到
  227. */
  228. export function api_scanCode(data){
  229. return post("/itsmTemp/scanCode", data);
  230. }
  231. /**
  232. * 巡检执行项保存
  233. */
  234. export function api_addModel(data){
  235. return post("/itsmTemp/addModel", data);
  236. }
  237. /**
  238. * 报修端-公告
  239. */
  240. export function api_getNotice(data){
  241. return post("/user/data/fetchDataList/notice", data);
  242. }
  243. /**
  244. * 报修端-首页
  245. */
  246. export function api_getCount(data){
  247. return post("/repair/incident/count", data);
  248. }
  249. /**
  250. * 报修端-保存个人信息
  251. */
  252. export function api_userSave(data){
  253. return post("/user/data/updData/user", data);
  254. }
  255. /**
  256. * 报修端-保存个人信息
  257. */
  258. export function api_taskresolve(data){
  259. return post("/flow/incident/task/resolve", data);
  260. }
  261. /**
  262. * 报修端-提交报修
  263. */
  264. export function api_request(data){
  265. return post("/flow/incident/task/request", data);
  266. }
  267. // 通用list
  268. export function getFetchDataList(type, target, data){
  269. return post("/" + type + "/fetchDataList/" + target, data);
  270. }
  271. // 报修资产扫描
  272. export function api_repairScanCode(data){
  273. return post("/repair/scanCode", data);
  274. }
  275. // 报修工单撤回
  276. export function api_repairCancel(data){
  277. return post("/flow/incident/task/cancel", data);
  278. }
  279. /**
  280. * 获取科室详情
  281. */
  282. export function api_departmentDetail(id){
  283. return get("/simple/data/fetchData/department/" + id);
  284. }