Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2f378093
authored
Nov 28, 2022
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
中英文翻译
parent
82d8f8f7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
255 additions
and
213 deletions
app/Admin/Actions/OrderAuditAction.php
app/Admin/Actions/OrderReverseAuditAction.php
app/Admin/Controllers/Api/OrderApiController.php
app/Admin/Controllers/OrderController.php
resources/lang/en/order.php
resources/lang/zh_CN/order.php
app/Admin/Actions/OrderAuditAction.php
View file @
2f378093
...
...
@@ -26,13 +26,14 @@ class OrderAuditAction extends BatchAction
*/
public
function
title
()
{
return
'审核'
;
return
'审核
1
'
;
}
public
function
html
()
{
$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
// return '您确定要发送新的提醒消息吗?';
// 显示标题和内容
return
[
'是否确认审核?'
];
$msg
=
admin_trans
(
"order.labels.是否确认审核"
);
return
[
sprintf
(
'%s?'
,
$msg
)];
}
/**
...
...
@@ -60,7 +62,7 @@ class OrderAuditAction extends BatchAction
// 你的代码逻辑
$orderIdArr
=
$this
->
getKey
();
OrderModel
::
auditOrder
(
$orderIdArr
);
return
$this
->
response
()
->
success
(
'审核成功'
)
->
refresh
();
return
$this
->
response
()
->
success
(
admin_trans
(
"order.return_msg.50000"
)
)
->
refresh
();
}
/**
...
...
app/Admin/Actions/OrderReverseAuditAction.php
View file @
2f378093
...
...
@@ -32,7 +32,8 @@ class OrderReverseAuditAction extends BatchAction
public
function
html
()
{
$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
// return '您确定要发送新的提醒消息吗?';
// 显示标题和内容
return
[
'是否确认反审核?'
];
$msg
=
admin_trans
(
"order.labels.是否确认反审核"
);
return
[
sprintf
(
'%s?'
,
$msg
)];
}
/**
...
...
@@ -60,7 +62,8 @@ class OrderReverseAuditAction extends BatchAction
// 你的代码逻辑
$orderIdArr
=
$this
->
getKey
();
OrderModel
::
reverseAuditOrder
(
$orderIdArr
);
return
$this
->
response
()
->
success
(
'反审核成功'
)
->
refresh
();
return
$this
->
response
()
->
success
(
admin_trans
(
"order.return_msg.50000"
))
->
refresh
();
}
/**
...
...
app/Admin/Controllers/Api/OrderApiController.php
View file @
2f378093
...
...
@@ -87,7 +87,7 @@ class OrderApiController extends BaseController
$orderInfo
[
"orderItemList"
][
$k
][
"return_price"
]
=
$returnItems
[
"return_price"
]
??
""
;
$orderInfo
[
"orderItemList"
][
$k
][
"return_amount"
]
=
$returnItems
[
"return_amount"
]
??
""
;
$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
);
...
...
app/Admin/Controllers/OrderController.php
View file @
2f378093
...
...
@@ -75,8 +75,8 @@ class OrderController extends AdminController
$grid
->
column
(
'scmUser.name'
,
admin_trans
(
'scm-user.options.name'
));
$grid
->
column
(
'order_amount'
)
->
help
(
'订单详情里-结算信息的“运费”“支付手续费”“其他费用”为空时;应付金额一栏为“待确认”'
);
$grid
->
column
(
'order_pay_type'
)
->
using
(
admin_trans
(
'order.options.order_pay_type'
))
->
sortable
();
$grid
->
column
(
'
fukuanfangshi'
,
"付款方式"
)
->
display
(
function
()
{
return
"---不知道--"
;
$grid
->
column
(
'
order_user_pay_type'
,
admin_trans
(
"order.field.order_user_pay_type"
)
)
->
display
(
function
()
{
return
Arr
::
get
(
admin_trans
(
"order.options_user_pay_type"
),
$this
->
order_user_pay_type
,
""
)
;
});
$grid
->
column
(
'sale_name'
);
$grid
->
column
(
'order_remark'
)
->
limit
(
10
);
...
...
@@ -107,9 +107,7 @@ class OrderController extends AdminController
})
->
datetime
()
->
width
(
3
);
$filter
->
startWith
(
'company_name'
)
->
width
(
3
);
$filter
->
startWith
(
'scmUser.user_sn'
,
admin_trans
(
'scm-user.fields.user_sn'
))
->
width
(
3
);
$filter
->
equal
(
'status'
)
->
select
([
"1"
=>
"待审核"
,
"2"
=>
"待付款"
,
"4"
=>
"待发货"
,
"8"
=>
"待收货"
,
"10"
=>
"交易成功"
,
"-1"
=>
"已取消"
])
->
width
(
3
);
$filter
->
equal
(
'status'
)
->
select
(
admin_trans
(
"order.options.status_search"
))
->
width
(
3
);
$filter
->
equal
(
'sales_id'
,
trans
(
'inquiry.fields.sales_name'
))
->
select
(
CmsUser
::
pluck
(
'name'
,
'userId'
)
->
where
(
"status"
,
0
)
->
toArray
())
->
width
(
3
);
});
...
...
resources/lang/en/order.php
View file @
2f378093
This diff is collapsed.
Click to expand it.
resources/lang/zh_CN/order.php
View file @
2f378093
<?php
<?php
return
[
'labels'
=>
[
'Order'
=>
'Order'
,
'order'
=>
'Order'
,
'edit_status_handle'
=>
'修改状态'
,
'将该订单状态置为'
=>
'将该订单状态置为'
,
'审核'
=>
'审核'
,
'反审核'
=>
'反审核'
,
'是否确认审核'
=>
'是否确认审核'
,
'审核成功'
=>
'是否确认审核'
,
'是否确认反审核'
=>
'是否确认审核'
,
],
'fields'
=>
[
'order_sn'
=>
'订单编号号'
,
...
...
@@ -22,117 +27,129 @@ return [
'update_time'
=>
'更新时间'
,
'sale_id'
=>
'业务员id'
,
'sale_name'
=>
'业务员'
,
'order_user_pay_type'
=>
'付款方式'
,
],
"return_msg"
=>
[
"50000"
=>
"操作成功"
,
"50001"
=>
"只能修改不是待审核的订单状态"
,
"50002"
=>
"取消订单失败"
,
"50003"
=>
"修改订单失败"
,
"return_msg"
=>
[
"50000"
=>
"操作成功"
,
"50001"
=>
"只能修改不是待审核的订单状态"
,
"50002"
=>
"取消订单失败"
,
"50003"
=>
"修改订单失败"
,
],
"validator"
=>
[
"validator"
=>
[
'order_id_required'
=>
'订单id必填'
,
'order_items_required'
=>
'订单明细数据错误'
,
'goods_price'
=>
[
"gt"
=>
"商品单价不能小于0"
"gt"
=>
"商品单价不能小于0"
],
'goods_number'
=>
[
"gt"
=>
"商品数量不能小于0"
"gt"
=>
"商品数量不能小于0"
],
'return_goods_price'
=>
[
"gt"
=>
"售后单价不能小于0"
"gt"
=>
"售后单价不能小于0"
],
'return_goods_number'
=>
[
"gt"
=>
"售后数量不能小于0"
"gt"
=>
"售后数量不能小于0"
],
'order_address_type'
=>
[
"required"
=>
"订单地址类型是必须的"
"required"
=>
"订单地址类型是必须的"
],
],
'options'
=>
[
"status"
=>
[
"-1"
=>
"已取消"
,
"-2"
=>
"审核不通过"
,
"1"
=>
"待审核"
,
"2"
=>
"待付款"
,
"3"
=>
"待付尾款"
,
"4"
=>
"待发货"
,
"7"
=>
"部分发货"
,
"8"
=>
"待收货"
,
"10"
=>
" 交易成功"
,
"status"
=>
[
"-1"
=>
"已取消"
,
"-2"
=>
"审核不通过"
,
"1"
=>
"待审核"
,
"2"
=>
"待付款"
,
"3"
=>
"待付尾款"
,
"4"
=>
"待发货"
,
"7"
=>
"部分发货"
,
"8"
=>
"待收货"
,
"10"
=>
" 交易成功"
,
],
"order_pay_type"
=>
[
"1"
=>
"全款支付"
,
"2"
=>
"预付款支付"
,
"3"
=>
"账期支付"
,
"4"
=>
"预收自定义"
,
"5"
=>
"预收50%"
,
"status_search"
=>
[
"1"
=>
"待审核"
,
"2"
=>
"待付款"
,
"4"
=>
"待发货"
,
"8"
=>
"待收货"
,
"10"
=>
"交易成功"
,
"-1"
=>
"已取消"
],
"edit_status"
=>
[
"4"
=>
"待发货"
,
"8"
=>
"待收货"
,
"10"
=>
" 交易成功"
,
"-1"
=>
"已取消"
,
"order_pay_type"
=>
[
"1"
=>
"全款支付"
,
"2"
=>
"预付款支付"
,
"3"
=>
"账期支付"
,
"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"
=>
[
"numbers"
=>
"序号"
,
"goods_id"
=>
"SKUID"
,
"goods_name"
=>
"商品型号"
,
"standard_brand_name"
=>
"标准品牌"
,
"supplier_name"
=>
"供应商"
,
"raw_goods_sn"
=>
"供应商物料唯一编码"
,
"raw_brand_name"
=>
"供应商物料品牌"
,
"purchase_name"
=>
"采购员"
,
"currncy"
=>
"币种"
,
"goods_price"
=>
"单价"
,
"goods_number"
=>
"数量"
,
"total_amount"
=>
"小计"
,
"delivery_time"
=>
"货期"
,
"batch"
=>
"批次"
,
"remarks"
=>
"客户备注"
,
"type_cn"
=>
"售后类型"
,
"return_num"
=>
"售后数量"
,
"return_amount"
=>
"售后金额"
,
"return_price"
=>
"售后单价"
,
"all"
=>
"全部"
,
"refund_of_returned_goods"
=>
"退货退款"
,
"refund_only"
=>
"仅退款"
,
"modified_success"
=>
"修改成功"
,
"modify"
=>
"修改"
,
"save"
=>
"保存"
,
"operation_success"
=>
"操作成功"
,
"order_page_list"
=>
[
"numbers"
=>
"序号"
,
"goods_id"
=>
"SKUID"
,
"goods_name"
=>
"商品型号"
,
"standard_brand_name"
=>
"标准品牌"
,
"supplier_name"
=>
"供应商"
,
"raw_goods_sn"
=>
"供应商物料唯一编码"
,
"raw_brand_name"
=>
"供应商物料品牌"
,
"purchase_name"
=>
"采购员"
,
"currncy"
=>
"币种"
,
"goods_price"
=>
"单价"
,
"goods_number"
=>
"数量"
,
"total_amount"
=>
"小计"
,
"delivery_time"
=>
"货期"
,
"batch"
=>
"批次"
,
"remarks"
=>
"客户备注"
,
"type_cn"
=>
"售后类型"
,
"return_num"
=>
"售后数量"
,
"return_amount"
=>
"售后金额"
,
"return_price"
=>
"售后单价"
,
"all"
=>
"全部"
,
"refund_of_returned_goods"
=>
"退货退款"
,
"refund_only"
=>
"仅退款"
,
"modified_success"
=>
"修改成功"
,
"modify"
=>
"修改"
,
"save"
=>
"保存"
,
"operation_success"
=>
"操作成功"
,
]
];
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment