78 lines
2.5 KiB
JavaScript
78 lines
2.5 KiB
JavaScript
function deleteentryexit(id) {
|
|
main.confirmPost("确定删除吗?", "/entryexit/Deleteentryexit", { id: id, d: new Date() }).done(function (data) {
|
|
alert(data.msg);
|
|
window.parent.location.reload();
|
|
window.close();
|
|
});
|
|
}
|
|
|
|
function downloadOutEntryExitPayment(enid) {
|
|
main.post("/entryexit/DownloadOutEntryexit", { enid: enid }).done(function (data) {
|
|
main.downloadFiles(data);
|
|
});
|
|
}
|
|
function downloadAccount(enid) {
|
|
main.post("/entryexit/DownloadAccount", { enid: enid }).done(function (data) {
|
|
main.downloadFiles(data);
|
|
});
|
|
}
|
|
function setComments(EncryptId) {
|
|
vueDetails.EncryptId = EncryptId;
|
|
$("#myModal").modal("show");
|
|
}
|
|
function resend(EncryptId) {
|
|
var addurl = "/entryexit/entryexitEdit?enid=" + EncryptId + "&resend=true";
|
|
window.location.href = addurl;
|
|
//main.open("新增资金记录", addurl, { area: ['1000px', '75%'] });
|
|
}
|
|
function audit(EncryptId, status) {
|
|
var msg = status == "pass" ? "确认审批通过?" : "确认拒绝?";
|
|
main.confirmPost(msg, "/entryexit/AuditClientOutCash", { enid: EncryptId, status: status, auditComment: $("#AuditComment").val() }).done(function (data) {
|
|
if (data.success) {
|
|
window.parent.location.reload();
|
|
window.close();
|
|
} else {
|
|
alert(data.msg);
|
|
}
|
|
});
|
|
}
|
|
function goback(EncryptId) {
|
|
main.post("/entryexit/GoBackAuditClientCash", { enid: EncryptId }).done(function (data) {
|
|
window.parent.location.reload();
|
|
window.close();
|
|
});
|
|
}
|
|
var vueDetails = new Vue({
|
|
el: "#myModal",
|
|
data: { Comments: '', EncryptId: '' },
|
|
methods: {
|
|
closeModal: function () {
|
|
$('#myModal').modal('hide');
|
|
},
|
|
saveModal: function () {
|
|
var data = {
|
|
EncryptId: this.EncryptId,
|
|
Comments: this.Comments,
|
|
};
|
|
var ajaxopt = {
|
|
type: "Post",
|
|
url: "/entryexit/saveClientCashInOutComments",
|
|
data: data,
|
|
dataType: "json",
|
|
success: function (data) {
|
|
if (data.success) {
|
|
window.parent.showmiddlemessage("保存成功");
|
|
window.parent.location.reload();
|
|
}
|
|
else {
|
|
alert(data.msg);
|
|
}
|
|
},
|
|
error: function (msg) {
|
|
alert("error:" + msg);
|
|
}
|
|
}
|
|
main.ajax(ajaxopt);
|
|
}
|
|
}
|
|
}); |