|
@@ -32,14 +32,14 @@
|
|
|
<!-- 123-->
|
|
|
<a-menu slot="overlay">
|
|
|
<a-menu-item v-has="'viewClockUserInfo:fuxin'">
|
|
|
- <a-popconfirm title="确定对所选记录付薪吗?" @confirm="() => handleInfo('1')">
|
|
|
- <a>付薪</a>
|
|
|
- </a-popconfirm>
|
|
|
+ <!-- <a-popconfirm title="确定对所选记录付薪吗?" @confirm="() => handleInfo('1')"> -->
|
|
|
+ <a @click="showModal3('top','1',null)">付薪</a>
|
|
|
+ <!-- </a-popconfirm> -->
|
|
|
</a-menu-item>
|
|
|
<a-menu-item v-has="'viewClockUserInfo:tiaoxiu'">
|
|
|
- <a-popconfirm title="确定对所选记录累计调休吗?" @confirm="() => handleInfo('2')">
|
|
|
- <a>累计调休</a>
|
|
|
- </a-popconfirm>
|
|
|
+ <!-- <a-popconfirm title="确定对所选记录累计调休吗?" @confirm="() => handleInfo('2')"> -->
|
|
|
+ <a @click="showModal3('top','2',null)">累计调休</a>
|
|
|
+ <!-- </a-popconfirm> -->
|
|
|
</a-menu-item>
|
|
|
<a-menu-item v-has="'viewClockUserInfo:hulue'">
|
|
|
<a-popconfirm title="确定对所选记录忽略吗?" @confirm="() => handleInfo('3')">
|
|
@@ -118,14 +118,14 @@
|
|
|
</a>
|
|
|
<a-menu slot="overlay">
|
|
|
<a-menu-item v-has="'viewClockUserInfo:fuxin'">
|
|
|
- <a-popconfirm title="确定付薪吗?" @confirm="() => fuXinInfo('2','1',record)">
|
|
|
- <a>付薪</a>
|
|
|
- </a-popconfirm>
|
|
|
+ <!-- <a-popconfirm title="确定付薪吗?" @confirm="() => fuXinInfo('2','1',record)"> -->
|
|
|
+ <a @click="showModal3('right','1',record)">付薪</a>
|
|
|
+ <!-- </a-popconfirm> -->
|
|
|
</a-menu-item>
|
|
|
<a-menu-item v-has="'viewClockUserInfo:tiaoxiu'">
|
|
|
- <a-popconfirm title="确定累计调休吗?" @confirm="() => fuXinInfo('2','2',record)">
|
|
|
- <a>累计调休</a>
|
|
|
- </a-popconfirm>
|
|
|
+ <!-- <a-popconfirm title="确定累计调休吗?" @confirm="() => fuXinInfo('2','2',record)"> -->
|
|
|
+ <a @click="showModal3('right','2',record)">累计调休</a>
|
|
|
+ <!-- </a-popconfirm> -->
|
|
|
</a-menu-item>
|
|
|
<a-menu-item v-has="'viewClockUserInfo:hulue'">
|
|
|
<a-popconfirm title="确定忽略吗?" @confirm="() => fuXinInfo('2','3',record)">
|
|
@@ -159,14 +159,14 @@
|
|
|
</a>
|
|
|
<a-menu slot="overlay">
|
|
|
<a-menu-item v-has="'viewClockUserInfo:fuxin'">
|
|
|
- <a-popconfirm title="确定付薪吗?" @confirm="() => fuXinInfo('1','1',record)">
|
|
|
- <a>付薪</a>
|
|
|
- </a-popconfirm>
|
|
|
+ <!-- <a-popconfirm title="确定付薪吗?" @confirm="() => fuXinInfo('1','1',record)"> -->
|
|
|
+ <a @click="showModal3('in','1',record)">付薪</a>
|
|
|
+ <!-- </a-popconfirm> -->
|
|
|
</a-menu-item>
|
|
|
<a-menu-item v-has="'viewClockUserInfo:tiaoxiu'">
|
|
|
- <a-popconfirm title="确定累计调休吗?" @confirm="() => fuXinInfo('1','2',record)">
|
|
|
- <a>累计调休</a>
|
|
|
- </a-popconfirm>
|
|
|
+ <!-- <a-popconfirm title="确定累计调休吗?" @confirm="() => fuXinInfo('1','2',record)"> -->
|
|
|
+ <a @click="showModal3('in','2',record)">累计调休</a>
|
|
|
+ <!-- </a-popconfirm> -->
|
|
|
</a-menu-item>
|
|
|
<a-menu-item v-has="'viewClockUserInfo:hulue'">
|
|
|
<a-popconfirm title="确定忽略吗?" @confirm="() => fuXinInfo('1','3',record)">
|
|
@@ -188,6 +188,18 @@
|
|
|
>
|
|
|
<a-input placeholder="请填写忽略原因" v-model="errorText"></a-input>
|
|
|
</a-modal>
|
|
|
+
|
|
|
+ <a-modal style="z-index:999"
|
|
|
+ title="请选择倍数"
|
|
|
+ :visible="visibleShowModal3"
|
|
|
+ :confirm-loading="confirmLoading"
|
|
|
+ @ok="handleOk3"
|
|
|
+ @cancel="handleCancel3"
|
|
|
+ >
|
|
|
+ <j-dict-select-tag style="width:100%;" v-model="multiple" placeholder="请选择倍数"
|
|
|
+ dictCode="multiple" />
|
|
|
+
|
|
|
+ </a-modal>
|
|
|
</a-card>
|
|
|
</template>
|
|
|
|
|
@@ -224,7 +236,12 @@
|
|
|
durationEndDate:'',//加班结束时间
|
|
|
duration:'',//加班时长
|
|
|
demo:'',//加班事由
|
|
|
- modal2Visible: false,
|
|
|
+ modal2Visible: false,//加班信息详情
|
|
|
+ visibleShowModal3:false,//薪资倍数选择框
|
|
|
+ multiple:1,//薪资倍数选择框倍数
|
|
|
+ area:'',//点击倍数弹框的区域 top/right/in
|
|
|
+ recordPar:'',//弹框参数
|
|
|
+ stPar:null,//1付薪,2调休
|
|
|
moment,
|
|
|
description: '员工考勤信息',
|
|
|
userName:'',//标题员工姓名
|
|
@@ -430,7 +447,7 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- putAction(this.url.handleInfo, {viewDate:ids,st:st,username:username}).then((res) => {
|
|
|
+ putAction(this.url.handleInfo, {multiple:this.multiple,viewDate:ids,st:st,username:username}).then((res) => {
|
|
|
if (res.success) {
|
|
|
that.$message.success("操作成功");
|
|
|
that.loadData();
|
|
@@ -439,6 +456,7 @@
|
|
|
that.loadData();
|
|
|
}
|
|
|
}).finally(() => {
|
|
|
+ that.multiple = 1;
|
|
|
that.selectedRowKeys = [];
|
|
|
})
|
|
|
},
|
|
@@ -459,6 +477,16 @@
|
|
|
this.errorSt = record.errorState;
|
|
|
this.errorText = record.errorText;
|
|
|
this.visible = true;
|
|
|
+ },
|
|
|
+ showModal3(area,st,record) {//薪资倍数选择框
|
|
|
+ if(area == 'top' && this.selectedRowKeys.length < 1){
|
|
|
+ this.$message.warning("请选择一条含有加班信息的数据");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.stPar = st;
|
|
|
+ this.area = area;
|
|
|
+ this.recordPar = record;
|
|
|
+ this.visibleShowModal3 = true;
|
|
|
},
|
|
|
handleOk(e) {
|
|
|
if(this.errorSt == 0){
|
|
@@ -484,6 +512,25 @@
|
|
|
this.visible = false;
|
|
|
})
|
|
|
},
|
|
|
+ handleOk3(e) {
|
|
|
+ this.modal2Visible = false;
|
|
|
+ this.visibleShowModal3 = false;
|
|
|
+ if(this.area == 'top'){
|
|
|
+ this.handleInfo(this.stPar);
|
|
|
+ }
|
|
|
+ if(this.area == 'right'){
|
|
|
+ this.fuXinInfo('2',this.stPar,this.recordPar);
|
|
|
+ }
|
|
|
+ if(this.area == 'in'){
|
|
|
+ this.fuXinInfo('1',this.stPar,this.recordPar);
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ handleCancel3(e) {
|
|
|
+ this.multiple = 1;
|
|
|
+ this.visibleShowModal3 = false;
|
|
|
+
|
|
|
+ },
|
|
|
handleCancel(e) {
|
|
|
console.log('Clicked cancel button');
|
|
|
this.visible = false;
|
|
@@ -714,11 +761,13 @@
|
|
|
userId = record.userId;
|
|
|
}
|
|
|
let that = this;
|
|
|
- fuXinInfo({viewDate:record.viewDate,viewDate1:record.beginDate,userId:userId,pkId:record.id,st:st,w:w}).then((res) => {
|
|
|
+ fuXinInfo({multiple:this.multiple,viewDate:record.viewDate,viewDate1:record.beginDate,userId:userId,pkId:record.id,st:st,w:w}).then((res) => {
|
|
|
if (res.success) {
|
|
|
+ that.multiple = 1;
|
|
|
that.$message.success("已成功设置");
|
|
|
that.loadData();
|
|
|
} else {
|
|
|
+ that.multiple = 1;
|
|
|
that.$message.warning(res.message);
|
|
|
that.loadData();
|
|
|
}
|