|
|
|
@ -172,14 +172,14 @@ |
|
|
|
<div class="info-item"> |
|
|
|
<div class="info-item"> |
|
|
|
<div class="info-cell info-title-num">{{ index + 1 }}</div> |
|
|
|
<div class="info-cell info-title-num">{{ index + 1 }}</div> |
|
|
|
<el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-col :span="24"> |
|
|
|
<div class="info-item-txt">订单号:{{ order.woCode }}</div> |
|
|
|
<div class="info-item-txt info-item-info"> |
|
|
|
</el-col> |
|
|
|
<span style="font-weight:600;">{{ order.woCode }}</span>/ |
|
|
|
<el-col :span="12"> |
|
|
|
<span>{{ order.partCode }}</span> |
|
|
|
<div class="info-item-txt">零件号:{{ order.partCode }}</div> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-col :span="24"> |
|
|
|
<div class="info-item-txt"> |
|
|
|
<div class="info-item-txt info-item-info"> |
|
|
|
{{ order.batchNo }}<i> / </i>{{ order.makeQty }}<i> / </i |
|
|
|
{{ order.batchNo }}<i> / </i>{{ order.makeQty }}<i> / </i |
|
|
|
>{{ order.productIdent }}<i v-if="order.priorityAps != ''"> / </i |
|
|
|
>{{ order.productIdent }}<i v-if="order.priorityAps != ''"> / </i |
|
|
|
>{{ order.priorityAps }} |
|
|
|
>{{ order.priorityAps }} |
|
|
|
@ -385,23 +385,23 @@ |
|
|
|
<span class="value">{{ tooltipData.makeQty || '-' }}</span> |
|
|
|
<span class="value">{{ tooltipData.makeQty || '-' }}</span> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li class="detail-item"> |
|
|
|
<li class="detail-item"> |
|
|
|
<span class="label">计划开始时间:</span> |
|
|
|
<span class="label">计划开始:</span> |
|
|
|
<span class="value">{{ tooltipData.planStartTime || '-' }}</span> |
|
|
|
<span class="value">{{ tooltipData.planStartTime || '-' }}</span> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li class="detail-item"> |
|
|
|
<li class="detail-item"> |
|
|
|
<span class="label">实际开始时间:</span> |
|
|
|
<span class="label">计划完成:</span> |
|
|
|
<span class="value">{{ tooltipData.factStartTime || '-' }}</span> |
|
|
|
<span class="value">{{ tooltipData.planEndTime || '-' }}</span> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li class="detail-item"> |
|
|
|
<li class="detail-item"> |
|
|
|
<span class="label">计划完成时间:</span> |
|
|
|
<span class="label">实际开始:</span> |
|
|
|
<span class="value">{{ tooltipData.planEndTime || '-' }}</span> |
|
|
|
<span class="value">{{ tooltipData.factStartTime || '-' }}</span> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li class="detail-item"> |
|
|
|
<li class="detail-item"> |
|
|
|
<span class="label">实际完成时间:</span> |
|
|
|
<span class="label">实际完成:</span> |
|
|
|
<span class="value">{{ tooltipData.factEndTime || '-' }}</span> |
|
|
|
<span class="value">{{ tooltipData.factEndTime || '-' }}</span> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li class="detail-item"> |
|
|
|
<li class="detail-item"> |
|
|
|
<span class="label">状态:</span> |
|
|
|
<span class="label">工序状态:</span> |
|
|
|
<span class="value"> |
|
|
|
<span class="value"> |
|
|
|
<el-tag :type="getStatusTagType(tooltipData)"> |
|
|
|
<el-tag :type="getStatusTagType(tooltipData)"> |
|
|
|
<i v-if="tooltipData.planStatus == '1'">未开始</i> |
|
|
|
<i v-if="tooltipData.planStatus == '1'">未开始</i> |
|
|
|
@ -460,7 +460,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
// 分页参数 |
|
|
|
// 分页参数 |
|
|
|
currentPage: 1, |
|
|
|
currentPage: 1, |
|
|
|
pageSize: 10, |
|
|
|
pageSize: 8, |
|
|
|
|
|
|
|
|
|
|
|
// 提示框相关 |
|
|
|
// 提示框相关 |
|
|
|
tooltipVisible: false, |
|
|
|
tooltipVisible: false, |
|
|
|
@ -597,7 +597,7 @@ export default { |
|
|
|
dates.push({ |
|
|
|
dates.push({ |
|
|
|
date: date, |
|
|
|
date: date, |
|
|
|
position: Math.max(0, Math.min(100, positionPercent)), |
|
|
|
position: Math.max(0, Math.min(100, positionPercent)), |
|
|
|
label: `${date.getFullYear()}/${date.getMonth() + 1}/${date.getDate()}`, // 显示年/月/日 |
|
|
|
label: `${date.getFullYear()}年${date.getMonth() + 1}月${date.getDate()}日`, // 显示年/月/日 |
|
|
|
dayName: this.getDayName(date.getDay()), |
|
|
|
dayName: this.getDayName(date.getDay()), |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1100,6 +1100,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
// 确保百分比在有效范围内 |
|
|
|
// 确保百分比在有效范围内 |
|
|
|
const percent = (startHour / totalDuration) * 100; |
|
|
|
const percent = (startHour / totalDuration) * 100; |
|
|
|
|
|
|
|
console.log('percent',percent) |
|
|
|
return Math.max(0, Math.min(100, percent)); |
|
|
|
return Math.max(0, Math.min(100, percent)); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
@ -1117,7 +1118,8 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 确保宽度在有效范围内 |
|
|
|
// 确保宽度在有效范围内 |
|
|
|
const width = (duration / totalDuration) * 100; |
|
|
|
const width = ((duration / totalDuration) * 100); |
|
|
|
|
|
|
|
|
|
|
|
return Math.max(0, Math.min(100, width)); |
|
|
|
return Math.max(0, Math.min(100, width)); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
@ -1253,7 +1255,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
/* 左侧信息列表样式 */ |
|
|
|
/* 左侧信息列表样式 */ |
|
|
|
.info-list { |
|
|
|
.info-list { |
|
|
|
width: 450px; |
|
|
|
width: 330px; |
|
|
|
background-color: #f8f9fa; |
|
|
|
background-color: #f8f9fa; |
|
|
|
flex-shrink: 0; |
|
|
|
flex-shrink: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1281,6 +1283,13 @@ export default { |
|
|
|
.info-item-txt i { |
|
|
|
.info-item-txt i { |
|
|
|
font-style: normal; |
|
|
|
font-style: normal; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.info-item-info{ |
|
|
|
|
|
|
|
display: flex; |
|
|
|
|
|
|
|
justify-content: space-between; |
|
|
|
|
|
|
|
align-items: center; |
|
|
|
|
|
|
|
padding-right: 15px; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.info-title-cell { |
|
|
|
.info-title-cell { |
|
|
|
flex: 1; |
|
|
|
flex: 1; |
|
|
|
@ -1511,14 +1520,14 @@ export default { |
|
|
|
border-radius: 5px; |
|
|
|
border-radius: 5px; |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
|
padding: 2px 8px; |
|
|
|
padding: 2px 2px; |
|
|
|
box-sizing: border-box; |
|
|
|
box-sizing: border-box; |
|
|
|
cursor: pointer; |
|
|
|
cursor: pointer; |
|
|
|
overflow: hidden; |
|
|
|
overflow: hidden; |
|
|
|
transition: all 0.2s; |
|
|
|
transition: all 0.2s; |
|
|
|
white-space: nowrap; |
|
|
|
white-space: nowrap; |
|
|
|
border: 1px solid rgba(255, 255, 255, 0.3); |
|
|
|
border: 1px solid rgba(255, 255, 255, 0.3); |
|
|
|
min-width: 20px; |
|
|
|
min-width: 5px; |
|
|
|
z-index: 1; |
|
|
|
z-index: 1; |
|
|
|
} |
|
|
|
} |
|
|
|
.task-bar.task-bar-narrow { |
|
|
|
.task-bar.task-bar-narrow { |
|
|
|
@ -1574,7 +1583,7 @@ export default { |
|
|
|
background-color: white; |
|
|
|
background-color: white; |
|
|
|
border: 1px solid #ddd; |
|
|
|
border: 1px solid #ddd; |
|
|
|
border-radius: 4px; |
|
|
|
border-radius: 4px; |
|
|
|
padding: 5px; |
|
|
|
padding: 20px; |
|
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); |
|
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); |
|
|
|
z-index: 1000; |
|
|
|
z-index: 1000; |
|
|
|
font-size: 12px; |
|
|
|
font-size: 12px; |
|
|
|
@ -1605,9 +1614,10 @@ export default { |
|
|
|
line-height: 20px; |
|
|
|
line-height: 20px; |
|
|
|
|
|
|
|
|
|
|
|
.label { |
|
|
|
.label { |
|
|
|
width: 100px; |
|
|
|
width: 60px; |
|
|
|
color: #666; |
|
|
|
color: #666; |
|
|
|
font-weight: 500; |
|
|
|
font-weight: 500; |
|
|
|
|
|
|
|
text-align: right; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.value { |
|
|
|
.value { |
|
|
|
|