rma 多语言
This commit is contained in:
parent
7fa995ab87
commit
5fa4492c8e
|
|
@ -221,7 +221,7 @@
|
|||
labels: latest_month.period,
|
||||
datasets: [
|
||||
{
|
||||
label: ["订单数量"],
|
||||
label: ["{{ __('admin/order.order_quantity') }}"],
|
||||
fill: true,
|
||||
backgroundColor : orderGradient, // Put the gradient here as a fill color
|
||||
borderColor : "#4da4f9",
|
||||
|
|
@ -244,7 +244,7 @@
|
|||
// pointRadius: 3,
|
||||
},
|
||||
{
|
||||
label: ["订单金额"],
|
||||
label: ["{{ __('admin/order.order_amount') }}"],
|
||||
fill: true,
|
||||
backgroundColor : amountGradient,
|
||||
borderColor : "#20c997",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
@extends('admin::layouts.master')
|
||||
|
||||
@section('title', '售后申请列表')
|
||||
@section('title', __('admin/rma.index'))
|
||||
|
||||
@section('content')
|
||||
<div id="customer-app" class="card h-min-600">
|
||||
|
|
@ -9,15 +9,15 @@
|
|||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>客户姓名</th>
|
||||
<th>邮箱</th>
|
||||
<th>电话号码</th>
|
||||
<th>商品</th>
|
||||
<th>商品型号</th>
|
||||
<th>数量</th>
|
||||
<th>服务类型</th>
|
||||
<th>状态</th>
|
||||
<th>操作</th>
|
||||
<th>{{ __('admin/rma.customers_name') }}</th>
|
||||
<th>{{ __('common.email') }}</th>
|
||||
<th>{{ __('common.phone') }}</th>
|
||||
<th>{{ __('admin/builder.modules_product') }}</th>
|
||||
<th>{{ __('product.model') }}</th>
|
||||
<th>{{ __('admin/rma.quantity') }}</th>
|
||||
<th>{{ __('admin/rma.service_type') }}</th>
|
||||
<th>{{ __('common.status') }}</th>
|
||||
<th>{{ __('common.action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
<td>{{ $rma->quantity }}</td>
|
||||
<td>{{ $rma->type }}</td>
|
||||
<td>{{ $rma->status }}</td>
|
||||
<td><a href="{{ admin_route('rmas.show', [$rma->id]) }}" class="btn btn-outline-secondary btn-sm">查看</a>
|
||||
<td><a href="{{ admin_route('rmas.show', [$rma->id]) }}" class="btn btn-outline-secondary btn-sm">{{ __('common.view') }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
@extends('admin::layouts.master')
|
||||
|
||||
@section('title', '售后申请')
|
||||
@section('title', __('admin/rma.index'))
|
||||
|
||||
@section('content')
|
||||
<div class="card mb-4">
|
||||
<div class="card-header"><h6 class="card-title">售后申请详情</h6></div>
|
||||
<div class="card-header"><h6 class="card-title">{{ __('admin/rma.rma_details') }}</h6></div>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
|
|
@ -15,11 +15,11 @@
|
|||
<td>{{ $rma->id }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>客户姓名:</td>
|
||||
<td>{{ __('admin/rma.customers_name') }}:</td>
|
||||
<td>{{ $rma->name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>联系电话:</td>
|
||||
<td>{{ __('common.phone') }}:</td>
|
||||
<td>{{ $rma->telephone }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
@ -29,19 +29,19 @@
|
|||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>商品:</td>
|
||||
<td>{{ __('admin/builder.modules_product') }}:</td>
|
||||
<td>{{ $rma->product_name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>型号:</td>
|
||||
<td>{{ __('product.model') }}:</td>
|
||||
<td>{{ $rma->model }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>数量:</td>
|
||||
<td>{{ __('admin/rma.quantity') }}:</td>
|
||||
<td>{{ $rma->quantity }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>退货原因:</td>
|
||||
<td>{{ __('admin/rma.reasons_return') }}:</td>
|
||||
<td>{{ $rma->quantity }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
@ -52,14 +52,14 @@
|
|||
</div>
|
||||
|
||||
<div class="card mb-4">
|
||||
<div class="card-header"><h6 class="card-title">状态</h6></div>
|
||||
<div class="card-header"><h6 class="card-title">{{ __('common.status') }}</h6></div>
|
||||
<div class="card-body" id="app">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-form-item label="当前状态">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="140px">
|
||||
<el-form-item label="{{ __('admin/rma.current_state') }}">
|
||||
待支付
|
||||
</el-form-item>
|
||||
<el-form-item label="修改状态" prop="status">
|
||||
<el-select size="small" v-model="form.status" placeholder="请选择">
|
||||
<el-form-item label="{{ __('admin/rma.modify_status') }}" prop="status">
|
||||
<el-select size="small" v-model="form.status" placeholder="{{ __('common.please_choose') }}">
|
||||
<el-option
|
||||
v-for="item in statuses"
|
||||
:key="item.value"
|
||||
|
|
@ -72,18 +72,18 @@
|
|||
<el-switch v-model="form.notify">
|
||||
</el-switch>
|
||||
</el-form-item> --}}
|
||||
<el-form-item label="备注信息">
|
||||
<el-form-item label="{{ __('admin/rma.remarks') }}">
|
||||
<textarea class="form-control w-max-500" v-model="form.comment"></textarea>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="submitForm('form')">更新状态</el-button>
|
||||
<el-button type="primary" @click="submitForm('form')">{{ __('admin/rma.update_status') }}</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card mb-4">
|
||||
<div class="card-header"><h6 class="card-title">操作历史</h6></div>
|
||||
<div class="card-header"><h6 class="card-title">{{ __('admin/rma.operation_history') }}</h6></div>
|
||||
<div class="card-body">
|
||||
@foreach ($rma->histories as $history)
|
||||
@endforeach
|
||||
|
|
@ -124,7 +124,7 @@
|
|||
submitForm(form) {
|
||||
this.$refs[form].validate((valid) => {
|
||||
if (!valid) {
|
||||
layer.msg('请检查表单是否填写正确',()=>{});
|
||||
layer.msg('{{ __('common.error_form') }}',()=>{});
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@
|
|||
return [
|
||||
'list' => 'Order List',
|
||||
|
||||
'order_quantity' => 'Order Quantity',
|
||||
'order_amount' => 'Order Amount',
|
||||
'orders_index' => 'Index',
|
||||
'orders_create' => 'Create',
|
||||
'orders_show' => 'Detail',
|
||||
|
|
|
|||
|
|
@ -10,8 +10,21 @@
|
|||
*/
|
||||
|
||||
return [
|
||||
'index' => 'Rmas',
|
||||
|
||||
'rmas_index' => 'Index',
|
||||
'rmas_show' => 'Show',
|
||||
'rmas_update' => 'Update',
|
||||
'rmas_delete' => 'Delete'
|
||||
'rmas_delete' => 'Delete',
|
||||
|
||||
'customers_name' => 'Customers Name',
|
||||
'quantity' => 'Quantity',
|
||||
'service_type' => 'Service Type',
|
||||
'rma_details' => 'Rma Details',
|
||||
'reasons_return' => 'Reasons Return',
|
||||
'current_state' => 'Current State',
|
||||
'modify_status' => 'Modify Status',
|
||||
'remarks' => 'Remarks',
|
||||
'update_status' => 'Update Status',
|
||||
'operation_history' => 'Operation History',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@
|
|||
return [
|
||||
'list' => '订单列表',
|
||||
|
||||
'order_quantity' => '订单数量',
|
||||
'order_amount' => '订单金额',
|
||||
'orders_index' => '订单列表',
|
||||
'orders_create' => '创建订单',
|
||||
'orders_show' => '订单详情',
|
||||
|
|
|
|||
|
|
@ -10,8 +10,21 @@
|
|||
*/
|
||||
|
||||
return [
|
||||
'index' => '售后申请',
|
||||
|
||||
'rmas_index' => '售后服务列表',
|
||||
'rmas_show' => '售后服务详情',
|
||||
'rmas_update' => '更新售后服务',
|
||||
'rmas_delete' => '删除售后服务'
|
||||
'rmas_delete' => '删除售后服务',
|
||||
|
||||
'customers_name' => '客户姓名',
|
||||
'quantity' => '数量',
|
||||
'service_type' => '服务类型',
|
||||
'rma_details' => '售后申请详情',
|
||||
'reasons_return' => '退货原因',
|
||||
'current_state' => '当前状态',
|
||||
'modify_status' => '修改状态',
|
||||
'remarks' => '备注信息',
|
||||
'update_status' => '更新状态',
|
||||
'operation_history' => '操作历史',
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue