From 7175a175f806129eb35adb4742f40747eaaeb407 Mon Sep 17 00:00:00 2001 From: shenzhouyu Date: Wed, 12 Nov 2025 16:40:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B3=E8=AF=B7=E5=8D=95=E9=80=80=E6=96=99?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/orderIssure/inboundNotification.js | 4 +- .../orderIssure/productionInboundRequest.js | 8 +- .../orderIssure/inboundNotification.vue | 91 ++- .../productionInboundRequest.vue | 659 ++++++++++++------ 4 files changed, 504 insertions(+), 258 deletions(-) diff --git a/src/api/orderIssure/inboundNotification.js b/src/api/orderIssure/inboundNotification.js index 6a8c0ea..ca8d740 100644 --- a/src/api/orderIssure/inboundNotification.js +++ b/src/api/orderIssure/inboundNotification.js @@ -5,4 +5,6 @@ export const searchNotifyHeader= data => createAPI(`/orderUnissue/unissueNotify/ export const createNotify = data => createAPI(`/orderIssure/issureNotify/createNotify`,'post',data) export const getSOScheduledRoutingListForIssure= data => createAPI(`/orderIssure/issureNotify/getSOScheduledRoutingListForIssure`,'post',data) export const getNotifyNoDetail= data => createAPI(`/orderUnissue/unissueNotify/getNotifyNoDetail`,'post',data) -export const searchNotifyMaterialList= data => createAPI(`/orderUnissue/unissueNotify/searchNotifyMaterialList`,'post',data) \ No newline at end of file +export const searchNotifyMaterialList= data => createAPI(`/orderUnissue/unissueNotify/searchNotifyMaterialList`,'post',data) +export const deleteNotifyUnissue= data => createAPI(`/orderUnissue/unissueNotify/deleteNotifyUnissue`,'post',data) +export const searchUnissueNotifyMaterialList= data => createAPI(`/orderUnissue/unissueNotify/searchUnissueNotifyMaterialList`,'post',data) \ No newline at end of file diff --git a/src/api/orderIssure/productionInboundRequest.js b/src/api/orderIssure/productionInboundRequest.js index 75f5ae6..a451a48 100644 --- a/src/api/orderIssure/productionInboundRequest.js +++ b/src/api/orderIssure/productionInboundRequest.js @@ -17,8 +17,6 @@ export const saveUnissueMaterialDetail= data => createAPI(`/orderUnissue/unissue export const deleteNotifyUnissue= data => createAPI(`/orderUnissue/unissueNotify/deleteNotifyUnissue`,'post',data) -export const xiadaNotify= data => createAPI(`/orderIssure/issureNotify/xiadaNotify`,'post',data) - export const searchNotifyOrderList= data => createAPI(`/orderIssure/issureNotify/searchNotifyOrderList`,'post',data) export const searchUnissueNotifyMaterialList= data => createAPI(`/orderUnissue/unissueNotify/searchUnissueNotifyMaterialList`,'post',data) @@ -45,4 +43,8 @@ export const updateNotifyBatchConfirmStatus= data => createAPI(`/orderIssure/iss export const getSiteAndBuByUserName = data => createAPI(`/orderIssure/issureNotify/getSiteAndBuByUserName`,'post',data) export const getEamWorkShop = data => createAPI(`/orderIssure/issureNotify/getEamWorkShop`,'post',data) -export const getIFSShopOrderByOrderNo = data => createAPI(`/orderUnissue/unissueNotify/getIFSShopOrderByOrderNo`,'post',data) \ No newline at end of file +export const getIFSShopOrderByOrderNo = data => createAPI(`/orderUnissue/unissueNotify/getIFSShopOrderByOrderNo`,'post',data) + +export const getUnissueShopOrderAndMaterialByShoporder = data => createAPI(`/orderUnissue/unissueNotify/getUnissueShopOrderAndMaterialByShoporder`,'post',data) + +export const saveNewUnissueNotifyOrderList = data => createAPI(`/orderUnissue/unissueNotify/saveNewUnissueNotifyOrderList`,'post',data) \ No newline at end of file diff --git a/src/views/modules/orderIssure/inboundNotification.vue b/src/views/modules/orderIssure/inboundNotification.vue index 1b7ca40..8188781 100644 --- a/src/views/modules/orderIssure/inboundNotification.vue +++ b/src/views/modules/orderIssure/inboundNotification.vue @@ -15,10 +15,8 @@ --> - - - - + + @@ -49,8 +47,8 @@ - - + - + - - + --> - + @@ -525,6 +524,8 @@ import { createNotify, getNotifyNoDetail, searchNotifyMaterialList, + deleteNotifyUnissue, + searchUnissueNotifyMaterialList } from '@/api/orderIssure/inboundNotification.js' import Chooselist from '@/views/modules/common/Chooselist_eam' import { getChooselist } from '@/api/chooselist/chooselist.js' @@ -558,7 +559,7 @@ export default { orderNo: '', orderType: '', orderStatus: '', - orderStatusList: ['UNISSUE'], + orderStatusList: ['ISSUE'], startDate: '', endDate: '', page: 1, @@ -1050,7 +1051,7 @@ export default { columnLabel: '物料编码', columnHidden: false, columnImage: false, - columnSortable: false, + columnSortable: true, sortLv: 0, status: true, fixed: '', @@ -1130,24 +1131,6 @@ export default { fixed: '', columnWidth: 120, }, - { - userId: this.$store.state.user.name, - functionId: 701001, - serialNumber: '701001Table2PartNo', - tableId: '701001Table2', - tableName: '查询派工单', - columnProp: 'fgpartNo', - headerAlign: 'center', - align: 'left', - columnLabel: '物料编码', - columnHidden: false, - columnImage: false, - columnSortable: false, - sortLv: 0, - status: true, - fixed: '', - columnWidth: 80, - }, /* { userId: this.$store.state.user.name, functionId: 701001, @@ -1185,24 +1168,6 @@ export default { fixed: '', columnWidth: 80, }, */ - { - userId: this.$store.state.user.name, - functionId: 701001, - serialNumber: '701001Table2Qtyreported', - tableId: '701001Table2', - tableName: '查询派工单', - columnProp: 'unissureQty', - headerAlign: 'center', - align: 'right', - columnLabel: '退料数量', - columnHidden: false, - columnImage: false, - columnSortable: false, - sortLv: 0, - status: true, - fixed: '', - columnWidth: 80, - }, { userId: this.$store.state.user.name, functionId: 701001, @@ -2239,7 +2204,7 @@ export default { searchUnissueNotifyMaterialList(row){ this.bomLoadFlag = true this.materialModalFlag = true - searchNotifyMaterialList(row).then(({ data }) => { + searchUnissueNotifyMaterialList(row).then(({ data }) => { if (data.code === 0) { this.sobomList = data.rows } @@ -2266,6 +2231,32 @@ export default { }) }, + // 删除 + deleteNotifySOS(row) { + this.$confirm(`是否删除这个工单的申请信息?`, '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + }) + .then(() => { + deleteNotifyUnissue(row).then(({ data }) => { + if (data && data.code === 0) { + this.getNotifyNoDetail() + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => {}, + }) + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定', + }) + } + }) + }) + .catch(() => {}) + }, //获取按钮的权限数据 getButtonAuthData() { if (this.$store.state.user.id === 1) { diff --git a/src/views/modules/productionInbound/productionInboundRequest.vue b/src/views/modules/productionInbound/productionInboundRequest.vue index a3e19e4..d71156a 100644 --- a/src/views/modules/productionInbound/productionInboundRequest.vue +++ b/src/views/modules/productionInbound/productionInboundRequest.vue @@ -117,40 +117,31 @@ --> - + - - + + - - - - + + - - - + + - 查询 - + 添加 + 删除 @@ -161,18 +152,17 @@ :align="item.align" :fixed="item.fixed==''?false:item.fixed" :min-width="item.columnWidth" :label="item.columnLabel"> - - - + 保存 关闭 @@ -198,7 +188,7 @@ - + @@ -212,7 +202,8 @@ - +