| | |
| | | required: null, |
| | | rpId: null, |
| | | name: null, |
| | | unit: null, |
| | | unit: 'mm', |
| | | userName: null, |
| | | testValue: '', |
| | | testValueList: [], |
| | |
| | | let isTrue = true |
| | | for(var i=0;i<row.testValueList.length;i++){ |
| | | let val = row.testValueList[i] |
| | | let reg = /^[0-9]*[1-9][0-9]*$/ |
| | | let reg = /(^-?[0-9]{1,6}$)|(^-?[0-9]{1,6}[\.]{1}[0-9]{1,3}$)/ |
| | | if(!reg.test(val) && !['是','否'].includes(val)){ |
| | | this.$message.error("请输入数字或选择是否") |
| | | row.testValueList[i] = null |
| | |
| | | required: null, |
| | | rpId: null, |
| | | name: null, |
| | | unit: null, |
| | | unit: 'mm', |
| | | userName: null, |
| | | testValue: null, |
| | | testValueList: [], |