|
@@ -352,8 +352,8 @@
|
|
<span v-if="reportTimeType.type == 3">{{$t('time.hour')}}</span>
|
|
<span v-if="reportTimeType.type == 3">{{$t('time.hour')}}</span>
|
|
|
|
|
|
<span v-if="workForm.time">{{$t('other.attendancePunch')}}: {{workForm.time.startTime}}-{{workForm.time.endTime}}, {{workForm.time.workHours}}{{$t('time.hour')}}</span>
|
|
<span v-if="workForm.time">{{$t('other.attendancePunch')}}: {{workForm.time.startTime}}-{{workForm.time.endTime}}, {{workForm.time.workHours}}{{$t('time.hour')}}</span>
|
|
- <span v-if="user.timeType.syncDingding==1&&!workForm.time">{{$t('other.noAttendanceRecord')}}</span>
|
|
|
|
-
|
|
|
|
|
|
+ <span v-if="(user.timeType.syncDingding==1 || user.timeType.syncCorpwxTime==1)&&!workForm.time" >{{$t('other.noAttendanceRecord')}}</span>
|
|
|
|
+ <el-button type="default" style="margin-left:5px;" size="mini" :loading="syncTimeLoading" v-if="user.timeType.syncCorpwxTime==1 && (workForm.createDate == today || (!workForm.time))" icon="el-icon-refresh" @click="refreshWXCardTime(workForm.createDate)"></el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!-- 000000 -->
|
|
<!-- 000000 -->
|
|
<div v-for="(domain, index) in workForm.domains" :key="domain.id" :style="index>0?'margin-top:10px;':''">
|
|
<div v-for="(domain, index) in workForm.domains" :key="domain.id" :style="index>0?'margin-top:10px;':''">
|
|
@@ -1645,6 +1645,8 @@
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ today:null,
|
|
|
|
+ syncTimeLoading: false,
|
|
seluserText: '',
|
|
seluserText: '',
|
|
translation: '1', // 1、文字, 2、部门, 3、人员
|
|
translation: '1', // 1、文字, 2、部门, 3、人员
|
|
exportLoad: false,
|
|
exportLoad: false,
|
|
@@ -1924,6 +1926,7 @@
|
|
mounted() {
|
|
mounted() {
|
|
var now = new Date();
|
|
var now = new Date();
|
|
var t = util.formatDate.format(now, 'yyyy-MM-dd');
|
|
var t = util.formatDate.format(now, 'yyyy-MM-dd');
|
|
|
|
+ this.today = t;
|
|
var startStr = util.formatDate.format(new Date(), 'yyyy-MM') + "-01";
|
|
var startStr = util.formatDate.format(new Date(), 'yyyy-MM') + "-01";
|
|
this.exportParam.dateRange = [startStr,t];
|
|
this.exportParam.dateRange = [startStr,t];
|
|
this.getAllDate(1);
|
|
this.getAllDate(1);
|
|
@@ -1948,6 +1951,28 @@
|
|
test(){
|
|
test(){
|
|
// console.log('test',this.depData,this.data[0].membCount,this.reportList.length);
|
|
// console.log('test',this.depData,this.data[0].membCount,this.reportList.length);
|
|
},
|
|
},
|
|
|
|
+ refreshWXCardTime(workdate) {
|
|
|
|
+ this.syncTimeLoading = true;
|
|
|
|
+ this.http.post('/user-corpwx-time/getPunchRecordBySelf',{
|
|
|
|
+ date: workdate,
|
|
|
|
+ },res => {
|
|
|
|
+ this.syncTimeLoading = false;
|
|
|
|
+ if(res.code == 'ok'){
|
|
|
|
+ this.workForm.time = res.data.time;
|
|
|
|
+ }else {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: res.msg,
|
|
|
|
+ type: 'error'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },err => {
|
|
|
|
+ this.syncTimeLoading = false;
|
|
|
|
+ this.$message({
|
|
|
|
+ message: err,
|
|
|
|
+ type: 'error'
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
weeklyFilledTimeClick(parameterDate){ //按周填报-已填工时-点击
|
|
weeklyFilledTimeClick(parameterDate){ //按周填报-已填工时-点击
|
|
this.weeklyFilledTimeDialog = true
|
|
this.weeklyFilledTimeDialog = true
|
|
this.weeklyFilledTimeLoading = true
|
|
this.weeklyFilledTimeLoading = true
|