|
/**
|
* 关闭此对话框
|
*/
|
function closePage () {
|
parent.layer.close(window.parent.YesDriver.layerIndex);
|
}
|
|
|
|
/**
|
* 保存数据
|
*/
|
function addSubmit() {
|
var id = $('#id').val();
|
var withdrawFrozenAmount = $('#withdrawFrozenAmount').val();
|
if(null == withdrawFrozenAmount || '' == withdrawFrozenAmount){
|
Feng.error("提现冻结金额额度不能为空");
|
return
|
}
|
if(0 > withdrawFrozenAmount){
|
Feng.error("提现冻结金额额度不能小于0");
|
return
|
}
|
if(withdrawFrozenAmount.split(".").length == 2 && withdrawFrozenAmount.split(".")[1].length > 2){
|
Feng.error("提现冻结金额额度请保留两位小数");
|
return;
|
}
|
|
|
$.ajax({
|
url: Feng.ctxPath + "/tDriver/setFreezingAmountOfWithdrawalSet",
|
type: 'POST',
|
data: {
|
id: id,
|
withdrawFrozenAmount: withdrawFrozenAmount
|
},
|
success: function (res) {
|
if(res.status == 200){
|
Feng.success("设置成功");
|
closePage();
|
window.parent.YesDriver.table.refresh();//刷新表格数据
|
}else{
|
Feng.error(res.msg)
|
}
|
}
|
});
|
}
|