From 2207f12e26d5976c16f954f645a02c7e6baaf44f Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Wed, 15 Oct 2025 10:09:00 +0800 Subject: [PATCH] =?UTF-8?q?2025-10-15=20=E9=94=80=E5=94=AE=E5=8F=91?= =?UTF-8?q?=E8=B4=A7=E8=A3=85=E7=AE=B1=20=E5=A2=9E=E5=8A=A0=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/boxManage/boxManage.js | 5 +- src/views/modules/boxManage/saleBoxManage.vue | 53 ++++++++++++++----- 2 files changed, 45 insertions(+), 13 deletions(-) diff --git a/src/api/boxManage/boxManage.js b/src/api/boxManage/boxManage.js index 8429ab3..6dd0a7f 100644 --- a/src/api/boxManage/boxManage.js +++ b/src/api/boxManage/boxManage.js @@ -18,4 +18,7 @@ export const validateAndScanCaseRoll = data => createAPI('/boxForNotification/va export const saveCaseRollList = data => createAPI('/boxForNotification/saveCaseRollList','post',data) // 查询出库通知单主记录(关联明细) -export const searchOutboundNotificationWithDetail = data => createAPI('/boxForNotification/searchOutboundNotificationWithDetail','post',data) \ No newline at end of file +export const searchOutboundNotificationWithDetail = data => createAPI('/boxForNotification/searchOutboundNotificationWithDetail','post',data) + +// 更新出库通知单状态 +export const updateOrderStatus = data => createAPI('/boxForNotification/updateOrderStatus','post',data) \ No newline at end of file diff --git a/src/views/modules/boxManage/saleBoxManage.vue b/src/views/modules/boxManage/saleBoxManage.vue index 28a2888..d37bff2 100644 --- a/src/views/modules/boxManage/saleBoxManage.vue +++ b/src/views/modules/boxManage/saleBoxManage.vue @@ -41,15 +41,6 @@ @row-click="changeData" v-loading="dataListLoading" style="margin-top: 0px; width: 100%;"> - - - - - - - - - + + + @@ -340,7 +340,8 @@ import { deleteSoReceiveCasesData, validateAndScanCaseRoll, saveCaseRollList, - searchOutboundNotificationWithDetail + searchOutboundNotificationWithDetail, + updateOrderStatus } from '../../../api/boxManage/boxManage' @@ -1065,6 +1066,34 @@ export default { } }).catch(() => {}) }, + + // 处理完成操作 + async handleComplete(row){ + this.$confirm('是否包装完成?', '提示', { + confirmButtonText: '是', + cancelButtonText: '否', + type: 'warning' + }).then(async () => { + try { + const {data} = await updateOrderStatus({ + site: row.site, + buNo: row.buNo, + orderNo: row.orderNo + }) + if(data && data.code === 0){ + this.$message.success('操作成功,单据状态已更新为"待出库"') + // 刷新列表 + this.getMainData() + } else { + this.$message.error(data.msg || '操作失败') + } + } catch (error) { + this.$message.error(error.msg || '操作失败,请重试') + } + }).catch(() => { + // 用户点击了"否",不做任何操作 + }) + }, }, created() { //查询报表的类型