|
|
|
@ -18,8 +18,8 @@ |
|
|
|
> |
|
|
|
> |
|
|
|
<template #menu-left> |
|
|
|
<template #menu-left> |
|
|
|
<!-- <el-button type="primary" @click="handlePrintTags">过程记录打印</el-button> --> |
|
|
|
<!-- <el-button type="primary" @click="handlePrintTags">过程记录打印</el-button> --> |
|
|
|
<el-button type="primary" @click="handlePrintTags">打印标签</el-button> |
|
|
|
<el-button type="primary" @click="handlePrintTags" v-if="permission.productionMonitoring_print_label">打印标签</el-button> |
|
|
|
<el-button type="primary" @click="handleInterlocking">合批</el-button> |
|
|
|
<el-button type="primary" @click="handleInterlocking" v-if="permission.productionMonitoring_mergeBatch">合批</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template #menu-right> |
|
|
|
<template #menu-right> |
|
|
|
@ -30,9 +30,9 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template #menu="scope"> |
|
|
|
<template #menu="scope"> |
|
|
|
<el-button type="text" @click="clickProduction(scope.row)">生产监控</el-button> |
|
|
|
<el-button type="text" @click="clickProduction(scope.row)" v-if="permission.productionMonitoring_workRate">生产监控</el-button> |
|
|
|
<el-button type="text" @click="printCraftCard_new(scope.row)">流程卡</el-button> |
|
|
|
<el-button type="text" @click="printCraftCard_new(scope.row)" v-if="permission.productionMonitoring_cardNo">流程卡</el-button> |
|
|
|
<el-dropdown size="small" style="margin-top: 2px;margin-left:10px"> |
|
|
|
<el-dropdown size="small" style="margin-top: 2px;margin-left:10px" v-if="permission.productionMonitoring_priority||permission.productionMonitoring_split_batch||permission.productionMonitoring_trun_oem||permission.productionMonitoring_turn_sj||permission.productionMonitoring_close"> |
|
|
|
<span class="el-dropdown-link"> |
|
|
|
<span class="el-dropdown-link"> |
|
|
|
更多 |
|
|
|
更多 |
|
|
|
<el-icon class="el-icon--right"> |
|
|
|
<el-icon class="el-icon--right"> |
|
|
|
@ -41,22 +41,22 @@ |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<template #dropdown> |
|
|
|
<template #dropdown> |
|
|
|
<el-dropdown-menu> |
|
|
|
<el-dropdown-menu> |
|
|
|
<el-dropdown-item v-if="scope.row.runStatus === 2"> |
|
|
|
<el-dropdown-item v-if="(scope.row.runStatus === 2)&&permission.productionMonitoring_priority"> |
|
|
|
<el-button type="text" @click="priorityFn(scope.row)">优先级</el-button> |
|
|
|
<el-button type="text" @click="priorityFn(scope.row)">优先级</el-button> |
|
|
|
</el-dropdown-item> |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item v-if="[2, 3, 4, 6].includes(scope.row.runStatus)"> |
|
|
|
<el-dropdown-item v-if="([2, 3, 4, 6].includes(scope.row.runStatus))&&permission.productionMonitoring_split_batch"> |
|
|
|
<el-button type="text" @click="handleBatches(scope.row)">分批</el-button> |
|
|
|
<el-button type="text" @click="handleBatches(scope.row)">分批</el-button> |
|
|
|
</el-dropdown-item> |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item v-if="scope.row.runStatus === 3 || scope.row.runStatus === 4"> |
|
|
|
<!-- <el-dropdown-item v-if="scope.row.runStatus === 3 || scope.row.runStatus === 4"> |
|
|
|
<el-button type="text" @click="handleAbnormal(scope.row)">异常申报</el-button> |
|
|
|
<el-button type="text" @click="handleAbnormal(scope.row)">异常申报</el-button> |
|
|
|
</el-dropdown-item> |
|
|
|
</el-dropdown-item> --> |
|
|
|
<el-dropdown-item v-if="scope.row.runStatus <= 6 && scope.row.runStatus !== 5"> |
|
|
|
<el-dropdown-item v-if="(scope.row.runStatus <= 6 && scope.row.runStatus !== 5)&&permission.productionMonitoring_trun_oem"> |
|
|
|
<el-button type="text" @click="handleOutsource(scope.row)">转外协</el-button> |
|
|
|
<el-button type="text" @click="handleOutsource(scope.row)">转外协</el-button> |
|
|
|
</el-dropdown-item> |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item v-if="scope.row.runStatus <= 6 && scope.row.runStatus !== 5"> |
|
|
|
<el-dropdown-item v-if="(scope.row.runStatus <= 6 && scope.row.runStatus !== 5)&&permission.productionMonitoring_turn_sj"> |
|
|
|
<el-button type="text" @click="handleSintering(scope.row)">转烧结</el-button> |
|
|
|
<el-button type="text" @click="handleSintering(scope.row)">转烧结</el-button> |
|
|
|
</el-dropdown-item> |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item v-if="scope.row.runStatus < 15"> |
|
|
|
<el-dropdown-item v-if="(scope.row.runStatus < 15)&&permission.productionMonitoring_close"> |
|
|
|
<el-button type="text" @click="handleClose(scope.row)">关闭</el-button> |
|
|
|
<el-button type="text" @click="handleClose(scope.row)">关闭</el-button> |
|
|
|
</el-dropdown-item> |
|
|
|
</el-dropdown-item> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown-menu> |
|
|
|
@ -127,7 +127,7 @@ |
|
|
|
v-if="isWorkRateOpen" |
|
|
|
v-if="isWorkRateOpen" |
|
|
|
:showDialog="isWorkRateOpen" |
|
|
|
:showDialog="isWorkRateOpen" |
|
|
|
@closeDialog="closeDialog" |
|
|
|
@closeDialog="closeDialog" |
|
|
|
:rowItem="rowItem" |
|
|
|
:rowItem="rowItem" |
|
|
|
></workRate> |
|
|
|
></workRate> |
|
|
|
</basic-container> |
|
|
|
</basic-container> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
@ -142,6 +142,8 @@ import productionMonitoringDialog from '../components/productionMonitoringDialog |
|
|
|
import workRate from '@/views/workRate/index.vue'; |
|
|
|
import workRate from '@/views/workRate/index.vue'; |
|
|
|
import { getList, turnType } from '@/api/productionManagement/productionMonitoring'; |
|
|
|
import { getList, turnType } from '@/api/productionManagement/productionMonitoring'; |
|
|
|
import { interlocking } from '@/api/productionManagement/sinTerWorkOrder'; |
|
|
|
import { interlocking } from '@/api/productionManagement/sinTerWorkOrder'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { mapGetters } from 'vuex'; |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
components: { |
|
|
|
outsourceDialog, |
|
|
|
outsourceDialog, |
|
|
|
@ -152,6 +154,9 @@ export default { |
|
|
|
productionMonitoringDialog, |
|
|
|
productionMonitoringDialog, |
|
|
|
workRate, |
|
|
|
workRate, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
computed:{ |
|
|
|
|
|
|
|
...mapGetters(['permission']), |
|
|
|
|
|
|
|
}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
isWorkRateOpen: false, |
|
|
|
isWorkRateOpen: false, |
|
|
|
|