报工优化

This commit is contained in:
2024-12-10 18:14:08 +08:00
parent e533e19435
commit 5e9927b1bf
7 changed files with 167 additions and 65 deletions

View File

@@ -26,16 +26,20 @@ export default {
},
emitValue() {
const _value = this.scanValue;
setTimeout(() => {
this.scanValue = '';
}, 100);
this.$nextTick(() => {
this.$emit('scanConfirm', _value);
this.getFocus();
});
setTimeout(() => {
this.scanValue = '';
this.getFocus();
}, 300);
},
inputConfirm() {
this.emitValue();
setTimeout(()=>{
this.emitValue();
},300)
},
// 重置焦点
getFocus() {
@@ -43,7 +47,7 @@ export default {
this.focus = false;
setTimeout(() => {
this.focus = true;
}, 200);
}, 300);
}
}
};