This commit is contained in:
weiz 2024-04-09 10:53:09 +08:00
parent 418327044c
commit dcd279a263

View File

@ -1,6 +1,7 @@
<template>
<div class="edit-popup">
<popup ref="popupRef" :title="popupTitle" :async="true" width="85vw" @confirm="handleSubmit" @close="handleClose">
<popup ref="popupRef" :title="popupTitle" :async="true" width="85vw" @confirm="handleSubmit"
@close="handleClose">
<el-form ref="formRef" :model="formData" label-width="80px" :rules="formRules">
<el-row>
<el-col :span="8">
@ -15,8 +16,8 @@
</el-col>
<el-col :span="8">
<el-form-item label="考勤日期" prop="attendance_date">
<el-date-picker class="flex-1 !flex" clearable v-model="formData.attendance_date" type="date"
value-format="YYYY-MM-DD" placeholder="选择考勤日期">
<el-date-picker class="flex-1 !flex" clearable v-model="formData.attendance_date"
type="date" value-format="YYYY-MM-DD" placeholder="选择考勤日期">
</el-date-picker>
</el-form-item>
</el-col>
@ -130,7 +131,7 @@
</el-dialog>
<div v-if="showDialog1">
<el-dialog v-model="showDialog1" title="选择项目人员" width="70%">
<projectPersonnel @customEvent="customEvent1" :project_id="formData.project_id">
<projectPersonnel @customEvent="customEvent1" :project_id="formData.project_id || 0">
</projectPersonnel>
</el-dialog>
</div>
@ -157,7 +158,7 @@ let props = defineProps({
//
const formData = reactive({
id: '',
project_id: '',
project_id: 0,
attendance_date: '',
remark: '',
annex: '',