Accept Merge Request #1454: (feature/制造功能优化 -> develop)
Merge Request: 增加对Enter的判断 Created By: @马广威 Accepted By: @马广威 URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/1454?initial=true
This commit is contained in:
@@ -27,7 +27,7 @@ class QRCodeWidget extends Component {
|
|||||||
onGlobalKeyDown(event) {
|
onGlobalKeyDown(event) {
|
||||||
|
|
||||||
// 如果是Tab键,表示扫码输入结束
|
// 如果是Tab键,表示扫码输入结束
|
||||||
if (event.key === 'Tab') {
|
if (event.key === 'Tab' || event.key === 'Enter') {
|
||||||
this.qrCodeValue = this.inputBuffer; // 完整条码赋值
|
this.qrCodeValue = this.inputBuffer; // 完整条码赋值
|
||||||
console.log('完整条码:', this.qrCodeValue);
|
console.log('完整条码:', this.qrCodeValue);
|
||||||
this.onQRCodeChange(this.qrCodeValue); // 调用父组件的 onQRCodeChange 方法
|
this.onQRCodeChange(this.qrCodeValue); // 调用父组件的 onQRCodeChange 方法
|
||||||
|
|||||||
@@ -247,8 +247,8 @@
|
|||||||
<field name='process_state' invisible="1"/>
|
<field name='process_state' invisible="1"/>
|
||||||
<field name='tag_type' readonly="1" attrs='{"invisible": [("tag_type","=",False)]}'
|
<field name='tag_type' readonly="1" attrs='{"invisible": [("tag_type","=",False)]}'
|
||||||
decoration-danger="tag_type == '重新加工'"/>
|
decoration-danger="tag_type == '重新加工'"/>
|
||||||
<field name="rfid_code" force_save="1" readonly="0" cache="True"
|
<field name="rfid_code" force_save="1" readonly="1" cache="True"
|
||||||
attrs="{'invisible': [('rfid_code_old', '!=', False)]}"/>
|
attrs="{'invisible': [('rfid_code_old', '!=', False)]}" widget='qrcode_widget'/>
|
||||||
<field name="rfid_code_old" readonly="1" attrs="{'invisible': [('rfid_code_old', '=', False)]}"/>
|
<field name="rfid_code_old" readonly="1" attrs="{'invisible': [('rfid_code_old', '=', False)]}"/>
|
||||||
|
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|||||||
Reference in New Issue
Block a user