更新
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user