Commit b2e9b9ec authored by Marcus's avatar Marcus

填单为无牌,入仓后填单数据变成了有牌

parent 2a2d5782
...@@ -487,7 +487,7 @@ export default { ...@@ -487,7 +487,7 @@ export default {
opened(val) { opened(val) {
if (val) { if (val) {
this.form.material = this.warehousing.material this.form.material = this.warehousing.material
this.form.brand = this.warehousing.brand this.form.brand = this.warehousing.brand.toString()
this.handleBrandChange(this.form.brand) this.handleBrandChange(this.form.brand)
} else { } else {
this.$emit('update:visible', false) this.$emit('update:visible', false)
...@@ -605,7 +605,7 @@ export default { ...@@ -605,7 +605,7 @@ export default {
// 首次入仓 // 首次入仓
return orderWarehouseIn({ return orderWarehouseIn({
...this.form, ...this.form,
brandType: this.form.brand ? 1 : 0, brandType: (this.form.brand && this.form.brand !== '0') ? 1 : 0,
orderId: this.warehousing.orderId, orderId: this.warehousing.orderId,
orderItemId: this.warehousing.orderItemId, orderItemId: this.warehousing.orderItemId,
orderNo: this.warehousing.orderNo, orderNo: this.warehousing.orderNo,
......
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