Commit 236fd303 by LJM

add

parent ea36a7e0
Showing with 12 additions and 11 deletions
...@@ -536,17 +536,17 @@ ...@@ -536,17 +536,17 @@
if (result && !this.isRequestSent) { if (result && !this.isRequestSent) {
this.isRequestSent = true; // 设置标志,防止重复发送请求 this.isRequestSent = true; // 设置标志,防止重复发送请求
this.request(API.identifyQrCodeNumAndSn, 'POST', { data: result, type: code_type }, true).then(res => { this.request(API.identifyQrCodeNumAndSn, 'POST', { data: result, type: code_type }, true).then(res => {
this.isRequestSent = false; // 请求完成后重置标志
if (res.code === 0) { if (res.code === 0) {
this.searchParams.goods_name = res.data.model; //赋值检索出来的型号 this.searchParams.goods_name = res.data.model; //赋值检索出来的型号
this.resetChange(); //清空数据 this.resetChange(); //清空数据
setTimeout(() => { setTimeout(() => {
this.getData(); this.getData();
this.isRequestSent = false; // 请求完成后重置标志
}, 0) }, 0)
} else { } else {
uni.showToast({ uni.showToast({
title: '识别错误', title: res.msg,
icon: 'error' icon: 'none'
}); });
} }
}); });
...@@ -663,6 +663,7 @@ ...@@ -663,6 +663,7 @@
}); });
setTimeout(() => { setTimeout(() => {
this.resetChange(); this.resetChange();
this.resetSearchParams();
this.getData(); this.getData();
this.closeDrawer(); this.closeDrawer();
this.clearInputAndFocus(); //再次获取焦点 this.clearInputAndFocus(); //再次获取焦点
......
const API_BASE_USER = 'http://user.liexindev.net'; //用户系统 // const API_BASE_USER = 'http://user.liexindev.net'; //用户系统
const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统 // const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统
const API_BASE = 'http://wms.liexindev.net'; //WMS系统 // const API_BASE = 'http://wms.liexindev.net'; //WMS系统
const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统 // const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统
// const API_BASE_USER = 'https://user.ichunt.net'; //用户系统 const API_BASE_USER = 'https://user.ichunt.net'; //用户系统
// const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统 const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统
// const API_BASE = 'https://wms.ichunt.net'; //WMS系统 const API_BASE = 'https://wms.ichunt.net'; //WMS系统
// const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统 const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
const API = { const API = {
......
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