diff --git a/src/api/mes/deviceline/index.ts b/src/api/mes/deviceline/index.ts index dc3fcce9..4c45fbe8 100644 --- a/src/api/mes/deviceline/index.ts +++ b/src/api/mes/deviceline/index.ts @@ -23,8 +23,8 @@ export const DeviceLineApi = { return await request.get({ url: `/mes/device-line/get?id=` + id }) }, - getDeviceLineTree: async () => { - return await request.get({ url: `/mes/device-line/tree` }) + getDeviceLineTree: async (params?: { filterNoDeviceLine?: number }) => { + return await request.get({ url: `/mes/device-line/tree`, params }) }, regenerateCode: async (id: number, code: string) => { diff --git a/src/api/mes/organization/index.ts b/src/api/mes/organization/index.ts index 50715657..9ce33969 100644 --- a/src/api/mes/organization/index.ts +++ b/src/api/mes/organization/index.ts @@ -73,7 +73,7 @@ export const OrganizationApi = { return await request.download({ url: `/mes/organization/export-excel`, params }) }, - deviceParameterAnalysis: async (params: { keyword?: string, showDevices?: number }) => { + deviceParameterAnalysis: async (params: { keyword?: string, showDevices?: number, filterNoDeviceLine?: number }) => { return await request.get({ url: `/mes/device-line/deviceParameterAnalysis`, params }) } } diff --git a/src/locales/en.ts b/src/locales/en.ts index 8bd80169..4c6a0706 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -851,7 +851,7 @@ export default { packageCount: 'Package Count', outPackageCount: 'Outbound Package Count', outLockedPackageCount: 'Outbound Locked Package Count', - outPackageCountExceededWarning: 'Outbound package count cannot exceed package count minus outbound locked package count. It has been adjusted to {count}.', + outPackageCountExceededWarning: 'Pallet code {code}: outbound package count cannot exceed package count minus outbound locked package count. It has been adjusted to {count}.', inPackageCount: 'Inbound Package Count', inItemCount: 'Inbound Count', inCount: 'Inbound Quantity', diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 4c9bd37d..73434e53 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -851,7 +851,7 @@ export default { packageCount: '包数', outPackageCount: '出库包数', outLockedPackageCount: '出库锁定包数', - outPackageCountExceededWarning: '出库包数不能大于包数减出库锁定包数,已自动调整为{count}', + outPackageCountExceededWarning: '托盘编码{code}:出库包数不能大于包数减出库锁定包数,已自动调整为{count}', inPackageCount: '入库包数', inItemCount: '入库个数', inCount: '入库数量', diff --git a/src/views/iot/deviceParamAnalysis/index.vue b/src/views/iot/deviceParamAnalysis/index.vue index 2e3b6237..5b69fdb3 100644 --- a/src/views/iot/deviceParamAnalysis/index.vue +++ b/src/views/iot/deviceParamAnalysis/index.vue @@ -382,7 +382,11 @@ const extractApiOrgs = (res: any): ApiTreeOrg[] => { const loadTree = async () => { treeLoading.value = true try { - const res = await OrganizationApi.deviceParameterAnalysis({ keyword: keyword.value || undefined, showDevices: 1 }) + const res = await OrganizationApi.deviceParameterAnalysis({ + keyword: keyword.value || undefined, + showDevices: 1, + filterNoDeviceLine: 1 + }) treeData.value = buildTreeFromApi(extractApiOrgs(res)) defaultExpandedKeys.value = buildDefaultExpandedKeys(treeData.value, 'pipeline') await nextTick() diff --git a/src/views/iot/runoverview/index.vue b/src/views/iot/runoverview/index.vue index 3d52d20b..39dbd94c 100644 --- a/src/views/iot/runoverview/index.vue +++ b/src/views/iot/runoverview/index.vue @@ -255,7 +255,7 @@ const getDeviceLedgerOptions = async (groupId?: string) => { } const getFilterOptions = async () => { - const deviceLineTree = await DeviceLineApi.getDeviceLineTree() + const deviceLineTree = await DeviceLineApi.getDeviceLineTree({ filterNoDeviceLine: 1 }) groupOptions.value = normalizeDeviceLineTree(Array.isArray(deviceLineTree) ? deviceLineTree : []) await getDeviceLedgerOptions(queryParams.value.groupId) } diff --git a/src/views/mes/deviceledger/detail/editIndex.vue b/src/views/mes/deviceledger/detail/editIndex.vue index 27e4009b..943f52b6 100644 --- a/src/views/mes/deviceledger/detail/editIndex.vue +++ b/src/views/mes/deviceledger/detail/editIndex.vue @@ -247,6 +247,12 @@ @click="openIotDeviceDialog" >