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
db787562
authored
Nov 16, 2022
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
订单相关
parent
e298fda7
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
1 deletions
app/Admin/Actions/OrderReverseAuditAction.php
app/Admin/Controllers/OrderController.php
app/Models/Order.php
resources/lang/en/order.php
resources/lang/zh_CN/order.php
app/Admin/Actions/OrderReverseAuditAction.php
View file @
db787562
...
...
@@ -59,7 +59,7 @@ class OrderReverseAuditAction extends BatchAction
{
// 你的代码逻辑
$orderIdArr
=
$this
->
getKey
();
// OrderModel::a
uditOrder($orderIdArr);
OrderModel
::
reverseA
uditOrder
(
$orderIdArr
);
return
$this
->
response
()
->
success
(
'反审核成功'
)
->
refresh
();
}
...
...
app/Admin/Controllers/OrderController.php
View file @
db787562
...
...
@@ -4,6 +4,7 @@ namespace App\Admin\Controllers;
use
App\Admin\Actions\OrderAuditAction
;
use
App\Admin\Actions\OrderCancelAction
;
use
App\Admin\Actions\OrderEditSatusAction
;
use
App\Admin\Actions\OrderReverseAuditAction
;
use
App\Admin\Pages\OrderDetailPage
;
use
App\Models\Cms\CmsUser
;
...
...
@@ -113,6 +114,7 @@ class OrderController extends AdminController
$grid
->
tools
([
new
OrderAuditAction
(),
new
OrderReverseAuditAction
(),
new
OrderEditSatusAction
(),
]);
...
...
app/Models/Order.php
View file @
db787562
...
...
@@ -58,6 +58,11 @@ class Order extends Model
return
self
::
whereIn
(
"order_id"
,
$orderIds
)
->
where
(
"status"
,
self
::
$STATUS_WAIT_AUDIT
)
->
update
([
"status"
=>
self
::
$STATUS_WAIT_PAY
]);
}
//反审核订单
public
static
function
reverseAuditOrder
(
$orderIds
=
[]){
return
self
::
whereIn
(
"order_id"
,
$orderIds
)
->
where
(
"status"
,
self
::
$STATUS_FORAMT
[
"待付款"
])
->
update
([
"status"
=>
self
::
$STATUS_FORAMT
[
"待审核"
]]);
}
//获取订单数据
public
static
function
getOrderList
(
$orderId
=
0
){
...
...
resources/lang/en/order.php
View file @
db787562
...
...
@@ -3,6 +3,7 @@ return [
'labels'
=>
[
'Order'
=>
'Order'
,
'order'
=>
'Order'
,
'edit_status_handle'
=>
'修改状态'
,
],
'fields'
=>
[
'order_sn'
=>
'订单编号号'
,
...
...
@@ -40,5 +41,11 @@ return [
"4"
=>
"预收自定义"
,
"5"
=>
"预收50%"
,
],
"edit_status"
=>
[
"4"
=>
"待发货"
,
"8"
=>
"待收货"
,
"10"
=>
" 交易成功"
,
"-1"
=>
"已取消"
,
],
],
];
resources/lang/zh_CN/order.php
View file @
db787562
...
...
@@ -3,6 +3,8 @@ return [
'labels'
=>
[
'Order'
=>
'Order'
,
'order'
=>
'Order'
,
'edit_status_handle'
=>
'修改状态'
,
'将该订单状态置为'
=>
'将该订单状态置为'
,
],
'fields'
=>
[
'order_sn'
=>
'订单编号号'
,
...
...
@@ -40,5 +42,11 @@ return [
"4"
=>
"预收自定义"
,
"5"
=>
"预收50%"
,
],
"edit_status"
=>
[
"4"
=>
"待发货"
,
"8"
=>
"待收货"
,
"10"
=>
" 交易成功"
,
"-1"
=>
"已取消"
,
],
],
];
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