This commit is contained in:
lixin
2018-12-29 19:30:12 +08:00
parent 2f1601c9f5
commit b33479864e
10 changed files with 150 additions and 30 deletions

View File

@@ -244,7 +244,7 @@
align="center"
type="index"
width="50"/>
<el-table-column label="物料名称" align="center" min-width="80">
<el-table-column label="名称" align="center" min-width="80">
<template slot-scope="scope">
{{ scope.row.物料名称 }}
</template>
@@ -259,6 +259,11 @@
{{ scope.row.物料型号 }}
</template>
</el-table-column>
<el-table-column label="零件图号" align="center" min-width="80">
<template slot-scope="scope">
{{ scope.row.零件图号 }}
</template>
</el-table-column>
<el-table-column label="项目名称" align="center" min-width="80">
<template slot-scope="scope">
{{ scope.row.项目名称 }}
@@ -327,7 +332,7 @@
align="center"
type="index"
width="50"/>
<el-table-column label="物料名称" align="center" min-width="80">
<el-table-column label="名称" align="center" min-width="80">
<template slot-scope="scope">
{{ scope.row.物料名称 }}
</template>
@@ -667,6 +672,17 @@ export default {
response.data.rows[i].类型名称 = response.data.rows[i].外购件类型
}
}
for (let i = 0; i < response.data.rows.length; i++) {
if (response.data.rows[i].组件零件流水号 === '0') {
response.data.rows[i].物料名称 = response.data.rows[i].零件名称
response.data.rows[i].项目名称 = response.data.rows[i].基本件项目名称
response.data.rows[i].机床图号 = response.data.rows[i].基本件机床图号
response.data.rows[i].组号 = response.data.rows[i].基本件组号
response.data.rows[i].项目流水号 = response.data.rows[i].基本件项目流水号
response.data.rows[i].机床流水号 = response.data.rows[i].基本件机床流水号
response.data.rows[i].组件流水号 = response.data.rows[i].基本件组件流水号
}
}
this.tableDataPurchase = response.data.rows
this.listLoading = false
this.total1 = response.data.total