修改收银台预约记录
This commit is contained in:
parent
daf05f3314
commit
4de5aef537
@ -29,7 +29,7 @@ class UserProductStorageLogLists extends BaseAdminDataLists implements ListsSear
|
|||||||
public function setSearch(): array
|
public function setSearch(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'=' => ['uid', 'oid', 'product_id','status'],
|
'=' => ['uid', 'oid', 'product_id','status','store_id'],
|
||||||
'between_time' => ['create_time'],
|
'between_time' => ['create_time'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@ -51,11 +51,18 @@ class UserProductStorageLogLists extends BaseAdminDataLists implements ListsSear
|
|||||||
->limit($this->limitOffset, $this->limitLength)
|
->limit($this->limitOffset, $this->limitLength)
|
||||||
->order(['id' => 'desc'])
|
->order(['id' => 'desc'])
|
||||||
->select()->each(function($item){
|
->select()->each(function($item){
|
||||||
$user=User::where('id',$item['uid'])->field('nickname,real_name')->find();
|
$user=User::where('id',$item['uid'])->field('nickname,real_name,mobile')->find();
|
||||||
$item['system_store_name']=SystemStore::where('id',$item['store_id'])->value('name');
|
$item['system_store_name']=SystemStore::where('id',$item['store_id'])->value('name');
|
||||||
$item['nickname']=$user['real_name']?$user['real_name'].'|'.$item['uid']:$user['nickname'].'|'.$item['uid'];
|
$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['mobile'] = $user['mobile']??'';
|
||||||
$item['verify_code'] = StoreOrder::where('id',$item['oid'])->withTrashed()->value('verify_code');
|
$goods = StoreProduct::where('id',$item['product_id'])->field('store_name,image,store_info,price')->withTrashed()->find();
|
||||||
|
$item['store_name']=$goods['store_name']??'';
|
||||||
|
$item['store_name_img']=$goods['image']??'';
|
||||||
|
$item['store_info']=$goods['store_info']??'';//规格
|
||||||
|
$item['price']=$goods['price']??'';
|
||||||
|
$order = StoreOrder::where('id',$item['oid'])->withTrashed()->field('order_id,verify_code')->find();
|
||||||
|
$item['verify_code'] = $order['verify_code']??'';
|
||||||
|
$item['order_id'] = $order['order_id']??'';
|
||||||
if($item['financial_pm']==1){
|
if($item['financial_pm']==1){
|
||||||
$item['financial_pm']='增加';
|
$item['financial_pm']='增加';
|
||||||
}else{
|
}else{
|
||||||
|
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace app\store\controller\user_product_storage_log;
|
||||||
|
|
||||||
|
|
||||||
|
use app\admin\lists\user_product_storage_log\UserProductStorageLogLists;
|
||||||
|
use app\store\controller\BaseAdminController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户商品储存控制器
|
||||||
|
* Class UserProductStorageLogController
|
||||||
|
* @package app\admin\controller\user_product_storage
|
||||||
|
*/
|
||||||
|
class UserProductStorageLogController extends BaseAdminController
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @notes 获取用户商品储存列表
|
||||||
|
* @return
|
||||||
|
* @author admin
|
||||||
|
* @date 2024/06/28 11:05
|
||||||
|
*/
|
||||||
|
public function lists()
|
||||||
|
{
|
||||||
|
return $this->dataLists(new UserProductStorageLogLists());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user