Commit 83dc68f3 authored by 李苏's avatar 李苏 💬

登录页面

parent f7620f80
#kwrkb04{ #kwrkb04 div{
font-size: 14px;
}
#kwrkb04 li{
font-size: 14px;
}
#kwrkb05 div{
font-size: 14px;
}
#kwrkb05 li{
font-size: 14px;
}
#kwrkb06 div{
font-size: 14px;
}
#kwrkb06 li{
font-size: 14px;
}
#kwrkb04{
height: 100%; height: 100%;
width: 100%; width: 100%;
display: flex; display: flex;
......
#kwrkb07{ #kwrkb07 div{
font-size: 14px;
}
#kwrkb07 li{
font-size: 14px;
}
#kwrkb08 div{
font-size: 14px;
}
#kwrkb08 li{
font-size: 14px;
}
#kwrkb09 div{
font-size: 14px;
}
#kwrkb09 li{
font-size: 14px;
}
#kwrkb07{
height: 100%; height: 100%;
width: 100%; width: 100%;
display: flex; display: flex;
......
...@@ -3,22 +3,22 @@ ...@@ -3,22 +3,22 @@
padding: 0; padding: 0;
} }
#kwrkb01 div{ #kwrkb01 div{
font-size: 15px!important; font-size: 14px;
} }
#kwrkb01 li{ #kwrkb01 li{
font-size: 15px!important; font-size: 14px;
} }
#kwrkb02 div{ #kwrkb02 div{
font-size: 15px!important; font-size: 14px;
} }
#kwrkb02 li{ #kwrkb02 li{
font-size: 15px!important; font-size: 14px;
} }
#kwrkb03 div{ #kwrkb03 div{
font-size: 15px!important; font-size: 14px;
} }
#kwrkb03 li{ #kwrkb03 li{
font-size: 15px!important; font-size: 14px;
} }
#kwrkb01 { #kwrkb01 {
height: 100%; height: 100%;
...@@ -226,7 +226,7 @@ ...@@ -226,7 +226,7 @@
#kwrkb02 .tipul button{ #kwrkb02 .tipul button{
margin-left: 10px; margin-left: 10px;
height: 30px; height: 30px;
width: 60px; /* width: 60px; */
background-color: #FFFFFF; background-color: #FFFFFF;
border: 0.5px solid #EEEEEE; border: 0.5px solid #EEEEEE;
text-decoration:none; text-decoration:none;
......
This diff is collapsed.
This diff is collapsed.
...@@ -3,12 +3,13 @@ ...@@ -3,12 +3,13 @@
<link rel="stylesheet" type="text/css" href="css/zpfk.css"/> <link rel="stylesheet" type="text/css" href="css/zpfk.css"/>
<style type="text/css"> <style type="text/css">
.errdialog{ .errdialog{
width: 35%; min-width:35%;
/* width: 35%; */
height: 40px; height: 40px;
text-align: center; text-align: center;
line-height: 40px; line-height: 40px;
position: absolute; position: absolute;
top: 100px; top: 50px;
right: 50%; right: 50%;
color: #FFFFFF; color: #FFFFFF;
background-color: rgba(255,0,0,0.5); background-color: rgba(255,0,0,0.5);
...@@ -41,7 +42,6 @@ ...@@ -41,7 +42,6 @@
/* 通用代码 */ /* 通用代码 */
/* 大屏内部弹框 */ /* 大屏内部弹框 */
function screenAlert(dom,msg,timeNum){ function screenAlert(dom,msg,timeNum){
debugger
let getdom=$(dom) let getdom=$(dom)
getdom.css('position','relative') getdom.css('position','relative')
let dialog="<div class='errdialog'>"+msg+"</div>" let dialog="<div class='errdialog'>"+msg+"</div>"
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
function zpfk_hqlx(e){ function zpfk_hqlx(e){
let that=e let that=e
return new Promise(function(y,n){ return new Promise(function(y,n){
gas.post('kmes/gpfk/querySmlx ',{"wosnid":that.xlh}, function(res){ gas.post('kmes/gpfk/querySmlx ',{"wosnid":that.xlh,"bzlx":window.bzlx||"无"}, function(res){
if(res.data&&res.data.records){ if(res.data&&res.data.records){
let getinfor=res.data.records let getinfor=res.data.records
y(getinfor.id||"")} y(getinfor.id||"")}
...@@ -97,12 +97,21 @@ ...@@ -97,12 +97,21 @@
/* 扫描物料 */ /* 扫描物料 */
function zpfk_wlxh(z){ function zpfk_wlxh(z){
let that =z let that =z
gas.post('kmes/gphy/zpwl ',{"wlxh":that.xlh,"djid":that.gd}, function(res){ if(!that.gd){
let msg="请先扫描工单序列号,获取工单号"
screenAlert(that.el,msg,2000)
zpfk_wrz(that,msg,'error')
return false
}
gas.post('kmes/gphy/zpwl',{"wlxh":that.xlh}, function(res){
if(res.data&&res.data.records){ if(res.data&&res.data.records){
/* 表格加1 ok标志改变 日志 */ /* 表格加1 ok标志改变 日志 */
}else{
let msg="查询装配物料:"+that.xlh+"失败"
zpfk_wrz(that,msg,"error")
} }
}); })
} }
/* 获取工序工单等信息 */ /* 获取工序工单等信息 */
function zpfk_queryKwellWoinfo(e){ function zpfk_queryKwellWoinfo(e){
...@@ -110,6 +119,8 @@ ...@@ -110,6 +119,8 @@
return new Promise(function(y,n){ return new Promise(function(y,n){
gas.post('kmes/gpfk/queryKwellWoinfo',{"wosnid":that.xlh}, function(res){ gas.post('kmes/gpfk/queryKwellWoinfo',{"wosnid":that.xlh}, function(res){
if(res.data&&res.data.records){ if(res.data&&res.data.records){
let msg="查询工单信息:"+that.xlh+"成功"
zpfk_wrz(that,msg)
/* 赋值操作 */ /* 赋值操作 */
that.gd = res.data.records.djid; that.gd = res.data.records.djid;
that.cpsn = res.data.records.wosnCode; that.cpsn = res.data.records.wosnCode;
...@@ -120,6 +131,11 @@ ...@@ -120,6 +131,11 @@
/* 日志操作 */ /* 日志操作 */
/* pdf地址 */ /* pdf地址 */
}else{
let msg="查询工单信息:"+that.xlh+"失败"
that.xlh=""
zpfk_wrz(that,msg,'error')
screenAlert(that.el,msg,2000)
} }
}); });
}) })
...@@ -130,13 +146,20 @@ ...@@ -130,13 +146,20 @@
that.xlh="" that.xlh=""
gas.post('kmes/gpfk/queryWoBomByWoid',{"woid":woid}, function(res){ gas.post('kmes/gpfk/queryWoBomByWoid',{"woid":woid}, function(res){
if(res.data&&res.data.records){ if(res.data&&res.data.records){
let msg="查询装配表格:"+woid+"成功"
zpfk_wrz(that,msg)
that.tabdata = res.data.records; that.tabdata = res.data.records;
that.initpage() that.initpage()
}else{
let msg="查询装配表格:"+woid+"失败"
zpfk_wrz(that,msg,'error')
screenAlert(that.el,msg,2000)
} }
}); });
} }
/* pdfshow gxid登录页传进来 */ /* pdfshow gxid登录页传进来 */
function zpfk_pdfshow(e,woid){ function zpfk_pdfshow(e,woid){
console.log("pdf")
let that=e let that=e
let newPdfurl=that.pdfurl+"?woid="+woid+"&&"+"gxid="+window.gxid||"nogxid" let newPdfurl=that.pdfurl+"?woid="+woid+"&&"+"gxid="+window.gxid||"nogxid"
if (newpdfurl!=that.pdfurl){ if (newpdfurl!=that.pdfurl){
...@@ -152,10 +175,11 @@ ...@@ -152,10 +175,11 @@
/* 总体扫描封装 */ /* 总体扫描封装 */
function zpfk_zpfk(t){ function zpfk_zpfk(t){
let that=t let that=t
zpfk_hqlx(that).then(function(e){ zpfk_hqlx(that).then(function(e){
if(e=="WOSNID"){ if(e=="WOSNID"){
let msg="正在查询WOSNID:"+that.xlh
zpfk_wrz(that,msg)
zpfk_queryKwellWoinfo(that).then(function(s){ zpfk_queryKwellWoinfo(that).then(function(s){
console.log(s)
zpfk_queryWoBomByWoid(that,s) zpfk_queryWoBomByWoid(that,s)
zpfk_pdfshow(that,s) zpfk_pdfshow(that,s)
}) })
...@@ -164,10 +188,19 @@ ...@@ -164,10 +188,19 @@
}else if(e=="NGBZ"){ }else if(e=="NGBZ"){
that.okOrng="N" that.okOrng="N"
}else if(e=="WLID"){ }else if(e=="WLID"){
let msg="正在查询WLID:"+that.xlh
zpfk_wrz(that,msg)
zpfk_wlxh(that) zpfk_wlxh(that)
}else if(e=="LOGOUT"){
zpfk_wrz(that,"即将退出系统")
} }
/* 获取类型 */ /* 获取类型 */
}).catch(function(){ })
.catch(function(e){
console.log(e)
let msg="无法识别该序列号:"+that.xlh
zpfk_wrz(that,msg,'error')
screenAlert(that.el,msg,2000)
that.xlh="" that.xlh=""
}) })
} }
...@@ -202,11 +235,18 @@ ...@@ -202,11 +235,18 @@
},20000) },20000)
} }
/* 日志事件汇总,写在请求内部或者单独拿出 */ /* 日志事件汇总,写在请求内部或者单独拿出 */
function zpfk_rzts1(o){ function zpfk_wrz(o,msg,type){
let that=o let that=o
$(that.el).find(".rz").append("<br>>" + "<span>" +"正在查询:"+that.xlh+"</sapn>") if(type!='error'){
that.addtop = that.addtop + 600 $(that.el).find(".rz").append("<br>>" + "<span>" +msg+"</sapn>")
$(that.el).find(".rz").scrollTop(that.addtop) that.addtop = that.addtop + 600
$(that.el).find(".rz").scrollTop(that.addtop)
}else{
$(that.el).find(".rz").append("<br>>" + "<span style='color: red;'>" +msg+"</sapn>")
that.addtop = that.addtop + 600
$(that.el).find(".rz").scrollTop(that.addtop)
}
/* this.xlh="" */ /* this.xlh="" */
} }
/* 弹框封装 */ /* 弹框封装 */
...@@ -255,7 +295,6 @@ ...@@ -255,7 +295,6 @@
</div> </div>
<div style="height: calc(100% - 20px);display: flex;"> <div style="height: calc(100% - 20px);display: flex;">
<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>
</div> </div>
<div :class="okOrng=='OK'?'ok-item':'nok-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;">
...@@ -330,8 +369,7 @@ ...@@ -330,8 +369,7 @@
日志 日志
</div> </div>
<div style="height: calc(100% - 20px);display: flex;"> <div style="height: calc(100% - 20px);display: flex;">
<div style="width: 100%;height: 100%;background-color: #393456;color: #FFFFFF;"> <div class="rz" style="width: 100%;height: 100%;background-color: #393456;color: #FFFFFF;overflow: auto;">
<span>>>Tips</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -394,8 +432,8 @@ ...@@ -394,8 +432,8 @@
日志 日志
</div> </div>
<div style="height: calc(100% - 20px);display: flex;"> <div style="height: calc(100% - 20px);display: flex;">
<div style="width: 100%;height: 100%;background-color: #393456;color: #FFFFFF;"> <div class="rz" style="width: 100%;height: 100%;background-color: #393456;color: #FFFFFF;overflow: auto;">
<span>>>Tips</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -418,13 +456,14 @@ ...@@ -418,13 +456,14 @@
let Vkwrkb01 = new Vue({ let Vkwrkb01 = new Vue({
el: "#kwrkb01", el: "#kwrkb01",
mounted() { mounted() {
console.log("mounted")
pdfshow("pdf/dcAcess.pdf","kwrkb01pdf",20000) pdfshow("pdf/dcAcess.pdf","kwrkb01pdf",20000)
this.initpage() this.initpage()
dbenlarge('kwrkb01', 1, this.initpage) dbenlarge('kwrkb01', 1, this.initpage)
$(this.el).dblclick()
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)
...@@ -458,7 +497,7 @@ ...@@ -458,7 +497,7 @@
zpfk_zpfk(that) zpfk_zpfk(that)
}, },
isFocus(){ isFocus(){
let $xlh=$("#kwrkb01").find('input[name="xlh"]') let $xlh=$(this.el).find('input[name="xlh"]')
$xlh.focus() $xlh.focus()
}, },
// 扫码事件 // 扫码事件
...@@ -466,11 +505,6 @@ ...@@ -466,11 +505,6 @@
var evt = window.event || e; var evt = window.event || e;
if (evt.keyCode == 13) { if (evt.keyCode == 13) {
this.apiscanxlh() this.apiscanxlh()
console.log(this.xlh)
$("#kwrkb01").find(".rz").append("<br>>" + "<span>" +"正在查询:"+this.xlh+"</sapn>")
this.addtop = this.addtop + 600
$("#kwrkb01").find(".rz").scrollTop(this.addtop)
/* this.xlh="" */
} }
}, },
// 初始化页面 // 初始化页面
...@@ -497,11 +531,8 @@ ...@@ -497,11 +531,8 @@
let Vkwrkb02= new Vue({ let Vkwrkb02= new Vue({
el:"#kwrkb02", el:"#kwrkb02",
mounted() { mounted() {
dbenlarge('kwrkb02',0,this.initpage) // $(this.el).hide()
pdfshow("pdf/dcAcess.pdf","pdf",5000).then(e=>{ dbenlarge('kwrkb02',1,this.initpage)
this.sivpdf=e
$("#kwrkb02").hide()
})
// this.sivpdf= // this.sivpdf=
this.initpage() this.initpage()
this.gettime() this.gettime()
...@@ -533,6 +564,10 @@ ...@@ -533,6 +564,10 @@
} }
}, },
methods:{ methods:{
isFocus(){
let $xlh=$(this.el).find('input[name="xlh"]')
$xlh.focus()
},
// 扫码接口 // 扫码接口
apiscanxlh(){ apiscanxlh(){
let that=this let that=this
...@@ -543,7 +578,6 @@ ...@@ -543,7 +578,6 @@
var evt = window.event || e; var evt = window.event || e;
if (evt.keyCode == 13) { if (evt.keyCode == 13) {
this.apiscanxlh() this.apiscanxlh()
console.log(this.xlh)
$("#kwrkb02").find(".rz").append("<br>>" + "<span>" +"正在查询:"+this.xlh+"</sapn>") $("#kwrkb02").find(".rz").append("<br>>" + "<span>" +"正在查询:"+this.xlh+"</sapn>")
this.addtop = this.addtop + 600 this.addtop = this.addtop + 600
$("#kwrkb02").find(".rz").scrollTop(this.addtop) $("#kwrkb02").find(".rz").scrollTop(this.addtop)
...@@ -573,11 +607,7 @@ ...@@ -573,11 +607,7 @@
let Vkwrkb03= new Vue({ let Vkwrkb03= new Vue({
el:"#kwrkb03", el:"#kwrkb03",
mounted() { mounted() {
dbenlarge('kwrkb03',0,this.initpage) dbenlarge('kwrkb03',1,this.initpage)
pdfshow("pdf/dcAcess.pdf","pdf",5000).then(e=>{
this.sivpdf=e
$("#kwrkb03").hide()
})
// this.sivpdf= // this.sivpdf=
this.initpage() this.initpage()
this.gettime() this.gettime()
...@@ -609,6 +639,10 @@ ...@@ -609,6 +639,10 @@
} }
}, },
methods:{ methods:{
isFocus(){
let $xlh=$(this.el).find('input[name="xlh"]')
$xlh.focus()
},
// 扫码接口 // 扫码接口
apiscanxlh(){ apiscanxlh(){
let that=this let that=this
...@@ -619,7 +653,6 @@ ...@@ -619,7 +653,6 @@
var evt = window.event || e; var evt = window.event || e;
if (evt.keyCode == 13) { if (evt.keyCode == 13) {
this.apiscanxlh() this.apiscanxlh()
console.log(this.xlh)
$("#kwrkb03").find(".rz").append("<br>>" + "<span>" +"正在查询:"+this.xlh+"</sapn>") $("#kwrkb03").find(".rz").append("<br>>" + "<span>" +"正在查询:"+this.xlh+"</sapn>")
this.addtop = this.addtop + 600 this.addtop = this.addtop + 600
$("#kwrkb03").find(".rz").scrollTop(this.addtop) $("#kwrkb03").find(".rz").scrollTop(this.addtop)
......
...@@ -128,15 +128,13 @@ ...@@ -128,15 +128,13 @@
let bzgxsn=$gylx.val() let bzgxsn=$gylx.val()
HTTP.post("kmes/gpfk/login ", {usersn:usersn,bzgxsn:bzgxsn}, function(result) { HTTP.post("kmes/gpfk/login ", {usersn:usersn,bzgxsn:bzgxsn}, function(result) {
if (result['success']) { if (result['success']) {
if(result.data.records.gylx=='ZP'){ // window.location.href = "index";
let mkurl=result.data.records.fkurl
} let mkid=result.data.records.modulecode
else if(result.data.records.gylx=='JY'){ let bzlx=result.data.records.id
window.bzlx=bzlx
} let url="index#"+mkurl+";"+mkid+"+"+bzlx
else if(result.data.records.gylx=='WX'){ window.location.href =url
}
} else { } else {
$rygh.val("") $rygh.val("")
$gylx.val("") $gylx.val("")
......
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