Commit c51da1d8 authored by Marcus's avatar Marcus

入仓选储位无效问题

parent c30a6e70
...@@ -177,22 +177,21 @@ export default { ...@@ -177,22 +177,21 @@ export default {
this.initArea() this.initArea()
}, },
handleSave(){ handleSave(){
this.$emit('input', this.inputValue) this.$nextTick(() => {
this.dialogVisible = false const data = this.inputValue.map(e => {
return {
if (this.isEditing) { ...e,
this.$nextTick(() => { orderItemId: this.orderItemId,
const data = this.inputValue.map(e => { warehouseInId: this.warehouseInId
return { }
...e,
orderItemId: this.orderItemId,
warehouseInId: this.warehouseInId
}
})
updateWarehouseInLocation(data)
}) })
} this.$emit('input', data)
this.dialogVisible = false
if (this.isEditing || this.orderItemId) {
updateWarehouseInLocation(data)
}
})
}, },
handleClose() { handleClose() {
this.dialogVisible = false 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