Commit 167e646e authored by agping's avatar agping

财务优化

parent a4e18b1a
...@@ -32,6 +32,7 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho ...@@ -32,6 +32,7 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
localStorage.setItem('financial_check_string_liu',$(this).attr("data-store")); localStorage.setItem('financial_check_string_liu',$(this).attr("data-store"));
location.href=href='/index/dailyDetails?time=' + $(this).attr("data-storeTime")+"&storeId="+$(this).attr("data-storeId");
}); });
//搜索按钮的事件 //搜索按钮的事件
......
...@@ -15,6 +15,7 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css! ...@@ -15,6 +15,7 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
isFinancial: 0, //收款id isFinancial: 0, //收款id
operationStatus:0, operationStatus:0,
daily_id:0,//日报id daily_id:0,//日报id
store_id:'',//日报id
init: function() { init: function() {
//初始化时间 //初始化时间
var myDate = new Date(); var myDate = new Date();
...@@ -34,6 +35,8 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css! ...@@ -34,6 +35,8 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
bargain.financialTime = getUrlParam('time'); bargain.financialTime = getUrlParam('time');
var managerTitle=localStorage.getItem('financial_check_string_liu') +' '+ bargain.financialTime; var managerTitle=localStorage.getItem('financial_check_string_liu') +' '+ bargain.financialTime;
$('.manager-title').html(managerTitle); $('.manager-title').html(managerTitle);
bargain.store_id = getUrlParam('storeId');
}else{ }else{
$('.is-submit-passed').hide(); $('.is-submit-passed').hide();
$('.is-submit-pass-btn').hide(); $('.is-submit-pass-btn').hide();
...@@ -44,6 +47,7 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css! ...@@ -44,6 +47,7 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
}else{ }else{
$('.manager-title').html('您还不是店长'); $('.manager-title').html('您还不是店长');
} }
bargain.store_id = user_info_obj.store_id;
} }
...@@ -164,8 +168,8 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css! ...@@ -164,8 +168,8 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
getList: function(pageNo){ getList: function(pageNo){
console.count('bar'); console.count('bar');
var params = { var params = {
'AuthToken':user_info_obj.AuthToken, 'AuthToken': user_info_obj.AuthToken,
'store_id': user_info_obj.store_id, 'store_id': bargain.store_id,
'is_store': bargain.isFinancial, 'is_store': bargain.isFinancial,
'daily_data': bargain.financialTime 'daily_data': bargain.financialTime
// 'store_id': 730, // 'store_id': 730,
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<td>[%= it[item]['store_name'] %]</td> <td>[%= it[item]['store_name'] %]</td>
<td> <td>
[% if(it[item]['status'] == 0) { %] [% 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> <a class="btn1 btn-info financial-check" data-recordid="[%= it[item]['id'] %]" data-store="[%= it[item]['store_name'] %]" data-storeId="[%= it[item]['store_id'] %]" data-storeTime="[%= it[item]['daily_date'] %]" data-toggle="modal">审核</a>
[% } %] [% } %]
</td> </td>
</tr> </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