Commit b00e3e11 by LJM

bug

parent 634ed398
Showing with 4 additions and 3 deletions
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
message: "请勾选数据进行操作", message: "请勾选数据进行操作",
type: 'warning' type: 'warning'
}); });
return return false;
} }
let stock_in_ids = []; let stock_in_ids = [];
...@@ -147,7 +147,8 @@ export default { ...@@ -147,7 +147,8 @@ export default {
}) })
let source = source_arr.every(ele => ele === 2) let source = source_arr.every(ele => ele === 2)
if (source) { if (source) {
let status = status_arr.every(ele => ele === 2) //待入库
let status = status_arr.every(ele => ele === 1)
if (status) { if (status) {
this.$http('POST', "/api/purchase/cancelSupDelivery", {stock_in_ids: stock_in_ids.join(',')}).then(res => { this.$http('POST', "/api/purchase/cancelSupDelivery", {stock_in_ids: stock_in_ids.join(',')}).then(res => {
if (res.code == 0) { if (res.code == 0) {
...@@ -168,7 +169,7 @@ export default { ...@@ -168,7 +169,7 @@ export default {
}) })
} else { } else {
this.$message({ this.$message({
message: '请选择作废待入库状态', message: '请选择待入库状态',
type: 'warning' type: 'warning'
}); });
} }
......
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 sign in to comment