材料管理
This commit is contained in:
@ -241,20 +241,12 @@ const { queryParams, form, rules } = toRefs(data);
|
||||
|
||||
const teamOpt = ref([]);
|
||||
const foremanOpt = ref([]);
|
||||
const teamList = ref<ProjectTeamForemanResp[]>();
|
||||
/** 查询安全巡检工单列表 */
|
||||
const getList = async () => {
|
||||
loading.value = true;
|
||||
const res = await listSafetyInspection(queryParams.value);
|
||||
safetyInspectionList.value = res.data.list;
|
||||
total.value = res.data.total;
|
||||
// 获取项目班组信息
|
||||
const teamRes = await listProjectTeamForeman(currentProject.value.id);
|
||||
teamList.value = teamRes.data;
|
||||
teamOpt.value = teamList.value.map((team: ProjectTeamForemanResp) => ({
|
||||
label: team.teamName,
|
||||
value: team.id
|
||||
}));
|
||||
|
||||
loading.value = false;
|
||||
};
|
||||
@ -265,14 +257,6 @@ const getDictDataList = async () => {
|
||||
const res1 = await getDictData('tour_type');
|
||||
safety_inspection_violation_type.value = res1.data.values;
|
||||
};
|
||||
const changeForeman = (value: string | number) => {
|
||||
const team = teamList.value.filter((team) => team.id === value)[0];
|
||||
foremanOpt.value = team.foremanList?.map((foreman: foremanQuery) => ({
|
||||
label: foreman.foremanName,
|
||||
value: foreman.foremanId
|
||||
}));
|
||||
form.value.correctorId = '';
|
||||
};
|
||||
|
||||
/** 展开安全巡检工单详情对话框操作 */
|
||||
const currentSafetyInspectionId = ref<string | number>();
|
||||
|
||||
Reference in New Issue
Block a user