diff --git a/app/api/lists/purchase_product_offer/PurchaseProductOfferListsTwo.php b/app/api/lists/purchase_product_offer/PurchaseProductOfferListsTwo.php index 3e9810f51..4c836530d 100644 --- a/app/api/lists/purchase_product_offer/PurchaseProductOfferListsTwo.php +++ b/app/api/lists/purchase_product_offer/PurchaseProductOfferListsTwo.php @@ -11,6 +11,7 @@ use app\common\model\store_product_unit\StoreProductUnit; use app\api\lists\BaseApiDataLists; use app\common\model\store_category\StoreCategory; use app\common\lists\ListsExcelInterface; +use app\common\model\beforehand_order\BeforehandOrder; use app\common\model\user\User; /** @@ -54,6 +55,7 @@ class PurchaseProductOfferListsTwo extends BaseApiDataLists implements ListsSear ->select()->each(function($item){ $find=StoreProduct::where('id',$item->product_id)->find(); $item->store_name=$find->store_name; + $item->order_id=BeforehandOrder::where('id',$item->order_id)->value('store_id'); $item->unit_name=StoreProductUnit::where('id',$item->unit)->value('name'); $item->category_name=StoreCategory::where('id',$find->top_cate_id)->value('name'); $item->buyer_name=DeliveryService::where('uid',$item->buyer_id)->value('nickname');