common.js 11KB

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