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
e.preventDefault();
e.stopPropagation();
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!
isFinancial: 0, //收款id
operationStatus:0,
daily_id:0,//日报id
store_id:'',//日报id
init: function() {
//初始化时间
var myDate = new Date();
......@@ -34,6 +35,8 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
bargain.financialTime = getUrlParam('time');
var managerTitle=localStorage.getItem('financial_check_string_liu') +' '+ bargain.financialTime;
$('.manager-title').html(managerTitle);
bargain.store_id = getUrlParam('storeId');
}else{
$('.is-submit-passed').hide();
$('.is-submit-pass-btn').hide();
......@@ -44,6 +47,7 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
}else{
$('.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!
getList: function(pageNo){
console.count('bar');
var params = {
'AuthToken':user_info_obj.AuthToken,
'store_id': user_info_obj.store_id,
'AuthToken': user_info_obj.AuthToken,
'store_id': bargain.store_id,
'is_store': bargain.isFinancial,
'daily_data': bargain.financialTime
// 'store_id': 730,
......
......@@ -9,7 +9,7 @@
<td>[%= it[item]['store_name'] %]</td>
<td>
[% 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>
</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