From 68c1f1a61441a67efb00d411d8d31e970c96224e Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Tue, 12 Aug 2025 11:33:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/qc/qcPartAttribute.vue | 820 +++++++++++++++++------ 1 file changed, 616 insertions(+), 204 deletions(-) diff --git a/src/views/modules/qc/qcPartAttribute.vue b/src/views/modules/qc/qcPartAttribute.vue index 1ee5536..800a78d 100644 --- a/src/views/modules/qc/qcPartAttribute.vue +++ b/src/views/modules/qc/qcPartAttribute.vue @@ -94,98 +94,169 @@ - - - - - - - - - - - - - - - - - - - - - 物料有效期管理 - - - - - - - - - - - - - - 入库默认仓库 - 入库默认仓库 - - - - - 默认库位 - - - - - - - - - - 领料默认仓库 - - - - - - - - - - - - - IQC检验 - - - FAI检验 - - - IPQC检验 - - - PQC检验 - - - FQC检验 - - - OQC检验 - - - - - - - - - - - - - + +
+ + +
+
基本信息
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
有效期管理
+ + + + 启用物料有效期管理 + + + + + + + + + + + + + +
+ + +
+
仓库配置
+ + + + + + + + + + + + + + + + 入库默认仓库 + 入库默认仓库 + + + + + + + + + 领料默认仓库 + + + + + + + + + 默认库位 + + + + + + + +
+ + +
+
检验配置
+ + + IQC检验 + + + FAI检验 + + + IPQC检验 + + + PQC检验 + + + FQC检验 + + + OQC检验 + + +
+ + +
+
巡检配置
+ + + + + + + + + + + + + + + + + +
+
+
+ 保存 关闭 @@ -312,120 +383,206 @@ - - - - - - - - - - 新增 - - + +
+ + + + + + + + + + + + + 新增模板 + + +
+ -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 保存 关闭 @@ -2379,4 +2536,259 @@ height: auto; line-height: 1.5; } + +/* 物料编辑弹出框样式 - 超紧凑版 */ +.part-edit-dialog .dialog-content { + padding: 8px; + max-height: 70vh; + overflow-y: auto; +} + +.part-edit-dialog .form-section { + margin-bottom: 12px; + padding: 8px; + border-radius: 4px; + border-left: 2px solid #17b3a3; +} + +.part-edit-dialog .section-title { + font-size: 13px; + font-weight: 600; + color: #303133; + margin-bottom: 2px; + padding-bottom: 3px; + border-bottom: 1px solid #e4e7ed; +} + +.part-edit-dialog .el-form-item { + margin-bottom: 6px; +} + +.part-edit-dialog .el-form-item__label { + font-weight: 500; + color: #606266; + font-size: 12px; + line-height: 1.2; +} + +.part-edit-dialog .el-input__inner, +.part-edit-dialog .el-input-number .el-input__inner { + border-radius: 4px; + font-size: 12px; + height: 32px; + line-height: 32px; +} + +.part-edit-dialog .el-input-group .el-input:first-child .el-input__inner { + border-right: 0; + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} + +.part-edit-dialog .el-input-group .el-input:last-child .el-input__inner { + border-left: 0; + border-top-left-radius: 0; + border-bottom-left-radius: 0; +} + +.part-edit-dialog .el-checkbox { + font-size: 12px; + line-height: 1.2; +} + +.part-edit-dialog .el-select .el-input__inner { + height: 32px; + line-height: 32px; +} + + + +/* 检验模板弹出框样式 - 超紧凑版 */ +.inspection-template-dialog .template-header { + padding: 10px; + background: #f5f7fa; + border-radius: 4px; + margin-bottom: 10px; + border: 1px solid #e4e7ed; +} + +.inspection-template-dialog .template-header .el-form-item { + margin-bottom: 0; +} + +.inspection-template-dialog .template-header .el-form-item__label { + font-weight: 600; + color: #303133; + font-size: 12px; +} + +.inspection-template-dialog .template-header .el-input__inner { + font-size: 12px; + height: 32px; + line-height: 32px; +} + +.inspection-template-dialog .template-table-container { + border-radius: 6px; + overflow: hidden; + border: 1px solid #e4e7ed; +} + +.inspection-template-dialog .inspection-table { + font-size: 12px; +} + +.inspection-template-dialog .inspection-table .el-table__header-wrapper th { + background: #f5f7fa; + color: #303133; + font-weight: 600; + font-size: 12px; + padding: 8px 0; +} + +.inspection-template-dialog .input-button-group { + display: flex; + align-items: center; + gap: 8px; +} + +.inspection-template-dialog .select-button { + min-width: 45px; + padding: 3px 8px; + font-size: 11px; + border: 1px solid #dcdfe6; + border-radius: 3px; + background: #fff; + color: #606266; + transition: all 0.2s; +} + +.inspection-template-dialog .select-button:hover { + color: #409EFF; + border-color: #c6e2ff; + background-color: #ecf5ff; +} + +.inspection-template-dialog .readonly-input { + flex: 1; +} + +.inspection-template-dialog .readonly-input .el-input__inner { + background-color: #f5f7fa; + border-color: #e4e7ed; + font-size: 11px; + height: 28px; + line-height: 28px; +} + +.inspection-template-dialog .el-input-number { + width: 100%; +} + +.inspection-template-dialog .el-input-number .el-input__inner { + text-align: center; + font-size: 11px; + height: 28px; + line-height: 28px; +} + +.inspection-template-dialog .el-input__inner { + font-size: 11px; + height: 28px; + line-height: 28px; +} + +/* 按钮样式 - 保持Element UI风格 */ + +/* 删除按钮样式 */ +.inspection-template-dialog .el-button[style*="color: #f56c6c"] { + color: #f56c6c !important; + font-size: 11px; + padding: 3px 8px; +} + +.inspection-template-dialog .el-button[style*="color: #f56c6c"]:hover { + color: #f78989 !important; +} + +/* 响应式设计 */ +@media (max-width: 1200px) { + .part-edit-dialog { + width: 95% !important; + } + + .inspection-template-dialog { + width: 95% !important; + } +} + +@media (max-width: 768px) { + .part-edit-dialog .el-col, + .inspection-template-dialog .el-col { + margin-bottom: 15px; + } + + .inspection-template-dialog .input-button-group { + flex-direction: column; + gap: 5px; + } + + .inspection-template-dialog .select-button { + width: 100%; + } +} + +/* 表格行悬停效果 */ +.inspection-template-dialog .el-table--enable-row-hover .el-table__body tr:hover > td { + background-color: #f5f7fa; +} + +/* 仓库配置区域特殊样式 */ +.part-edit-dialog .form-section .el-input-group { + display: flex; + width: 100%; +} + +.part-edit-dialog .form-section .el-input-group .el-input:first-child { + flex: 0 0 25%; +} + +.part-edit-dialog .form-section .el-input-group .el-input:last-child { + flex: 1; +} + +.part-edit-dialog .form-section .el-input-group .el-input__inner { + border-radius: 0; +} + +.part-edit-dialog .form-section .el-input-group .el-input:first-child .el-input__inner { + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; + border-right: 0; +} + +.part-edit-dialog .form-section .el-input-group .el-input:last-child .el-input__inner { + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; + border-left: 0; +} + +/* 滚动条样式 */ +.part-edit-dialog .dialog-content::-webkit-scrollbar { + width: 6px; +} + +.part-edit-dialog .dialog-content::-webkit-scrollbar-track { + background: #f1f1f1; + border-radius: 3px; +} + +.part-edit-dialog .dialog-content::-webkit-scrollbar-thumb { + background: #c0c4cc; + border-radius: 3px; +} + +.part-edit-dialog .dialog-content::-webkit-scrollbar-thumb:hover { + background: #909399; +}