Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
Jz-Php
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
PHP
Jz-Php
Commits
f948dcd4
提交
f948dcd4
authored
3月 03, 2020
作者:
chengye
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
结算列表添加状态查询条件
上级
89e9d27b
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
41 行增加
和
2 行删除
+41
-2
Payment.php
application/em/controller/Payment.php
+4
-0
Settle.php
application/em/controller/Settle.php
+25
-0
EmPayment.php
application/em/model/EmPayment.php
+1
-2
index.html
application/em/view/payment/index.html
+2
-0
index.html
application/em/view/settle/index.html
+9
-0
没有找到文件。
application/em/controller/Payment.php
浏览文件 @
f948dcd4
...
...
@@ -87,6 +87,10 @@ class Payment extends Base
$map
[]
=
[
'pay.status'
,
'='
,
"
$payment_status
"
];
$this
->
assign
(
'payment_status'
,
$payment_status
);
break
;
case
'4'
:
$map
[]
=
[
'pay.status'
,
'='
,
"
$payment_status
"
];
$this
->
assign
(
'payment_status'
,
$payment_status
);
break
;
case
''
:
$this
->
assign
(
'payment_status'
,
''
);
break
;
...
...
application/em/controller/Settle.php
浏览文件 @
f948dcd4
...
...
@@ -35,6 +35,8 @@ class Settle extends Base
}
$search_text
=
Request
::
get
(
'search_text'
);
$search_type
=
Request
::
get
(
'search_type'
);
$settle_status
=
Request
::
get
(
'settle_status'
);
if
(
$search_text
){
switch
(
$search_type
)
{
case
'1'
:
...
...
@@ -62,6 +64,29 @@ class Settle extends Base
$this
->
assign
(
'search_type'
,
''
);
$this
->
assign
(
'search_text'
,
''
);
}
//结算状态
if
(
$settle_status
!==
''
){
switch
(
$settle_status
)
{
case
'0'
:
$map
[]
=
[
'settle.status'
,
'='
,
"
$settle_status
"
];
$this
->
assign
(
'payment_status'
,
$settle_status
);
break
;
case
'1'
:
$map
[]
=
[
'settle.status'
,
'='
,
"
$settle_status
"
];
$this
->
assign
(
'payment_status'
,
$settle_status
);
break
;
case
'4'
:
$map
[]
=
[
'settle.status'
,
'='
,
"
$settle_status
"
];
$this
->
assign
(
'settle_status'
,
$settle_status
);
break
;
case
''
:
$this
->
assign
(
'settle_status'
,
''
);
break
;
}
}
else
{
$this
->
assign
(
'settle_status'
,
''
);
}
//区域
$area_id
=
Request
::
get
(
'area_id'
);
if
(
$area_id
){
...
...
application/em/model/EmPayment.php
浏览文件 @
f948dcd4
...
...
@@ -29,8 +29,7 @@ class EmPayment extends Base
->
field
(
'em.em_numb'
)
->
field
(
'r.region_name,station.station_name'
)
->
join
([
'em_account'
=>
'ea'
],
'ea.account_id=pay.account_id'
)
->
leftJoin
([
'em_payment_invoice'
=>
'epi'
],
'epi.payment_id = pay.payment_id'
)
->
join
([
'em_payment_invoice'
=>
'epi'
],
'epi.payment_id = pay.payment_id'
)
->
join
([
'em'
],
'em.id=ea.em_id'
)
->
join
([
'station_info'
=>
'station'
],
'station.station_id=em.station_id'
)
->
join
([
'region'
=>
'r'
],
'station.area_id = r.id'
)
...
...
application/em/view/payment/index.html
浏览文件 @
f948dcd4
...
...
@@ -29,6 +29,8 @@
<option
value=
""
{
if
$
payment_status =
==
''
}
selected
{/
if
}
>
缴费状态
</option>
<option
value=
"0"
{
if
$
payment_status =
==
0
}
selected
{/
if
}
>
未缴费
</option>
<option
value=
"1"
{
if
$
payment_status =
=
1
}
selected
{/
if
}
>
已缴费
</option>
<option
value=
"4"
{
if
$
payment_status =
=
4
}
selected
{/
if
}
>
已审核
</option>
</select>
</div>
<div
class=
"layui-input-inline layui-show-xs-block"
style=
"width:100px;"
>
...
...
application/em/view/settle/index.html
浏览文件 @
f948dcd4
...
...
@@ -24,6 +24,15 @@
<input
type=
"text"
name=
"search_text"
style=
"width:150px;"
placeholder=
"搜索内容"
autocomplete=
"off"
id=
"search_text"
class=
"layui-input"
value=
"{$search_text}"
>
</div>
<div
class=
"layui-input-inline"
style=
"width:150px;"
>
<select
name=
"settle_status"
id=
"settle_status"
>
<option
value=
""
{
if
$
settle_status =
==
''
}
selected
{/
if
}
>
结算状态
</option>
<option
value=
"0"
{
if
$
settle_status =
==
0
}
selected
{/
if
}
>
未结算
</option>
<option
value=
"1"
{
if
$
settle_status =
=
1
}
selected
{/
if
}
>
已结算
</option>
<option
value=
"4"
{
if
$
settle_status =
=
4
}
selected
{/
if
}
>
已审核
</option>
</select>
</div>
<div
class=
"layui-input-inline layui-show-xs-block"
style=
"width:150px;"
>
<select
name=
"area_id"
id=
"area_id"
>
<option
value=
"0"
>
区域
</option>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论