日期:2014-05-17 浏览次数:20783 次
function updateBorrowBillDts(){ var dtsId = $("#dtsId").val().replace(/(^\s*)|(\s*$)/g, ""); var isDestroy = $("#isDestroy").val().replace(/(^\s*)|(\s*$)/g, ""); var destroyReason = $("#destroyReason").val().replace(/(^\s*)|(\s*$)/g, ""); var returnDescription = $("#returnDescription").val().replace(/(^\s*)|(\s*$)/g, ""); var url = '/assetjson.snbc'; var params = { act : 'updateBorrowBillDts', borrowPeopleId : $("#borrowPeopleId").val(), isDestroy : isDestroy, destroyReason : destroyReason, dtsId : dtsId, returnDescription : returnDescription }; $.ajax({ type : "post", url : url, data : params, success : function(data) { var rdata = eval("(" + data + ")"); if(rdata=="success"){ alert("归还成功!"); window.location.href="/Return!queryReturnAssetList.snbc"; }else{ alert("归还失败,请检查原因!"); return; } }, dataType : 'html' }); }