Commit dddf7231 authored by Marcus's avatar Marcus

后台-入仓-删减入仓货物无效

http://zentao.jdshangmen.com/bug-view-408.html
parent e45f4092
...@@ -436,6 +436,8 @@ export default { ...@@ -436,6 +436,8 @@ export default {
this.form.orderWarehouseInItemDoList = [] this.form.orderWarehouseInItemDoList = []
this.form1.orderWarehouseInItemDoList = [] this.form1.orderWarehouseInItemDoList = []
this.activeName = 'first' this.activeName = 'first'
this.handleAdd()
this.handleAdd(1)
} }
} }
}, },
...@@ -554,7 +556,7 @@ export default { ...@@ -554,7 +556,7 @@ export default {
handleDelete(val) { handleDelete(val) {
(val === 1 ? this.form1 : this.form).orderWarehouseInItemDoList.pop() (val === 1 ? this.form1 : this.form).orderWarehouseInItemDoList.pop()
}, },
handleAdd(val) { handleAdd(val = 0) {
let cartonsNum = ''; let cartonsNum = '';
if (val !== 1) { if (val !== 1) {
let hasCartonsNum = 0 let hasCartonsNum = 0
...@@ -563,7 +565,8 @@ export default { ...@@ -563,7 +565,8 @@ export default {
}) })
cartonsNum = this.warehousing.num - hasCartonsNum cartonsNum = this.warehousing.num - hasCartonsNum
} }
(val === 1 ? this.form1 : this.form).orderWarehouseInItemDoList.push({ const form = val === 1 ? this.form1 : this.form
form.orderWarehouseInItemDoList.push({
"boxGauge1": "", "boxGauge1": "",
"boxGauge2": "", "boxGauge2": "",
"boxGauge3": "", "boxGauge3": "",
......
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