Commit 82df2014 by LJM

bug

parent 1cec3c42
Showing with 10 additions and 9 deletions
......@@ -769,22 +769,23 @@
* 清空数据
*/
clearInput(type) {
this.resetChange();
if (type == 'start') {
//清除起始时间
this.searchParams.create_time_begin = '';
if (this.searchParams.mobile_register_all_search || this.searchParams.stock_in_with_stock_in_items_inhouse || this.searchParams.tracking_no || this.searchParams.box_sn) {
this.getData();
}
} else if (type == 'end') {
//清除结束时间
this.searchParams.create_time_end = '';
} else {
this.resetChange();
//搜索条件清空
if (this.index == 0) {
this.searchParams.mobile_register_all_search = ''; //全量搜索
} else if (this.index == 1) {
this.searchParams.stock_in_with_stock_in_items_inhouse = ''; //入仓号
} else if (this.index == 2) {
this.searchParams.tracking_no = ''; //Fedex
if (this.searchParams.mobile_register_all_search || this.searchParams.stock_in_with_stock_in_items_inhouse || this.searchParams.tracking_no || this.searchParams.box_sn) {
this.getData();
}
} else {
// 清除搜索条件
const fields = ['mobile_register_all_search', 'stock_in_with_stock_in_items_inhouse', 'tracking_no', 'box_sn'];
this.searchParams[fields[this.index]] = '';
this.input_flag = false;
this.clearInputAndFocus(); //再次获取焦点
}
......
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