|
|
@@ -8,7 +8,7 @@
|
|
|
</el-tab-pane>
|
|
|
|
|
|
<el-table :data="tableData" style="width: 100%" border :ref="'multipleTable_' + tabValue" stripe
|
|
|
- @selection-change="handleSelectionChange">
|
|
|
+ @select="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55">
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="name" label="规格" align="center">
|
|
|
@@ -80,9 +80,9 @@
|
|
|
|
|
|
},
|
|
|
handleSelectionChange(e) {
|
|
|
- if (e.length > 0) {
|
|
|
- this.allData[this.tabValue] = e || []
|
|
|
- }
|
|
|
+ // if (e.length > 0) {
|
|
|
+ this.allData[this.tabValue] = e || []
|
|
|
+ // }
|
|
|
},
|
|
|
handleClick(data, row) {
|
|
|
// 品种切换事件 可以在这里请求规格接口
|
|
|
@@ -138,7 +138,6 @@
|
|
|
}
|
|
|
|
|
|
});
|
|
|
- console.log(matched, "type2matched");
|
|
|
if (matched) {
|
|
|
// this.tableData[index] = { name: 'kam', value: 3, price: '111', type_id: '4', packet: '3' }
|
|
|
if (matched.product_id) {
|
|
|
@@ -182,7 +181,6 @@
|
|
|
if (!acc[key]) {
|
|
|
acc[key] = [];
|
|
|
}
|
|
|
- console.log(item)
|
|
|
item.value = item.product_id
|
|
|
item.packet = item.box_id
|
|
|
acc[key].push(item);
|