From c6ad6ca41b49a04d9b39a94838cab613fb6e27e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=B8=E7=86=9F=E5=90=B4=E5=BD=A6=E7=A5=96?= Date: Sun, 21 Sep 2025 19:20:02 +0800 Subject: [PATCH] 1 --- src/api/orderIssure/soIssueNotify.js | 1 + .../orderIssure/searchIssureNotify.vue | 31 ++++++++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/src/api/orderIssure/soIssueNotify.js b/src/api/orderIssure/soIssueNotify.js index b5fa776..9483c73 100644 --- a/src/api/orderIssure/soIssueNotify.js +++ b/src/api/orderIssure/soIssueNotify.js @@ -63,6 +63,7 @@ export const searchSumNotifyMaterialListNew = data => createAPI(`/orderIssure/ne export const updateNotifyStatusNew = data => createAPI(`/orderIssure/newIssure/updateNotifyStatusNew`,'post',data) export const searchNotifyLogNew = data => createAPI(`/orderIssure/newIssure/searchNotifyLogNew`,'post',data) export const searchNotifyLogCloseNew = data => createAPI(`/orderIssure/newIssure/searchNotifyLogCloseNew`,'post',data) +export const pushNotifyToWcs = data => createAPI(`/orderIssure/newIssure/pushNotifyToWcs`,'post',data) diff --git a/src/views/modules/orderIssure/searchIssureNotify.vue b/src/views/modules/orderIssure/searchIssureNotify.vue index ade0d3f..6d09e64 100644 --- a/src/views/modules/orderIssure/searchIssureNotify.vue +++ b/src/views/modules/orderIssure/searchIssureNotify.vue @@ -100,11 +100,12 @@ @@ -270,6 +271,7 @@ , deleteNotifyMaterial , searchNotifyLogNew , searchNotifyLogCloseNew + , pushNotifyToWcs } from "@/api/orderIssure/soIssueNotify.js" @@ -1096,6 +1098,33 @@ }) }) }, + pushToWcs(row){ + this.$confirm('确认推送到WCS?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + let inData={ + site: row.site, + notifyNo: row.notifyNo + } + pushNotifyToWcs(inData).then(({data}) => { + if (data && data.code === 0) { + this.searchTable() + this.$message({ + message: '推送WCS成功', + type: 'success', + duration: 1500, + onClose: () => {} + }) + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + }) + }, deleteNotifyMaterial(row){ this.$confirm('确认删除?', '提示', { confirmButtonText: '确定',