Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

advice.js 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
  1. import request from '@/utils/request'
  2. export function getAdviceConfig(type) {
  3. return request({
  4. url: '/api/getadviceconfigs?type=' + type,
  5. method: 'get'
  6. })
  7. }
  8. export function getAllAdviceConfig() {
  9. return request({
  10. url: '/api/getalladviceconfig',
  11. method: 'get'
  12. })
  13. }
  14. export function CreateDoctorAdvice(id, advice, mode) {
  15. return request({
  16. url: '/api/patients/advice/create?id=' + id + '&mode=' + mode,
  17. method: 'post',
  18. data: advice,
  19. headers: {
  20. Permission: 3
  21. }
  22. })
  23. }
  24. export function EditDoctorAdvice(patient, id, advice, mode) {
  25. return request({
  26. url:
  27. '/api/patients/advice/edit?id=' +
  28. id +
  29. '&patient=' +
  30. patient +
  31. '&mode=' +
  32. mode,
  33. method: 'Put',
  34. data: advice,
  35. headers: {
  36. Permission: 2
  37. }
  38. })
  39. }
  40. export function ExecDoctorAdvice(patient, id, time, mode, origin, hisAdviceIds, adviceIds) {
  41. var params = {
  42. id: id,
  43. patient: patient,
  44. execution_time: time,
  45. mode: mode,
  46. origin: origin,
  47. hisAdviceIds: hisAdviceIds,
  48. adviceIds: adviceIds
  49. }
  50. return request({
  51. url: '/api/patients/advice/exec',
  52. method: 'Post',
  53. params: params,
  54. headers: {
  55. Permission: 2
  56. }
  57. })
  58. }
  59. export function CheckDoctorAdvice(patient, id, mode, origin, hisAdviceIds, adviceIds) {
  60. var params = {
  61. id: id,
  62. patient: patient,
  63. mode: mode,
  64. origin: origin,
  65. hisAdviceIds: hisAdviceIds,
  66. adviceIds: adviceIds
  67. }
  68. return request({
  69. url: '/api/patients/advice/check',
  70. method: 'Post',
  71. params: params,
  72. headers: {
  73. Permission: 2
  74. }
  75. })
  76. }
  77. export function getDoctorAdviceList(params) {
  78. return request({
  79. url: '/api/patients/advices',
  80. method: 'Get',
  81. params: params
  82. })
  83. }
  84. // export function StopDoctorAdvice(id, reason,mode) {
  85. // return request({
  86. // url: '/api/patients/advice/stop?id=' + id+"&mode="+mode,
  87. // method: 'Post',
  88. // data: reason,
  89. // headers:{"Permission":3},
  90. //
  91. // })
  92. // }
  93. export function StopGroupAdvice(groupno, reason, mode) {
  94. return request({
  95. url: '/api/patients/advice/stopgroup?groupno=' + groupno + '&mode=' + mode,
  96. method: 'Post',
  97. data: reason,
  98. headers: {
  99. Permission: 3
  100. }
  101. })
  102. }
  103. export function DeleteDoctorAdvice(id, mode) {
  104. return request({
  105. url: '/api/patients/advice/delete?id=' + id + '&mode=' + mode,
  106. method: 'Delete',
  107. headers: {
  108. Permission: 2
  109. }
  110. })
  111. }
  112. export function CreateDrugDic(data) {
  113. return request({
  114. url: '/api/drugdic/create',
  115. method: 'post',
  116. data: data
  117. })
  118. }
  119. export function UpdateDrugDic(id, data) {
  120. return request({
  121. url: '/api/drugdic/update?id=' + id,
  122. method: 'put',
  123. data: data
  124. })
  125. }
  126. export function DeleteDrugDic(id) {
  127. return request({
  128. url: '/api/drugdic/delete?id=' + id,
  129. method: 'delete'
  130. })
  131. }
  132. export function CreateDrugWay(data) {
  133. return request({
  134. url: '/api/drugway/create',
  135. method: 'post',
  136. data: data
  137. })
  138. }
  139. export function UpdateDrugWay(id, data) {
  140. return request({
  141. url: '/api/drugway/update?id=' + id,
  142. method: 'put',
  143. data: data
  144. })
  145. }
  146. export function DeleteDrugWay(id) {
  147. return request({
  148. url: '/api/drugway/delete?id=' + id,
  149. method: 'delete'
  150. })
  151. }
  152. export function CreateExecutionFrequency(data) {
  153. return request({
  154. url: '/api/executionfrequency/create',
  155. method: 'post',
  156. data: data
  157. })
  158. }
  159. export function UpdateExecutionFrequency(id, data) {
  160. return request({
  161. url: '/api/executionfrequency/update?id=' + id,
  162. method: 'put',
  163. data: data
  164. })
  165. }
  166. export function DeleteExecutionFrequency(id) {
  167. return request({
  168. url: '/api/executionfrequency/delete?id=' + id,
  169. method: 'delete'
  170. })
  171. }
  172. export function CreateAdviceTemplate(data) {
  173. return request({
  174. url: '/api/advicetemplate/create',
  175. method: 'post',
  176. data: data
  177. })
  178. }
  179. export function UpdateAdviceTemplate(id, data, drug_id) {
  180. return request({
  181. url: '/api/advicetemplate/update?id=' + id + '&drug_id=' + drug_id,
  182. method: 'put',
  183. data: data
  184. })
  185. }
  186. export function DeleteAdviceTemplate(id, template_id, parent_id) {
  187. return request({
  188. url:
  189. '/api/advicetemplate/delete?id=' +
  190. id +
  191. '&template_id=' +
  192. template_id +
  193. '&parent_id=' +
  194. parent_id,
  195. method: 'delete'
  196. })
  197. }
  198. export function postAdviceTemplate(params, name, sort, advice_type) {
  199. return request({
  200. url:
  201. '/api/advicetemplate/create?template_name=' +
  202. name +
  203. '&advice_type=' +
  204. advice_type +
  205. '&sort=' + sort,
  206. method: 'post',
  207. data: params
  208. })
  209. }
  210. export function CreateGroupAdvice(id, groupno, advices, mode) {
  211. if (advices.remind > 0) {
  212. return request({
  213. url:
  214. '/api/patients/advice/creategroup?id=' +
  215. id +
  216. '&groupno=' +
  217. groupno +
  218. '&mode=' +
  219. mode,
  220. method: 'post',
  221. data: advices,
  222. headers: {
  223. Permission: 2
  224. }
  225. })
  226. } else {
  227. return request({
  228. url:
  229. '/api/patients/advice/creategroup?id=' +
  230. id +
  231. '&groupno=' +
  232. groupno +
  233. '&mode=' +
  234. mode,
  235. method: 'post',
  236. data: advices,
  237. headers: {
  238. Permission: 2
  239. }
  240. })
  241. }
  242. }
  243. export function DeleteGroupAdvice(groupno, mode) {
  244. return request({
  245. url:'/api/patients/advice/deletegroup?groupno=' + groupno + '&mode=' + mode,
  246. method: 'delete',
  247. headers: {
  248. Permission: 3
  249. }
  250. })
  251. }
  252. export function getAllAdviceTemplate() {
  253. return request({
  254. url: '/api/advicetemplate/list',
  255. method: 'get'
  256. })
  257. }
  258. export function CreateSingleAdviceTemplate(advices) {
  259. return request({
  260. url: '/api/advicetemplate/add',
  261. method: 'post',
  262. params: advices
  263. })
  264. }
  265. export function DeleteParentAdviceTemplate(id) {
  266. return request({
  267. url: '/api/adviceparenttemplate/delete?template_id=' + id,
  268. method: 'delete'
  269. })
  270. }
  271. export function CreateSubAdvice(params) {
  272. return request({
  273. url: '/api/subadvice/create',
  274. method: 'post',
  275. params: params
  276. })
  277. }
  278. export function updateTemplateName(params) {
  279. return request({
  280. url: '/api/template/modify',
  281. method: 'post',
  282. params: params
  283. })
  284. }
  285. export function getDoctorAdviceConfig() {
  286. return request({
  287. url: '/api/adviceconfig/get',
  288. method: 'get'
  289. })
  290. }
  291. export function postDoctorAdviceConfig(params) {
  292. return request({
  293. url: '/api/adviceconfig/isopen',
  294. method: 'post',
  295. params: params
  296. })
  297. }
  298. export function getDoctorInitConfig() {
  299. return request({
  300. url: '/api/advicetemplate/init/get',
  301. method: 'get'
  302. })
  303. }
  304. export function PostInitAdviceTemplate(params) {
  305. return request({
  306. url: '/api/advicetemplate/init/commit',
  307. method: 'post',
  308. params: params
  309. })
  310. }
  311. export function getPrintInfo(data, advice_type, stop_type) {
  312. console.log('data', data)
  313. console.log('advice_tuype23232', advice_type)
  314. console.log('stop_type', stop_type)
  315. return request({
  316. url: '/api/advicetemplate/getprintinfo?advice_type=' + advice_type + '&stop_type=' + stop_type,
  317. method: 'post',
  318. data: data
  319. })
  320. }
  321. export function EditNewDoctorAdvice(patient, id, advice, mode) {
  322. return request({
  323. url:
  324. '/api/patients/advice/edit?id=' +
  325. id +
  326. '&patient=' +
  327. patient +
  328. '&mode=' +
  329. mode,
  330. method: 'Put',
  331. data: advice,
  332. headers: {
  333. Permission: 2
  334. }
  335. })
  336. }
  337. export function CreateNewDoctorAdvice(id, advice, mode) {
  338. return request({
  339. url: '/api/patients/advice/create?id=' + id + '&mode=' + mode,
  340. method: 'post',
  341. data: advice,
  342. headers: {
  343. Permission: 2
  344. }
  345. })
  346. }
  347. export function CreateNewGroupAdvice(id, groupno, advices, mode) {
  348. console.log("advices2332332233w",advices)
  349. if (advices.remind > 0) {
  350. return request({
  351. url:
  352. '/api/patients/advice/creategroup?id=' +
  353. id +
  354. '&groupno=' +
  355. groupno +
  356. '&mode=' +
  357. mode,
  358. method: 'post',
  359. data: advices,
  360. headers: {
  361. Permission: 3
  362. }
  363. })
  364. } else {
  365. return request({
  366. url:
  367. '/api/patients/advice/creategroup?id=' +
  368. id +
  369. '&groupno=' +
  370. groupno +
  371. '&mode=' +
  372. mode,
  373. method: 'post',
  374. data: advices,
  375. headers: {
  376. Permission: 3
  377. }
  378. })
  379. }
  380. }
  381. export function DeleteNewDoctorAdvice(id, mode) {
  382. return request({
  383. url: '/api/patients/advice/delete?id=' + id + '&mode=' + mode,
  384. method: 'Delete',
  385. headers: {
  386. Permission: 2
  387. }
  388. })
  389. }
  390. export function DeleteNewGroupAdvice(groupno, mode) {
  391. return request({
  392. url:
  393. '/api/patients/advice/deletegroup?groupno=' + groupno + '&mode=' + mode,
  394. method: 'delete',
  395. headers: {
  396. Permission: 3
  397. }
  398. })
  399. }
  400. export function StopDoctorAdvice(id, reason, mode) {
  401. return request({
  402. url: '/api/patients/advice/stop?id=' + id + '&mode=' + mode,
  403. method: 'Post',
  404. data: reason,
  405. headers: {
  406. Permission: 2
  407. }
  408. })
  409. }
  410. export function ExecGroupAdvice(groupno, time, mode) {
  411. return request({
  412. url:
  413. '/api/patients/advice/execgroup?groupno=' +
  414. groupno +
  415. '&execution_time=' +
  416. time +
  417. '&mode=' +
  418. mode,
  419. method: 'Post',
  420. headers: {
  421. Permission: 2
  422. }
  423. })
  424. }
  425. export function CheckGroupAdvice(groupno, mode) {
  426. var params = {
  427. groupno: groupno,
  428. mode: mode
  429. }
  430. return request({
  431. url: '/api/patients/advice/checkgroup',
  432. method: 'Post',
  433. params: params,
  434. headers: {
  435. Permission: 2
  436. }
  437. })
  438. }
  439. export function getPatientSchedules(id, params) {
  440. return request({
  441. url: '/api/patients/advices/getpatientschedules?id=' + id,
  442. method: 'get',
  443. params: params
  444. })
  445. }
  446. export function SaveEditAdvices(params) {
  447. return request({
  448. url: '/api/patients/advices/saveditadvices',
  449. method: 'get',
  450. params: params
  451. })
  452. }
  453. export function GetLastOrNextDoctorAdvice(params) {
  454. return request({
  455. url: '/api/doctoradvice/get',
  456. method: 'get',
  457. params: params
  458. })
  459. }
  460. export function getSchedualDoctors(params) {
  461. return request({
  462. url: '/api/schedule/advices',
  463. method: 'get',
  464. params: params
  465. })
  466. }
  467. export function getNewSchedualDoctors(params) {
  468. console.log('params-----', params)
  469. return request({
  470. url: '/api/schedule/new/advices',
  471. method: 'get',
  472. params: params
  473. })
  474. }
  475. export function getDoctorAdviceCount(params) {
  476. return request({
  477. url: '/api/schedule/getdoctoradvicecount',
  478. method: 'get',
  479. params: params
  480. })
  481. }
  482. export function GetOrderDoctorAdvice(params) {
  483. return request({
  484. url: '/api/schedule/getorderdoctoradvice',
  485. method: 'get',
  486. params: params
  487. })
  488. }
  489. export function getPatientSchedule(params) {
  490. return request({
  491. url: '/api/schedule/getpatientshedule',
  492. method: 'get',
  493. params: params
  494. })
  495. }
  496. export function excutionDoctorAdvice(params) {
  497. return request({
  498. url: '/api/schedule/excutiondoctoradvice',
  499. method: 'Get',
  500. params: params
  501. })
  502. }
  503. export function checkNewDoctorAdvice(params) {
  504. return request({
  505. url: '/api/schedule/checknewdoctoradvice',
  506. method: 'get',
  507. params: params
  508. })
  509. }
  510. export function settleNewDoctorAdvice(params) {
  511. return request({
  512. url: '/api/schedule/settlenewdoctoradvice',
  513. method: 'Get',
  514. params: params
  515. })
  516. }
  517. export function excutionDoctorAdviceById(params) {
  518. return request({
  519. url: '/api/schedule/excutiondoctoradvicebyid',
  520. method: 'get',
  521. params: params
  522. })
  523. }
  524. export function GetMobileScheduleList(params) {
  525. return request({
  526. url: '/api/schedule/getmobileschedulelist',
  527. method: 'Get',
  528. params: params
  529. })
  530. }
  531. export function getNewLongSchedualDoctors(params){
  532. return request({
  533. url: '/api/schedule/new/long/advices',
  534. method: 'get',
  535. params: params
  536. })
  537. }
  538. export function getPatientsByName(params){
  539. return request({
  540. url:"/api/schedule/getpatientbyname",
  541. method:"get",
  542. params:params,
  543. })
  544. }
  545. export function getDocAdviceByPatientId(params){
  546. return request({
  547. url:"/api/schedule/getdocadvicebypatientid",
  548. method:"get",
  549. params:params,
  550. })
  551. }