给单据增加回车事件

This commit is contained in:
季圣华
2021-11-02 01:20:30 +08:00
parent e6b2b1ecf7
commit 1e0d137739
16 changed files with 84 additions and 32 deletions

View File

@@ -306,7 +306,10 @@
},
onSearch() {
if(this.dataSource && this.dataSource.length===1) {
if(this.queryParam.q === this.dataSource[0].mBarCode) {
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) {
let arr = []
arr.push(this.dataSource[0].id)
this.selectedRowKeys = arr