Commit 28a83c90 by zhangxw

注释

1 parent 87f9dbae
...@@ -262,6 +262,7 @@ export default { ...@@ -262,6 +262,7 @@ export default {
} }
}, },
computed: { computed: {
// 按个人渗透率 级联选择框数据处理
productGoodsTypeList() { productGoodsTypeList() {
let index = this.levelData.findIndex(v => v.jobType == this.defaultActiveName) let index = this.levelData.findIndex(v => v.jobType == this.defaultActiveName)
let [list, otherList] = [[], []] let [list, otherList] = [[], []]
...@@ -273,9 +274,11 @@ export default { ...@@ -273,9 +274,11 @@ export default {
list.push(item.productType) list.push(item.productType)
otherList?.push(item.productType) otherList?.push(item.productType)
}) })
// 固定提成与个人渗透率级联选择不可重复
goodsTypeList = this.setGoodsTypeList(list, goodsTypeList, '', otherList) goodsTypeList = this.setGoodsTypeList(list, goodsTypeList, '', otherList)
return goodsTypeList return goodsTypeList
}, },
// 个人渗透率 且条件级联选择框
conditionProductGoodsTypeList() { conditionProductGoodsTypeList() {
let index = this.levelData.findIndex(v => v.jobType == this.defaultActiveName) let index = this.levelData.findIndex(v => v.jobType == this.defaultActiveName)
let list = [] let list = []
...@@ -286,6 +289,7 @@ export default { ...@@ -286,6 +289,7 @@ export default {
goodsTypeList = this.setGoodsTypeList(list, goodsTypeList) goodsTypeList = this.setGoodsTypeList(list, goodsTypeList)
return goodsTypeList return goodsTypeList
}, },
// 售后级联选择框
customerGoodsTypeList() { customerGoodsTypeList() {
let index = this.levelData.findIndex(v => v.jobType == this.defaultActiveName) let index = this.levelData.findIndex(v => v.jobType == this.defaultActiveName)
let list = [] let list = []
...@@ -293,9 +297,11 @@ export default { ...@@ -293,9 +297,11 @@ export default {
this.levelData[index]?.configInfo?.customerList?.forEach(item => { this.levelData[index]?.configInfo?.customerList?.forEach(item => {
list.push(item.productType) list.push(item.productType)
}) })
// 售后所有产品不可重复选择 传参customer
goodsTypeList = this.setGoodsTypeList(list, goodsTypeList, 'customer') goodsTypeList = this.setGoodsTypeList(list, goodsTypeList, 'customer')
return goodsTypeList return goodsTypeList
}, },
// 固定提成级联选择框
fixedGoodsTypeList() { fixedGoodsTypeList() {
let index = this.levelData.findIndex(v => v.jobType == this.defaultActiveName) let index = this.levelData.findIndex(v => v.jobType == this.defaultActiveName)
let list = [] let list = []
...@@ -303,6 +309,7 @@ export default { ...@@ -303,6 +309,7 @@ export default {
this.levelData[index]?.configInfo?.fixedList?.forEach(item => { this.levelData[index]?.configInfo?.fixedList?.forEach(item => {
list.push(item.productType) list.push(item.productType)
}) })
// 固定提成与个人渗透率级联选择不可重复
this.levelData[index]?.configInfo?.campusList?.forEach(item => { this.levelData[index]?.configInfo?.campusList?.forEach(item => {
list.push(item.productType) list.push(item.productType)
}) })
...@@ -341,6 +348,7 @@ export default { ...@@ -341,6 +348,7 @@ export default {
}) })
return goodsTypeList return goodsTypeList
}, },
// 处理级联选择框某一项是否可选中
setGoodsTypeList(list, goodsTypeList, key, otherList) { setGoodsTypeList(list, goodsTypeList, key, otherList) {
let oList = otherList?.flat() || [] let oList = otherList?.flat() || []
list?.forEach(item => { list?.forEach(item => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!