From 5eecfda9fac27578c02bb527ddce314aa092977d Mon Sep 17 00:00:00 2001 From: liufumingren Date: Mon, 24 Aug 2026 22:34:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8B=86=E5=8C=85=E6=98=8E=E7=BB=86?= =?UTF-8?q?=E5=A4=87=E6=B3=A8=E4=B8=8B=E6=8B=89=E9=80=89=E9=A1=B9=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=88=A0=E9=99=A4=E5=B9=B6=E6=8C=81=E4=B9=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/express/returnUnpackwork/index.vue | 48 +++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/src/views/express/returnUnpackwork/index.vue b/src/views/express/returnUnpackwork/index.vue index 920b3edd..47e5cc9c 100644 --- a/src/views/express/returnUnpackwork/index.vue +++ b/src/views/express/returnUnpackwork/index.vue @@ -289,7 +289,16 @@ class="remark-select" @change="handleRemarkChange(row, $event)" > - + + + {{ opt }} + × + + @@ -1925,6 +1934,15 @@ function addRemarkOption(text: string): string { return value } +/** 删除备注选项(仅从选项列表移除,不影响已录入明细的备注值) */ +function removeRemarkOption(text: string) { + const value = String(text ?? '').trim() + const idx = remarkOptions.value.findIndex((o) => o === value) + if (idx < 0) return + remarkOptions.value.splice(idx, 1) + persistRemarkOptions() +} + /** 备注下拉变更:拦截「添加备注选项」,其余值自动入库 localStorage 并保存明细 */ function handleRemarkChange(row: any, value: string) { if (value === REMARK_ADD_OPTION_VALUE) { @@ -2552,6 +2570,34 @@ async function confirmRemoveDetail() { color: #409eff; } +.remark-option-content { + display: flex; + align-items: center; + justify-content: space-between; + width: 100%; +} + +.remark-option-label { + flex: 1; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.remark-option-delete { + flex-shrink: 0; + margin-left: 8px; + color: #c0c4cc; + font-size: 15px; + line-height: 1; + cursor: pointer; + transition: color 0.15s; + + &:hover { + color: #f56c6c; + } +} + .detail-pagination { margin-top: 8px; justify-content: flex-end;