Commit 9ab5f6e0 by LJM

add

parent 80ed84f1
Showing with 4 additions and 1 deletions
...@@ -563,9 +563,11 @@ ...@@ -563,9 +563,11 @@
} else { } else {
uni.showToast({ uni.showToast({
title: '未识别到匹配的内容', title: '未识别到匹配的内容',
icon: 'error' icon: 'none'
}); });
} }
//匹配到内容才开始调接口
if (!result) {
this.request(API.identifyQrCodeNumAndSn, 'POST', { code_str: result, code_type: code_type }, true).then(res => { this.request(API.identifyQrCodeNumAndSn, 'POST', { code_str: result, code_type: code_type }, true).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.searchParams.goods_name = res.data.sn; //赋值检索出来的型号 this.searchParams.goods_name = res.data.sn; //赋值检索出来的型号
...@@ -577,6 +579,7 @@ ...@@ -577,6 +579,7 @@
}); });
} }
}); });
}
}, },
/** /**
* 获取列表数据 支持分页 * 获取列表数据 支持分页
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment