|
|
|
|
@ -19,9 +19,9 @@ |
|
|
|
|
> |
|
|
|
|
<template #menu-left> |
|
|
|
|
<!-- <el-button type="primary" @click="handlePrintTags">过程记录打印</el-button> --> |
|
|
|
|
<el-button type="primary" @click="handlePrintTags">打印标签</el-button> |
|
|
|
|
<el-button type="primary" @click="handlePrint">配套单打印</el-button> |
|
|
|
|
<el-button type="primary" @click="handleInterlocking">合批</el-button> |
|
|
|
|
<el-button type="primary" @click="handlePrintTags" v-if="permission.sinTerWorkOrder_print_label">打印标签</el-button> |
|
|
|
|
<el-button type="primary" @click="handlePrint" v-if="permission.sinTerWorkOrder_support_order_print">配套单打印</el-button> |
|
|
|
|
<el-button type="primary" @click="handleInterlocking" v-if="permission.sinTerWorkOrder_mergeBatch">合批</el-button> |
|
|
|
|
</template> |
|
|
|
|
<template #menu-right> |
|
|
|
|
<el-button type="primary" plain @click="queryOrdersHandle('3,4,5,6')">在制品</el-button> |
|
|
|
|
@ -30,9 +30,9 @@ |
|
|
|
|
<el-button type="success" plain @click="queryOrdersHandle('15')">已完工</el-button> |
|
|
|
|
</template> |
|
|
|
|
<template #menu="scope"> |
|
|
|
|
<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"> |
|
|
|
|
<el-button type="text" @click="clickProduction(scope.row)" v-if="permission.sinTerWorkOrder_workRate">生产监控</el-button> |
|
|
|
|
<el-button type="text" @click="printCraftCard_new(scope.row)" v-if="permission.sinTerWorkOrder_cardNo">流程卡</el-button> |
|
|
|
|
<el-dropdown size="small" style="margin-top: 2px; margin-left: 10px" v-if="permission.sinTerWorkOrder_priority||permission.sinTerWorkOrder_split_batch||permission.sinTerWorkOrder_transfer_test||permission.sinTerWorkOrder_close"> |
|
|
|
|
<span class="el-dropdown-link"> |
|
|
|
|
更多 |
|
|
|
|
<el-icon class="el-icon--right"> |
|
|
|
|
@ -41,45 +41,21 @@ |
|
|
|
|
</span> |
|
|
|
|
<template #dropdown> |
|
|
|
|
<el-dropdown-menu> |
|
|
|
|
<el-dropdown-item v-if="scope.row.runStatus === 2"> |
|
|
|
|
<el-dropdown-item v-if="(scope.row.runStatus === 2)&&permission.sinTerWorkOrder_priority"> |
|
|
|
|
<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-dropdown-item v-if="([2, 3, 4, 6].includes(scope.row.runStatus))&&permission.sinTerWorkOrder_split_batch"> |
|
|
|
|
<el-button type="text" @click="handleBatches(scope.row)">分批</el-button> |
|
|
|
|
</el-dropdown-item> |
|
|
|
|
<el-dropdown-item v-if="scope.row.runStatus < 15"> |
|
|
|
|
<el-dropdown-item v-if="(scope.row.runStatus < 15)&&permission.sinTerWorkOrder_transfer_test"> |
|
|
|
|
<el-button type="text" @click="transferTest(scope.row)">转试</el-button> |
|
|
|
|
</el-dropdown-item> |
|
|
|
|
<el-dropdown-item v-if="scope.row.runStatus < 15"> |
|
|
|
|
<el-dropdown-item v-if="(scope.row.runStatus < 15)&&permission.sinTerWorkOrder_close"> |
|
|
|
|
<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-col> |
|
|
|
|
<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> |
|
|
|
|
</el-col> |
|
|
|
|
<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-button |
|
|
|
|
type="text" |
|
|
|
|
@click="handleAbnormal(scope.row)" |
|
|
|
|
v-if="scope.row.runStatus === 3 || scope.row.runStatus === 4" |
|
|
|
|
>异常申报</el-button |
|
|
|
|
> --> |
|
|
|
|
</template> |
|
|
|
|
</avue-crud> |
|
|
|
|
<!-- 打印标签 --> |
|
|
|
|
@ -158,6 +134,8 @@ import { getList, interlocking, isTransferTest } from '@/api/productionManagemen |
|
|
|
|
import workRate from '@/views/workRate/index.vue'; |
|
|
|
|
import transferTest from './transferTest.vue'; |
|
|
|
|
|
|
|
|
|
import { mapGetters } from 'vuex'; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
components: { |
|
|
|
|
productionDialog, |
|
|
|
|
@ -168,6 +146,9 @@ export default { |
|
|
|
|
workRate, |
|
|
|
|
transferTest |
|
|
|
|
}, |
|
|
|
|
computed:{ |
|
|
|
|
...mapGetters(['permission']), |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
itemData: [], |
|
|
|
|
|