This commit is contained in:
liushuai
2020-05-14 18:17:03 +08:00
parent e1d611f964
commit 990052a70e
17 changed files with 200 additions and 45 deletions

View File

@@ -87,8 +87,9 @@
</template>
</el-table-column>
</el-table>
<span style="font-size: 5px">{{ totalnumber }}条信息选择{{ gouxuan }}</span>
</el-tab-pane>
<el-tab-pane label="外购件">
<el-tab-pane :disabled="checked" label="外购件">
<el-table :data="tableData2" border size="mini" style="width: 100%" height="300px" @selection-change="handleSelectionChange">
<el-table-column align="center" width="50" type="selection"/>
<el-table-column label="物料代码" align="center" min-width="180">
@@ -137,8 +138,9 @@
</template>
</el-table-column>
</el-table>
<span style="font-size: 5px">{{ totalnumber }}条信息选择{{ gouxuan }}</span>
</el-tab-pane>
<el-tab-pane label="标准件">
<el-tab-pane :disabled="checked" label="标准件">
<el-table :data="tableData3" border size="mini" style="width: 100%" height="300px" @selection-change="handleSelectionChange">
<el-table-column align="center" width="50" type="selection"/>
<el-table-column label="物料代码" align="center" min-width="180">
@@ -187,6 +189,7 @@
</template>
</el-table-column>
</el-table>
<span style="font-size: 5px">{{ totalnumber }}条信息选择{{ gouxuan }}</span>
</el-tab-pane>
</el-tabs>
<el-card style="padding: 3px">
@@ -653,7 +656,9 @@ export default {
dialogFormVisible2: false,
dialogFormVisible3: false,
dialogFormVisible4: false,
checked: false
checked: false,
gouxuan: 0,
totalnumber: 0
}
},
computed: {
@@ -979,22 +984,31 @@ export default {
this.tableData2 = []
this.tableData3 = []
this.loading = false
this.totalnumber = 0
this.gouxuan = 0
this.searchPart()
})
},
selectPart(val) {
let num
this.PartType = val.label
this.checked ? num = 1 : num = 0
this.totalnumber = 0
this.gouxuan = 0
if (this.PartType === '基本件') {
searchPart(this.groupFloatValue).then(response => {
searchPart(this.groupFloatValue, num).then(response => {
this.tableData1 = response.data
this.totalnumber = response.data.length
})
} else if (this.PartType === '外购件') {
searchPart1(this.groupFloatValue, 2).then(response => {
searchPart1(this.groupFloatValue, 2, num).then(response => {
this.tableData2 = response.data
this.totalnumber = response.data.length
})
} else if (this.PartType === '标准件') {
searchPart1(this.groupFloatValue, 1).then(response => {
searchPart1(this.groupFloatValue, 1, num).then(response => {
this.tableData3 = response.data
this.totalnumber = response.data.length
})
}
},
@@ -1013,14 +1027,17 @@ export default {
if (this.PartType === '基本件') {
searchPart(this.groupFloatValue, num).then(response => {
this.tableData1 = response.data
this.totalnumber = response.data.length
})
} else if (this.PartType === '外购件') {
searchPart1(this.groupFloatValue, 2, num).then(response => {
this.tableData2 = response.data
this.totalnumber = response.data.length
})
} else if (this.PartType === '标准件') {
searchPart1(this.groupFloatValue, 1, num).then(response => {
this.tableData3 = response.data
this.totalnumber = response.data.length
})
}
},
@@ -1274,6 +1291,7 @@ export default {
},
handleSelectionChange(val) {
this.multipleSelection = val
this.gouxuan = val.length
},
handleSelectionChange10(val) {
this.multipleSelection10 = val