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: '确定',