解决待办中发起后就显示逾期问题

master
孙亮 10 months ago
parent 177ccf5586
commit f284e48a61

@ -355,20 +355,18 @@
var edt = work.SDTOfNode.replace(/\-/g, "/");
edt = new Date(Date.parse(edt.replace(/-/g, "/")));
passTime = GetSpanTime(date, edt);
//判断流程是否逾期
if (date.getTime() > edt.getTime())//&& work.WFState == 2 && entStr != "01" && work.RDT != work.SDT
//&& paras.indexOf("&IsCC=1") == -1)
{
listbox += "<td><font color=red>" + window.lang.yuqi + "</font></td>";
}
else {
if (passTime >= 0 && passTime < 2 * 24 * 3600 * 1000) {
listbox += "<td><font color='#ffac38'>" + window.lang.jinggao + "</font></td>";
} else {
listbox += "<td><font color=green>" + window.lang.zhengchang + "</font></td>";
}
}
//判断流程是否逾期 @BKGY
var node = new Entity("BP.WF.Node", work.FK_Node);
if (node.CHWay == 1) { //时效判断
var TianShu = node.TimeLimit;
if (passTime >= 0 && passTime < TianShu * 24 * 3600 * 1000) {
listbox += "<td><font color='#ffac38'>" + window.lang.jinggao + "</font></td>";
} else {
listbox += "<td><font color=green>" + window.lang.zhengchang + "</font></td>";
}
}else {
listbox += "<td><font color=green>" + window.lang.zhengchang + "</font></td>";
}
listbox += "<td>" + GetState(work.WFState, work.Auther) + "</td>";
listbox += "<td>" + GetPRI(work.PRI) + "</td>";

Loading…
Cancel
Save