From 2260184afb85c80eabce02da190f9f07ee660ab3 Mon Sep 17 00:00:00 2001
From: yuyu <1981343953@qq.com>
Date: 星期二, 08 八月 2023 14:35:57 +0800
Subject: [PATCH] 委托检验、原材料报检和检验申请页面
---
src/api/standardLibrary.js | 41 +++++++++++++++++++++++++++++++----------
1 files changed, 31 insertions(+), 10 deletions(-)
diff --git a/src/api/standardLibrary.js b/src/api/standardLibrary.js
index 1d6bc27..19724bf 100644
--- a/src/api/standardLibrary.js
+++ b/src/api/standardLibrary.js
@@ -18,10 +18,11 @@
}
// 娣诲姞绫诲瀷
-export function addStandards() {
+export function addStandards(data) {
return request({
url: '/standards/add',
- method: 'get'
+ method: 'post',
+ data
})
}
@@ -35,10 +36,11 @@
}
// 娣诲姞鍨嬪彿
-export function addSerialNumber() {
+export function addSerialNumber(data) {
return request({
url: '/serial-number/add',
- method: 'get'
+ method: 'post',
+ data
})
}
@@ -52,10 +54,29 @@
}
// 娣诲姞浜у搧瑙勬牸
-export function addSpecifications() {
+export function addSpecifications(data) {
return request({
url: '/specifications/add',
- method: 'get'
+ method: 'post',
+ data
+ })
+}
+
+// 缂栬緫浜у搧瑙勬牸
+export function updateSpecifications(data) {
+ return request({
+ url: '/specifications/update',
+ method: 'put',
+ data
+ })
+}
+
+// 鏇存柊瑙勬牸鐘舵��
+export function updateSpeState(data) {
+ return request({
+ url: '/specifications/update_spe_state',
+ method: 'put',
+ data
})
}
@@ -98,11 +119,11 @@
}
// 鍒犻櫎鐗╂枡淇℃伅
-export function deleteMaterial(data) {
+export function deleteMaterial(params) {
return request({
url: '/material/delete',
method: 'delete',
- data
+ params
})
}
@@ -143,10 +164,10 @@
}
// 鍒犻櫎瀛愰」鐩俊鎭�
-export function deleteProduct(data) {
+export function deleteProduct(params) {
return request({
url: '/product/delete',
method: 'delete',
- data
+ params
})
}
--
Gitblit v1.9.3