|
|
@ -775,14 +775,12 @@ export default { |
|
|
|
sort: false,// 禁止排序 |
|
|
|
sort: false,// 禁止排序 |
|
|
|
onEnd: evt => { // 结束拖拽 |
|
|
|
onEnd: evt => { // 结束拖拽 |
|
|
|
if(this.judgePosition(evt)){ |
|
|
|
if(this.judgePosition(evt)){ |
|
|
|
console.log(evt) |
|
|
|
|
|
|
|
const getIt = evt.target.textContent |
|
|
|
const getIt = evt.target.textContent |
|
|
|
for(var i=0;i<this.goods.length;i++){ |
|
|
|
for(var i=0;i<this.goods.length;i++){ |
|
|
|
if (this.goods[i].name == getIt){ |
|
|
|
if (this.goods[i].name == getIt){ |
|
|
|
return this.$message.warning('物品栏中已有该物品') |
|
|
|
return this.$message.warning('物品栏中已有该物品') |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// console.log(this.goodsShelfTotalData) |
|
|
|
|
|
|
|
for(let i=0;i<this.popArr.length; i++) { |
|
|
|
for(let i=0;i<this.popArr.length; i++) { |
|
|
|
if(this.popArr[i].name === getIt) { |
|
|
|
if(this.popArr[i].name === getIt) { |
|
|
|
this.$store.commit('system/changeGoods',{push:[this.popArr[i]]}) |
|
|
|
this.$store.commit('system/changeGoods',{push:[this.popArr[i]]}) |
|
|
@ -807,7 +805,6 @@ export default { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.manageVisible = false; |
|
|
|
this.manageVisible = false; |
|
|
|
} |
|
|
|
} |
|
|
|
console.log('what?') |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted(){ |
|
|
|
mounted(){ |
|
|
|
let that = this |
|
|
|
let that = this |
|
|
@ -1062,14 +1059,17 @@ export default { |
|
|
|
// 把确定的数据传输进物品栏 |
|
|
|
// 把确定的数据传输进物品栏 |
|
|
|
goods.map(e=>{ |
|
|
|
goods.map(e=>{ |
|
|
|
clickList.map(el=>{ |
|
|
|
clickList.map(el=>{ |
|
|
|
console.log(el) |
|
|
|
|
|
|
|
if(el===e.id){ |
|
|
|
if(el===e.id){ |
|
|
|
arr.push(e) |
|
|
|
arr.push(e) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.$store.commit('system/changeGoods',{push:arr}) |
|
|
|
this.$store.commit('system/changeGoods',{push:arr}) |
|
|
|
|
|
|
|
this.closePop() |
|
|
|
|
|
|
|
// this.changeShowGoods(false) |
|
|
|
clickList = [] |
|
|
|
clickList = [] |
|
|
|
|
|
|
|
this.importantChecked = [] |
|
|
|
|
|
|
|
this.$message.success('操作成功!') |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
if (this.$store.state.system.id == '33'){ |
|
|
|
if (this.$store.state.system.id == '33'){ |
|
|
|
this.nbm = 33 |
|
|
|
this.nbm = 33 |
|
|
|