From 2dc1223593305aba806535f1bf7b021fe5503e95 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Thu, 20 Nov 2025 16:12:30 +0800 Subject: [PATCH] =?UTF-8?q?2025-11-20=20IPQC=E6=A3=80=E9=AA=8C=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=A1=B9=E7=9B=AE=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/qc/IPQCResultEntry.vue | 377 +++++++++++++++++++---- 1 file changed, 312 insertions(+), 65 deletions(-) diff --git a/src/views/modules/qc/IPQCResultEntry.vue b/src/views/modules/qc/IPQCResultEntry.vue index 944f6a5..bb8e6fc 100644 --- a/src/views/modules/qc/IPQCResultEntry.vue +++ b/src/views/modules/qc/IPQCResultEntry.vue @@ -1048,120 +1048,162 @@ - -
- - - + + +
+ + + + - - + + + - - 查询 + + 查询 + 重置
- - - 可选项目: + + +
+ +
+
+ + 可选项目 + ({{ availableItemList.length }}) +
+ class="operation-table" + :header-cell-style="{background: '#f5f7fa', color: '#606266', fontWeight: '500'}"> + width="45" + align="center"> + width="100" + label="编码"> + align="left" + min-width="140" + show-overflow-tooltip + label="名称"> - - + width="100" + label="范围"> + - - -
- 添加>> -
-
- 删除<< +
+ + +
+ + + + + + + + +
+ + +
+
+ + 已有项目 + ({{ selectedItemList.length }})
- - - 已有项目: + class="operation-table" + :header-cell-style="{background: '#f5f7fa', color: '#606266', fontWeight: '500'}"> + width="45" + align="center"> + width="100" + label="编码"> + show-overflow-tooltip + label="名称"> - - - - 关闭 - +
+
+ + + @@ -4408,6 +4450,15 @@ } }, + // 重置查询条件 + resetItemQuery() { + this.itemOperationQuery = { + itemNo: '', + itemDesc: '', + } + this.searchIPQCItems() + }, + // 可选项目行点击 availableItemClickRow(row) { this.$refs.availableItemTable.toggleRowSelection(row) @@ -4739,4 +4790,200 @@ height: auto; line-height: 1.5; } + +/* ==================== 检验项目操作对话框样式 ==================== */ +/deep/ .item-operation-dialog { + border-radius: 8px; + box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12); +} + +/deep/ .item-operation-dialog .el-dialog__header { + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); + padding: 20px 24px; + border-radius: 8px 8px 0 0; +} + +/deep/ .item-operation-dialog .el-dialog__title { + color: #ffffff; + font-size: 16px; + font-weight: 600; + letter-spacing: 0.5px; +} + +/deep/ .item-operation-dialog .el-dialog__headerbtn .el-dialog__close { + color: #ffffff; + font-size: 20px; + font-weight: bold; +} + +/deep/ .item-operation-dialog .el-dialog__headerbtn:hover .el-dialog__close { + color: #f0f0f0; +} + +/deep/ .item-operation-dialog .el-dialog__body { + padding: 24px; + background: #f8f9fa; +} + +/* 查询区域样式 */ +.search-container { + background: #ffffff; + padding: 16px 20px; + border-radius: 6px; + margin-bottom: 20px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); +} + +.search-container .el-form-item { + margin-bottom: 0; +} + +.search-container .el-form-item__label { + font-weight: 500; + color: #606266; +} + +/* 主内容区域 */ +.item-operation-content { + display: flex; + gap: 16px; + align-items: stretch; +} + +/* 项目面板 */ +.item-panel { + flex: 1; + background: #ffffff; + border-radius: 6px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); + overflow: hidden; + transition: all 0.3s ease; +} + +.item-panel:hover { + box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); +} + +.available-panel { + flex: 1.5; +} + +.selected-panel { + flex: 1; +} + +/* 面板头部 */ +.panel-header { + padding: 14px 16px; + background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf0 100%); + border-bottom: 2px solid #dcdfe6; + display: flex; + align-items: center; + gap: 8px; +} + +.panel-header i { + font-size: 18px; + color: #606266; +} + +.panel-title { + font-size: 14px; + font-weight: 600; + color: #303133; + letter-spacing: 0.5px; +} + +.item-count { + margin-left: auto; + font-size: 12px; + color: #909399; + background: #ffffff; + padding: 2px 10px; + border-radius: 12px; + font-weight: 500; +} + +/* 表格样式优化 */ +.operation-table { + border: none !important; +} + +.operation-table /deep/ .el-table__body tr:hover > td { + background-color: #f0f7ff !important; +} + +.operation-table /deep/ .el-table__row.current-row > td { + background-color: #e6f2ff !important; +} + +.operation-table /deep/ td { + border-bottom: 1px solid #f0f0f0; +} + +.operation-table /deep/ .el-table__body { + font-size: 13px; +} + +/* 操作按钮区域 */ +.operation-buttons { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + gap: 20px; + padding: 0 8px; +} + +.operation-buttons .el-button { + width: 48px; + height: 48px; + font-size: 20px; + transition: all 0.3s ease; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); +} + +.operation-buttons .el-button:hover { + transform: scale(1.1); + box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); +} + +.operation-buttons .el-button.is-disabled { + opacity: 0.4; + cursor: not-allowed; +} + +.operation-buttons .el-button--primary { + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); + border: none; +} + +.operation-buttons .el-button--danger { + background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); + border: none; +} + +/* 底部按钮 */ +.dialog-footer { + text-align: center; + padding: 16px 0 0; +} + +.dialog-footer .el-button { + min-width: 100px; + font-weight: 500; +} + +/* 响应式优化 */ +@media (max-width: 1300px) { + .item-operation-content { + gap: 12px; + } + + .operation-buttons .el-button { + width: 42px; + height: 42px; + font-size: 18px; + } +}