Browse Source

无操作原的时候 所有的按钮 暂停使用

master
rui_li 4 years ago
parent
commit
04d3203d16
  1. 35
      src/views/modules/yieldReport/com_produce_report_normal.vue
  2. 3
      src/views/modules/yieldReport/produce_order.vue

35
src/views/modules/yieldReport/com_produce_report_normal.vue

@ -93,7 +93,7 @@
</el-button>
</el-form-item>
<el-form-item>
<el-button class="customer-bun-mid" type="primary"
<el-button class="customer-bun-mid" type="primary" :disabled="buttonTags.finishScheduleFlag"
@click="showFinishScheduleModal" style="margin-left: 10px; margin-bottom: 5px;">
结单
</el-button>
@ -374,14 +374,14 @@
</el-button>
</el-form-item>
<el-form-item style="margin-top: 35px;">
<el-button class="customer-bun-mid" type="primary" @click="startTuningModal"
<el-button class="customer-bun-mid controller-bun" type="primary" @click="startTuningModal"
:disabled="buttonTags.tuningFlag"
style="margin-left: 15px; margin-bottom: 5px;">
开始调机
</el-button>
</el-form-item>
<el-form-item style="margin-top: 35px;">
<el-button class="customer-bun-mid" type="primary" @click="startProduceModal"
<el-button class="customer-bun-mid controller-bun" type="primary" @click="startProduceModal"
:disabled="buttonTags.produceFlag"
style="margin-left: 20px; margin-bottom: 5px;">
开始生产
@ -394,7 +394,7 @@
<legend class="customer-legend">不良</legend>
<el-form style="text-align: center;">
<el-form-item style="margin-top: 5px;">
<el-button class="customer-bun-mid" @click="defectRollModal" type="primary"
<el-button class="customer-bun-mid controller-bun" @click="defectRollModal" type="primary"
:disabled="buttonTags.defectFlag"
style="margin-left: 0px; margin-top: 10px;">
报告不良
@ -408,13 +408,13 @@
<legend class="customer-legend">扫描</legend>
<el-form>
<el-form-item style="margin-top: -5px;">
<el-button class="customer-bun-mid" type="primary" @click="produceToolModal"
<el-button class="customer-bun-mid controller-bun" type="primary" @click="produceToolModal"
:disabled="buttonTags.toolFlag" style="margin-left: 15px; margin-top: 20px;">
刀模板
</el-button>
</el-form-item>
<el-form-item style="margin-top: -5px;">
<el-button class="customer-bun-mid" type="primary" @click="produceMaterialModal"
<el-button class="customer-bun-mid controller-bun" type="primary" @click="produceMaterialModal"
:disabled="buttonTags.materialFlag" style="margin-left: 20px; margin-top: 20px;">
材料
</el-button>
@ -428,7 +428,7 @@
<legend class="customer-legend">停机</legend>
<el-form style="text-align: center;">
<el-form-item>
<el-button class="customer-bunx-max" type="primary" @click="produceDownModal"
<el-button class="customer-bunx-max controller-bun" type="primary" @click="produceDownModal"
:disabled="buttonTags.downTimeFlag" style="margin-top: 10px;">
报告其他停机
</el-button>
@ -463,7 +463,7 @@
未生产下机拆卷
</el-button>
</div>
<el-button type="primary" style=" width: 80px; margin-bottom: 5px; " @click="popoverFlag=true"
<el-button type="primary" class="controller-bun" :disabled="buttonTags.finishScheduleFlag" style=" width: 80px; margin-bottom: 5px; " @click="popoverFlag=true"
slot="reference">其它操作
</el-button>
</el-popover>
@ -2867,7 +2867,9 @@ export default {
defectFlag: false,
produceToolFlag: false,
materialFlag: false,
downTimeFlag: false
downTimeFlag: false,
finishScheduleFlag: false,
otherBunFlag: false,
},
dataListLoading: false,
}
@ -3054,6 +3056,7 @@ export default {
},
init(seqNo, operatorData) {
//
this.scheduleData.seqNo = seqNo;
this.currentRollOps.seqNo = seqNo;
this.operatorData = operatorData;
@ -3120,9 +3123,14 @@ export default {
this.buttonTags.toolFlag = true;
this.buttonTags.materialFlag = true;
this.buttonTags.downTimeFlag = true;
this.buttonTags.mergeRollFlag = true;
this.buttonTags.finishScheduleFlag = true;
} else {
//
this.buttonTags.mergeRollFlag = false;
this.buttonTags.finishScheduleFlag = false;
this.buttonTags.otherBunFlag = false;
//
await refreshWorkPlatformButtons(this.scheduleData).then(({data}) => {
if (data.resultMap.createNewRollFlag == 'Y') {
@ -3192,8 +3200,17 @@ export default {
/*不初始化操作员的方法*/
notInitOperatorData() {
debugger;
//
this.showOperatorFlag = false;
$(".controller-bun").addClass("disabled-bun");
//
this.operatorData.operatorId = '';
this.operatorData.operatorName = '';
this.operatorData.showFlag = false;
//
this.titleCon = '机台工作台' + ' - ' + this.scheduleData.workCenterDesc + ' '
+ this.scheduleData.resourceDesc + ' (' + this.operatorData.operatorName + ')';
},
//modal

3
src/views/modules/yieldReport/produce_order.vue

@ -1072,6 +1072,9 @@ export default {
},
notInitOperatorData(val){
//
this.operatorData.operatorId = '';
this.operatorData.operatorName = '';
//
this.showOperatorFlag = false;
if (val == 0){

Loading…
Cancel
Save