Commit 4445cdd2 by LJM

优化箱信息同步问题

parent b833b6b5
Showing with 14 additions and 9 deletions
......@@ -1003,21 +1003,26 @@
* 获取箱信息
*/
getPackList() {
this.request(API.getPackList, 'POST', { stock_out_id: this.searchParams.stock_out_id }, false).then(res => {
this.request(API.getPackList, 'POST', { stock_out_id: this.searchParams.stock_out_id }, true).then(res => {
if (res.code === 0) {
if (this.company_id == 1 || this.company_id == 3) {
//猎芯和华云
this.packList = res.data.list;
} else if (this.company_id == 2) {
//深茂
if (res.data.custome_box_info.select_box_type == 1) {
//深贸电默认按复核数据
this.custome_box_info_index = 0;
} else if (res.data.custome_box_info.select_box_type == 2) {
//猎芯科技,华云数智默认手动填写
this.custome_box_info_index = 1;
} else {
//默认是手动填写
this.custome_box_info_index = 1;
this.setCustomBoxInfoParams.total_box_num = res.data.custome_box_info.total_box_num; //更新后台总箱数
this.setCustomBoxInfoParams.total_weight = res.data.custome_box_info.total_weight; //更新后台总重量
}
//同步信息字段
this.packList = res.data.list; //打包箱信息
this.setCustomBoxInfoParams.total_box_num = res.data.custome_box_info.total_box_num; //更新后台总箱数
this.setCustomBoxInfoParams.total_weight = res.data.custome_box_info.total_weight; //更新后台总重量
} else {
uni.showToast({
title: res.msg,
icon: 'error'
icon: 'none'
});
}
});
......
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