From 8833392e76da93f2de7b7c7950e75751cb63e085 Mon Sep 17 00:00:00 2001
From: Goldennfish <1981343953@qq.com>
Date: 星期五, 21 七月 2023 10:10:33 +0800
Subject: [PATCH] 标准库第三次提交查询,新增,编辑规格,停用状态功能

---
 src/api/standardLibrary.js |   70 +++++++++++++++++++++++++++++++++-
 1 files changed, 67 insertions(+), 3 deletions(-)

diff --git a/src/api/standardLibrary.js b/src/api/standardLibrary.js
index 0072507..8e37b48 100644
--- a/src/api/standardLibrary.js
+++ b/src/api/standardLibrary.js
@@ -8,10 +8,74 @@
   })
 }
 
-// 娣诲姞鏍囧噯
-export function addStandards() {
+// 鍒嗛〉鏌ヨ鎵�鏈夋爣鍑嗘暟鎹�
+export function getStandardsListOfPage(params) {
+  return request({
+    url: '/standards/list_page',
+    method: 'get',
+    params
+  })
+}
+
+// 娣诲姞绫诲瀷
+export function addStandards(data) {
   return request({
     url: '/standards/add',
-    method: 'get'
+    method: 'post',
+    data
+  })
+}
+
+// 鏍规嵁鏍囧噯鏌ヨ鎵�鏈夊瀷鍙� 鍙傛暟IdOrNameOfSerialNumber锛� standardsId
+export function getSerialNumberList(params) {
+  return request({
+    url: '/serial-number/list',
+    method: 'get',
+    params
+  })
+}
+
+// 娣诲姞鍨嬪彿
+export function addSerialNumber(data) {
+  return request({
+    url: '/serial-number/add',
+    method: 'post',
+    data
+  })
+}
+
+// 鏍规嵁鍨嬪彿鏌ヨ鎵�鏈変骇鍝佽鏍� 鍙傛暟serialNumberId锛� specificationsName
+export function getSpecificationsList(params) {
+  return request({
+    url: '/specifications/list',
+    method: 'get',
+    params
+  })
+}
+
+// 娣诲姞浜у搧瑙勬牸
+export function addSpecifications(data) {
+  return request({
+    url: '/specifications/add',
+    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
   })
 }

--
Gitblit v1.9.3