Commit 5d9730bb authored by hujun's avatar hujun

财务日报

parent 073a4469
......@@ -3130,7 +3130,7 @@ class Finance extends Basic
}
if ($this->params['status'] > -1) {
$where['status'] = $this->params['status'] == 2 ? 2 : ['in', '0,1,2'];
$where['status'] = $this->params['status'];
}
$m_daily = new ODaily();
......
......@@ -91,11 +91,11 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
},
//获取一级审核,二级审核,三级审核不同的ajax请求url
switchStatus: function(){
switch (Number(this.mainTabIndex)){
case 0:
return 1;
case 1:
return 2;
switch (Number(this.mainTabIndex)){
case 0:
return 0;
case 1:
return 1;
case 2:
return -1;
default:
......
......@@ -8,7 +8,9 @@
<td>[%= it[item]['agent_name']%]</td>
<td>[%= it[item]['store_name'] %]</td>
<td>
<a class="btn1 btn-info financial-check" href="/index/dailyDetails?time=[%= it[item]['daily_date'] %]" data-recordid="[%= it[item]['id'] %]" data-store="[%= it[item]['store_name'] %]" data-toggle="modal">审核</a>
[% if(it[item]['status'] == 0) { %]
<a class="btn1 btn-info financial-check" href="/index/dailyDetails?time=[%= it[item]['daily_date'] %]" data-recordid="[%= it[item]['id'] %]" data-store="[%= it[item]['store_name'] %]" data-toggle="modal">审核</a>
[% } %]
</td>
</tr>
[% } %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment