Commit 3b15087c authored by dragondean@qq.com's avatar dragondean@qq.com

优化路线价格特需价格回显

parent d5b81734
...@@ -272,7 +272,11 @@ export default { ...@@ -272,7 +272,11 @@ export default {
if (!val) return if (!val) return
// 特殊需求回显 // 特殊需求回显
if (val.specialList) { if (val.specialList) {
this.specialProducts = val.specialList val.specialList.forEach(item => {
let index = this.specialProducts.findIndex(special => special.specialDictType == item.specialDictType)
if(index > -1)this.specialProducts[index] = item
})
// this.specialProducts = val.specialList
/* let keyed = arrryToKeyedObjectBy(val.specialList, 'specialDictType') /* let keyed = arrryToKeyedObjectBy(val.specialList, 'specialDictType')
this.specialProducts.map((item, index) => { this.specialProducts.map((item, index) => {
if (keyed[item.specialDictType]) { if (keyed[item.specialDictType]) {
......
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