From eff007047e3df6aa67249f60f4a2ad2fa65b6e1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=A4=E9=94=A6=E7=A7=91?= <32996823@qq.com> Date: Fri, 1 Nov 2024 20:45:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=BB=84=E8=A3=85=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/md/baseKnife.js | 9 + src/api/mes/wm/zdTask.js | 44 +++ src/router/index.js | 14 - src/views/mes/md/baseKnife/index.vue | 2 +- src/views/mes/wm/ctBase/data.vue | 399 --------------------------- src/views/mes/wm/ctBase/index.vue | 92 +++++- src/views/mes/wm/zdTask/index.vue | 360 ++++++++++++++++++++++++ 7 files changed, 504 insertions(+), 416 deletions(-) create mode 100644 src/api/mes/wm/zdTask.js delete mode 100644 src/views/mes/wm/ctBase/data.vue create mode 100644 src/views/mes/wm/zdTask/index.vue diff --git a/src/api/mes/md/baseKnife.js b/src/api/mes/md/baseKnife.js index 7a47c2b..509572e 100644 --- a/src/api/mes/md/baseKnife.js +++ b/src/api/mes/md/baseKnife.js @@ -50,3 +50,12 @@ export function resetBaseKnife(baseKnifeId) { method: 'put' }) } + +// 重置工具台账寿命 +export function submitZdTask(data) { + return request({ + url: '/mes/md/baseKnife/zdTask', + method: 'put', + data: data + }) +} diff --git a/src/api/mes/wm/zdTask.js b/src/api/mes/wm/zdTask.js new file mode 100644 index 0000000..ec2c0e2 --- /dev/null +++ b/src/api/mes/wm/zdTask.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询组装任务列表 +export function listZdTask(query) { + return request({ + url: '/mes/wm/zdTask/list', + method: 'get', + params: query + }) +} + +// 查询组装任务详细 +export function getZdTask(wmsZdTaskId) { + return request({ + url: '/mes/wm/zdTask/' + wmsZdTaskId, + method: 'get' + }) +} + +// 新增组装任务 +export function addZdTask(data) { + return request({ + url: '/mes/wm/zdTask', + method: 'post', + data: data + }) +} + +// 修改组装任务 +export function updateZdTask(data) { + return request({ + url: '/mes/wm/zdTask', + method: 'put', + data: data + }) +} + +// 删除组装任务 +export function delZdTask(wmsZdTaskId) { + return request({ + url: '/mes/wm/zdTask/' + wmsZdTaskId, + method: 'delete' + }) +} diff --git a/src/router/index.js b/src/router/index.js index c58803a..8327082 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -134,20 +134,6 @@ export const dynamicRoutes = [ } ] }, - { - path: '/wm/ctBase-data', - component: Layout, - hidden: true, - permissions: ['system:ctBase:list'], - children: [ - { - path: 'index/:ctBaseId(\\d+)', - component: () => import('@/views/mes/wm/ctBase/data'), - name: 'Data', - meta: { title: '料箱数据', activeMenu: '/mes/wm/ctBase' } - } - ] - }, { path: '/system/autocodePart', component: Layout, diff --git a/src/views/mes/md/baseKnife/index.vue b/src/views/mes/md/baseKnife/index.vue index 65e2b9d..a6ceaf9 100644 --- a/src/views/mes/md/baseKnife/index.vue +++ b/src/views/mes/md/baseKnife/index.vue @@ -206,7 +206,7 @@ export default { }, /** 重置按钮操作 */ handleReset(row) { - this.$modal.confirm('是否确认重置编码为"' + row.knifeCode + '"的寿命?').then(function() { + this.$modal.confirm('当前寿命为 [ ' + row.knifeLife + ' ], 是否确认重置编码为"' + row.knifeCode + '"的寿命?').then(function() { return resetBaseKnife(row.baseKnifeId); }).then(() => { this.getList(); diff --git a/src/views/mes/wm/ctBase/data.vue b/src/views/mes/wm/ctBase/data.vue deleted file mode 100644 index 93d6c28..0000000 --- a/src/views/mes/wm/ctBase/data.vue +++ /dev/null @@ -1,399 +0,0 @@ - - - diff --git a/src/views/mes/wm/ctBase/index.vue b/src/views/mes/wm/ctBase/index.vue index 8e140f8..8d9efff 100644 --- a/src/views/mes/wm/ctBase/index.vue +++ b/src/views/mes/wm/ctBase/index.vue @@ -110,7 +110,7 @@ /> - + @@ -133,6 +133,54 @@ + 物料台账信息 + + + 添加 + + + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + +