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

okbz代码

parent d84426f3
...@@ -125,11 +125,15 @@ ...@@ -125,11 +125,15 @@
}) })
} }
/* jyfk */ /* jyfk */
function jyfk_secjyfk(t){ function jyfk_secjyfk(t,type){
let that=t let that=t
gas.post('kmes/gpfk/jyfk',{"fkid":that.fkid, "hgsn":that.xlh}, function(res){ gas.post('kmes/gpfk/jyfk',{"fkid":that.fkid, "hgsn":that.xlh}, function(res){
if(res.data&&res.data.records){ if(res.data&&res.data.records){
if(type=="ok"){
that.hg=res.data.records
}else if(type=="ng"){
that.ng=res.data.records
}
} }
else{ else{
...@@ -164,14 +168,14 @@ ...@@ -164,14 +168,14 @@
}) })
}else if(e=="OKBZ"){ }else if(e=="OKBZ"){
if(that.fkid){ if(that.fkid){
jyfk_secjyfk(that) jyfk_secjyfk(that,"ok")
}else{ }else{
jyfk_wrz(that,"请先扫描WOSNID","error") jyfk_wrz(that,"请先扫描WOSNID","error")
} }
}else if(e=="NGBZ"){ }else if(e=="NGBZ"){
if(that.fkid){ if(that.fkid){
jyfk_secjyfk(that) jyfk_secjyfk(that,"ng")
}else{ }else{
jyfk_wrz(that,"请先扫描WOSNID","error") jyfk_wrz(that,"请先扫描WOSNID","error")
} }
...@@ -202,7 +206,7 @@ ...@@ -202,7 +206,7 @@
<li>系统管理员</li> <li>系统管理员</li>
<li>甲班</li> <li>甲班</li>
<li class="tipuli2">{{systime}}</li> <li class="tipuli2">{{systime}}</li>
<li class="tipuli2" style="margin-right: 200px;">计数:30</li> <li class="tipuli2" style="margin-right: 200px;">计数:{{hg+ng}}</li>
<li class="tipuli2">当前工序:{{gx}}</li> <li class="tipuli2">当前工序:{{gx}}</li>
</ul> </ul>
...@@ -237,10 +241,10 @@ ...@@ -237,10 +241,10 @@
<div style="height: 100%;display: flex;align-items: center;justify-content: center;"> <div style="height: 100%;display: flex;align-items: center;justify-content: center;">
<div class="cardList-wrapper" style="width: 55%;height: 100%;background-color: #FFFFFF;color: #FFFFFF;display: flex;flex-wrap: wrap;justify-content:space-around;align-items: center;"> <div class="cardList-wrapper" style="width: 55%;height: 100%;background-color: #FFFFFF;color: #FFFFFF;display: flex;flex-wrap: wrap;justify-content:space-around;align-items: center;">
<div class="" style="height: 45%;width: 90%;display: flex;align-items: center;justify-content: center;color: #FFFFFF;background-color: #00AAFF!important;"> <div class="" style="height: 45%;width: 90%;display: flex;align-items: center;justify-content: center;color: #FFFFFF;background-color: #00AAFF!important;">
<span style="font-size: 20px;font-weight: 800;">合格数量:{{ng}}</span> <span style="font-size: 20px;font-weight: 800;">合格数量:{{hg}}</span>
</div> </div>
<div class="" style="height: 45%;width: 90%;display: flex;align-items: center;justify-content: center;color: #FFFFFF;background-color: #FEC041!important;"> <div class="" style="height: 45%;width: 90%;display: flex;align-items: center;justify-content: center;color: #FFFFFF;background-color: #FEC041!important;">
<span style="font-size: 20px;font-weight: 800;">NG数量:{{hg}}</span> <span style="font-size: 20px;font-weight: 800;">NG数量:{{ng}}</span>
</div> </div>
</div> </div>
<div class="cardList-wrappers" style="width: 40%;height: 95%;color: white;display: flex;align-items: center;justify-content: center;font-size: 30px;"> <div class="cardList-wrappers" style="width: 40%;height: 95%;color: white;display: flex;align-items: center;justify-content: center;font-size: 30px;">
...@@ -352,7 +356,7 @@ ...@@ -352,7 +356,7 @@
<li>系统管理员</li> <li>系统管理员</li>
<li>甲班</li> <li>甲班</li>
<li class="tipuli2">{{systime}}</li> <li class="tipuli2">{{systime}}</li>
<li class="tipuli2" style="margin-right: 200px;">计数:30</li> <li class="tipuli2" style="margin-right: 200px;">计数:{{hg+ng}}</li>
<li class="tipuli2">当前工序:{{gx}}</li> <li class="tipuli2">当前工序:{{gx}}</li>
</ul> </ul>
......
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