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

@@ -21,7 +21,7 @@
<el-button type="distribution" style="margin: 10px" size="small" icon="el-icon-circle-check" @click="submitInStorage">确认到货</el-button>
</el-card>
<el-card>
<el-table ref="multipleTable" :data="table1" border stripe size="mini" highlight-current-row style="width: 100%;margin-bottom: 5px" @selection-change="handleSelectionChange">
<el-table ref="multipleTable" :data="table1" border stripe size="mini" highlight-current-row style="width: 100%;margin-bottom: 5px;" @selection-change="handleSelectionChange">
<el-table-column :selectable="selectable" type="selection" align="center" width="50px"/>
<el-table-column label="名称" sortable prop="物料名称" width="150px" align="center" show-overflow-tooltip >
<template slot-scope="scope">
@@ -49,6 +49,7 @@
</template>
</el-table-column>
</el-table>
<span style="font-size: 5px">{{ totalnumber }}条信息选择{{ gouxuan }}</span>
</el-card>
</div>
</template>
@@ -67,7 +68,9 @@ export default {
inventoryName: [], // 仓库名称
locateNumber: '',
locateName: [],
table1: []
table1: [],
gouxuan: 0,
totalnumber: 0
}
},
created() {
@@ -152,10 +155,12 @@ export default {
if (!res.data[i].物料型号) { res.data[i].物料型号 = '' }
}
this.table1 = res.data
this.totalnumber = res.data.length
},
// 多选
handleSelectionChange(val) {
this.multipleSelection = val
this.gouxuan = val.length
},
// 明细可选
selectable(row) {