|
|
@ -535,10 +535,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$('#tablebox').find('tbody').prepend(html);
|
|
|
|
$('#tablebox').find('tbody').prepend(html);
|
|
|
|
|
|
|
|
|
|
|
|
complementChange();
|
|
|
|
complementChange();
|
|
|
|
DeleteTd();
|
|
|
|
DeleteTd();
|
|
|
|
caculateAmount();
|
|
|
|
caculateAmount();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -584,6 +584,10 @@
|
|
|
|
$(this).val(0);
|
|
|
|
$(this).val(0);
|
|
|
|
ratio = 0;
|
|
|
|
ratio = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(!ratio) {
|
|
|
|
|
|
|
|
$(this).val(0);
|
|
|
|
|
|
|
|
ratio=0;
|
|
|
|
|
|
|
|
}
|
|
|
|
// console.log(ratio+show_ratio);
|
|
|
|
// console.log(ratio+show_ratio);
|
|
|
|
if ((ratio+show_ratio)>100) {
|
|
|
|
if ((ratio+show_ratio)>100) {
|
|
|
|
$(this).val(100-show_ratio);
|
|
|
|
$(this).val(100-show_ratio);
|
|
|
@ -596,6 +600,7 @@
|
|
|
|
caculateAmount();
|
|
|
|
caculateAmount();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//删除操作
|
|
|
|
//删除操作
|
|
|
|
function DeleteTd() {
|
|
|
|
function DeleteTd() {
|
|
|
|
|
|
|
|
|
|
|
|