Przeglądaj źródła

出库价格模型百万前端判断

LD 5 lat temu
rodzic
commit
de4cd8e6b3

+ 2 - 2
resources/views/customer/project/create.blade.php

@@ -634,7 +634,7 @@
                     if (this.model.operation.isDiscount){
                         let sign = false;
                         this.model.operation.discount_count.forEach((item,i)=>{
-                            if (!item || (i!==0 && item<=this.model.operation.discount_count[i-1])){
+                            if (!item || (i!==0 && Number(item)<=Number(this.model.operation.discount_count[i-1]))){
                                 this.$set(this.errors,"discount_count_"+i,["非法满减值"]);
                                 sign = true;
                             }
@@ -1559,4 +1559,4 @@
             },
         });
     </script>
-@stop
+@stop