From 519fd6dc67a4db8fdba7e63b61fc6cc0e28f04c1 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期四, 16 十一月 2023 16:06:56 +0800
Subject: [PATCH] 采购管理更新字段

---
 src/api/supplierManage/supplier.js |   38 ++++++++++++++++++++++++++++----------
 1 files changed, 28 insertions(+), 10 deletions(-)

diff --git a/src/api/supplierManage/supplier.js b/src/api/supplierManage/supplier.js
index f044c73..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
   })
 }
@@ -76,8 +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 function downloadContract(data) {
+  return request({
+    url: "/api/con/downloadContract",
+    method: "get",
     params: data
   })
 }
@@ -91,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