From d90f72c662d920d2d8a304be4fe5deff78a162e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Mon, 15 Dec 2025 11:05:27 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=BB=84=E4=BB=B6):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=A4=9A=E9=80=89=E7=BB=84=E4=BB=B6=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E9=92=A2=E5=8D=B7=E9=80=89=E6=8B=A9=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增MutiSelect多选组件,支持逗号分隔字符串绑定 优化CoilSelector组件,使用MutiSelect替换输入框并新增规格字段 移除多处钢种字段显示及输入 增强CoilNo组件,支持悬停显示钢卷详细信息 在收货详情页添加删除按钮功能 --- klp-ui/src/components/CoilSelector/index.vue | 20 ++- .../components/KLPService/Renderer/CoilNo.vue | 114 +++++++++++++++++- klp-ui/src/components/MutiSelect/index.vue | 40 ++++++ klp-ui/src/utils/enum.js | 1 + .../quality/components/DataCorrection.vue | 6 - klp-ui/src/views/wms/coil/do/search.vue | 5 +- klp-ui/src/views/wms/coil/panels/base.vue | 21 +++- .../wms/delivery/components/coilsTranfer.vue | 4 - klp-ui/src/views/wms/receive/detail/index.vue | 45 +++---- 9 files changed, 202 insertions(+), 54 deletions(-) create mode 100644 klp-ui/src/components/MutiSelect/index.vue diff --git a/klp-ui/src/components/CoilSelector/index.vue b/klp-ui/src/components/CoilSelector/index.vue index 6080f4d7..afa9803b 100644 --- a/klp-ui/src/components/CoilSelector/index.vue +++ b/klp-ui/src/components/CoilSelector/index.vue @@ -23,17 +23,18 @@ - - + + + + - + - + @@ -68,9 +69,16 @@ @@ -26,5 +108,33 @@ export default { display: inline-block; /* 让容器尺寸贴合内部el-tag */ border: 2px solid #67c23a !important; border-radius: 4px; /* 可选:和el-tag圆角保持一致,更美观 */ + padding: 1px; /* 调整内边距,避免边框和标签重叠 */ +} + +/* 弹窗信息样式 */ +.coil-info { + font-size: 12px; + line-height: 1.8; +} + +.coil-info .info-item { + display: flex; + margin-bottom: 4px; +} + +.coil-info .info-item:last-child { + margin-bottom: 0; +} + +.coil-info .label { + color: #666; + width: 70px; + flex-shrink: 0; +} + +.coil-info .value { + color: #333; + flex: 1; + word-break: break-all; } \ No newline at end of file diff --git a/klp-ui/src/components/MutiSelect/index.vue b/klp-ui/src/components/MutiSelect/index.vue new file mode 100644 index 00000000..489547fd --- /dev/null +++ b/klp-ui/src/components/MutiSelect/index.vue @@ -0,0 +1,40 @@ + + + + \ No newline at end of file diff --git a/klp-ui/src/utils/enum.js b/klp-ui/src/utils/enum.js index c0ed12a4..09b762c6 100644 --- a/klp-ui/src/utils/enum.js +++ b/klp-ui/src/utils/enum.js @@ -10,4 +10,5 @@ export const MemoInputStorageKey = { trimmingRequirement: 'trimmingRequirement', // 钢卷修剪要求 packingStatus: 'packingStatus', // 打包状态 packagingRequirement: 'packagingRequirement', // 打包要求 + coilSpec: 'coilSpec', // 钢卷规格 } \ No newline at end of file diff --git a/klp-ui/src/views/lines/panels/quality/components/DataCorrection.vue b/klp-ui/src/views/lines/panels/quality/components/DataCorrection.vue index d91cddf8..4165c05a 100644 --- a/klp-ui/src/views/lines/panels/quality/components/DataCorrection.vue +++ b/klp-ui/src/views/lines/panels/quality/components/DataCorrection.vue @@ -72,12 +72,6 @@ - - - - - - diff --git a/klp-ui/src/views/wms/coil/do/search.vue b/klp-ui/src/views/wms/coil/do/search.vue index 1ed13996..80655505 100644 --- a/klp-ui/src/views/wms/coil/do/search.vue +++ b/klp-ui/src/views/wms/coil/do/search.vue @@ -161,10 +161,7 @@ 规格: {{ item.rawMaterial.specification }} -
- 钢种: - {{ item.rawMaterial.steelGrade }} -
+
厚度: {{ item.rawMaterial.thickness }}mm diff --git a/klp-ui/src/views/wms/coil/panels/base.vue b/klp-ui/src/views/wms/coil/panels/base.vue index c0ecf87d..4e8d8da5 100644 --- a/klp-ui/src/views/wms/coil/panels/base.vue +++ b/klp-ui/src/views/wms/coil/panels/base.vue @@ -21,17 +21,21 @@ - + + + + - - @@ -251,6 +255,8 @@ import MaterialSelect from "@/components/KLPService/MaterialSelect"; import ActualWarehouseSelect from "@/components/KLPService/ActualWarehouseSelect"; import { findItemWithBom } from "@/store/modules/category"; import CoilNo from "@/components/KLPService/Renderer/CoilNo.vue"; +import MemoInput from "@/components/MemoInput"; +import MutiSelect from "@/components/MutiSelect"; export default { @@ -267,9 +273,11 @@ export default { CoilTraceResult, LabelRender, ActualWarehouseSelect, - CoilNo + CoilNo, + MemoInput, + MutiSelect, }, - dicts: ['product_coil_status'], + dicts: ['product_coil_status', 'coil_material', 'coil_itemname', 'coil_manufacturer'], props: { qrcode: { type: Boolean, @@ -399,7 +407,8 @@ export default { { label: '质量状态', prop: 'qualityStatus' }, { label: '打包状态', prop: 'packingStatus' }, { label: '切边要求', prop: 'edgeRequirement' }, - { label: '包装要求', prop: 'packagingRequirement' } + { label: '包装要求', prop: 'packagingRequirement' }, + { label: '厂家', prop: 'itemManufacturer' }, ], title: '详细信息' } diff --git a/klp-ui/src/views/wms/delivery/components/coilsTranfer.vue b/klp-ui/src/views/wms/delivery/components/coilsTranfer.vue index f362e635..ec972f7f 100644 --- a/klp-ui/src/views/wms/delivery/components/coilsTranfer.vue +++ b/klp-ui/src/views/wms/delivery/components/coilsTranfer.vue @@ -9,10 +9,6 @@ - - - diff --git a/klp-ui/src/views/wms/receive/detail/index.vue b/klp-ui/src/views/wms/receive/detail/index.vue index a608bb08..483fbec6 100644 --- a/klp-ui/src/views/wms/receive/detail/index.vue +++ b/klp-ui/src/views/wms/receive/detail/index.vue @@ -43,9 +43,9 @@ - + @@ -86,16 +86,10 @@ - import { updateMaterialCoilSimple, getMaterialCoil } from '@/api/wms/coil' -import { listPendingAction, updatePendingAction } from '@/api/wms/pendingAction' +import { listPendingAction, updatePendingAction, delPendingAction } from '@/api/wms/pendingAction' import { listDeliveryPlan } from '@/api/wms/deliveryPlan' import MemoInput from "@/components/MemoInput"; import ImportGuide from "@/views/wms/receive/components/ImportGuide.vue"; @@ -320,6 +314,20 @@ export default { // 转换为树形数据格式 this.planTreeData = response.rows; this.planLoading = false; + // 后台加载每一条钢卷的明细 + }); + }, + + handleDelete(row) { + this.$modal.confirm("确认删除吗?", "删除确认", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning" + }).then(() => { + delPendingAction(row.actionId).then(response => { + this.$modal.msgSuccess("删除成功"); + this.getList(); + }); }); }, @@ -385,21 +393,6 @@ export default { } }); }, - /** 删除按钮操作 */ - handleDelete(row) { - const waybillIds = row.waybillId || this.ids; - this.$modal.confirm('是否确认删除收货单编号为"' + waybillIds + '"的数据项?').then(() => { - this.loading = true; - return delDeliveryWaybill(waybillIds); - }).then(() => { - this.loading = false; - this.getList(); - this.$modal.msgSuccess("删除成功"); - }).catch(() => { - }).finally(() => { - this.loading = false; - }); - }, /** 导出按钮操作 */ handleExport() { this.download('wms/deliveryWaybill/export', {