From d5a774e103c83425af617d69e544fecc3579fab8 Mon Sep 17 00:00:00 2001 From: van Date: Sun, 6 Sep 2026 21:08:29 +0800 Subject: [PATCH] 1 --- .../jd-instruction/fadan-quick-record.vue | 25 ++++++++++++++++--- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/src/views/system/jd-instruction/fadan-quick-record.vue b/src/views/system/jd-instruction/fadan-quick-record.vue index 0586b6e..9dd7803 100644 --- a/src/views/system/jd-instruction/fadan-quick-record.vue +++ b/src/views/system/jd-instruction/fadan-quick-record.vue @@ -7,13 +7,22 @@
- + +
@@ -239,6 +248,7 @@ export default { return { form: { markSuffix: '', + markFull: '', model: '', shopPrefix: '', address: '', @@ -335,6 +345,10 @@ export default { } }, buildDistributionMark() { + const full = (this.form.markFull || '').trim() + if (full) { + return full + } let s = (this.form.markSuffix || '').trim() if (s.startsWith('-')) { s = s.slice(1).trim() @@ -705,6 +719,7 @@ export default { resetForm() { this.form = { markSuffix: '', + markFull: '', model: '', shopPrefix: '', address: '', @@ -963,19 +978,21 @@ export default { }, applyMarkSuffixFromText(mark) { const v = String(mark || '').trim() + this.form.markFull = '' + this.form.markSuffix = '' if (!v || v === 'F') { - this.form.markSuffix = '' return } if (v.startsWith('F-')) { this.form.markSuffix = v.slice(2).trim() return } - if (v.startsWith('F') && v.length > 1) { + if (v === 'F' || (v.startsWith('F') && v.length > 1 && !v.includes('-'))) { this.form.markSuffix = v.slice(1).replace(/^-/, '').trim() return } - this.form.markSuffix = v + // H-TF、PDD 等非 F 标记:原样回填,不再拼 F- + this.form.markFull = v }, applyHistoryItem(row) { if (!row) return