workbench.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. import request from "@/utils/request.js";
  2. // 商户信息
  3. export function getTechnician(data) {
  4. return request({
  5. method: 'get',
  6. url: '/technician/technician/getTechnician',
  7. data,
  8. header: {
  9. 'Authorization': `tf:${uni.getStorageSync('access-token')}`
  10. }
  11. });
  12. }
  13. // 切换上下班
  14. export function switchToOffline(data) {
  15. return request({
  16. method: 'get',
  17. url: '/technician/technician/switchToOffline',
  18. data,
  19. header: {
  20. 'Authorization': `tf:${uni.getStorageSync('access-token')}`
  21. }
  22. });
  23. }
  24. // 查询商户技能列表
  25. export function getSkillList(data) {
  26. return request({
  27. method: 'post',
  28. url: '/technician/technician/getSkillList',
  29. data,
  30. header: {
  31. 'Authorization': `tf:${uni.getStorageSync('access-token')}`
  32. }
  33. });
  34. }
  35. // 查询商户合同记录
  36. export function getContractRecords(data) {
  37. return request({
  38. method: 'get',
  39. url: '/technician/technician/getContractRecords',
  40. data,
  41. header: {
  42. 'Authorization': `tf:${uni.getStorageSync('access-token')}`
  43. }
  44. });
  45. }
  46. // 查询城市列表
  47. export function getCityList(data) {
  48. return request({
  49. method: 'get',
  50. url: '/cityOperationApplication/getCityList',
  51. data,
  52. header: {
  53. 'Authorization': `tf:${uni.getStorageSync('access-token')}`
  54. }
  55. });
  56. }
  57. // 保存城市运营申请
  58. export function saveCity(data) {
  59. return request({
  60. method: 'post',
  61. url: '/cityOperationApplication/saveCity',
  62. data,
  63. header: {
  64. 'Authorization': `tf:${uni.getStorageSync('access-token')}`
  65. }
  66. });
  67. }
  68. // 免车费设置
  69. export function saveFareSetting(data) {
  70. return request({
  71. method: 'post',
  72. url: '/project/fare/setting/save',
  73. data,
  74. header: {
  75. 'Authorization': `tf:${uni.getStorageSync('access-token')}`
  76. }
  77. });
  78. }
  79. // 查询未申请列表
  80. export function getNotApplyList(data) {
  81. return request({
  82. method: 'post',
  83. url: '/technician/technician/getNotApplyList',
  84. data,
  85. header: {
  86. 'Authorization': `tf:${uni.getStorageSync('access-token')}`
  87. }
  88. });
  89. }
  90. // 开通新服务
  91. export function applyForService(data) {
  92. return request({
  93. method: 'post',
  94. url: '/technician/technician/applyForService',
  95. data,
  96. header: {
  97. 'Authorization': `tf:${uni.getStorageSync('access-token')}`
  98. }
  99. });
  100. }
  101. // 更新商户项目
  102. export function updateMaProject(data) {
  103. return request({
  104. method: 'post',
  105. url: '/technician/technician/updateMaProject',
  106. data,
  107. header: {
  108. 'Authorization': `tf:${uni.getStorageSync('access-token')}`
  109. }
  110. });
  111. }
  112. // 重新申请开通
  113. export function updateApply(data) {
  114. return request({
  115. method: 'post',
  116. url: '/technician/technician/updateApply',
  117. data,
  118. header: {
  119. 'Authorization': `tf:${uni.getStorageSync('access-token')}`
  120. }
  121. });
  122. }
  123. // 查询待接单列表
  124. export function getWaitList(data) {
  125. return request({
  126. method: 'post',
  127. url: '/technician/technician/wait/list',
  128. data,
  129. header: {
  130. 'Authorization': `tf:${uni.getStorageSync('access-token')}`
  131. }
  132. });
  133. }
  134. // 查询我的评分列表
  135. export function getCommentList(data) {
  136. return request({
  137. method: 'post',
  138. url: '/order/comment/merchant/my/page',
  139. data,
  140. header: {
  141. 'Authorization': `tf:${uni.getStorageSync('access-token')}`
  142. }
  143. });
  144. }
  145. // 查询商户的综合评分
  146. export function getCommentScore(data) {
  147. return request({
  148. method: 'get',
  149. url: '/order/comment/merchant/my/score',
  150. data,
  151. header: {
  152. 'Authorization': `tf:${uni.getStorageSync('access-token')}`
  153. }
  154. });
  155. }