|
|
@@ -220,15 +220,20 @@ class Deliver extends Backend
|
|
|
'large_num' => $lager_num,
|
|
|
'small_num' => $n,
|
|
|
'status' => 0,
|
|
|
- 'num' => $bachDetail['box_num'],
|
|
|
'bach_num' => $bachDetail['bach_num'],
|
|
|
- 'mater_type' => $mater_type,
|
|
|
'note' => '',
|
|
|
'user_id' => $userinfo['id'],
|
|
|
'create_time' => time(),
|
|
|
'file_dir' => $file_dir,
|
|
|
'company_id' => $userinfo['company'],
|
|
|
];
|
|
|
+ if ($bachDetail['box_num'] != 1){
|
|
|
+ $row['num'] = $bachDetail['box_num'];
|
|
|
+ $row['mater_type'] = 1;
|
|
|
+ }else{
|
|
|
+ $row['num'] = $bachDetail['s_weight'];
|
|
|
+ $row['mater_type'] = 2;
|
|
|
+ }
|
|
|
$res = $export->save($row);
|
|
|
if ($res === false){
|
|
|
$this->error('发货失败');
|
|
|
@@ -666,7 +671,7 @@ class Deliver extends Backend
|
|
|
$large_weight = $large_weight + $value['l_weight'];
|
|
|
}
|
|
|
$data[$k]['l_num'] = $large_num/10000;
|
|
|
- $data[$k]['l_weight'] = $large_weight/100;
|
|
|
+ $data[$k]['l_weight'] = $large_weight;
|
|
|
}
|
|
|
$good_list['address'] = $userinfo['company_address'];
|
|
|
$good_list['data'] = $data;
|