|
@@ -150,7 +150,7 @@
|
|
|
<el-link type="primary" v-if="user.manageDeptId != 0" style="margin-right:10px;" :underline="false" @click="showExportTimeDialog">{{$t('textLink.exportingTimeStatistics')}}</el-link>
|
|
<el-link type="primary" v-if="user.manageDeptId != 0" style="margin-right:10px;" :underline="false" @click="showExportTimeDialog">{{$t('textLink.exportingTimeStatistics')}}</el-link>
|
|
|
<el-link type="primary" v-if="user.timeType.pushReportData == 1 && permissions.reportPush" :underline="false" @click="pushWorkTime">{{ $t('tuiSongGongShi') }}</el-link>
|
|
<el-link type="primary" v-if="user.timeType.pushReportData == 1 && permissions.reportPush" :underline="false" @click="pushWorkTime">{{ $t('tuiSongGongShi') }}</el-link>
|
|
|
<el-link type="primary" v-if="user.timeType.pushReportData == 1 && user.companyId==3092 && permissions.reportPush" :underline="false" @click="pushWorkTimeLogDig=true,getPushWorkLogData()">{{ $t('gongShiTuiSongRiZhi') }}</el-link>
|
|
<el-link type="primary" v-if="user.timeType.pushReportData == 1 && user.companyId==3092 && permissions.reportPush" :underline="false" @click="pushWorkTimeLogDig=true,getPushWorkLogData()">{{ $t('gongShiTuiSongRiZhi') }}</el-link>
|
|
|
- <el-link type="primary" v-if="user.roleName == $t('role.superAdministrator') && user.companyId==839" :underline="false" @click="reportLogCheckDialog=true">{{ $t('riBaoShenHeXiuGai') }}</el-link>
|
|
|
|
|
|
|
+ <el-link type="primary" v-if="user.roleName == $t('role.superAdministrator') && (user.companyId==839 || user.companyId == 8294)" :underline="false" @click="reportLogCheckDialog=true">{{ $t('riBaoShenHeXiuGai') }}</el-link>
|
|
|
<el-link type="primary" v-if="(user.roleName == $t('role.superAdministrator') || user.roleName == $t('role.systemAdministrator')) && user.companyId==5916" :underline="false" @click="transferWorkingHoursVisable=true">{{ $t('zhuanYIGongShi') }}</el-link>
|
|
<el-link type="primary" v-if="(user.roleName == $t('role.superAdministrator') || user.roleName == $t('role.systemAdministrator')) && user.companyId==5916" :underline="false" @click="transferWorkingHoursVisable=true">{{ $t('zhuanYIGongShi') }}</el-link>
|
|
|
<!-- <el-button v-if="user.timeType.pushReportData == 1 && permissions.reportPush" style="margin-left:10px;" icon="iconfont firerock-icontuisong" size="mini" @click="pushWorkTime"></el-button> -->
|
|
<!-- <el-button v-if="user.timeType.pushReportData == 1 && permissions.reportPush" style="margin-left:10px;" icon="iconfont firerock-icontuisong" size="mini" @click="pushWorkTime"></el-button> -->
|
|
|
</span>
|
|
</span>
|
|
@@ -1031,7 +1031,7 @@
|
|
|
<el-button @click="handleGetPrevWeek()" size="small"><<</el-button>
|
|
<el-button @click="handleGetPrevWeek()" size="small"><<</el-button>
|
|
|
<el-button @click="getCurrentWeek()" size="small">{{$t('time.thisWeek')}}</el-button>
|
|
<el-button @click="getCurrentWeek()" size="small">{{$t('time.thisWeek')}}</el-button>
|
|
|
<el-button @click="handleGetNextvWeek()" size="small">>></el-button>
|
|
<el-button @click="handleGetNextvWeek()" size="small">>></el-button>
|
|
|
- <el-select v-model="selCon" size="small" multiple :placeholder="$t('defaultText.pleaseChoose')" @change="onSelProjectChange()" filterable style="margin-right:50px;float:right;width:50%;" collapse-tags>
|
|
|
|
|
|
|
+ <el-select v-if="!isSubstitude" v-model="selCon" size="small" multiple :placeholder="$t('defaultText.pleaseChoose')" @change="onSelProjectChange()" filterable style="margin-right:50px;float:right;width:50%;" collapse-tags>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in fillProjectList"
|
|
v-for="item in fillProjectList"
|
|
|
:disabled="(item.status!=1 && item.status!=4) || !item.canCancel"
|
|
:disabled="(item.status!=1 && item.status!=4) || !item.canCancel"
|
|
@@ -1042,6 +1042,19 @@
|
|
|
<span style="float: right">{{ item.projectName }}</span>
|
|
<span style="float: right">{{ item.projectName }}</span>
|
|
|
</el-option>
|
|
</el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
|
|
+ <el-select v-else v-model="selCon" size="small" multiple :placeholder="$t('defaultText.pleaseChoose')" @change="onSelProjectChange()" filterable style="margin-right:50px;float:right;width:50%;" collapse-tags>
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in subFillProjectList"
|
|
|
|
|
+ :disabled="(item.status!=1 && item.status!=4) || !item.canCancel"
|
|
|
|
|
+ :key="item.id"
|
|
|
|
|
+ :label="item.projectName + '\u3000' + item.projectCode"
|
|
|
|
|
+ :value="item.id">
|
|
|
|
|
+ <span style="float: left; color: #8492a6; font-size: 13px">{{ item.projectCode }}</span>
|
|
|
|
|
+ <span style="float: right">{{ item.projectName }}</span>
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<span style="float:right;margin-right:10px;">{{ $t('defaultText.selectProject') }}</span>
|
|
<span style="float:right;margin-right:10px;">{{ $t('defaultText.selectProject') }}</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
|
@@ -1111,7 +1124,10 @@
|
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
|
|
<span slot="footer" class="dialog-footer" v-if="!isSubstitude || substitudeStep == 2">
|
|
<span slot="footer" class="dialog-footer" v-if="!isSubstitude || substitudeStep == 2">
|
|
|
- <span v-if="isSubstitude" style="float:left;color:orange;">{{ $t('zhengZaiWei') }}【{{workForm.userNames}}】{{ $t('daiTian') }}</span>
|
|
|
|
|
|
|
+ <span v-if="isSubstitude" style="float:left;color:orange;">{{ $t('zhengZaiWei') }}【
|
|
|
|
|
+ <span v-if="user.userNameNeedTranslate != '1'">{{workForm.userNames}}</span>
|
|
|
|
|
+ <span v-if="user.userNameNeedTranslate == '1'"><TranslationOpenDataText type='userName' :openid='workForm.userNames'></TranslationOpenDataText></span>
|
|
|
|
|
+ 】{{ $t('daiTian') }}</span>
|
|
|
<!-- <el-button @click="zhoAddlast()" style="float:left;" class="el-icon-back">{{$t('defaultText.selectProject')}}</el-button> -->
|
|
<!-- <el-button @click="zhoAddlast()" style="float:left;" class="el-icon-back">{{$t('defaultText.selectProject')}}</el-button> -->
|
|
|
<el-button @click="closeAddWeeklyReport()" :loading="submitingReport">{{$t('btn.cancel')}}</el-button>
|
|
<el-button @click="closeAddWeeklyReport()" :loading="submitingReport">{{$t('btn.cancel')}}</el-button>
|
|
|
<el-button @click="submitWeekReport(1)" :loading="submitingReport" >{{$t('btn.temporaryStorage')}}</el-button>
|
|
<el-button @click="submitWeekReport(1)" :loading="submitingReport" >{{$t('btn.temporaryStorage')}}</el-button>
|
|
@@ -1466,10 +1482,9 @@
|
|
|
></el-date-picker>
|
|
></el-date-picker>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
- <el-link type="primary" @click="exportReportLog">{{ $t('daoChuRiBaoShenHeJiLuShuJu') }}</el-link>
|
|
|
|
|
- <br>
|
|
|
|
|
- <el-upload ref="upload" action="#" :limit="1" :http-request="importReportLog" :show-file-list="false">
|
|
|
|
|
- <el-link type="primary" @click="importReportLog">{{ $t('daoRuRiBaoShenHeJiLuXiuGaiShuJu') }}</el-link></el-upload>
|
|
|
|
|
|
|
+ <p><el-link type="primary" @click="exportReportLog">{{ $t('daoChuRiBaoShenHeJiLuShuJu') }}</el-link></p>
|
|
|
|
|
+ <p><el-upload ref="upload" action="#" :limit="1" :http-request="importReportLog" :show-file-list="false">
|
|
|
|
|
+ <el-link type="primary" @click="importReportLog">{{ $t('daoRuRiBaoShenHeJiLuXiuGaiShuJu') }}</el-link></el-upload></p>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="reportLogCheckDialog = false">{{ $t('Shutdown') }}</el-button>
|
|
<el-button type="primary" @click="reportLogCheckDialog = false">{{ $t('Shutdown') }}</el-button>
|
|
|
</span>
|
|
</span>
|