From b157affdcf0ee2845e04dd8ae2db718f3a8b332a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Sat, 17 Jan 2026 20:59:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(coil):=20=E4=BF=AE=E5=A4=8D=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E5=90=8E=E8=A1=A8=E5=8D=95=E9=87=8D=E7=BD=AE=E5=92=8C?= =?UTF-8?q?=E9=92=A2=E5=8D=B7=E5=8F=B7=E8=8E=B7=E5=8F=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复入库成功后表单重置不完整的问题,添加materialType字段 修正planId重置错误,使用当前表单的planId而非todayPlanId 使用$set方法更新enterCoilNo以确保响应式更新 添加入库后自动获取最大钢卷号功能 --- klp-ui/src/views/wms/coil/do/warehousing.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/klp-ui/src/views/wms/coil/do/warehousing.vue b/klp-ui/src/views/wms/coil/do/warehousing.vue index 471c3e78..014fc406 100644 --- a/klp-ui/src/views/wms/coil/do/warehousing.vue +++ b/klp-ui/src/views/wms/coil/do/warehousing.vue @@ -607,9 +607,11 @@ export default { handleCoil(COIL_ACTIONS.RECEIVE, this.form, this.form.planId) .then(res => { this.$modal.msgSuccess("入库成功"); + this.form = { itemId: null, itemType: 'raw_material', + materialType: '原料', warehouseId: '1988150044862377986', // 酸连轧原料库 netWeight: null, grossWeight: null, @@ -618,8 +620,9 @@ export default { trimmingRequirement: null, packingStatus: null, packagingRequirement: null, - planId: this.todayPlanId, + planId: this.form.planId, } + this.getMaxCoilNoByPrefix() this.getList() }).finally(() => { this.buttonLoading = false; @@ -731,7 +734,7 @@ export default { getMaxCoilNo(prefix).then(res => { console.log(res) // 扣掉最后一位 - this.form.enterCoilNo = res.data.maxEnterCoilNo.slice(0, -1); + this.$set(this.form, 'enterCoilNo', res.data.maxEnterCoilNo.slice(0, -1)); }) }, // 检查钢卷号是否合法(后端检查)