//税率
var taxAmount = this.cceedcContractGoodsList.findIndex(item=>{
return isNaN(item.taxAmount)
})
console.log('taxAmount',taxAmount)
if(taxAmount != -1){
return this.$message({
message: `请确保第${taxAmount+1}条税额不能为空`,
type: 'warning'
});
}
NaN与任何值都不相等 所以无法进行普通判断
isNaN方法专门用来判断属性是否为NaN