diff --git a/app/admin/lists/user_product_storage/UserProductStorageLists.php b/app/admin/lists/user_product_storage/UserProductStorageLists.php index fdac3935e..e95554246 100644 --- a/app/admin/lists/user_product_storage/UserProductStorageLists.php +++ b/app/admin/lists/user_product_storage/UserProductStorageLists.php @@ -7,6 +7,7 @@ use app\admin\lists\BaseAdminDataLists; use app\common\model\user_product_storage\UserProductStorage; use app\common\lists\ListsSearchInterface; use app\common\model\store_product\StoreProduct; +use app\common\model\system_store\SystemStore; use app\common\model\user\User; /** @@ -52,6 +53,12 @@ class UserProductStorageLists extends BaseAdminDataLists implements ListsSearchI $user=User::where('id',$item['uid'])->field('nickname,real_name')->find(); $item['nickname']=$user['real_name']?$user['real_name'].'|'.$item['uid']:$user['nickname'].'|'.$item['uid']; $item['store_name']=StoreProduct::where('id',$item['product_id'])->value('store_name'); + $item['system_store_name']=SystemStore::where('id',$item['store_id'])->value('name'); + if($item['status']==1){ + $item['status_name']='正常'; + }else{ + $item['status_name']='已出库完'; + } return $item; }) ->toArray();