From 7c5c3b8a1b2d571c66efd85b5dbbd37aa57c9ff8 Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期三, 15 十一月 2023 14:08:03 +0800 Subject: [PATCH] 采购管理修改 --- src/api/supplierManage/supplier.js | 51 ++++++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 44 insertions(+), 7 deletions(-) diff --git a/src/api/supplierManage/supplier.js b/src/api/supplierManage/supplier.js index 0f556e1..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 }) } @@ -75,5 +81,36 @@ data }) } +// 棰勮鍚堝悓 +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 + }) +} -// +// 鏇存柊鎵�灞炶涓� +export function updateIndustry(data) { + return request({ + url: "/api/i/updateIndustry", + method: "put", + data + }) +} +// 鎵�灞炶涓氬垪琛� +export function getIndustryList(data) { + return request({ + url: "/api/i/getIndustryList", + method: "get", + params: data + }) +} -- Gitblit v1.8.0