liyg 2 years ago
parent
commit
7f5465ee90
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/views/RMS/components/addCapacity.vue

+ 4 - 0
src/views/RMS/components/addCapacity.vue

@@ -229,6 +229,9 @@ export default {
       if (vehicleNumber.length == 7) {
       if (vehicleNumber.length == 7) {
         var express = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使场领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1}$/;
         var express = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使场领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1}$/;
         result = express.test(vehicleNumber);
         result = express.test(vehicleNumber);
+      }else if(vehicleNumber.length == 8){
+        var express = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼]{1}[A-HJ-NP-Z]{1}(([A-HJ-NP-Z0-9]{5})|([0-9]{6}|[A-HJ-NP-Z]{1}[0-9]{5}|[0-9]{5}[A-HJ-NP-Z]{1}|[A-HJ-NP-Z]{2}[0-9]{4}))$/;
+        result = express.test(vehicleNumber);
       }
       }
       return result;
       return result;
     },
     },
@@ -244,6 +247,7 @@ export default {
         this.addLoading = false;
         this.addLoading = false;
         return;
         return;
       }
       }
+      return;
       let RmsCapacity = {
       let RmsCapacity = {
         capacityTypeId: this.form1.capacityTypeId,
         capacityTypeId: this.form1.capacityTypeId,
         capacityNumber: this.form1.capacityNumber.toUpperCase(),
         capacityNumber: this.form1.capacityNumber.toUpperCase(),