Commit c88ec277 authored by agping's avatar agping

门店明细 费用报销

parent 74dd5ff4
......@@ -107,7 +107,7 @@
</div>
<div class="modal-footer pic-con1">
<button type="button btn2" class="btn btn-primary save_cost_pic" id="" data-dismiss="modal">保存</button>
<button type="button btn2" class="btn btn-primary save_cost_pic is_hide_details" id="" data-dismiss="modal">保存</button>
</div>
<div class="modal-body modal-body-height pic-con2" style="overflow: hidden;">
<form class="">
......@@ -286,8 +286,8 @@
</form>
</div>
<div class="modal-footer pic-con2">
<button type="button btn2" class="btn btn-primary save_cost" id="" data-dismiss="modal">保存</button>
<button type="button" class="btn btn-primary pass_check" href="#modal_pass" data-toggle="modal" style="">审核通过</button>
<button type="button btn2" class="btn btn-primary save_cost is_hide_details" id="" data-dismiss="modal">保存</button>
<button type="button" class="btn btn-primary pass_check is_hide_details" href="#modal_pass" data-toggle="modal" style="">审核通过</button>
</div>
</div>
<!-- /.modal-content -->
......
......@@ -29,6 +29,11 @@ define(['doT', 'text!temp/cost_details_template_tpl.html', 'css!style/home.css',
$(document).on('click','#export',function(e){
that.exportExcel();
});
//点击详情
$(document).on('click','.checkCost',function(e){//点击审核按钮 调整审核页面
var id = e.target.dataset.id;
$(".publicCostDetails").attr('src','/index/publicCostDetails?cost_id='+ id + '&is_self=2')
});
//费用类型切换
$("#cost_type").change(function() {
$("#fee_item").val('');//置空费用项目
......
......@@ -296,6 +296,10 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
$('.is_hide_pic').hide();
}
//is_self == 2 隐藏 保存 审核按钮
if(cost.is_self == 2){
$('.is_hide_details').hide();
}
} else {
......
......@@ -13,8 +13,7 @@
<td>[%= it[item]['store_name'] %]</td>
<td>[%= it[item]['assume_fee'] %]</td>
<td>
<a class="btn1 btn-success is_del" href="#modal-del" data-toggle="modal" data-id='[%= it[item]["cost_id"] %]'>详情</a>
<a class="btn1 btn-success checkCost" href="#modal-addPic" data-toggle="modal" data-id='[%= it[item]["id"] %]' data-status='[%= it[item]["status"] %]'>审核</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