|
|
@ -67,6 +67,8 @@
|
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"charset="UTF-8"></script>
|
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"charset="UTF-8"></script>
|
|
|
|
<script type="text/javascript" src="__STATIC__/laydate/laydate.js"></script>
|
|
|
|
<script type="text/javascript" src="__STATIC__/laydate/laydate.js"></script>
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
|
|
|
|
|
|
|
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
|
|
|
<div class="tab-wrap" id='pop-form' hidden>
|
|
|
|
<div class="tab-wrap" id='pop-form' hidden>
|
|
|
|
<div class="tab-content tabcon1711">
|
|
|
|
<div class="tab-content tabcon1711">
|
|
|
|
<!-- 表单 -->
|
|
|
|
<!-- 表单 -->
|
|
|
@ -209,7 +211,7 @@
|
|
|
|
<td class="reward-td promote-account"><?=$details[1][$i]['promote_account'] ?? '-'?></td>
|
|
|
|
<td class="reward-td promote-account"><?=$details[1][$i]['promote_account'] ?? '-'?></td>
|
|
|
|
<td class="reward-td settlement-type"><?=$settlementTypes[$details[1][$i]['settlement_type']] ?? '-'?></td>
|
|
|
|
<td class="reward-td settlement-type"><?=$settlementTypes[$details[1][$i]['settlement_type']] ?? '-'?></td>
|
|
|
|
<td class='reward-amount reward-td amount'><?=$details[1][$i]['amount'] ?? '-'?></td>
|
|
|
|
<td class='reward-amount reward-td amount'><?=$details[1][$i]['amount'] ?? '-'?></td>
|
|
|
|
<td class='reward-opt reward-td opt'><?php if (isset($details[1][$i])): php?><a onclick="removeItem(this, 'reward')">删除</a><?php else: php?><a onclick="openForm()">添加</a><?php endif; php?></td>
|
|
|
|
<td class='reward-opt reward-td opt'><?php if (isset($details[1][$i])): php?><a onclick="removeItem(this, 'reward')">删除</a><?php else: php?> <?php endif; php?></td>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 惩罚信息 -->
|
|
|
|
<!-- 惩罚信息 -->
|
|
|
|
<td class="punish-data-info" hidden>
|
|
|
|
<td class="punish-data-info" hidden>
|
|
|
@ -220,7 +222,7 @@
|
|
|
|
<td class="punish-td promote-account"><?=$details[2][$i]['promote_account'] ?? ''?></td>
|
|
|
|
<td class="punish-td promote-account"><?=$details[2][$i]['promote_account'] ?? ''?></td>
|
|
|
|
<td class="punish-td settlement-type"><?=$settlementTypes[$details[2][$i]['settlement_type']] ?? ''?></td>
|
|
|
|
<td class="punish-td settlement-type"><?=$settlementTypes[$details[2][$i]['settlement_type']] ?? ''?></td>
|
|
|
|
<td class='punish-amount punish-td amount'><?=$details[2][$i]['amount'] ?? ''?></td>
|
|
|
|
<td class='punish-amount punish-td amount'><?=$details[2][$i]['amount'] ?? ''?></td>
|
|
|
|
<td class='punish-opt punish-td opt'><?php if (isset($details[2][$i])): php?><a onclick="removeItem(this, 'punish')">删除</a><?php else: php?><a onclick="openForm()">添加</a><?php endif; php?></td>
|
|
|
|
<td class='punish-opt punish-td opt'><?php if (isset($details[2][$i])): php?><a onclick="removeItem(this, 'punish')">删除</a><?php else: php?> <?php endif; php?></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<?php endfor;?>
|
|
|
|
<?php endfor;?>
|
|
|
|
<tr id='total-amount'>
|
|
|
|
<tr id='total-amount'>
|
|
|
@ -229,13 +231,13 @@
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td>合计</td>
|
|
|
|
<td>合计</td>
|
|
|
|
<td id='total-reward-amount'>{$data['rewardAmount']}</td>
|
|
|
|
<td id='total-reward-amount'>{$data['rewardAmount']}</td>
|
|
|
|
<td><a onclick="openForm()">添加</a></td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td>合计</td>
|
|
|
|
<td>合计</td>
|
|
|
|
<td id='total-punish-amount'>{$data['punishAmount']}</td>
|
|
|
|
<td id='total-punish-amount'>{$data['punishAmount']}</td>
|
|
|
|
<td><a onclick="openForm()">添加</a></td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
@ -341,6 +343,8 @@
|
|
|
|
$(".user-account:last").after(a);
|
|
|
|
$(".user-account:last").after(a);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(".select_gallery").select2();
|
|
|
|
|
|
|
|
|
|
|
|
$(document).on('click', '.bnt_remove', function(){
|
|
|
|
$(document).on('click', '.bnt_remove', function(){
|
|
|
|
$(this).parents('li').remove();
|
|
|
|
$(this).parents('li').remove();
|
|
|
|
countAmount();
|
|
|
|
countAmount();
|
|
|
@ -373,6 +377,7 @@
|
|
|
|
title:"新增",
|
|
|
|
title:"新增",
|
|
|
|
area:['30%','60%'],
|
|
|
|
area:['30%','60%'],
|
|
|
|
content: $('#pop-form'),
|
|
|
|
content: $('#pop-form'),
|
|
|
|
|
|
|
|
zIndex: 1,
|
|
|
|
end : function(){
|
|
|
|
end : function(){
|
|
|
|
$('#item-form')[0].reset() // 重置数据
|
|
|
|
$('#item-form')[0].reset() // 重置数据
|
|
|
|
$('#form-company-name').attr('readonly', false);
|
|
|
|
$('#form-company-name').attr('readonly', false);
|
|
|
@ -401,7 +406,7 @@
|
|
|
|
if (index < 6) {
|
|
|
|
if (index < 6) {
|
|
|
|
$(item).html('');
|
|
|
|
$(item).html('');
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$(item).html('<a onclick="openForm()">添加</a>')
|
|
|
|
//$(item).html('<a onclick="openForm()">添加</a>')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -443,7 +448,7 @@
|
|
|
|
<td class="reward-td promote-account"></td>
|
|
|
|
<td class="reward-td promote-account"></td>
|
|
|
|
<td class="reward-td settlement-type"></td>
|
|
|
|
<td class="reward-td settlement-type"></td>
|
|
|
|
<td class='reward-amount reward-td amount'></td>
|
|
|
|
<td class='reward-amount reward-td amount'></td>
|
|
|
|
<td class='reward-opt reward-td opt'><a onclick="openForm()">添加</a></td>
|
|
|
|
<td class='reward-opt reward-td opt'></td>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 惩罚信息 -->
|
|
|
|
<!-- 惩罚信息 -->
|
|
|
|
<td class="punish-data-info" hidden>
|
|
|
|
<td class="punish-data-info" hidden>
|
|
|
@ -454,7 +459,7 @@
|
|
|
|
<td class="punish-td promote-account"></td>
|
|
|
|
<td class="punish-td promote-account"></td>
|
|
|
|
<td class="punish-td settlement-type"></td>
|
|
|
|
<td class="punish-td settlement-type"></td>
|
|
|
|
<td class='punish-amount punish-td amount'></td>
|
|
|
|
<td class='punish-amount punish-td amount'></td>
|
|
|
|
<td class='punish-opt punish-td opt'><a onclick="openForm()">添加</a></td>
|
|
|
|
<td class='punish-opt punish-td opt'></td>
|
|
|
|
</tr>`;
|
|
|
|
</tr>`;
|
|
|
|
$('#total-amount').before(newNodeHtml);
|
|
|
|
$('#total-amount').before(newNodeHtml);
|
|
|
|
emptyNode = $('.table-body tr,.empty-'+type_dec+':first');
|
|
|
|
emptyNode = $('.table-body tr,.empty-'+type_dec+':first');
|
|
|
@ -533,7 +538,9 @@
|
|
|
|
$("#form-company-name").val('');
|
|
|
|
$("#form-company-name").val('');
|
|
|
|
} else if (companyType == 1) { // 上游公司没有下级会长
|
|
|
|
} else if (companyType == 1) { // 上游公司没有下级会长
|
|
|
|
var promoteData = "<option value='0' selected>其他</option>";
|
|
|
|
var promoteData = "<option value='0' selected>其他</option>";
|
|
|
|
|
|
|
|
$("#form-promote-account").empty();
|
|
|
|
$('#form-promote-account').html(promoteData);
|
|
|
|
$('#form-promote-account').html(promoteData);
|
|
|
|
|
|
|
|
$("#form-promote-account").select2();
|
|
|
|
$("#form-promote-account-input").attr("readonly",false)
|
|
|
|
$("#form-promote-account-input").attr("readonly",false)
|
|
|
|
$("#form-company-name").attr("readonly",true)
|
|
|
|
$("#form-company-name").attr("readonly",true)
|
|
|
|
$("#form-company-name").val($('#form-company-id option:selected').text());
|
|
|
|
$("#form-company-name").val($('#form-company-id option:selected').text());
|
|
|
@ -547,7 +554,9 @@
|
|
|
|
$.each(response.data, function(index, item){
|
|
|
|
$.each(response.data, function(index, item){
|
|
|
|
promoteData += "<option value='"+item.account+"' >"+item.account+"</option>";
|
|
|
|
promoteData += "<option value='"+item.account+"' >"+item.account+"</option>";
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$("#form-promote-account").empty();
|
|
|
|
$('#form-promote-account').html(promoteData);
|
|
|
|
$('#form-promote-account').html(promoteData);
|
|
|
|
|
|
|
|
$("#form-promote-account").select2();
|
|
|
|
$("#form-promote-account-input").attr("readonly",false)
|
|
|
|
$("#form-promote-account-input").attr("readonly",false)
|
|
|
|
$("#form-company-name").attr("readonly",true)
|
|
|
|
$("#form-company-name").attr("readonly",true)
|
|
|
|
$("#form-company-name").val($('#form-company-id option:selected').text());
|
|
|
|
$("#form-company-name").val($('#form-company-id option:selected').text());
|
|
|
@ -562,7 +571,9 @@
|
|
|
|
// 如果公司类型为内部的时候,公司部门仅其他
|
|
|
|
// 如果公司类型为内部的时候,公司部门仅其他
|
|
|
|
if (companyType == 3) {
|
|
|
|
if (companyType == 3) {
|
|
|
|
var companyData = "<option value='0' selected>其他</option>";
|
|
|
|
var companyData = "<option value='0' selected>其他</option>";
|
|
|
|
|
|
|
|
$("#form-company-id").empty();
|
|
|
|
$('#form-company-id').html(companyData);
|
|
|
|
$('#form-company-id').html(companyData);
|
|
|
|
|
|
|
|
$("#form-company-id").select2();
|
|
|
|
$("#form-company-name").attr("readonly",false)
|
|
|
|
$("#form-company-name").attr("readonly",false)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
@ -574,7 +585,9 @@
|
|
|
|
$.each(response.info, function(index, item){
|
|
|
|
$.each(response.info, function(index, item){
|
|
|
|
companyData += "<option value='"+item.id+"' >"+item.name+"</option>";
|
|
|
|
companyData += "<option value='"+item.id+"' >"+item.name+"</option>";
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$("#form-company-id").empty();
|
|
|
|
$('#form-company-id').html(companyData);
|
|
|
|
$('#form-company-id').html(companyData);
|
|
|
|
|
|
|
|
$("#form-company-id").select2();
|
|
|
|
$("#form-company-name").attr("readonly",true)
|
|
|
|
$("#form-company-name").attr("readonly",true)
|
|
|
|
//$('#company_id').html(companyData);
|
|
|
|
//$('#company_id').html(companyData);
|
|
|
|
promoteChange();
|
|
|
|
promoteChange();
|
|
|
|