|
|
@ -236,13 +236,15 @@
|
|
|
|
format: 'yyyy-mm-dd',
|
|
|
|
format: 'yyyy-mm-dd',
|
|
|
|
language:"zh-CN",
|
|
|
|
language:"zh-CN",
|
|
|
|
minView:2,
|
|
|
|
minView:2,
|
|
|
|
autoclose:true
|
|
|
|
autoclose:true,
|
|
|
|
|
|
|
|
endDate : new Date()
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$('#time_end').datetimepicker({
|
|
|
|
$('#time_end').datetimepicker({
|
|
|
|
format: 'yyyy-mm-dd',
|
|
|
|
format: 'yyyy-mm-dd',
|
|
|
|
language:"zh-CN",
|
|
|
|
language:"zh-CN",
|
|
|
|
minView:2,
|
|
|
|
minView:2,
|
|
|
|
autoclose:true
|
|
|
|
autoclose:true,
|
|
|
|
|
|
|
|
endDate : new Date()
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$('#datetimepicker').datetimepicker({
|
|
|
|
$('#datetimepicker').datetimepicker({
|
|
|
@ -572,6 +574,8 @@
|
|
|
|
$('.complement').change(function() {
|
|
|
|
$('.complement').change(function() {
|
|
|
|
//获取总流水
|
|
|
|
//获取总流水
|
|
|
|
var pay_amount = parseFloat($(this).parent().prev().prev().text());
|
|
|
|
var pay_amount = parseFloat($(this).parent().prev().prev().text());
|
|
|
|
|
|
|
|
var show_ratio = $(this).parent().prev().text();
|
|
|
|
|
|
|
|
show_ratio = parseFloat(show_ratio.slice(0,show_ratio.length-1));
|
|
|
|
|
|
|
|
|
|
|
|
//计算最终分配比率
|
|
|
|
//计算最终分配比率
|
|
|
|
var ratio = parseFloat($(this).val());
|
|
|
|
var ratio = parseFloat($(this).val());
|
|
|
@ -580,10 +584,10 @@
|
|
|
|
$(this).val(0);
|
|
|
|
$(this).val(0);
|
|
|
|
ratio = 0;
|
|
|
|
ratio = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// console.log(ratio+show_ratio);
|
|
|
|
if (ratio>100) {
|
|
|
|
if ((ratio+show_ratio)>100) {
|
|
|
|
$(this).val(100);
|
|
|
|
$(this).val(100-show_ratio);
|
|
|
|
ratio = 100;
|
|
|
|
ratio = 100-show_ratio;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//最终的分配金额
|
|
|
|
//最终的分配金额
|
|
|
|
var withdraw_amount = ((pay_amount * ratio)/100).toFixed(2);
|
|
|
|
var withdraw_amount = ((pay_amount * ratio)/100).toFixed(2);
|
|
|
|