Commit 2027d8bc by LJM

js

parent a07a0d26
Showing with 10 additions and 8 deletions
......@@ -291,16 +291,18 @@ export default {
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 => {
if (res.code === 0) {
this.detail = res.data.list[0];
this.formParams.tally_qty = res.data.list[0].wait_tally_qty;
this.formParams.date_code = res.data.list[0].expect_date_code;
if (res.data.list.length > 0) {
this.detail = res.data.list[0];
this.formParams.tally_qty = res.data.list[0].wait_tally_qty;
this.formParams.date_code = res.data.list[0].expect_date_code;
if (res.data.list[0].mobile_default_img) {
this.image_list = res.data.list[0].mobile_default_img.split(',');
if (res.data.list[0].mobile_default_img) {
this.image_list = res.data.list[0].mobile_default_img.split(',');
}
uni.setNavigationBarTitle({
title: res.data.list[0].stock_in_sn + '-理货'
});
}
uni.setNavigationBarTitle({
title: res.data.list[0].stock_in_sn + '-理货'
});
} else {
uni.showToast({
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