diff --git a/app/admin/lists/beforehand_order_cart_info/BeforehandOrderCartInfoLists.php b/app/admin/lists/beforehand_order_cart_info/BeforehandOrderCartInfoLists.php index 9f9afe3cb..e190a791f 100644 --- a/app/admin/lists/beforehand_order_cart_info/BeforehandOrderCartInfoLists.php +++ b/app/admin/lists/beforehand_order_cart_info/BeforehandOrderCartInfoLists.php @@ -10,7 +10,9 @@ use app\common\model\purchase_product_offer\PurchaseProductOffer; use app\common\model\store_product\StoreProduct; use app\common\model\warehouse_product_storege\WarehouseProductStorege; use app\common\lists\ListsExcelInterface; +use app\common\model\beforehand_order\BeforehandOrder; use app\common\model\store_product_unit\StoreProductUnit; +use app\common\model\system_store\SystemStore; /** * 预订单购物详情表列表 @@ -101,7 +103,19 @@ class BeforehandOrderCartInfoLists extends BaseAdminDataLists implements ListsSe */ public function setFileName(): string { - return '预订单商品列表'; + $id=$this->request->get('bhoid'); + $find=BeforehandOrder::where('id',$id)->field('store_id,mark')->find(); + $name=''; + if($find['store_id']>0){ + $name=SystemStore::where('id',$find['store_id'])->value('name'); + } + if($find['mark']!=''){ + $originalString = $find['mark']; + $length = 15; // 截断长度 + $mark = substr($originalString, 0, $length); + $name.='-'.$mark; + } + return $name; }