From 17e62da2a097844b0f6f7a58926e7d0a40598d2c Mon Sep 17 00:00:00 2001
From: hailin <1356886193@qq.com>
Date: 星期五, 21 七月 2023 10:30:23 +0800
Subject: [PATCH] 标准库的第三次提交

---
 src/api/standardLibrary.js |  137 +++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 136 insertions(+), 1 deletions(-)

diff --git a/src/api/standardLibrary.js b/src/api/standardLibrary.js
index 0072507..1d6bc27 100644
--- a/src/api/standardLibrary.js
+++ b/src/api/standardLibrary.js
@@ -8,10 +8,145 @@
   })
 }
 
-// 娣诲姞鏍囧噯
+// 鍒嗛〉鏌ヨ鎵�鏈夋爣鍑嗘暟鎹�
+export function getStandardsListOfPage(params) {
+  return request({
+    url: '/standards/list_page',
+    method: 'get',
+    params
+  })
+}
+
+// 娣诲姞绫诲瀷
 export function addStandards() {
   return request({
     url: '/standards/add',
     method: 'get'
   })
 }
+
+// 鏍规嵁鏍囧噯鏌ヨ鎵�鏈夊瀷鍙� 鍙傛暟IdOrNameOfSerialNumber锛� standardsId
+export function getSerialNumberList(params) {
+  return request({
+    url: '/serial-number/list',
+    method: 'get',
+    params
+  })
+}
+
+// 娣诲姞鍨嬪彿
+export function addSerialNumber() {
+  return request({
+    url: '/serial-number/add',
+    method: 'get'
+  })
+}
+
+// 鏍规嵁鍨嬪彿鏌ヨ鎵�鏈変骇鍝佽鏍� 鍙傛暟serialNumberId锛� specificationsName
+export function getSpecificationsList(params) {
+  return request({
+    url: '/specifications/list',
+    method: 'get',
+    params
+  })
+}
+
+// 娣诲姞浜у搧瑙勬牸
+export function addSpecifications() {
+  return request({
+    url: '/specifications/add',
+    method: 'get'
+  })
+}
+
+// 瑙勬牸璇︽儏椤垫帴鍙�
+
+// 鏍规嵁瑙勬牸id鏌ヨ鎵�鏈夌墿鏂� specificationsId
+export function getMaterialList(params) {
+  return request({
+    url: '/material/list',
+    method: 'get',
+    params
+  })
+}
+
+// 鏍规嵁鐗╂枡id锛岃幏鍙栧搴旂殑鐗╂枡璇︽儏
+export function getMaterialDetail(params) {
+  return request({
+    url: '/material/list_id',
+    method: 'get',
+    params
+  })
+}
+
+// 娣诲姞鐗╂枡
+export function addMaterial(data) {
+  return request({
+    url: '/material/add',
+    method: 'post',
+    data
+  })
+}
+
+// 缂栬緫鐗╂枡淇℃伅
+export function updateMaterial(data) {
+  return request({
+    url: '/material/update',
+    method: 'put',
+    data
+  })
+}
+
+// 鍒犻櫎鐗╂枡淇℃伅
+export function deleteMaterial(data) {
+  return request({
+    url: '/material/delete',
+    method: 'delete',
+    data
+  })
+}
+
+// 鏍规嵁鐗╂枡id鏌ヨ鎵�鏈夋爣鍑嗗垎绫� specificationsId
+export function getProductList(params) {
+  return request({
+    url: '/product/list',
+    method: 'get',
+    params
+  })
+}
+
+// 娣诲姞鏍囧噯鍒嗙被
+export function addProduct(data) {
+  return request({
+    url: '/product/add',
+    method: 'post',
+    data
+  })
+}
+
+// 鏌ヨ鏍囧噯鍒嗙被璇︽儏锛屽搴旂殑鏍囧噯璇︽儏
+export function getProductProductId(params) {
+  return request({
+    url: '/product/productId',
+    method: 'get',
+    params
+  })
+}
+
+// 缂栬緫瀛愰」鐩俊鎭�
+export function updateProduct(data) {
+  return request({
+    url: '/product/update',
+    method: 'put',
+    data
+  })
+}
+
+// 鍒犻櫎瀛愰」鐩俊鎭�
+export function deleteProduct(data) {
+  return request({
+    url: '/product/delete',
+    method: 'delete',
+    data
+  })
+}

--
Gitblit v1.9.3