From ccfd5dc264d07471d831d2287ff03f293c295981 Mon Sep 17 00:00:00 2001 From: Goldennfish <1981343953@qq.com> Date: 星期二, 25 七月 2023 14:22:44 +0800 Subject: [PATCH] Merge branch 'master' of https://gitee.com/yuanchu_code/lims-front-end --- src/api/standardLibrary.js | 92 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 92 insertions(+), 0 deletions(-) diff --git a/src/api/standardLibrary.js b/src/api/standardLibrary.js index 8e37b48..19724bf 100644 --- a/src/api/standardLibrary.js +++ b/src/api/standardLibrary.js @@ -79,3 +79,95 @@ data }) } + +// 瑙勬牸璇︽儏椤垫帴鍙� + +// 鏍规嵁瑙勬牸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(params) { + return request({ + url: '/material/delete', + method: 'delete', + params + }) +} + +// 鏍规嵁鐗╂枡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(params) { + return request({ + url: '/product/delete', + method: 'delete', + params + }) +} -- Gitblit v1.9.3