Browse Source

物料添加工序查询

master
shenzhouyu 1 month ago
parent
commit
3615552534
  1. 4
      cclqms-vue/src/views/modules/qc/QcDataAcquisitionDialog.vue
  2. 29
      cclqms-vue/src/views/modules/qc/qcPartAttribute.vue

4
cclqms-vue/src/views/modules/qc/QcDataAcquisitionDialog.vue

@ -2,7 +2,7 @@
<el-dialog <el-dialog
:title="$t('qc.iqcPage.dataCollectEquipmentTitle')" :title="$t('qc.iqcPage.dataCollectEquipmentTitle')"
:visible.sync="innerVisible" :visible.sync="innerVisible"
width="780px"
width="680px"
append-to-body append-to-body
:close-on-click-modal="false" :close-on-click-modal="false"
custom-class="qc-data-acquisition-dialog"> custom-class="qc-data-acquisition-dialog">
@ -17,7 +17,7 @@
:label="$t('qc.iqcPage.equipmentType')" :label="$t('qc.iqcPage.equipmentType')"
header-align="center" header-align="center"
align="left" align="left"
min-width="180"
min-width="120"
show-overflow-tooltip> show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<span class="equipment-type-text">{{ scope.row.equipmentDesc || scope.row.equipmentNo }}</span> <span class="equipment-type-text">{{ scope.row.equipmentDesc || scope.row.equipmentNo }}</span>

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

@ -688,6 +688,13 @@
<el-option :label="$t('qc.table.finalInspection')" value="末件检"></el-option> <el-option :label="$t('qc.table.finalInspection')" value="末件检"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('qc.table.process')">
<el-select v-model="qcSpecFilterOperation" :placeholder="$t('qc.common.selectPlaceholder')"
@change="onQcSpecOperationFilterChange" clearable filterable style="width: 140px">
<el-option :label="$t('qc.common.all')" value=""></el-option>
<el-option v-for="item in qcSpecOperationFilterOptions" :key="item" :label="item" :value="item"></el-option>
</el-select>
</el-form-item>
<el-form-item label=" "> <el-form-item label=" ">
<el-button type="primary" @click="addQcSpecModal()" icon="el-icon-plus">{{ $t('qc.common.add') }}</el-button> <el-button type="primary" @click="addQcSpecModal()" icon="el-icon-plus">{{ $t('qc.common.add') }}</el-button>
<el-button v-if="!authItemImport" type="primary" @click="qcSpecUploadModal()" <el-button v-if="!authItemImport" type="primary" @click="qcSpecUploadModal()"
@ -2508,6 +2515,7 @@ export default {
qcSpecDragSaving: false, qcSpecDragSaving: false,
qcSpecFilterType: '', qcSpecFilterType: '',
qcSpecFilterIpqcMethod: '', qcSpecFilterIpqcMethod: '',
qcSpecFilterOperation: '',
qcSpecCurrentRow: null, qcSpecCurrentRow: null,
editQcSpecBatchVisible: false, editQcSpecBatchVisible: false,
batchQcSpecLoading: false, batchQcSpecLoading: false,
@ -3558,6 +3566,9 @@ export default {
qcSpecFilterIpqcMethod() { qcSpecFilterIpqcMethod() {
this.syncQcSpecTableList() this.syncQcSpecTableList()
}, },
qcSpecFilterOperation() {
this.syncQcSpecTableList()
},
activeTable(val) { activeTable(val) {
if (val === 'qcSpec') { if (val === 'qcSpec') {
this.$nextTick(() => this.initQcSpecSortable()) this.$nextTick(() => this.initQcSpecSortable())
@ -3626,6 +3637,16 @@ export default {
qcSpecAddApplyCanCustomer() { qcSpecAddApplyCanCustomer() {
return this.qcSpecAddApplyCanOperation return this.qcSpecAddApplyCanOperation
}, },
qcSpecOperationFilterOptions() {
const operationSet = new Set()
;(this.qcSpecList || []).forEach((item) => {
const operation = (item.operation || '').trim()
if (operation) {
operationSet.add(operation)
}
})
return [...operationSet].sort((a, b) => a.localeCompare(b, 'zh-CN'))
},
}, },
methods: { methods: {
@ -4273,6 +4294,9 @@ export default {
onQcSpecIpqcMethodFilterChange() { onQcSpecIpqcMethodFilterChange() {
this.resetQcSpecTableSelection() this.resetQcSpecTableSelection()
}, },
onQcSpecOperationFilterChange() {
this.resetQcSpecTableSelection()
},
resetQcSpecTableSelection() { resetQcSpecTableSelection() {
this.qcSpecCurrentRow = null this.qcSpecCurrentRow = null
this.$nextTick(() => { this.$nextTick(() => {
@ -4315,6 +4339,11 @@ export default {
(item) => item.ipqcInspectionMethod === this.qcSpecFilterIpqcMethod (item) => item.ipqcInspectionMethod === this.qcSpecFilterIpqcMethod
) )
} }
if (this.qcSpecFilterOperation) {
list = list.filter(
(item) => (item.operation || '') === this.qcSpecFilterOperation
)
}
this.qcSpecTableList = this.sortQcSpecByRowNo(list) this.qcSpecTableList = this.sortQcSpecByRowNo(list)
this.$nextTick(() => { this.$nextTick(() => {
if (this.activeTable === 'qcSpec') { if (this.activeTable === 'qcSpec') {

Loading…
Cancel
Save