102 lines
3.3 KiB
Plaintext
102 lines
3.3 KiB
Plaintext
@model List<ProcesslogViewModel>
|
|
@{
|
|
ViewBag.Title = "资信评级审批流程日志表内部列表";
|
|
Layout = "~/Views/Shared/_InfoLayout.cshtml";
|
|
}
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function () {
|
|
var temp_pagesize = 50;
|
|
//加载第一页
|
|
loadprocesslogInnerList(temp_pagesize, 1);
|
|
});
|
|
var g_gmsid = 'toaddfrombak';
|
|
function loadprocesslogInnerList(pagesize, pageindex) {
|
|
var param = { TypeId: @ViewBag.enid };
|
|
param.page = pageindex;
|
|
param.rows = pagesize;
|
|
$.ajax({
|
|
type: "Post",
|
|
url: "/processlog/QueryOfClientRatingLog",
|
|
data: { req: param, d: new Date() },
|
|
success: function (data) {
|
|
var trhtml = "";
|
|
var tdtemplate = "<td>{0}</td>";
|
|
for (var i = 0; i < data.rows.length; i++) {
|
|
trhtml += "<tr>";
|
|
trhtml += tdtemplate.template(data.rows[i].OptName);
|
|
trhtml += tdtemplate.template(data.rows[i].ProcessStatus);
|
|
trhtml += tdtemplate.template(data.rows[i].Log);
|
|
trhtml += tdtemplate.template(data.rows[i].ClientName);
|
|
trhtml += tdtemplate.template(data.rows[i].CreateTime);
|
|
trhtml += "/<tr>";
|
|
}
|
|
|
|
$("#tbodyprocesslog").html(trhtml);
|
|
},
|
|
error: function (msg) {
|
|
alert("error:" + msg);
|
|
}
|
|
});
|
|
}
|
|
|
|
function submit(status) {
|
|
var client_ratingId = '@ViewBag.enid';
|
|
var text = $("#text").val();
|
|
var pop = '';
|
|
var confirmFunc = function (tips) {
|
|
main.confirm(tips, function () {
|
|
$.ajax({
|
|
type: "Post",
|
|
url: "/processlog/UpdateProcessClient_RatingLog",
|
|
data: { client_ratingId: client_ratingId, status: status, text: text },
|
|
async: false,
|
|
success: function (data) {
|
|
if (!data.success) {
|
|
main.alert(data.msg);
|
|
return;
|
|
}
|
|
main.message(data.msg);
|
|
}
|
|
});
|
|
try { window.parent.reloadcredit(); } catch (e) { }
|
|
});
|
|
}
|
|
if (status === 'pass') {
|
|
pop = "确认通过审批?";
|
|
confirmFunc(pop);
|
|
} else if (status === 'reject') {
|
|
pop = "确认拒绝?";
|
|
confirmFunc(pop);
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<th>操作人</th>
|
|
<th>流程进展状态</th>
|
|
<th>说明</th>
|
|
<th>客户姓名</th>
|
|
<th>操作时间</th>
|
|
</tr>
|
|
<tbody id="tbodyprocesslog"></tbody>
|
|
</table>
|
|
|
|
<hr />
|
|
<div style="text-align: center;margin: 10px">
|
|
<div class="input-group" style="width: 100%">
|
|
<input id="text" type="text" class="form-control" placeholder="审批说明..." multiple="multiple">
|
|
</div>
|
|
<div style="margin-top: 10px">
|
|
<span class="input-group-btn">
|
|
@MyControls.Btn("审批通过", "submit('pass')")
|
|
</span>
|
|
<span class="input-group-btn">
|
|
@MyControls.Btn("拒绝", "submit('reject')")
|
|
</span>
|
|
</div>
|
|
</div> |