|
|
@ -131,13 +131,13 @@ |
|
|
|
this.edit(item) |
|
|
|
} else if (e.content.text == "移除") { |
|
|
|
if (type == 'parent') { |
|
|
|
this.removeParent(item); |
|
|
|
this.removeParent(item,type); |
|
|
|
} else { |
|
|
|
this.remove(item,index,ele) |
|
|
|
this.remove(item,type,index,ele) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
removeParent(item) { |
|
|
|
removeParent(item,type) { |
|
|
|
this.$refs.comMessage.showQuestionMessage("确定移除扫描信息?", |
|
|
|
res => { |
|
|
|
if (res) { |
|
|
@ -148,7 +148,7 @@ |
|
|
|
subItem.handleQty = null; |
|
|
|
}) |
|
|
|
|
|
|
|
this.$emit('updateData') |
|
|
|
this.$emit('updateData',type,item) |
|
|
|
this.$forceUpdate() |
|
|
|
} |
|
|
|
}); |
|
|
@ -156,14 +156,14 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
remove(item,index,ele) { |
|
|
|
remove(item,type,index,ele) { |
|
|
|
this.$refs.comMessage.showQuestionMessage("确定移除扫描信息?", |
|
|
|
res => { |
|
|
|
if (res) { |
|
|
|
item.scaned = false |
|
|
|
item.handleQty = null; |
|
|
|
this.collapseChange() |
|
|
|
this.$emit('updateData',ele,index) |
|
|
|
this.$emit('updateData',type,item,index,ele) |
|
|
|
this.$forceUpdate() |
|
|
|
} |
|
|
|
}); |
|
|
|