From 863e6ae8cf67e39590df35ce55ed09a30f18a535 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Thu, 9 Jan 2025 11:59:00 +0800 Subject: [PATCH] =?UTF-8?q?1/9=20=E7=A0=81=E6=A0=A1=E9=AA=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/collect/IocCollectOrderVerify.vue | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/views/collect/IocCollectOrderVerify.vue b/src/views/collect/IocCollectOrderVerify.vue index 0d41ad3c..8dec6baa 100644 --- a/src/views/collect/IocCollectOrderVerify.vue +++ b/src/views/collect/IocCollectOrderVerify.vue @@ -342,6 +342,7 @@ export default { query.codeList = filterCodeList this.replaceCode(query, 1) } + this.scanCode = "" } else { this.verifyFinish(1, res.data, res.message) this.checkCodeEndList.push(query.code) @@ -370,6 +371,7 @@ export default { this.codeQuery.selectType = 1 this.getResultDetailList() this.getInputFocus() + this.initData() this.$message.success('添加成功') } else { this.$message.error('添加失败') @@ -378,10 +380,12 @@ export default { }) } else { if (Array.isArray(res.data)) { - + this.scanCode = '' + this.getInputFocus() } else { this.scanCode = '' this.getInputFocus() + this.printCodeError(res.message) // this.verifyFinish(2, res.data, res.message) this.$message.error(res.message) } @@ -414,6 +418,7 @@ export default { this.getResultDetailList() this.getInputFocus() this.$message.success('添加成功') + this.initData() } else { this.$message.error('添加失败') } @@ -505,6 +510,11 @@ export default { this.errVisible = true } }, + async printCodeError(rsponses){ + this.successVisible = false + this.errVisible = true + this.errResult = rsponses + }, parseString(str) { // 1. 判断是否以 "MA" 开头 if (str.startsWith('MA')) { @@ -573,6 +583,11 @@ export default { this.scanCode = '' this.$refs.inputRef.focus() this.$refs.inputRef.select() + this.successVisible = true + this.errVisible = false + this.errResult = '' + this.result = '' + this.scanResultType = 'success' }, init() { this.scanCode = '' @@ -588,6 +603,7 @@ export default { this.errVisible = false this.errResult = '' this.result = '\n' + this.scanResultType = 'success' this.orderQuery = { page: 1, limit: 10,