切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
刘朕
5 years ago
提交
0095f63e6e0076fab8f5d019fa7ce49b0afc941b
1 个父辈
c0e04ab0
1 个管道 的构建
通过
耗费 1 秒
后台业务员列表筛选优化
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
14 行增加
和
9 行删除
app/admin/controller/SalesmanorderController.php
public/themes/admin_simpleboot3/admin/salesmanorder/sale_order_list.html
app/admin/controller/SalesmanorderController.php
查看文件 @
0095f63
...
...
@@ -14,27 +14,32 @@ class SalesmanorderController extends AdminBaseController{
public
function
sale_order_list
(){
$param
=
$this
->
request
->
param
();
$where
=
[
'indent_type'
=>
2
'i
.i
ndent_type'
=>
2
];
if
(
!
empty
(
$param
[
'user_id'
])){
$where
[
'
u
id'
]
=
$param
[
'user_id'
];
$where
[
'
mu.
id'
]
=
$param
[
'user_id'
];
}
if
(
!
empty
(
$param
[
'keyword'
])){
$where
[
'
order_number|name|
phone'
]
=
[
'like'
,
'%'
.
trim
(
$param
[
'keyword'
])
.
'%'
];
$where
[
'
i.order_number|i.name|i.
phone'
]
=
[
'like'
,
'%'
.
trim
(
$param
[
'keyword'
])
.
'%'
];
}
if
(
!
empty
(
$param
[
'state'
])){
$where
[
'state'
]
=
$param
[
'state'
];
$where
[
'
i.
state'
]
=
$param
[
'state'
];
}
if
(
!
empty
(
$param
[
'uid'
])){
$where
[
'salesman_uid'
]
=
$param
[
'uid'
];
$where
[
'
i.
salesman_uid'
]
=
$param
[
'uid'
];
}
if
(
!
empty
(
$param
[
'school'
])){
$where
[
'school'
]
=
$param
[
'school'
];
$where
[
'
i.
school'
]
=
$param
[
'school'
];
}
if
(
!
empty
(
$param
[
'grade'
])){
$where
[
'grade'
]
=
$param
[
'grade'
];
$where
[
'
i.
grade'
]
=
$param
[
'grade'
];
}
$data
=
Db
::
name
(
'indent'
)
->
where
(
$where
)
->
order
(
'create_time'
,
'DESC'
)
->
paginate
(
12
);
$data
=
Db
::
name
(
'indent'
)
->
alias
(
'i'
)
->
field
(
'i.*,mu.id as muid'
)
->
join
(
'__MY_USER__ mu'
,
'i.uid = mu.uid'
)
->
where
(
$where
)
->
order
(
'i.create_time'
,
'DESC'
)
->
paginate
(
12
);
$data
->
appends
(
$param
);
$data_arr
=
$data
->
toArray
();
$money
=
0
;
...
...
public/themes/admin_simpleboot3/admin/salesmanorder/sale_order_list.html
查看文件 @
0095f63
...
...
@@ -77,7 +77,7 @@
<tr
class=
"tr{$vo.id}"
>
<td>
{$vo.id}
</td>
<td>
{$vo.order_number}
</td>
<td>
{$vo.uid}
</td>
<td>
{$vo.
m
uid}
</td>
<td>
{$vo.name}
</td>
<td>
{$vo.phone}
</td>
<td>
{$vo.region}
</td>
...
...
请
注册
或
登录
后发表评论