From 34a7e21b3508ac0f5f011d958210fdb7176d726b Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期六, 09 九月 2023 11:54:05 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.22:9001/r/lims-before
---
src/api/standardLibrary.js | 61 ++++++++++++++++++++++++++----
1 files changed, 52 insertions(+), 9 deletions(-)
diff --git a/src/api/standardLibrary.js b/src/api/standardLibrary.js
index 3a8ca84..8e8857b 100644
--- a/src/api/standardLibrary.js
+++ b/src/api/standardLibrary.js
@@ -1,9 +1,34 @@
import request from '@/utils/request'
-export function getMaterialList(params) {
+export function addProduct(data) {
+ return request({
+ url: '/product/addProduct',
+ method: 'post',
+ data
+ })
+}
+
+export function getMaterialList() {
return request({
url: '/material/list',
method: 'get',
+ })
+}
+
+//鑾峰彇鎵�鏈夌増鏈�
+export function getVersion(params){
+ return request({
+ url: '/product/chooseVersion',
+ method: 'get',
+ params
+ })
+}
+
+//娣诲姞鍚屼竴涓瀷鍙风殑鍏朵粬鐗堟湰
+export function addVersion(params){
+ return request({
+ url: '/product/addVersion',
+ method: 'post',
params
})
}
@@ -17,14 +42,14 @@
})
}
-// 鑾峰彇鎵�鏈夌埗椤圭洰瀵瑰簲鐨勫瓙椤圭洰
-export function getProductSonList(params) {
- return request({
- url: '/product/father',
- method: 'get',
- params
- })
-}
+// // 鑾峰彇鎵�鏈夌埗椤圭洰瀵瑰簲鐨勫瓙椤圭洰
+// export function getProductSonList(params) {
+// return request({
+// url: '/product/father',
+// method: 'get',
+// params
+// })
+// }
// 娣诲姞鐗╂枡
export function addMaterial(data) {
@@ -52,3 +77,21 @@
data
})
}
+
+// 鎵归噺鍒犻櫎
+export function deleteListApi(ids) {
+ return request({
+ url: '/product/deleteList',
+ method: 'delete',
+ params: {ids: ids.toString()}
+ })
+}
+
+// 澶卞幓鐒︾偣鏇存柊
+export function blurUpdateApi(obj) {
+ return request({
+ url: '/product/write',
+ method: 'post',
+ params: obj
+ })
+}
\ No newline at end of file
--
Gitblit v1.9.3