-
序列号
-
{scanResult.record.serialNumber}
+
+
+
+ 设备名称
+
+
+ {scanResult.record.deviceName}
+
-
-
当前位置
-
{scanResult.record.displayLocation || `${scanResult.record.rackId} - U${scanResult.record.position}`}
+
+
+
+
+ 序列号
+
+
+ {scanResult.record.serialNumber}
+
+
+
+
+
+
+ 当前位置
+
+
+
+ {scanResult.record.displayLocation || `${scanResult.record.rackId}`}
+
+ U{scanResult.record.position}
+
)}
+
+ {/* 暂存设备信息 */}
+ {scanResult.pendingDevice && (
+
+
+ 暂存设备信息
+
+
+
+
+
+ 暂存ID
+
+
+ {scanResult.pendingDevice.pendingId}
+
+
+
+
+
+
+ 设备名称
+
+
+ {scanResult.pendingDevice.deviceName}
+
+
+
+
+
+
+ 序列号
+
+
+ {scanResult.pendingDevice.serialNumber}
+
+
+
+
+
+
+ 设备类型
+
+
+
+ {scanResult.pendingDevice.deviceType}
+
+
+
+
+
+
+
+
+
+ )}
+
+ {/* 快速添加按钮 */}
{!scanResult.success && scanResult.sn && (
-
+
}
onClick={openQuickAddModal}
- style={{ borderRadius: 8 }}
+ block
+ style={{
+ borderRadius: designTokens.borderRadius.medium,
+ background: designTokens.colors.primary.gradient,
+ border: 'none',
+ height: 48,
+ fontSize: designTokens.typography.md,
+ fontWeight: 500,
+ }}
>
- 快速添加此设备
+ 快速添加此设备到系统
)}
-
+
)}
{scanResult && (
@@ -1136,127 +1570,253 @@ const InventoryTaskExecution = () => {
-
- 快速添加设备
-
- }
+ title={null}
open={quickAddModalVisible}
onCancel={() => {
setQuickAddModalVisible(false);
setSelectedRoomId(null);
}}
footer={null}
- width={500}
+ width={640}
centered
+ styles={{
+ body: { padding: 0 },
+ }}
>
-