From bb0035fa202e5fcd9c1b563fedb944d6af841d42 Mon Sep 17 00:00:00 2001 From: rui_li <877258667@qq.com> Date: Thu, 14 Jul 2022 11:24:27 +0800 Subject: [PATCH] =?UTF-8?q?2022-07-14=20=E7=BB=93=E6=9D=9F=E5=8D=B7?= =?UTF-8?q?=E5=92=8C=E4=BA=A7=E9=87=8F=E6=8A=A5=E5=91=8A=20=E5=85=81?= =?UTF-8?q?=E8=AE=B8=E6=8A=A50=E6=95=B0=E7=BB=93=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/yieldReport/com_finish_part_roll.vue | 4 ++-- src/views/modules/yieldReport/com_finish_roll.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/modules/yieldReport/com_finish_part_roll.vue b/src/views/modules/yieldReport/com_finish_part_roll.vue index 8222abb..6ff4c56 100644 --- a/src/views/modules/yieldReport/com_finish_part_roll.vue +++ b/src/views/modules/yieldReport/com_finish_part_roll.vue @@ -788,8 +788,8 @@ export default { this.pageData.approvedQty = 0;//重新赋值 return false; } - if(approvedQty <= 0){ - this.$message.error('良品总数量必须大于0!'); + if(approvedQty < 0){ + this.$message.error('良品总数量必须大于等于0!'); this.pageData.approvedQty = 0;//重新赋值 return false; } diff --git a/src/views/modules/yieldReport/com_finish_roll.vue b/src/views/modules/yieldReport/com_finish_roll.vue index 7b1fc96..926b951 100644 --- a/src/views/modules/yieldReport/com_finish_roll.vue +++ b/src/views/modules/yieldReport/com_finish_roll.vue @@ -809,8 +809,8 @@ export default { this.pageData.approvedQty = 0;//重新赋值 return false; } - if(approvedQty <= 0){ - this.$message.error('良品总数量必须大于0!'); + if(approvedQty < 0){ + this.$message.error('良品总数量必须大于等于0!'); this.pageData.approvedQty = 0;//重新赋值 return false; }