Commit 56a6a474 authored by xishifeng's avatar xishifeng

id补充

parent 6d6b9650
...@@ -167,6 +167,9 @@ ...@@ -167,6 +167,9 @@
<div class="detail-modal-body-sec"> <div class="detail-modal-body-sec">
<form class="detail-modal-bargaininfo-form"> <form class="detail-modal-bargaininfo-form">
<div class="detail-modal-bargaininfo-main-left"> <div class="detail-modal-bargaininfo-main-left">
<span>成交报告ID:</span>
<span id="bargaininfo_id_span"></span>
<br />
<span>商铺类型:</span> <span>商铺类型:</span>
<span id="bargaininfo_shop_type"></span> <span id="bargaininfo_shop_type"></span>
<br /> <br />
...@@ -186,6 +189,8 @@ ...@@ -186,6 +189,8 @@
</div> </div>
<div class="detail-modal-bargaininfo-main-right"> <div class="detail-modal-bargaininfo-main-right">
<span></span>
<br />
<span>是否开业:</span> <span>是否开业:</span>
<select class="form-control" id="bargaininfo_is_open" disabled="disabled"> <select class="form-control" id="bargaininfo_is_open" disabled="disabled">
<option value="0"></option> <option value="0"></option>
...@@ -233,6 +238,7 @@ ...@@ -233,6 +238,7 @@
<table class="table table-striped table-bordered table-hover table-condensed" id="maid_table_main"> <table class="table table-striped table-bordered table-hover table-condensed" id="maid_table_main">
<thead> <thead>
<tr> <tr>
<th class="text-center">分佣ID</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>
......
...@@ -147,6 +147,9 @@ ...@@ -147,6 +147,9 @@
<div class="detail-modal-body-sec"> <div class="detail-modal-body-sec">
<form class="detail-modal-bargaininfo-form"> <form class="detail-modal-bargaininfo-form">
<div class="detail-modal-bargaininfo-main-left"> <div class="detail-modal-bargaininfo-main-left">
<span>成交报告ID:</span>
<span id="bargaininfo_id_span"></span>
<br />
<span>商铺类型:</span> <span>商铺类型:</span>
<span id="bargaininfo_shop_type"></span> <span id="bargaininfo_shop_type"></span>
<br /> <br />
...@@ -166,6 +169,8 @@ ...@@ -166,6 +169,8 @@
</div> </div>
<div class="detail-modal-bargaininfo-main-right"> <div class="detail-modal-bargaininfo-main-right">
<span></span>
<br />
<span>是否开业:</span> <span>是否开业:</span>
<select class="form-control" id="bargaininfo_is_open" disabled="disabled"> <select class="form-control" id="bargaininfo_is_open" disabled="disabled">
<option value="0"></option> <option value="0"></option>
...@@ -213,6 +218,7 @@ ...@@ -213,6 +218,7 @@
<table class="table table-striped table-bordered table-hover table-condensed" id="maid_table_main"> <table class="table table-striped table-bordered table-hover table-condensed" id="maid_table_main">
<thead> <thead>
<tr> <tr>
<th class="text-center">分佣ID</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>
......
...@@ -114,6 +114,9 @@ ...@@ -114,6 +114,9 @@
<div class="detail-modal-body-sec"> <div class="detail-modal-body-sec">
<form class="detail-modal-bargaininfo-form"> <form class="detail-modal-bargaininfo-form">
<div class="detail-modal-bargaininfo-main-left"> <div class="detail-modal-bargaininfo-main-left">
<span>成交报告ID:</span>
<span id="bargaininfo_id_span"></span>
<br />
<span>商铺类型:</span> <span>商铺类型:</span>
<span id="bargaininfo_shop_type"></span> <span id="bargaininfo_shop_type"></span>
<br /> <br />
...@@ -133,6 +136,8 @@ ...@@ -133,6 +136,8 @@
</div> </div>
<div class="detail-modal-bargaininfo-main-right"> <div class="detail-modal-bargaininfo-main-right">
<span></span>
<br />
<span>是否开业:</span> <span>是否开业:</span>
<select class="form-control" id="bargaininfo_is_open"> <select class="form-control" id="bargaininfo_is_open">
<option value="0"></option> <option value="0"></option>
...@@ -183,6 +188,7 @@ ...@@ -183,6 +188,7 @@
<table class="table table-striped table-bordered table-hover table-condensed" id="maid_table_main"> <table class="table table-striped table-bordered table-hover table-condensed" id="maid_table_main">
<thead> <thead>
<tr> <tr>
<th class="text-center">分佣ID</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>
...@@ -239,6 +245,7 @@ ...@@ -239,6 +245,7 @@
<td class="text-center">合计</td> <td class="text-center">合计</td>
<td class="text-center"></td> <td class="text-center"></td>
<td class="text-center"></td> <td class="text-center"></td>
<td class="text-center"></td>
<td class="text-center" id="maid_count_total_rate"></td> <td class="text-center" id="maid_count_total_rate"></td>
<td class="text-center" id="maid_count_total_yingfen"></td> <td class="text-center" id="maid_count_total_yingfen"></td>
<td class="text-center" id="maid_count_total_yufen"></td> <td class="text-center" id="maid_count_total_yufen"></td>
......
...@@ -152,6 +152,9 @@ ...@@ -152,6 +152,9 @@
<div class="detail-modal-body-sec"> <div class="detail-modal-body-sec">
<form class="detail-modal-bargaininfo-form"> <form class="detail-modal-bargaininfo-form">
<div class="detail-modal-bargaininfo-main-left"> <div class="detail-modal-bargaininfo-main-left">
<span>成交报告ID:</span>
<span id="bargaininfo_id_span"></span>
<br />
<span>商铺类型:</span> <span>商铺类型:</span>
<span id="bargaininfo_shop_type"></span> <span id="bargaininfo_shop_type"></span>
<br /> <br />
...@@ -173,6 +176,8 @@ ...@@ -173,6 +176,8 @@
</div> </div>
<div class="detail-modal-bargaininfo-main-right"> <div class="detail-modal-bargaininfo-main-right">
<span></span>
<br />
<span>是否开业:</span> <span>是否开业:</span>
<select class="form-control" id="bargaininfo_is_open"> <select class="form-control" id="bargaininfo_is_open">
<option value="0"></option> <option value="0"></option>
...@@ -225,6 +230,7 @@ ...@@ -225,6 +230,7 @@
<table class="table table-striped table-bordered table-hover table-condensed" id="maid_table_main"> <table class="table table-striped table-bordered table-hover table-condensed" id="maid_table_main">
<thead> <thead>
<tr> <tr>
<th class="text-center">分佣ID</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>
...@@ -281,6 +287,7 @@ ...@@ -281,6 +287,7 @@
<td class="text-center">合计</td> <td class="text-center">合计</td>
<td class="text-center"></td> <td class="text-center"></td>
<td class="text-center"></td> <td class="text-center"></td>
<td class="text-center"></td>
<td class="text-center" id="maid_count_total_rate"></td> <td class="text-center" id="maid_count_total_rate"></td>
<td class="text-center" id="maid_count_total_yingfen"></td> <td class="text-center" id="maid_count_total_yingfen"></td>
<td class="text-center" id="maid_count_total_yufen"></td> <td class="text-center" id="maid_count_total_yufen"></td>
......
...@@ -444,6 +444,9 @@ ...@@ -444,6 +444,9 @@
<div class="detail-modal-body-sec"> <div class="detail-modal-body-sec">
<form class="detail-modal-bargaininfo-form"> <form class="detail-modal-bargaininfo-form">
<div class="detail-modal-bargaininfo-main-left"> <div class="detail-modal-bargaininfo-main-left">
<span>成交报告ID:</span>
<span id="bargaininfo_id_span"></span>
<br />
<span>商铺类型:</span> <span>商铺类型:</span>
<span id="bargaininfo_shop_type"></span> <span id="bargaininfo_shop_type"></span>
<br /> <br />
...@@ -463,6 +466,8 @@ ...@@ -463,6 +466,8 @@
</div> </div>
<div class="detail-modal-bargaininfo-main-right"> <div class="detail-modal-bargaininfo-main-right">
<span></span>
<br />
<span>是否开业:</span> <span>是否开业:</span>
<select class="form-control" id="bargaininfo_is_open"> <select class="form-control" id="bargaininfo_is_open">
<option value="0"></option> <option value="0"></option>
...@@ -513,6 +518,7 @@ ...@@ -513,6 +518,7 @@
<table class="table table-striped table-bordered table-hover table-condensed" id="maid_table_main"> <table class="table table-striped table-bordered table-hover table-condensed" id="maid_table_main">
<thead> <thead>
<tr> <tr>
<th class="text-center">分佣ID</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>
...@@ -536,6 +542,7 @@ ...@@ -536,6 +542,7 @@
<td class="text-center">合计</td> <td class="text-center">合计</td>
<td class="text-center"></td> <td class="text-center"></td>
<td class="text-center"></td> <td class="text-center"></td>
<td class="text-center"></td>
<td class="text-center" id="maid_count_total_rate"></td> <td class="text-center" id="maid_count_total_rate"></td>
<td class="text-center" id="maid_count_total_yingfen"></td> <td class="text-center" id="maid_count_total_yingfen"></td>
<td class="text-center" id="maid_count_total_yufen"></td> <td class="text-center" id="maid_count_total_yufen"></td>
......
...@@ -471,6 +471,7 @@ define(['doT', 'text!temp/commission_template_tpl.html', 'text!temp/reportList_n ...@@ -471,6 +471,7 @@ define(['doT', 'text!temp/commission_template_tpl.html', 'text!temp/reportList_n
success: function(data) { success: function(data) {
if(data.code == 200) { if(data.code == 200) {
if(data.data) { if(data.data) {
$('#bargaininfo_id_span').html(data.data.id);
$('#bargaininfo_shop_type').html(data.data.shop_type=='1'?'街铺':'商场'); $('#bargaininfo_shop_type').html(data.data.shop_type=='1'?'街铺':'商场');
$('#bargaininfo_is_open').val(data.data.is_open); $('#bargaininfo_is_open').val(data.data.is_open);
$('#bargaininfo_beizhu').val(data.data.content); $('#bargaininfo_beizhu').val(data.data.content);
......
...@@ -544,6 +544,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r ...@@ -544,6 +544,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
if(data.data) { if(data.data) {
bargain.detail_shop_id = data.data.house_id; bargain.detail_shop_id = data.data.house_id;
bargain.detail_user_id = data.data.user_id; bargain.detail_user_id = data.data.user_id;
$('#bargaininfo_id_span').html(data.data.id);
$('#bargaininfo_shop_type').html(data.data.shop_type=='1'?'街铺':'商场'); $('#bargaininfo_shop_type').html(data.data.shop_type=='1'?'街铺':'商场');
$('#bargaininfo_is_open').val(data.data.is_open); $('#bargaininfo_is_open').val(data.data.is_open);
$('#bargaininfo_beizhu').val(data.data.content); $('#bargaininfo_beizhu').val(data.data.content);
......
...@@ -458,6 +458,7 @@ define(['doT','text!temp/tax_template_tpl.html', 'text!temp/reportList_no_edit_t ...@@ -458,6 +458,7 @@ define(['doT','text!temp/tax_template_tpl.html', 'text!temp/reportList_no_edit_t
success: function(data) { success: function(data) {
if(data.code == 200) { if(data.code == 200) {
if(data.data) { if(data.data) {
$('#bargaininfo_id_span').html(data.data.id);
$('#bargaininfo_shop_type').html(data.data.shop_type=='1'?'街铺':'商场'); $('#bargaininfo_shop_type').html(data.data.shop_type=='1'?'街铺':'商场');
$('#bargaininfo_is_open').val(data.data.is_open); $('#bargaininfo_is_open').val(data.data.is_open);
$('#bargaininfo_beizhu').val(data.data.content); $('#bargaininfo_beizhu').val(data.data.content);
......
define(['doT', 'text!temp/wait_backout_template_tpl.html', 'css!style/home.css', 'css!style/report_list.css', 'ckfinder', 'ckfinderStart', 'pagination', 'bootstrapJs'], function(doT, template, template_tax, template_maid, template_maid_sub1) { define(['doT', 'text!temp/wait_backout_template_tpl.html', 'text!temp/reportList_no_edit_template_tpl.html', 'css!style/home.css', 'css!style/report_list.css', 'ckfinder', 'ckfinderStart', 'pagination', 'bootstrapJs'], function(doT, template, template_tax) {
bargain = { bargain = {
pageNo: 1, pageNo: 1,
/*第几页*/ /*第几页*/
...@@ -12,7 +12,7 @@ define(['doT', 'text!temp/wait_backout_template_tpl.html', 'css!style/home.css', ...@@ -12,7 +12,7 @@ define(['doT', 'text!temp/wait_backout_template_tpl.html', 'css!style/home.css',
maidTotalCommission: 0,//应收总佣金 maidTotalCommission: 0,//应收总佣金
init: function() { init: function() {
//初始化dot //初始化dot
$(document.body).append(template); $(document.body).append(template + template_tax);
bargain.getList(1); bargain.getList(1);
bargain.event(); bargain.event();
}, },
...@@ -521,6 +521,7 @@ define(['doT', 'text!temp/wait_backout_template_tpl.html', 'css!style/home.css', ...@@ -521,6 +521,7 @@ define(['doT', 'text!temp/wait_backout_template_tpl.html', 'css!style/home.css',
success: function(data) { success: function(data) {
if(data.code == 200) { if(data.code == 200) {
if(data.data) { if(data.data) {
$('#bargaininfo_id_span').html(data.data.id);
$('#bargaininfo_shop_type').html(data.data.shop_type=='1'?'街铺':'商场'); $('#bargaininfo_shop_type').html(data.data.shop_type=='1'?'街铺':'商场');
$('#bargaininfo_is_open').val(data.data.is_open); $('#bargaininfo_is_open').val(data.data.is_open);
$('#bargaininfo_beizhu').val(data.data.content); $('#bargaininfo_beizhu').val(data.data.content);
......
...@@ -88,6 +88,7 @@ ...@@ -88,6 +88,7 @@
[% var dealT=function(g){if(g&&(g!="null")){return g}else{return""}}; %] [% var dealT=function(g){if(g&&(g!="null")){return g}else{return""}}; %]
[% for(var i in it['data']){ %] [% for(var i in it['data']){ %]
<tr class="text-center" data-id="[%= it['data'][i]['id'] %]" data-agentid="[%= it['data'][i]['agent_id'] %]" data-role="[%= it['data'][i]['role'] %]" data-lastid="[%= it['data'][i]['last_commission_id'] %]"> <tr class="text-center" data-id="[%= it['data'][i]['id'] %]" data-agentid="[%= it['data'][i]['agent_id'] %]" data-role="[%= it['data'][i]['role'] %]" data-lastid="[%= it['data'][i]['last_commission_id'] %]">
<td>[%= it['data'][i]['id'] %]</td>
<td>[%= it['data'][i]['role_name'] %]</td> <td>[%= it['data'][i]['role_name'] %]</td>
<td>[%= it['data'][i]['agent'] %]</td> <td>[%= it['data'][i]['agent'] %]</td>
<td>[%= it['data'][i]['district_store'] %]</td> <td>[%= it['data'][i]['district_store'] %]</td>
......
...@@ -30,112 +30,4 @@ ...@@ -30,112 +30,4 @@
<td colspan="9" style="text-align:center;"> 暂无数据</td> <td colspan="9" style="text-align:center;"> 暂无数据</td>
</tr> </tr>
[% } %] [% } %]
</script>
<script id="reportList_shuiFee_list_tpl" type="text/template">
[% if(it && it.length && it.length>0) { %]
[% for(var item in it){ %]
[% var getInfoType=function(r){switch(Number(r)){case 1:return"盘方";case 2:return"客方";case 3:return"反签";case 4:return"独家";case 5:return"合作方";default:return"未定义"}}; %]
<section>
<div>
<table class="detail-modal-tax-table table-haveborder">
<tr>
<td>开票金额</td>
<td>[%= it[item]['total_fee'] %]</td>
<td>开票日期</td>
<td>[%= it[item]['operation_date'] %]</td>
</tr>
<tr>
<td>分佣方</td>
<td>业务员</td>
<td>分佣比例</td>
<td>税费</td>
</tr>
[% if(it[item]['fee_list'] && it[item]['fee_list'].length && it[item]['fee_list'].length>0) { %]
[% for(var item2 in it[item]['fee_list']){ %]
<tr data-feeid="[%= it[item]['fee_list'][item2]['fee_id'] %]">
<td>[%= getInfoType(it[item]['fee_list'][item2]['role']) %]</td>
<td>[%= it[item]['fee_list'][item2]['name']+'-'+it[item]['fee_list'][item2]['phone'] %]</td>
<td>[%= it[item]['fee_list'][item2]['scale'] %]</td>
<td>[%= it[item]['fee_list'][item2]['fee'] %]</td>
</tr>
[% } %]
[% }else{ %]
<tr>暂无</tr>
[% } %]
</table>
</div>
<div>
<!--<a class="btn btn-default" href="#modal_new_tax" data-recordid="[%= it[item]['id'] %]" data-toggle="modal">编辑</a>-->
<br /><br />
<!--<a class="btn btn-danger detail-modal-shuiFee-del-btn" href="javascript:;" data-recordid="[%= it[item]['id'] %]">删除</a>-->
</div>
</section>
[% } %]
[% }else{ %]
<section>暂无数据</section>
[% } %]
</script>
<script id="reportList_maid_list_tpl" type="text/template">
[% if(it['data'] && it['data'].length && it['data'].length>0) { %]
[% var dealT=function(g){if(g&&(g!="null")){return g}else{return""}}; %]
[% for(var i in it['data']){ %]
<tr class="text-center" data-id="[%= it['data'][i]['id'] %]" data-agentid="[%= it['data'][i]['agent_id'] %]" data-role="[%= it['data'][i]['role'] %]" data-lastid="[%= it['data'][i]['last_commission_id'] %]">
<td>[%= it['data'][i]['role_name'] %]</td>
<td>[%= it['data'][i]['agent'] %]</td>
<td>[%= it['data'][i]['district_store'] %]</td>
<td><span contenteditable class="detail-modal-maid-span-scale">[%= it['data'][i]['scale'] %]</span><span>%</span></td>
<td contenteditable class="detail-modal-maid-td-should-commission">[%= it['data'][i]['scale_fee'] %]</td>
<td colspan="7" class="detail-modal-maid-mix-td oh">
[% if(it['data'][i]['partial_commission'] && it['data'][i]['partial_commission'].length && it['data'][i]['partial_commission'].length>0) { %]
[% for(var j in it['data'][i]['partial_commission']){ %]
<div class="oh" data-id="[%= it['data'][i]['partial_commission'][j]['id'] %]">
<span contenteditable class="detail-modal-maid-span-real-fee">[%= it['data'][i]['partial_commission'][j]['real_fee'] %]</span>
<span contenteditable class="detail-modal-maid-span-service-charge">[%= it['data'][i]['partial_commission'][j]['service_charge'] %]</span>
<span contenteditable class="detail-modal-maid-span-charity-fund">[%= it['data'][i]['partial_commission'][j]['charity_fund'] %]</span>
<span contenteditable class="detail-modal-maid-span-cash">[%= it['data'][i]['partial_commission'][j]['cash'] %]</span>
<span contenteditable class="detail-modal-maid-span-practical-fee">[%= it['data'][i]['partial_commission'][j]['practical_fee'] %]</span>
<span class="detail-modal-maid-span-date" data-dateid="[%= it['data'][i]['partial_commission'][j]['income_time']['id'] %]">[%= it['data'][i]['partial_commission'][j]['income_time']['income_time'] %]</span>
<span class="detail-modal-maid-span-time">[%= dealT(it['data'][i]['partial_commission'][j]['confirm_date']) %]</span>
</div>
[% } %]
[% }else{ %]
<div class="oh">
<span contenteditable class="detail-modal-maid-span-real-fee"></span>
<span contenteditable class="detail-modal-maid-span-service-charge">0</span>
<span contenteditable class="detail-modal-maid-span-charity-fund">0</span>
<span contenteditable class="detail-modal-maid-span-cash">0</span>
<span contenteditable class="detail-modal-maid-span-practical-fee"></span>
<span class="detail-modal-maid-span-date" data-dateid=""></span>
<span class="detail-modal-maid-span-time"></span>
</div>
[% } %]
</td>
<td>
[% if(check_auth('account_commission')) { %]
<!--<a href="#modal_new_maid" class="btn-success detail-modal-maid-a-edit" data-toggle="modal">编辑</a>-->
[% } %]
[% if(check_auth('index/delPartialCommission') && (it['data'][i]['father_id'] != 0)) { %]
<!--<a href="javascript:;" class="btn-danger detail-modal-maid-a-del">删除</a>-->
[% } %]
</td>
</tr>
[% } %]
[% }else{ %]
<tr>
<td colspan="11" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
<script id="reportList_maid_sub1_list_tpl" type="text/template">
<div class="oh">
<span contenteditable class="detail-modal-maid-span-real-fee"></span>
<span contenteditable class="detail-modal-maid-span-service-charge">0</span>
<span contenteditable class="detail-modal-maid-span-charity-fund">0</span>
<span contenteditable class="detail-modal-maid-span-cash">0</span>
<span contenteditable class="detail-modal-maid-span-practical-fee"></span>
<span class="detail-modal-maid-span-time"></span>
</div>
</script> </script>
\ No newline at end of file
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