index.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. /*
  2. * @Author: wanglj
  3. * @Date: 2022-04-25 10:38:19
  4. * @LastEditors: wanglj
  5. * @LastEditTime: 2025-01-09 15:19:14
  6. * @Description: file content
  7. * @FilePath: \labsop_website\src\api\introduce.js
  8. */
  9. import request from "@/utils/micro_request";
  10. const insrtPath = $GlobalConfig.VUE_APP_INSTR_PATH;
  11. const financePath = $GlobalConfig.VUE_APP_FINANCE_PATH;
  12. const basePath = $GlobalConfig.VUE_APP_AdminPath;
  13. // 获取仪器列表
  14. export function getInstrList(data) {
  15. return request.postRequestWithClientInfo(
  16. insrtPath,
  17. "JiangSuUniversity",
  18. "GetList",
  19. data
  20. );
  21. }
  22. // 获取仪器详情
  23. export function getInstrDetails(data) {
  24. return request.postRequestWithClientInfo(
  25. insrtPath,
  26. "JiangSuUniversity",
  27. "GetEntityById",
  28. data
  29. );
  30. }
  31. // 获取附件列表
  32. export function getFileTable(data) {
  33. return request.postRequestWithClientInfo(
  34. insrtPath,
  35. "JiangSuUniversity",
  36. "GetDocumentListByInst",
  37. data
  38. );
  39. }
  40. // 获取公告列表
  41. export function getNoticeTable(data) {
  42. return request.postRequestWithClientInfo(
  43. insrtPath,
  44. "JiangSuUniversity",
  45. "GetNoticeListByInst",
  46. data
  47. );
  48. }
  49. // 获取型号数量
  50. export function getInstNameEnCount(data) {
  51. return request.postRequestWithClientInfo(
  52. insrtPath,
  53. "JiangSuUniversity",
  54. "GetInstNameEnCount",
  55. data
  56. );
  57. }
  58. // 获取计费信息
  59. export function getChargeCfg(data) {
  60. return request.postRequestWithClientInfo(
  61. insrtPath,
  62. "JiangSuUniversity",
  63. "ChargeCfg",
  64. data
  65. );
  66. }
  67. // 获取送样信息
  68. export function getSampleOption(data) {
  69. return request.postRequestWithClientInfo(
  70. insrtPath,
  71. "JiangSuUniversity",
  72. "SampleOption",
  73. data
  74. );
  75. }
  76. // 获取预约信息
  77. export function getAppointListByInst(data) {
  78. return request.postRequestWithClientInfo(
  79. insrtPath,
  80. "JiangSuUniversity",
  81. "GetListByInst",
  82. data
  83. );
  84. }
  85. // 获取仪器预约设置详情
  86. export function getSettingDetail(data) {
  87. return request.postRequestWithClientInfo(
  88. insrtPath,
  89. "TusInstrument",
  90. "GetConfig",
  91. data
  92. );
  93. }
  94. // 获取全部预约情况
  95. export function getAppointInfo(data) {
  96. return request.postRequestWithClientInfo(
  97. insrtPath,
  98. "TusInstrumentAppointment",
  99. "AppointInfo",
  100. data
  101. );
  102. }
  103. // 是否在黑名单中
  104. export function checkInBlacklist(data) {
  105. return request.postRequestWithClientInfo(
  106. insrtPath,
  107. "TusBlacklist",
  108. "IsBlocked",
  109. data
  110. );
  111. }
  112. // 获取通知列表
  113. export function getNoticelist(data) {
  114. return request.postRequestWithClientInfo(
  115. insrtPath,
  116. "TusInstrumentNotice",
  117. "GetList",
  118. data
  119. );
  120. }
  121. // 获取技术服务列表
  122. export function getTechList(data) {
  123. return request.postRequestWithClientInfo(
  124. insrtPath,
  125. "TechTechnicalService",
  126. "GetList",
  127. data
  128. );
  129. }
  130. // 获取设备预约情况
  131. export function getInstrAppointInfo(data) {
  132. return request.postRequestWithClientInfo(
  133. insrtPath,
  134. "TusInstrumentAppointment",
  135. "GetEntityById",
  136. data
  137. );
  138. }
  139. // 预约新增
  140. export function appointAdd(data) {
  141. return request.postRequestWithClientInfo(
  142. insrtPath,
  143. "TusInstrumentAppointment",
  144. "Create",
  145. data
  146. );
  147. }
  148. // 预约编辑
  149. export function appointUpdate(data) {
  150. return request.postRequestWithClientInfo(
  151. insrtPath,
  152. "TusInstrumentAppointment",
  153. "UpdateById",
  154. data
  155. );
  156. }
  157. // 获取用户列表
  158. export function getUserList(data) {
  159. return request.postRequestWithClientInfo(basePath, "User", "GetList", data);
  160. }
  161. // 列表
  162. export function getFinanceAccountList(data) {
  163. return request.postRequestWithClientInfo(
  164. financePath,
  165. "Finance",
  166. "GetFinanceAccountList",
  167. data
  168. );
  169. }
  170. // 当前用户课题详情
  171. export function getMySelfProjectGroup(data) {
  172. return request.postRequestWithClientInfo(
  173. basePath,
  174. "ProjectGroup",
  175. "GetProjectGroupByUser",
  176. data
  177. );
  178. }
  179. export function getInstrListByUser(data) {
  180. return request.postRequestWithClientInfo(
  181. insrtPath,
  182. "TusInstrumentAppointment",
  183. "GetListByUser",
  184. data
  185. );
  186. }
  187. // 使用人取消送样预约
  188. export function userCancelAppoint(query) {
  189. return request.postRequest(insrtPath, 'TusInstrumentSampleDelivery', 'UserCancel', query);
  190. }
  191. // 取消送样预约
  192. export function cancelAppoint(query) {
  193. return request.postRequest(insrtPath, 'TusInstrumentSampleDelivery', 'AdminCancel', query);
  194. }