|
@@ -71,7 +71,19 @@
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="SAI类别" :span="2">
|
|
|
<el-form-item prop="category">
|
|
|
- <el-input v-model="dataForm.category" placeholder="请输入SAI类别" :disabled="applyDisabled"/>
|
|
|
+ <el-select
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ v-model="dataForm.category"
|
|
|
+ placeholder="请选择SAI类别"
|
|
|
+ :disabled="applyDisabled">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in saiCategoryOptions"
|
|
|
+ :key="dict.dictValue"
|
|
|
+ :label="dict.dictLabel"
|
|
|
+ :value="dict.dictValue"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="附件" :span="3">
|
|
@@ -483,6 +495,7 @@ import { listUserPost } from "@/api/system/user";
|
|
|
import { treeselect, listDept } from "@/api/system/dept";
|
|
|
import { listSaiInspectors, listSaiExecutors, listStaffmgrByDeptAndTeam, getLoginStaffInfo } from "@/api/plant/staffmgr";
|
|
|
import { allFileList, delCommonfile } from "@/api/common/commonfile";
|
|
|
+import { categoryList } from "@/api/production/category";
|
|
|
|
|
|
export default {
|
|
|
name: "sai-apply-detail",
|
|
@@ -524,6 +537,8 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
return {
|
|
|
+ // SAI类别列表
|
|
|
+ saiCategoryOptions: [],
|
|
|
// 当前登录员工
|
|
|
loginStaffInfo: {},
|
|
|
//图片集合 打开关闭按钮 等等
|
|
@@ -755,6 +770,9 @@ export default {
|
|
|
this.unsafeChoice = '2';
|
|
|
this.dataForm.unsafeAction = this.dataForm.unsafeAction.toString();
|
|
|
}
|
|
|
+ if (this.dataForm.category != null && this.dataForm.category != "") {
|
|
|
+ this.dataForm.category = Number(this.dataForm.category);
|
|
|
+ }
|
|
|
if (this.dataForm.veResult == null) {
|
|
|
this.dataForm.veResult = '1';
|
|
|
}
|
|
@@ -842,6 +860,22 @@ export default {
|
|
|
});
|
|
|
// 加载当前登录员工信息
|
|
|
this.getLoginStaffInfo();
|
|
|
+ // 加载SAI类别字典
|
|
|
+ this.getCategoryList();
|
|
|
+ },
|
|
|
+ /** 获取SAI类别列表数据 */
|
|
|
+ getCategoryList() {
|
|
|
+ categoryList().then(response => {
|
|
|
+ let data = response.data;
|
|
|
+ for (let i = 0; i < data.length; i++) {
|
|
|
+ if (data[i].saiCategoryName != null && data[i].saiCategoryName != "") {
|
|
|
+ this.saiCategoryOptions.push({
|
|
|
+ dictLabel: data[i].saiCategoryName,
|
|
|
+ dictValue: data[i].saiCategoryId
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
/** 加载当前登录员工信息 */
|
|
|
getLoginStaffInfo() {
|
|
@@ -1101,6 +1135,7 @@ export default {
|
|
|
// }
|
|
|
// }
|
|
|
// });
|
|
|
+ this.applicantDeptOptions = [];
|
|
|
this.applicantDeptOptions.push({ dictLabel: "CBP/C", dictValue: '10' });
|
|
|
this.applicantDeptOptions.push({ dictLabel: "CTA/B", dictValue: '12' });
|
|
|
this.applicantDeptOptions.push({ dictLabel: "CTM/B", dictValue: '14' });
|