From 031f086954adf23649bcfb8d8bba4202f3e21a11 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Tue, 3 Mar 2026 15:26:55 +0800 Subject: [PATCH] =?UTF-8?q?2026-03-03=20=E9=A2=86=E6=96=99=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E7=AE=A1=E7=90=86=20=E6=9D=90=E6=96=99=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E9=A1=B5=E7=AD=BE=E5=A2=9E=E5=8A=A0=E3=80=90=E6=89=93?= =?UTF-8?q?=E5=BC=80=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/orderIssure/soIssueNotify.js | 1 + .../soIssueNotify/searchIssureNotify.vue | 35 +++++++++++++++++-- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/src/api/orderIssure/soIssueNotify.js b/src/api/orderIssure/soIssueNotify.js index 6987c7d..1e7fe6e 100644 --- a/src/api/orderIssure/soIssueNotify.js +++ b/src/api/orderIssure/soIssueNotify.js @@ -57,6 +57,7 @@ export const saveSOIssueNotifyOrderMateria = data => createAPI(`/orderIssure/iss export const getBomAlternativeParts = data => createAPI(`/orderIssure/issureNotify/getBomAlternativeParts`,'post',data) export const getWorkCenterList = data => createAPI(`/orderIssure/issureNotify/getWorkCenterList`,'post',data) +export const updateMaterialShowFlag = data => createAPI(`/orderIssure/issureNotify/updateMaterialShowFlag`,'post',data) // 生产领料任务通知报表查询 export const searchIssueNotifyReport = data => createAPI(`/orderIssure/issureNotify/searchIssueNotifyReport`,'post',data) diff --git a/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue b/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue index 90eb93c..9b28f64 100644 --- a/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue +++ b/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue @@ -294,10 +294,11 @@ fixed="right" header-align="center" align="center" - width="100" + width="145" label="操作"> @@ -1119,7 +1120,8 @@ updateNotifyDetail, saveSOIssueNotifyOrderMateria, getBomAlternativeParts, - getWorkCenterList + getWorkCenterList, + updateMaterialShowFlag } from "@/api/orderIssure/soIssueNotify.js" import { searchShopOrderByPaging @@ -3094,6 +3096,35 @@ }) }); }, + openMaterial(row) { + this.$confirm('确认打开该材料明细?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + const params = { + site: row.site, + notifyNo: row.notifyNo, + bOMItemNo: row.bOMItemNo, + showFlag: 'Y' + } + updateMaterialShowFlag(params).then(({data}) => { + if (data && data.code === 0) { + this.refreshCurrentTabTable() + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500 + }) + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + }) + }, + deleteNotifySOSPlus(row){ // 检查当前状态是否允许编辑 if (!this.isEditableStatusComputed) {