diff --git a/components/SearchBoxMx.vue b/components/SearchBoxMx.vue index e2ef607..27de72e 100644 --- a/components/SearchBoxMx.vue +++ b/components/SearchBoxMx.vue @@ -33,9 +33,9 @@ methods: { handleFocus () { this.focusState = true - setTimeout(() => { - uni.hideKeyboard() - }, 300) + // setTimeout(() => { + // uni.hideKeyboard() + // }, 300) }, handleBlur (e) { this.$emit('input', e.target.value) @@ -51,6 +51,9 @@ this.$emit('input', e.target.value) if (e.target.value.length) { this.$emit('handleChange', e.target.value) + setTimeout(() => { + uni.hideKeyboard() + }, 300) } } } diff --git a/pages/WarehouseManage/CheckDtl.vue b/pages/WarehouseManage/CheckDtl.vue index 0eb22ca..20034e8 100644 --- a/pages/WarehouseManage/CheckDtl.vue +++ b/pages/WarehouseManage/CheckDtl.vue @@ -145,7 +145,6 @@ onLoad (option) { this.checkCode = option.checkcode this.title = option.title - // this._checkQueryDtl() }, mounted () { this.$refs.scanChild.handleFocus() @@ -157,7 +156,7 @@ }) }, handleChange (e) { - this._checkQueryDtl(e) + this._checkQueryDtl(this.checkCode, e) }, toRemark (e) { this.val0 = e.remark @@ -182,8 +181,8 @@ this.checkArr = this.dataList.filter(i => { return i.checked === true }) }, /** 初始化查询 */ - async _checkQueryDtl () { - let res = await checkQueryDtl(this.checkCode, this.val1) + async _checkQueryDtl (code, e) { + let res = await checkQueryDtl(code, e) this.val2 = res.check_num this.val3 = res.uncheck_num res.data.map(el => {