处理价格按照订单下单价格展示
This commit is contained in:
parent
d4184391fb
commit
3f7d500347
@ -52,12 +52,13 @@ class OrderList extends BaseAdminDataLists implements ListsSearchInterface
|
||||
->select()
|
||||
->each(function ($item) {
|
||||
$item['goods_list'] = StoreOrderCartInfo::where('oid', $item['id'])
|
||||
->field('product_id,cart_num,verify_code,is_writeoff,writeoff_time,old_cart_id')->limit(3)->select()
|
||||
->field('product_id,cart_num,verify_code,is_writeoff,writeoff_time,old_cart_id,cart_info')->limit(3)->select()
|
||||
->each(function ($v) use ($item) {
|
||||
$find = StoreBranchProduct::where('product_id', $v['product_id'])->where('store_id', $item['store_id'])->withTrashed()->find();
|
||||
$v['store_name'] = $find['store_name'];
|
||||
$v['image'] = $find['image'];
|
||||
$v['price'] = $find['price'];
|
||||
// $v['price'] = $find['price'];
|
||||
$v['price'] = $v['cart_info']['price'];
|
||||
$v['unit_name'] = StoreProductUnit::where('id', $find['unit'])->value('name') ?? '';
|
||||
});
|
||||
$item['goods_count'] = count(explode(',', $item['cart_id']));
|
||||
|
Loading…
x
Reference in New Issue
Block a user