|
|
|
@ -188,17 +188,11 @@ |
|
|
|
}, |
|
|
|
// 保存,出库 |
|
|
|
save(_t){ |
|
|
|
console.log("dddddd", this.contents) |
|
|
|
// return |
|
|
|
if(this.contents.length <= 0) { |
|
|
|
return this.$msg('您未选择物资') |
|
|
|
} |
|
|
|
|
|
|
|
let list = this.contents.map(item => { |
|
|
|
if(item.delivery_number.value == '') { |
|
|
|
return this.$msg('请输入出库数量!') |
|
|
|
} |
|
|
|
|
|
|
|
if(Number(item.delivery_number.value) > item.stock) { |
|
|
|
console.log('循环几次') |
|
|
|
uni.showModal({ |
|
|
|
@ -221,7 +215,7 @@ |
|
|
|
m_unit_id: item.m_unit_id || 0 |
|
|
|
} |
|
|
|
}else { |
|
|
|
item.delivery_number.value = '' |
|
|
|
item.delivery_number.value = 1 |
|
|
|
this.isStock = true |
|
|
|
return { |
|
|
|
m_id: item.material_id, |
|
|
|
@ -251,8 +245,6 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
console.log(this.isStock) |
|
|
|
if(this.isStock) { |
|
|
|
let _api = this.API.API_CANTEEN_WAREHOUSEOUT; |
|
|
|
if(this.enter_type == 1){ |
|
|
|
|