[AI Generated]: refactor(Comp): 移除配网超时机制、工号输入满8位自动查询用户

This commit is contained in:
17792275749
2026-04-10 11:42:34 +08:00
parent 8fd53c074d
commit 04740730da
3 changed files with 33 additions and 52 deletions
@@ -100,12 +100,13 @@ Component({
});
},
// 监听工号输入(员工模式)
// 监听工号输入(员工模式),输入满 8 位时自动查询
onWorkNoInput(e) {
this.setData({
workNo: e.detail.value,
userInfo: null
});
const value = e.detail.value;
this.setData({ workNo: value, userInfo: null });
if (value.trim().length === 8) {
this.searchUser();
}
},
// 监听身高输入(员工模式)