diff --git a/api/user.js b/api/user.js index 4edec0b..731307b 100644 --- a/api/user.js +++ b/api/user.js @@ -301,4 +301,43 @@ export function mode(data) { method: "get", data }); +} + +/** + * 原材料列表 + * @param {Object} data + */ +export function purchaseLists(data) { + console.log(data) + return request({ + url: `${functions.getDomain()}/api/purchase-lists`, + method: "get", + data + }); +} + +/** + * 原材料检验项目 + * @param {Object} data + */ +export function materialItem(data) { + console.log(data) + return request({ + url: `${functions.getDomain()}/api/material-item`, + method: "get", + data + }); +} + +/** + * 获取字典的配置(详情查看字典) + * @param {Object} data + */ +export function dictionary(data) { + console.log(data) + return request({ + url: `${functions.getDomain()}/api/dictionary`, + method: "get", + data + }); } \ No newline at end of file diff --git a/pages/rawMaterial/rawMaterial.vue b/pages/rawMaterial/rawMaterial.vue index 2b677e8..1cbc3e4 100644 --- a/pages/rawMaterial/rawMaterial.vue +++ b/pages/rawMaterial/rawMaterial.vue @@ -1,10 +1,10 @@