WG&&BZ
This commit is contained in:
@@ -162,6 +162,11 @@
|
||||
{{ scope.row.供货商 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :filters="source" :filter-method="filterSource" align="center" label="数据来源" min-width="90px" prop="零件类型">
|
||||
<template slot-scope="scope">
|
||||
{{ Number(scope.row.零件类型) === 1 ? 'BZ' : 'WG' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-row>
|
||||
<div class="block">
|
||||
@@ -794,6 +799,16 @@ export default {
|
||||
name: '', // 创建询价单
|
||||
data() {
|
||||
return {
|
||||
source: [
|
||||
{
|
||||
text: 'BZ',
|
||||
value: 1
|
||||
},
|
||||
{
|
||||
text: 'WG',
|
||||
value: 2
|
||||
}
|
||||
],
|
||||
tabName: '标准件和外购件',
|
||||
baseInfoLoading: false,
|
||||
dialogVisible5: false,
|
||||
@@ -948,6 +963,9 @@ export default {
|
||||
this.searchTable2() // 查表2
|
||||
},
|
||||
methods: {
|
||||
filterSource(value, row) {
|
||||
return Number(row['零件类型']) === Number(value)
|
||||
},
|
||||
tabClick(tab) {
|
||||
tab.name === '基本件' ? this.searchTable12() : this.searchTable11()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user