diff --git a/cclqms-vue/src/i18n/locales/qc.cn.js b/cclqms-vue/src/i18n/locales/qc.cn.js
index ffc4ca1..16f70f8 100644
--- a/cclqms-vue/src/i18n/locales/qc.cn.js
+++ b/cclqms-vue/src/i18n/locales/qc.cn.js
@@ -1112,6 +1112,7 @@ module.exports = {
open: '打开'
},
partAttributePage: {
+ colSite: '工厂编号',
dataSync: '数据同步',
addDieMold: '新增刀模',
dialogDieMoldAdd: '新增刀模',
diff --git a/cclqms-vue/src/i18n/locales/qc.en.js b/cclqms-vue/src/i18n/locales/qc.en.js
index b539d2b..df4dc1d 100644
--- a/cclqms-vue/src/i18n/locales/qc.en.js
+++ b/cclqms-vue/src/i18n/locales/qc.en.js
@@ -1113,6 +1113,7 @@ module.exports = {
open: 'Open'
},
partAttributePage: {
+ colSite: 'Site',
dataSync: 'Data sync',
addDieMold: 'Add die mold',
dialogDieMoldAdd: 'Add die mold',
diff --git a/cclqms-vue/src/views/modules/qc/EdsBatchEntryDialog.vue b/cclqms-vue/src/views/modules/qc/EdsBatchEntryDialog.vue
index 9a25e25..3f444fa 100644
--- a/cclqms-vue/src/views/modules/qc/EdsBatchEntryDialog.vue
+++ b/cclqms-vue/src/views/modules/qc/EdsBatchEntryDialog.vue
@@ -41,7 +41,8 @@
ref="scanInInput"
v-model="scanInRollNo"
clearable
- :disabled="readonly || tagChecking"
+ :disabled="readonly"
+ :readonly="tagChecking"
:placeholder="$t('qc.iqcPage.edsTagScanInPlaceholder')"
@keyup.enter.native="onScanInEnter" />
@@ -51,7 +52,8 @@
ref="removeInput"
v-model="removeRollNo"
clearable
- :disabled="readonly || tagChecking"
+ :disabled="readonly"
+ :readonly="tagChecking"
:placeholder="$t('qc.iqcPage.edsTagRemovePlaceholder')"
@keyup.enter.native="onRemoveEnter" />
@@ -662,16 +664,11 @@ export default {
if (this.hasRollNoInGroups(serialNo)) {
this.$message.warning(this.$t('qc.iqcPage.edsTagAlreadyExists', { rollNo: serialNo }))
this.scanInRollNo = ''
- this.$nextTick(() => this.focusScanInInput())
return
}
this.tagChecking = true
this.validateEdsRollNo(serialNo).then((result) => {
- if (!result) {
- this.scanInRollNo = ''
- this.$nextTick(() => this.focusScanInInput())
- return
- }
+ if (!result) return
this.itemGroups.forEach((group) => {
const row = this.createEmptyRow(this.nextNumForGroup(group))
row.itemNo = group.itemNo
@@ -680,10 +677,9 @@ export default {
row.isQualified = 'Y'
group.rows.push(row)
})
- this.scanInRollNo = ''
this.$message.success(this.$t('qc.iqcPage.edsTagScanInSuccess', { rollNo: serialNo }))
- this.$nextTick(() => this.focusScanInInput())
}).finally(() => {
+ this.scanInRollNo = ''
this.tagChecking = false
})
},
diff --git a/cclqms-vue/src/views/modules/qc/qcPartAttribute.vue b/cclqms-vue/src/views/modules/qc/qcPartAttribute.vue
index d4c501f..57df138 100644
--- a/cclqms-vue/src/views/modules/qc/qcPartAttribute.vue
+++ b/cclqms-vue/src/views/modules/qc/qcPartAttribute.vue
@@ -574,13 +574,11 @@
-
-
-
-
+
- {{scope.row[item.columnProp]}}
+ {{ formatIpqcMethod(scope.row.ipqcInspectionMethod) }}
{{scope.row[item.columnProp]}}
@@ -705,10 +703,8 @@
-
-
-
-
+
@@ -773,10 +769,8 @@
-
-
-
-
+
{{ formatQcValueType(scope.row) }}
@@ -1519,12 +1513,10 @@
-
-
-
-
+
- {{ scope.row.ipqcInspectionMethod }}
+ {{ formatIpqcMethod(scope.row.ipqcInspectionMethod) }}
-
-
-
-
+
@@ -1953,10 +1943,8 @@
-
-
-
-
+
@@ -2009,10 +1997,8 @@
-
-
-
-
+
@@ -4522,6 +4508,14 @@ export default {
},
computed: {
+ ipqcMethodOptions() {
+ return [
+ { value: '首件检', label: this.$t('qc.table.firstInspection') },
+ { value: '自检', label: this.$t('qc.table.selfInspection') },
+ { value: '巡检', label: this.$t('qc.table.patrolInspection') },
+ { value: '末件检', label: this.$t('qc.table.finalInspection') },
+ ]
+ },
siteList() {
const seen = {}
const list = []
@@ -4668,8 +4662,15 @@ export default {
formatQcValueType (row) {
return formatQcValueTypeLabel(row, this.$t.bind(this))
},
+ formatIpqcMethod(value) {
+ const method = this.ipqcMethodOptions.find(option => option.value === value)
+ return method ? method.label : value
+ },
qcSpecColumnText(row, item) {
if (!row || !item) return ''
+ if (item.columnProp === 'ipqcInspectionMethod') {
+ return this.formatIpqcMethod(row.ipqcInspectionMethod)
+ }
if (item.columnProp === 'resourceID') {
return row.resourceDesc || row.resourceID
}
@@ -4691,6 +4692,7 @@ export default {
const tm = (k) => this.$t('qc.method.' + k)
const tpl = (k) => this.$t('qc.template.' + k)
const mainMap = {
+ site: () => t('colSite'),
buDesc: () => 'BU',
partNo: () => tt('materialCode'),
sku: () => 'SKU',