|
@@ -186,7 +186,7 @@
|
|
|
<el-button type="primary" @click="enterDialog">确定</el-button>
|
|
<el-button type="primary" @click="enterDialog">确定</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<el-dialog v-model="AttendanceVisible" title="考勤建立" destroy-on-close width="800px" >
|
|
<el-dialog v-model="AttendanceVisible" title="考勤建立" destroy-on-close width="800px" >
|
|
|
<el-row :gutter="24">
|
|
<el-row :gutter="24">
|
|
|
<el-col :span="7">
|
|
<el-col :span="7">
|
|
@@ -194,50 +194,50 @@
|
|
|
<el-input v-model="Attendancevalue['month']" style="margin-top=0px; margin-bottom: 1px;" id="年月份" @keydown="handleKeyDown($event, '法定天数', 'C类', '法定天数')" placeholder="" />
|
|
<el-input v-model="Attendancevalue['month']" style="margin-top=0px; margin-bottom: 1px;" id="年月份" @keydown="handleKeyDown($event, '法定天数', 'C类', '法定天数')" placeholder="" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<el-col :span="7" style="margin-top=0px; margin-bottom: 1px;">
|
|
<el-col :span="7" style="margin-top=0px; margin-bottom: 1px;">
|
|
|
<el-form-item label="法定天数" prop="id" style="margin-top=0px; margin-bottom: 1px;">
|
|
<el-form-item label="法定天数" prop="id" style="margin-top=0px; margin-bottom: 1px;">
|
|
|
<el-input v-model="Attendancevalue['day']" style="margin-top=0px; margin-bottom: 1px;" @blur="getdays()" id="法定天数" @keydown="handleKeyDown($event, '法定天数', '年月份', 'A类')" placeholder="" />
|
|
<el-input v-model="Attendancevalue['day']" style="margin-top=0px; margin-bottom: 1px;" @blur="getdays()" id="法定天数" @keydown="handleKeyDown($event, '法定天数', '年月份', 'A类')" placeholder="" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<el-row :gutter="24">
|
|
<el-row :gutter="24">
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<el-col :span="7" style="margin-top=0px; margin-bottom: 1px;">
|
|
<el-col :span="7" style="margin-top=0px; margin-bottom: 1px;">
|
|
|
<el-form-item label="A类(双休版)" prop="id" style="margin-top=0px; margin-bottom: 1px;">
|
|
<el-form-item label="A类(双休版)" prop="id" style="margin-top=0px; margin-bottom: 1px;">
|
|
|
<el-input v-model="Attendancevalue['typeA']" id="A类" @keydown="handleKeyDown($event, 'A类', '法定天数', 'B类')" style="margin-top=0px; margin-bottom: 1px;" placeholder="" />
|
|
<el-input v-model="Attendancevalue['typeA']" id="A类" @keydown="handleKeyDown($event, 'A类', '法定天数', 'B类')" style="margin-top=0px; margin-bottom: 1px;" placeholder="" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<el-row :gutter="24">
|
|
<el-row :gutter="24">
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<el-col :span="7" style="margin-top=0px; margin-bottom: 1px;">
|
|
<el-col :span="7" style="margin-top=0px; margin-bottom: 1px;">
|
|
|
<el-form-item label="B类(7.5小时班)" prop="id" style="margin-top=0px; margin-bottom: 1px;">
|
|
<el-form-item label="B类(7.5小时班)" prop="id" style="margin-top=0px; margin-bottom: 1px;">
|
|
|
<el-input v-model="Attendancevalue['typeB']" id="B类" @keydown="handleKeyDown($event, 'B类', 'A类', 'C类')" style="margin-top=0px; margin-bottom: 1px;" placeholder="" />
|
|
<el-input v-model="Attendancevalue['typeB']" id="B类" @keydown="handleKeyDown($event, 'B类', 'A类', 'C类')" style="margin-top=0px; margin-bottom: 1px;" placeholder="" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<el-row :gutter="24">
|
|
<el-row :gutter="24">
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<el-col :span="7" style="margin-top=0px; margin-bottom: 1px;">
|
|
<el-col :span="7" style="margin-top=0px; margin-bottom: 1px;">
|
|
|
<el-form-item label="C类(11小时班)" prop="id" style="margin-top=0px; margin-bottom: 1px;">
|
|
<el-form-item label="C类(11小时班)" prop="id" style="margin-top=0px; margin-bottom: 1px;">
|
|
|
<el-input v-model="Attendancevalue['typeC']" id="C类" @keydown="handleKeyDown($event, 'C类', 'B类', '年月份')" style="margin-top=0px; margin-bottom: 1px;" placeholder="" />
|
|
<el-input v-model="Attendancevalue['typeC']" id="C类" @keydown="handleKeyDown($event, 'C类', 'B类', '年月份')" style="margin-top=0px; margin-bottom: 1px;" placeholder="" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<template #footer>
|
|
<template #footer>
|
|
|
<div class="dialog-footer">
|
|
<div class="dialog-footer">
|
|
|
<el-button @click="closeDialog">取 消</el-button>
|
|
<el-button @click="closeDialog">取 消</el-button>
|
|
@@ -245,8 +245,8 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
</el-main>
|
|
</el-main>
|
|
|
</layout-content>
|
|
</layout-content>
|
|
|
</layout>
|
|
</layout>
|
|
@@ -347,6 +347,7 @@ const _department_code = ref(null)
|
|
|
const getDepartmentdata = async () => {
|
|
const getDepartmentdata = async () => {
|
|
|
try {
|
|
try {
|
|
|
const data = await getDepartment();
|
|
const data = await getDepartment();
|
|
|
|
|
+ console.log(data)
|
|
|
treeData.value = data.data;
|
|
treeData.value = data.data;
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
console.error(error)
|
|
console.error(error)
|
|
@@ -431,7 +432,7 @@ const onAttendance = () => {
|
|
|
const formattedMonth = month < 10 ? '0' + month : month;
|
|
const formattedMonth = month < 10 ? '0' + month : month;
|
|
|
console.log(year)
|
|
console.log(year)
|
|
|
console.log(month)
|
|
console.log(month)
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
Attendancevalue.value['month']=year.toString() + formattedMonth.toString();
|
|
Attendancevalue.value['month']=year.toString() + formattedMonth.toString();
|
|
|
Attendancevalue.value['day']=22
|
|
Attendancevalue.value['day']=22
|
|
|
AttendanceVisible.value=true
|
|
AttendanceVisible.value=true
|
|
@@ -480,13 +481,13 @@ const Attendancevalue = ref({})
|
|
|
sys_id:'[1010/郑梅芳]'
|
|
sys_id:'[1010/郑梅芳]'
|
|
|
};
|
|
};
|
|
|
console.log(formattedData)
|
|
console.log(formattedData)
|
|
|
- const response = await clockUpdate(formattedData);
|
|
|
|
|
|
|
+ const response = await clockUpdate(formattedData);
|
|
|
if (response.code === 0) {
|
|
if (response.code === 0) {
|
|
|
ElMessage({
|
|
ElMessage({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
|
message: '成功'
|
|
message: '成功'
|
|
|
})
|
|
})
|
|
|
- AttendanceVisible.value=false
|
|
|
|
|
|
|
+ AttendanceVisible.value=false
|
|
|
}else{
|
|
}else{
|
|
|
ElMessage({
|
|
ElMessage({
|
|
|
type: 'error',
|
|
type: 'error',
|