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 = "修改成品备货单"; + }); + }, } }