Browse Source

物料管理添加工序查询

master
shenzhouyu 1 month ago
parent
commit
5b843ee721
  1. 21
      cclqms-vue/src/views/modules/qc/qcPartAttribute.vue

21
cclqms-vue/src/views/modules/qc/qcPartAttribute.vue

@ -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)
}

Loading…
Cancel
Save