yp-dict-info.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import request from '@/utils/request'
  2. /**
  3. * 查询药品账页字典--相关
  4. * @returns
  5. */
  6. export function selectYpDict(text, groupNo) {
  7. return request({
  8. url: '/ypDict/selectYpDict',
  9. method: 'get',
  10. params: { text, groupNo },
  11. })
  12. }
  13. /**
  14. * 查询药品账页字典集合
  15. * @returns
  16. */
  17. export function selectYpDictData() {
  18. return request({
  19. url: '/ypDict/selectYpDictData',
  20. method: 'get',
  21. params: {},
  22. })
  23. }
  24. /**
  25. * 是否停用药品
  26. * @returns
  27. */
  28. export function updateYpStopOrUsed(code, serial, delFlag) {
  29. return request({
  30. url: '/ypDict/updateYpStopOrUsed',
  31. method: 'get',
  32. params: { code, serial, delFlag },
  33. })
  34. }
  35. /**
  36. * 根据code(药品编码)查询药品账页信息
  37. * @param {string} code
  38. * @returns
  39. */
  40. export function selectYpDictByCode(code, serial) {
  41. return request({
  42. url: '/ypDict/selectYpDictByCode',
  43. method: 'get',
  44. params: { code, serial },
  45. })
  46. }
  47. /**
  48. * 保存药品账页信息
  49. * @param {Array} data
  50. * @returns
  51. */
  52. export function saveYpDict(data) {
  53. return request({
  54. url: '/ypDict/saveYpDict',
  55. method: 'post',
  56. data
  57. })
  58. }
  59. export function selectYpGroupNameByYfFlag(text, yfFlag) {
  60. return request({
  61. url: '/ypDict/selectYpGroupNameByYfFlag',
  62. method: 'get',
  63. params: { text, yfFlag },
  64. })
  65. }