yusheng před 1 rokem
rodič
revize
9834ac0567

+ 6 - 1
src/views/purchasingManage/purchaseOrder/invoice/components/inventoryTable.vue

@@ -752,11 +752,16 @@
           });
       },
       validateTotalCount(row) {
+        let totalCount=Number(row.totalCount)
+        if(row.receiveTotalCount){
+          totalCount+=Number(row.receiveTotalCount)
+        }
         return (rule, value, callback) => {
           if (isNaN(value) || Number(value) <= 0) {
             // this.$message.error('请输入大于0的数');
             callback(new Error('请输入大于0的数字'));
-          } else if ((row.totalCount+(row.receiveTotalCount||0)) > row.orderTotalCount) {
+          } else if (totalCount> row.orderTotalCount) {
+         
             // this.$message.warning('收货数量大于采购总数量');
             callback(new Error('收货数量大于采购总数量'));
           } else {