From 4c9b610713d4ba3d91c5528c099def6c286d9bc5 Mon Sep 17 00:00:00 2001 From: yinq <1345442242@qq.com> Date: Thu, 28 Sep 2023 13:58:11 +0800 Subject: [PATCH] =?UTF-8?q?add=20-=20=E8=AE=A2=E5=8D=95BOM=E3=80=81?= =?UTF-8?q?=E7=94=9F=E4=BA=A7BOM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/orderBomInfo.js | 44 +++ src/api/production/baseBomInfo.js | 44 +++ src/views/base/deviceLedger/index.vue | 24 +- src/views/base/orderBomInfo/index.vue | 381 +++++++++++++++++++ src/views/production/baseBomInfo/index.vue | 406 +++++++++++++++++++++ 5 files changed, 898 insertions(+), 1 deletion(-) create mode 100644 src/api/base/orderBomInfo.js create mode 100644 src/api/production/baseBomInfo.js create mode 100644 src/views/base/orderBomInfo/index.vue create mode 100644 src/views/production/baseBomInfo/index.vue diff --git a/src/api/base/orderBomInfo.js b/src/api/base/orderBomInfo.js new file mode 100644 index 0000000..e9cb325 --- /dev/null +++ b/src/api/base/orderBomInfo.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询订单BOM列表 +export function listOrderBomInfo(query) { + return request({ + url: '/base/orderBomInfo/list', + method: 'get', + params: query + }) +} + +// 查询订单BOM详细 +export function getOrderBomInfo(objId) { + return request({ + url: '/base/orderBomInfo/' + objId, + method: 'get' + }) +} + +// 新增订单BOM +export function addOrderBomInfo(data) { + return request({ + url: '/base/orderBomInfo', + method: 'post', + data: data + }) +} + +// 修改订单BOM +export function updateOrderBomInfo(data) { + return request({ + url: '/base/orderBomInfo', + method: 'put', + data: data + }) +} + +// 删除订单BOM +export function delOrderBomInfo(objId) { + return request({ + url: '/base/orderBomInfo/' + objId, + method: 'delete' + }) +} diff --git a/src/api/production/baseBomInfo.js b/src/api/production/baseBomInfo.js new file mode 100644 index 0000000..adfd6cc --- /dev/null +++ b/src/api/production/baseBomInfo.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询生产BOM列表 +export function listBaseBomInfo(query) { + return request({ + url: '/production/baseBomInfo/list', + method: 'get', + params: query + }) +} + +// 查询生产BOM详细 +export function getBaseBomInfo(objId) { + return request({ + url: '/production/baseBomInfo/' + objId, + method: 'get' + }) +} + +// 新增生产BOM +export function addBaseBomInfo(data) { + return request({ + url: '/production/baseBomInfo', + method: 'post', + data: data + }) +} + +// 修改生产BOM +export function updateBaseBomInfo(data) { + return request({ + url: '/production/baseBomInfo', + method: 'put', + data: data + }) +} + +// 删除生产BOM +export function delBaseBomInfo(objId) { + return request({ + url: '/production/baseBomInfo/' + objId, + method: 'delete' + }) +} diff --git a/src/views/base/deviceLedger/index.vue b/src/views/base/deviceLedger/index.vue index 922f919..4398370 100644 --- a/src/views/base/deviceLedger/index.vue +++ b/src/views/base/deviceLedger/index.vue @@ -131,7 +131,11 @@ {{ parseTime(scope.row.enableDate, '{y}-{m}-{d}') }} - + + +