调整订单配合售后添加字段
parent
71ed5fd889
commit
5223870d26
|
|
@ -24,6 +24,7 @@ class AfterSaleResource extends JsonResource
|
||||||
'sell_price' => bcdiv($this->orderProduct->total_amount, $this->orderProduct->quantity * 100, 2),
|
'sell_price' => bcdiv($this->orderProduct->total_amount, $this->orderProduct->quantity * 100, 2),
|
||||||
'num'=> $this->num,
|
'num'=> $this->num,
|
||||||
'is_gift' => $this->orderProduct->isGift(),
|
'is_gift' => $this->orderProduct->isGift(),
|
||||||
|
'total_amount' => $this->orderProduct->total_amount,
|
||||||
],
|
],
|
||||||
'state' => $this->after_sale_state,
|
'state' => $this->after_sale_state,
|
||||||
'type' => $this->type,
|
'type' => $this->type,
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ class OrderProductResource extends JsonResource
|
||||||
'specs' => array_values((array) $this->specs),
|
'specs' => array_values((array) $this->specs),
|
||||||
'sell_price' => $this->sell_price_format,
|
'sell_price' => $this->sell_price_format,
|
||||||
'vip_price' => $this->vip_price_format,
|
'vip_price' => $this->vip_price_format,
|
||||||
|
'total_amount' => $this->total_amount,
|
||||||
'quantity' => $this->quantity,
|
'quantity' => $this->quantity,
|
||||||
'can_after_sale' => $this->can_after_sale,
|
'can_after_sale' => $this->can_after_sale,
|
||||||
'is_gift' => $this->isGift(),
|
'is_gift' => $this->isGift(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue