| | |
| | | <!--外出表单--> |
| | | <el-dialog :close-on-click-modal="false" :before-close="closeCard" :visible.sync="goOutVisible" :title="goOutTitle" width="500px"> |
| | | <el-form ref="goOutForm" :model="goOutForm" :rules="goOutRules" size="small" label-width="80px"> |
| | | <el-form-item label="审批者" prop="approvalUserId"> |
| | | <el-select |
| | | v-model="goOutForm.approvalUserId" |
| | | filterable |
| | | clearable |
| | | placeholder="请选择" |
| | | style="width: 340px;" |
| | | > |
| | | <el-option |
| | | v-for="item in users" |
| | | :key="item.id" |
| | | :label="item.nickName" |
| | | :value="item.id" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="开始时间" prop="outStartTime"> |
| | | <el-date-picker |
| | | v-model="goOutForm.outStartTime" |
| | |
| | | <!--出差表单--> |
| | | <el-dialog :close-on-click-modal="false" :before-close="closeCard" :visible.sync="bussVisible" :title="bussTitle" width="500px"> |
| | | <el-form ref="bussForm" :model="bussForm" :rules="bussRules" size="small" label-width="80px"> |
| | | <el-form-item label="审批者" prop="approvalUserId"> |
| | | <el-select |
| | | v-model="bussForm.approvalUserId" |
| | | filterable |
| | | clearable |
| | | placeholder="请选择" |
| | | style="width: 340px;" |
| | | > |
| | | <el-option |
| | | v-for="item in users" |
| | | :key="item.id" |
| | | :label="item.nickName" |
| | | :value="item.id" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="开始日期" prop="travelStartTime"> |
| | | <el-date-picker |
| | | v-model="bussForm.travelStartTime" |
| | |
| | | if (data === 'goOut') { |
| | | this.goOutVisible = true |
| | | this.goOutForm.durationUnit = this.dictLeaveTimeTypeHour |
| | | // 判断企微审核 |
| | | if (this.wecomApprovalVisible) { |
| | | this.goOutForm.approvalUserId = 0 |
| | | } |
| | | } else { |
| | | this.bussVisible = true |
| | | this.bussForm.durationUnit = this.dictLeaveTimeTypeDay |
| | | // 判断企微审核 |
| | | if (this.wecomApprovalVisible) { |
| | | this.bussForm.approvalUserId = 0 |
| | | } |
| | | } |
| | | }, |
| | | // 计算时长 |