From 583f5b77640b5dbf7e593e89a0d660f4cacacbe9 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期四, 02 十一月 2023 11:58:16 +0800 Subject: [PATCH] 添加供应商接口联调、相关供应商页面修改、产品页面修改 --- src/api/supplierManage/supplier.js | 36 ++++++++++++++++++++++++------------ 1 files changed, 24 insertions(+), 12 deletions(-) diff --git a/src/api/supplierManage/supplier.js b/src/api/supplierManage/supplier.js index 94cad95..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,14 +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 const downloadContract = async (data) => { - return await axios.get(`/api/con/downloadContract`, { +export function downloadContract(data) { + return request({ + url: "/api/con/downloadContract", + method: "get", params: data }) } @@ -97,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