This commit is contained in:
砂糖
2025-12-16 13:25:55 +08:00

View File

@@ -345,7 +345,7 @@
{{ getOperationText(signalData.operation) }} {{ getOperationText(signalData.operation) }}
</span> </span>
</div> </div>
<div><strong>钢卷号:</strong> {{ signalData.entryMatId }}</div> <div><strong>钢卷号:</strong> {{ producingCoilId || signalData.entryMatId || '-' }}</div>
<div><strong>计划ID:</strong> {{ signalData.planId || '-' }}</div> <div><strong>计划ID:</strong> {{ signalData.planId || '-' }}</div>
<div v-if="signalData.porIdx !== null && signalData.porIdx !== undefined"> <div v-if="signalData.porIdx !== null && signalData.porIdx !== undefined">
<strong>开卷机:</strong> {{ signalData.porIdx }} <strong>开卷机:</strong> {{ signalData.porIdx }}
@@ -647,6 +647,19 @@ export default {
) )
}, },
// 当前生产中的计划(取状态为生产中的首条)
producingPlan() {
return this.planQueue.find(plan => ['PRODUCING', 'PRODUCTING'].includes(plan.status))
},
// 当前生产中的钢卷号
producingCoilId() {
if (this.producingPlan) {
return this.producingPlan.coilid || this.producingPlan.matId || ''
}
return ''
},
// 显示的计划列表根据tab切换 // 显示的计划列表根据tab切换
displayedPlans() { displayedPlans() {
if (this.activeQueueTab === 'current') { if (this.activeQueueTab === 'current') {