|
|
@@ -246,7 +246,7 @@
|
|
|
v-model="dataForm.inspectors"
|
|
|
placeholder="请选择验证人">
|
|
|
<el-option
|
|
|
- v-for="dict in applicantOptions"
|
|
|
+ v-for="dict in inspectorsOptions"
|
|
|
:key="dict.dictValue"
|
|
|
:label="dict.dictLabel"
|
|
|
:value="dict.dictValue"
|
|
|
@@ -489,7 +489,7 @@ import { listFile } from "@/api/production/eoegSaiApproveFile";
|
|
|
import { getHistorylist } from "@/api/ehs/approvedanger";
|
|
|
import { listUserPost } from "@/api/system/user";
|
|
|
import { treeselect, listDept } from "@/api/system/dept";
|
|
|
-import { listSaiInspectors, listSaiExecutors, listStaffmgrByDeptAndTeam, getLoginStaffInfo } from "@/api/plant/staffmgr";
|
|
|
+import { listSaiInspectors, listSaiExecutors, listStaffmgrByDeptAndTeam, getLoginStaffInfo, listEoegSaiInspectors, listEoegSaiExecutors, listEoegSaiAssessors } from "@/api/plant/staffmgr";
|
|
|
import { allFileList, delCommonfile } from "@/api/common/commonfile";
|
|
|
import { categoryList } from "@/api/production/eoegCategory";
|
|
|
import { selectDevice } from "@/api/invoice/device";
|
|
|
@@ -651,6 +651,9 @@ export default {
|
|
|
executeDisabled: false,
|
|
|
// 是否禁用验收
|
|
|
inspectDisabled: false,
|
|
|
+ inspectorsOptions: [],
|
|
|
+ executorsOptions: [],
|
|
|
+ assessorsOptions: [],
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -777,7 +780,48 @@ export default {
|
|
|
this.getLoginStaffInfo();
|
|
|
// 加载SAI类别字典
|
|
|
this.getCategoryList();
|
|
|
+
|
|
|
+ this.getInspectorsOptions();
|
|
|
+ this.getExecutorsOptions();
|
|
|
+ this.getAssessorsOptions();
|
|
|
+ },
|
|
|
+ getInspectorsOptions() {
|
|
|
+ listEoegSaiInspectors().then(response => {
|
|
|
+ let list = response.data;
|
|
|
+ this.inspectorsOptions = [];
|
|
|
+ for (let i = 0; i < list.length; i++) {
|
|
|
+ let option = {
|
|
|
+ dictLabel: list[i].name,
|
|
|
+ dictValue: list[i].userId
|
|
|
+ }
|
|
|
+ this.inspectorsOptions.push(option);
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
+ getExecutorsOptions() {
|
|
|
+ listEoegSaiExecutors().then(response => {
|
|
|
+ let list = response.data;
|
|
|
+ this.executorsOptions = [];
|
|
|
+ for (let i = 0; i < list.length; i++) {
|
|
|
+ let option = {
|
|
|
+ dictLabel: list[i].name,
|
|
|
+ dictValue: list[i].userId
|
|
|
+ }
|
|
|
+ this.executorsOptions.push(option);
|
|
|
+ }
|
|
|
+ });},
|
|
|
+ getAssessorsOptions() {
|
|
|
+ listEoegSaiAssessors().then(response => {
|
|
|
+ let list = response.data;
|
|
|
+ this.assessorsOptions = [];
|
|
|
+ for (let i = 0; i < list.length; i++) {
|
|
|
+ let option = {
|
|
|
+ dictLabel: list[i].name,
|
|
|
+ dictValue: list[i].userId
|
|
|
+ }
|
|
|
+ this.assessorsOptions.push(option);
|
|
|
+ }
|
|
|
+ });},
|
|
|
/** 获取SAI类别列表数据 */
|
|
|
getCategoryList() {
|
|
|
this.saiCategoryOptions = [];
|