From 7b61c4e27fe6ee4f5e4bfe184502e411796bda1e Mon Sep 17 00:00:00 2001 From: "865118801@qq.com" <865118801@qq.com> Date: Thu, 22 Jul 2021 23:36:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/user.js | 39 +++ pages/rawMaterial/rawMaterial.vue | 27 +- pages/rawMaterialInfo/index.scss | 25 +- pages/rawMaterialInfo/rawMaterialInfo.vue | 341 ++++++---------------- pages/stopLine/stopLine.vue | 1 + 5 files changed, 172 insertions(+), 261 deletions(-) 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 @@