综合办公系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

price.js 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /*
  2. * @Author: wrh
  3. * @Date: 2024-03-21 10:27:54
  4. * @LastEditors: Please set LastEditors
  5. * @LastEditTime: 2024-05-20 17:02:00
  6. */
  7. import request from '@/utils/request'
  8. // 查询单价表列表
  9. export function listPrice(query) {
  10. return request({
  11. url: '/oa/price/list',
  12. method: 'get',
  13. params: query
  14. })
  15. }
  16. // 查询单价表详细
  17. export function getPrice(id) {
  18. return request({
  19. url: '/oa/price/' + id,
  20. method: 'get'
  21. })
  22. }
  23. // 新增单价表
  24. export function addPrice(data) {
  25. return request({
  26. url: '/oa/price',
  27. method: 'post',
  28. data: data
  29. })
  30. }
  31. // 修改单价表
  32. export function updatePrice(data) {
  33. return request({
  34. url: '/oa/price',
  35. method: 'put',
  36. data: data
  37. })
  38. }
  39. // 删除单价表
  40. export function delPrice(id) {
  41. return request({
  42. url: '/oa/price/' + id,
  43. method: 'delete'
  44. })
  45. }
  46. // 导出单价表
  47. export function exportPrice(query) {
  48. return request({
  49. url: '/oa/price/export',
  50. method: 'get',
  51. params: query
  52. })
  53. }
  54. // 查询工作类别列表
  55. export function getWorkTypeList() {
  56. return request({
  57. url: '/oa/price/workTypeList',
  58. method: 'get'
  59. })
  60. }
  61. // 根据工作类别查询工作项目
  62. export function getWorkItemList(params) {
  63. return request({
  64. url: '/oa/price/workItem',
  65. method: 'get',
  66. params:params
  67. })
  68. }
  69. // 根据工作项目查询项目细项
  70. export function getSubItemList(params) {
  71. return request({
  72. url: '/oa/price/subItem',
  73. method: 'get',
  74. params:params
  75. })
  76. }
  77. // 根据工作项目查询比例等级
  78. export function getScaleGradeList(params) {
  79. return request({
  80. url: '/oa/price/scaleGrade',
  81. method: 'get',
  82. params:params
  83. })
  84. }
  85. // 根据比例等级查询出单位、一般地类、复杂地类
  86. export function getUnitPrice(params) {
  87. return request({
  88. url: '/oa/price/price',
  89. method: 'get',
  90. params:params
  91. })
  92. }
  93. // 根据单价类别查询备注
  94. export function getPriceRemarkByWorkType(params) {
  95. return request({
  96. url: '/oa/price/remark',
  97. method: 'get',
  98. params:params
  99. })
  100. }