|
@@ -101,55 +101,22 @@
|
|
<el-form-item style="float:right;" v-if="permissions.structureExport">
|
|
<el-form-item style="float:right;" v-if="permissions.structureExport">
|
|
<el-link type="primary" :underline="false" @click="showExportDialog">{{ $t('exportpersonnel') }}</el-link>
|
|
<el-link type="primary" :underline="false" @click="showExportDialog">{{ $t('exportpersonnel') }}</el-link>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item style="float:right;" v-if="user.timeType.syncDingding == 0 && permissions.structureAdd && user.userNameNeedTranslate != '1' && user.dingdingUserid == null">
|
|
|
|
- <el-link type="primary" :underline="false" @click="openInsertDialog(null)">{{ $t('addpersonnel') }}</el-link>
|
|
|
|
- </el-form-item>
|
|
|
|
- <!--导入薪资-->
|
|
|
|
|
|
+
|
|
<el-form-item style="float:right;" v-if="permissions.structurePersonnel">
|
|
<el-form-item style="float:right;" v-if="permissions.structurePersonnel">
|
|
<el-link type="primary" :underline="false" @click="importUserSalary(null)">{{ $t('importSalary') }}</el-link>
|
|
<el-link type="primary" :underline="false" @click="importUserSalary(null)">{{ $t('importSalary') }}</el-link>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
-
|
|
|
|
- <el-form-item style="float:right;" v-if="user.timeType.syncDingding == 0 && permissions.structureImport && user.userNameNeedTranslate != '1' && user.dingdingUserid == null">
|
|
|
|
- <el-link type="primary" :underline="false" @click="importUserC">{{ $t('bulkimport') }}</el-link>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item style="float:right;" v-if="user.corpwxUserid != null && permissions.structureImport && user.companyId==469">
|
|
|
|
- <el-link type="primary" :underline="false" @click="syncMembByCardTime">{{ $t('associateenterprisemicroidentity') }}</el-link>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+
|
|
<el-form-item style="float:right;" v-if="user.corpwxUserid != null && permissions.structureImport && user.companyId!=469">
|
|
<el-form-item style="float:right;" v-if="user.corpwxUserid != null && permissions.structureImport && user.companyId!=469">
|
|
- <!-- <el-link type="primary" v-if="user.userNameNeedTranslate != '1'" :underline="false" @click="syncWithCorpWxDayload">{{ $t('synchronizetheenterprisemicrodirectory') }}</el-link>
|
|
|
|
- <el-link type="primary" v-if="user.userNameNeedTranslate == '1'" :underline="false" @click="newSyncWithCorpWx">{{ $t('synchronizetheenterprisemicrodirectory') }}</el-link> -->
|
|
|
|
- <el-link type="primary" v-if="user.userNameNeedTranslate != '1'" :underline="false" @click="syncWithCorpWx">{{ $t('synchronizetheenterprisemicrodirectory') }}</el-link>
|
|
|
|
- <el-link type="primary" v-if="user.userNameNeedTranslate == '1'" :underline="false" @click="newSyncWithCorpWxDayload = true">{{ $t('synchronizetheenterprisemicrodirectory') }}</el-link>
|
|
|
|
|
|
+ <el-link type="primary" :underline="false" @click="syncWithCorpWx">{{ $t('synchronizetheenterprisemicrodirectory') }}</el-link>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item style="float:right;" v-if="user.dingdingUserid != null && permissions.structureImport">
|
|
<el-form-item style="float:right;" v-if="user.dingdingUserid != null && permissions.structureImport">
|
|
<el-link type="primary" :underline="false" @click="showCorpDDSyncDialog">{{ $t('synchronizetheaddressbook') }}</el-link>
|
|
<el-link type="primary" :underline="false" @click="showCorpDDSyncDialog">{{ $t('synchronizetheaddressbook') }}</el-link>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
-
|
|
|
|
- <el-form-item style="float:right;" v-if="user.timeType.syncAd==1">
|
|
|
|
- <el-link type="primary" :underline="false" @click="syncAd">{{ '同步AD域控通讯录'}}</el-link>
|
|
|
|
- </el-form-item>
|
|
|
|
-
|
|
|
|
- <!-- <el-form-item style="float:right;" v-if="user.dingdingUserid == null && permissions.structureImport">
|
|
|
|
- <el-link type="primary" :underline="false" href="./upload/人员导入模板.xlsx" download="人员导入模板.xlsx">模板下载</el-link>
|
|
|
|
- </el-form-item> -->
|
|
|
|
- <!-- <el-form-item v-if="depData != null && depData.id != -1 && depData.id != 0" style="float:right;border: 0.5px solid #20a0ff;height: 27px;margin-top: 6px;">
|
|
|
|
- </el-form-item> -->
|
|
|
|
- <!-- <el-form-item style="float:right;">
|
|
|
|
- <el-link type="danger" v-if="depData != null && depData.id != -1 && depData.id != 0" :underline="false" @click="deleteDep(null)">删除部门</el-link>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item style="float:right;">
|
|
|
|
- <el-link type="primary" v-if="depData != null && depData.id != -1 && depData.id != 0" :underline="false" @click="createDepartment(-2)">新增子部门</el-link>
|
|
|
|
- </el-form-item> -->
|
|
|
|
|
|
+
|
|
<el-form-item style="float:right;">
|
|
<el-form-item style="float:right;">
|
|
<span style="color: #666666">{{ $t('jiao-se') }}</span>
|
|
<span style="color: #666666">{{ $t('jiao-se') }}</span>
|
|
<el-select v-model="roleId" :placeholder="$t('defaultText.pleaseChoose')" @change="getUser()" style="width: 120px" clearable size="small">
|
|
<el-select v-model="roleId" :placeholder="$t('defaultText.pleaseChoose')" @change="getUser()" style="width: 120px" clearable size="small">
|
|
- <!-- <el-option
|
|
|
|
- v-for="item in rolesa"
|
|
|
|
- :key="item.value"
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value">
|
|
|
|
- </el-option> -->
|
|
|
|
<el-option v-for="item in acquireRoleList" :key="item.id" :label="item.rolename" :value="item.id"></el-option>
|
|
<el-option v-for="item in acquireRoleList" :key="item.id" :label="item.rolename" :value="item.id"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -220,14 +187,6 @@
|
|
<el-table-column :label="$t('jiao-se')" width="100">
|
|
<el-table-column :label="$t('jiao-se')" width="100">
|
|
<template slot-scope="scope">{{scope.row.roleName}}</template>
|
|
<template slot-scope="scope">{{scope.row.roleName}}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="monthCost" :label="$t('monthcost')" align="right" v-if="permissions.structurePersonnel" width="140">
|
|
|
|
- <template slot-scope="scope">{{user.timeType.isSecretSalary==0?(scope.row.monthCost==null?0:scope.row.monthCost.toFixed(2)):'*'}} {{ $t('yuan') }}</template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column prop="cost" :label="$t('hourlywage')" v-if="permissions.structurePersonnel" width="150" align="right">
|
|
|
|
- <template slot-scope="scope">{{user.timeType.isSecretSalary==0?(scope.row.cost==null?0:scope.row.cost):'*'}} {{ $t('yuan') }}
|
|
|
|
- <el-link v-if="user.timeType.isSecretSalary==0" @click.native="showSalaryList(scope.row)"><i class="iconfont firerock-iconrecord"></i></el-link>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
<el-table-column :label="$t('state.states')" width="100">
|
|
<el-table-column :label="$t('state.states')" width="100">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{scope.row.isActive==0 ? $t('ting-yong')+(scope.row.inactiveDate != null? '(' + scope.row.inactiveDate + ')':''): $t('zai-zhi')}}</span>
|
|
<span>{{scope.row.isActive==0 ? $t('ting-yong')+(scope.row.inactiveDate != null? '(' + scope.row.inactiveDate + ')':''): $t('zai-zhi')}}</span>
|
|
@@ -359,13 +318,6 @@
|
|
</el-select>
|
|
</el-select>
|
|
<selectCat :size="'medium'" :widthStr="'360'" v-if="user.userNameNeedTranslate == '1'" :subject="users" :subjectId="depForm.otherManagerIds" :distinction="'4'" @selectCal="selectCal"></selectCat>
|
|
<selectCat :size="'medium'" :widthStr="'360'" v-if="user.userNameNeedTranslate == '1'" :subject="users" :subjectId="depForm.otherManagerIds" :distinction="'4'" @selectCal="selectCal"></selectCat>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <!-- 直属领导 -->
|
|
|
|
- <el-form-item :label="$t('leadership')" prop="reportAuditUserid" v-if="user.timeType.needDeptAudit">
|
|
|
|
- <el-select v-model="depForm.reportAuditUserid" v-if="user.userNameNeedTranslate != '1'" filterable clearable :placeholder="$t('defaultText.pleaseChoose')" style="width: 100%">
|
|
|
|
- <el-option v-for="item in users" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
|
|
- </el-select>
|
|
|
|
- <selectCat :size="'medium'" :widthStr="'360'" v-if="user.userNameNeedTranslate == '1'" :subject="users" :subjectId="depForm.reportAuditUserid" :distinction="'5'" @selectCal="selectCal"></selectCat>
|
|
|
|
- </el-form-item>
|
|
|
|
</el-form>
|
|
</el-form>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button @click="departmentVisible = false">{{ $t('btn.cancel') }}</el-button>
|
|
<el-button @click="departmentVisible = false">{{ $t('btn.cancel') }}</el-button>
|
|
@@ -389,12 +341,6 @@
|
|
<el-form-item :label="$t('Worknumber')" prop="jobNumber">
|
|
<el-form-item :label="$t('Worknumber')" prop="jobNumber">
|
|
<el-input v-model="insertForm.jobNumber" :placeholder="$t('peaseenterthe')" clearable></el-input>
|
|
<el-input v-model="insertForm.jobNumber" :placeholder="$t('peaseenterthe')" clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item :label="$t('payway')" prop="salaryType" v-if="permissions.structurePersonnel&&user.timeType.isSecretSalary==0">
|
|
|
|
- <el-radio-group v-model="insertForm.salaryType" @change="onSalaryTypeChange">
|
|
|
|
- <el-radio :label="0" >{{ $t('fixedmonthlycost') }}</el-radio>
|
|
|
|
- <el-radio :label="1">{{ $t('hourlywages') }}</el-radio>
|
|
|
|
- </el-radio-group>
|
|
|
|
- </el-form-item>
|
|
|
|
<el-form-item :label="$t('monthcost')" prop="monthCost" v-if="insertForm.salaryType == 0 && permissions.structurePersonnel&&user.timeType.isSecretSalary==0">
|
|
<el-form-item :label="$t('monthcost')" prop="monthCost" v-if="insertForm.salaryType == 0 && permissions.structurePersonnel&&user.timeType.isSecretSalary==0">
|
|
<el-input v-model="insertForm.monthCost" id="mc" @input="oninput" :placeholder="$t('yuechengben')" clearable @keyup.native="restrictNumber('mc')"></el-input>
|
|
<el-input v-model="insertForm.monthCost" id="mc" @input="oninput" :placeholder="$t('yuechengben')" clearable @keyup.native="restrictNumber('mc')"></el-input>
|
|
<span style="color:orange;font-size:12px;">{{ $t('yuegongzuoo') }}{{timeType.monthDays}}{{ $t('time.day') }},{{$t('meitian')}}{{timeType.allday}}{{ $t('xiaoshi') }}</span>
|
|
<span style="color:orange;font-size:12px;">{{ $t('yuegongzuoo') }}{{timeType.monthDays}}{{ $t('time.day') }},{{$t('meitian')}}{{timeType.allday}}{{ $t('xiaoshi') }}</span>
|
|
@@ -2339,33 +2285,7 @@ export default {
|
|
this.timeType.allday
|
|
this.timeType.allday
|
|
).toFixed(4);
|
|
).toFixed(4);
|
|
},
|
|
},
|
|
- // 获取本公司的工作时间设置
|
|
|
|
- getCompanyTimeSetting() {
|
|
|
|
- this.http.post(
|
|
|
|
- "/time-type/getCompanyTimeSetting",
|
|
|
|
- {
|
|
|
|
- companyId: this.user.companyId,
|
|
|
|
- },
|
|
|
|
- (res) => {
|
|
|
|
- if (res.code == "ok") {
|
|
|
|
- this.timeType = res.data;
|
|
|
|
- this.saasSyncContact = res.saasSyncContact
|
|
|
|
- } else {
|
|
|
|
- this.$message({
|
|
|
|
- message: res.msg,
|
|
|
|
- type: "error",
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- (error) => {
|
|
|
|
- this.listLoading = false;
|
|
|
|
- this.$message({
|
|
|
|
- message: error,
|
|
|
|
- type: "error",
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- );
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
|
|
|
|
importUserC() {
|
|
importUserC() {
|
|
this.importDialog = true;
|
|
this.importDialog = true;
|
|
@@ -3768,7 +3688,6 @@ export default {
|
|
this.ymonth = util.formatDate.format(new Date(), "yyyy-MM");
|
|
this.ymonth = util.formatDate.format(new Date(), "yyyy-MM");
|
|
this.getDepartment();
|
|
this.getDepartment();
|
|
this.getUser();
|
|
this.getUser();
|
|
- this.getCompanyTimeSetting();
|
|
|
|
this.getUsers();
|
|
this.getUsers();
|
|
this.acquireRole();
|
|
this.acquireRole();
|
|
this.getProfessional();
|
|
this.getProfessional();
|