index.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { http } from "/@/utils/http";
  2. import { loadEnv } from "@build/index";
  3. const { VITE_PROXY_DOMAIN_REAL, VITE_PROXY_USER_REAL } = loadEnv();
  4. const userAPi = VITE_PROXY_DOMAIN_REAL;
  5. const yewuApi = VITE_PROXY_USER_REAL + "/admin/";
  6. //标签列表
  7. export const httpList = (data: object): any => {
  8. return http.request("post", `${yewuApi}taglist`, { data });
  9. };
  10. //标签新建
  11. export const httpAdd = (data: object): any => {
  12. return http.request("post", `${yewuApi}tagadd`, {
  13. data
  14. });
  15. };
  16. //标签编辑
  17. export const httpUpdate = (data: object): any => {
  18. return http.request("post", `${yewuApi}tagedit`, { data });
  19. };
  20. //标签编辑
  21. export const httpStatus = (data: object): any => {
  22. return http.request("post", `${yewuApi}tagstatus`, { data });
  23. };
  24. //标签删除
  25. export const httpDelete = (data: object): any => {
  26. return http.request("post", `${yewuApi}tagdel`, { data });
  27. };
  28. //单据添加标签
  29. export const httpBillAddTag = (data: object): any => {
  30. return http.request("post", `${yewuApi}addtag`, { data });
  31. };