diff --git a/src/views/ManufacturingCenter/ProcessAdjustQuery/index.vue b/src/views/ManufacturingCenter/ProcessAdjustQuery/index.vue index 9c87f9a4..95da1adb 100644 --- a/src/views/ManufacturingCenter/ProcessAdjustQuery/index.vue +++ b/src/views/ManufacturingCenter/ProcessAdjustQuery/index.vue @@ -218,18 +218,24 @@ export default { }, tableRowClassName2({ row }) { for (let i = 0; i < this.tableData1.length; i++) { + row.工艺编号 === null ? row.工艺编号 = 0 : row.工艺编号 if (this.tableData1[i].工序流水号 === row.工序流水号 && this.tableData1[i].工艺编号 !== null) { - if (this.tableData1[i].工艺编号 !== row.工艺编号 || this.tableData1[i].工艺要求 !== row.工艺要求 || this.tableData1[i].工艺难度等级 !== row.工艺难度等级 || this.tableData1[i].工序顺序 !== row.工序顺序) { + if (this.tableData1[i].工艺编号 !== row.工艺编号 || this.tableData1[i].工艺要求 !== row.工艺要求 || this.tableData1[i].工艺难度等级 !== row.工艺难度等级) { return 'change' + } else { + return '' } } } }, tableRowClassName1({ row }) { for (let i = 0; i < this.tableData2.length; i++) { + row.工艺编号 === null ? row.工艺编号 = 0 : row.工艺编号 if (this.tableData2[i].工序流水号 === row.工序流水号 && this.tableData2[i].工艺编号 !== null) { - if (this.tableData2[i].工艺编号 !== row.工艺编号 || this.tableData2[i].工艺要求 !== row.工艺要求 || this.tableData2[i].工艺难度等级 !== row.工艺难度等级 || this.tableData2[i].工序顺序 !== row.工序顺序) { + if (this.tableData2[i].工艺编号 !== row.工艺编号 || this.tableData2[i].工艺要求 !== row.工艺要求 || this.tableData2[i].工艺难度等级 !== row.工艺难度等级) { return 'change' + } else { + return '' } } }