|
|
@ -13,27 +13,27 @@ |
|
|
</el-button> |
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="''"> |
|
|
<el-form-item :label="''"> |
|
|
<el-button type="primary" @click="switchOperatorModal()" class="customer-bun-mid" |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="switchOperatorModal(0)" class="customer-bun-mid" |
|
|
style="margin-left: 10px; margin-bottom: 5px;">报工 |
|
|
style="margin-left: 10px; margin-bottom: 5px;">报工 |
|
|
</el-button> |
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="''"> |
|
|
<el-form-item :label="''"> |
|
|
<el-button type="primary" @click="fqcReport()" class="customer-bun-mid" |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="switchOperatorModal(1)" class="customer-bun-mid" |
|
|
style="margin-left: 10px; margin-bottom: 5px;">FQC报工 |
|
|
style="margin-left: 10px; margin-bottom: 5px;">FQC报工 |
|
|
</el-button> |
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="''"> |
|
|
<el-form-item :label="''"> |
|
|
<el-button type="primary" @click="refreshPageTables()" class="customer-bun-mid" |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="switchOperatorModal(2)" class="customer-bun-mid" |
|
|
style="margin-left: 10px; margin-bottom: 5px;">返工重检 |
|
|
style="margin-left: 10px; margin-bottom: 5px;">返工重检 |
|
|
</el-button> |
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="''"> |
|
|
<el-form-item :label="''"> |
|
|
<el-button type="primary" @click="refreshPageTables()" class="customer-bun-mid" |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="switchOperatorModal(4)" class="customer-bun-mid" |
|
|
style="margin-left: 10px; margin-bottom: 5px;">换包装 |
|
|
style="margin-left: 10px; margin-bottom: 5px;">换包装 |
|
|
</el-button> |
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="''"> |
|
|
<el-form-item :label="''"> |
|
|
<el-button type="primary" @click="refreshPageTables()" class="customer-bun-mid" |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="switchOperatorModal(3)" class="customer-bun-mid" |
|
|
style="margin-left: 10px; margin-bottom: 5px;">FQC分卷 |
|
|
style="margin-left: 10px; margin-bottom: 5px;">FQC分卷 |
|
|
</el-button> |
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
@ -128,6 +128,12 @@ |
|
|
:visible.sync="fqcShowReportFlag" ref="fqcProduceReportNormal"> |
|
|
:visible.sync="fqcShowReportFlag" ref="fqcProduceReportNormal"> |
|
|
</fqcProduceReportNormal> |
|
|
</fqcProduceReportNormal> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 返工重检 --> |
|
|
|
|
|
<reworkInspectReport :close-on-click-modal="false" |
|
|
|
|
|
:visible.sync="reworkShowReportFlag" ref="reworkInspectReport"></reworkInspectReport> |
|
|
|
|
|
<!-- FQC分卷 --> |
|
|
|
|
|
<fqcSplitRollReport :close-on-click-modal="false" |
|
|
|
|
|
:visible.sync="fqcRollShowReportFlag" ref="fqcSplitRollReport"></fqcSplitRollReport> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
@ -142,6 +148,8 @@ import comSwitchOperator from "./com_switch_operator";/*切换操作员*/ |
|
|
import comProduceReportNormal from "./com_produce_report_normal";/* 报工的组件*/ |
|
|
import comProduceReportNormal from "./com_produce_report_normal";/* 报工的组件*/ |
|
|
import comFinishSchedule from "./com_finish_schedule";/*结束派工的组件*/ |
|
|
import comFinishSchedule from "./com_finish_schedule";/*结束派工的组件*/ |
|
|
import fqcProduceReportNormal from "./otherReport/fqc_produce_report_normal";/*结束派工的组件*/ |
|
|
import fqcProduceReportNormal from "./otherReport/fqc_produce_report_normal";/*结束派工的组件*/ |
|
|
|
|
|
import reworkInspectReport from "./otherReport/rework_inspect_report";/*结束派工的组件*/ |
|
|
|
|
|
import fqcSplitRollReport from "./otherReport/fqc_split_roll_report";/*结束派工的组件*/ |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
@ -150,6 +158,8 @@ export default { |
|
|
showOperatorFlag: false, |
|
|
showOperatorFlag: false, |
|
|
showReportFlag: false, |
|
|
showReportFlag: false, |
|
|
fqcShowReportFlag:false, |
|
|
fqcShowReportFlag:false, |
|
|
|
|
|
reworkShowReportFlag:false, |
|
|
|
|
|
fqcRollShowReportFlag: false, |
|
|
showFinishScheduleFlag:false, |
|
|
showFinishScheduleFlag:false, |
|
|
searchData: { |
|
|
searchData: { |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
@ -959,7 +969,9 @@ export default { |
|
|
comSwitchOperator,/*切换用户的组件*/ |
|
|
comSwitchOperator,/*切换用户的组件*/ |
|
|
comProduceReportNormal,/*报工页面的组件*/ |
|
|
comProduceReportNormal,/*报工页面的组件*/ |
|
|
comFinishSchedule,/*结束派工单的组件*/ |
|
|
comFinishSchedule,/*结束派工单的组件*/ |
|
|
fqcProduceReportNormal, /*fqc报工*/ |
|
|
|
|
|
|
|
|
fqcProduceReportNormal, /*FQC报工*/ |
|
|
|
|
|
reworkInspectReport, /*返工重建*/ |
|
|
|
|
|
fqcSplitRollReport, /*FQC分卷*/ |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
@ -967,39 +979,44 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
|
|
|
// FQC 报工 |
|
|
// FQC 报工 |
|
|
fqcReport(){ |
|
|
|
|
|
|
|
|
fqcReportModal(){ |
|
|
//首先判断是否选择好派工单 |
|
|
//首先判断是否选择好派工单 |
|
|
if (JSON.stringify(this.currentRow) == '{}') { |
|
|
if (JSON.stringify(this.currentRow) == '{}') { |
|
|
this.$message.error('请先选择派工单!'); |
|
|
this.$message.error('请先选择派工单!'); |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
//打开操作员切换功能 |
|
|
//打开操作员切换功能 |
|
|
this.showOperatorFlag = true; |
|
|
|
|
|
|
|
|
this.fqcShowReportFlag = true; |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.$refs.comSwitchOperator.init(1); |
|
|
|
|
|
|
|
|
this.$refs.fqcProduceReportNormal.init(this.currentRow.seqNo, this.operatorData); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
fqcReportModal(){ |
|
|
|
|
|
//首先判断是否选择好派工单 |
|
|
|
|
|
|
|
|
// FQC 分卷 |
|
|
|
|
|
fqcSplitRollModal(){ |
|
|
if (JSON.stringify(this.currentRow) == '{}') { |
|
|
if (JSON.stringify(this.currentRow) == '{}') { |
|
|
this.$message.error('请先选择派工单!'); |
|
|
this.$message.error('请先选择派工单!'); |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
//打开操作员切换功能 |
|
|
//打开操作员切换功能 |
|
|
this.fqcShowReportFlag = true; |
|
|
|
|
|
|
|
|
this.fqcRollShowReportFlag = true; |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.$refs.fqcProduceReportNormal.init(this.currentRow.seqNo, this.operatorData); |
|
|
|
|
|
|
|
|
this.$refs.fqcSplitRollReport.init(this.currentRow.seqNo, this.operatorData); |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
|
|
|
// FQC 分卷 |
|
|
|
|
|
fqcSplitRoll(){ |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
// 返工重捡 |
|
|
// 返工重捡 |
|
|
reworkInspect(){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reworkInspectModal(){ |
|
|
|
|
|
//首先判断是否选择好派工单 |
|
|
|
|
|
if (JSON.stringify(this.currentRow) == '{}') { |
|
|
|
|
|
this.$message.error('请先选择派工单!'); |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
//打开操作员切换功能 |
|
|
|
|
|
this.reworkShowReportFlag = true; |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$refs.reworkInspectReport.init(this.currentRow.seqNo, this.operatorData); |
|
|
|
|
|
}); |
|
|
}, |
|
|
}, |
|
|
// 换包装 |
|
|
// 换包装 |
|
|
changePackaging(){ |
|
|
changePackaging(){ |
|
|
@ -1038,6 +1055,14 @@ export default { |
|
|
this.fqcReportModal(); |
|
|
this.fqcReportModal(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (operatorData.reportType == 2){ |
|
|
|
|
|
//切换到返工 重检组件 |
|
|
|
|
|
this.reworkInspectModal(); |
|
|
|
|
|
} |
|
|
|
|
|
if (operatorData.reportType == 3){ |
|
|
|
|
|
//切换到fqc分卷组件 |
|
|
|
|
|
this.fqcSplitRollModal(); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
notInitOperatorData(val){ |
|
|
notInitOperatorData(val){ |
|
|
@ -1047,15 +1072,26 @@ export default { |
|
|
//切换到报工组件 |
|
|
//切换到报工组件 |
|
|
this.switchProduceReportModal(); |
|
|
this.switchProduceReportModal(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (val == 1){ |
|
|
if (val == 1){ |
|
|
// FQC 报工 |
|
|
|
|
|
this.fqcReportModal() |
|
|
|
|
|
|
|
|
//切换到fqc报工组件 |
|
|
|
|
|
this.fqcReportModal(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (val == 2){ |
|
|
|
|
|
//切换到返工 重检组件 |
|
|
|
|
|
this.reworkInspectModal(); |
|
|
|
|
|
} |
|
|
|
|
|
if (val == 3){ |
|
|
|
|
|
//切换到fqc分卷组件 |
|
|
|
|
|
this.fqcSplitRollModal(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//切换员工modal |
|
|
//切换员工modal |
|
|
switchOperatorModal() { |
|
|
|
|
|
|
|
|
switchOperatorModal(val) { |
|
|
|
|
|
console.log(val) |
|
|
//首先判断是否选择好派工单 |
|
|
//首先判断是否选择好派工单 |
|
|
if (JSON.stringify(this.currentRow) == '{}') { |
|
|
if (JSON.stringify(this.currentRow) == '{}') { |
|
|
this.$message.error('请先选择派工单!'); |
|
|
this.$message.error('请先选择派工单!'); |
|
|
@ -1064,7 +1100,7 @@ export default { |
|
|
//打开操作员切换功能 |
|
|
//打开操作员切换功能 |
|
|
this.showOperatorFlag = true; |
|
|
this.showOperatorFlag = true; |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.$refs.comSwitchOperator.init(0); |
|
|
|
|
|
|
|
|
this.$refs.comSwitchOperator.init(val); |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|