From ffe48e0417f6b70ab918606feaf0ebe732d8a7f6 Mon Sep 17 00:00:00 2001 From: van Date: Wed, 8 Apr 2026 17:31:13 +0800 Subject: [PATCH] 1 --- src/views/system/jd-instruction/fadan-quick-record.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/views/system/jd-instruction/fadan-quick-record.vue b/src/views/system/jd-instruction/fadan-quick-record.vue index 6976001..38a420c 100644 --- a/src/views/system/jd-instruction/fadan-quick-record.vue +++ b/src/views/system/jd-instruction/fadan-quick-record.vue @@ -134,10 +134,18 @@ export default { } return 'F-' + s }, + /** 地址压成一行:换行/多空格合并为单空格,去掉中文逗号 */ + compressAddressOneLine(raw) { + if (raw == null) return '' + return String(raw) + .replace(/,/g, '') + .replace(/\s+/g, ' ') + .trim() + }, buildCommand() { const mark = this.buildDistributionMark() const model = (this.form.model || '').trim() - const address = (this.form.address || '').trim() + const address = this.compressAddressOneLine(this.form.address) if (!model) { this.$modal.msgError('请填写型号') return null