新疆大罗素
1.库存管理页面、采购台账新增/编辑弹窗、入库记录页面添加库位字段
| | |
| | | method: "get", |
| | | }); |
| | | }; |
| | | |
| | | export const getIotDeviceList = () => { |
| | | return request({ |
| | | url: "/device/ledger/iotDeviceList", |
| | | method: "get", |
| | | }); |
| | | }; |
| | |
| | | <el-table-column label="单位" |
| | | prop="unit" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="库位" |
| | | prop="warehouse" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="入库数量" |
| | | prop="stockInNum" |
| | | show-overflow-tooltip /> |
| | |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="库位" |
| | | prop="storageLocation"> |
| | | <el-input v-model="formState.storageLocation" |
| | | prop="warehouse"> |
| | | <el-input v-model="formState.warehouse" |
| | | placeholder="选择设备后自动获取" |
| | | disabled /> |
| | | </el-form-item> |
| | |
| | | import ProductSelectDialog from "@/views/basicData/product/ProductSelectDialog.vue"; |
| | | import { addStockInRecordOnly } from "@/api/inventoryManagement/stockInventory.js"; |
| | | import { createStockUnInventory } from "@/api/inventoryManagement/stockUninventory.js"; |
| | | import { getLedgerPage } from "@/api/equipmentManagement/ledger.js"; |
| | | import { getIotDeviceList as getIotDeviceListApi } from "@/api/equipmentManagement/ledger.js"; |
| | | |
| | | const props = defineProps({ |
| | | visible: { |
| | |
| | | needInspect: false, |
| | | inspectType: 0, |
| | | deviceId: "", |
| | | storageLocation: "", |
| | | warehouse: "", |
| | | }); |
| | | |
| | | // IoT设备列表 |
| | |
| | | needInspect: false, |
| | | inspectType: 0, |
| | | deviceId: "", |
| | | storageLocation: "", |
| | | warehouse: "", |
| | | }; |
| | | isShow.value = false; |
| | | }; |
| | |
| | | // 获取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); |
| | |
| | | const handleDeviceChange = (deviceId) => { |
| | | const device = iotDeviceList.value.find(d => d.id === deviceId); |
| | | if (device) { |
| | | formState.value.storageLocation = device.storageLocation || ''; |
| | | formState.value.warehouse = device.storageLocation || ''; |
| | | } else { |
| | | formState.value.storageLocation = ''; |
| | | formState.value.warehouse = ''; |
| | | } |
| | | }; |
| | | |
| | |
| | | <el-table-column prop="specificationModel" label="规格型号" /> |
| | | <el-table-column prop="unit" label="单位" /> |
| | | <el-table-column prop="quantity" label="数量" /> |
| | | <el-table-column prop="storageLocation" label="库位" /> |
| | | <el-table-column prop="taxInclusiveUnitPrice" label="含税单价"> |
| | | <template #default="scope" |
| | | >¥{{ |
| | |
| | | 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); |