yangfeng
2023-08-26 7da8d51d212f96b2d419d4f22617827ea4df9e3d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import request from "@/common/untils/request.js"
import axios from "axios"
 
// 服务商列表
export const getSupplierList = async (data) => {
  return await axios.get(`/api/s/getSupplierList`, {
    params: data
  })
}
// 创建服务商
export function createSupplier(data) {
  return request({
    url: "/api/s/createSupplier",
    method: "post",
    data
  })
}
// 删除服务商
export function deleteSupplier(data) {
  return request({
    url: "/api/s/deleteSupplier",
    method: "delete",
    data
  })
}
// 更新服务商
export function updateSupplier(data) {
  return request({
    url: "/api/s/updateSupplier",
    method: "put",
    data
  })
}
//  修改服务商状态
export function changeSupplierStatus(data) {
  return request({
    url: "/api/s/changeSupplierStatus",
    method: "post",
    data
  })
}
// 用id查询服务商
export const findSupplier = async (data) => {
  return await axios.get(`/api/s/findSupplier`, {
    params: data
  })
}
 
// 更新服务商类型
export function updateSupplierType(data) {
  return request({
    url: "/api/st/updateSupplierType",
    method: "put",
    data
  })
}
// 服务商类型列表
export const getSupplierTypeList = async (data) => {
  return await axios.get(`/api/st/getSupplierTypeList`, {
    params: data
  })
}
 
// 上传合同
export const createContract = async (data) => {
  return await axios.post(`/api/con/createContract`, data, {
    headers: { "Content-Type": "application/x-www-form-urlencoded;charset=utf-8" }
  })
}
// 删除合同
export function deleteContract(data) {
  return request({
    url: "/api/con/deleteContract",
    method: "delete",
    data
  })
}
 
//