Commit 50f6ed15 by LJM

js

parent 2027d8bc
Showing with 5 additions and 1 deletions
...@@ -260,6 +260,7 @@ export default { ...@@ -260,6 +260,7 @@ export default {
} else if (this.index == 2) { } else if (this.index == 2) {
this.searchParams.stock_in_with_stock_in_items_inhouse = ''; this.searchParams.stock_in_with_stock_in_items_inhouse = '';
} }
this.stock_in_item_id = this.detail.stock_in_item_id;
this.getData(); this.getData();
}, },
/** /**
...@@ -272,6 +273,7 @@ export default { ...@@ -272,6 +273,7 @@ export default {
this.searchParams.stock_in_sn = ''; this.searchParams.stock_in_sn = '';
this.searchParams.stock_in_with_stock_in_items_inhouse = ''; this.searchParams.stock_in_with_stock_in_items_inhouse = '';
if (val) { if (val) {
this.stock_in_item_id = '';
if (type == 1) { if (type == 1) {
this.searchParams.tracking_no = val; this.searchParams.tracking_no = val;
} else if (type == 2) { } else if (type == 2) {
...@@ -281,6 +283,7 @@ export default { ...@@ -281,6 +283,7 @@ export default {
} }
this.input_flag = true; this.input_flag = true;
} else { } else {
this.stock_in_item_id = this.detail.stock_in_item_id;
this.input_flag = false; this.input_flag = false;
} }
this.getData(); this.getData();
...@@ -295,9 +298,10 @@ export default { ...@@ -295,9 +298,10 @@ export default {
this.detail = res.data.list[0]; this.detail = res.data.list[0];
this.formParams.tally_qty = res.data.list[0].wait_tally_qty; this.formParams.tally_qty = res.data.list[0].wait_tally_qty;
this.formParams.date_code = res.data.list[0].expect_date_code; this.formParams.date_code = res.data.list[0].expect_date_code;
if (res.data.list[0].mobile_default_img) { if (res.data.list[0].mobile_default_img) {
this.image_list = res.data.list[0].mobile_default_img.split(','); this.image_list = res.data.list[0].mobile_default_img.split(',');
} else {
this.image_list = [];
} }
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: res.data.list[0].stock_in_sn + '-理货' title: res.data.list[0].stock_in_sn + '-理货'
......
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