This commit is contained in:
BianLzhaoMin 2025-12-24 18:14:20 +08:00
parent adc33f74f5
commit 5298bff988
1 changed files with 10 additions and 24 deletions

View File

@ -12,7 +12,7 @@
ref="formRef"
:model="formData"
:rules="rules"
label-width="140"
label-width="160"
size="large"
:disabled="isDetail"
>
@ -87,22 +87,6 @@
</el-row>
<el-row :gutter="24">
<el-col :span="12">
<el-form-item label="风险等级" prop="riskLevel">
<el-select
v-model="formData.riskLevel"
placeholder="请选择风险等级"
clearable
>
<el-option
v-for="item in riskLevelOptions"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="类别" prop="planCategoryId">
<el-select
@ -137,7 +121,7 @@
:key="item.value"
:label="item.label"
:value="item.value"
v-for="item in riskLevelOptions"
v-for="item in workLoadCategoryOptions"
/>
</el-select>
</el-form-item>
@ -234,7 +218,7 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="计划投入管理人员车辆数" prop="planCarNum">
<el-form-item label="计划投入管理车辆数" prop="planCarNum">
<el-input
clearable
placeholder="请输入车辆数量"
@ -302,7 +286,7 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="实际工作天数" prop="actualWorkingDay">
<el-form-item label="实际工作天数">
<el-input
clearable
placeholder="请输入实际工作天数"
@ -539,6 +523,11 @@ import ComDialog from '@/components/ComDialog/index.vue'
const route = useRoute()
const router = useRouter()
const { proxy } = getCurrentInstance()
const workLoadCategoryOptions = ref([
{ label: '管理', value: 1 },
{ label: '熟练工', value: 2 },
{ label: '辅助工', value: 3 },
])
// 使 Hook
const { options: personnelCommonOptions } = useOptions(
@ -577,13 +566,10 @@ const getInitFormData = () => ({
plannedStartTime: routeParams.value.plannedStartTime,
plannedEndTime: routeParams.value.plannedEndTime,
//
majorId: null, //
businessTypeId: null, //
riskLevel: null, //
planCategoryId: null, //
towerBaseNumber: '', //
planPersonnel: [], //
planPersonnelWorkDays: '', //
// planPersonnel: [], //
planCarNum: '', //
planSkilledWorkerNum: '', //
planAuxiliaryWorkerNum: '', //