igds-app/js/admin/warn-list.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
igds-app/js/admin/work-audit.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
igds-app/js/admin/work-record.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
igds-app/js/admin/warn-list.js
@@ -109,7 +109,6 @@ // } // ] renderWarn(); } @@ -176,8 +175,7 @@ var html = ''; if (warnList && warnList.length > 0) { $.each(warnList, function(index, item) { html += '<li><div class="con myfancy" onclick="openPop(\'' + item.id + '\',\'' + (item.remark == null ? "" : item.remark) + '\',\'' + item.status + '\')">'; html += '<li><div class="con myfancy" id="'+item.id+'" remark="'+(item.remark == null ? "" : item.remark) +'" status="'+item.status+'" >'; if (item.status == '10') { html += '<span class="type">未处理</span>'; }else if (item.status == '20') { @@ -207,16 +205,27 @@ html += '<div class="time">' + item.time + '</div></div></li>'; }) } else { html += '<li><div class="con myfancy" style="text-align: center;font-size: 20px;color:#dd524d">暂无警告信息</div></li>'; html += '<li><div class="con myfancy" id="0" remark="暂无警告信息" status="30">'; html += '<span class="type k">已处理</span>'; html += '<div class="tit">警告名称: <span>暂无警告信息</span></div>'; html += '<div class="txt">'; html += '<div class="box"><div class="group c"><div class="desc">--</div><div class="ort">警告类型</div></div></div>'; html += '<div class="box"><div class="group c1"><div class="desc">--</div><div class="ort">仓库名称</div></div></div>'; html += '<div class="box"><div class="group level-1"><div class="desc">无</div><div class="ort">警告级别</div></div></div></div>'; html += '<div class="tit coation">警告内容: <span>无警告内容</span></div>'; html += '<div class="time">'+dateTime+'</div></div></li>'; // html += // '<li><div class="con myfancy" style="text-align: center;font-size: 20px;color:#dd524d">暂无警告信息</div></li>'; } $("#recordList").html(html); } //打开弹窗 function openPop(warnId, remark, status) { mui(".mui-scroll-wrapper").on("tap", ".m-caution-mana ul li .myfancy", function() { var warnId = this.getAttribute("id"); var status = this.getAttribute("status"); var remark = this.getAttribute("remark"); dataPop.data.id = warnId; var html = '' if (status == '10') { @@ -226,7 +235,20 @@ $("#handleWarn").html(html); document.getElementById("textareaPop").value = remark; $('#m-pop').css('display', 'flex'); } }) // //打开弹窗 // function openPop(warnId, remark, status) { // dataPop.data.id = warnId; // var html = '' // if (status == '10') { // html += '<div type="button" class="mui-btn cancel" onclick="handleWarn(\'' + 1 + '\')">忽略</div>' // html += '<div type="button" class="mui-btn confirm" onclick="handleWarn(\'' + 2 + '\')">处理</div>' // } // $("#handleWarn").html(html); // document.getElementById("textareaPop").value = remark; // $('#m-pop').css('display', 'flex'); // } //警告处理 function handleWarn(tag) { if (tag == "1") { igds-app/js/admin/work-audit.js
@@ -128,8 +128,19 @@ html += '</div></div></div></li>'; }) } else { html += '<li><div class="con"><div class="top"><div class="left">'; html += '<div class="line"><div class="t">申请人: </div><div class="v">暂无工单审核</div></div></div>'; html += '<div class="right"><div class="icon" info="暂无工单审核信息"><img src="images/icons/g-i26.png" alt=""></div></div></div>'; html += '<li><div class="con"><div style="text-align: center;font-size: 20px;color:#dd524d;padding: 18px;">暂无工单审核信息</div></div></li>'; '<div class="box"><ul class="gd-list"><li><a href="" class="con" style="background-image: url(images/icons/a-bg12.png);">'; html += '<div class="tit">业务类型:</div><div class="name">--</div></a></li>'; html += '<li><a href="" class="con" style="background-image: url(images/icons/a-bg13.png);">'; html += '<div class="tit">关联仓库:</div><div class="name">--</div></a></li></ul>'; html += '<div class="time">有效期: 2023-01-01 至 2023-01-01 </div>'; html += '</div></div></div></li>'; // html += // '<li><div class="con"><div style="text-align: center;font-size: 20px;color:#dd524d;padding: 18px;">暂无工单审核信息</div></div></li>'; } $("#handleList").html(html); } igds-app/js/admin/work-record.js
@@ -116,8 +116,17 @@ item.endTime + '</span></p></div>'; }) } else { html += '<li><div class="con"><div style="text-align: center;font-size: 20px;color:#dd524d;padding-top: 18px;">暂无申请记录信息</div></div></li>'; html += '<li><div class="con conInfo" info = "暂无申请记录"><span class="status">'; //已审核 html += '<img src="images/icons/g-i29.png" alt=""></span>' html += '<div class="title"><b>暂无申请记录</b></div><div class="box"><ul class="gd-list">'; html += '<li><a href="" class="con"style="background-image: url(images/icons/a-bg12.png);">'; html += '<div class="tit">业务类型:</div><div class="name">--</div></a></li>'; html += '<li><a href="" class="con"style="background-image: url(images/icons/a-bg13.png);">'; html += '<div class="tit">关联仓库:</div><div class="name">--</div></a></li></ul>'; html += '<div class="time"><p>有效开始时间: <span>2023-01-01</span></p><p>有效结束时间: <span>2023-01-01</span></p></div>'; // html += // '<li><div class="con"><div style="text-align: center;font-size: 20px;color:#dd524d;padding-top: 18px;">暂无申请记录信息</div></div></li>'; } $("#handleList").html(html); }