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