From fe95d034e69c59d3e1a003615a65a0fb945ba55f Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期四, 25 四月 2024 17:07:57 +0800
Subject: [PATCH] 获取供应商对应产品的列表接口修改和联调+获取产品相关供应商的接口修改和联调

---
 src/api/productManage/product.js |   23 +++++++++++++++--------
 1 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/src/api/productManage/product.js b/src/api/productManage/product.js
index 4c60183..00e2dbd 100644
--- a/src/api/productManage/product.js
+++ b/src/api/productManage/product.js
@@ -3,13 +3,20 @@
 
 // 浜у搧鍒楄〃
 // export const getProductList = async (data) => {
-//   return await axios.get(`/api/p/getProductList`, {
+//   return await axios.get(`/api-srm/p/getProductList`, {
 //     params: data
 //   })
 // }
+export function getProductListTwo(data) {
+  return request({
+    url: "/api-srm/s/getSupplierProductList",
+    method: "get",
+    params:data
+  })
+}
 export function getProductList(data) {
   return request({
-    url: "/api/p/getProductList",
+    url: "/api-srm/p/getProductList",
     method: "get",
     params:data
   })
@@ -17,7 +24,7 @@
 // 鏌ヨ鍗曟潯渚涘簲鍟嗘暟鎹�
 export function getSupplierByNumber(data) {
   return request({
-    url: `/api/s/getSupplierByNumber/${data}`,
+    url: `/api-srm/s/getSupplierByNumber/${data}`,
     method: "get",
     data
   })
@@ -25,7 +32,7 @@
 // 鍒涘缓浜у搧
 export function createProduct(data) {
   return request({
-    url: "/api/p/createProduct",
+    url: "/api-srm/p/createProduct",
     method: "post",
     data
   })
@@ -33,7 +40,7 @@
 // 鍒犻櫎浜у搧
 export function deleteProduct(data) {
   return request({
-    url: "/api/p/deleteProduct",
+    url: "/api-srm/p/deleteProduct",
     method: "delete",
     data
   })
@@ -41,7 +48,7 @@
 // 鏇存柊浜у搧
 export function updateProduct(data) {
   return request({
-    url: "/api/p/updateProduct",
+    url: "/api-srm/p/updateProduct",
     method: "put",
     data
   })
@@ -49,13 +56,13 @@
 
 // 娣诲姞浜у搧鑾峰彇浜у搧鍒楄〃
 // export const getProductListFromGrpc = async (data) => {
-//   return await axios.get(`/api/p/getProductListFromGrpc`, {
+//   return await axios.get(`/api-srm/p/getProductListFromGrpc`, {
 //     params: data
 //   })
 // }
 export function getProductListFromGrpc(data) {
   return request({
-    url: "/api/p/getProductListFromGrpc",
+    url: "/api-srm/p/getProductListFromGrpc",
     method: "get",
     params:data
   })

--
Gitblit v1.8.0