diff --git a/klp-ui/src/api/mes/qc/inspectionItemTemplate.js b/klp-ui/src/api/mes/qc/inspectionItemTemplate.js new file mode 100644 index 00000000..00ec091a --- /dev/null +++ b/klp-ui/src/api/mes/qc/inspectionItemTemplate.js @@ -0,0 +1,55 @@ +import request from '@/utils/request' + +// 查询待检项模板列表 +export function listInspectionItemTemplate(query) { + return request({ + url: '/qc/inspectionItemTemplate/list', + method: 'get', + params: query + }) +} + +// 查询待检项模板详细 +export function getInspectionItemTemplate(templateId) { + return request({ + url: '/qc/inspectionItemTemplate/' + templateId, + method: 'get' + }) +} + +// 新增待检项模板 +export function addInspectionItemTemplate(data) { + return request({ + url: '/qc/inspectionItemTemplate', + method: 'post', + data: data + }) +} + +// 修改待检项模板 +export function updateInspectionItemTemplate(data) { + return request({ + url: '/qc/inspectionItemTemplate', + method: 'put', + data: data + }) +} + +// 删除待检项模板 +export function delInspectionItemTemplate(templateId) { + return request({ + url: '/qc/inspectionItemTemplate/' + templateId, + method: 'delete' + }) +} + +// 查询模版详情 +export function getInfoByInspectionItem(inspectionItemIds) { + return request({ + url: '/qc/inspectionItemTemplate/getInfoByInspectionItem', + method: 'post', + params: { + inspectionItemIds + } + }) +} diff --git a/klp-ui/src/components/KLPService/CheckItemSelect/index.vue b/klp-ui/src/components/KLPService/CheckItemSelect/index.vue index 6e8701b5..673262fc 100644 --- a/klp-ui/src/components/KLPService/CheckItemSelect/index.vue +++ b/klp-ui/src/components/KLPService/CheckItemSelect/index.vue @@ -1,64 +1,186 @@ +.check-item-transfer { + width: 100%; + box-sizing: border-box; +} + +/* 自定义选项样式,确保显示完整 */ +.transfer-option-content { + display: inline-block; + width: 100%; + padding: 2px 0; + box-sizing: border-box; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + \ No newline at end of file diff --git a/klp-ui/src/views/mes/qc/components/CheckItemTransfer/index.vue b/klp-ui/src/views/mes/qc/components/CheckItemTransfer/index.vue new file mode 100644 index 00000000..ade36915 --- /dev/null +++ b/klp-ui/src/views/mes/qc/components/CheckItemTransfer/index.vue @@ -0,0 +1,143 @@ + + + + + \ No newline at end of file diff --git a/klp-ui/src/views/mes/qc/task/pages/auxiliary.vue b/klp-ui/src/views/mes/qc/task/pages/auxiliary.vue index 18b11d7e..c66232d3 100644 --- a/klp-ui/src/views/mes/qc/task/pages/auxiliary.vue +++ b/klp-ui/src/views/mes/qc/task/pages/auxiliary.vue @@ -126,7 +126,7 @@ - + diff --git a/klp-ui/src/views/mes/qc/task/pages/lab.vue b/klp-ui/src/views/mes/qc/task/pages/lab.vue index f4da63b4..bf55ca31 100644 --- a/klp-ui/src/views/mes/qc/task/pages/lab.vue +++ b/klp-ui/src/views/mes/qc/task/pages/lab.vue @@ -122,7 +122,7 @@ - + diff --git a/klp-ui/src/views/mes/qc/task/pages/raw.vue b/klp-ui/src/views/mes/qc/task/pages/raw.vue index 26141cf9..90c4e59a 100644 --- a/klp-ui/src/views/mes/qc/task/pages/raw.vue +++ b/klp-ui/src/views/mes/qc/task/pages/raw.vue @@ -128,7 +128,7 @@ - + diff --git a/klp-ui/src/views/mes/qc/task/pages/section.vue b/klp-ui/src/views/mes/qc/task/pages/section.vue index f5e4a007..e67fdd07 100644 --- a/klp-ui/src/views/mes/qc/task/pages/section.vue +++ b/klp-ui/src/views/mes/qc/task/pages/section.vue @@ -122,7 +122,7 @@ - + diff --git a/klp-ui/src/views/mes/qc/template/index.vue b/klp-ui/src/views/mes/qc/template/index.vue new file mode 100644 index 00000000..b2c3ca24 --- /dev/null +++ b/klp-ui/src/views/mes/qc/template/index.vue @@ -0,0 +1,254 @@ + + + diff --git a/klp-ui/src/views/wms/bom/components/BomItem.vue b/klp-ui/src/views/wms/bom/components/BomItem.vue deleted file mode 100644 index b77245bd..00000000 --- a/klp-ui/src/views/wms/bom/components/BomItem.vue +++ /dev/null @@ -1,263 +0,0 @@ - - - diff --git a/klp-ui/src/views/wms/bom/components/BomPanel.vue b/klp-ui/src/views/wms/bom/components/BomPanel.vue deleted file mode 100644 index 889ede35..00000000 --- a/klp-ui/src/views/wms/bom/components/BomPanel.vue +++ /dev/null @@ -1,243 +0,0 @@ - - - - - \ No newline at end of file diff --git a/klp-ui/src/views/wms/bom/index.vue b/klp-ui/src/views/wms/bom/index.vue deleted file mode 100644 index e69de29b..00000000 diff --git a/klp-ui/src/views/wms/coil/abnormalDetail.vue b/klp-ui/src/views/wms/coil/abnormalDetail.vue index 2196b258..9e933ff0 100644 --- a/klp-ui/src/views/wms/coil/abnormalDetail.vue +++ b/klp-ui/src/views/wms/coil/abnormalDetail.vue @@ -93,8 +93,8 @@ - {{ dict.label }} + {{ + dict.label }} @@ -102,14 +102,14 @@ - {{ dict.label }} + {{ + dict.label }} - {{ dict.label }} + {{ + dict.label }} @@ -127,8 +127,8 @@ - {{ dict.label }} + {{ + dict.label }} @@ -198,10 +198,10 @@ export default { watch: { '$route.query.coilId': { handler(newVal, oldVal) { - if (newVal !== oldVal) { + // if (newVal !== oldVal) { this.queryParams.coilId = newVal this.handleQuery() - } + // } }, immediate: true } diff --git a/klp-ui/src/views/wms/coil/actflow.vue b/klp-ui/src/views/wms/coil/actflow.vue index e3024d16..5b292ee2 100644 --- a/klp-ui/src/views/wms/coil/actflow.vue +++ b/klp-ui/src/views/wms/coil/actflow.vue @@ -3,21 +3,17 @@ - + + + + + + + + + - - - - - - - - 搜索 重置 @@ -27,45 +23,22 @@ - 新增 + 新增 - 删除 + 删除 - 刷新 + 刷新 - + @@ -75,15 +48,15 @@ - + @@ -136,59 +109,27 @@ - + @@ -202,12 +143,8 @@
分条操作
-
+
@@ -218,17 +155,13 @@
- +
其他操作
-
+
@@ -253,7 +186,8 @@ @@ -464,7 +398,7 @@ export default { }).then(() => { this.getList(); this.$message.success('删除成功'); - }).catch(() => {}); + }).catch(() => { }); }, /** 处理操作 - 跳转到对应页面 */ handleProcess(row) { @@ -485,17 +419,17 @@ export default { // 根据操作类型跳转到不同页面 let path = ''; - + // 分条操作:100-199 if (actionType >= 100 && actionType <= 199) { path = '/wms/split'; - } + } // 合卷操作:200-299 else if (actionType == 200) { path = '/wms/merge'; } // 其他操作类型 - else{ + else { path = '/wms/typing'; } @@ -540,7 +474,7 @@ export default { }).then(() => { this.$message.success('操作已取消'); this.getList(); - }).catch(() => {}); + }).catch(() => { }); }, /** 刷新列表 */ handleRefresh() { @@ -552,8 +486,8 @@ export default { // 每30秒自动刷新一次(用于移动端扫码后自动更新列表) this.refreshTimer = setInterval(() => { - // 只在查看待处理状态时自动刷新 - this.getList(); + // 只在查看待处理状态时自动刷新 + this.getList(); }, 30000); }, /** 表格行样式 */ @@ -653,15 +587,15 @@ export default { /* 操作类型卡片样式 */ .action-type-cards { width: 100%; - + .card-section { margin-bottom: 24px; - + &:last-child { margin-bottom: 0; } } - + .section-title { font-size: 14px; font-weight: 600; @@ -670,18 +604,18 @@ export default { padding-left: 8px; border-left: 3px solid #409eff; } - + // 分条操作区域的特殊样式 .card-section:first-child .section-title { border-left-color: #e6a23c; } - + .action-cards-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; } - + .action-card { min-width: 0; padding: 16px; @@ -693,50 +627,50 @@ export default { display: flex; align-items: center; gap: 12px; - + &:hover { border-color: #409eff; box-shadow: 0 2px 12px 0 rgba(64, 158, 255, 0.15); transform: translateY(-2px); } - + &.active { border-color: #409eff; background: linear-gradient(135deg, #e3f2fd 0%, #f0f7ff 100%); box-shadow: 0 2px 12px 0 rgba(64, 158, 255, 0.3); - + .card-icon { background: linear-gradient(135deg, #409eff 0%, #66b1ff 100%); color: #fff; } - + .card-title { color: #409eff; font-weight: 600; } } - + &.split-card { &.active { background: linear-gradient(135deg, #fff3e0 0%, #fff8f0 100%); border-color: #e6a23c; - + .card-icon { background: linear-gradient(135deg, #e6a23c 0%, #f0ad4e 100%); } - + .card-title { color: #e6a23c; } } - + &:hover { border-color: #e6a23c; box-shadow: 0 2px 12px 0 rgba(230, 162, 60, 0.15); } } } - + .card-icon { width: 48px; height: 48px; @@ -750,11 +684,11 @@ export default { transition: all 0.3s ease; flex-shrink: 0; } - + .card-content { flex: 1; } - + .card-title { font-size: 16px; font-weight: 500; @@ -762,7 +696,7 @@ export default { margin-bottom: 4px; transition: all 0.3s ease; } - + .card-desc { font-size: 13px; color: #909399; diff --git a/klp-ui/src/views/wms/product/semi.vue b/klp-ui/src/views/wms/product/semi.vue index d2f6d62d..2dd6f829 100644 --- a/klp-ui/src/views/wms/product/semi.vue +++ b/klp-ui/src/views/wms/product/semi.vue @@ -259,9 +259,9 @@
- +
@@ -270,7 +270,7 @@ import { listProduct, getProduct, delProduct, addProduct, updateProduct } from " import CategorySelect from '@/components/KLPService/CategorySelect'; import CategoryRenderer from '@/components/KLPService/Renderer/CategoryRenderer.vue'; import UserSelect from '@/components/KLPService/UserSelect'; -import BomPanel from '../bom/components/BomPanel.vue'; +// import BomPanel from '../bom/components/BomPanel.vue'; import BomInfoMini from '@/components/KLPService/Renderer/BomInfoMini.vue'; export default { @@ -279,7 +279,7 @@ export default { CategorySelect, CategoryRenderer, UserSelect, - BomPanel, + // BomPanel, BomInfoMini }, dicts: ['common_swicth'], diff --git a/klp-ui/src/views/wms/warehouse/components/WarehouseBird.vue b/klp-ui/src/views/wms/warehouse/components/WarehouseBird.vue index 4e9c1822..fec2d7fb 100644 --- a/klp-ui/src/views/wms/warehouse/components/WarehouseBird.vue +++ b/klp-ui/src/views/wms/warehouse/components/WarehouseBird.vue @@ -148,7 +148,7 @@ export default { const layerData = layerMap[layer]; const totalGrid = layerData.maxRow * layerData.maxColumn; layerData.emptyCount = Math.max(0, totalGrid - layerData.warehouses.length); - + // 按行号+列号排序 layerData.warehouses.sort((a, b) => { if (a.parsedInfo.row !== b.parsedInfo.row) { @@ -240,7 +240,7 @@ export default { } .occupied { - background-color: #c0c4cc; + background-color: #eeff6f; } .legend-text { @@ -253,6 +253,7 @@ export default { // 分层容器样式 .layers-container { display: flex; + .layer-section { flex: 1; max-width: 50%; diff --git a/klp-ui/src/views/wms/warehouse/components/WarehouseGrid.vue b/klp-ui/src/views/wms/warehouse/components/WarehouseGrid.vue index 4c8cc7f9..256b45eb 100644 --- a/klp-ui/src/views/wms/warehouse/components/WarehouseGrid.vue +++ b/klp-ui/src/views/wms/warehouse/components/WarehouseGrid.vue @@ -2,18 +2,15 @@
第{{ layer }}层库位 - {{ isTransposed ? '恢复行列' : '行列转置' }}
-
- -
+
-
+
{{ col }} @@ -29,9 +26,12 @@
- -
+ +
- + {{ currentWarehouse.actualWarehouseCode }} {{ currentWarehouse.actualWarehouseName || '无' }} {{ currentWarehouse.parsedInfo.layer || '未知' }} - {{ isTransposed ? currentWarehouse.parsedInfo.column : currentWarehouse.parsedInfo.row || '未知' }} {{ isTransposed ? currentWarehouse.parsedInfo.row : currentWarehouse.parsedInfo.column || '未知' }} - {{ currentWarehouse.parsedInfo.warehouseFirst || '未知' - }} - {{ currentWarehouse.parsedInfo.warehouseSecond || '未知' - }} + {{ currentWarehouse.parsedInfo.warehouseFirst || '未知' }} + {{ currentWarehouse.parsedInfo.warehouseSecond || '未知' }} {{ currentWarehouse.isEnabled === 1 ? '启用' : '禁用' }} @@ -83,7 +80,6 @@
-