This commit is contained in:
liushuai
2018-12-28 12:29:43 +08:00
parent b12546fb64
commit 75981dca52
11 changed files with 251 additions and 64 deletions

View File

@@ -98,7 +98,7 @@
/>
<el-table-column
align="center"
prop="部件名称"
prop="名称"
label="名称"
/>
<el-table-column
@@ -108,7 +108,7 @@
/>
<el-table-column
align="center"
prop="部件数量"
prop="数量"
label="数量"
/>
<el-table-column
@@ -183,10 +183,10 @@
<template slot-scope="scope">{{ scope.row.名称 }}</template>
</el-table-column>
<el-table-column
label="规格"
label="代号"
align="center"
min-width="100px">
<template slot-scope="scope">{{ scope.row.规格 }}</template>
<template slot-scope="scope">{{ scope.row.图号 }}</template>
</el-table-column>
<el-table-column
label="数量"
@@ -595,13 +595,16 @@ export default {
this.machineTableData = []
const response = await getMachineData(this.receiptNum)
const data = response.data
console.log(data, 1111)
for (let i = 0; i < data.length; i++) {
const resp = await getGroupData(this.projectName, data[i].)
const resp = await getGroupData(data[i].机床)
console.log(resp)
const groupData = resp.data.map(item => {
item.类别 = '机床所属部件'
item.代号 = data[i].代号 + '-' + item..split('-')[0]
item.代号 = data[i].代号 + '-' + item. + '组'
return item
})
console.log(groupData)
this.machineTableData.push({
序号: data[i].序号,
代号: data[i].代号,
@@ -686,6 +689,10 @@ export default {
},
async getSpareData() {
const response = await getSpareData(this.receiptNum)
console.log(response)
for (let i = 0; i < response.data.length; i++) {
response.data[i].图号 = response.data[i].图号 + response.data[i].规格
}
this.spareData = response.data
},
addSpare() {