Commit 2f378093 by 孙龙

中英文翻译

parent 82d8f8f7
...@@ -26,13 +26,14 @@ class OrderAuditAction extends BatchAction ...@@ -26,13 +26,14 @@ class OrderAuditAction extends BatchAction
*/ */
public function title() public function title()
{ {
return '审核'; return '审核1';
} }
public function html() public function html()
{ {
$class = $this->getElementClass(); $class = $this->getElementClass();
return '<a style="cursor: pointer;" class="'.$class. ' btn btn-primary" href="javascript:void(0)">审核</a>'; $label = admin_trans("order.labels.审核");
return '<a style="cursor: pointer;" class="'.$class. ' btn btn-primary" href="javascript:void(0)">'.$label.'</a>';
} }
/** /**
...@@ -46,7 +47,8 @@ class OrderAuditAction extends BatchAction ...@@ -46,7 +47,8 @@ class OrderAuditAction extends BatchAction
// return '您确定要发送新的提醒消息吗?'; // return '您确定要发送新的提醒消息吗?';
// 显示标题和内容 // 显示标题和内容
return ['是否确认审核?']; $msg = admin_trans("order.labels.是否确认审核");
return [sprintf('%s?',$msg)];
} }
/** /**
...@@ -60,7 +62,7 @@ class OrderAuditAction extends BatchAction ...@@ -60,7 +62,7 @@ class OrderAuditAction extends BatchAction
// 你的代码逻辑 // 你的代码逻辑
$orderIdArr = $this->getKey(); $orderIdArr = $this->getKey();
OrderModel::auditOrder($orderIdArr); OrderModel::auditOrder($orderIdArr);
return $this->response()->success('审核成功')->refresh(); return $this->response()->success(admin_trans("order.return_msg.50000"))->refresh();
} }
/** /**
......
...@@ -32,7 +32,8 @@ class OrderReverseAuditAction extends BatchAction ...@@ -32,7 +32,8 @@ class OrderReverseAuditAction extends BatchAction
public function html() public function html()
{ {
$class = $this->getElementClass(); $class = $this->getElementClass();
return '<a style="cursor: pointer;" class="'.$class. ' btn btn-primary" href="javascript:void(0)">反审核</a>'; $label = admin_trans("order.labels.反审核");
return '<a style="cursor: pointer;" class="'.$class. ' btn btn-primary" href="javascript:void(0)">'.$label.'</a>';
} }
/** /**
...@@ -46,7 +47,8 @@ class OrderReverseAuditAction extends BatchAction ...@@ -46,7 +47,8 @@ class OrderReverseAuditAction extends BatchAction
// return '您确定要发送新的提醒消息吗?'; // return '您确定要发送新的提醒消息吗?';
// 显示标题和内容 // 显示标题和内容
return ['是否确认反审核?']; $msg = admin_trans("order.labels.是否确认反审核");
return [sprintf('%s?',$msg)];
} }
/** /**
...@@ -60,7 +62,8 @@ class OrderReverseAuditAction extends BatchAction ...@@ -60,7 +62,8 @@ class OrderReverseAuditAction extends BatchAction
// 你的代码逻辑 // 你的代码逻辑
$orderIdArr = $this->getKey(); $orderIdArr = $this->getKey();
OrderModel::reverseAuditOrder($orderIdArr); OrderModel::reverseAuditOrder($orderIdArr);
return $this->response()->success('反审核成功')->refresh();
return $this->response()->success(admin_trans("order.return_msg.50000"))->refresh();
} }
/** /**
......
...@@ -87,7 +87,7 @@ class OrderApiController extends BaseController ...@@ -87,7 +87,7 @@ class OrderApiController extends BaseController
$orderInfo["orderItemList"][$k]["return_price"] = $returnItems["return_price"] ?? ""; $orderInfo["orderItemList"][$k]["return_price"] = $returnItems["return_price"] ?? "";
$orderInfo["orderItemList"][$k]["return_amount"] = $returnItems["return_amount"] ?? ""; $orderInfo["orderItemList"][$k]["return_amount"] = $returnItems["return_amount"] ?? "";
$orderInfo["orderItemList"][$k]["type"] = $returnItems["type"] ?? ""; $orderInfo["orderItemList"][$k]["type"] = $returnItems["type"] ?? "";
$orderInfo["orderItemList"][$k]["type_cn"] = Arr::get(OrderReturnItems::$TYPE,$returnItems["type"] ?? 0,""); $orderInfo["orderItemList"][$k]["type_cn"] = Arr::get(admin_trans("order.options.order_return_type"),$returnItems["type"] ?? 0,"");
} }
$returnAmount = OrderService::getOrderReturnAmount($order_id); $returnAmount = OrderService::getOrderReturnAmount($order_id);
......
...@@ -75,8 +75,8 @@ class OrderController extends AdminController ...@@ -75,8 +75,8 @@ class OrderController extends AdminController
$grid->column('scmUser.name',admin_trans('scm-user.options.name')); $grid->column('scmUser.name',admin_trans('scm-user.options.name'));
$grid->column('order_amount')->help('订单详情里-结算信息的“运费”“支付手续费”“其他费用”为空时;应付金额一栏为“待确认”'); $grid->column('order_amount')->help('订单详情里-结算信息的“运费”“支付手续费”“其他费用”为空时;应付金额一栏为“待确认”');
$grid->column('order_pay_type')->using(admin_trans('order.options.order_pay_type'))->sortable(); $grid->column('order_pay_type')->using(admin_trans('order.options.order_pay_type'))->sortable();
$grid->column('fukuanfangshi',"付款方式")->display(function () { $grid->column('order_user_pay_type',admin_trans("order.field.order_user_pay_type"))->display(function () {
return "---不知道--"; return Arr::get(admin_trans("order.options_user_pay_type"),$this->order_user_pay_type,"");
}); });
$grid->column('sale_name'); $grid->column('sale_name');
$grid->column('order_remark')->limit(10); $grid->column('order_remark')->limit(10);
...@@ -107,9 +107,7 @@ class OrderController extends AdminController ...@@ -107,9 +107,7 @@ class OrderController extends AdminController
})->datetime()->width(3); })->datetime()->width(3);
$filter->startWith('company_name')->width(3); $filter->startWith('company_name')->width(3);
$filter->startWith('scmUser.user_sn',admin_trans('scm-user.fields.user_sn'))->width(3); $filter->startWith('scmUser.user_sn',admin_trans('scm-user.fields.user_sn'))->width(3);
$filter->equal('status')->select([ $filter->equal('status')->select(admin_trans("order.options.status_search"))->width(3);
"1"=>"待审核","2"=>"待付款","4"=>"待发货","8"=>"待收货","10"=>"交易成功","-1"=>"已取消"
])->width(3);
$filter->equal('sales_id',trans('inquiry.fields.sales_name'))->select(CmsUser::pluck('name', 'userId')->where("status",0)->toArray())->width(3); $filter->equal('sales_id',trans('inquiry.fields.sales_name'))->select(CmsUser::pluck('name', 'userId')->where("status",0)->toArray())->width(3);
}); });
......
<?php <?php
return [ return [
'labels' => [ 'labels' => [
'Order' => 'Order', 'Order' => 'Order',
'order' => 'Order', 'order' => 'Order',
'edit_status_handle' => '修改状态', 'edit_status_handle' => '修改状态',
'将该订单状态置为' => '将该订单状态置为', '将该订单状态置为' => '将该订单状态置为',
'审核' => '审核',
'反审核' => '反审核',
'是否确认审核' => '是否确认审核',
'审核成功' => '是否确认审核',
'是否确认反审核' => '是否确认审核',
], ],
'fields' => [ 'fields' => [
'order_sn' => '订单编号号', 'order_sn' => '订单编号号',
...@@ -22,117 +27,129 @@ return [ ...@@ -22,117 +27,129 @@ return [
'update_time' => '更新时间', 'update_time' => '更新时间',
'sale_id' => '业务员id', 'sale_id' => '业务员id',
'sale_name' => '业务员', 'sale_name' => '业务员',
'order_user_pay_type' => '付款方式',
], ],
"return_msg"=>[ "return_msg" => [
"50000"=>"操作成功", "50000" => "操作成功",
"50001"=>"只能修改不是待审核的订单状态", "50001" => "只能修改不是待审核的订单状态",
"50002"=>"取消订单失败", "50002" => "取消订单失败",
"50003"=>"修改订单失败", "50003" => "修改订单失败",
], ],
"validator"=>[ "validator" => [
'order_id_required' => '订单id必填', 'order_id_required' => '订单id必填',
'order_items_required' => '订单明细数据错误', 'order_items_required' => '订单明细数据错误',
'goods_price' => [ 'goods_price' => [
"gt"=>"商品单价不能小于0" "gt" => "商品单价不能小于0"
], ],
'goods_number' => [ 'goods_number' => [
"gt"=>"商品数量不能小于0" "gt" => "商品数量不能小于0"
], ],
'return_goods_price' => [ 'return_goods_price' => [
"gt"=>"售后单价不能小于0" "gt" => "售后单价不能小于0"
], ],
'return_goods_number' => [ 'return_goods_number' => [
"gt"=>"售后数量不能小于0" "gt" => "售后数量不能小于0"
], ],
'order_address_type' => [ 'order_address_type' => [
"required"=>"订单地址类型是必须的" "required" => "订单地址类型是必须的"
], ],
], ],
'options' => [ 'options' => [
"status"=>[ "status" => [
"-1"=>"已取消", "-1" => "已取消",
"-2"=>"审核不通过", "-2" => "审核不通过",
"1"=>"待审核", "1" => "待审核",
"2"=>"待付款", "2" => "待付款",
"3"=>"待付尾款", "3" => "待付尾款",
"4"=>"待发货", "4" => "待发货",
"7"=>"部分发货", "7" => "部分发货",
"8"=>"待收货", "8" => "待收货",
"10"=>" 交易成功", "10" => " 交易成功",
], ],
"order_pay_type"=>[ "status_search" => [
"1"=>"全款支付", "1" => "待审核", "2" => "待付款", "4" => "待发货", "8" => "待收货", "10" => "交易成功", "-1" => "已取消"
"2"=>"预付款支付",
"3"=>"账期支付",
"4"=>"预收自定义",
"5"=>"预收50%",
], ],
"edit_status"=>[ "order_pay_type" => [
"4"=>"待发货", "1" => "全款支付",
"8"=>"待收货", "2" => "预付款支付",
"10"=>" 交易成功", "3" => "账期支付",
"-1"=>"已取消", "4" => "预收自定义",
"5" => "预收50%",
], ],
"edit_status" => [
"4" => "待发货",
"8" => "待收货",
"10" => " 交易成功",
"-1" => "已取消",
],
"order_return_type" => [
"1" => "退货退款",
"2" => "仅退款",
],
"order_user_pay_type" => [
"1" => "Paypal",
"2" => "TT",
]
], ],
"order_page"=>[ "order_page" => [
"基本信息"=>"基本信息", "基本信息" => "基本信息",
"订单编号"=>"订单编号", "订单编号" => "订单编号",
"订单状态"=>"订单状态", "订单状态" => "订单状态",
"公司名称"=>"公司名称", "公司名称" => "公司名称",
"客户编码"=>"客户编码", "客户编码" => "客户编码",
"联系人"=>"联系人", "联系人" => "联系人",
"商品信息"=>"商品信息", "商品信息" => "商品信息",
"订单备注"=>"订单备注", "订单备注" => "订单备注",
"商品总金额"=>"商品总金额", "商品总金额" => "商品总金额",
"退款总金额"=>"退款总金额", "退款总金额" => "退款总金额",
"收货信息"=>"收货信息", "收货信息" => "收货信息",
"修改"=>"修改", "修改" => "修改",
"取消"=>"取消", "取消" => "取消",
"快递公司"=>"快递公司", "快递公司" => "快递公司",
"快递单号"=>"快递单号", "快递单号" => "快递单号",
"邮箱"=>"邮箱", "邮箱" => "邮箱",
"电话"=>"电话", "电话" => "电话",
"国家地区"=>"国家/地区", "国家地区" => "国家/地区",
"请选择国家"=>"请选择国家", "请选择国家" => "请选择国家",
"省州"=>"省/州", "省州" => "省/州",
"城市"=>"城市", "城市" => "城市",
"邮编"=>"邮编", "邮编" => "邮编",
"地址"=>"地址", "地址" => "地址",
"账单邮寄信息"=>"账单邮寄信息", "账单邮寄信息" => "账单邮寄信息",
"同收货地址"=>"同收货地址", "同收货地址" => "同收货地址",
"结算信息"=>"结算信息", "结算信息" => "结算信息",
"运费"=>"运费", "运费" => "运费",
"支付手续费"=>"支付手续费", "支付手续费" => "支付手续费",
"支付方式"=>"支付方式", "支付方式" => "支付方式",
"订单总金额"=>"订单总金额", "订单总金额" => "订单总金额",
], ],
"order_page_list"=>[ "order_page_list" => [
"numbers"=>"序号", "numbers" => "序号",
"goods_id"=>"SKUID", "goods_id" => "SKUID",
"goods_name"=>"商品型号", "goods_name" => "商品型号",
"standard_brand_name"=>"标准品牌", "standard_brand_name" => "标准品牌",
"supplier_name"=>"供应商", "supplier_name" => "供应商",
"raw_goods_sn"=>"供应商物料唯一编码", "raw_goods_sn" => "供应商物料唯一编码",
"raw_brand_name"=>"供应商物料品牌", "raw_brand_name" => "供应商物料品牌",
"purchase_name"=>"采购员", "purchase_name" => "采购员",
"currncy"=>"币种", "currncy" => "币种",
"goods_price"=>"单价", "goods_price" => "单价",
"goods_number"=>"数量", "goods_number" => "数量",
"total_amount"=>"小计", "total_amount" => "小计",
"delivery_time"=>"货期", "delivery_time" => "货期",
"batch"=>"批次", "batch" => "批次",
"remarks"=>"客户备注", "remarks" => "客户备注",
"type_cn"=>"售后类型", "type_cn" => "售后类型",
"return_num"=>"售后数量", "return_num" => "售后数量",
"return_amount"=>"售后金额", "return_amount" => "售后金额",
"return_price"=>"售后单价", "return_price" => "售后单价",
"all"=>"全部", "all" => "全部",
"refund_of_returned_goods"=>"退货退款", "refund_of_returned_goods" => "退货退款",
"refund_only"=>"仅退款", "refund_only" => "仅退款",
"modified_success"=>"修改成功", "modified_success" => "修改成功",
"modify"=>"修改", "modify" => "修改",
"save"=>"保存", "save" => "保存",
"operation_success"=>"操作成功", "operation_success" => "操作成功",
] ]
]; ];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment