+ 已确认单据信息无误,确定审核该 {{ IQCSelections.length }} 条记录
+
+ 是否触发QMS的上机检验任务单
+
+
+ 取消
+ 确定
+
+
+
@@ -855,6 +864,10 @@
end = this.tableData.length
}
return this.tableData.slice(start,end)
+ },
+ needTriggerMachineInspectOption () {
+ const types = this.appearanceInspectTypes || []
+ return (this.IQCSelections || []).some(r => types.indexOf(r.submissionType) !== -1)
}
},
watch: {
@@ -912,7 +925,12 @@
isQualifiedChinese: '',
submitList: [],
updateBy: this.$store.state.user.name,
+ triggerMachineInspect: false,
},
+ submitConfirmFlag: false,
+ triggerMachineInspect: false,
+ iqcSubmissionTypeOptions: ['材料进货检验', '刀模进货检验-外观', '刀模进货检验-上机', '刀模维修检验-外观', '刀模维修检验-上机'],
+ appearanceInspectTypes: ['刀模进货检验-外观', '刀模维修检验-外观'],
tagNo:'',
searchData: {
site: '',
@@ -1319,7 +1337,7 @@
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 100,
+ columnWidth: 160,
},
{
userId: this.$store.state.user.name,
@@ -3072,28 +3090,34 @@
// })
// return false
// }
- this.$confirm(`已确认单据信息无误,确定审核该 ` + this.IQCSelections.length + ` 条记录`, '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- this.submitData.submitList = this.IQCSelections
- saveIQCSubmitResult(this.submitData).then(({data}) => {
- if (data && data.code === 0) {
- this.getDataList()
- this.IQCSelections = []
- this.$message({
- message: '操作成功',
- type: 'success',
- duration: 1500,
- onClose: () => {}
- })
- } else {
- this.$alert(data.msg, '错误', {
- confirmButtonText: '确定'
- })
- }
- })
+ this.triggerMachineInspect = false
+ this.submitConfirmFlag = true
+ },
+
+ confirmSubmitResult () {
+ this.submitConfirmFlag = false
+ this.doSaveIQCSubmitResult()
+ },
+
+ doSaveIQCSubmitResult () {
+ this.submitData.submitList = this.IQCSelections
+ this.submitData.triggerMachineInspect = this.needTriggerMachineInspectOption ? this.triggerMachineInspect : false
+ saveIQCSubmitResult(this.submitData).then(({data}) => {
+ if (data && data.code === 0) {
+ this.getDataList()
+ this.IQCSelections = []
+ this.triggerMachineInspect = false
+ this.$message({
+ message: '操作成功',
+ type: 'success',
+ duration: 1500,
+ onClose: () => {}
+ })
+ } else {
+ this.$alert(data.msg, '错误', {
+ confirmButtonText: '确定'
+ })
+ }
})
},
diff --git a/src/views/modules/qc/qcPartAttribute.vue b/src/views/modules/qc/qcPartAttribute.vue
index 32ad081..59bf7e6 100644
--- a/src/views/modules/qc/qcPartAttribute.vue
+++ b/src/views/modules/qc/qcPartAttribute.vue
@@ -280,23 +280,23 @@
prop="ipqcInspectionMethod"
header-align="center"
align="center"
- min-width="140"
- label="IPQC检验方式">
+ min-width="180"
+ label="检验方式">