| | |
| | | <el-row > |
| | | <el-col :span="12"> |
| | | <el-form-item label="分类" prop="classification"> |
| | | <el-select style="width:100%" v-model="unPassForm.classification" :disabled="type === 'view' || !unPassForm.id" size="small" placeholder="请选择"> |
| | | <el-select style="width:100%" v-model="unPassForm.classification" disabled size="small" placeholder="请选择"> |
| | | <el-option v-for="item in classificationOptions" :key="item.value" :label="item.label" |
| | | :value="item.value"></el-option> |
| | | </el-select> |
| | |
| | | :value="item.value"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row > |
| | | <el-col :span="12"> |
| | | <el-form-item label="问题类型" prop="issueType"> |
| | | <el-select style="width:100%" v-model="unPassForm.issueType" :disabled="type === 'view'" size="small" placeholder="请选择"> |
| | | <el-option v-for="item in issueTypeOptions" :key="item.value" :label="item.label" |
| | | :value="item.value"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row > |
| | |
| | | feedbackUser: '', // 反馈人 |
| | | feedbackTime: '', // 反馈时间 |
| | | classification: '', // 分类 |
| | | issueType:null, |
| | | offGradeAscription: '', // 不合格归属 |
| | | unqualifiedDesc: '', // 不合格情况描述 |
| | | unqualifiedHandlerFiles: [], // 不合格附件URL |
| | |
| | | ], |
| | | materialName: [ |
| | | { required: true, message: '请填写物料名称', trigger: 'blur' } |
| | | ], |
| | | issueType: [ |
| | | { required: true, message: '请选择问题类型', trigger: 'change' } |
| | | ] |
| | | }, |
| | | unPassFilesList: [], // 不合格处理附件数据 |
| | | classificationOptions: [], // 不合格分类下拉框 |
| | | offGradeAscriptionOptions: [], // 不合格归属下拉框 |
| | | handlunPassLoading: false, |
| | | unqualifiedHandlerFiles: [] |
| | | unqualifiedHandlerFiles: [], |
| | | issueTypeOptions:[], |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.getClassificationOptions() // 获取不合格分类下拉框选项 |
| | | this.getOffGradeAscriptionOptions() // 获取不合格归属下拉框选项 |
| | | this.getIssueTypeOptions() // 获取问题分类下拉框选项 |
| | | }, |
| | | // 方法集合 |
| | | methods: { |
| | | getIssueTypeOptions(){ |
| | | // 不合格问题分类 |
| | | this.getDicts("unqualified_issue_type").then((response) => { |
| | | this.issueTypeOptions = this.dictToValue(response.data); |
| | | }); |
| | | }, |
| | | disabledDate(time){ |
| | | return time < new Date().getTime() - 86400000 |
| | | }, |
| | |
| | | this.$emit('resetForm') |
| | | } |
| | | this.handlunPassLoading = false |
| | | }).catch(error => { |
| | | console.error(error) |
| | | this.handlunPassLoading = false |
| | | }) |
| | | } else { |
| | | console.log('error submit!!'); |