Commit b08411be authored by xishifeng's avatar xishifeng

分佣提成1

parent de0391bc
...@@ -161,8 +161,8 @@ ...@@ -161,8 +161,8 @@
<th class="text-center">确认时间</th> <th class="text-center">确认时间</th>
</tr> </tr>
</thead> </thead>
<tbody class="text-center"> <tbody class="text-center" id="maid_new_table_list">
<tr> <!--<tr>
<td>盘方</td> <td>盘方</td>
<td>刘丹丹-13918937741</td> <td>刘丹丹-13918937741</td>
<td>同联一部南京东路店</td> <td>同联一部南京东路店</td>
...@@ -195,7 +195,7 @@ ...@@ -195,7 +195,7 @@
<span></span> <span></span>
</div> </div>
</td> </td>
</tr> </tr>-->
</tbody> </tbody>
</table> </table>
...@@ -285,18 +285,13 @@ ...@@ -285,18 +285,13 @@
<div class="modal-dialog"> <div class="modal-dialog">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
× <h4 class="modal-title">新增分佣提成</h4>
</button>
<h4 class="modal-title">
新增分佣提成
</h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<div class="modal-body" id=""> <div class="modal-body" id="addmaid_input_area">
<!-- 新增分佣提成 --> <div>
<form> <span>分佣方:</span>
分佣方:&nbsp;&nbsp;&nbsp;
<select class="form-control form-control-one" id="is_carefully_chosen"> <select class="form-control form-control-one" id="is_carefully_chosen">
<option value="0">请选择</option> <option value="0">请选择</option>
<option value="1">盘方</option> <option value="1">盘方</option>
...@@ -304,13 +299,20 @@ ...@@ -304,13 +299,20 @@
<option value="3">反签</option> <option value="3">反签</option>
<option value="4">独家</option> <option value="4">独家</option>
<option value="5">合作方</option> <option value="5">合作方</option>
</select><br> </select>
<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> </div>
<span>所属门店:</span><input class="form-control form-control-one" data-rule-phoneus="false" data-rule-required="false" id=" " placeholder="" type="text" value=""><br> <div>
<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" type="text" />
<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> </div>
</form> <div>
<!-- 新增分佣提成 --> <span>所属门店:</span><input class="form-control form-control-one" type="text" />
</div>
<div>
<span>分佣比例:</span><input class="form-control form-control-one" type="text" />%
</div>
<div>
<span>应分佣金:</span><input class="form-control form-control-one" type="text" />
</div>
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
......
...@@ -7,6 +7,10 @@ detail-modal-maid- ...@@ -7,6 +7,10 @@ detail-modal-maid-
detail-modal-tax- detail-modal-tax-
pass-modal- pass-modal-
addtax-modal- addtax-modal-
addmaid-modal-
bargaininfo_
addtax_
* *
* *
* *
...@@ -187,6 +191,12 @@ addtax-modal- ...@@ -187,6 +191,12 @@ addtax-modal-
/********************/ /********************/
/*新增分佣提成弹框部分样式*/
#addmaid_input_area>div>span:nth-of-type(1){
display: inline-block;
width: 50px;
}
.form-control-one { .form-control-one {
display: inline-block; display: inline-block;
width: 40%; width: 40%;
......
define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_shuiFee_template_tpl.html', 'css!style/home.css', 'css!style/report_list.css', 'ckfinder', 'ckfinderStart', 'pagination', 'bootstrapJs'], function(doT, template, template2) { define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_shuiFee_template_tpl.html', 'text!temp/reportList_maid_template_tpl.html', 'css!style/home.css', 'css!style/report_list.css', 'ckfinder', 'ckfinderStart', 'pagination', 'bootstrapJs'], function(doT, template, template_tax, template_maid) {
bargain = { bargain = {
pageNo: 1, pageNo: 1,
/*第几页*/ /*第几页*/
...@@ -9,8 +9,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s ...@@ -9,8 +9,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
bargain_id: '', bargain_id: '',
init: function() { init: function() {
//初始化dot //初始化dot
$(document.body).append(template); $(document.body).append(template + template_tax + template_maid);
$(document.body).append(template2);
bargain.getList(1); bargain.getList(1);
bargain.event(); bargain.event();
}, },
...@@ -115,7 +114,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s ...@@ -115,7 +114,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
//详情弹出框,成交信息里的实收佣金相关的事件 //详情弹出框,成交信息里的实收佣金相关的事件
var _iYJAAObj = $('.detail-modal-bargaininfo-commission-addarea'); var _iYJAAObj = $('.detail-modal-bargaininfo-commission-addarea');
_doc.on('click', '#bargaininfo_commission_add_btn', function(e){ _doc.on('click', '#bargaininfo_commission_add_btn>img', function(e){
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
if($('.detail-modal-bargaininfo-commission-addarea>div').length>=5){ if($('.detail-modal-bargaininfo-commission-addarea>div').length>=5){
...@@ -280,6 +279,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s ...@@ -280,6 +279,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
}); });
}, },
maidShow: function() { maidShow: function() {
$("#maid_new_table_list").html('');
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
url: '/index/commissionList', url: '/index/commissionList',
...@@ -292,7 +292,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s ...@@ -292,7 +292,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
success: function(_data) { success: function(_data) {
if(typeof _data === 'object') { if(typeof _data === 'object') {
if(_data['code'] == '200') { if(_data['code'] == '200') {
$("#maid_new_table_list").html(doT.template($('#reportList_maid_list_tpl').html())(_data));
} else { } else {
layerTipsX(_data['msg']); layerTipsX(_data['msg']);
} }
......
<script id="reportList_maid_list_tpl" type="text/template">
[% if(it['data'] && it['data'].length && it['data'].length>0) { %]
[% for(var i in it['data']){ %]
<tr class="text-center" data-id="[%= it['data'][i]['id'] %]">
<td>[%= it['data'][i]['role_name'] %]</td>
<td>[%= it['data'][i]['agent'] %]</td>
<td>[%= it['data'][i]['district_store'] %]</td>
<td contenteditable>[%= it['data'][i]['scale'] %]%</td>
<td contenteditable>[%= it['data'][i]['scale_fee'] %]</td>
<td colspan="6" 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) { %]
<div class="oh">
<span contenteditable>2</span>
<span contenteditable>2</span>
<span contenteditable>2</span>
<span contenteditable>2</span>
<span contenteditable>2</span>
<span>4</span>
</div>
[% }else{ %]
<div class="oh">
<span contenteditable></span>
<span contenteditable></span>
<span contenteditable></span>
<span contenteditable></span>
<span contenteditable></span>
<span></span>
</div>
[% } %]
</td>
</tr>
[% } %]
[% }else{ %]
<tr>
<td colspan="11" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
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