Commit 92255049 authored by zs嵩's avatar zs嵩

客户新增/编辑,新增潜在客户,主营类别选择模式优化

parent c72ed342
......@@ -902,7 +902,12 @@ export default {
let typeIds = this.productList.filter((item) => val.indexOf(item.id) > -1).map((item) => item.typeId)
typeIds = [...new Set(typeIds)]
console.log(typeIds)
this.form.productTypes = typeIds
new Set(this.form.productTypes).has()
typeIds.forEach((item) => {
if (this.form.productTypes.indexOf(item) < 0) {
this.form.productTypes.push(item)
}
})
},
deleteBankData(index) {
this.form.customerBanks.splice(index, 1)
......
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