西藏巴青项目

withdrawalPeriod.js 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import request from "@/utils/request"
  2. /** 休药期标准 — 分页列表 */
  3. export function listWithdrawalPeriodStandard(query) {
  4. return request({
  5. url: "/withdrawalPeriod/standard/list",
  6. method: "get",
  7. params: query
  8. })
  9. }
  10. /** 详情 */
  11. export function getWithdrawalPeriodStandard(id) {
  12. return request({
  13. url: "/withdrawalPeriod/standard/" + id,
  14. method: "get"
  15. })
  16. }
  17. /** 新增 */
  18. export function addWithdrawalPeriodStandard(data) {
  19. return request({
  20. url: "/withdrawalPeriod/standard",
  21. method: "post",
  22. data
  23. })
  24. }
  25. /** 修改 */
  26. export function updateWithdrawalPeriodStandard(data) {
  27. return request({
  28. url: "/withdrawalPeriod/standard",
  29. method: "put",
  30. data
  31. })
  32. }
  33. /** 删除 */
  34. export function delWithdrawalPeriodStandard(ids) {
  35. return request({
  36. url: "/withdrawalPeriod/standard/" + ids,
  37. method: "delete"
  38. })
  39. }
  40. /** 同步知识库 */
  41. export function syncKbWithdrawalPeriodStandard(id) {
  42. return request({
  43. url: "/withdrawalPeriod/standard/syncKb/" + id,
  44. method: "post"
  45. })
  46. }
  47. /** 移出知识库 */
  48. export function removeKbWithdrawalPeriodStandard(id) {
  49. return request({
  50. url: "/withdrawalPeriod/standard/removeKb/" + id,
  51. method: "post"
  52. })
  53. }