diff --git a/src/api/ems/record/recordDnbInstant.js b/src/api/ems/record/recordDnbInstant.js new file mode 100644 index 0000000..bd9abe3 --- /dev/null +++ b/src/api/ems/record/recordDnbInstant.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询电实时数据列表 +export function listRecordDnbInstant(query) { + return request({ + url: '/ems/record/recordDnbInstant/list', + method: 'get', + params: query + }) +} + +// 查询电实时数据详细 +export function getRecordDnbInstant(objId) { + return request({ + url: '/ems/record/recordDnbInstant/' + objId, + method: 'get' + }) +} + +// 新增电实时数据 +export function addRecordDnbInstant(data) { + return request({ + url: '/ems/record/recordDnbInstant', + method: 'post', + data: data + }) +} + +// 修改电实时数据 +export function updateRecordDnbInstant(data) { + return request({ + url: '/ems/record/recordDnbInstant', + method: 'put', + data: data + }) +} + +// 删除电实时数据 +export function delRecordDnbInstant(objId) { + return request({ + url: '/ems/record/recordDnbInstant/' + objId, + method: 'delete' + }) +} diff --git a/src/api/mes/prod/prodBomInfo.js b/src/api/mes/prod/prodBomInfo.js new file mode 100644 index 0000000..cec3309 --- /dev/null +++ b/src/api/mes/prod/prodBomInfo.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询生产BOM列表 +export function listProdBomInfo(query) { + return request({ + url: '/mes/prod/prodBomInfo/list', + method: 'get', + params: query + }) +} + +// 查询生产BOM详细 +export function getProdBomInfo(objId) { + return request({ + url: '/mes/prod/prodBomInfo/' + objId, + method: 'get' + }) +} + +// 新增生产BOM +export function addProdBomInfo(data) { + return request({ + url: '/mes/prod/prodBomInfo', + method: 'post', + data: data + }) +} + +// 修改生产BOM +export function updateProdBomInfo(data) { + return request({ + url: '/mes/prod/prodBomInfo', + method: 'put', + data: data + }) +} + +// 删除生产BOM +export function delProdBomInfo(objId) { + return request({ + url: '/mes/prod/prodBomInfo/' + objId, + method: 'delete' + }) +} + +// 查询订单BOM下拉框列表 +export function findOrderBomList(query) { + return request({ + url: '/mes/prod/prodBomInfo/findOrderBomList', + method: 'get', + params: query + }) +} diff --git a/src/router/index.js b/src/router/index.js index b3445af..4043ff6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -75,6 +75,20 @@ export const constantRoutes = [ } ] }, + { + path: "/production/bom-info", + component: Layout, + hidden: true, + permissions: ["mes/prod:prodBomInfo:list"], + children: [ + { + path: "index/:materialCode(\\d+)", + component: () => import("@/views/mes/prod/prodBomInfo/childIndex"), + name: "childBom", + meta: {title: "查看生产BOM信息", activeMenu: "/prod/prodBomInfo"}, + }, + ], + }, // { // path: '/nestRoutes', // meta: { diff --git a/src/views/ems/record/recordDnbInstant/index.vue b/src/views/ems/record/recordDnbInstant/index.vue new file mode 100644 index 0000000..601436a --- /dev/null +++ b/src/views/ems/record/recordDnbInstant/index.vue @@ -0,0 +1,496 @@ + + + diff --git a/src/views/mes/base/baseMaterialInfo/index.vue b/src/views/mes/base/baseMaterialInfo/index.vue index 2478a43..a36b35b 100644 --- a/src/views/mes/base/baseMaterialInfo/index.vue +++ b/src/views/mes/base/baseMaterialInfo/index.vue @@ -25,10 +25,10 @@ - + - + @@ -93,15 +93,23 @@ - + - + + + - + + + - +