盘点明细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: {
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)
}
}
}

View File

@@ -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 => {