Commit 6014f250 by LJM

bug

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