材料管理

This commit is contained in:
Teo
2025-08-02 16:45:51 +08:00
parent 86afe6a30d
commit 7154bbbbcc
14 changed files with 106 additions and 106 deletions

View File

@ -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>();