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
14ceb079
authored
Nov 18, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
询价用户编码
parent
1bf66c33
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
10 deletions
app/Admin/Controllers/InquiryController.php
app/Admin/Service/InquiryService.php
resources/lang/en/inquiry.php
resources/lang/zh_CN/inquiry.php
app/Admin/Controllers/InquiryController.php
View file @
14ceb079
...
...
@@ -24,7 +24,7 @@ class InquiryController extends AdminController
*/
protected
function
grid
()
{
return
Grid
::
make
(
new
Inquiry
([
'user'
,
'sales_user'
]),
function
(
Grid
$grid
)
{
return
Grid
::
make
(
new
Inquiry
([
'user'
,
'sales_user'
]),
function
(
Grid
$grid
)
{
$grid
->
showFilter
();
$grid
->
disableActions
();
$grid
->
disableFilterButton
();
...
...
@@ -39,13 +39,14 @@ class InquiryController extends AdminController
})
->
datetime
()
->
width
(
3
);
$filter
->
startWith
(
'user.company_name'
)
->
width
(
3
);
$filter
->
startWith
(
'user.id'
)
->
width
(
3
);
$filter
->
equal
(
'inquiry_id'
)
->
width
(
3
);
//
$filter->equal('inquiry_id')->width(3);
$filter
->
startWith
(
'user.email'
)
->
width
(
3
);
$filter
->
startWith
(
'user.phone'
)
->
width
(
3
);
$filter
->
like
(
'inquiry_sn'
)
->
width
(
3
);
$filter
->
equal
(
'priority'
)
->
select
(
admin_trans
(
'inquiry.options.priority'
))
->
width
(
3
);
$filter
->
equal
(
'status'
)
->
select
(
admin_trans
(
'inquiry.options.status'
))
->
width
(
3
);
$filter
->
equal
(
'sales_id'
,
trans
(
'inquiry.fields.sales_name'
))
->
select
(
CmsUser
::
pluck
(
'name'
,
'userId'
)
->
toArray
())
->
width
(
3
);
$filter
->
equal
(
'sales_id'
,
trans
(
'inquiry.fields.sales_name'
))
->
select
(
CmsUser
::
pluck
(
'name'
,
'userId'
)
->
toArray
())
->
width
(
3
);
});
...
...
@@ -63,6 +64,9 @@ class InquiryController extends AdminController
return
new
Card
(
$detail
)
.
new
Card
(
$list
);
});
$grid
->
column
(
'task_type'
)
->
display
(
admin_trans
(
'inquiry.options.task_type.1'
));
$grid
->
column
(
'user.user_sn'
)
->
display
(
function
(
$value
)
{
return
'<a target="_blank" iframe-extends=true iframe-tab=true href="/admin/users/'
.
$this
->
user
->
id
.
'" style="color:#1224cc">'
.
$value
.
'</a>'
;
});
$grid
->
column
(
'user.phone'
)
->
copyable
();
$grid
->
column
(
'user.email'
)
->
copyable
();
$grid
->
column
(
'status'
)
->
using
(
admin_trans
(
'inquiry.options.status'
))
->
dot
([
...
...
app/Admin/Service/InquiryService.php
View file @
14ceb079
...
...
@@ -15,5 +15,4 @@ class InquiryService
{
return
Inquiry
::
batchUpdateSalesId
(
$salesId
,
$userIds
);
}
}
resources/lang/en/inquiry.php
View file @
14ceb079
...
...
@@ -28,9 +28,9 @@ return [
],
'options'
=>
[
'status'
=>
[
-
1
=>
'closed'
,
0
=>
'pending'
,
1
=>
'processed'
1
=>
'processed'
,
-
1
=>
'not_need_deal'
],
'priority'
=>
[
0
=>
'low'
,
...
...
resources/lang/zh_CN/inquiry.php
View file @
14ceb079
...
...
@@ -20,11 +20,12 @@ return [
'create_time'
=>
'添加时间'
,
'update_time'
=>
'修改时间'
,
'task_type'
=>
'任务类型'
,
'user'
=>
[
'user'
=>
[
'id'
=>
'客户编码'
,
'email'
=>
'邮箱'
,
'phone'
=>
'电话'
,
'company_name'
=>
'公司名称'
'company_name'
=>
'公司名称'
,
'user_sn'
=>
'用户编码'
,
],
'sales_user'
=>
[
'name'
=>
'业务员'
,
...
...
@@ -32,9 +33,9 @@ return [
],
'options'
=>
[
'status'
=>
[
-
1
=>
'已关闭'
,
0
=>
'待处理'
,
1
=>
'已处理'
1
=>
'已处理'
,
-
1
=>
'无需处理'
,
],
'priority'
=>
[
0
=>
'低'
,
...
...
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