Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
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
d9f9b8da
authored
Jun 10, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
推送人员过滤
parent
e946a449
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
17 deletions
app/Http/Controllers/OrderController.php
resources/views/orderlist/content.blade.php
app/Http/Controllers/OrderController.php
View file @
d9f9b8da
...
...
@@ -1017,10 +1017,10 @@ Class OrderController extends Controller
$info
[
'online_sales_chief'
]
=
$perm
->
getUserByCondition
(
33
,
66
,
0
);
// 线上销售-33 线上销售总监-66
$info
[
'online_sales_mgr'
]
=
$perm
->
getDepartmentUser
(
33
,
63
);
// 线上销售-33 销售经理-63
$info
[
'online_sales_kefu_1'
]
=
$perm
->
getUserByCondition
(
34
,
''
,
0
);
// 线上一组
$info
[
'online_sales_kefu_2'
]
=
$perm
->
getUserByCondition
(
35
,
''
,
0
);
// 线上二组
$info
[
'online_sales_kefu_3'
]
=
$perm
->
getUserByCondition
(
36
,
''
,
0
);
// 线上三组
$info
[
'online_sales_kefu_4'
]
=
$perm
->
getUserByCondition
(
37
,
''
,
0
);
// 线上四组
$info
[
'online_sales_kefu_1'
]
=
$perm
->
getUserByCondition
(
34
,
62
,
0
);
// 线上一组销售
$info
[
'online_sales_kefu_2'
]
=
$perm
->
getUserByCondition
(
35
,
62
,
0
);
// 线上二组销售
$info
[
'online_sales_kefu_3'
]
=
$perm
->
getUserByCondition
(
36
,
62
,
0
);
// 线上三组销售
$info
[
'online_sales_kefu_4'
]
=
$perm
->
getUserByCondition
(
37
,
62
,
0
);
// 线上四组销售
$info
[
'offline_sales_chief'
]
=
$perm
->
getUserByCondition
(
40
,
90
,
0
);
// 线下销售-39 线下销售总监-90
$info
[
'offline_sales_all'
]
=
$perm
->
getDepartmentUser
(
40
,
62
);
// 线下销售各组人员
...
...
@@ -2101,10 +2101,7 @@ Class OrderController extends Controller
$send_mail_array
=
array_unique
(
$send_mail_array
);
if
(
empty
(
$send_mail_array
[
0
])){
echo
json_encode
([
'errcode'
=>-
1
,
'errmsg'
=>
'没有填写采购人员,请至少填写一个采购人员'
]);
exit
;
}
if
(
empty
(
$send_mail_array
[
0
]))
return
[
'errcode'
=>-
1
,
'errmsg'
=>
'没有填写采购人员,请至少填写一个采购人员'
];
$data
[
'toUser'
]
=
$send_mail_array
;
// 收件人
...
...
resources/views/orderlist/content.blade.php
View file @
d9f9b8da
...
...
@@ -255,7 +255,7 @@
<th
class=
"pl30"
>
业务员
</th>
@if ($username != 'vpadmin@ichunt.com')
<th
class=
"pl30"
>
订单来源
</th>
<
th
class=
"pl30"
>
同步状态
</th
>
<
!-- <th class="pl30">同步状态</th> --
>
<th
class=
"pl30"
>
收货人
</th>
@endif
<th
class=
"pl30"
>
下单时间
</th>
...
...
@@ -314,15 +314,15 @@
@if ($username != 'vpadmin@ichunt.com')
<td
class=
"show-list"
>
<?php
echo
App\Http\Controllers\getOrderSource
(
$v
[
'order_id'
],
$v
[
'order_type'
]);
?>
</td>
<td
class=
"show-list"
>
<
!-- <
td class="show-list">
<?php
if
(
in_array
(
$v
[
'status'
],
[
-
1
,
1
]))
{
echo
'不需同步'
;
}
else
{
echo
$v
[
'erp_order_id'
]
!=
''
&&
$v
[
'erp_order_id'
]
!=
'-'
?
'<span class="list-text-success"><b>已同步</b></span>'
:
'<span class="list-text-checking"><b>未同步</b></span>'
;
}
//
if (in_array($v['status'], [-1, 1])) {
//
echo '不需同步';
//
} else {
//
echo $v['erp_order_id'] != '' && $v['erp_order_id'] != '-' ? '<span class="list-text-success"><b>已同步</b></span>' : '<span class="list-text-checking"><b>未同步</b></span>';
//
}
?>
</td>
</td>
-->
<td
class=
"show-list"
>
<?php
echo
App\Http\Controllers\getOrderAddress
(
$v
[
'order_id'
]);
?>
</td>
@endif
...
...
@@ -344,7 +344,7 @@
@endif
@if (!empty($order_extend->erp_sn))
<a
class=
"btn btn-
primary
send_mail"
data-id=
"{{ $v['order_id'] }}"
>
发送邮件
</a>
<a
class=
"btn btn-
warning
send_mail"
data-id=
"{{ $v['order_id'] }}"
>
发送邮件
</a>
@endif
<a
class=
"btn btn-primary"
href=
"{{URL('details', ['order_id'=>$v['order_id']])}}"
target=
"_blank"
>
详情
</a>
...
...
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