diff --git a/src/api/qc/Inbound_notification.js b/src/api/qc/Inbound_notification.js index 8291bcd..1b15345 100644 --- a/src/api/qc/Inbound_notification.js +++ b/src/api/qc/Inbound_notification.js @@ -7,6 +7,8 @@ export const searchInboundNotification = data => createAPI('/inbound/searchInbou export const saveInboundNotification = data => createAPI('/inbound/saveInboundNotification','post',data) // 编辑收获入库单 export const updateInboundNotification = data => createAPI('/inbound/updateInboundNotification','post',data) +// 打开收获入库单 +export const openInboundNotification = data => createAPI('/inbound/openInboundNotification','post',data) // 删除收获入库单 export const deleteInboundNotification = data => createAPI('/inbound/deleteInboundNotification','post',data) // 关闭收获入库单 diff --git a/src/api/qc/outbound_notification.js b/src/api/qc/outbound_notification.js index 7255b1a..a4925dc 100644 --- a/src/api/qc/outbound_notification.js +++ b/src/api/qc/outbound_notification.js @@ -6,6 +6,8 @@ export const searchOutboundNotification = data => createAPI('/outbound/searchOut export const saveOutboundNotification = data => createAPI('/outbound/saveOutboundNotification','post',data) // 编辑拣货出库单 export const updateOutboundNotification = data => createAPI('/outbound/updateOutboundNotification','post',data) +// 打开拣货出库单 +export const openOutboundNotification = data => createAPI('/outbound/openOutboundNotification','post',data) // 删除拣货出库单 export const deleteOutboundNotification = data => createAPI('/outbound/deleteOutboundNotification','post',data) // 关闭拣货出库单 diff --git a/src/views/modules/qc/inboundNotification.vue b/src/views/modules/qc/inboundNotification.vue index a0cfcd3..9a3f4c2 100644 --- a/src/views/modules/qc/inboundNotification.vue +++ b/src/views/modules/qc/inboundNotification.vue @@ -199,6 +199,7 @@ + 打开 @@ -806,6 +807,7 @@ searchInboundNotification, // 查询收获入库单 saveInboundNotification, // 新增收获入库单 updateInboundNotification, // 编辑收获入库单 + openInboundNotification, // 打开收获入库单 deleteInboundNotification, // 删除收获入库单 closeInboundNotification, // 关闭收获入库单 issueInboundNotification, // 下达收获入库单 @@ -1738,6 +1740,29 @@ }) }, + // 打开 + openModal (row) { + this.$confirm('确认打开?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + let inData = { + site: row.site, + buNo: row.buNo, + orderNo: row.orderNo + } + openInboundNotification(inData).then(({data}) => { + if (data && data.code === 0) { + this.getDataList() + this.$message.success('操作成功') + } else { + this.$message.error(data.msg) + } + }) + }); + }, + // 列表表格选择替换 tabClick (tab, event) { // 刷新列表数据 diff --git a/src/views/modules/qc/outboundNotification.vue b/src/views/modules/qc/outboundNotification.vue index 3b583da..4fddfe3 100644 --- a/src/views/modules/qc/outboundNotification.vue +++ b/src/views/modules/qc/outboundNotification.vue @@ -200,6 +200,7 @@ + 打开 @@ -802,6 +803,7 @@ searchOutboundNotification, // 查询拣货出库单 saveOutboundNotification, // 新增拣货出库单 updateOutboundNotification, // 编辑拣货出库单 + openOutboundNotification, // 打开拣货出库单 deleteOutboundNotification, // 删除拣货出库单 closeOutboundNotification, // 关闭拣货出库单 issueOutboundNotification, // 下达拣货出库单 @@ -1793,6 +1795,29 @@ }) }, + // 打开 + openModal (row) { + this.$confirm('确认打开?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + let inData = { + site: row.site, + buNo: row.buNo, + orderNo: row.orderNo + } + openOutboundNotification(inData).then(({data}) => { + if (data && data.code === 0) { + this.getDataList() + this.$message.success('操作成功') + } else { + this.$message.error(data.msg) + } + }) + }); + }, + // 列表表格选择替换 tabClick (tab, event) { // 刷新列表数据