|
|
|
@ -4265,10 +4265,27 @@ export default { |
|
|
|
}).then(({ data }) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.qcSpecList = data.rows || [] |
|
|
|
this.validateQcSpecFilters() |
|
|
|
this.syncQcSpecCurrentRow() |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
resetQcSpecFilters() { |
|
|
|
this.qcSpecFilterType = '' |
|
|
|
this.qcSpecFilterIpqcMethod = '' |
|
|
|
this.qcSpecFilterOperation = '' |
|
|
|
this.resetQcSpecTableSelection() |
|
|
|
}, |
|
|
|
validateQcSpecFilters() { |
|
|
|
if (this.qcSpecFilterOperation) { |
|
|
|
const operationExists = (this.qcSpecList || []).some( |
|
|
|
(item) => (item.operation || '') === this.qcSpecFilterOperation |
|
|
|
) |
|
|
|
if (!operationExists) { |
|
|
|
this.qcSpecFilterOperation = '' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
syncQcSpecCurrentRow() { |
|
|
|
if (!this.qcSpecCurrentRow) return |
|
|
|
const currentItemNo = this.qcSpecCurrentRow.itemNo |
|
|
|
@ -6419,7 +6436,11 @@ export default { |
|
|
|
changeCurrentRow(row, oldRow) { |
|
|
|
// 判断是否是获取焦点的事件 |
|
|
|
if (row) { |
|
|
|
const partChanged = !oldRow || row.partNo !== oldRow.partNo || row.site !== oldRow.site |
|
|
|
this.partCurrentRow = JSON.parse(JSON.stringify(row)) |
|
|
|
if (partChanged) { |
|
|
|
this.resetQcSpecFilters() |
|
|
|
} |
|
|
|
//刷新当前页表(主表行点击时不调用 searchPartAttributeDetails) |
|
|
|
this.refreshCurrentTabTable(true) |
|
|
|
} |
|
|
|
|