给单据增加回车事件

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

@@ -47,7 +47,7 @@
</a-form-item>
</a-col>
</a-row>
<j-editable-table
<j-editable-table id="billModal"
:ref="refKeys[0]"
:loading="materialTable.loading"
:columns="materialTable.columns"
@@ -70,7 +70,7 @@
<a-button @click="scanEnter">扫码录入</a-button>
</a-col>
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 6px 0 12px">
<a-input placeholder="请扫码商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" />
<a-input placeholder="请扫码商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
</a-col>
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px">
<a-button @click="stopScan">收起扫码</a-button>