Commit 02c7974b by LJM

add

parent f974b102
Showing with 2 additions and 4 deletions
...@@ -307,7 +307,7 @@ ...@@ -307,7 +307,7 @@
* @param {Object} type 1箱号监听 2型号监听 3输入国家监听 * @param {Object} type 1箱号监听 2型号监听 3输入国家监听
*/ */
handleInput: debounce(function(event, type) { handleInput: debounce(function(event, type) {
var value = event.target.value; var value = event.target.value.trim();
if (type == 1) { if (type == 1) {
if (value) { if (value) {
this.getBoxSn(value); this.getBoxSn(value);
...@@ -467,9 +467,7 @@ ...@@ -467,9 +467,7 @@
this.isRequestSent = false; // 请求完成后重置标志 this.isRequestSent = false; // 请求完成后重置标志
if (res.code === 0) { if (res.code === 0) {
//如果后台搜索到型号则替换输入框的值 //如果后台搜索到型号则替换输入框的值
if (res.data.model) { this.keyword = res.data.model || res.data.model2; //兼容TME
this.keyword = res.data.model;
}
this.goods_type = res.data.model; //赋值检索出来的型号 this.goods_type = res.data.model; //赋值检索出来的型号
this.getTallyData(); this.getTallyData();
} else { } else {
......
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