| | |
| | | </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 > |
| | | <el-col :span="24"> |
| | | <el-form-item label="不合格情况描述" prop="unqualifiedDesc"> |
| | | <el-input style="width:100%" clearable type="textarea" v-model="unPassForm.unqualifiedDesc" :disabled="type === 'view'" |
| | |
| | | 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 |
| | | }, |