| | |
| | | import { modelList, productTreeList } from "@/api/basicData/product.js"; |
| | | import { getSparePartsList } from "@/api/equipmentManagement/spareParts.js"; |
| | | import { getSupplierContractList, getSupplierContractFilesByNo } from "@/api/basicData/supplierContract.js"; |
| | | import { getLedgerPage } from "@/api/equipmentManagement/ledger.js"; |
| | | import { getIotDeviceList as getIotDeviceListApi } from "@/api/equipmentManagement/ledger.js"; |
| | | import dayjs from "dayjs"; |
| | | import FileUpload from "@/components/AttachmentUpload/file/index.vue"; |
| | | |
| | |
| | | }; |
| | | |
| | | // 获取IoT设备列表 |
| | | // 获取IoT设备列表 |
| | | const getIotDeviceList = async () => { |
| | | try { |
| | | const res = await getLedgerPage({ |
| | | isIotDevice: 1, |
| | | page: 1, |
| | | size: 999, |
| | | }); |
| | | if (res.data && res.data.records) { |
| | | iotDeviceList.value = res.data.records; |
| | | const res = await getIotDeviceListApi(); |
| | | if (res.data) { |
| | | iotDeviceList.value = res.data; |
| | | } |
| | | } catch (error) { |
| | | console.error("获取IoT设备列表失败:", error); |