getOwners(); $user=Auth::user()['name']; return view('store.receivingDashboard.receivingTableList.index', compact('owners','user')); } //待上架列表 public function stayPutawayList(Request $request) { $owners = $this->getOwners(); $workGroups = UserWorkgroup::query()->get(); return view('store.receivingDashboard.stayPutawayList', compact('owners','workGroups')); } //时效进度 public function punctualityProgress(Request $request) { $owners = $this->getOwners(); $workGroups = UserWorkgroup::query()->get(); return view('store.receivingDashboard.punctualityProgress.index', compact('owners', 'workGroups')); } /** * @return Builder[]|Collection */ public function getOwners() { $ownerIds = app('OwnerService')->getIdArr(); return Owner::query()->select(['id', 'name', 'code'])->whereIn('id', $ownerIds)->get(); } }