From 27382b2de1759c2443251e446cdc197c52178f3b Mon Sep 17 00:00:00 2001 From: mengjiao <3338049200@qq,com> Date: Fri, 13 Dec 2024 17:06:03 +0800 Subject: [PATCH] =?UTF-8?q?wms=E2=80=9C=E5=86=B2=E9=94=80bug=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wms/put/index.vue | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/views/wms/put/index.vue b/src/views/wms/put/index.vue index bc0b998..e039feb 100644 --- a/src/views/wms/put/index.vue +++ b/src/views/wms/put/index.vue @@ -675,6 +675,32 @@ export default { // 打开对话框 this.dialogVisible = true; }, + // handleUpdateSAP102(row) { + // // 确保 ids 是数组 + // const ids = row.id || this.ids; + // + // // 检查是否有可过账的记录 + // if (!this.ids || this.ids.length === 0) { + // this.$message.error("没有可过账的记录"); + // return; + // } + // + // // 打开对话框 + // this.dialogVisible = true; + // }, + handleUpdateSAP102(row) { + this.reset(); + //qualityStatus + const id = this.ids[0] + let postData = this.ids.map(id => ({ id: id })); + + this.$modal.confirm('是否进行过账').then(function() { + return handleUpdateSAP102(JSON.stringify(postData)); + }).then(() => { + this.getList(); + this.$modal.msgSuccess("过账完成"); + }).catch(() => {}); + }, confirmSelection() { if (!this.selectedType) { this.$message.error("请选择库存类型");