|
|
@ -45,7 +45,7 @@ |
|
|
</el-form> |
|
|
</el-form> |
|
|
|
|
|
|
|
|
<!-- 列表 --> |
|
|
<!-- 列表 --> |
|
|
<el-table :data="dataList" :height="height" border ref="mainTable" highlight-current-row v-loading="loading" style="width:100%" stripe> |
|
|
|
|
|
|
|
|
<el-table :data="dataList" :height="height" border ref="mainTable" highlight-current-row v-loading="loading" style="width:100%" stripe @current-change="handleCurrentChange"> |
|
|
<el-table-column fixed="right" :label="'操作'" header-align="center" align="center" width="120"> |
|
|
<el-table-column fixed="right" :label="'操作'" header-align="center" align="center" width="120"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-link style="cursor: pointer" v-if="scope.row.status === '已报价'" @click="openDialog(scope.row)">审批 </el-link> |
|
|
<el-link style="cursor: pointer" v-if="scope.row.status === '已报价'" @click="openDialog(scope.row)">审批 </el-link> |
|
|
@ -728,6 +728,12 @@ export default { |
|
|
window.removeEventListener('resize', this.calcHeight) |
|
|
window.removeEventListener('resize', this.calcHeight) |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
handleCurrentChange(row) { |
|
|
|
|
|
if (!row) return |
|
|
|
|
|
// 避免与 getList 里的默认选中重复触发(可选,用 id 判断) |
|
|
|
|
|
if (this.currentRow && this.currentRow.id === row.id) return |
|
|
|
|
|
this.changeData(row) |
|
|
|
|
|
}, |
|
|
formalPartNo(row) { |
|
|
formalPartNo(row) { |
|
|
return formatFormalPartNo(row) |
|
|
return formatFormalPartNo(row) |
|
|
}, |
|
|
}, |
|
|
|