切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
anyv
6 years ago
提交
a985a24df9671957c0795299b172e5f6e2d03213
1 个父辈
12aa1285
1 个管道 的构建
通过
耗费 2 秒
5
变更
12
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
12 个修改的文件
包含
40 行增加
和
16 行删除
app/admin/controller/AuditController.php
app/admin/controller/GoodsController.php
app/admin/controller/OrderscourierController.php
app/admin/controller/PlatformordersController.php
app/admin/controller/SalesmanController.php
app/admin/controller/SalesmangoodsController.php
app/admin/controller/SalesmanorderController.php
app/admin/controller/SchoolController.php
app/admin/controller/UsersController.php
app/admin/controller/WithdrawalController.php
public/themes/admin_simpleboot3/admin/platformorders/plat_list.html
public/themes/admin_simpleboot3/admin/salesmanorder/sale_order_list.html
app/admin/controller/AuditController.php
查看文件 @
a985a24
...
...
@@ -23,7 +23,7 @@ class AuditController extends AdminBaseController{
if
(
!
empty
(
$_POST
[
'keyword'
])){
$where
[
'phone'
]
=
$_POST
[
'keyword'
];
}
$data
=
Db
::
name
(
'sale_audit'
)
->
where
(
$where
)
->
paginate
(
1
2
);
$data
=
Db
::
name
(
'sale_audit'
)
->
where
(
$where
)
->
paginate
(
1
000000
);
$data_arr
=
$data
->
toArray
();
foreach
(
$data_arr
[
'data'
]
as
$key
=>
$val
){
$data_user
=
Db
::
name
(
'user'
)
->
where
(
'id'
,
$val
[
'uid'
])
->
find
();
...
...
app/admin/controller/GoodsController.php
查看文件 @
a985a24
...
...
@@ -36,7 +36,7 @@ class GoodsController extends AdminBaseController{
}
$classif_data
=
Db
::
name
(
'classification'
)
->
select
();
$this
->
assign
(
'classif_data'
,
$classif_data
);
$data
=
Db
::
name
(
'goods'
)
->
where
(
$where
)
->
paginate
(
1
2
);
$data
=
Db
::
name
(
'goods'
)
->
where
(
$where
)
->
paginate
(
1
000000
);
$data1
=
$data
->
toArray
();
foreach
(
$data1
[
'data'
]
as
$key
=>
$val
){
$class_data
=
Db
::
name
(
'classification'
)
->
where
(
'id'
,
$val
[
'classify_id'
])
->
find
();
...
...
app/admin/controller/OrderscourierController.php
查看文件 @
a985a24
...
...
@@ -26,7 +26,7 @@ class OrderscourierController extends AdminBaseController{
if
(
!
empty
(
$_POST
[
'state'
])){
$where
[
'state'
]
=
$_POST
[
'state'
];
}
$data
=
Db
::
name
(
'indent'
)
->
where
(
$where
)
->
where
(
"state = 2 or state = 3 or state = 5"
)
->
paginate
(
1
2
);
$data
=
Db
::
name
(
'indent'
)
->
where
(
$where
)
->
where
(
"state = 2 or state = 3 or state = 5"
)
->
paginate
(
1
000000
);
}
else
{
$data
=
Db
::
name
(
'indent'
)
->
where
(
'indent_type'
,
'1'
)
->
where
(
"state = 2 or state = 3 or state = 5"
)
->
paginate
(
12
);
}
...
...
app/admin/controller/PlatformordersController.php
查看文件 @
a985a24
...
...
@@ -27,9 +27,21 @@ class PlatformordersController extends AdminBaseController{
if
(
!
empty
(
$_POST
[
'state'
])){
$where
[
'state'
]
=
$_POST
[
'state'
];
}
$data
=
Db
::
name
(
'indent'
)
->
where
(
$where
)
->
paginate
(
12
);
$data
=
Db
::
name
(
'indent'
)
->
where
(
$where
)
->
paginate
(
1000000
);
$data1
=
$data
->
toArray
();
if
(
count
(
$data1
[
'data'
])
!=
0
){
foreach
(
$data1
[
'data'
]
as
$key
=>
$val
){
$data1
[
'data'
][
$key
][
'dizhi'
]
=
Db
::
name
(
'address'
)
->
where
(
'id'
,
$val
[
'indent_address'
])
->
find
();
}
}
$this
->
assign
(
'data1'
,
$data1
[
'data'
]);
}
else
{
$data
=
Db
::
name
(
'indent'
)
->
where
(
'indent_type'
,
'1'
)
->
paginate
(
12
);
$data1
=
$data
->
toArray
();
foreach
(
$data1
[
'data'
]
as
$key
=>
$val
){
$data1
[
'data'
][
$key
][
'dizhi'
]
=
Db
::
name
(
'address'
)
->
where
(
'id'
,
$val
[
'indent_address'
])
->
find
();
}
$this
->
assign
(
'data1'
,
$data1
[
'data'
]);
}
$this
->
assign
(
'data'
,
$data
);
return
$this
->
fetch
();
...
...
app/admin/controller/SalesmanController.php
查看文件 @
a985a24
...
...
@@ -25,7 +25,7 @@ class SalesmanController extends AdminBaseController{
$keyword
=
$_POST
[
'keyword'
];
$where
[
'b.phone'
]
=
$keyword
;
}
$data
=
Db
::
name
(
'my_user'
)
->
alias
(
'a'
)
->
field
(
"a.uid,a.id,a.balance,a.audit_time,a.is_pro,b.phone"
)
->
join
(
'sale_audit b'
,
'a.uid = b.uid'
,
'LEFT'
)
->
where
(
$where
)
->
group
(
'a.id'
)
->
paginate
(
1
2
);
$data
=
Db
::
name
(
'my_user'
)
->
alias
(
'a'
)
->
field
(
"a.uid,a.id,a.balance,a.audit_time,a.is_pro,b.phone"
)
->
join
(
'sale_audit b'
,
'a.uid = b.uid'
,
'LEFT'
)
->
where
(
$where
)
->
group
(
'a.id'
)
->
paginate
(
1
000000
);
}
else
{
$data
=
Db
::
name
(
'my_user'
)
->
alias
(
'a'
)
->
field
(
"a.uid,a.id,a.balance,a.audit_time,a.is_pro,b.phone"
)
->
join
(
'sale_audit b'
,
'a.uid = b.uid'
,
'LEFT'
)
->
where
(
'a.status'
,
2
)
->
group
(
'a.id'
)
->
paginate
(
12
);
...
...
@@ -311,7 +311,7 @@ class SalesmanController extends AdminBaseController{
$where
[
'user_nickname'
]
=
[
'like'
,
"%
$keyword
%"
];
}
$this
->
assign
(
'salesman_id'
,
$_POST
[
'salesman_id'
]);
$data
=
Db
::
name
(
'my_user'
)
->
alias
(
'a'
)
->
field
(
'a.*,b.user_nickname'
)
->
join
(
'user b'
,
'a.uid = b.id'
,
'left'
)
->
where
(
$where
)
->
paginate
(
1
2
);
$data
=
Db
::
name
(
'my_user'
)
->
alias
(
'a'
)
->
field
(
'a.*,b.user_nickname'
)
->
join
(
'user b'
,
'a.uid = b.id'
,
'left'
)
->
where
(
$where
)
->
paginate
(
1
000000
);
$data_arr
=
$data
->
toArray
();
}
else
{
$id
=
$this
->
request
->
param
();
...
...
@@ -359,7 +359,7 @@ class SalesmanController extends AdminBaseController{
$keyword
=
$_POST
[
'keyword'
];
$where
[
'b.user_nickname'
]
=
[
'like'
,
"%
$keyword
%"
];
}
$data
=
Db
::
name
(
'my_user'
)
->
alias
(
'a'
)
->
field
(
'a.*,b.user_nickname'
)
->
join
(
'user b'
,
'a.uid = b.id'
,
'left'
)
->
where
(
$where
)
->
paginate
(
1
2
);
$data
=
Db
::
name
(
'my_user'
)
->
alias
(
'a'
)
->
field
(
'a.*,b.user_nickname'
)
->
join
(
'user b'
,
'a.uid = b.id'
,
'left'
)
->
where
(
$where
)
->
paginate
(
1
000000
);
}
else
{
$id
=
$this
->
request
->
param
();
$teacher_id
=
$id
[
'teacher_id'
];
...
...
app/admin/controller/SalesmangoodsController.php
查看文件 @
a985a24
...
...
@@ -25,7 +25,7 @@ class SalesmangoodsController extends AdminBaseController{
$keyword
=
$_POST
[
'keyword'
];
$where
[
'book_name'
]
=
[
'like'
,
"%
$keyword
%"
];
}
$data
=
Db
::
name
(
'goods'
)
->
group
(
'book_name'
)
->
where
(
$where
)
->
paginate
(
1
2
);
$data
=
Db
::
name
(
'goods'
)
->
group
(
'book_name'
)
->
where
(
$where
)
->
paginate
(
1
000000
);
$this
->
assign
(
'data'
,
$data
);
return
$this
->
fetch
();
}
else
{
...
...
app/admin/controller/SalesmanorderController.php
查看文件 @
a985a24
...
...
@@ -37,7 +37,7 @@ class SalesmanorderController extends AdminBaseController{
if
(
!
empty
(
$_POST
[
'grade'
])){
$where
[
'grade'
]
=
$_POST
[
'grade'
];
}
$data
=
Db
::
name
(
'indent'
)
->
where
(
$where
)
->
paginate
(
5
0
);
$data
=
Db
::
name
(
'indent'
)
->
where
(
$where
)
->
paginate
(
100000
0
);
$data_arr
=
$data
->
toArray
();
}
else
{
$data
=
Db
::
name
(
'indent'
)
->
where
(
'indent_type'
,
2
)
->
paginate
(
12
);
...
...
app/admin/controller/SchoolController.php
查看文件 @
a985a24
...
...
@@ -23,7 +23,7 @@ class SchoolController extends AdminBaseController{
$keyword
=
$_POST
[
'keyword'
];
$where
[
'school'
]
=
[
'like'
,
"%
$keyword
%"
];
}
$data1
=
Db
::
name
(
'school'
)
->
where
(
$where
)
->
paginate
(
1
2
)
;
$data1
=
Db
::
name
(
'school'
)
->
where
(
$where
)
->
paginate
(
1
000000
)
;
$data
=
$data1
->
toArray
();
}
else
{
$data1
=
Db
::
name
(
'school'
)
->
paginate
(
12
)
;
...
...
app/admin/controller/UsersController.php
查看文件 @
a985a24
...
...
@@ -27,7 +27,7 @@ class UsersController extends AdminBaseController{
if
(
$_POST
[
'identity'
]
!=
""
){
$where
[
'a.status'
]
=
$_POST
[
'identity'
];
}
$data
=
Db
::
name
(
'my_user'
)
->
alias
(
'a'
)
->
field
(
'a.*,b.user_nickname'
)
->
join
(
'user b'
,
'a.uid = b.id'
,
'LEFT'
)
->
where
(
$where
)
->
paginate
(
1
2
);
$data
=
Db
::
name
(
'my_user'
)
->
alias
(
'a'
)
->
field
(
'a.*,b.user_nickname'
)
->
join
(
'user b'
,
'a.uid = b.id'
,
'LEFT'
)
->
where
(
$where
)
->
paginate
(
1
000000
);
}
else
{
$data
=
Db
::
name
(
'my_user'
)
->
alias
(
'a'
)
->
field
(
'a.*,b.user_nickname'
)
->
join
(
'user b'
,
'a.uid = b.id'
,
'LEFT'
)
->
paginate
(
12
);
...
...
@@ -72,7 +72,7 @@ class UsersController extends AdminBaseController{
$where
[
'user_nickname'
]
=
[
'like'
,
"%
$keyword
%"
];
}
$this
->
assign
(
'salesman_id'
,
$_POST
[
'salesman_id'
]);
$data
=
Db
::
name
(
'my_user'
)
->
alias
(
'a'
)
->
field
(
'a.*,b.user_nickname'
)
->
join
(
'user b'
,
'a.uid = b.id'
,
'left'
)
->
where
(
$where
)
->
paginate
(
1
2
);
$data
=
Db
::
name
(
'my_user'
)
->
alias
(
'a'
)
->
field
(
'a.*,b.user_nickname'
)
->
join
(
'user b'
,
'a.uid = b.id'
,
'left'
)
->
where
(
$where
)
->
paginate
(
1
000000
);
$data_arr
=
$data
->
toArray
();
}
else
{
$id
=
$this
->
request
->
param
();
...
...
@@ -120,7 +120,7 @@ class UsersController extends AdminBaseController{
$keyword
=
$_POST
[
'keyword'
];
$where
[
'b.user_nickname'
]
=
[
'like'
,
"%
$keyword
%"
];
}
$data
=
Db
::
name
(
'my_user'
)
->
alias
(
'a'
)
->
field
(
'a.*,b.user_nickname'
)
->
join
(
'user b'
,
'a.uid = b.id'
,
'left'
)
->
where
(
$where
)
->
paginate
(
1
2
);
$data
=
Db
::
name
(
'my_user'
)
->
alias
(
'a'
)
->
field
(
'a.*,b.user_nickname'
)
->
join
(
'user b'
,
'a.uid = b.id'
,
'left'
)
->
where
(
$where
)
->
paginate
(
1
000000
);
}
else
{
$id
=
$this
->
request
->
param
();
$teacher_id
=
$id
[
'teacher_id'
];
...
...
app/admin/controller/WithdrawalController.php
查看文件 @
a985a24
...
...
@@ -24,7 +24,7 @@ class WithdrawalController extends AdminBaseController{
if
(
!
empty
(
$_POST
[
'keyword'
])){
$where
[
'b.phone'
]
=
$_POST
[
'keyword'
];
}
$data
=
Db
::
name
(
'money_expend'
)
->
alias
(
'a'
)
->
field
(
'a.*,b.phone'
)
->
join
(
'my_user b'
,
'a.uid=b.uid'
,
'LEFT'
)
->
where
(
$where
)
->
paginate
(
1
2
);
$data
=
Db
::
name
(
'money_expend'
)
->
alias
(
'a'
)
->
field
(
'a.*,b.phone'
)
->
join
(
'my_user b'
,
'a.uid=b.uid'
,
'LEFT'
)
->
where
(
$where
)
->
paginate
(
1
000000
);
$data_arr
=
$data
->
toArray
();
}
else
{
$data
=
Db
::
name
(
'money_expend'
)
->
alias
(
'a'
)
->
field
(
'a.*,b.phone'
)
->
join
(
'my_user b'
,
'a.uid=b.uid'
,
'LEFT'
)
->
where
(
"state = 0"
)
->
paginate
(
12
);
...
...
@@ -57,7 +57,7 @@ class WithdrawalController extends AdminBaseController{
if
(
!
empty
(
$_POST
[
'keyword'
])){
$where
[
'b.phone'
]
=
$_POST
[
'keyword'
];
}
$data
=
Db
::
name
(
'money_expend'
)
->
alias
(
'a'
)
->
field
(
'a.*,b.phone'
)
->
join
(
'my_user b'
,
'a.uid=b.uid'
,
'LEFT'
)
->
where
(
$where
)
->
paginate
(
1
2
);
$data
=
Db
::
name
(
'money_expend'
)
->
alias
(
'a'
)
->
field
(
'a.*,b.phone'
)
->
join
(
'my_user b'
,
'a.uid=b.uid'
,
'LEFT'
)
->
where
(
$where
)
->
paginate
(
1
000000
);
$data_arr
=
$data
->
toArray
();
}
else
{
$data
=
Db
::
name
(
'money_expend'
)
->
alias
(
'a'
)
->
field
(
'a.*,b.phone'
)
->
join
(
'my_user b'
,
'a.uid=b.uid'
,
'LEFT'
)
->
where
(
"state = 1 or state = 2"
)
->
paginate
(
12
);
...
...
public/themes/admin_simpleboot3/admin/platformorders/plat_list.html
查看文件 @
a985a24
...
...
@@ -37,6 +37,9 @@
<tr>
<th>
序号
</th>
<th>
订单号
</th>
<th>
姓名
</th>
<th>
手机号
</th>
<th>
收货地址
</th>
<th>
数量
</th>
<th>
价钱
</th>
<th>
订单状态
</th>
...
...
@@ -45,10 +48,13 @@
</tr>
</thead>
<tbody>
<volist
name=
"data"
id=
"vo"
>
<volist
name=
"data
1
"
id=
"vo"
>
<tr
class=
"tr{$vo.id}"
>
<td>
{$vo.id}
</td>
<td>
{$vo.order_number}
</td>
<td>
{$vo.name}
</td>
<td>
{$vo.phone}
</td>
<td>
{$vo.dizhi['region']} {$vo.dizhi['detailed']}
</td>
<td>
{$vo.book_num}
</td>
<td>
{$vo.money}
</td>
<if
condition=
"$vo.state eq 4"
>
...
...
public/themes/admin_simpleboot3/admin/salesmanorder/sale_order_list.html
查看文件 @
a985a24
...
...
@@ -71,6 +71,9 @@
<tr>
<th>
序号
</th>
<th>
订单号
</th>
<th>
姓名
</th>
<th>
手机号
</th>
<th>
地区
</th>
<th>
数量
</th>
<th>
价钱
</th>
<th>
学校-班级
</th>
...
...
@@ -84,6 +87,9 @@
<tr
class=
"tr{$vo.id}"
>
<td>
{$vo.id}
</td>
<td>
{$vo.order_number}
</td>
<td>
{$vo.name}
</td>
<td>
{$vo.phone}
</td>
<td>
{$vo.region}
</td>
<td>
{$vo.book_num}
</td>
<td>
{$vo.money}
</td>
<td>
{$vo.grade_class}
</td>
...
...
请
注册
或
登录
后发表评论