|
|
|
@ -297,11 +297,11 @@ |
|
|
|
<el-button type="primary" @click="switchOperatorModal" style="margin-left: 25px; margin-top: 20px;"> |
|
|
|
切换用户</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-form-item style="margin-top: 30px;"> |
|
|
|
<el-button type="primary" @click="startTuningModal" :disabled="buttonTags.tuningFlag" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
开始调机</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-form-item style="margin-top: 30px;"> |
|
|
|
<el-button type="primary" @click="startProduceModal" :disabled="buttonTags.produceFlag" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
开始生产</el-button> |
|
|
|
</el-form-item> |
|
|
|
@ -311,7 +311,7 @@ |
|
|
|
<fieldset class="customer-fieldset" style="margin-left: 600px; width: 200px; height: 60px;"> |
|
|
|
<legend class="customer-legend">不良</legend> |
|
|
|
<el-form> |
|
|
|
<el-form-item> |
|
|
|
<el-form-item style="margin-top: -5px;"> |
|
|
|
<el-button @click="defectRollModal" type="primary" :disabled="buttonTags.defectFlag" style="margin-left: 50px; margin-top: 10px;"> |
|
|
|
报告不良</el-button> |
|
|
|
</el-form-item> |
|
|
|
@ -322,12 +322,12 @@ |
|
|
|
<fieldset class="customer-fieldset" style="margin-left: 600px; width: 200px; height: 80px;"> |
|
|
|
<legend class="customer-legend">扫描</legend> |
|
|
|
<el-form> |
|
|
|
<el-form-item> |
|
|
|
<el-form-item style="margin-top: -5px;"> |
|
|
|
<el-button type="primary" @click="produceToolModal" |
|
|
|
:disabled="buttonTags.toolFlag" style="margin-left: 30px; margin-top: 20px;"> |
|
|
|
刀模板</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-form-item style="margin-top: -5px;"> |
|
|
|
<el-button type="primary" @click="produceMaterialModal" |
|
|
|
:disabled="buttonTags.materialFlag" style="margin-left: 10px; margin-top: 20px;"> |
|
|
|
材料</el-button> |
|
|
|
@ -432,6 +432,7 @@ import { |
|
|
|
getSfdcDefectByCon, |
|
|
|
getSfdcRollByCon, |
|
|
|
refreshWorkPlatformButtons, |
|
|
|
checkProduceButton, |
|
|
|
} from "@/api/yieldReport/produce_report_normal.js"; |
|
|
|
/*引入组件*/ |
|
|
|
import comSwitchOperator from "./com_switch_operator";/*切换操作员*/ |
|
|
|
@ -2615,6 +2616,7 @@ export default { |
|
|
|
userName: this.$store.state.user.name, |
|
|
|
seqNo: '', |
|
|
|
orderNo: '', |
|
|
|
itemNo: 0, |
|
|
|
partNo: '', |
|
|
|
workCenterDesc: '', |
|
|
|
resourceDesc: '', |
|
|
|
@ -2679,6 +2681,7 @@ export default { |
|
|
|
getScheduleDataBySeqNo(this.scheduleData.seqNo).then(({data}) => { |
|
|
|
this.scheduleData.seqNo = data.row.seqNo; |
|
|
|
this.scheduleData.orderNo = data.row.orderNo; |
|
|
|
this.scheduleData.itemNo = data.row.itemNo; |
|
|
|
this.scheduleData.partNo = data.row.partNo; |
|
|
|
this.scheduleData.partDesc = data.row.partDesc; |
|
|
|
this.scheduleData.planStartTime = data.row.planStartTime; |
|
|
|
@ -2803,6 +2806,7 @@ export default { |
|
|
|
getScheduleDataBySeqNo(this.scheduleData.seqNo).then(({data}) => { |
|
|
|
this.scheduleData.seqNo= data.row.seqNo; |
|
|
|
this.scheduleData.orderNo= data.row.orderNo; |
|
|
|
this.scheduleData.itemNo = data.row.itemNo; |
|
|
|
this.scheduleData.partNo= data.row.partNo; |
|
|
|
this.scheduleData.partDesc= data.row.partDesc; |
|
|
|
this.scheduleData.planStartTime= data.row.planStartTime; |
|
|
|
@ -2835,58 +2839,58 @@ export default { |
|
|
|
|
|
|
|
//刷新当前页面的菜单 |
|
|
|
refreshPageButtons(){ |
|
|
|
refreshWorkPlatformButtons(this.searchData).then(({data}) => { |
|
|
|
if(data.resultMap.createNewRollFlag = 'Y'){ |
|
|
|
this.buttonTags.createNewRollFlag = true; |
|
|
|
}else{ |
|
|
|
/*refreshWorkPlatformButtons(this.scheduleData).then(({data}) => { |
|
|
|
if(data.resultMap.createNewRollFlag == 'Y'){ |
|
|
|
this.buttonTags.createNewRollFlag = false; |
|
|
|
} |
|
|
|
if(data.resultMap.switchRollFlag = 'Y'){ |
|
|
|
this.buttonTags.switchRollFlag = true; |
|
|
|
}else{ |
|
|
|
this.buttonTags.switchRollFlag = false; |
|
|
|
this.buttonTags.createNewRollFlag = true; |
|
|
|
} |
|
|
|
if(data.resultMap.separateRollFlag = 'Y'){ |
|
|
|
this.buttonTags.separateRollFlag = true; |
|
|
|
if(data.resultMap.switchRollFlag == 'Y'){ |
|
|
|
this.buttonTags.switchRollFlag = false; |
|
|
|
}else{ |
|
|
|
this.buttonTags.separateRollFlag = false; |
|
|
|
this.buttonTags.switchRollFlag = true; |
|
|
|
} |
|
|
|
if(data.resultMap.finishRollFlag = 'Y'){ |
|
|
|
this.buttonTags.finishRollFlag = true; |
|
|
|
if(data.resultMap.separateRollFlag == 'Y'){ |
|
|
|
this.buttonTags.separateRollFlag = false; |
|
|
|
}else{ |
|
|
|
this.buttonTags.finishRollFlag = false; |
|
|
|
this.buttonTags.separateRollFlag = true; |
|
|
|
} |
|
|
|
if(data.resultMap.tuningFlag = 'Y'){ |
|
|
|
this.buttonTags.tuningFlag = true; |
|
|
|
if(data.resultMap.finishRollFlag == 'Y'){ |
|
|
|
this.buttonTags.finishRollFlag = false; |
|
|
|
}else{ |
|
|
|
this.buttonTags.tuningFlag = false; |
|
|
|
this.buttonTags.finishRollFlag = true; |
|
|
|
} |
|
|
|
if(data.resultMap.produceFlag = 'Y'){ |
|
|
|
this.buttonTags.produceFlag = true; |
|
|
|
if(data.resultMap.tuningFlag == 'Y'){ |
|
|
|
this.buttonTags.tuningFlag = false; |
|
|
|
}else{ |
|
|
|
this.buttonTags.produceFlag = false; |
|
|
|
this.buttonTags.tuningFlag = true; |
|
|
|
} |
|
|
|
if(data.resultMap.defectFlag = 'Y'){ |
|
|
|
this.buttonTags.defectFlag = true; |
|
|
|
if(data.resultMap.produceFlag == 'Y'){ |
|
|
|
this.buttonTags.produceFlag = false; |
|
|
|
}else{ |
|
|
|
this.buttonTags.defectFlag = false; |
|
|
|
this.buttonTags.produceFlag = true; |
|
|
|
} |
|
|
|
if(data.resultMap.toolFlag = 'Y'){ |
|
|
|
this.buttonTags.toolFlag = true; |
|
|
|
if(data.resultMap.defectFlag == 'Y'){ |
|
|
|
this.buttonTags.defectFlag = false; |
|
|
|
}else{ |
|
|
|
this.buttonTags.toolFlag = false; |
|
|
|
this.buttonTags.defectFlag = true; |
|
|
|
} |
|
|
|
if(data.resultMap.materialFlag = 'Y'){ |
|
|
|
this.buttonTags.materialFlag = true; |
|
|
|
if(data.resultMap.toolFlag == 'Y'){ |
|
|
|
this.buttonTags.toolFlag = false; |
|
|
|
}else{ |
|
|
|
this.buttonTags.materialFlag = false; |
|
|
|
this.buttonTags.toolFlag = true; |
|
|
|
} |
|
|
|
if(data.resultMap.downTimeFlag = 'Y'){ |
|
|
|
this.buttonTags.downTimeFlag = true; |
|
|
|
if(data.resultMap.materialFlag == 'Y'){ |
|
|
|
this.buttonTags.materialFlag = false; |
|
|
|
}else{ |
|
|
|
this.buttonTags.materialFlag = true; |
|
|
|
} |
|
|
|
if(data.resultMap.downTimeFlag == 'Y'){ |
|
|
|
this.buttonTags.downTimeFlag = false; |
|
|
|
}else{ |
|
|
|
this.buttonTags.downTimeFlag = true; |
|
|
|
} |
|
|
|
}); |
|
|
|
});*/ |
|
|
|
}, |
|
|
|
|
|
|
|
//设置参数 |
|
|
|
|