Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
Jz-Php
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
PHP
Jz-Php
Commits
2e571391
提交
2e571391
authored
3月 03, 2020
作者:
chengye
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
结算列表添加创建时间查询
上级
962f5d8b
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
35 行增加
和
10 行删除
+35
-10
Settle.php
application/em/controller/Settle.php
+20
-8
index.html
application/em/view/invoice/index.html
+1
-1
index.html
application/em/view/settle/index.html
+14
-1
没有找到文件。
application/em/controller/Settle.php
浏览文件 @
2e571391
...
@@ -71,10 +71,29 @@ class Settle extends Base
...
@@ -71,10 +71,29 @@ class Settle extends Base
$this
->
assign
(
'area_id'
,
''
);
$this
->
assign
(
'area_id'
,
''
);
}
}
//创建时间查询条件
$dateStart
=
strtotime
(
Request
::
get
(
'date_start'
));
$dateEnd
=
strtotime
(
Request
::
get
(
'date_end'
));
//区间查询
if
(
!
empty
(
$dateStart
)
&&
!
empty
(
$dateEnd
)
){
$map
[]
=
[
'settle.settle_date'
,
'between'
,[
$dateStart
,
$dateEnd
]];
$this
->
assign
(
'date_start'
,
Request
::
get
(
'date_start'
));
$this
->
assign
(
'date_end'
,
Request
::
get
(
'date_end'
));
}
elseif
(
!
empty
(
$dateStart
)
&&
empty
(
$dateEnd
)){
$map
[]
=
[
'settle.settle_date'
,
'>'
,
$dateStart
];
$this
->
assign
(
'date_start'
,
Request
::
get
(
'date_start'
));
$this
->
assign
(
'date_end'
,
''
);
}
elseif
(
empty
(
$dateStart
)
&&
!
empty
(
$dateEnd
)){
$map
[]
=
[
'settle.settle_date'
,
'<'
,
$dateEnd
];
$this
->
assign
(
'date_end'
,
Request
::
get
(
'date_end'
));
$this
->
assign
(
'date_start'
,
''
);
}
else
{
$this
->
assign
(
'date_start'
,
''
);
$this
->
assign
(
'date_end'
,
''
);
}
$page
=
Request
::
param
(
'page'
)
?
Request
::
param
(
'page'
)
:
1
;
$page
=
Request
::
param
(
'page'
)
?
Request
::
param
(
'page'
)
:
1
;
$limit
=
Request
::
param
(
'limit'
)
?
Request
::
param
(
'limit'
)
:
10
;
$limit
=
Request
::
param
(
'limit'
)
?
Request
::
param
(
'limit'
)
:
10
;
$region
=
new
ElectricMeter
();
$data
=
(
new
EmSettle
())
->
getSettleList
(
$map
,
$page
,
$limit
);
$data
=
(
new
EmSettle
())
->
getSettleList
(
$map
,
$page
,
$limit
);
$PaymentCount
=
(
new
EmSettle
())
->
getSettleCount
(
$map
);
$PaymentCount
=
(
new
EmSettle
())
->
getSettleCount
(
$map
);
if
(
Request
::
param
(
'page'
)){
if
(
Request
::
param
(
'page'
)){
...
@@ -83,13 +102,6 @@ class Settle extends Base
...
@@ -83,13 +102,6 @@ class Settle extends Base
$region
=
new
ElectricMeter
();
$region
=
new
ElectricMeter
();
$this
->
assign
(
'regions'
,
getTree
(
$region
->
regions
()));
$this
->
assign
(
'regions'
,
getTree
(
$region
->
regions
()));
return
$this
->
fetch
();
return
$this
->
fetch
();
// $data = (new EmSettle())->getList();
// $page = $data->render();
// $this->assign('data',$data);
// $this->assign('page',$page);
// return $this->fetch();
}
}
public
function
createAll
(){
public
function
createAll
(){
...
...
application/em/view/invoice/index.html
浏览文件 @
2e571391
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
应结
:
{{
d
.
settle_amount
}}
已结
:{{
d
.
sett_amount
}}
应结
:
{{
d
.
settle_amount
}}
已结
:{{
d
.
sett_amount
}}
</script>
</script>
<script
type=
"text/html"
id=
"useage"
>
<script
type=
"text/html"
id=
"useage"
>
上期
表数
:
{{
d
.
last_sum_numb
}}
本次表数
:{{
d
.
current_sum_numb
}}
上期
:
{{
d
.
last_sum_numb
}}
本期
:{{
d
.
current_sum_numb
}}
</script>
</script>
<script
type=
"text/html"
id=
"repo_numb"
>
<script
type=
"text/html"
id=
"repo_numb"
>
{{
d
.
current_sum_numb
-
d
.
last_sum_numb
}}
{{
d
.
current_sum_numb
-
d
.
last_sum_numb
}}
...
...
application/em/view/settle/index.html
浏览文件 @
2e571391
...
@@ -36,6 +36,19 @@
...
@@ -36,6 +36,19 @@
{/volist}
{/volist}
</select>
</select>
</div>
</div>
<div
class=
"layui-input-inline"
style=
"width:100px;"
>
<select
name=
"cp_date"
id=
"cp_date"
>
<option
value=
"1"
>
创建日期
</option>
</select>
</div>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"date_start"
id=
"date_start"
placeholder=
"开始日期"
autocomplete=
"off"
class=
"layui-input"
style=
"width:100px;"
value=
"{$date_start}"
>
</div>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"date_end"
style=
"width:100px;"
id=
"date_end"
placeholder=
"结束日期"
autocomplete=
"off"
class=
"layui-input"
value=
"{$date_end}"
>
</div>
<div
class=
"layui-input-inline"
>
<div
class=
"layui-input-inline"
>
<button
class=
"layui-btn"
lay-submit=
""
lay-filter=
"search"
>
<button
class=
"layui-btn"
lay-submit=
""
lay-filter=
"search"
>
<i
class=
"layui-icon"
>

</i></button>
<i
class=
"layui-icon"
>

</i></button>
...
@@ -44,7 +57,7 @@
...
@@ -44,7 +57,7 @@
</div>
</div>
<div
class=
"layui-card-body"
>
<div
class=
"layui-card-body"
>
<div>
<div>
<table
class=
"layui-table"
lay-data=
"{ url:'/settle', page:true, id:'idTest',where:{search_type:document.getElementById('search_type').value,search_text:document.getElementById('search_text').value,area_id:document.getElementById('area_id').value} }"
>
<thead>
<table
class=
"layui-table"
lay-data=
"{ url:'/settle', page:true, id:'idTest',where:{search_type:document.getElementById('search_type').value,search_text:document.getElementById('search_text').value,area_id:document.getElementById('area_id').value
,date_start:document.getElementById('date_start').value,date_end:document.getElementById('date_end').value
} }"
>
<thead>
<tr>
<tr>
<th
lay-data=
"{templet: '#settle_id',sort: true} "
>
结算单号
</th>
<th
lay-data=
"{templet: '#settle_id',sort: true} "
>
结算单号
</th>
<th
lay-data=
"{field:'invoice_id',sort: true}"
>
账单号
</th>
<th
lay-data=
"{field:'invoice_id',sort: true}"
>
账单号
</th>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论