|
@@ -14,7 +14,34 @@
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</template>
|
|
</template>
|
|
<el-switch v-model="v.initia_input.age" :active-value="is" :inactive-value="no" @change="changeAge"></el-switch>
|
|
<el-switch v-model="v.initia_input.age" :active-value="is" :inactive-value="no" @change="changeAge"></el-switch>
|
|
- </el-form-item>
|
|
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <div v-else-if="v.type=='object'" style="padding: 20px 0px;margin-left: 160px;">
|
|
|
|
+ <div style="margin-bottom: 10px;">全勤加分需同时满足以下条件</div>
|
|
|
|
+ <div style="padding-left: 23px;">1、当月无旷工</div>
|
|
|
|
+ <div style="margin: 15px 0;">
|
|
|
|
+ <div><el-checkbox v-model="v.absent_holiday.enable" :true-label="1" :false-label="0">2、当月未提交以下请假
|
|
|
|
+ <el-tooltip placement="top" content="填写的请假名称必须与钉钉考勤打卡-假期管理-假期规则对应,否则此项不生效">
|
|
|
|
+ <span class="initia_mark" style="background-color: #666;">?</span>
|
|
|
|
+ </el-tooltip>
|
|
|
|
+ </el-checkbox></div>
|
|
|
|
+ <div class="flex-box" style="margin-top: 10px;padding-left: 20px;">
|
|
|
|
+ <el-input :disabled="v.absent_holiday.enable==1?false:true" style="width: 150px;" :key="1" type="text" v-model="val1" placeholder="假期类型"></el-input>
|
|
|
|
+ <el-input :disabled="v.absent_holiday.enable==1?false:true" style="width: 150px;margin: 0 10px;" :key="2" type="text" v-model="val2" placeholder="假期类型"></el-input>
|
|
|
|
+ <el-input :disabled="v.absent_holiday.enable==1?false:true" style="width: 150px;" type="text" :key="3" v-model="val3" placeholder="假期类型"></el-input>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div>
|
|
|
|
+ <div><el-checkbox v-model="v.absent_late.enable" :true-label="1" :false-label="0">
|
|
|
|
+ 3、当月迟到少于
|
|
|
|
+ <el-input @input="[v.absent_late.count=v.absent_late.count.replace(/[^\d]/g,'')]" :disabled="v.absent_late.enable==1?false:true" style="width: 150px;" v-model="v.absent_late.count" placeholder="次数"></el-input>
|
|
|
|
+ 次</el-checkbox></div>
|
|
|
|
+<!-- <div class="flex-box">
|
|
|
|
+ <el-input style="width: 150px;" placeholder="假期类型"></el-input>
|
|
|
|
+ <el-input style="width: 150px;margin: 0 10px;" placeholder="假期类型"></el-input>
|
|
|
|
+ <el-input style="width: 150px;" placeholder="假期类型"></el-input>
|
|
|
|
+ </div> -->
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
<el-form-item style="margin: 20px 0 0 0 " v-else>
|
|
<el-form-item style="margin: 20px 0 0 0 " v-else>
|
|
<template slot="label">
|
|
<template slot="label">
|
|
<template v-if="v.message">
|
|
<template v-if="v.message">
|
|
@@ -51,14 +78,23 @@ export default {
|
|
return {
|
|
return {
|
|
is: 1,
|
|
is: 1,
|
|
no: 0,
|
|
no: 0,
|
|
- disabled:false
|
|
|
|
|
|
+ disabled:false,
|
|
|
|
+ checked1:'',
|
|
|
|
+ val1:'',
|
|
|
|
+ val2:'',
|
|
|
|
+ val3:'',
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
|
|
+ if(this.initia_arr.length==9){
|
|
|
|
+ this.val1=this.initia_arr[8].absent_holiday.list[0]
|
|
|
|
+ this.val2=this.initia_arr[8].absent_holiday.list[1]
|
|
|
|
+ this.val3=this.initia_arr[8].absent_holiday.list[2]
|
|
|
|
+ }
|
|
},
|
|
},
|
|
mounted() {;
|
|
mounted() {;
|
|
if(this.initia_arr[0].type=="switch"){
|
|
if(this.initia_arr[0].type=="switch"){
|
|
- this.disabled=this.initia_arr[0].initia_input.age==1? false:true;
|
|
|
|
|
|
+ this.disabled=this.initia_arr[0].initia_input.age==1? false:true;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -67,33 +103,21 @@ export default {
|
|
},
|
|
},
|
|
save() {
|
|
save() {
|
|
let arr = [];
|
|
let arr = [];
|
|
- // 正则判断代码
|
|
|
|
- // for (var i = 0; i < this.initia_arr.length; i++) {
|
|
|
|
- // if (this.initia_arr[i].initia_input.age !== "") {
|
|
|
|
- // arr.push({
|
|
|
|
- // sj: this.initia_arr[i].initia_input.age,
|
|
|
|
- // });
|
|
|
|
- // if (arr.length == this.initia_arr.length) {
|
|
|
|
- // this.$emit("initia", arr);
|
|
|
|
- // this.disableds = false;
|
|
|
|
- // }
|
|
|
|
- // } else {
|
|
|
|
- // this.$message({
|
|
|
|
- // message: "请输入分值",
|
|
|
|
- // type: "warning",
|
|
|
|
- // });
|
|
|
|
- // return;
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // 无正则代码
|
|
|
|
|
|
+ let checkAllData={};//全勤配置
|
|
for (var i = 0; i < this.initia_arr.length; i++) {
|
|
for (var i = 0; i < this.initia_arr.length; i++) {
|
|
- arr.push({
|
|
|
|
- sj: this.initia_arr[i].initia_input.age,
|
|
|
|
- });
|
|
|
|
- if (arr.length == this.initia_arr.length) {
|
|
|
|
- this.$emit("initia", arr);
|
|
|
|
- }
|
|
|
|
|
|
+ if(this.initia_arr[i].type!='object'){
|
|
|
|
+ arr.push({sj: this.initia_arr[i].initia_input.age});
|
|
|
|
+ }else{
|
|
|
|
+ checkAllData=this.initia_arr[i]
|
|
|
|
+ let list=[this.val1,this.val2,this.val3];
|
|
|
|
+ checkAllData.absent_holiday.list=list.filter(x=>{
|
|
|
|
+ if(x){
|
|
|
|
+ return x
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+ this.$emit("initia", {arr,checkAllData});
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|