yp-dict-info.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. import request from '@/utils/request'
  2. /**
  3. * 查询药品账页字典--相关
  4. * @returns
  5. */
  6. export function selectYpDict(text, groupNo, isSee) {
  7. return request({
  8. url: '/ypDict/selectYpDict',
  9. method: 'get',
  10. params: { text, groupNo, isSee },
  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. * @param serial serial
  39. * @returns
  40. */
  41. export function selectYpDictByCode(code, serial) {
  42. return request({
  43. url: '/ypDict/selectYpDictByCode',
  44. method: 'get',
  45. params: { code, serial },
  46. })
  47. }
  48. /**
  49. * 保存药品账页信息
  50. * @param data
  51. * @returns
  52. */
  53. export function saveYpDict(data) {
  54. return request({
  55. url: '/ypDict/saveYpDict',
  56. method: 'post',
  57. data
  58. })
  59. }
  60. export function selectYpGroupNameByYfFlag(text, yfFlag) {
  61. return request({
  62. url: '/ypDict/selectYpGroupNameByYfFlag',
  63. method: 'get',
  64. params: { text, yfFlag },
  65. })
  66. }
  67. export function selectYpGroupNameAll(text) {
  68. return request({
  69. url: '/ypDict/selectYpGroupNameAll',
  70. method: 'get',
  71. params: { text },
  72. })
  73. }
  74. /**
  75. * 更新临购药品标志(1:是)
  76. * @param {string} code 药品code
  77. * @param {string} serial 药品序号
  78. * @param {string} tempPurchaseFlag 临购药品标志
  79. * @returns
  80. */
  81. export function updateYpTempPurchase(code, serial, tempPurchaseFlag) {
  82. return request({
  83. url: '/ypDict/updateYpTempPurchase',
  84. method: 'get',
  85. params: { code, serial, tempPurchaseFlag },
  86. })
  87. }
  88. /**
  89. * 药库是否停用药品
  90. * @returns
  91. */
  92. export function updateYkYpStopOrUsed(groupNo, code, serial, delFlag) {
  93. return request({
  94. url: '/ypDict/updateYkYpStopOrUsed',
  95. method: 'get',
  96. params: { groupNo, code, serial, delFlag },
  97. })
  98. }
  99. /**
  100. * 更新国家基本药物标志(1:是)
  101. * @returns
  102. */
  103. export function updateYpJbFlag(code, serial, jbFlag) {
  104. return request({
  105. url: '/ypDict/updateYpJbFlag',
  106. method: 'get',
  107. params: { code, serial, jbFlag },
  108. })
  109. }
  110. /**
  111. * 查询药品库存量
  112. * @param code 编码
  113. * @param groupNo 药库
  114. * @returns {*}
  115. */
  116. export function selectYpStorageInfo(code, groupNo) {
  117. return request({
  118. url: '/ypDict/selectYpStorageInfo',
  119. method: 'get',
  120. params: { code, groupNo },
  121. })
  122. }
  123. /**
  124. * 更新高警示药品标志(1:是)
  125. * @returns
  126. */
  127. export function updateYpHighWarning(code, serial, flag) {
  128. return request({
  129. url: '/ypDict/updateYpHighWarning',
  130. method: 'get',
  131. params: { code, serial, flag },
  132. })
  133. }
  134. /**
  135. * 更新国家组织药品集中采购中标药品标志(1:是)
  136. * @returns
  137. */
  138. export function updateYpWinningBidder(code, serial, flag) {
  139. return request({
  140. url: '/ypDict/updateYpWinningBidder',
  141. method: 'get',
  142. params: { code, serial, flag },
  143. })
  144. }
  145. /**
  146. * 更新重点监控药品标志(1:是)
  147. * @returns
  148. */
  149. export function updateYpFocusMonitor(code, serial, flag) {
  150. return request({
  151. url: '/ypDict/updateYpFocusMonitor',
  152. method: 'get',
  153. params: { code, serial, flag },
  154. })
  155. }
  156. /**
  157. * 更新口服药品是否允许退药标志(1:允许退药)
  158. * @returns
  159. */
  160. export function updateYpReturnFlag(code, serial, flag) {
  161. return request({
  162. url: '/ypDict/updateYpReturnFlag',
  163. method: 'get',
  164. params: { code, serial, flag },
  165. })
  166. }