From 30b55eacf36d88d5471bc3925d3f4c237e52009d Mon Sep 17 00:00:00 2001 From: mengjiao <3338049200@qq,com> Date: Thu, 9 Jan 2025 09:03:54 +0800 Subject: [PATCH] =?UTF-8?q?wms=E9=94=80=E5=94=AE=E9=A1=B5=E9=9D=A2?= =?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/wms/sellout.js | 8 ++++ src/views/wms/sellout/index.vue | 85 ++++++++++++++++++++++++++++++--- 2 files changed, 86 insertions(+), 7 deletions(-) diff --git a/src/api/wms/sellout.js b/src/api/wms/sellout.js index d5862ef..f24939b 100644 --- a/src/api/wms/sellout.js +++ b/src/api/wms/sellout.js @@ -40,6 +40,14 @@ export function addSellout(data) { }); } // 新增成品销售出库 +export function editRE(data) { + return request({ + url: '/wms/sellout/editRE', + method: 'post', + data: data + }); +} +// 新增成品销售出库 export function addRE(data) { return request({ url: '/wms/sellout/addRE', diff --git a/src/views/wms/sellout/index.vue b/src/views/wms/sellout/index.vue index c48ada3..420c84c 100644 --- a/src/views/wms/sellout/index.vue +++ b/src/views/wms/sellout/index.vue @@ -49,24 +49,39 @@ - + 生成备货单 - + + + 修改 + + + + + - - + + - + - + @@ -218,6 +233,31 @@ + + + + + + + + + + + + + + + + + + + + + + @@ -226,6 +266,7 @@ listSellout, getSellout, addRE, + editRE, listSelloutlistRE, delSellout, addSellout, @@ -254,6 +295,7 @@ title: "", // 是否显示弹出层 open: false, + openTen: false, showMaterialDialog: false, // 领料单信息弹窗状态 addoutorderList: [], // 查询参数 @@ -322,7 +364,7 @@ }, // 取消按钮 cancel() { - this.open = false; + this.openTen = false; this.reset(); }, // 表单重置 @@ -405,6 +447,20 @@ } this.getList(); }, + + submitFormTen() { + this.$refs["form"].validate(valid => { + if (valid) { + if (this.form.id != null) { + editRE(this.form).then(response => { + this.$modal.msgSuccess("修改成功"); + this.openTen = false; + this.getList(); + }); + } + } + }); + }, /** 重置按钮操作 */ resetQuery() { @@ -526,7 +582,22 @@ this.title = "修改成品销售出库"; }); }, + /** 修改按钮操作 */ + handleUpdateA(row) { + this.reset(); + const ids = this.ids[0]; + // 发送请求到后端 + // 发送请求到后端 + const payload = { + id: ids + }; + listSelloutlistRE(payload).then(response => { + this.form = response.rows[0]; + this.openTen = true; + this.title = "修改成品备货单"; + }); + }, } }