Files
zszq-trs/YLErpWeb/Views/processlog/processlogListInner.cshtml
T
2024-05-09 14:06:26 +08:00

117 lines
3.6 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.eid , ProcessType: "@ViewBag.type"};
param.page = pageindex;
param.rows = pagesize;
$.ajax({
type: "Post",
url: "/processlog/processlogInnerListQuery",
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 openclientfileaudit() {
var url = "/client/ClientFilesAudit/?clientId=" + @ViewBag.eid;
window.open(url, '_blank').location;
//main.open("审核客户资料清单", url,
// {
// area:['1000px','80%'],
// end: function () {
// //refreshclientduty();
// }
// });
}
function submit(status) {
var clientId = '@ViewBag.eid';
var text = $("#text").val();
var pop = '';
if (status === 'pass') {
pop = "确认通过审批?";
}
if (status === 'reject') {
pop = "确认拒绝?";
}
main.confirm(pop, function () {
$.ajax({
type: "Post",
url: "/processlog/UpdateProcessLog",
data: { clientId: clientId, status: status, text: text },
async: false,
success: function (data) {
(parent || window).main.message(data.msg);
}
});
try { window.parent.reloadclient(); } catch (e) { }
});
}
</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>
@if (PS.Config.ClientFileAudit)
{
<span class="input-group-btn">
@MyControls.Btn("客户资料清单检查", "openclientfileaudit()")
</span>
}
</div>
</div>