285
This commit is contained in:
@@ -305,7 +305,9 @@
|
||||
|
||||
onConfirm () {
|
||||
this.isShow = false
|
||||
this.form.goodsList = this.chooseList.map(v => {
|
||||
let list = this.chooseList.filter(v => {
|
||||
return this.form.goodsList.map(e => e.goodsId).indexOf(v.id) === -1
|
||||
}).map(v => {
|
||||
return {
|
||||
goods: {
|
||||
...v
|
||||
@@ -317,6 +319,11 @@
|
||||
status: v.status
|
||||
}
|
||||
})
|
||||
|
||||
this.form.goodsList = [
|
||||
...this.form.goodsList ,
|
||||
...list
|
||||
]
|
||||
},
|
||||
|
||||
getInfo (id) {
|
||||
|
||||
Reference in New Issue
Block a user