From 314d6fc39ede1b94cdab512adb9dc806471ef8a4 Mon Sep 17 00:00:00 2001 From: yuyu <1981343953@qq.com> Date: 星期二, 08 八月 2023 17:44:14 +0800 Subject: [PATCH] 委托检验查询功能 --- src/api/standardLibrary.js | 49 +++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 43 insertions(+), 6 deletions(-) diff --git a/src/api/standardLibrary.js b/src/api/standardLibrary.js index 0072507..3a8ca84 100644 --- a/src/api/standardLibrary.js +++ b/src/api/standardLibrary.js @@ -1,17 +1,54 @@ import request from '@/utils/request' -// 鏌ヨ鎵�鏈夋爣鍑嗘暟鎹� -export function getStandardsList() { +export function getMaterialList(params) { return request({ - url: '/standards/list', - method: 'get' + url: '/material/list', + method: 'get', + params + }) +} + +// 鑾峰彇鎵�鏈夐」鐩� +export function getProductList(params) { + return request({ + url: '/product/page', + method: 'get', + params + }) +} + +// 鑾峰彇鎵�鏈夌埗椤圭洰瀵瑰簲鐨勫瓙椤圭洰 +export function getProductSonList(params) { + return request({ + url: '/product/father', + method: 'get', + params + }) +} + +// 娣诲姞鐗╂枡 +export function addMaterial(data) { + return request({ + url: '/material/add', + method: 'post', + data }) } // 娣诲姞鏍囧噯 -export function addStandards() { +export function addStandards(data) { return request({ url: '/standards/add', - method: 'get' + method: 'post', + data + }) +} + +// 娣诲姞瑙勬牸 +export function addSpecifications(data) { + return request({ + url: '/specifications/add', + method: 'post', + data }) } -- Gitblit v1.9.3