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}') }} - + + +