/** * 路线配置图 / 任务步骤编辑器 — 三栏布局共享样式 * 被 process-route 和 production-work-order 的弹窗组件引用 */ .route-config-body { display: flex; gap: 16px; height: calc(90vh - 120px); min-height: 500px; } /* 左侧面板:工艺库 */ .route-config-left { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; } .route-config-left-header { padding: 12px; border-bottom: 1px solid #e5e7eb; flex-shrink: 0; h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #1f2937; } } .route-config-search { width: 100%; } .route-config-collapse { flex: 1; overflow-y: auto; border: none; :deep(.el-collapse-item__header) { font-size: 13px; font-weight: 600; color: #374151; background: #ecfdf5; padding: 0 12px; height: 36px; line-height: 36px; } :deep(.el-collapse-item__wrap) { border-bottom: none; } :deep(.el-collapse-item__content) { padding: 4px 8px 8px; } } .route-config-cat-bar { display: inline-block; width: 3px; height: 14px; background: #10b981; border-radius: 2px; margin-right: 8px; vertical-align: middle; } .route-config-process-card { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 10px; margin-bottom: 4px; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; cursor: grab; transition: all 0.15s ease; &:hover { border-color: #10b981; box-shadow: 0 2px 4px rgba(16, 185, 129, 0.12); } &:active { cursor: grabbing; } } .route-config-process-name { font-size: 13px; font-weight: 500; color: #1f2937; margin-bottom: 2px; } .route-config-process-seq { color: #1f2937; font-size: 13px; font-weight: 500; margin-right: 2px; } .route-config-process-code { font-size: 11px; color: #9ca3af; } .route-config-process-info { flex: 1; min-width: 0; } .route-config-process-drag { flex-shrink: 0; color: #d1d5db; font-size: 14px; } /* 中间面板:步骤列表 */ .route-config-center { width: 640px; flex-shrink: 0; display: flex; flex-direction: column; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; } .route-config-center-header { padding: 12px 16px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; h3 { margin: 0; font-size: 14px; font-weight: 600; color: #1f2937; } } .route-config-step-count { font-size: 12px; color: #9ca3af; } .route-config-center-dropzone { flex: 1; overflow-y: auto; padding: 12px; } .route-config-center-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: #9ca3af; p { margin-top: 8px; font-size: 13px; } } .route-config-step-card { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 6px; background: #fff; border: 2px solid #e5e7eb; border-radius: 8px; cursor: pointer; transition: all 0.15s ease; &:hover { border-color: #6ee7b7; } &.is-active { border-color: #10b981; background: #ecfdf5; } } .route-config-step-handle { cursor: grab; color: #9ca3af; flex-shrink: 0; font-size: 16px; &:active { cursor: grabbing; } } .route-config-step-order { width: 24px; height: 24px; border-radius: 50%; background: #10b981; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; } .route-config-step-info { flex: 1; min-width: 0; } .route-config-step-name { font-size: 13px; font-weight: 500; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .route-config-step-desc { font-size: 11px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* 右侧面板:步骤详情 */ .route-config-right { flex: 1; min-width: 0; display: flex; flex-direction: column; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; } .route-config-right-header { padding: 12px 16px; border-bottom: 1px solid #e5e7eb; flex-shrink: 0; h3 { margin: 0; font-size: 14px; font-weight: 600; color: #1f2937; } } .route-config-right-body { flex: 1; overflow-y: auto; padding: 16px; } .route-config-right-footer { padding: 12px 16px; border-top: 1px solid #e5e7eb; display: flex; justify-content: flex-end; flex-shrink: 0; } .route-config-right-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; padding: 16px; color: #9ca3af; p { margin-top: 12px; font-size: 13px; } } .route-config-step-form { margin-bottom: 12px; :deep(.el-form-item) { margin-bottom: 8px; } } .route-config-tabs { :deep(.el-tabs__header) { margin-bottom: 8px; } } .route-config-tab-toolbar { margin-bottom: 8px; display: flex; justify-content: flex-end; } /* 内嵌表格单元格控件 */ .inner-table { width: 100%; :deep(.inner-cell-input) { width: 100%; } :deep(.inner-cell-select) { width: 100%; .el-select__wrapper { min-height: 36px; } } }