|
|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<div class="mod-config container "> |
|
|
|
<div class="pdfMenu" > |
|
|
|
<h1 style="color: white">SOP指导书 当前派工单|{{seqNo}}</h1> |
|
|
|
<h1 style="color: white">SOP指导书 派工单|{{seqNo}}</h1> |
|
|
|
</div> |
|
|
|
<div class="pdf-wrapper" ref="pdfWrapper"> |
|
|
|
<img style="max-width: 100%;max-height: 100%;vertical-align:middle;" :src="sopUrl"> |
|
|
|
@ -15,7 +15,7 @@ |
|
|
|
<!-- ></pdf>--> |
|
|
|
</div> |
|
|
|
<div class="pdfMenu" > |
|
|
|
<h1 style="color: white">SIP指导书 当前操作员|{{operator}}</h1> |
|
|
|
<h1 style="color: white">SIP指导书 操作员|{{operator}}</h1> |
|
|
|
</div> |
|
|
|
<div class="pdf-wrapper" ref="pdfWrapper"> |
|
|
|
<img style="max-width: 100%;max-height: 100%;vertical-align:middle;" :src="badUrl"> |
|
|
|
@ -76,7 +76,7 @@ |
|
|
|
//获取图片数据 |
|
|
|
setInterval(() => { |
|
|
|
this.getPDF(); |
|
|
|
}, 60000) |
|
|
|
}, 90000) |
|
|
|
}, |
|
|
|
changePage() { |
|
|
|
//刷新图片 |
|
|
|
@ -105,7 +105,6 @@ |
|
|
|
} |
|
|
|
getSopAddress(data).then(({data}) => { |
|
|
|
if(data.code==0){ |
|
|
|
debugger |
|
|
|
if(data.data.nowSeqNo==null||data.data.nowSeqNo==''){ |
|
|
|
this.sopUrl=''; |
|
|
|
this.badUrl=''; |
|
|
|
@ -120,8 +119,6 @@ |
|
|
|
this.seqNo = data.data.nowSeqNo; |
|
|
|
this.sopList=data.sop; |
|
|
|
this.badList=data.bad; |
|
|
|
console.log("开始打印") |
|
|
|
console.log(data.sop) |
|
|
|
this.sopPage=1; |
|
|
|
this.badPage=1; |
|
|
|
this.sopMax=data.sop.length; |
|
|
|
@ -132,12 +129,17 @@ |
|
|
|
if(this.badList.length>0){ |
|
|
|
this.badUrl=this.packageUrl+this.badList[0].attaFileNameDb; |
|
|
|
} |
|
|
|
}else if(this.seqNo==data.data.nowSeqNo) { |
|
|
|
this.sopList=data.sop; |
|
|
|
this.badList=data.bad; |
|
|
|
this.sopMax=data.sop.length; |
|
|
|
this.badMax=data.bad.length; |
|
|
|
} |
|
|
|
console.log("SOP:"+ this.sopUrl) |
|
|
|
console.log("不良:"+ this.badUrl) |
|
|
|
console.log(this.$store.state.user.tvSopUrl) |
|
|
|
console.log(this.sopList) |
|
|
|
console.log("SOP:"+ this.sopList[0].attaFileNameDb) |
|
|
|
// console.log("SOP:"+ this.sopUrl) |
|
|
|
// console.log("不良:"+ this.badUrl) |
|
|
|
// console.log(this.$store.state.user.tvSopUrl) |
|
|
|
// console.log(this.sopList) |
|
|
|
// console.log("SOP:"+ this.sopList[0].attaFileNameDb) |
|
|
|
}else { |
|
|
|
this.sopUrl=''; |
|
|
|
this.badUrl=''; |
|
|
|
@ -215,6 +217,7 @@ |
|
|
|
height: 100%; |
|
|
|
} |
|
|
|
.pdfMenu { |
|
|
|
font-size: 11px; |
|
|
|
width: 7%; |
|
|
|
height: 100%; |
|
|
|
float: left; |
|
|
|
|