Commit 93529e7a authored by zhoutong's avatar zhoutong
parents 3806fd9a db1ed10f
......@@ -177,22 +177,21 @@ export default {
this.initArea()
},
handleSave(){
this.$emit('input', this.inputValue)
this.dialogVisible = false
if (this.isEditing) {
this.$nextTick(() => {
const data = this.inputValue.map(e => {
return {
...e,
orderItemId: this.orderItemId,
warehouseInId: this.warehouseInId
}
})
updateWarehouseInLocation(data)
this.$nextTick(() => {
const data = this.inputValue.map(e => {
return {
...e,
orderItemId: this.orderItemId,
warehouseInId: this.warehouseInId
}
})
}
this.$emit('input', data)
this.dialogVisible = false
if (this.isEditing || this.orderItemId) {
updateWarehouseInLocation(data)
}
})
},
handleClose() {
this.dialogVisible = false
......
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