Commit 2027d8bc by LJM

js

parent a07a0d26
Showing with 2 additions and 0 deletions
...@@ -291,6 +291,7 @@ export default { ...@@ -291,6 +291,7 @@ export default {
getData() { getData() {
this.request(API.waitTallyReceiveList, 'POST', { page: this.page, limit: this.limit, stock_in_item_id: this.stock_in_item_id, ...this.searchParams }, false).then(res => { this.request(API.waitTallyReceiveList, 'POST', { page: this.page, limit: this.limit, stock_in_item_id: this.stock_in_item_id, ...this.searchParams }, false).then(res => {
if (res.code === 0) { if (res.code === 0) {
if (res.data.list.length > 0) {
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;
...@@ -301,6 +302,7 @@ export default { ...@@ -301,6 +302,7 @@ export default {
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: res.data.list[0].stock_in_sn + '-理货' title: res.data.list[0].stock_in_sn + '-理货'
}); });
}
} else { } else {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
......
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