Browse Source

2026-02-10

机台工作台增加【合并卷】【结单】【切换用户】的按钮校验
master
fengyuan_yang 2 weeks ago
parent
commit
a8fc5ea5e1
  1. 26
      src/views/modules/yieldReport/com_produce_report_normal.vue

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

@ -170,7 +170,7 @@
<el-button type="primary" size="small" @click="refreshPageData" icon="el-icon-refresh"> <el-button type="primary" size="small" @click="refreshPageData" icon="el-icon-refresh">
刷新 刷新
</el-button> </el-button>
<el-button type="primary" size="small" @click="switchOperatorModal" icon="el-icon-user">
<el-button type="primary" size="small" @click="switchOperatorModal" :disabled="buttonTags.switchUser" icon="el-icon-user">
切换用户 切换用户
</el-button> </el-button>
</div> </div>
@ -3313,7 +3313,8 @@ export default {
otherBunFlag: true, otherBunFlag: true,
materialMalformedFlag: true, materialMalformedFlag: true,
malformedMaterialFlag: true, malformedMaterialFlag: true,
processInspectionFlag: true
processInspectionFlag: true,
switchUser: true
}, },
dataListLoading: false, dataListLoading: false,
productionStatusLoading: false, // / loading productionStatusLoading: false, // / loading
@ -4383,10 +4384,11 @@ export default {
this.buttonTags.malformedMaterialFlag = true this.buttonTags.malformedMaterialFlag = true
this.buttonTags.malformedMaterialButtonFlag = true this.buttonTags.malformedMaterialButtonFlag = true
this.buttonTags.processInspectionFlag = true this.buttonTags.processInspectionFlag = true
this.buttonTags.switchUser = true
} else { } else {
// //
this.buttonTags.mergeRollFlag = false;
this.buttonTags.finishScheduleFlag = false;
// this.buttonTags.mergeRollFlag = false;
// this.buttonTags.finishScheduleFlag = false;
this.buttonTags.otherBunFlag = false; this.buttonTags.otherBunFlag = false;
this.buttonTags.materialMalformedFlag = false this.buttonTags.materialMalformedFlag = false
this.buttonTags.malformedMaterialFlag = false this.buttonTags.malformedMaterialFlag = false
@ -4448,6 +4450,22 @@ export default {
} else { } else {
this.buttonTags.processInspectionFlag = true; this.buttonTags.processInspectionFlag = true;
} }
if (data.resultMap.combineRoll == 'Y') {
this.buttonTags.mergeRollFlag = false;
} else {
this.buttonTags.mergeRollFlag = true;
}
if (data.resultMap.finishOrder == 'Y') {
this.buttonTags.finishScheduleFlag = false;
} else {
this.buttonTags.finishScheduleFlag = true;
}
if (data.resultMap.switchUser == 'Y') {
this.buttonTags.switchUser = false;
} else {
this.buttonTags.switchUser = true;
}
}); });
let dto = { let dto = {

Loading…
Cancel
Save