|
@@ -708,7 +708,7 @@ export default {
|
|
|
}
|
|
|
if (params.type == 'OTHER_OUT' || params.type == 'BORROW_OUT') {
|
|
|
const isStockSufficient = params.product_list.map((el) => {
|
|
|
- if (el.out_num < el.usable_stock) {
|
|
|
+ if (el.out_num > el.usable_stock) {
|
|
|
this.$message.error("该商品库存不足!");
|
|
|
return false
|
|
|
}
|
|
@@ -777,7 +777,7 @@ export default {
|
|
|
}
|
|
|
if (params.type == 'OTHER_OUT' || params.type == 'BORROW_OUT') {
|
|
|
const isStockSufficient = params.product_list.map((el) => {
|
|
|
- if (el.out_num < el.usable_stock) {
|
|
|
+ if (el.out_num > el.usable_stock) {
|
|
|
this.$message.error("该商品库存不足!");
|
|
|
return false
|
|
|
}
|