Commit 474d5337 by LJM

bug

parent 4b355020
Showing with 5 additions and 12 deletions
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name" : "wms", "name" : "wms",
"appid" : "__UNI__655E80D", "appid" : "__UNI__655E80D",
"description" : "供应链仓储App", "description" : "供应链仓储App",
"versionName" : "2.2.4", "versionName" : "2.2.5",
"versionCode" : 100000000, "versionCode" : 100000000,
"transformPx" : false, "transformPx" : false,
/* 5+App特有相关 */ /* 5+App特有相关 */
......
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
input_flag: false, input_flag: false,
input_position: false, input_position: false,
page: 1, page: 1,
limit: 100, limit: 200,
index: 0, index: 0,
list: [], list: [],
info: {}, info: {},
...@@ -252,13 +252,6 @@ ...@@ -252,13 +252,6 @@
} }
}; };
}, },
onReachBottom() {
if (!this.hasMoreData) {
return;
}
this.page++;
this.getData();
},
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
console.log(e); console.log(e);
if (e.index == 0) { if (e.index == 0) {
...@@ -284,7 +277,6 @@ ...@@ -284,7 +277,6 @@
* 清空数据 * 清空数据
*/ */
clearInput(type) { clearInput(type) {
this.resetChange();
if (type == 1) { if (type == 1) {
//容器 //容器
this.input_flag = false; this.input_flag = false;
...@@ -293,6 +285,7 @@ ...@@ -293,6 +285,7 @@
//库位 //库位
this.input_position = false; this.input_position = false;
this.searchParams.position_code = ''; this.searchParams.position_code = '';
this.is_submit = true;
this.clearInputAndFocus(); //再次获取焦点 this.clearInputAndFocus(); //再次获取焦点
} }
this.getData(); this.getData();
...@@ -303,7 +296,6 @@ ...@@ -303,7 +296,6 @@
*/ */
handleInput: debounce(function(type, event) { handleInput: debounce(function(type, event) {
var val = event.target.value; var val = event.target.value;
this.resetChange();
if (val) { if (val) {
if (type == 1) { if (type == 1) {
this.searchParams.container_sn = val; this.searchParams.container_sn = val;
...@@ -396,7 +388,9 @@ ...@@ -396,7 +388,9 @@
icon: 'success' icon: 'success'
}); });
setTimeout(() => { setTimeout(() => {
this.resetChange();
this.getData(); this.getData();
this.clearInputAndFocus();
}, 2000); }, 2000);
} else { } else {
uni.showModal({ uni.showModal({
...@@ -411,7 +405,6 @@ ...@@ -411,7 +405,6 @@
* 重置 * 重置
*/ */
resetChange() { resetChange() {
this.filter_id = []; //清空选中状态
this.list = []; this.list = [];
this.page = 1; this.page = 1;
}, },
......
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