盘点明细bug

This commit is contained in:
蔡玲
2024-12-06 09:29:07 +08:00
parent aca9748717
commit 9d6b1eb11c
2 changed files with 9 additions and 7 deletions

View File

@@ -33,9 +33,9 @@
methods: { methods: {
handleFocus () { handleFocus () {
this.focusState = true this.focusState = true
setTimeout(() => { // setTimeout(() => {
uni.hideKeyboard() // uni.hideKeyboard()
}, 300) // }, 300)
}, },
handleBlur (e) { handleBlur (e) {
this.$emit('input', e.target.value) this.$emit('input', e.target.value)
@@ -51,6 +51,9 @@
this.$emit('input', e.target.value) this.$emit('input', e.target.value)
if (e.target.value.length) { if (e.target.value.length) {
this.$emit('handleChange', e.target.value) this.$emit('handleChange', e.target.value)
setTimeout(() => {
uni.hideKeyboard()
}, 300)
} }
} }
} }

View File

@@ -145,7 +145,6 @@
onLoad (option) { onLoad (option) {
this.checkCode = option.checkcode this.checkCode = option.checkcode
this.title = option.title this.title = option.title
// this._checkQueryDtl()
}, },
mounted () { mounted () {
this.$refs.scanChild.handleFocus() this.$refs.scanChild.handleFocus()
@@ -157,7 +156,7 @@
}) })
}, },
handleChange (e) { handleChange (e) {
this._checkQueryDtl(e) this._checkQueryDtl(this.checkCode, e)
}, },
toRemark (e) { toRemark (e) {
this.val0 = e.remark this.val0 = e.remark
@@ -182,8 +181,8 @@
this.checkArr = this.dataList.filter(i => { return i.checked === true }) this.checkArr = this.dataList.filter(i => { return i.checked === true })
}, },
/** 初始化查询 */ /** 初始化查询 */
async _checkQueryDtl () { async _checkQueryDtl (code, e) {
let res = await checkQueryDtl(this.checkCode, this.val1) let res = await checkQueryDtl(code, e)
this.val2 = res.check_num this.val2 = res.check_num
this.val3 = res.uncheck_num this.val3 = res.uncheck_num
res.data.map(el => { res.data.map(el => {