Commit 3f3ba255 authored by agping's avatar agping

财务修改

parent e298e283
...@@ -97,85 +97,9 @@ ...@@ -97,85 +97,9 @@
</div> </div>
</div> </div>
</div> </div>
<!-- 弹出框 编辑 -->
<div class="modal fade" id="modal-edit" 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">
<span class="btn btn-info" id="information">成交信息</span>
<span class="btn btn-default caozuo" id="fees">分佣提成</span>
<span class="btn btn-default" id="records">收款记录</span>
</h4>
</div>
<div class="modal-body modal-body-two">
<div class="Tswitch">
<div class="left">
<span>商铺地址:</span><span class="internal_address"></span><br>
<span>客户姓名:</span><span class="user_name"></span><br>
<span>应收总佣金:</span>&nbsp;<input class="form-control btn_2 commission" type="text"><br>
<span>实收佣金:</span>&nbsp;<input class="form-control btn_2 practical_fee" type="text"><br>
</div>
<div class="right">
<span>商铺名称:</span><span class="internal_title"></span><br>
<span>客户电话:</span><span class="user_phone"></span><br>
<span>提交日期:</span><span class="create_time"></span><br>
</div>
<input type="hidden" class="page-pass"/>
</div>
<div class="Tswitch Tswitch_one">
<!--分佣提成-->
<a class="btn btn-success edit_new" href="#modal-new" data-toggle="modal">新增</a>
<table class="table table-striped table-bordered table-hover table-condensed" id="caozuo_hide">
<thead>
<tr>
<th class="text-center">分佣方</th>
<th class="text-center">业务员</th>
<th class="text-center">所属门店</th>
<th class="text-center">分佣比例</th>
<th class="text-center">应分佣金(元)</th>
<th class="text-center">实分佣金</th>
<th class="text-center">备注</th>
</tr>
</thead>
<tbody class="text-center" id="caozuo_table">
</table>
<!--分佣提成-->
</div>
<div class="Tswitch Tswitch_two">
<table class="table table-striped table-bordered table-hover table-condensed" id="tcaozuo_hide">
<thead>
<tr>
<th class="text-center">入账时间</th>
<th class="text-center">入账金额(元)</th>
<th class="text-center">入账类型</th>
<th class="text-center">入账方式</th>
<th class="text-center">操作人</th>
</tr>
</thead>
<tbody class="text-center" id="tcaozuo_table">
</table> <!-- 弹出框 驳回 -->
</div> <div class="modal fade" id="modal-rejected" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<br><br><br><br>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">取消
</button>
<button type="button" class="btn btn-primary" data-dismiss="modal" id="confirm_edit">
确定
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
<!-- 弹出框 通过 -->
<div class="modal fade" id="modal-pass" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog"> <div class="modal-dialog">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
...@@ -183,18 +107,18 @@ ...@@ -183,18 +107,18 @@
× ×
</button> </button>
<h4 class="modal-title"> <h4 class="modal-title">
通过 驳回
</h4> </h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<label class="control-label">备注:</label> <label class="control-label">备注:</label>
<textarea class="form-control" rows="5" id="note_text"></textarea> <textarea class="form-control" rows="5" id="rejected_text"></textarea>
<!-- <span class="use-span text-danger">(必填)</span> --> <!-- <span class="use-span text-danger">(必填)</span> -->
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">取消 <button type="button" class="btn btn-default" data-dismiss="modal">取消
</button> </button>
<button type="button" class="btn btn-info" data-dismiss="modal" id="confirm_pass"> <button type="button" class="btn btn-info" data-dismiss="modal" id="confirm_rejected">
确定 确定
</button> </button>
</div> </div>
...@@ -202,8 +126,8 @@ ...@@ -202,8 +126,8 @@
</div><!-- /.modal --> </div><!-- /.modal -->
</div> </div>
<!-- 弹出框 跟进 --> <!-- 弹出框 通过 -->
<div class="modal fade" id="modal-follow" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal fade" id="modal-pass" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog"> <div class="modal-dialog">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
...@@ -211,19 +135,19 @@ ...@@ -211,19 +135,19 @@
× ×
</button> </button>
<h4 class="modal-title"> <h4 class="modal-title">
跟进 通过
</h4> </h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<label class="control-label">备注:</label> <label class="control-label">备注:</label>
<textarea class="form-control" rows="5" id="note_text_re"></textarea> <textarea class="form-control" rows="5" id="note_text"></textarea>
<!-- <span class="use-span text-danger">(必填)</span> --> <!-- <span class="use-span text-danger">(必填)</span> -->
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">取消 <button type="button" class="btn btn-default" data-dismiss="modal">取消
</button> </button>
<button type="button" class="btn btn-primary" data-dismiss="modal" id="confirm_follow"> <button type="button" class="btn btn-info" data-dismiss="modal" id="confirm_pass">
确定 确定
</button> </button>
</div> </div>
</div><!-- /.modal-content --> </div><!-- /.modal-content -->
...@@ -257,48 +181,6 @@ ...@@ -257,48 +181,6 @@
</div><!-- /.modal-content --> </div><!-- /.modal-content -->
</div><!-- /.modal --> </div><!-- /.modal -->
</div> </div>
<!-- 分佣提成新增 -->
<div class="modal fade" id="modal-new" 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 class="modal-body" id="">
<!-- 新增分佣提成 -->
<form id="form_search">
分佣方:&nbsp;&nbsp;&nbsp;<select class="form-control form-control-one" id="is_carefully_chosen">
<option value="0">请选择</option>
<option value="1">盘方</option>
<option value="2">客方</option>
<option value="3">反签</option>
<option value="4">独家</option>
<option value="5">合作方</option>
</select><br>
<span>业务员:&nbsp;&nbsp;&nbsp;</span><input class="form-control form-control-one" data-rule-phoneus="false" data-rule-required="false" id=" " placeholder="" type="text" value=""><br>
<span>所属门店:</span><input class="form-control form-control-one" data-rule-phoneus="false" data-rule-required="false" id=" " placeholder="" type="text" value=""><br>
<span>分佣比例:</span><input class="form-control form-control-one" data-rule-phoneus="false" data-rule-required="false" id="commission-rate" placeholder="" type="text" value=""><br>
<span>应分佣金:</span><input class="form-control form-control-one" data-rule-phoneus="false" data-rule-required="false" id="should-commission" placeholder="" type="text" value=""><br>
</form>
<!-- 新增分佣提成 -->
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">取消
</button>
<button type="button" class="btn btn-primary" data-dismiss="modal" id="new-commission">
确定
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
......
...@@ -147,7 +147,21 @@ ...@@ -147,7 +147,21 @@
<!--分佣提成--> <!--分佣提成-->
</div> </div>
<div class="Tswitch Tswitch_two">收款记录</div> <div class="Tswitch Tswitch_two">
<table class="table table-striped table-bordered table-hover table-condensed" id="tcaozuo_hide">
<thead>
<tr>
<th class="text-center">入账时间</th>
<th class="text-center">入账金额(元)</th>
<th class="text-center">入账类型</th>
<th class="text-center">入账方式</th>
<th class="text-center">操作人</th>
</tr>
</thead>
<tbody class="text-center" id="tcaozuo_table">
</table>
</div>
<br><br><br><br> <br><br><br><br>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
......
...@@ -34,8 +34,17 @@ define(['doT', 'text!temp/refund_template_tpl.html', 'css!style/home.css', 'ckfi ...@@ -34,8 +34,17 @@ define(['doT', 'text!temp/refund_template_tpl.html', 'css!style/home.css', 'ckfi
follow.house_id = $ (this).attr ("data-id"); follow.house_id = $ (this).attr ("data-id");
follow.Edit(); follow.Edit();
}); });
$ (document).delegate ("#confirm_edit", "click", function () {//点击操作跟进详情 $ (document).delegate (".is_pass", "click", function () {//点击编辑
follow.confirmEdit(); follow.house_id = $ (this).attr ("data-id");
console.log(follow.house_id);
});
$ (document).delegate ("#modal-rejected", "click", function () {//点击编辑
follow.house_id = $ (this).attr ("data-id");
console.log(follow.house_id);
});
$ (document).delegate ("#confirm_rejected", "click", function () {//点击驳回确定
follow.confirmRejected();
}); });
$ (document).delegate (".caozuo", "click", function () {//点击分佣提成 $ (document).delegate (".caozuo", "click", function () {//点击分佣提成
follow.Caozuo(); follow.Caozuo();
...@@ -172,24 +181,39 @@ define(['doT', 'text!temp/refund_template_tpl.html', 'css!style/home.css', 'ckfi ...@@ -172,24 +181,39 @@ define(['doT', 'text!temp/refund_template_tpl.html', 'css!style/home.css', 'ckfi
} }
}); });
}, },
confirmEdit:function(){//修改报告详情 confirmRejected:function(){//驳回提交
$.ajax({ console.log($('.btn-info').index());
'type': 'POST', var a_url;
'url' : '/index/editBargainInfo', if($('.btn-info').index()==0){
data: { "id":follow.house_id, a_url="/index/checkReportAttache/0"
"scale_fee":$(".commission").val(), };
"practical_fee":$(".practical_fee").val() if ($('.btn-info').index()==1) {
}, a_url="/index/checkReportManager/1"
dataType: "json", };
success: function(data){ if ($('.btn-info').index()==2) {
if(data.code == 200){ a_url="/index/checkReportMajordomo/2"
if (data.data) { };
} if ($('.btn-info').index()==3) {
} else { a_url="/index/checkReportCashier/3"
alert('获取失败!'); };
} // console.log($('.btn-info').index());
} console.log(follow.house_id);
}); $.ajax({
'type': 'POST',
'url' : a_url,
data: {"id":follow.house_id,
"remark":$("#rejected_text").val(),
},
dataType: "json",
success: function(data){
if(data.code == 200){
if (data.data) {
}
} else {
alert('获取失败!');
}
}
});
}, },
//通过 //通过
confirmPass:function(){//点击通过 confirmPass:function(){//点击通过
......
...@@ -33,6 +33,10 @@ define(['doT', 'text!temp/refundorder_template_tpl.html', 'css!style/home.css', ...@@ -33,6 +33,10 @@ define(['doT', 'text!temp/refundorder_template_tpl.html', 'css!style/home.css',
$ (document).delegate (".edit", "click", function () {//点击操作跟进详情 $ (document).delegate (".edit", "click", function () {//点击操作跟进详情
follow.house_id = $ (this).attr ("data-id"); follow.house_id = $ (this).attr ("data-id");
follow.Edit(); follow.Edit();
});
$ (document).delegate (".is_pass", "click", function () {//点击编辑
follow.house_id = $ (this).attr ("data-id");
console.log(follow.house_id);
}); });
$ (document).delegate ("#confirm_edit", "click", function () {//点击操作跟进详情 $ (document).delegate ("#confirm_edit", "click", function () {//点击操作跟进详情
follow.confirmEdit(); follow.confirmEdit();
......
...@@ -147,38 +147,42 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', ' ...@@ -147,38 +147,42 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
}, },
//通过 //通过
confirmPass:function(){//点击通过 confirmPass:function(){//点击通过
var a_url; var a_url;
if($('.btn-info').index()==0){ if($('.btn-info').index()==0){
a_url="/index/checkReportAttache/0" a_url="/index/checkReportAttache/0"
}; };
if ($('.btn-info').index()==1) { if ($('.btn-info').index()==1) {
a_url="/index/checkReportManager/1" a_url="/index/checkReportManager/1"
}; };
if ($('.btn-info').index()==2) { if ($('.btn-info').index()==2) {
a_url="/index/checkReportMajordomo/2" a_url="/index/checkReportMajordomo/2"
}; };
if ($('.btn-info').index()==3) { if ($('.btn-info').index()==3) {
a_url="/index/checkReportCashier/3" a_url="/index/checkReportCashier/3"
}; };
// console.log($('.btn-info').index());
$.ajax({ console.log(follow.house_id);
'type': 'POST', $.ajax({
'url' : a_url, 'type': 'POST',
data: {"id":bargain.bargain_id, 'url' : a_url,
"source":1, data: {"id":bargain.bargain_id,
"status":10, "source":1,
"remark":$("#note_text").val(), "status":10,
}, "remark":$("#note_text").val(),
dataType: "json", },
success: function(data){ dataType: "json",
if(data.code == 200){ success: function(data){
bargain.getList(1); if(data.code == 200){
} else { if (data.data) {
alert('通过失败!'); console.log(666);
} }
} } else {
}); alert('获取失败!');
}, }
}
});
},
Caozuo:function(){//分佣提成数据 Caozuo:function(){//分佣提成数据
$.ajax({ $.ajax({
'type': 'GET', 'type': 'GET',
......
...@@ -47,6 +47,10 @@ define (['doT', 'text!temp/statement_template_tpl.html', 'css!style/home.css','c ...@@ -47,6 +47,10 @@ define (['doT', 'text!temp/statement_template_tpl.html', 'css!style/home.css','c
$ (document).delegate (".edit", "click", function () {//点击编辑 $ (document).delegate (".edit", "click", function () {//点击编辑
business.house_id = $ (this).attr ("data-id"); business.house_id = $ (this).attr ("data-id");
business.Edit(); business.Edit();
});
$ (document).delegate (".is_pass", "click", function () {//点击编辑
follow.house_id = $ (this).attr ("data-id");
console.log(follow.house_id);
}); });
$ (document).delegate ("#confirm_edit", "click", function () {//点击编辑确定 $ (document).delegate ("#confirm_edit", "click", function () {//点击编辑确定
business.confirmEdit(); business.confirmEdit();
......
...@@ -43,6 +43,10 @@ define (['doT', 'text!temp/statement_backout_template_tpl.html', 'css!style/home ...@@ -43,6 +43,10 @@ define (['doT', 'text!temp/statement_backout_template_tpl.html', 'css!style/home
$ (document).delegate (".edit", "click", function () {//点击编辑 $ (document).delegate (".edit", "click", function () {//点击编辑
business.house_id = $ (this).attr ("data-id"); business.house_id = $ (this).attr ("data-id");
business.Edit(); business.Edit();
});
$ (document).delegate (".is_pass", "click", function () {//点击编辑
follow.house_id = $ (this).attr ("data-id");
console.log(follow.house_id);
}); });
$ (document).delegate ("#confirm_edit", "click", function () {//点击确定编辑 $ (document).delegate ("#confirm_edit", "click", function () {//点击确定编辑
business.confirmEdit(); business.confirmEdit();
......
...@@ -33,6 +33,10 @@ define(['doT', 'text!temp/wait_backout_template_tpl.html', 'css!style/home.css', ...@@ -33,6 +33,10 @@ define(['doT', 'text!temp/wait_backout_template_tpl.html', 'css!style/home.css',
$ (document).delegate (".edit", "click", function () {//点击操作跟进详情 $ (document).delegate (".edit", "click", function () {//点击操作跟进详情
follow.house_id = $ (this).attr ("data-id"); follow.house_id = $ (this).attr ("data-id");
follow.Edit(); follow.Edit();
});
$ (document).delegate (".is_pass", "click", function () {//点击编辑
follow.house_id = $ (this).attr ("data-id");
console.log(follow.house_id);
}); });
$ (document).delegate ("#confirm_edit", "click", function () {//点击操作跟进详情 $ (document).delegate ("#confirm_edit", "click", function () {//点击操作跟进详情
follow.confirmEdit(); follow.confirmEdit();
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<td>[%= it[item]['refund_money'] %]</td> <td>[%= it[item]['refund_money'] %]</td>
<td>[%= it[item]['card_no'] %]</td> <td>[%= it[item]['card_no'] %]</td>
<td> <td>
<a class="btn1 btn-success edit" href="#modal-edit" data-toggle="modal" data-id='[%= it[item]["id"] %]'>驳回</a> <a class="btn1 btn-success edit" href="#modal-rejected" data-toggle="modal" data-id='[%= it[item]["id"] %]'>驳回</a>
<a class="btn1 btn-success is_pass" href="#modal-pass" data-toggle="modal" data-id='[%= it[item]["id"] %]'>通过</a> <a class="btn1 btn-success is_pass" href="#modal-pass" data-toggle="modal" data-id='[%= it[item]["id"] %]'>通过</a>
<a class="btn1 btn-success timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["id"] %]'>时间轴</a> <a class="btn1 btn-success timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["id"] %]'>时间轴</a>
</td> </td>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<td> <td>
<a class="btn1 btn-success edit" href="#modal-edit" data-toggle="modal" data-id='[%= it[item]["id"] %]'>编辑</a> <a class="btn1 btn-success edit" href="#modal-edit" data-toggle="modal" data-id='[%= it[item]["id"] %]'>编辑</a>
<a class="btn1 btn-success is_pass" href="#modal-pass" data-toggle="modal" data-id='[%= it[item]["id"] %]'>通过</a> <a class="btn1 btn-success is_pass" href="#modal-pass" data-toggle="modal" data-id='[%= it[item]["id"] %]'>通过</a>
<a class="btn1 btn-success genjing" href="#modal-follow" data-toggle="modal" data-id='[%= it[item]["id"] %]' >跟进</a> <!-- <a class="btn1 btn-success genjing" href="#modal-follow" data-toggle="modal" data-id='[%= it[item]["id"] %]' >跟进</a> -->
<a class="btn1 btn-success timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["id"] %]'>时间轴</a> <a class="btn1 btn-success timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["id"] %]'>时间轴</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