Commit eccba7a5 authored by 李苏's avatar 李苏 💬

wl接口,手写弹框

parent 6d9eb27a
...@@ -2,7 +2,24 @@ ...@@ -2,7 +2,24 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
#kwrkb01 div{
font-size: 15px!important;
}
#kwrkb01 li{
font-size: 15px!important;
}
#kwrkb02 div{
font-size: 15px!important;
}
#kwrkb02 li{
font-size: 15px!important;
}
#kwrkb03 div{
font-size: 15px!important;
}
#kwrkb03 li{
font-size: 15px!important;
}
#kwrkb01 { #kwrkb01 {
height: 100%; height: 100%;
width: 100%; width: 100%;
...@@ -121,6 +138,7 @@ ...@@ -121,6 +138,7 @@
width: 70%; width: 70%;
} }
#kwrkb01 .ok-item {background:-webkit-gradient(linear, left top, right top, from(#42d79b), to(#a6e25f));background:linear-gradient(90deg, #42d79b, #a6e25f);} #kwrkb01 .ok-item {background:-webkit-gradient(linear, left top, right top, from(#42d79b), to(#a6e25f));background:linear-gradient(90deg, #42d79b, #a6e25f);}
#kwrkb01 .nok-item {background:-webkit-gradient(linear, left top, right top, from(#ff0000), to(#ff007f));background:linear-gradient(90deg, #ff0000, #ff007f);}
/* 界面2 */ /* 界面2 */
#kwrkb02{ #kwrkb02{
height: 100%; height: 100%;
......
<script src="js/pdfshow.js" type="text/javascript" charset="utf-8"></script> <script src="js/pdfshow.js" type="text/javascript" charset="utf-8"></script>
<script src="js/dbenlarge.js" type="text/javascript" charset="utf-8"></script> <script src="js/dbenlarge.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="css/zpfk.css"/> <link rel="stylesheet" type="text/css" href="css/zpfk.css"/>
<style type="text/css">
.errdialog{
width: 35%;
height: 40px;
text-align: center;
line-height: 40px;
position: absolute;
top: 100px;
right: 50%;
color: #FFFFFF;
background-color: rgba(255,0,0,0.5);
transform: translateX(50%);
border-radius: 5px;
}
</style>
<div> <div>
<div class="btn-group" > <div class="btn-group" >
<button id="btnqh" type="button" class="btn btn-default" style="color: white;position: absolute;right: 5px;z-index: 9999999999;height: 50px;width: 200px;border: 0 solid #00AAFF;background-color: #00AAFF;">切换风格</button> <button id="btnqh" type="button" class="btn btn-default" style="color: white;position: absolute;right: 5px;z-index: 9999999999;height: 50px;width: 200px;border: 0 solid #00AAFF;background-color: #00AAFF;">切换风格</button>
...@@ -24,6 +39,18 @@ ...@@ -24,6 +39,18 @@
}) })
/* 通用代码 */ /* 通用代码 */
/* 大屏内部弹框 */
function screenAlert(dom,msg,timeNum){
debugger
let getdom=$(dom)
getdom.css('position','relative')
let dialog="<div class='errdialog'>"+msg+"</div>"
getdom.prepend(dialog)
setTimeout(function(){
$('.errdialog').remove();
},timeNum)
}
/* 通用表格参数 */ /* 通用表格参数 */
var zpfk_columns=[ var zpfk_columns=[
[{ [{
...@@ -67,6 +94,16 @@ ...@@ -67,6 +94,16 @@
}); });
}) })
} }
/* 扫描物料 */
function zpfk_wlxh(z){
let that =z
gas.post('kmes/gphy/zpwl ',{"wlxh":that.xlh}, function(res){
if(res.data&&res.data.records){
/* 表格加1 ok标志改变 日志 */
}
});
}
/* 获取工序工单等信息 */ /* 获取工序工单等信息 */
function zpfk_queryKwellWoinfo(e){ function zpfk_queryKwellWoinfo(e){
let that=e let that=e
...@@ -125,7 +162,9 @@ ...@@ -125,7 +162,9 @@
}else if(e=="OKBZ"){ }else if(e=="OKBZ"){
that.okOrng="OK" that.okOrng="OK"
}else if(e=="NGBZ"){ }else if(e=="NGBZ"){
that.okOrng="NG" that.okOrng="N"
}else if(e=="WLID"){
zpfk_wlxh(that)
} }
/* 获取类型 */ /* 获取类型 */
}).catch(function(){ }).catch(function(){
...@@ -170,6 +209,7 @@ ...@@ -170,6 +209,7 @@
$(that.el).find(".rz").scrollTop(that.addtop) $(that.el).find(".rz").scrollTop(that.addtop)
/* this.xlh="" */ /* this.xlh="" */
} }
/* 弹框封装 */
</script> </script>
<div id="kwrkb01" > <div id="kwrkb01" >
<!-- 顶部信息条 --> <!-- 顶部信息条 -->
...@@ -217,7 +257,7 @@ ...@@ -217,7 +257,7 @@
<div class="rz" style="width: 80%;height: 100%;background-color: #393456;color: #FFFFFF;overflow: auto;"> <div class="rz" style="width: 80%;height: 100%;background-color: #393456;color: #FFFFFF;overflow: auto;">
<span>>>Tips</span> <span>>>Tips</span>
</div> </div>
<div class="ok-item" <div :class="okOrng=='OK'?'ok-item':'nok-item'"
style="width: 20%;height: 100%;color: white;display: flex;align-items: center;justify-content: center;font-size: 30px;"> style="width: 20%;height: 100%;color: white;display: flex;align-items: center;justify-content: center;font-size: 30px;">
<b>{{okOrng}}</b> <b>{{okOrng}}</b>
</div> </div>
...@@ -384,6 +424,7 @@ ...@@ -384,6 +424,7 @@
this.gettime() this.gettime()
this.isFocus() this.isFocus()
this.appdestory() this.appdestory()
screenAlert(this.el,'error',2000)
}, },
destroyed() { destroyed() {
clearInterval(this.sivdestory) clearInterval(this.sivdestory)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment