装箱单修改

This commit is contained in:
hedekun
2018-11-27 13:57:32 +08:00
parent 08683fbe0c
commit cc3424a2f2
7 changed files with 143 additions and 95 deletions

View File

@@ -133,7 +133,7 @@
</el-table-column>
<el-table-column align="center" label="零件类型">
<template slot-scope="scope">
{{ scope.row.标准件类型 }}
{{ scope.row.件类型 }}
</template>
</el-table-column>
<el-table-column align="center" label="供货商">
@@ -273,14 +273,14 @@ export default {
})
} else {
const type = this.groupName.indexOf('WG') > -1 ? 2 : 1
console.log(type)
this.loadingWB = true
purchasePartsData(this.groupValue, type, this.pageCurrentWB, this.pageSizeWB).then(response => {
this.loadingWB = false
const data = response.data
this.totalWB = data.total
this.tableDataWB = data.rows.map(item => {
item.标准件类型 = item.标准件类型 === '1' ? '外购件' : '标准件'
console.log(item)
item.零件类型 = item.零件类型 === '2' ? '外购件' : '标准件'
return item
})
})