|
@@ -206,7 +206,7 @@ const keyWordsValidator = (rule: any, value: any, callback: any) => {
|
|
const regsMap: { [x: string]: RegExp[] } = {
|
|
const regsMap: { [x: string]: RegExp[] } = {
|
|
// flight: [/^[A-Za-z0-9][A-Za-z][0-9]{3,4}$/, /^[0-9]{3,4}$/],
|
|
// flight: [/^[A-Za-z0-9][A-Za-z][0-9]{3,4}$/, /^[0-9]{3,4}$/],
|
|
flight: [/^[0-9]{1,4}$/],
|
|
flight: [/^[0-9]{1,4}$/],
|
|
- waybill: [/^[0-9]{8}$/, /^[0-9]{3}\-[0-9]{8}$/],
|
|
|
|
|
|
+ waybill: [/^[0-9]{8}$/, /^[0-9]{11}$/, /^[0-9]{3}\-[0-9]{8}$/],
|
|
freight: [/^[0-9]{5}$/, /^[0-9]{3}\-[0-9]{8}\-[0-9]{5}$/],
|
|
freight: [/^[0-9]{5}$/, /^[0-9]{3}\-[0-9]{8}\-[0-9]{5}$/],
|
|
}
|
|
}
|
|
const regs = regsMap[props.name] ?? []
|
|
const regs = regsMap[props.name] ?? []
|