Commit 87bae53c authored by 邓春圆's avatar 邓春圆

一个联系人设置多个邮箱时,未填写的邮箱也保存为空了 bug修复

parent 295ac26a
...@@ -863,7 +863,7 @@ export default { ...@@ -863,7 +863,7 @@ export default {
const form = {...this.form, type: this.form.type?.join(','), transportType: (this.form.transportType || [])?.join(','), taxRate: Number(this.form.taxRate)} const form = {...this.form, type: this.form.type?.join(','), transportType: (this.form.transportType || [])?.join(','), taxRate: Number(this.form.taxRate)}
form.customerContacts = JSON.parse(JSON.stringify(this.form.customerContacts)) form.customerContacts = JSON.parse(JSON.stringify(this.form.customerContacts))
form.customerContacts.forEach(e =>{ form.customerContacts.forEach(e =>{
e.email = [...e.email].join(',') e.email = [...e.email].filter(i => i !== '').join(',')
}) })
// 检查路线是否启用了但是没选择目的仓 // 检查路线是否启用了但是没选择目的仓
let errors = 0 let errors = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment