|
@@ -369,7 +369,7 @@
|
|
|
const errStr = "第" + (i+ 1) +"行化验项数据填写不完整"
|
|
|
errStrList.push(errStr)
|
|
|
}
|
|
|
- let regex =new RegExp(`${disFeatureList[i].type}\\.[1-9]\\d?`)
|
|
|
+ let regex =new RegExp(`${disFeatureList[i].type}\\.(0|[1-9]\\d?)`)
|
|
|
if(disFeatureList[i].code &&!regex.test(disFeatureList[i].code)) { //序号和类型不匹配
|
|
|
codeErrorNum++
|
|
|
disFeatureList[i].codeError = "序号和类型不匹配"
|