|
@@ -11,6 +11,11 @@
|
|
<a-input placeholder="请输入人员" v-model="queryParam.realname"></a-input>
|
|
<a-input placeholder="请输入人员" v-model="queryParam.realname"></a-input>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
+ <a-col :md="6" :sm="8">
|
|
|
|
+ <a-form-item label="班次">
|
|
|
|
+ <a-input placeholder="请输入班次" v-model="queryParam.name"></a-input>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
<a-form-item label="账号">
|
|
<a-form-item label="账号">
|
|
<a-input placeholder="请输入账号" v-model="queryParam.username"></a-input>
|
|
<a-input placeholder="请输入账号" v-model="queryParam.username"></a-input>
|
|
@@ -44,6 +49,7 @@
|
|
<a-button type="primary" @click="monthReport" icon="reload" style="margin-left: 8px">生成当月考勤月报</a-button>
|
|
<a-button type="primary" @click="monthReport" icon="reload" style="margin-left: 8px">生成当月考勤月报</a-button>
|
|
</span>
|
|
</span>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
+
|
|
|
|
|
|
</a-row>
|
|
</a-row>
|
|
</a-form>
|
|
</a-form>
|
|
@@ -62,6 +68,10 @@
|
|
<a-tag color="#87d068" v-if="record.latetimeX <= 0 && record.latetimeS <= 0 ">正常</a-tag>
|
|
<a-tag color="#87d068" v-if="record.latetimeX <= 0 && record.latetimeS <= 0 ">正常</a-tag>
|
|
</span>
|
|
</span>
|
|
|
|
|
|
|
|
+ <span slot="action" slot-scope="text, record">
|
|
|
|
+ <a @click="jiaozhun(record)">校准</a>
|
|
|
|
+
|
|
|
|
+ </span>
|
|
</a-table>
|
|
</a-table>
|
|
</div>
|
|
</div>
|
|
<!-- table区域-end -->
|
|
<!-- table区域-end -->
|
|
@@ -77,7 +87,7 @@
|
|
} from '@/mixins/JeecgListMixin'
|
|
} from '@/mixins/JeecgListMixin'
|
|
import JDictSelectTag from '@/components/dict/JDictSelectTag'
|
|
import JDictSelectTag from '@/components/dict/JDictSelectTag'
|
|
import {
|
|
import {
|
|
- monthReport
|
|
|
|
|
|
+ monthReport,jiaozhun
|
|
} from '@/api/api'
|
|
} from '@/api/api'
|
|
import moment from 'moment';
|
|
import moment from 'moment';
|
|
import 'moment/locale/zh-cn';
|
|
import 'moment/locale/zh-cn';
|
|
@@ -149,7 +159,7 @@
|
|
customRender: 'latetimeState'
|
|
customRender: 'latetimeState'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- {
|
|
|
|
|
|
+ /* {
|
|
title: '迟到分钟',
|
|
title: '迟到分钟',
|
|
align: 'center',
|
|
align: 'center',
|
|
dataIndex: 'latetimeS',
|
|
dataIndex: 'latetimeS',
|
|
@@ -172,7 +182,7 @@
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- },
|
|
|
|
|
|
+ }, */
|
|
{
|
|
{
|
|
title: '上班打卡',
|
|
title: '上班打卡',
|
|
align: 'center',
|
|
align: 'center',
|
|
@@ -217,6 +227,12 @@
|
|
title: '请假类型',
|
|
title: '请假类型',
|
|
align: 'center',
|
|
align: 'center',
|
|
dataIndex: 'holidayType'
|
|
dataIndex: 'holidayType'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '操作',
|
|
|
|
+ dataIndex: 'action',
|
|
|
|
+ align: 'center',
|
|
|
|
+ scopedSlots: { customRender: 'action' },
|
|
}
|
|
}
|
|
],
|
|
],
|
|
url: {
|
|
url: {
|
|
@@ -233,6 +249,28 @@
|
|
onChange(date, dateString) {
|
|
onChange(date, dateString) {
|
|
console.log(date, dateString);
|
|
console.log(date, dateString);
|
|
// this.value = "2021-01-01"
|
|
// this.value = "2021-01-01"
|
|
|
|
+ },
|
|
|
|
+ jiaozhun(record) {
|
|
|
|
+ // alert(record.viewDate);
|
|
|
|
+ // alert(record.username);
|
|
|
|
+ let that = this;
|
|
|
|
+ this.$confirm({
|
|
|
|
+ title: '校准后原打卡时间将失效',
|
|
|
|
+ content: '上班打卡时间:'+record.shiftTimeS+'; 下班打卡时间:'+record.shiftTimeX,
|
|
|
|
+ onOk: function () {
|
|
|
|
+ jiaozhun({shiftTimeS:record.shiftTimeS,shiftTimeX:record.shiftTimeX,viewDate:record.viewDate,username:record.username}).then((res) => {
|
|
|
|
+ if (res == 'true') {
|
|
|
|
+ that.$message.success("已成功校准");
|
|
|
|
+ that.loadData();
|
|
|
|
+ } else {
|
|
|
|
+ that.$message.warning(res);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ onCancel() {},
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+
|
|
},
|
|
},
|
|
monthReport() {
|
|
monthReport() {
|
|
let sqp1 = this.getQueryParams();
|
|
let sqp1 = this.getQueryParams();
|