Commit d6d2f60d by LJM

bug

parent 220be46c
......@@ -225,7 +225,7 @@ export default {
switch (type) {
case 1:
// 提交审核:校验待提审状态
const invalidVerify = this.multipleSelection.filter(item => item.consignment_status !== '0');
const invalidVerify = this.multipleSelection.filter(item => item.consignment_status != 0);
if (invalidVerify.length) {
this.$message.warning('只能选择待提审状态的数据');
return;
......@@ -239,7 +239,7 @@ export default {
break;
case 2:
// 作废:校验待提审或进行中(未发货未入库)状态
const invalidCancel = this.multipleSelection.filter(item => !(['0', '2'].includes(item.consignment_status) && item.deliver_status === '0' && item.stock_in_status === '0'));
const invalidCancel = this.multipleSelection.filter(item => !([0, 2].includes(item.consignment_status) && item.deliver_status == 0 && item.stock_in_status == 0));
if (invalidCancel.length) {
this.$message.warning('只能作废待提审或进行中(未发货未入库)的数据');
return;
......@@ -249,7 +249,7 @@ export default {
break;
case 3:
// 关单:校验进行中且部分发货/全部发货,部分入库状态
const invalidClose = this.multipleSelection.filter(item => !(item.consignment_status === '2' && ['1', '2'].includes(item.deliver_status) && item.stock_in_status === '1'));
const invalidClose = this.multipleSelection.filter(item => !(item.consignment_status == '2' && [1, 2].includes(item.deliver_status) && item.stock_in_status == 1));
if (invalidClose.length) {
this.$message.warning('只能关闭进行中且已部分/全部发货、部分入库的数据');
return;
......
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