1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user