|
|
|
|
@ -30,15 +30,38 @@ |
|
|
|
|
<el-button type="success" plain @click="queryOrdersHandle('15')">已完工</el-button> |
|
|
|
|
</template> |
|
|
|
|
<template #menu="scope"> |
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-button type="text" @click="clickProduction(scope.row)">生产监控</el-button> |
|
|
|
|
<el-button type="text" @click="printCraftCard_new(scope.row)">流程卡</el-button> |
|
|
|
|
<el-dropdown size="small" style="margin-top: 2px; margin-left: 10px"> |
|
|
|
|
<span class="el-dropdown-link"> |
|
|
|
|
更多 |
|
|
|
|
<el-icon class="el-icon--right"> |
|
|
|
|
<arrow-down /> |
|
|
|
|
</el-icon> |
|
|
|
|
</span> |
|
|
|
|
<template #dropdown> |
|
|
|
|
<el-dropdown-menu> |
|
|
|
|
<el-dropdown-item v-if="scope.row.runStatus === 2"> |
|
|
|
|
<el-button type="text" @click="priorityFn(scope.row)">优先级</el-button> |
|
|
|
|
</el-dropdown-item> |
|
|
|
|
<el-dropdown-item v-if="[2, 3, 4, 6].includes(scope.row.runStatus)"> |
|
|
|
|
<el-button type="text" @click="handleBatches(scope.row)">分批</el-button> |
|
|
|
|
</el-dropdown-item> |
|
|
|
|
<el-dropdown-item v-if="scope.row.runStatus < 15"> |
|
|
|
|
<el-button type="text" @click="handleClose(scope.row)">关闭</el-button> |
|
|
|
|
</el-dropdown-item> |
|
|
|
|
</el-dropdown-menu> |
|
|
|
|
</template> |
|
|
|
|
</el-dropdown> |
|
|
|
|
<!-- <el-row> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-button type="text" @click="printCraftCard_new(scope.row)">流程卡</el-button> |
|
|
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6" v-if="scope.row.runStatus === 2"> |
|
|
|
|
<el-button type="text" @click="priorityFn(scope.row)">优先级</el-button> |
|
|
|
|
<el-col :span="6" > |
|
|
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6" v-if="[2, 3, 4, 6].includes(scope.row.runStatus)"> |
|
|
|
|
<el-button type="text" @click="handleBatches(scope.row)">分批</el-button> |
|
|
|
|
@ -46,7 +69,7 @@ |
|
|
|
|
<el-col :span="6" v-if="scope.row.runStatus < 15"> |
|
|
|
|
<el-button type="text" @click="handleClose(scope.row)">关闭</el-button> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
</el-row> --> |
|
|
|
|
|
|
|
|
|
<!-- <el-button |
|
|
|
|
type="text" |
|
|
|
|
@ -108,7 +131,6 @@ |
|
|
|
|
@closeDialog="closeDialog" |
|
|
|
|
></productionMonitoringDialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 生产监控 --> |
|
|
|
|
<workRate |
|
|
|
|
v-if="isWorkRateOpen" |
|
|
|
|
@ -136,7 +158,7 @@ export default { |
|
|
|
|
closedDialog, |
|
|
|
|
abnormalDialog, |
|
|
|
|
productionMonitoringDialog, |
|
|
|
|
workRate |
|
|
|
|
workRate, |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
@ -189,7 +211,7 @@ isWorkRateOpen: false, |
|
|
|
|
viewBtnText: '详情', |
|
|
|
|
labelWidth: 120, |
|
|
|
|
// searchLabelWidth: 120, |
|
|
|
|
menuWidth: 220, |
|
|
|
|
menuWidth: 180, |
|
|
|
|
dialogWidth: 1200, |
|
|
|
|
dialogClickModal: false, |
|
|
|
|
searchEnter: true, |
|
|
|
|
@ -604,14 +626,13 @@ isWorkRateOpen: false, |
|
|
|
|
handlePrint() { |
|
|
|
|
if (this.selectionList.length == 0) { |
|
|
|
|
this.$message.error('请先选择数据'); |
|
|
|
|
return false |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
if (this.selectionList.length > 1) { |
|
|
|
|
this.$message.error('只能选择一条数据'); |
|
|
|
|
return false |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
window.open(window.PROCESS_FLOW_CARD_PRINT_SUPPORT + '?yold=' + this.selectionList[0].yoId); |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
// 异常申报 |
|
|
|
|
handleAbnormal(row) { |
|
|
|
|
@ -676,4 +697,25 @@ isWorkRateOpen: false, |
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style></style> |
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
:deep(.el-dropdown-link) { |
|
|
|
|
cursor: pointer; |
|
|
|
|
color: var(--el-color-primary); |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
font-size: 12px; // 与 el-button type="text" 字体一致 |
|
|
|
|
|
|
|
|
|
&:hover { |
|
|
|
|
color: var(--el-color-primary-light-3); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
:deep(.el-dropdown-menu__item) { |
|
|
|
|
font-size: 12px; // 下拉项字体与按钮一致 |
|
|
|
|
padding: 8px 16px; |
|
|
|
|
|
|
|
|
|
&:hover { |
|
|
|
|
background-color: var(--el-fill-color-light); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|
|