切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
刘朕
6 years ago
提交
6d45d8794cd7ea5bf93b3fd843c16c8b905c54b3
1 个父辈
72616b24
1 个管道 的构建
通过
耗费 1 秒
教室查看订单筛选修改
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
21 行增加
和
10 行删除
app/portal/controller/OrderSalesmanController.php
public/themes/simpleboot3/portal/order_salesman/get_all.html
app/portal/controller/OrderSalesmanController.php
查看文件 @
6d45d87
...
...
@@ -20,6 +20,7 @@ use think\Session;
class
OrderSalesmanController
extends
WeChatBaseController
{
protected
$user_id
;
protected
$my_user
;
protected
$status
;
protected
$pid
;
protected
$beforeActionList
=
[
...
...
@@ -29,16 +30,16 @@ class OrderSalesmanController extends WeChatBaseController
protected
function
check
()
{
$user_id
=
cmf_get_current_user_id
();
$this
->
user_id
=
$user_id
;
$my_user
=
Db
::
name
(
'my_user'
)
->
where
([
'uid'
=>
$user_id
])
->
find
();
if
(
empty
(
$my_user
)){
$this
->
my_user
=
Db
::
name
(
'my_user'
)
->
where
([
'uid'
=>
$user_id
])
->
find
();
if
(
empty
(
$this
->
my_user
)){
$this
->
error
(
'查无此人'
,
''
,
''
,
''
);
}
$this
->
status
=
$my_user
[
'status'
];
$this
->
pid
=
$my_user
[
'id'
];
if
(
$my_user
[
'status'
]
!=
2
&&
$my_user
[
'status'
]
!=
3
){
$this
->
status
=
$this
->
my_user
[
'status'
];
$this
->
pid
=
$this
->
my_user
[
'id'
];
if
(
$this
->
my_user
[
'status'
]
!=
2
&&
$this
->
my_user
[
'status'
]
!=
3
){
$this
->
error
(
'您还没有权限查看'
,
''
,
''
,
''
);
}
$this
->
assign
(
'my_user'
,
$my_user
);
$this
->
assign
(
'my_user'
,
$
this
->
my_user
);
}
public
function
get_all
(){
$param
=
$this
->
request
->
param
();
...
...
@@ -78,7 +79,12 @@ class OrderSalesmanController extends WeChatBaseController
$goods_count
[
$key
][
'number_sum'
]
=
$number_sum
;
}
$this
->
assign
(
'goods_count'
,
$goods_count
);
$school
=
Db
::
name
(
'school'
)
->
where
(
'uid'
,
$user_id
)
->
order
(
'create_time desc'
)
->
select
()
->
toArray
();
// 身份为老师,获取上级业务员的id
$school_uid
=
$user_id
;
if
(
$this
->
my_user
[
'status'
]
==
3
)
{
$school_uid
=
Db
::
name
(
'my_user'
)
->
where
(
'id'
,
$this
->
my_user
[
'pid'
])
->
value
(
'uid'
);
}
$school
=
Db
::
name
(
'school'
)
->
where
(
'uid'
,
$school_uid
)
->
order
(
'create_time desc'
)
->
select
()
->
toArray
();
if
(
count
(
$school
)
!=
0
){
$schools
=
[];
foreach
(
$school
as
$key
=>
$val
){
...
...
@@ -133,7 +139,12 @@ class OrderSalesmanController extends WeChatBaseController
//
$where['is_courier']
= ['eq',1];
// }//
$user_id
=
$this->user_id
;
$where['salesman_uid']
= ['eq',
$user_id
];
// 身份为老师,获取上级业务员的id
$school_uid
=
$user_id
;
if(
$this->my_user
['status'] == 3) {
$school_uid
= Db::name('my_user')->where('id',
$this->my_user
['pid'])->value('uid');
}
$where['salesman_uid']
= ['eq',
$school_uid
];
$where['indent_type']
= ['eq',2];
$indentModel
= new IndentModel();
$data
=
$indentModel->selectData
(
$where
);
...
...
public/themes/simpleboot3/portal/order_salesman/get_all.html
查看文件 @
6d45d87
...
...
@@ -367,7 +367,7 @@
</div>
</div>-->
<if
condition=
"
$my_user['status'] eq 2
"
>
<if
condition=
"
in_array($my_user['status'],[2,3])
"
>
<div
class=
"log_three_select_one log_three_select_school2"
>
<div
class=
"log_three_select_title schools_word"
>
请选择学校
...
...
@@ -739,7 +739,7 @@
function
zujian
(
data_class_arr
)
{
(
function
(
$
,
doc
)
{
$
.
init
();
school_arr
=
"{$school}"
;
school_arr
=
{
$school
}
;
$
.
ready
(
function
()
{
schoolpicker
.
setData
(
school_arr
);
classpicker
.
setData
(
data_class_arr
);
...
...
请
注册
或
登录
后发表评论