|
|
@ -94,6 +94,15 @@ |
|
|
label="操作"> |
|
|
label="操作"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-link style="cursor: pointer" @click="updateModal(scope.row)">编辑</el-link> |
|
|
<el-link style="cursor: pointer" @click="updateModal(scope.row)">编辑</el-link> |
|
|
|
|
|
<el-dropdown trigger="click"> |
|
|
|
|
|
<el-link style="cursor: pointer;font-size: 12px"> |
|
|
|
|
|
更多 |
|
|
|
|
|
</el-link > |
|
|
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
|
|
<el-dropdown-item @click.native="toMenu('BOM',scope.row)">BOM</el-dropdown-item> |
|
|
|
|
|
<el-dropdown-item @click.native="toMenu('Routing',scope.row)">Routing</el-dropdown-item> |
|
|
|
|
|
</el-dropdown-menu> |
|
|
|
|
|
</el-dropdown> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
@ -2839,6 +2848,12 @@ |
|
|
created () { |
|
|
created () { |
|
|
this.getDataList() |
|
|
this.getDataList() |
|
|
}, |
|
|
}, |
|
|
|
|
|
activated() { |
|
|
|
|
|
if (this.$route.params.partNo) { |
|
|
|
|
|
this.searchData.partNo = this.$route.params.partNo |
|
|
|
|
|
} |
|
|
|
|
|
this.getDataList() |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
// 页签选择替换 |
|
|
// 页签选择替换 |
|
|
@ -4232,7 +4247,10 @@ |
|
|
* 单机选中物料信息 |
|
|
* 单机选中物料信息 |
|
|
* @param row |
|
|
* @param row |
|
|
*/ |
|
|
*/ |
|
|
partClickRow (row) { |
|
|
|
|
|
|
|
|
partClickRow (row,column) { |
|
|
|
|
|
if (column.label === '操作'){ |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
this.$refs.partTable.toggleRowSelection(row) |
|
|
this.$refs.partTable.toggleRowSelection(row) |
|
|
this.partCurrentRow = JSON.parse(JSON.stringify(row)) |
|
|
this.partCurrentRow = JSON.parse(JSON.stringify(row)) |
|
|
}, |
|
|
}, |
|
|
@ -4516,6 +4534,19 @@ |
|
|
json += '}' |
|
|
json += '}' |
|
|
let s = eval('(' + json + ')') |
|
|
let s = eval('(' + json + ')') |
|
|
return s |
|
|
return s |
|
|
|
|
|
}, |
|
|
|
|
|
toMenu(type,row){ |
|
|
|
|
|
let path = ''; |
|
|
|
|
|
if (type === 'Routing'){ |
|
|
|
|
|
path = 'routing' |
|
|
|
|
|
}else if (type === 'BOM'){ |
|
|
|
|
|
path = 'bom' |
|
|
|
|
|
} |
|
|
|
|
|
if (this.$router.resolve(`/part-${path}Management`).resolved.name === '404'){ |
|
|
|
|
|
this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',}); |
|
|
|
|
|
}else { |
|
|
|
|
|
this.$router.push({name:`part-${path}Management`,params:{partNo:row.partNo},}) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|