diff --git a/app/admin/controller/beforehand_order/BeforehandOrderController.php b/app/admin/controller/beforehand_order/BeforehandOrderController.php
index 70822a825..9799a50dd 100644
--- a/app/admin/controller/beforehand_order/BeforehandOrderController.php
+++ b/app/admin/controller/beforehand_order/BeforehandOrderController.php
@@ -239,7 +239,11 @@ class BeforehandOrderController extends BaseAdminController
     public function order_outbound()
     {
         $params = $this->request->post();
-        $file_path = BeforehandOrderLogic::OrderOutbound($params);
+        if(!empty($params['type']) && $params['type'] == 2){
+            $file_path = BeforehandOrderLogic::OrderOutbound2($params);
+        }else{
+            $file_path = BeforehandOrderLogic::OrderOutbound($params);
+        }
         return $this->success('导出成功', ['url' => $file_path]);
     }
     /**
diff --git a/app/admin/logic/beforehand_order/BeforehandOrderLogic.php b/app/admin/logic/beforehand_order/BeforehandOrderLogic.php
index 1a2c03045..3755bfd56 100644
--- a/app/admin/logic/beforehand_order/BeforehandOrderLogic.php
+++ b/app/admin/logic/beforehand_order/BeforehandOrderLogic.php
@@ -680,4 +680,36 @@ class BeforehandOrderLogic extends BaseLogic
         $file_path = $order_info->export($data, $order, $other_data);
         return $file_path;
     }
+
+        /**
+     * 导出供货出库
+     */
+    public static function OrderOutbound2($params)
+    {
+        $order_info = new OrderOutbound();
+        $order = BeforehandOrder::where('id', $params['id'])->find();
+        if ($order['outbound_id'] <= 0) {
+            throw new BusinessException('订单未出库,不能导出出库单');
+        }
+        $order['admin_name'] = Admin::where('id', $order['admin_id'])->value('name');
+        $data = WarehouseProduct::where('oid', $order['outbound_id'])->where('nums', '>', 0)->select();
+
+        $total_price=0;
+        foreach ($data as $k => &$v) {
+            $find = StoreProduct::where('id', $v['product_id'])->field('top_cate_id,store_name,unit')->withTrashed()->find();
+            $v['unit_name'] = StoreProductUnit::where('id', $find['unit'])->value('name');
+            $v['store_name'] = $find['store_name'];
+            $v['total_price']=bcmul($v['purchase'],$v['nums'],2);
+            $v['price']=$v['purchase'];
+            $total_price=bcadd($total_price,$v['total_price'],2);
+        }
+        $order['system_store_name'] = SystemStore::where('id', $order['store_id'])->value('name');
+        $other_data = $order['other_data'];
+        unset($order['other_data']);
+        $find = WarehouseOrder::where('id', $order['outbound_id'])->find();
+        $order['order_id'] = $find['code'];
+        $order['pay_price'] = $total_price;
+        $file_path = $order_info->export($data, $order, $other_data,2);
+        return $file_path;
+    }
 }
diff --git a/app/common/service/xlsx/OrderOutbound.php b/app/common/service/xlsx/OrderOutbound.php
index 3d2487be5..52cf93c8f 100644
--- a/app/common/service/xlsx/OrderOutbound.php
+++ b/app/common/service/xlsx/OrderOutbound.php
@@ -12,8 +12,15 @@ use PhpOffice\PhpSpreadsheet\Style\Border;
  */
 class OrderOutbound
 {
-    public function export($data,$order,$other_data)
+    public function export($data,$order,$other_data,$type=1)
     {
+        if($type==1){
+            $title='供 投 里 海 农 特 产 品 出 库 结 算 单';
+            $title2='供投里海农特产品出库结算单-';
+        }else{
+            $title='供 投 里 海 农 特 产 品 出 库 供 货 单';
+            $title2='供投里海农特产品出库供货单-';
+        }
         $spreadsheet = new Spreadsheet();
         $sheet = $spreadsheet->getActiveSheet();
         // 合并单元格A1到K1
@@ -25,7 +32,7 @@ class OrderOutbound
 
         $sheet->mergeCells('H3:I3');
 
-        $sheet->setCellValue('A1', '供 投 里 海 农 特 产 品 出 库 结 算 单');
+        $sheet->setCellValue('A1', $title);
         $sheet->setCellValue('A2', '姓名:');
         $sheet->setCellValue('B2', $other_data->nickname??'');
         $sheet->getColumnDimension('B')->setWidth(16);
@@ -134,7 +141,7 @@ class OrderOutbound
         // 保存文件到 public 下
 
         $writer = new Xlsx($spreadsheet);
-        $url =  '/export/' . date('Y-m') . '/' .'供投里海农特产品出库结算单-'.date('Y-m-d H:i') . '.xlsx';
+        $url =  '/export/' . date('Y-m') . '/' .$title2.date('Y-m-d H:i') . '.xlsx';
         $file_path = public_path() . $url;
         // 保存文件到 public 下
         $writer->save($file_path);