.warehouse-select-container { padding: 30rpx; background-color: #f8f8f8; min-height: 100vh; } .header { margin-bottom: 40rpx; padding: 20rpx 0; display: flex; justify-content: space-between; align-items: center; } .title-container { flex: 1; } .title { font-size: 40rpx; font-weight: bold; color: #333; display: block; margin-bottom: 10rpx; } .subtitle { font-size: 28rpx; color: #666; display: block; } /* 新建按钮样式 */ .add-btn { display: flex; align-items: center; background-color: #007AFF; color: #fff; padding: 15rpx 25rpx; border-radius: 30rpx; font-size: 28rpx; } .add-icon { font-size: 32rpx; margin-right: 6rpx; font-weight: bold; } .add-text { font-size: 28rpx; } .warehouse-list { background-color: #fff; border-radius: 12rpx; overflow: hidden; box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05); } .warehouse-item { padding: 0 20rpx; border-bottom: 1rpx solid #f0f0f0; } .warehouse-item:last-child { border-bottom: none; } .warehouse-row { display: flex; justify-content: space-between; align-items: center; padding: 30rpx 0; position: relative; } .warehouse-row:active { background-color: #f5f5f5; } .warehouse-info { flex: 1; } .warehouse-name { font-size: 32rpx; color: #333; margin-bottom: 6rpx; } .warehouse-action { display: flex; align-items: center; } .action-buttons { display: flex; margin-right: 15rpx; } .action-btn { padding: 6rpx 12rpx; margin-right: 10rpx; border-radius: 6rpx; font-size: 24rpx; } .edit-btn { background-color: #f0f0f0; color: #007AFF; } .delete-btn { background-color: #f0f0f0; color: #FF3B30; } .warehouse-arrow { width: 40rpx; text-align: right; margin-right: 20rpx; } .arrow { font-size: 32rpx; color: #999; } .expand-btn { background-color: #f0f0f0; padding: 6rpx 16rpx; border-radius: 20rpx; } .expand-icon { font-size: 24rpx; color: #666; } .loading, .empty-state { padding: 60rpx 0; text-align: center; color: #999; font-size: 28rpx; } /* 二级货架样式 */ .sub-shelves { margin-top: 20rpx; margin-left: 30rpx; padding: 10rpx; background-color: #f9f9f9; border-radius: 8rpx; } .sub-header { display: flex; justify-content: space-between; align-items: center; padding: 10rpx 10rpx 20rpx 10rpx; border-bottom: 1rpx solid #eee; } .sub-title { font-size: 26rpx; color: #666; font-weight: bold; } .sub-add-btn { font-size: 24rpx; color: #007AFF; background-color: #f0f0f0; padding: 6rpx 12rpx; border-radius: 20rpx; } .shelf-item { padding: 10rpx; border-bottom: 1rpx solid #eee; } .shelf-item:last-child { border-bottom: none; } .shelf-row { display: flex; justify-content: space-between; align-items: center; padding: 10rpx 0; } .shelf-info { flex: 1; } .shelf-name { font-size: 28rpx; color: #444; } .shelf-action { display: flex; align-items: center; } /* 三级货架样式 */ .freight-shelves { width: 100%; margin-top: 10rpx; /* margin-left: 30rpx; */ padding: 10rpx; background-color: #f5f5f5; border-radius: 8rpx; } .freight-item { padding: 16rpx 10rpx; border-bottom: 1rpx solid #eee; display: flex; justify-content: space-between; align-items: center; } .freight-item:last-child { border-bottom: none; } .freight-info { flex: 1; } .freight-name { font-size: 26rpx; color: #555; } .freight-action { display: flex; align-items: center; } .loading-sub, .empty-sub { padding: 20rpx 0; text-align: center; color: #999; font-size: 24rpx; } /* 添加弹窗样式 */ .edit-popup-container { width: 650rpx; background-color: #fff; border-radius: 12rpx; overflow: hidden; } .edit-popup-header { padding: 30rpx; display: flex; justify-content: space-between; align-items: center; border-bottom: 1rpx solid #f0f0f0; } .edit-popup-title { font-size: 32rpx; font-weight: bold; color: #333; } .edit-popup-close { font-size: 40rpx; color: #999; padding: 0 10rpx; } .edit-popup-content { padding: 20rpx 30rpx; max-height: 700rpx; overflow-y: auto; } .edit-form-item { margin-bottom: 20rpx; position: relative; } .edit-form-label { display: block; font-size: 28rpx; color: #333; margin-bottom: 10rpx; } .required:before { content: '* '; color: #FF3B30; } .edit-form-input { width: 100%; height: 80rpx; border: 1rpx solid #ddd; border-radius: 8rpx; padding: 0 20rpx; font-size: 28rpx; box-sizing: border-box; } .edit-form-unit { position: absolute; right: 20rpx; top: 40rpx; font-size: 28rpx; color: #666; } .edit-form-radio { display: flex; margin-top: 10rpx; } .radio-item { display: flex; align-items: center; margin-right: 40rpx; } .radio-circle { width: 40rpx; height: 40rpx; border-radius: 50%; border: 1rpx solid #ddd; margin-right: 10rpx; display: flex; justify-content: center; align-items: center; } .radio-active { border-color: #007AFF; } .radio-active:after { content: ''; width: 24rpx; height: 24rpx; border-radius: 50%; background-color: #007AFF; } .radio-text { font-size: 28rpx; color: #333; } .edit-popup-footer { display: flex; border-top: 1rpx solid #f0f0f0; } .btn-cancel, .btn-confirm { flex: 1; height: 90rpx; line-height: 90rpx; text-align: center; font-size: 32rpx; border: none; border-radius: 0; } .btn-cancel { background-color: #f5f5f5; color: #333; } .btn-confirm { background-color: #007AFF; color: #fff; } /* 名称和单位容器样式 */ .name-unit-container { display: flex; position: relative; } /* 带单位选择器的输入框样式 */ .edit-form-input.with-unit { flex: 1; padding-right: 70rpx; /* 为单位选择器留出空间 */ } /* 单位选择器样式 */ .unit-selector { position: absolute; right: 0; top: 0; height: 80rpx; padding: 0 20rpx; background-color: #f8f8f8; border-left: 1rpx solid #ddd; display: flex; align-items: center; min-width: 60rpx; } .selected-unit { font-size: 28rpx; color: #333; margin-right: 6rpx; } .dropdown-icon { font-size: 24rpx; color: #666; } /* 下拉选项样式 */ .unit-dropdown { position: absolute; right: 0; top: 80rpx; width: 100rpx; background-color: #fff; box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1); z-index: 10; border: 1rpx solid #eee; } .unit-option { height: 70rpx; display: flex; align-items: center; justify-content: center; font-size: 28rpx; color: #333; border-bottom: 1rpx solid #f5f5f5; } .unit-option:active, .unit-option-active { background-color: #f0f0f0; color: #007AFF; } .unit-option:last-child { border-bottom: none; }