From ea3d5eea08b4e8917f384a67be684c14bff77bc3 Mon Sep 17 00:00:00 2001 From: van Date: Thu, 30 Apr 2026 18:05:01 +0800 Subject: [PATCH] 1 --- .../jd-instruction/fadan-quick-record.vue | 58 ++++++++++++------- 1 file changed, 37 insertions(+), 21 deletions(-) diff --git a/src/views/system/jd-instruction/fadan-quick-record.vue b/src/views/system/jd-instruction/fadan-quick-record.vue index ed1da42..3901817 100644 --- a/src/views/system/jd-instruction/fadan-quick-record.vue +++ b/src/views/system/jd-instruction/fadan-quick-record.vue @@ -14,23 +14,19 @@ - - - + + { + const m = String(o.modelNumber || '').trim() + if (!m) return false + if (!q) return true + return m.toLowerCase().includes(q) + }) + .slice(0, 100) + cb( + rows.map(o => ({ + value: String(o.modelNumber).trim(), + label: this.modelOptionLabel(o) + })) + ) + }, + /** 仅从联想列表点选时回填金额;型号本身为输入框,选后仍可继续编辑 */ + onModelSuggestionSelect(item) { + if (!item || !item.value) return + const key = String(item.value).trim() const hit = this.modelOptions.find(o => o && String(o.modelNumber || '').trim() === key) if (!hit) return const payRaw = hit.lastPaymentAmount @@ -499,13 +513,15 @@ export default { min-width: 0; } -.model-select-full { +.model-input-full { width: 100%; } -.model-select-full ::v-deep .el-input__inner, -.model-select-full ::v-deep .el-input__prefix { - line-height: normal; +.model-suggest-label { + display: block; + line-height: 1.45; + white-space: normal; + word-break: break-all; } .btn-row {