Commit 944c03a8 authored by agping's avatar agping

1

parent fd7d157d
...@@ -20,9 +20,9 @@ ...@@ -20,9 +20,9 @@
<div class="panel-heading breadcrumb"> <div class="panel-heading breadcrumb">
<li> <li>
<span class="manager-title ld-Marheight"></span> <span class="manager-title ld-Marheight"></span>
<input id="count_time" class="form-control ld-Marheight" type="text" placeholder="请选择" onclick="WdatePicker({el:this,dateFmt:'yyyy-MM',readOnly:'readonly' })" style="width: 150px;float: left;"> <input type="month" id="count_time" class="form-control ld-Marheight" placeholder="请选择" style="width: 180px;float: left;"/>
<a class="btn btn-info is-print ld-Marheight" style="margin-left: 20px;">打印</a> <a class="btn btn-info is-print ld-Marheight" style="margin-left: 20px;">打印</a>
<a class="btn btn-info is-close ld-Marheight" style="margin-left: 20px;">导出excel</a> <!--<a class="btn btn-info is-close ld-Marheight" style="margin-left: 20px;">导出excel</a>-->
</li> </li>
</div> </div>
......
...@@ -35,13 +35,12 @@ define(['doT','html2canvas','text!temp/accountingTable_list_template_tpl.html', ...@@ -35,13 +35,12 @@ define(['doT','html2canvas','text!temp/accountingTable_list_template_tpl.html',
var _doc = $(document); var _doc = $(document);
//门店成本 时间搜索 //门店成本 时间搜索
_doc.on('input', '#create_time_start', function() { _doc.on('input', '#count_time', function() {
bargain.financialTime = $('#create_time_start').val(); if(!($('#count_time').val())){
if(!($('#create_time_start').val())){
alert('时间不能为空!'); alert('时间不能为空!');
return return
} }
bargain.getList(1); bargain.getList();
}); });
//点击详情 //点击详情
$(document).on('click','.checkCost',function(e){//点击审核按钮 调整审核页面 $(document).on('click','.checkCost',function(e){//点击审核按钮 调整审核页面
...@@ -57,10 +56,10 @@ define(['doT','html2canvas','text!temp/accountingTable_list_template_tpl.html', ...@@ -57,10 +56,10 @@ define(['doT','html2canvas','text!temp/accountingTable_list_template_tpl.html',
}, },
//获取门店成本数据 //获取门店成本数据
getList: function(pageNo){ getList: function(){
var params = { var params = {
'store_id':bargain.store_id, 'store_id':bargain.store_id,
'setting_date': $('#count_time').val() + '-01', 'setting_date': $('#count_time').val()+'-01',
// 'setting_date': "2019-06-01", // 'setting_date': "2019-06-01",
// 'store_id':49, // 'store_id':49,
}; };
......
...@@ -400,15 +400,15 @@ function switchFeeSiteId(str){ ...@@ -400,15 +400,15 @@ function switchFeeSiteId(str){
//费用项目 100房租租金 101水电费 102其他费用 201总部固定成本 301分部固定成本 401同联发展基金 501家庭基金报销 502社保报销 503总经理基薪 504区域秘书基薪 505招聘成本 506区域经理基本工资平摊 507宿舍成本 508宿舍亏损 509手续费 510员工工资成本 511网络报销 512离职员工网络 513门店独有成本其他费用 //费用项目 100房租租金 101水电费 102其他费用 201总部固定成本 301分部固定成本 401同联发展基金 501家庭基金报销 502社保报销 503总经理基薪 504区域秘书基薪 505招聘成本 506区域经理基本工资平摊 507宿舍成本 508宿舍亏损 509手续费 510员工工资成本 511网络报销 512离职员工网络 513门店独有成本其他费用
switch (String(str)){ switch (String(str)){
case '10001': case '10001':
return '上海'; return '上海';
case '10002': case '10002':
return '杭州'; return '杭州';
case '10003': case '10003':
return '深圳'; return '深圳';
case '10004': case '10004':
return '广州'; return '广州';
case '10005': case '10005':
return '北京'; return '北京';
default: default:
return '暂无数据'; return '暂无数据';
} }
......
define(['doT', 'text!temp/cost_details_template_tpl.html', 'css!style/home.css', 'ckfinder', 'ckfinderStart', "datetimepicker",'pagination', 'bootstrapJs','blow-up'], function(doT, template) { define(['doT', 'text!temp/cost_details_template_tpl.html', 'css!style/home.css', 'ckfinder', 'ckfinderStart', "datetimepicker",'pagination', 'bootstrapJs','blow-up'], function(doT, template) {
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
cost = { cost = {
pageNo: 1, pageNo: 1,
/*第几页*/ /*第几页*/
...@@ -66,6 +68,28 @@ define(['doT', 'text!temp/cost_details_template_tpl.html', 'css!style/home.css', ...@@ -66,6 +68,28 @@ define(['doT', 'text!temp/cost_details_template_tpl.html', 'css!style/home.css',
}, },
totalFee: function() { //一键生成
$.ajax({
url: '/index/creationStoreFee',
type: 'post',
async: true,
data: {
"setting_date": $("#comit_time_start").val() + '-01',
"agent_id": user_info_obj.id,
},
dataType: 'json',
success: function(data) {
if(data.code == 200) {
alert(data.msg);
} else {
alert(data.msg);
}
}
});
},
//获取审核记录 //获取审核记录
getList : function(){ getList : function(){
var that = cost; var that = cost;
......
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