This commit is contained in:
chenjianan
2019-05-27 11:11:08 +08:00
parent 18b16bcb78
commit edcc2c577c
2 changed files with 38 additions and 1 deletions

View File

@@ -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()
},

View File

@@ -166,6 +166,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-column align="center" label="计划到货时间" min-width="100px">
<template slot-scope="scope">
{{ scope.row.物料计划到货时间.split(' ')[0] }}
@@ -176,7 +181,7 @@
{{ scope.row.操作日期.split(' ')[0] }}
</template>
</el-table-column>
<el-table-column :filters="person" :filter-method="filterHandler" align="center" label="采购员" min-width="80px" prop="buyer">
<el-table-column :filters="person" :filter-method="filterHandler" align="center" label="采购员" min-width="80px" prop="姓名">
<template slot-scope="scope">
{{ scope.row.姓名 ? scope.row.姓名 : '—' }}
</template>
@@ -404,6 +409,16 @@ export default {
name: '', // 采购任务分配
data() {
return {
source: [
{
text: 'BZ',
value: 1
},
{
text: 'WG',
value: 2
}
],
tabName: '标准件和外购件',
partNum: '',
partName: '',
@@ -482,6 +497,9 @@ export default {
this.fetchData() // 初始化数据
},
methods: {
filterSource(value, row) {
return Number(row['零件类型']) === Number(value)
},
// 撤回
retract(row) {
this.$confirm('是否撤回重新分配?', '提示', {
@@ -578,6 +596,7 @@ export default {
this.materialSpec ? check2 = 1 : check2 = 0
this.materialModel ? check3 = 1 : check3 = 0
searchTable1(this.pageCurrent1, this.pageSize1, this.check1, this.MaterialCategoryValue, this.check2, this.MaterialVarietyValue, this.check3, this.projectValue, check0, this.machineValue, check1, this.groupValue, this.check4, this.materialName, this.materialStatusValue[this.materialStatusValue.length - 1], check2, this.materialSpec, check3, this.materialModel).then(response => {
console.log(response.data.rows)
this.tableData1 = response.data.rows
this.total1 = response.data.total
})