common.js 9.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. import request from '@/utils/request'
  2. import url from 'postcss-url'
  3. export function getInspectionMajor(params) {
  4. return request({
  5. url: '/com/api/getinspectionmajor',
  6. method: 'get',
  7. params: params
  8. })
  9. }
  10. export function getInspectionMinor(id, params) {
  11. return request({
  12. url: '/com/api/getinspectionminor?id=' + id,
  13. method: 'get',
  14. params: params
  15. })
  16. }
  17. export function getInspectionRange(id, params) {
  18. return request({
  19. url: '/com/api/getinspectionrange?id=' + id,
  20. method: 'get',
  21. params: params
  22. })
  23. }
  24. export function saveConfiguration(data) {
  25. console.log('data', data)
  26. return request({
  27. url: '/com/api/saveconfiguration',
  28. method: 'post',
  29. data: data
  30. })
  31. }
  32. export function getConfigurationList(limit, page) {
  33. const params = {
  34. limit: limit,
  35. page: page
  36. }
  37. return request({
  38. url: 'com/api/getconfigurationlist',
  39. method: 'get',
  40. params: params
  41. })
  42. }
  43. export function getConfigurationDetail(id, params) {
  44. return request({
  45. url: 'com/api/getconfigurationdetail?id=' + id,
  46. method: 'get',
  47. params: params
  48. })
  49. }
  50. export function getAllInspectionMinor(params) {
  51. return request({
  52. url: 'com/api/getallinspectionminor',
  53. method: 'get',
  54. params: params
  55. })
  56. }
  57. export function UpdateConfiguration(id, data) {
  58. console.log('data', data)
  59. return request({
  60. url: 'com/api/updateconfiguration?id=' + id,
  61. method: 'post',
  62. data: data
  63. })
  64. }
  65. export function DeleteConfiguration(id, params) {
  66. return request({
  67. url: 'com/api/deleteconfiguration?id=' + id,
  68. method: 'delete',
  69. params: params
  70. })
  71. }
  72. export function getAllInspectionData(params) {
  73. return request({
  74. url: 'com/api/getallinspectiondata',
  75. method: 'get',
  76. params: params
  77. })
  78. }
  79. export function SaveCheckConfiguration(data) {
  80. console.log('data', data)
  81. return request({
  82. url: '/com/api/savecheckconfiguration',
  83. method: 'post',
  84. data: data
  85. })
  86. }
  87. export function getAllCheckList(page, limit) {
  88. const params = {
  89. page: page,
  90. limit: limit
  91. }
  92. return request({
  93. url: '/com/api/getallchecklist',
  94. method: 'get',
  95. params: params
  96. })
  97. }
  98. export function getCheckDetail(id, params) {
  99. return request({
  100. url: '/com/api/getcheckdetail?id=' + id,
  101. method: 'get',
  102. params: params
  103. })
  104. }
  105. export function UpdateCheck(id, data) {
  106. return request({
  107. url: '/com/api/updatecheck?id=' + id,
  108. method: 'post',
  109. data: data
  110. })
  111. }
  112. export function DeleteCheck(id, params) {
  113. return request({
  114. url: '/com/api/deletecheck?id=' + id,
  115. method: 'delete',
  116. params: params
  117. })
  118. }
  119. export function getDialysisModeType(startime, endtime) {
  120. const params = {
  121. startime: startime,
  122. endtime: endtime
  123. }
  124. return request({
  125. url: '/com/api/getdialysismodetype',
  126. method: 'get',
  127. params: params
  128. })
  129. }
  130. export function getTotalLapseCount(startime, endtime) {
  131. const params = {
  132. startime: startime,
  133. endtime: endtime
  134. }
  135. console.log('params', params)
  136. return request({
  137. url: '/com/api/gettotallapsecount',
  138. method: 'get',
  139. params: params
  140. })
  141. }
  142. export function getTotalSexCount(startime, endtime) {
  143. const params = {
  144. startime: startime,
  145. endtime: endtime
  146. }
  147. return request({
  148. url: '/com/api/gettotalsexcount',
  149. method: 'get',
  150. params: params
  151. })
  152. }
  153. export function getTotalInfectiousCount(startime, endtime) {
  154. const params = {
  155. startime: startime,
  156. endtime: endtime
  157. }
  158. console.log('传染病', params)
  159. return request({
  160. url: '/com/api/gettoalinfectiouscount',
  161. method: 'get',
  162. params: params
  163. })
  164. }
  165. export function getTotalAgeCount(startime, endtime) {
  166. const params = {
  167. startime: startime,
  168. endtime: endtime
  169. }
  170. return request({
  171. url: '/com/api/gettotalagecount',
  172. method: 'get',
  173. params: params
  174. })
  175. }
  176. export function getTotalDialysisCount(startime, endtime) {
  177. const params = {
  178. startime: startime,
  179. endtime: endtime
  180. }
  181. return request({
  182. url: '/com/api/gettotaldialysiscount',
  183. method: 'get',
  184. params: params
  185. })
  186. }
  187. export function getCurrentOrgPatients(params) {
  188. return request({
  189. url: '/com/api/getcurentorgpatients',
  190. method: 'get',
  191. params: params
  192. })
  193. }
  194. export function getDialysisList(startime, endtime, page, limit) {
  195. const params = {
  196. startime: startime,
  197. endtime: endtime,
  198. page: page,
  199. limit: limit
  200. }
  201. return request({
  202. url: '/com/api/getdialysislist',
  203. method: 'get',
  204. params: params
  205. })
  206. }
  207. export function getLastSort(params) {
  208. return request({
  209. url: '/com/api/getlastsort',
  210. method: 'get',
  211. params: params
  212. })
  213. }
  214. export function getLastCheckList(params) {
  215. return request({
  216. url: '/com/api/getlastchecklist',
  217. method: 'Get',
  218. params: params
  219. })
  220. }
  221. export function getDialysisDetailById(id, startime, endtime, limit, page) {
  222. const params = {
  223. id: id,
  224. startime: startime,
  225. endtime: endtime,
  226. limit: limit,
  227. page: page
  228. }
  229. return request({
  230. url: '/com/api/getdialysisdetailbyid',
  231. method: 'get',
  232. params: params
  233. })
  234. }
  235. export function getPrescriptionByName(patientid, startime, endtime, limit, page) {
  236. const params = {
  237. patientid: patientid,
  238. startime: startime,
  239. endtime: endtime,
  240. limit: limit,
  241. page: page
  242. }
  243. // console.log('params', params)
  244. return request({
  245. url: '/com/api/getprescriptionbyname',
  246. method: 'Get',
  247. params: params
  248. })
  249. }
  250. export function geStatistics(params) {
  251. return request({
  252. url: '/com/api/getstatistics',
  253. method: 'Get',
  254. params: params
  255. })
  256. }
  257. export function getInspectionTotalCount(startime, endtime, patientid) {
  258. const params = {
  259. startime: startime,
  260. endtime: endtime,
  261. patientid: patientid
  262. }
  263. console.log('病人新项目', params)
  264. return request({
  265. url: '/com/api/getinspectiontotalcount',
  266. method: 'get',
  267. params: params
  268. })
  269. }
  270. export function getInspectionDetailById(id, startime, endtime) {
  271. const params = {
  272. id: id,
  273. startime: startime,
  274. endtime: endtime
  275. }
  276. console.log('params', params)
  277. return request({
  278. url: '/com/api/getinspectionDetailById',
  279. method: 'get',
  280. params: params
  281. })
  282. }
  283. export function getSearchPatientInfo(patientid, startime, endtime) {
  284. const params = {
  285. patientid: patientid,
  286. startime: startime,
  287. endtime: endtime
  288. }
  289. return request({
  290. url: '/com/api/getsearchpatientinfo',
  291. method: 'get',
  292. params: params
  293. })
  294. }
  295. export function getAllMajorInspection(params) {
  296. return request({
  297. url: '/com/api/getallmajorInspection',
  298. method: 'Get',
  299. params: params
  300. })
  301. }
  302. export function getPatientList(startime, endtime, limit, page) {
  303. const params = {
  304. startime: startime,
  305. endtime: endtime,
  306. limit: limit,
  307. page: page
  308. }
  309. return request({
  310. url: '/com/api/getpatientlist',
  311. method: 'Get',
  312. params: params
  313. })
  314. }
  315. export function getPatientDetailCheck(id, startime, endtime) {
  316. const params = {
  317. id: id,
  318. startime: startime,
  319. endtime: endtime
  320. }
  321. return request({
  322. url: '/com/api/getPatientDetailCheck',
  323. method: 'get',
  324. params: params
  325. })
  326. }
  327. export function SearchDetailCheck(keyword, startime, endtime) {
  328. const params = {
  329. keyword: keyword,
  330. startime: startime,
  331. endtime: endtime
  332. }
  333. return request({
  334. url: '/com/api/searchdetailcheck',
  335. method: 'get',
  336. params: params
  337. })
  338. }
  339. export function getNormData(params) {
  340. return request({
  341. url: '/com/api/getnormdata',
  342. method: 'Get',
  343. params: params
  344. })
  345. }
  346. export function getFirstQuarter(params) {
  347. console.log('params', params)
  348. return request({
  349. url: '/com/api/getfirstquarter',
  350. method: 'get',
  351. params: params
  352. })
  353. }
  354. export function getProjectList(params) {
  355. return request({
  356. url: '/com/api/getprojectlist',
  357. method: 'get',
  358. params: params
  359. })
  360. }
  361. export function getMonthProjectList(params) {
  362. return request({
  363. url: '/com/api/getmonthprojectlist',
  364. method: 'get',
  365. params: params
  366. })
  367. }
  368. export function getPatientsControl(lapstor, startime, endtime, page, limit) {
  369. const params = {
  370. lapstor: lapstor,
  371. startime: startime,
  372. endtime: endtime,
  373. page: page,
  374. limit: limit
  375. }
  376. console.log('params', params)
  377. return request({
  378. url: '/com/api/getpatientscontrol',
  379. method: 'get',
  380. params: params
  381. })
  382. }
  383. export function getCartogramlist(lapsetor, startime, endtime, limit, page) {
  384. const params = {
  385. lapsetor: lapsetor,
  386. startime: startime,
  387. endtime: endtime,
  388. limit: limit,
  389. page: page
  390. }
  391. return request({
  392. url: '/com/api/getcartogramlist',
  393. method: 'Get',
  394. params: params
  395. })
  396. }
  397. export function getPatientContorlAnalysis(params) {
  398. return request({
  399. url: '/com/api/getpatientcontor',
  400. method: 'get',
  401. params: params
  402. })
  403. }
  404. export function GetQualityControl(params) {
  405. console.log('params', params)
  406. return request({
  407. url: '/com/api/getqualitycontrol',
  408. method: 'Get',
  409. params: params
  410. })
  411. }
  412. export function getTreatlist(params) {
  413. return request({
  414. url: '/com/api/gettreatlist',
  415. method: 'get',
  416. params: params
  417. })
  418. }
  419. export function getPatientComplianceDetail(params) {
  420. return request({
  421. url: '/com/api/getpatientcompliancedetal',
  422. method: 'Get',
  423. params: params
  424. })
  425. }