|
@@ -154,10 +154,10 @@ const queryParams = reactive({
|
|
|
})
|
|
|
// 处理单选逻辑
|
|
|
const selectRow = (row) => {
|
|
|
- const index = selectedRows.value.findIndex(item => item.id === row.id);
|
|
|
+ const index = selectedRows.value.findIndex(item => item.id === row.id&&item.deviceCode===row.deviceCode);
|
|
|
if (index > -1) {
|
|
|
selectedRows.value.splice(index, 1); // 取消选中
|
|
|
- row.quantity = undefined;
|
|
|
+ // row.quantity = undefined;
|
|
|
} else {
|
|
|
selectedRows.value.push({ ...row }); // 选中
|
|
|
}
|