421 lines
7.6 KiB
SCSS
421 lines
7.6 KiB
SCSS
/**
|
|
* 路线配置图 / 任务步骤编辑器 — 三栏布局共享样式
|
|
* 被 process-route 和 production-work-order 的弹窗组件引用
|
|
*/
|
|
|
|
.route-config-body {
|
|
display: flex;
|
|
gap: 16px;
|
|
height: calc(90vh - 120px);
|
|
min-height: 500px;
|
|
}
|
|
|
|
/* 左侧面板:工艺库 */
|
|
.route-config-left {
|
|
position: relative;
|
|
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: #e8f4ee;
|
|
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: #047857;
|
|
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: #047857;
|
|
box-shadow: 0 2px 4px rgba(4, 120, 87, 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: flex-start;
|
|
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: #6bb99a;
|
|
}
|
|
&.is-active {
|
|
border-color: #047857;
|
|
background: #e8f4ee;
|
|
}
|
|
}
|
|
.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: #047857;
|
|
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-step-meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
margin-top: 4px;
|
|
}
|
|
.route-config-step-meta-item {
|
|
font-size: 11px;
|
|
color: #64748b;
|
|
line-height: 1.35;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.route-config-step-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
gap: 2px;
|
|
flex-shrink: 0;
|
|
margin-left: auto;
|
|
padding-top: 2px;
|
|
|
|
.el-tag {
|
|
margin: 0;
|
|
}
|
|
|
|
.el-button.is-link {
|
|
margin: 0;
|
|
padding: 2px;
|
|
height: auto;
|
|
}
|
|
}
|
|
|
|
/* 右侧面板:步骤详情 */
|
|
.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;
|
|
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-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-tabs + .route-config-step-sections {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.route-config-step-sections {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.route-config-step-section-title {
|
|
margin: 0 0 8px;
|
|
padding-left: 10px;
|
|
border-left: 3px solid #10b981;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #1f2937;
|
|
}
|
|
|
|
.route-config-tab-toolbar {
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
/* 步骤详情 Tab 内嵌列表(弹窗 append-to-body,须本地复刻标准列表视觉) */
|
|
.route-config-tab-list {
|
|
border: 1px solid var(--mint-border, #e2e8f0);
|
|
border-radius: var(--mint-radius, 10px);
|
|
overflow: hidden;
|
|
background: var(--mint-surface, #fff);
|
|
|
|
.list-toolbar {
|
|
padding: 0;
|
|
background: var(--mint-table-head, #f8fafc);
|
|
border-bottom: none;
|
|
}
|
|
|
|
.list-toolbar-row {
|
|
padding: 8px 16px;
|
|
gap: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-start;
|
|
|
|
.el-button + .el-button {
|
|
margin-left: 0 !important;
|
|
}
|
|
}
|
|
|
|
.list-body.list-wrap.inner-table-wrap {
|
|
border-top: 1px solid var(--mint-border, #e2e8f0);
|
|
border-radius: 0;
|
|
overflow: hidden;
|
|
|
|
.el-table {
|
|
--el-table-header-bg-color: var(--mint-table-head, #f8fafc);
|
|
--el-table-border-color: var(--mint-border, #e2e8f0);
|
|
--el-table-row-hover-bg-color: var(--mint-row-hover, #f0fdf4);
|
|
--el-table-text-color: var(--mint-text, #0f172a);
|
|
--el-table-header-text-color: var(--mint-text-muted, #64748b);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.el-table th.el-table__cell {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--mint-text-muted, #64748b);
|
|
}
|
|
|
|
.el-table td.el-table__cell {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--mint-text, #0f172a);
|
|
}
|
|
|
|
.el-empty {
|
|
padding: 24px 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* 内嵌表格单元格控件 */
|
|
.inner-table {
|
|
width: 100%;
|
|
|
|
:deep(.inner-cell-input) {
|
|
width: 100%;
|
|
}
|
|
:deep(.inner-cell-select) {
|
|
width: 100%;
|
|
|
|
.el-select__wrapper {
|
|
min-height: 36px;
|
|
}
|
|
}
|
|
}
|