let that=this
let dataIsNull = false; // 是否有未填数据
if (this.righttableData) {
this.righttableData.forEach(element => {
element.itemId = this.qualityItemId;
element.instrumentId = this.instrumentId;
element.qualityProductId = this.qualityProductId;
if (!element.resultDate) {
dataIsNull = true;
}
});
if (dataIsNull) {
that.$message({
message: "结果时间必填!!",
type: "warning"
});
return;
}