yangfeng
2023-11-02 583f5b77640b5dbf7e593e89a0d660f4cacacbe9
src/api/supplierManage/supplier.js
@@ -2,8 +2,10 @@
import axios from "axios"
// 服务商列表
export const getSupplierList = async (data) => {
  return await axios.get(`/api/s/getSupplierList`, {
export function getSupplierList(data) {
  return request({
    url: "/api/s/getSupplierList",
    method: "get",
    params: data
  })
}
@@ -40,8 +42,10 @@
  })
}
// 用id查询服务商
export const findSupplier = async (data) => {
  return await axios.get(`/api/s/findSupplier`, {
export function findSupplier(data) {
  return request({
    url: "/api/s/findSupplier",
    method: "get",
    params: data
  })
}
@@ -55,8 +59,10 @@
  })
}
// 服务商类型列表
export const getSupplierTypeList = async (data) => {
  return await axios.get(`/api/st/getSupplierTypeList`, {
export function getSupplierTypeList(data) {
  return request({
    url: "/api/st/getSupplierTypeList",
    method: "get",
    params: data
  })
}
@@ -76,14 +82,18 @@
  })
}
// 预览合同
export const previewContract = async (data) => {
  return await axios.get(`/api/con/previewContract`, {
export function previewContract(data) {
  return request({
    url: "/api/con/previewContract",
    method: "get",
    params: data
  })
}
// 下载合同
export const downloadContract = async (data) => {
  return await axios.get(`/api/con/downloadContract`, {
export function downloadContract(data) {
  return request({
    url: "/api/con/downloadContract",
    method: "get",
    params: data
  })
}
@@ -97,8 +107,10 @@
  })
}
// 所属行业列表
export const getIndustryList = async (data) => {
  return await axios.get(`/api/i/getIndustryList`, {
export function getIndustryList(data) {
  return request({
    url: "/api/i/getIndustryList",
    method: "get",
    params: data
  })
}