Browse Source

0412 新看板

master
ruanqi 2 years ago
parent
commit
49d0ce6c26
  1. 17
      src/views/modules/board/sopBoard.vue
  2. 5
      src/views/modules/production/cancelSfdc.vue
  3. 5
      src/views/modules/production/searchSfdc.vue

17
src/views/modules/board/sopBoard.vue

@ -1,6 +1,8 @@
<template>
<div class="mod-config container ">
<div class="pdfMenu" >
<div v-bind:style="{ width: '100%', height: '10%', backgroundColor: color }"></div>
<!-- <button v-on:click="changeColor">Change Color</button>-->
<h1 style="color: white">SOP指导书 派工单|{{seqNo}}</h1>
</div>
<div class="pdf-wrapper" ref="pdfWrapper">
@ -42,6 +44,7 @@
data () {
return {
color:'yellow',
tvId:this.$route.query.ip?this.$route.query.ip:'TV001',
operator:'',
seqNo:'',
@ -99,6 +102,16 @@
}
this.badUrl=this.packageUrl+this.badList[this.badPage-1].attaFileNameDb;
},
changeColor(type){
if(type==='1'){
this.color='green'
}else if(type==='2'){
this.color='yellow'
}else {
this.color='yellow'
}
},
getPDF(){
let data={
tvId: this.tvId
@ -112,6 +125,7 @@
this.badList=[];
this.seqNo='无';
this.operator='无';
this.changeColor('2')
}else if(this.seqNo!=data.data.nowSeqNo) {
this.sopUrl='';
this.badUrl='';
@ -123,6 +137,7 @@
this.badPage=1;
this.sopMax=data.sop.length;
this.badMax=data.bad.length;
this.changeColor(data.data.colourFlag)
if(this.sopList.length>0){
this.sopUrl=this.packageUrl+this.sopList[0].attaFileNameDb;
}
@ -134,6 +149,7 @@
this.badList=data.bad;
this.sopMax=data.sop.length;
this.badMax=data.bad.length;
this.changeColor(data.data.colourFlag)
}
// console.log("SOP"+ this.sopUrl)
// console.log(""+ this.badUrl)
@ -147,6 +163,7 @@
this.badList=[];
this.seqNo='无';
this.operator='无';
this.changeColor('2')
}
})
}

5
src/views/modules/production/cancelSfdc.vue

@ -17,8 +17,8 @@
<el-form-item :label="'规格型号'">
<el-input v-model="searchData.partDesc" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'加工中心编号'">
<el-input v-model="searchData.workCenterNo" style="width: 120px"></el-input>
<el-form-item :label="'工序名称'">
<el-input v-model="searchData.operationDesc" style="width: 120px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
@ -655,6 +655,7 @@
endDate:'',
operatorName:'',
resourceId:'',
operationDesc:'',
shiftNo:'',
},
}

5
src/views/modules/production/searchSfdc.vue

@ -17,8 +17,8 @@
<el-form-item :label="'规格型号'">
<el-input v-model="searchData.partDesc" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'加工中心编号'">
<el-input v-model="searchData.workCenterNo" style="width: 120px"></el-input>
<el-form-item :label="'工序名称'">
<el-input v-model="searchData.operationDesc" style="width: 120px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
@ -656,6 +656,7 @@
endDate:'',
operatorName:'',
resourceId:'',
operationDesc:'',
shiftNo:'',
},
}

Loading…
Cancel
Save