Commit e51db3b6 authored by agping's avatar agping

1

parent 20de90bf
{layout name="global/frame_tpl" /}
<input type="hidden" class="page-load" id="financial_manager_daily_list" />
<style type="text/css">
/*图片*/
.clear{
clear: both;
}
.J_preview {
width: 30px;
height: 30px;
border-radius: 15px;
}
/*黑名单上传图片的样式*/
.modal-body-height {
overflow-y: auto;
height: 432px;
}
#container_body_img_area>div{
float: left;
width: 216px;
}
.img-pre-ul {
padding-left: 0;
overflow: hidden;
}
.img-pre-ul>li {
list-style: no;
float: left;
width: 210px;
height: 170px;
overflow: hidden;
margin-right: 10px;
margin-top: 10px;
}
.img-pre-ul>li>img {
float: left;
width: 210px;
height: 140px;
object-fit: contain;
cursor: pointer;
}
.img-pre-ul>li>a {
float: left;
width: 210px;
text-align: center;
line-height: 30px;
}
/*图片点击放大预览区域的样式*/
#img_mask_area {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: hidden;
z-index: 1999;
background-color: rgba(0, 0, 0, .3);
display: none;
}
#img_mask_area>img {
width: 900px;
height: 700px;
object-fit: contain;
position: absolute;
left: 50%;
top: 50%;
margin-left: -450px;
margin-top: -350px;
}
.input-100-width {
width: 100px!important;
}
.list-group-item>.full-width-100>label {
width: 60px;
}
.list-group-item>.full-pic-area>label {
width: 120px;
}
.result>img,.result2>img{
width: 120px;
height: 120px;
margin-top: 8px;
}
#container_body{
position: relative;
overflow: hidden;
}
#file_input {
opacity: 0;
position: absolute;
top: 0;
left: 145px;
height: 35px;
width: 80px;
}
.modal-body-width{
width: 800px;
}
.span-del2,.span-del{
color: red;
cursor: pointer;
}
.black-list-text{
width: 500px;
height: 100px;
vertical-align: top;
margin-bottom: 20px;
}
/*图片*/
.clear{
clear: both;
}
......@@ -301,7 +412,7 @@
<tbody class="text-center" id="maintable_list_f">
</tbody>
<tfoot class="text-center" id="maintable_list">
<tfoot class="text-center" id="maintable_list_total">
<tr>
<td class="text-center">
<span id="total_a">555</span>
......@@ -347,12 +458,13 @@
<div class="is-submit-div">
<div class="is-submit">提交</div>
<!--<div class="is-submit-pass">-->
<a class="btn btn-primary" href="#modal_financialremark" data-toggle="modal">审核通过</a>
<a class="btn btn-primary is-submit-pass-btn" href="#modal_financialremark" data-toggle="modal">审核通过</a>
<a class="btn btn-primary is-submit-passed">转到已审核</a>
</div>
<div class="tips-dian text-danger">
</div>
</div>
</div>
......@@ -376,9 +488,25 @@
收款图片
</h4>
</div>
<div class="modal-body">
666
</div>
<div class="modal-body modal-body-height">
<ul class="list-group">
<li class="list-group-item">
<div class="form-group full-width-100 full-pic-area">
<!--input上传图片-->
<div id="container_body">
<!--<label>&nbsp;&nbsp;简历等文件(选填:图片格式):</label>-->
<!--<button type="button btn2" class="btn btn-default">上传图片</button>-->
<!--<input type="file" id="file_input"/>-->
<div id="container_body_img_area"></div>
</div>
</div>
<!--<ul class="img-pre-ul" id="xiangqing_pic_ul">
</ul>-->
</li>
</ul>
</div>
<div class="modal-footer">
</div>
</div>
......@@ -387,7 +515,7 @@
<!-- /.modal -->
</div>
<!--审核通过 备注-->
<div class="modal fade" id="modal_financial" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal fade" id="modal_financialremark" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
......@@ -399,11 +527,16 @@
</h4>
</div>
<div class="modal-body">
<textarea name="" rows="" cols="" placeholder="请填写备注">
备注: <textarea name="" rows="" cols=""style="width: 500px;height: 160px;" class="remark-financial">
</textarea>
</div>
<div class="modal-footer">
<button type="button btn2" class="btn btn-primary is-submit-pass">
保存
</button>
</div>
</div>
<!-- /.modal-content -->
......
......@@ -93,7 +93,7 @@
<div style="float: left;margin-top: 10px;">
<span class="btn btn-info btn3 search" id="maintable_search">搜索</span>
<span class="btn btn-info btn3" id="maintable_reset">重置</span>
<span class="btn btn-info btn3" id="export">统计</span>
<a class="btn btn-info report-total" href="#modal_financialremark" data-toggle="modal">统计</a>
</div>
</form>
</td>
......@@ -127,3 +127,43 @@
<div id="main_loading_pic">
<img src="/resource/image/jz2.gif">
</div>
<!--财务日报 统计-->
<div class="modal fade" id="modal_financialremark" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
×
</button>
<h4 class="modal-title">
财务日报统计
</h4>
</div>
<div class="modal-body">
<div>
佣金总计:<span class="total_commission"></span>元(未开业佣金:<span class="not_open_commission"></span>元,已开业佣金:<span class="open_commission"></span>元)
</div>
<div>
账上意向金:<span class="total_intention_recorded"></span>元(意向金入账:<span class="intention_recorded"></span>元,意向金调整:<span class="intention_adjustment"></span>元,意向金退款:<span class="intention_refund"></span>元)
</div>
<div>
账上保管金:<span class="total_custody_recorded"></span>元(保管金入账:<span class="intention_recorded"></span>元,保管金调整:<span class="intention_adjustment"></span>元,保管金退款:<span class="custody_refund"></span>元)
</div>
<div>
待处理款项总计:<span class="wait_total_fee"></span>
</div>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
......@@ -33,6 +33,13 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
e.stopPropagation();
bargain.getList(1); //一级审核搜索
});
//点击统计按钮
_doc.on('click', '.report-total', function(e) {
e.preventDefault();
e.stopPropagation();
bargain.getListTotal();
});
//分佣方 姓名下拉式
$(document).on("input", "#partical_name", function() { //手机号新增搜索客方
if($("#partical_name").val() == '') {
......@@ -163,6 +170,37 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
}
});
},
//统计
getListTotal: function() {
$.ajax({
url: '/index/getPaylogTotalPrice',
type: 'GET',
async: true,
data: {
},
dataType: 'json',
success: function(data) {
if(data.code == 200) {
$('.total_commission').html(data.data.total_commission);
$('.not_open_commission').html(data.data.not_open_commission);
$('.open_commission').html(data.data.open_commission);
$('.total_intention_recorded').html(data.data.total_intention_recorded);
$('.intention_recorded').html(data.data.intention_recorded);
$('.intention_adjustment').html(data.data.intention_adjustment);
$('.intention_refund').html(data.data.intention_refund);
$('.total_custody_recorded').html(data.data.total_custody_recorded);
$('.custody_recorded').html(data.data.custody_recorded);
$('.custody_adjustment').html(data.data.custody_adjustment);
$('.custody_refund').html(data.data.custody_refund);
$('.wait_total_fee').html(data.data.wait_total_fee);
}
}
});
},
getDistrictStoreList: function(id, fn) {
$.ajax({
url: '/index/getDistrictStoreList',
......
......@@ -29,8 +29,8 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
$('#create_time_start').hide();
$('.is-submit').hide();
$('.is-print').show();
$('.is-submit-pass').show();
$('.is-submit-passed').show();
$('.is-submit-pass-btn').show();
bargain.financialTime = getUrlParam('time');
}else{
bargain.isFinancial = 0;
......@@ -195,6 +195,7 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
//判断店长是否提交过
if(data.data.is_commit*1){//提交过
$('.is-submit').hide();
$('.tips-dian').html('日报已经提交过');
//总计commit_info
bargain.daily_id = data.data.commit_info.id;
$('#pay_a').html(data.data.commit_info.alipay);
......@@ -207,10 +208,14 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
$('#pay_h').html(data.data.commit_info.other_bank);
$('#pay_i').html();
$('#pay_j').html();
if(data.data.check_list){
$('.audit-records').hide();
}
}else{//未提交
$('.is-submit').html('提交');
$('.audit-records').hide();
$('.tips-dian').html('');
//未提交
$('#pay_a').html(data.data.total_info.alipay);
$('#pay_b').html(data.data.total_info.tenpay);
......@@ -228,7 +233,39 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
$('.adjustment_money').html(data.data.adjustment_money);
$('.recorded_money').html(data.data.recorded_money);
$('.remittance_money').html(data.data.remittance_money);
//判断是否是店长显示审核记录
if(bargain.isFinancial){
$('#maintable_list_total').show();
$('.tips-dian').hide();
}else{
$('.tips-dian').show();
$('#maintable_list_total').hide();
}
//财务审核状态判断
if(data.data.commit_info){
if(data.data.commit_info.status){
$('.is-submit-pass-btn').hide();
$('.is-submit-passed').hide();
$('#maintable_list_total').hide();
}else{
$('.is-submit-pass-btn').show();
$('.is-submit-passed').show();
$('#total_a').html(data.data.total_info.alipay);
$('#total_b').html(data.data.total_info.tenpay);
$('#total_c').html(data.data.total_info.realty_pay);
$('#total_d').html(data.data.total_info.family_pay);
$('#total_e').html(data.data.total_info.private_bank);
$('#total_f').html(data.data.total_info.cash);
$('#total_g').html(data.data.total_info.pos);
$('#total_h').html(data.data.total_info.other_bank);
$('#total_i').html();
$('#total_j').html();
}
}
/*分页代码*/
add_page(data.data.total, pageNo, bargain.pageSize, bargain.getList);
......@@ -320,6 +357,7 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
},
//获取图片
getPic: function() {
$('.result2,.result').remove(); //删除之前存在的图片 显示从接口获取的数据 用来区分新添加的 和 已经保存的
$.ajax({
url: '/index/getPayLogImg',
type: 'GET',
......@@ -331,8 +369,13 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
},
dataType: 'json',
success: function(data) {
if(data.code == 200 && data.data != null) {
fn && fn(data.data);
if(data.code == 200) {
//渲染已经有的列表
for(i = 0; i < data.data.img_info.length; i++) {
$('#container_body_img_area').append('<div class="result2"><img data-imgid="" src="{1}" alt="" class="diagram-image J_preview" data-bimg="{1}"/> <span class="span-del2"></span></div>'.stringFormatObj({
'1': urlDeal(data.data.img_path+data.data.img_info[i].img_name)
}));
};
}
}
});
......@@ -356,6 +399,7 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
"cash": $('#pay_f').html(),
"pos": $('#pay_g').html(),
"other_bank": $('#pay_h').html(),
'remark':$.trim($('.remark-financial').val()),
"operation_status" : bargain.operationStatus//0审核通过 1转为已审核
},
......@@ -363,6 +407,7 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
success: function(data) {
if(data.code == 200) {
alert('提交成功');
$("#modal_financialremark").modal('hide');//提交成功后 关闭弹窗
bargain.getList();
}else{
alert(data.msg);
......
......@@ -45,7 +45,8 @@
<td>[%= it[item]['is_dividend'] %]</td>
<td>[%= it[item]['remark'] %]</td>
<td>
<a class="btn1 btn-info" href="#modal_financial" data-recordid="[%= it[item]['id'] %]" data-toggle="modal">资料</a>
<a class="btn1 btn-info record-pic" href="#modal_financial" data-recordid="[%= it[item]['id'] %]" data-toggle="modal">资料</a>
</td>
</tr>
[% } %]
......@@ -71,7 +72,8 @@
<td>[%= it[item]['store_name']%]</td>
<td>[%= it[item]['receipt_number'] %]</td>
<td>
<a class="btn1 btn-info" href="#modal_financial" data-recordid="[%= it[item]['id'] %]" data-toggle="modal">资料</a>
<a class="btn1 btn-info record-pic" href="#modal_financial" data-recordid="[%= it[item]['id'] %]" data-toggle="modal">资料</a>
</td>
</tr>
[% } %]
......@@ -96,7 +98,8 @@
<td>[%= it[item]['store_name'] %]</td>
<td>[%= it[item]['receipt_number'] %]</td>
<td>
<a class="btn1 btn-info" href="#modal_financial" data-recordid="[%= it[item]['id'] %]" data-toggle="modal">资料</a>
<a class="btn1 btn-info record-pic" href="#modal_financial" data-recordid="[%= it[item]['id'] %]" data-toggle="modal">资料</a>
</td>
</tr>
[% } %]
......@@ -119,7 +122,8 @@
<td>[%= it[item]['receipt_number'] %]</td>
<td>[%= it[item]['money'] %]</td>
<td>
<a class="btn1 btn-info" href="#modal_financial" data-recordid="[%= it[item]['id'] %]" data-toggle="modal">资料</a>
<a class="btn1 btn-info record-pic" href="#modal_financial" data-recordid="[%= it[item]['id'] %]" 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