pay.js 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. import { HcApi } from '../../../../request/index'
  2. // 合同支付项
  3. export default {
  4. //系统中期支付项列表(ype=0(未被引用),type=1(已引用),type=空(全部))
  5. async getSyslist(form) {
  6. return HcApi({
  7. url: '/api/blade-meter/mid/pay/item/system/list',
  8. method: 'post',
  9. params: form,
  10. })
  11. },
  12. //合同段中期支付项引用项目级数据
  13. async referenced(form) {
  14. return HcApi({
  15. url: '/api/blade-meter/mid/pay/item/contract/referenced',
  16. method: 'post',
  17. params: form,
  18. }, false)
  19. },
  20. //合同段中期支付项分页
  21. async getProListPage(form) {
  22. return HcApi({
  23. url: '/api/blade-meter/mid/pay/item/contract/page',
  24. method: 'post',
  25. data: form,
  26. })
  27. },
  28. //合同段中期支付项详情
  29. async getProDetail(form) {
  30. return HcApi({
  31. url: '/api/blade-meter/mid/pay/item/contract/detail',
  32. method: 'get',
  33. params: form,
  34. })
  35. },
  36. //合同段中期支付项修改
  37. async updateProList(form) {
  38. return HcApi({
  39. url: '/api/blade-meter/mid/pay/item/contract/update',
  40. method: 'post',
  41. data: form,
  42. }, false)
  43. },
  44. //合同段中期支付项删除
  45. async removeProList(form) {
  46. return HcApi({
  47. url: '/api/blade-meter/mid/pay/item/contract/remove',
  48. method: 'get',
  49. params: form,
  50. })
  51. },
  52. //合同段中期支付项列表(全部)
  53. async getProPayList(form) {
  54. return HcApi({
  55. url: '/api/blade-meter/mid/pay/item/contract/all-list',
  56. method: 'post',
  57. params: form,
  58. })
  59. },
  60. //中期支付项添加汇总项
  61. async addCollect(form) {
  62. return HcApi({
  63. url: '/api/blade-meter/mid/pay/item/bind/submit',
  64. method: 'post',
  65. params: form,
  66. }, false)
  67. },
  68. //中期支付项删除汇总项
  69. async removeCollect(form) {
  70. return HcApi({
  71. url: '/api/blade-meter/mid/pay/item/bind/remove',
  72. method: 'post',
  73. params: form,
  74. }, false)
  75. },
  76. //合同段中期支付项排序
  77. async getSort(form) {
  78. return HcApi({
  79. url: '/api/blade-meter/mid/pay/item/contract/sort',
  80. method: 'post',
  81. params: form,
  82. }, false)
  83. },
  84. }