|
@ -93,7 +93,7 @@ import { |
|
|
} from './deviceAccounts.data' |
|
|
} from './deviceAccounts.data' |
|
|
import { Item } from '@/views/eam/basic/item/item.data' |
|
|
import { Item } from '@/views/eam/basic/item/item.data' |
|
|
import * as ItemApi from '@/api/eam/basic/item' |
|
|
import * as ItemApi from '@/api/eam/basic/item' |
|
|
import { createDeviceItemBatch, getDeviceItemPage } from '@/api/eam/basic/rel' |
|
|
import { createDeviceItemBatch, getDeviceItemPage,getDeviceItemNoPage } from '@/api/eam/basic/rel' |
|
|
import * as DeviceAccountsApi from '@/api/eam/device/deviceAccounts' |
|
|
import * as DeviceAccountsApi from '@/api/eam/device/deviceAccounts' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import { DeviceLedgerTabsList } from '@/utils/disposition/tabsList' |
|
|
import { DeviceLedgerTabsList } from '@/utils/disposition/tabsList' |
|
@ -467,6 +467,27 @@ const qrCodeBatch = async (val,item) => { |
|
|
window.open(src.value + "&number=" + qrCodeList) |
|
|
window.open(src.value + "&number=" + qrCodeList) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const onMountedCallBack = (parent, searchTable) => { |
|
|
|
|
|
getDeviceItemNoPage({ deviceNumber: deviceNumber.value }).then((res) => { |
|
|
|
|
|
ItemApi.getItemNoPage().then(response => { |
|
|
|
|
|
const selections = response.filter(element => { |
|
|
|
|
|
let flag = false; |
|
|
|
|
|
res.forEach(item => { |
|
|
|
|
|
if (element.number == item.itemNumber) { |
|
|
|
|
|
flag = true; |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
return flag; |
|
|
|
|
|
}); |
|
|
|
|
|
// 使用nextTick确保表格渲染完成 |
|
|
|
|
|
// 确保searchTable是有效的 |
|
|
|
|
|
if (searchTable && selections.length > 0) { |
|
|
|
|
|
selections.forEach(row => { |
|
|
|
|
|
searchTable.value.toggleRowSelection(row, true); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
</script> |
|
|
</script> |
|
|