From 302858f921bed077ab54dd31102f086bfe1add3c Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 07 二月 2024 11:59:47 +0800
Subject: [PATCH] srm项目 系统参数设置的前端页面开发+增加相关路由+公共列表组件增加是否可以配置表头的逻辑

---
 src/api/supplierManage/supplier.js |   55 +++++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 43 insertions(+), 12 deletions(-)

diff --git a/src/api/supplierManage/supplier.js b/src/api/supplierManage/supplier.js
index f9e0b2d..df43251 100644
--- a/src/api/supplierManage/supplier.js
+++ b/src/api/supplierManage/supplier.js
@@ -1,9 +1,11 @@
 import request from "@/common/untils/request.js"
-import axios from "axios"
+// 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,16 +59,25 @@
   })
 }
 // 鏈嶅姟鍟嗙被鍨嬪垪琛�
-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
   })
 }
 
 // 涓婁紶鍚堝悓
-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 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 createContract(data) {
+  return request({
+    url: "/api/con/createContract",
+    method: "post",
+    data
   })
 }
 // 鍒犻櫎鍚堝悓
@@ -73,6 +86,22 @@
     url: "/api/con/deleteContract",
     method: "delete",
     data
+  })
+}
+// 棰勮鍚堝悓
+export function previewContract(data) {
+  return request({
+    url: "/api/con/previewContract",
+    method: "get",
+    params: data
+  })
+}
+// 涓嬭浇鍚堝悓
+export function downloadContract(data) {
+  return request({
+    url: "/api/downloadContract",
+    method: "get",
+    params: data
   })
 }
 
@@ -85,8 +114,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