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
d6554ecf
authored
Nov 07, 2022
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
订单列表
parent
99f65a05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
app/Admin/Controllers/OrderController.php
app/Admin/Controllers/OrderController.php
View file @
d6554ecf
...
...
@@ -13,7 +13,8 @@ use Dcat\Admin\Layout\Content;
use
Dcat\Admin\Layout\Column
;
use
Dcat\Admin\Layout\Row
;
use
Dcat\Admin\Admin
;
use
App\Admin\Renderable\UserTable
;
use
Dcat\Admin\Models\Administrator
;
class
OrderController
extends
AdminController
...
...
@@ -95,8 +96,11 @@ 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
(
admin_trans
(
'order.options.status'
))
->
width
(
3
);
$filter
->
equal
(
'sales_id'
,
trans
(
'inquiry.fields.sales_name'
))
->
select
(
CmsUser
::
pluck
(
'name'
,
'userId'
)
->
toArray
())
->
width
(
3
);
$filter
->
equal
(
'status'
)
->
select
([
"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
);
});
});
}
...
...
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