From 84a4fe2072b93f767b6747045af0cff8d212d9e9 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期六, 23 三月 2024 15:24:19 +0800
Subject: [PATCH] 采购订单联调收货信息接口,状态修改
---
src/api/supplierManage/supplier.js | 66 +++++++++++++++++++++++++++-----
1 files changed, 55 insertions(+), 11 deletions(-)
diff --git a/src/api/supplierManage/supplier.js b/src/api/supplierManage/supplier.js
index 0f556e1..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
})
}
// 鍒犻櫎鍚堝悓
@@ -75,5 +88,36 @@
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
+ })
+}
-//
+// 鏇存柊鎵�灞炶涓�
+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