From d01bc132fd194e67bc46842ff52048feef64a367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Thu, 22 Sep 2022 23:55:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8D=95=E6=8D=AE=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E5=95=86=E5=93=81=E9=80=89=E6=8B=A9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jeecgbiz/modal/JSelectMaterialModal.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/jshERP-web/src/components/jeecgbiz/modal/JSelectMaterialModal.vue b/jshERP-web/src/components/jeecgbiz/modal/JSelectMaterialModal.vue index cefd4581..1e2d0b26 100644 --- a/jshERP-web/src/components/jeecgbiz/modal/JSelectMaterialModal.vue +++ b/jshERP-web/src/components/jeecgbiz/modal/JSelectMaterialModal.vue @@ -212,8 +212,16 @@ this.dataSource = res.rows this.ipagination.total = res.total if(res.total ===1) { - this.title = '选择商品【再次回车可以直接选中】' - this.$nextTick(() => this.$refs.material.focus()); + if(this.queryParam.q === this.dataSource[0].mBarCode|| + this.queryParam.q === this.dataSource[0].name|| + this.queryParam.q === this.dataSource[0].standard|| + this.queryParam.q === this.dataSource[0].model|| + this.queryParam.q === this.dataSource[0].color) { + this.title = '选择商品【再次回车可以直接选中】' + this.$nextTick(() => this.$refs.material.focus()); + } else { + this.title = '选择商品' + } } else { this.title = '选择商品' }