From ee71a2d8f115e124cd33fe86089f9284cc09e247 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期四, 16 十一月 2023 09:46:49 +0800
Subject: [PATCH] 环境配置

---
 src/api/supplierManage/supplier.js |   40 ++++++++++++++++++++++++++++++++--------
 1 files changed, 32 insertions(+), 8 deletions(-)

diff --git a/src/api/supplierManage/supplier.js b/src/api/supplierManage/supplier.js
index f9e0b2d..ca6d89a 100644
--- a/src/api/supplierManage/supplier.js
+++ b/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 @@
   })
 }
 // 鐢╥d鏌ヨ鏈嶅姟鍟�
-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
   })
 }
@@ -75,6 +81,22 @@
     data
   })
 }
+// 棰勮鍚堝悓
+export function previewContract(data) {
+  return request({
+    url: "/api/con/previewContract",
+    method: "get",
+    params: data
+  })
+}
+// 涓嬭浇鍚堝悓
+export function downloadContract(data) {
+  return request({
+    url: "/api/con/downloadContract",
+    method: "get",
+    params: data
+  })
+}
 
 // 鏇存柊鎵�灞炶涓�
 export function updateIndustry(data) {
@@ -85,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
   })
 }

--
Gitblit v1.8.0