Commit 6014f250 by LJM

bug

parent eac9675a
......@@ -553,6 +553,15 @@ export default {
this.searchParams.stock_in_batch_sn = this.history_id.join(',');
this.getData((data, msg) => {
//回调data里数据,加是否选中交互
if (data.length > 0) {
this.is_batch_active = true;
const list = data;
list.forEach((item, index) => {
this.filterChange(index);
});
}
//如果后台有消息返回,就提示
if (msg) {
uni.showModal({
......@@ -578,14 +587,9 @@ export default {
}
});
return false;
}
//回调data里数据,加是否选中交互
if (data.length > 0) {
this.is_batch_active = true;
const list = data;
list.forEach((item, index) => {
this.filterChange(index);
} else {
uni.showToast({
icon: 'success'
});
}
......
......@@ -336,6 +336,15 @@ export default {
this.searchParams.search_keyword = this.history_id.join(',');
this.getData((data, msg) => {
//回调data里数据,加是否选中交互
if (data.length > 0) {
this.is_batch_active = true;
const list = data;
list.forEach((item, index) => {
this.filterChange(index);
});
}
//如果后台有消息返回,就提示
if (msg) {
uni.showModal({
......@@ -346,7 +355,6 @@ export default {
success: res => {
let index_history_id = this.history_id.indexOf(val);
this.history_id.splice(index_history_id, 1);
try {
//再次获取焦点
this.isFocus = false;
......@@ -361,14 +369,9 @@ export default {
}
});
return false;
}
//回调data里数据,加是否选中交互
if (data.length > 0) {
this.is_batch_active = true;
const list = data;
list.forEach((item, index) => {
this.filterChange(index);
} else {
uni.showToast({
icon: 'success'
});
}
......@@ -388,10 +391,12 @@ export default {
this.searchParams.search_keyword = val;
this.getData();
setTimeout(() => {
if (this.list.length == 1) {
uni.navigateTo({
url: '/pages/putaway/single?stock_in_batch_sn=' + this.list[0].stock_in_batch_sn + '&tally_id=' + this.list[0].tally_id
});
}, 1000);
}
}, 800);
}
} else if (type == 2) {
//全量搜索
......
......@@ -896,6 +896,15 @@ export default {
this.searchParams.stock_in_batch_sn = this.history_id.join(',');
this.getData((data, msg) => {
//回调data里数据,加是否选中交互
if (data.length > 0) {
this.is_batch_active = true;
const list = data;
list.forEach((item, index) => {
this.filterChange(index);
});
}
//如果后台有消息返回,就提示
if (msg) {
uni.showModal({
......@@ -921,14 +930,9 @@ export default {
}
});
return false;
}
//回调data里数据,加是否选中交互
if (data.length > 0) {
this.is_batch_active = true;
const list = data;
list.forEach((item, index) => {
this.filterChange(index);
} else {
uni.showToast({
icon: 'success'
});
}
......
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