From 05bd620811c491a885c8e16d340eaf597c76a825 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= <2178503051@qq.com> Date: Wed, 13 May 2026 14:01:13 +0800 Subject: [PATCH] =?UTF-8?q?refactor(wms/coil):=20=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E4=B8=8D=E5=BF=85=E8=A6=81=E7=9A=84=E8=AF=B7=E6=B1=82=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=90=8E=E8=B0=83=E7=94=A8=E6=9B=B4=E6=96=B0=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在三个钢卷相关的页面中,提取请求载荷时排除status、exclusiveStatus、dataType字段,仅传递有效参数给更新接口 --- klp-ui/src/views/wms/coil/do/correct.vue | 5 ++++- klp-ui/src/views/wms/coil/do/correntAll.vue | 5 ++++- klp-ui/src/views/wms/coil/panels/base.vue | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/klp-ui/src/views/wms/coil/do/correct.vue b/klp-ui/src/views/wms/coil/do/correct.vue index 9e58a044..abbd78c9 100644 --- a/klp-ui/src/views/wms/coil/do/correct.vue +++ b/klp-ui/src/views/wms/coil/do/correct.vue @@ -832,7 +832,10 @@ export default { this.buttonLoading = true; if (this.form.coilId) { // 更新 - updateMaterialCoilSimple(this.form).then(_ => { + const { status, exclusiveStatus, dataType, ...payload} = { + ...this.form, + } + updateMaterialCoilSimple(payload).then(_ => { this.$modal.msgSuccess("修正成功"); this.correctVisible = false; this.getMaterialCoil(); diff --git a/klp-ui/src/views/wms/coil/do/correntAll.vue b/klp-ui/src/views/wms/coil/do/correntAll.vue index fbcb386e..ea84f195 100644 --- a/klp-ui/src/views/wms/coil/do/correntAll.vue +++ b/klp-ui/src/views/wms/coil/do/correntAll.vue @@ -812,7 +812,10 @@ export default { } this.buttonLoading = true; // 更新钢卷信息 - updateMaterialCoilSimple(this.form).then(_ => { + const { status, exclusiveStatus, dataType, ...payload} = { + ...this.form, + } + updateMaterialCoilSimple(payload).then(_ => { this.$modal.msgSuccess("修正成功"); this.correctVisible = false; this.getMaterialCoil(); diff --git a/klp-ui/src/views/wms/coil/panels/base.vue b/klp-ui/src/views/wms/coil/panels/base.vue index 7bbd1e3b..b52ece0f 100644 --- a/klp-ui/src/views/wms/coil/panels/base.vue +++ b/klp-ui/src/views/wms/coil/panels/base.vue @@ -2061,7 +2061,10 @@ export default { if (valid) { this.buttonLoading = true; if (this.form.coilId != null) { - updateMaterialCoilSimple(this.form).then(_ => { + const { status, exclusiveStatus, dataType, ...payload} = { + ...this.form, + } + updateMaterialCoilSimple(payload).then(_ => { this.$modal.msgSuccess("修改成功"); this.open = false; this.getList();