From c20965406f9a3e44a580acb7bc6916703eba0ca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= <2178503051@qq.com> Date: Fri, 26 Jun 2026 09:29:59 +0800 Subject: [PATCH] =?UTF-8?q?feat(wms/coil):=20=E9=85=B8=E8=BD=A7=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=A1=AB=E5=86=99=E5=86=B7=E5=8D=B7=E5=8F=B7,?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=A1=AB=E5=86=99=E6=9C=80=E4=BC=98=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- klp-ui/src/views/wms/coil/panels/L2MatchPanel.vue | 8 +++++++- klp-ui/src/views/wms/coil/typing.vue | 11 ++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/klp-ui/src/views/wms/coil/panels/L2MatchPanel.vue b/klp-ui/src/views/wms/coil/panels/L2MatchPanel.vue index c331a6bb3..f63d45df5 100644 --- a/klp-ui/src/views/wms/coil/panels/L2MatchPanel.vue +++ b/klp-ui/src/views/wms/coil/panels/L2MatchPanel.vue @@ -88,7 +88,8 @@ const PLAN_FIELDS = [ export default { name: 'L2MatchPanel', props: { - hotCoilId: { type: String, default: '' } + hotCoilId: { type: String, default: '' }, + autoFill: { type: Boolean, default: false } }, data() { return { @@ -103,6 +104,11 @@ export default { hotCoilId(val) { if (val) this.loadBestMatch(val) else this.bestMatch = null + }, + bestMatch(val) { + if (val && this.autoFill) { + this.$emit('fill', val) + } } }, created() { diff --git a/klp-ui/src/views/wms/coil/typing.vue b/klp-ui/src/views/wms/coil/typing.vue index 22148fb04..c321ae1bb 100644 --- a/klp-ui/src/views/wms/coil/typing.vue +++ b/klp-ui/src/views/wms/coil/typing.vue @@ -25,7 +25,7 @@