Commit 1308c07f by LJM

移动端--理货--操作优化

parent 799893c6
......@@ -273,6 +273,15 @@
},
onShow() {
that = this;
if (getApp().globalData.fromPage === "tallyReceiveOperate") {
// 从特定页面返回
that.searchParams.search_keyword = '';
// 重置全局变量或执行其他操作
getApp().globalData.fromPage = null;
this.resetSearchParams(); //重置参数
//再次获取焦点
this.clearInputAndFocus();
}
if (this.noexebshowFalg) {
this.resetChange();
this.getData();
......@@ -472,7 +481,11 @@
resetSearchParams() {
this.searchParams.mobile_wait_tally_all_search = '';
this.searchParams.stock_in_with_stock_in_items_inhouse = '';
this.searchParams.container_name = '';
this.searchParams.container_id = '';
this.searchParams.tracking_no = '';
this.searchParams.goods_name = '';
this.searchParams.code_type = '';
},
/**
* DigKey,Rochester,TME,Chip1stop供应商
......
......@@ -872,6 +872,8 @@
icon: 'success'
});
setTimeout(() => {
// 在进行导航之前设置全局变量
getApp().globalData.fromPage = "tallyReceiveOperate";
uni.navigateBack({
delta: 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