|
@@ -986,10 +986,15 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
}
|
|
|
- if(this.listAddCont[j].sealNumber == ''){
|
|
|
- this.$message({ type: 'warning', message: '请填写铅封号', duration: 2000 })
|
|
|
+ if(this.listAddCont[j].sealNumber == ''){
|
|
|
+ this.$message({ type: 'warning', message: '铅封号不能为空', duration: 2000 })
|
|
|
return false
|
|
|
}
|
|
|
+ if( !/^\d+$/.test(this.listAddCont[j].sealNumber)){
|
|
|
+ this.$message({ type: 'warning', message: '铅封号格式不对', duration: 2000 })
|
|
|
+ return false
|
|
|
+ }
|
|
|
+
|
|
|
if(this.listAddCont[j].eqName == ''){
|
|
|
this.$message({ type: 'warning', message: '请检查设备名称是否未填写', duration: 2000 })
|
|
|
return false
|