白包盘点优化错误弹出框关闭后将光标重新定位到输入框
This commit is contained in:
parent
9d412e7053
commit
17fc5ebf12
@ -8,8 +8,9 @@
|
||||
<!-- 错误弹出框 -->
|
||||
<template>
|
||||
<view>
|
||||
<u-popup v-model="errorShow" mode="center" border-radius="14" length="80%" width="90%" :closeable = "true" class="error-content">
|
||||
<u-popup v-model="errorShow" mode="center" border-radius="14" length="80%" width="90%" class="error-content">
|
||||
<view>{{ errorMsg }}</view>
|
||||
<u-button @click="closeErrorDailog">关闭</u-button>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
@ -245,6 +246,12 @@ export default {
|
||||
me.errorMsg = msg;
|
||||
},
|
||||
|
||||
closeErrorDailog(){
|
||||
let me = this;
|
||||
me.errorShow = false;
|
||||
me.focusBatchNumberInputInput();
|
||||
},
|
||||
|
||||
// 光标定位到批次扫描的输入框事件
|
||||
focusBatchNumberInputInput() {
|
||||
this.formObj.batchNumber = '';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user