|
@@ -680,25 +680,21 @@ class BoxService extends Service
|
|
|
}
|
|
|
|
|
|
public function transportDetail($data){
|
|
|
- if(empty($data['order_no'])) return [false,'包装单号不能为空'];
|
|
|
-
|
|
|
- $return = [
|
|
|
- [
|
|
|
- 'product_no' => '',
|
|
|
- 'technology_material' => '',
|
|
|
- 'technology_name' => '',
|
|
|
- 'wood_name' => '',
|
|
|
- 'process_mark' => '',
|
|
|
- 'customer_no' => '',
|
|
|
- 'customer_name' => '',
|
|
|
- 'product_title' => '',
|
|
|
- 'product_size' => '',
|
|
|
- 'transport_no' => '',
|
|
|
- 'order_no' => '',
|
|
|
- 'num' => '',
|
|
|
- ]
|
|
|
- ];
|
|
|
- return [200,''];
|
|
|
+ if(empty($data['order_nos'])) return [false,'包装单号不能为空'];
|
|
|
+ $order_nos = $data['order_nos'];
|
|
|
+ $list = BoxDetail::wherein('order_no',$order_nos)->select('ext_1','ext_2','ext_3','ext_4','ext_5','ext_6','ext_7','ext_8','ext_9','num','order_no','shipment_order_no')->get()->toArray();
|
|
|
+ foreach ($list as &$v){
|
|
|
+ $v['product_no'] = $v['ext_1'];
|
|
|
+ $v['technology_material'] = $v['ext_2'];
|
|
|
+ $v['technology_name'] = $v['ext_3'];
|
|
|
+ $v['wood_name'] = $v['ext_4'];
|
|
|
+ $v['process_mark'] = $v['ext_5'];
|
|
|
+ $v['customer_no'] = $v['ext_6'];
|
|
|
+ $v['customer_name'] = $v['ext_7'];
|
|
|
+ $v['product_title'] = $v['ext_8'];
|
|
|
+ $v['product_size'] = $v['ext_9'];
|
|
|
+ }
|
|
|
+ return [200,$list];
|
|
|
|
|
|
}
|
|
|
|