From 84d9de8968ea6675ecb57fa7c59a7bf2fede8f4d Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期三, 06 十二月 2023 16:45:44 +0800
Subject: [PATCH] 采购管理新增和编辑时供应商是否可以提供当前产品提示优化

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

diff --git a/src/api/supplierManage/supplier.js b/src/api/supplierManage/supplier.js
index ca6d89a..df43251 100644
--- a/src/api/supplierManage/supplier.js
+++ b/src/api/supplierManage/supplier.js
@@ -1,5 +1,5 @@
 import request from "@/common/untils/request.js"
-import axios from "axios"
+// import axios from "axios"
 
 // 鏈嶅姟鍟嗗垪琛�
 export function getSupplierList(data) {
@@ -68,9 +68,16 @@
 }
 
 // 涓婁紶鍚堝悓
-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
   })
 }
 // 鍒犻櫎鍚堝悓
@@ -92,7 +99,7 @@
 // 涓嬭浇鍚堝悓
 export function downloadContract(data) {
   return request({
-    url: "/api/con/downloadContract",
+    url: "/api/downloadContract",
     method: "get",
     params: data
   })

--
Gitblit v1.8.0