From 6c496684e92d7d0d90b50de55f77e3ee93bbabe1 Mon Sep 17 00:00:00 2001
From: yuyu <1981343953@qq.com>
Date: 星期四, 10 八月 2023 15:37:46 +0800
Subject: [PATCH] 委托检验和新增检验8.10提交
---
src/api/standardLibrary.js | 157 ++++++----------------------------------------------
1 files changed, 19 insertions(+), 138 deletions(-)
diff --git a/src/api/standardLibrary.js b/src/api/standardLibrary.js
index 0363a51..3a8ca84 100644
--- a/src/api/standardLibrary.js
+++ b/src/api/standardLibrary.js
@@ -1,88 +1,5 @@
import request from '@/utils/request'
-// 鏌ヨ鎵�鏈夋爣鍑嗘暟鎹�
-export function getStandardsList() {
- return request({
- url: '/standards/list',
- method: 'get'
- })
-}
-
-// 鍒嗛〉鏌ヨ鎵�鏈夋爣鍑嗘暟鎹�
-export function getStandardsListOfPage(params) {
- return request({
- url: '/standards/list_page',
- method: 'get',
- params
- })
-}
-
-// 娣诲姞绫诲瀷
-export function addStandards(data) {
- return request({
- url: '/standards/add',
- 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
- })
-}
-
-// 瑙勬牸璇︽儏椤垫帴鍙�
-
-// 鏍规嵁瑙勬牸id鏌ヨ鎵�鏈夌墿鏂� specificationsId
export function getMaterialList(params) {
return request({
url: '/material/list',
@@ -91,10 +8,19 @@
})
}
-// 鏍规嵁鐗╂枡id锛岃幏鍙栧搴旂殑鐗╂枡璇︽儏
-export function getMaterialDetail(params) {
+// 鑾峰彇鎵�鏈夐」鐩�
+export function getProductList(params) {
return request({
- url: '/material/list_id',
+ url: '/product/page',
+ method: 'get',
+ params
+ })
+}
+
+// 鑾峰彇鎵�鏈夌埗椤圭洰瀵瑰簲鐨勫瓙椤圭洰
+export function getProductSonList(params) {
+ return request({
+ url: '/product/father',
method: 'get',
params
})
@@ -109,65 +35,20 @@
})
}
-// 缂栬緫鐗╂枡淇℃伅
-export function updateMaterial(data) {
+// 娣诲姞鏍囧噯
+export function addStandards(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',
+ url: '/standards/add',
method: 'post',
data
})
}
-// 鏌ヨ鏍囧噯鍒嗙被璇︽儏锛屽搴旂殑鏍囧噯璇︽儏
-export function getProductProductId(params) {
+// 娣诲姞瑙勬牸
+export function addSpecifications(data) {
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',
+ url: '/specifications/add',
+ method: 'post',
data
})
}
--
Gitblit v1.9.3