|
|
|
@ -192,7 +192,6 @@ |
|
|
|
return this.$msg('您未选择物资') |
|
|
|
} |
|
|
|
let is_empty = false; |
|
|
|
console.log("总的", this.contents) |
|
|
|
let list = this.contents.map(item => { |
|
|
|
if(!item.delivery_number.value){ |
|
|
|
is_empty = true; |
|
|
|
@ -249,11 +248,6 @@ |
|
|
|
} |
|
|
|
}); |
|
|
|
if(this.isStock) { |
|
|
|
let _api = this.API.API_CANTEEN_WAREHOUSEOUT; |
|
|
|
if(this.enter_type == 1){ |
|
|
|
_api = this.API.API_EDITOUTORDER; |
|
|
|
} |
|
|
|
let state = ['待确认', '已确认'][_t]; // 传入状态 |
|
|
|
if(is_empty){ |
|
|
|
uni.showModal({ |
|
|
|
title: '温馨提示', |
|
|
|
@ -263,10 +257,17 @@ |
|
|
|
}) |
|
|
|
return; |
|
|
|
} |
|
|
|
this.$http(_api, { |
|
|
|
let state = ['待确认', '已确认'][_t]; // 传入状态 |
|
|
|
let _api = this.API.API_CANTEEN_WAREHOUSEOUT; |
|
|
|
let _data = { |
|
|
|
data: list, |
|
|
|
state: state |
|
|
|
}).then(res => { |
|
|
|
} |
|
|
|
if(this.enter_type == 1){ |
|
|
|
_api = this.API.API_EDITOUTORDER; |
|
|
|
_data.o_sn = this.o_sn; |
|
|
|
} |
|
|
|
this.$http(_api, _data).then(res => { |
|
|
|
this.$msg('操作成功').then(() => this.$toBack()); |
|
|
|
}) |
|
|
|
} |
|
|
|
|