This commit is contained in:
parent
e005981fb7
commit
4e39972676
|
|
@ -35,7 +35,6 @@ class RmaDetail extends JsonResource
|
|||
'product_name' => $this->product_name,
|
||||
'name' => $this->name,
|
||||
'sku' => $this->sku,
|
||||
'model' => $this->model,
|
||||
'reason' => $this->reason->name ?? '',
|
||||
'type_text' => $this->type_text,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -141,22 +141,22 @@ class RmaRepo
|
|||
public static function getStatuses(): array
|
||||
{
|
||||
return [
|
||||
'pending' => '待处理',
|
||||
'rejected' => '已拒绝',
|
||||
'approved' => '已批准(待顾客寄回商品)',
|
||||
'shipped' => '已发货(寄回商品)',
|
||||
'completed' => '已完成'
|
||||
'pending' => trans('rma.status_pending'),
|
||||
'rejected' => trans('rma.status_rejected'),
|
||||
'approved' => trans('rma.status_approved'),
|
||||
'shipped' => trans('rma.status_shipped'),
|
||||
'completed' => trans('rma.status_completed')
|
||||
];
|
||||
}
|
||||
|
||||
public static function getTypes(): array
|
||||
{
|
||||
return [
|
||||
'return' => '退货',
|
||||
'exchange' => '换货',
|
||||
'repair' => '维修',
|
||||
'reissue' => '补发商品',
|
||||
'refund' => '仅退款'
|
||||
'return' => trans('rma.type_return'),
|
||||
'exchange' => trans('rma.type_exchange'),
|
||||
'repair' => trans('rma.type_repair'),
|
||||
'reissue' => trans('rma.type_reissue'),
|
||||
'refund' => trans('rma.type_refund')
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<th>{{ __('common.email') }}</th>
|
||||
<th>{{ __('common.phone') }}</th>
|
||||
<th>{{ __('admin/builder.modules_product') }}</th>
|
||||
<th>{{ __('product.model') }}</th>
|
||||
<th>{{ __('product.sku') }}</th>
|
||||
<th>{{ __('admin/rma.quantity') }}</th>
|
||||
<th>{{ __('admin/rma.service_type') }}</th>
|
||||
<th>{{ __('common.status') }}</th>
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
<td>{{ $rma['email'] }}</td>
|
||||
<td>{{ $rma['telephone'] }}</td>
|
||||
<td>{{ $rma['product_name'] }}</td>
|
||||
<td>{{ $rma['model'] }}</td>
|
||||
<td>{{ $rma['sku'] }}</td>
|
||||
<td>{{ $rma['quantity'] }}</td>
|
||||
<td>{{ $rma['type'] }}</td>
|
||||
<td>{{ $rma['status'] }}</td>
|
||||
|
|
|
|||
|
|
@ -17,4 +17,15 @@ return [
|
|||
'opened' => 'Opened',
|
||||
'rma_reason_id' => 'Reason ID',
|
||||
'type' => 'Type',
|
||||
|
||||
'status_pending' => 'Pending',
|
||||
'status_rejected' => 'Rejected',
|
||||
'status_approved' => 'Approved',
|
||||
'status_shipped' => 'Shipped',
|
||||
'status_completed' => 'Completed',
|
||||
'type_return' => 'Return',
|
||||
'type_exchange' => 'Exchange',
|
||||
'type_repair' => 'Repair',
|
||||
'type_reissue' => 'Reissue',
|
||||
'type_refund' => 'Refund'
|
||||
];
|
||||
|
|
|
|||
|
|
@ -17,4 +17,15 @@ return [
|
|||
'opened' => '已拆包装',
|
||||
'rma_reason_id' => '退换货原因',
|
||||
'type' => '售后服务类型',
|
||||
|
||||
'status_pending' => '待处理',
|
||||
'status_rejected' => '已拒绝',
|
||||
'status_approved' => '已批准(待顾客寄回商品)',
|
||||
'status_shipped' => '已发货(寄回商品)',
|
||||
'status_completed' => '已完成',
|
||||
'type_return' => '退货',
|
||||
'type_exchange' => '换货',
|
||||
'type_repair' => '维修',
|
||||
'type_reissue' => '补发商品',
|
||||
'type_refund' => '仅退款'
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue