|
|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<div class="mod-config"> |
|
|
|
<!-- 查询条件 --> |
|
|
|
<el-form :inline="true" label-position="top" :model="searchData" @keyup.enter.native="getDataList"> |
|
|
|
<el-form :inline="true" label-position="top" :model="searchData"> |
|
|
|
<el-form-item :label="'BU'"> |
|
|
|
<el-select v-model="searchData.buDesc" placeholder="请选择" clearable style="width: 130px"> |
|
|
|
<el-option |
|
|
|
@ -25,9 +25,9 @@ |
|
|
|
<el-input v-model="searchData.routingRevision" clearable style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button @click="getDataList">查询</el-button> |
|
|
|
<el-button type="primary" @click="addModal">新增</el-button> |
|
|
|
<el-button type="primary" @click="delModal">删除</el-button> |
|
|
|
<el-button v-if="!authSearch" @click="getDataList">查询</el-button> |
|
|
|
<el-button v-if="!authSave" type="primary" @click="addModal">新增</el-button> |
|
|
|
<el-button v-if="!authDelete" type="primary" @click="delModal">删除</el-button> |
|
|
|
<download-excel |
|
|
|
:fields="fields()" |
|
|
|
:data="exportData" |
|
|
|
@ -80,7 +80,7 @@ |
|
|
|
width="120" |
|
|
|
label="操作"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-link style="cursor: pointer" @click="updateModal(scope.row)">编辑</el-link> |
|
|
|
<el-link v-if="!authUpdate" style="cursor: pointer" @click="updateModal(scope.row)">编辑</el-link> |
|
|
|
<el-link style="cursor: pointer" @click="checkOutToBom(scope.row.partNo)">切换BOM</el-link> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -1538,6 +1538,10 @@ export default { |
|
|
|
// ======== 复选数据集 ======== |
|
|
|
routingSelections: [], |
|
|
|
// ======== 模态框开关控制 ======== |
|
|
|
authSearch: false, |
|
|
|
authSave: false, |
|
|
|
authUpdate: false, |
|
|
|
authDelete: false, |
|
|
|
modalFlag: false, |
|
|
|
modalDisableFlag: false, |
|
|
|
partModelFlag: false, |
|
|
|
@ -1547,7 +1551,8 @@ export default { |
|
|
|
componentDisableFlag: false, |
|
|
|
copyRoutingModelFlag: false, |
|
|
|
copyAlternativeModelFlag: false, |
|
|
|
headerSaveFlag: false |
|
|
|
headerSaveFlag: false, |
|
|
|
menuId: this.$route.meta.menuId, |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
@ -1570,11 +1575,15 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
activated() { |
|
|
|
if (this.$route.params.partNo) { |
|
|
|
this.searchData.partNo = this.$route.params.partNo |
|
|
|
activated () { |
|
|
|
if (!this.authSearch) { |
|
|
|
if (this.$route.params.partNo) { |
|
|
|
this.searchData.partNo = this.$route.params.partNo |
|
|
|
} |
|
|
|
this.getDataList() |
|
|
|
} else { |
|
|
|
this.$message.warning('无操作权限!') |
|
|
|
} |
|
|
|
this.getDataList() |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
|