|
@@ -2557,7 +2557,11 @@ export default {
|
|
for (var j = 0; j < this.listAddCont.length; j++) {
|
|
for (var j = 0; j < this.listAddCont.length; j++) {
|
|
console.log(this.listAddCont[j].amount)
|
|
console.log(this.listAddCont[j].amount)
|
|
if(this.listAddCont[j].sealNumber == ''){
|
|
if(this.listAddCont[j].sealNumber == ''){
|
|
- this.$message({ type: 'warning', message: '请填写铅封号', duration: 2000 })
|
|
|
|
|
|
+ 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
|
|
return false
|
|
}
|
|
}
|
|
if (this.listAddCont[j].amount == null || this.listAddCont[j].amount === '') {
|
|
if (this.listAddCont[j].amount == null || this.listAddCont[j].amount === '') {
|