From c577cccc71e019cc2a7c64300bc9c3eaacca3fd2 Mon Sep 17 00:00:00 2001 From: duhe <226547893@qq.com> Date: 星期四, 16 十一月 2023 11:08:52 +0800 Subject: [PATCH] 1 --- WebTM/views/IpadIndex.html | 42 +++++++++++++++++++++++++++++++++++++----- 1 files changed, 37 insertions(+), 5 deletions(-) diff --git a/WebTM/views/IpadIndex.html b/WebTM/views/IpadIndex.html index bdbc716..90019a2 100644 --- a/WebTM/views/IpadIndex.html +++ b/WebTM/views/IpadIndex.html @@ -37,6 +37,7 @@ var HICMOEntryID = ""; //鐢熶骇璁㈠崟瀛愬唴鐮� var HICMOBillNo = ""; //浠诲姟鍗曞彿 var HMaterName = ""; //浜у搧鍚嶇О + var HMaterID = 0; //浜у搧ID //娉ㄦ剰锛氶�夐」鍗� 渚濊禆 element 妯″潡锛屽惁鍒欐棤娉曡繘琛屽姛鑳芥�ф搷浣� layui.config({ base: '../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰� @@ -178,9 +179,10 @@ html1 += '<h1><span>宸ュ崟鍙凤細</span><span id="wk' + (i + 1) + '">' + LoadData1[i].HICMOBillNo + '</span></h1>'; + html1 += '<h1 style="display:none;"><span>浜у搧ID锛�</span><span id="materid' + (i + 1) + '">' + LoadData1[i].HMaterID + '</span></h1>'; html1 += '<h1><span>浜у搧鍚嶇О锛�</span><span id="ptn' + (i + 1) + '">' + LoadData1[i].HMaterName + '</span></h1>'; html1 += '<h1><span>浜у搧鍨嬪彿锛�</span><span id="pts' + (i + 1) + '">' + LoadData1[i].HModel + '</span></h1>'; - html1 += '<h1><span>璁″垝鏁伴噺锛�</span><span>' + LoadData1[i].HDatePlanQty + '</span><span style="margin-left:20px;">姹囨姤鎬绘暟锛�</span><span>' + LoadData1[i].HDateFinishQty+'</span></h1>'; + html1 += '<h1><span>璁″垝鏁伴噺锛�</span><span>' + LoadData1[i].HDatePlanQty + '</span><span style="margin-left:20px;">姹囨姤鎬绘暟锛�</span><span>' + LoadData1[i].HDateFinishQty + '</span></h1>'; switch (LoadData1[i].HICMOStatus) { case "寰呯敓浜�": html1 += '<h1><span>褰撳墠鐘舵�侊細</span><span class="gj_icon color_border3"></span><span>' + LoadData1[i].HICMOStatus + '</span></h1>'; @@ -378,7 +380,7 @@ HICMOInterID = $("#df" + i + "").html(); //鐢熶骇璁㈠崟涓诲唴鐮� HICMOEntryID = $("#ds" + i + "").html(); //鐢熶骇璁㈠崟瀛愬唴鐮� HMaterName = $("#ptn" + i + "").html(); //浜у搧鍚嶇О - + HMaterID = $("#materid" + i + "").html(); //浜у搧ID if (workcode != "" && workcode != null) { $('.cns').removeClass('check1'); //鍒犻櫎涓嶅悓鐖剁骇clss鏍峰紡鐩稿悓鐨勬墍鏈夊厓绱� @@ -588,9 +590,9 @@ layer.alert("鍗曟嵁鐘舵�佷笉婊¤冻寮�宸ユ潯浠�!", { icon: 5 }); return false; } - var indexOpen= layer.open({ + var indexOpen = layer.open({ type: 1 - , title: "纭寮�宸ュ悧?" + , title: "纭寮�宸ュ悧?" , closeBtn: false , area: '300px;' , shade: 0.8 @@ -598,7 +600,7 @@ , btn: ['纭畾', '鍙栨秷'] , btnAlign: 'c' , moveType: 1 //鎷栨嫿妯″紡锛�0鎴栬��1 - , content: '<div style="padding: 50px; line-height: 22px; font-weight: 300;text-align:center;">璁惧缂栧彿:' + HSourceName1 + '<br>宸ュ崟鍙�:' + workcode + '<br>浜у搧鍚嶇О:' + HMaterName+'<br></div>' + , content: '<div style="padding: 50px; line-height: 22px; font-weight: 300;text-align:center;">璁惧缂栧彿:' + HSourceName1 + '<br>宸ュ崟鍙�:' + workcode + '<br>浜у搧鍚嶇О:' + HMaterName + '<br></div>' , btn1: function (index, layero, e) { //鏂板寮�宸ュ崟 @@ -626,6 +628,30 @@ }); } }); + } + + //SOP 浣滀笟鎸囧涔� + function SOP(event, obj) { + if (wktag == 0) { + layer.alert("璇烽�夋嫨宸ュ崟鍒楄〃", { icon: 5 }); + return false; + } + + layer.open({ + type: 2, + skin: 'layui-layer-rim', //鍔犱笂杈规 + title: '浣滀笟鎸囧涔�', + closeBtn: 1, + shift: 2, + area: ['80%', '80%'], + maxmin: true, + content: '../../../views/鐢熶骇绠$悊/浣滀笟鎸囧涔�/Gy_SOPBill_Video.html?OperationType=5&HMaterID=' + HMaterID + '&HSourceNo=' + workcode + '&HSourceEntryID=' + HSourceEntryID, + end: function () { + + }, + }); + + /* window.open("../../../views/鐢熶骇绠$悊/浣滀笟鎸囧涔�/Gy_SOPBill_Video.html?OperationType=5&HMaterID=" + HMaterID + "&HSourceNo=" + workcode + "&HSourceEntryID=" + HSourceEntryID);*/ } //姹囨姤鎸夐挳鐐瑰嚮浜嬩欢 @@ -1040,6 +1066,12 @@ <span class="imgtitle">蹇�熷紑宸�</span> </div> </div> + <div class="layui-col-sm12 layui-col-md4" onclick="SOP(event,this)"> + <div class="cnt bottomright"> + <span class="layui-icon layui-icon-pause imgicon"></span> + <span class="imgtitle">浣滀笟鎸囧涔�</span> + </div> + </div> </div> <div class="layui-row layui-col-space10"> <div class="layui-col-sm12 layui-col-md4" onclick="OpenFistCheck(event,this)"> -- Gitblit v1.9.1