|
@@ -2,11 +2,11 @@
|
|
<section >
|
|
<section >
|
|
<el-col :span="24" class="toolbar" style="padding-bottom: 0px;">
|
|
<el-col :span="24" class="toolbar" style="padding-bottom: 0px;">
|
|
<el-form :inline="true">
|
|
<el-form :inline="true">
|
|
- <el-form-item label="审批流程设置">
|
|
|
|
|
|
+ <el-form-item :label="$t('approvalprocesssetting')">
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</el-col>
|
|
</el-col>
|
|
- <p style="padding-top:80px;margin: 0 0 10px 10px;color:#666;">工时审批流程</p>
|
|
|
|
|
|
+ <p style="padding-top:80px;margin: 0 0 10px 10px;color:#666;">{{$t('timeApprovalProcess')}}</p>
|
|
<div>
|
|
<div>
|
|
<el-col :span="6" >
|
|
<el-col :span="6" >
|
|
<el-scrollbar style="height:100%;border:1px solid #dddddd;margin-left:15px;" >
|
|
<el-scrollbar style="height:100%;border:1px solid #dddddd;margin-left:15px;" >
|
|
@@ -18,21 +18,21 @@
|
|
<el-col :span="18" >
|
|
<el-col :span="18" >
|
|
<el-scrollbar style="height:100%;border:1px solid #dddddd;margin-right:20px;" >
|
|
<el-scrollbar style="height:100%;border:1px solid #dddddd;margin-right:20px;" >
|
|
<div class="tree" :style="'height:'+ (tableHeight-120) + 'px'">
|
|
<div class="tree" :style="'height:'+ (tableHeight-120) + 'px'">
|
|
- <div style="padding:5px;color:#333;" v-if="depData != null">设置 <<span style="color:#20a0ff;">{{depData.label}}></span> 直属人员工时审批流程
|
|
|
|
- <el-tooltip effect="dark" v-if="depData != null && depData.children!=null" content="仅适用于当前部门的直属人员,子部门人员的审批流程需要单独设置" placement="top-start">
|
|
|
|
|
|
+ <div style="padding:5px;color:#333;" v-if="depData != null">{{ $t('setup') }} <<span style="color:#20a0ff;">{{depData.label}}></span> {{ $t('workinghoursapprovalprocessofdirectstaff') }}
|
|
|
|
+ <el-tooltip effect="dark" v-if="depData != null && depData.children!=null" :content="$t('onlyapplicabletotheimmediatestaffofthecurrentdepartment')" placement="top-start">
|
|
<i class="el-icon-question"></i>
|
|
<i class="el-icon-question"></i>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</div>
|
|
</div>
|
|
- <div style="padding:5px;" v-if="depData == null">请选择部门</div>
|
|
|
|
|
|
+ <div style="padding:5px;" v-if="depData == null">{{ $t('qing-xuan-ze-bu-men') }}</div>
|
|
<div style="width:100%;margin:0 auto;text-align: center; margin-top:50px;" v-if="depData != null">
|
|
<div style="width:100%;margin:0 auto;text-align: center; margin-top:50px;" v-if="depData != null">
|
|
- <span>员工填报</span>
|
|
|
|
|
|
+ <span>{{ $t('employeeisallowed') }}</span>
|
|
<icon class="iconfont firerock-iconright"></icon>
|
|
<icon class="iconfont firerock-iconright"></icon>
|
|
<icon class="iconfont firerock-iconInsertLine addNode" @click="showNodeDialog(0)"></icon>
|
|
<icon class="iconfont firerock-iconInsertLine addNode" @click="showNodeDialog(0)"></icon>
|
|
<icon class="iconfont firerock-iconright"></icon>
|
|
<icon class="iconfont firerock-iconright"></icon>
|
|
<span v-for="(item, index) in dataArray" :key="item.seq" >
|
|
<span v-for="(item, index) in dataArray" :key="item.seq" >
|
|
|
|
|
|
<el-button type="primary" v-if="item.isDeptAudit == 1" @click="editNodeDialog(index, item)">{{item.auditDeptName}}</el-button>
|
|
<el-button type="primary" v-if="item.isDeptAudit == 1" @click="editNodeDialog(index, item)">{{item.auditDeptName}}</el-button>
|
|
- <el-button type="primary" v-if="item.isDeptAudit == 0" >项目审核人</el-button>
|
|
|
|
|
|
+ <el-button type="primary" v-if="item.isDeptAudit == 0" >{{ $t('other.projectAuditor') }}</el-button>
|
|
<icon class="iconfont firerock-iconright"></icon>
|
|
<icon class="iconfont firerock-iconright"></icon>
|
|
<icon class="iconfont firerock-iconInsertLine addNode" @click="showNodeDialog(index+1)"></icon>
|
|
<icon class="iconfont firerock-iconInsertLine addNode" @click="showNodeDialog(index+1)"></icon>
|
|
<icon class="iconfont firerock-iconright"></icon>
|
|
<icon class="iconfont firerock-iconright"></icon>
|
|
@@ -40,11 +40,11 @@
|
|
|
|
|
|
<!--结束点 -->
|
|
<!--结束点 -->
|
|
<icon class="iconfont firerock-iconApp_New_Line" style="color:#20A0FF;"></icon>
|
|
<icon class="iconfont firerock-iconApp_New_Line" style="color:#20A0FF;"></icon>
|
|
- 审批完成
|
|
|
|
- </div>
|
|
|
|
|
|
+ {{ $t('approvaltocomplete') }}
|
|
|
|
+ </div>
|
|
|
|
|
|
<div style="width:100%;margin:0 auto;margin-bottom:30px;position: absolute;bottom: 0px;text-align: center; ">
|
|
<div style="width:100%;margin:0 auto;margin-bottom:30px;position: absolute;bottom: 0px;text-align: center; ">
|
|
- <el-button type="primary" @click="submitInsert" :loading="addLoading">保存</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="submitInsert" :loading="addLoading">{{ $t('save') }}</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-scrollbar>
|
|
</el-scrollbar>
|
|
@@ -53,30 +53,30 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!--部门选择列表 -->
|
|
<!--部门选择列表 -->
|
|
- <el-dialog title="请选择审批部门" v-if="dialogVisible" :visible.sync="dialogVisible" width="400px">
|
|
|
|
|
|
+ <el-dialog :title="$t('selectheapprovingdepartment')" v-if="dialogVisible" :visible.sync="dialogVisible" width="400px">
|
|
<el-form label-width="80px">
|
|
<el-form label-width="80px">
|
|
- <el-form-item label="选择部门" >
|
|
|
|
- <el-cascader ref="deptCascader" v-model="curDeptId" placeholder="请选择部门" style="width: 100%" @change="chooseDept"
|
|
|
|
|
|
+ <el-form-item :label="$t('other.selectdepartment')" >
|
|
|
|
+ <el-cascader ref="deptCascader" v-model="curDeptId" :placeholder="$t('qing-xuan-ze-bu-men')" style="width: 100%" @change="chooseDept"
|
|
:options="option" :props="{ checkStrictly: true,expandTrigger: 'hover' }" :show-all-levels="false" clearable></el-cascader>
|
|
:options="option" :props="{ checkStrictly: true,expandTrigger: 'hover' }" :show-all-levels="false" clearable></el-cascader>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
- <el-button type="default" @click="deleteNode" v-if="!isAdd" style="float:left;">删除</el-button>
|
|
|
|
- <el-button type="primary" @click="addNode" >确定</el-button>
|
|
|
|
|
|
+ <el-button type="default" @click="deleteNode" v-if="!isAdd" style="float:left;">{{ $t('btn.delete') }}</el-button>
|
|
|
|
+ <el-button type="primary" @click="addNode" >{{ $t('btn.determine') }}</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
<!--管理员设置 -->
|
|
<!--管理员设置 -->
|
|
- <el-dialog title="请选择审批管理员" v-if="userDialogVisible" :visible.sync="userDialogVisible" width="400px">
|
|
|
|
|
|
+ <el-dialog :title="$t('electanapprovaladministrator')" v-if="userDialogVisible" :visible.sync="userDialogVisible" width="400px">
|
|
<el-form label-width="100px">
|
|
<el-form label-width="100px">
|
|
- <el-form-item label="指定管理员" >
|
|
|
|
|
|
+ <el-form-item :label="$t('dministrator')" >
|
|
<el-select v-model="auditManagerId" >
|
|
<el-select v-model="auditManagerId" >
|
|
<el-option v-for="item in userList" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
<el-option v-for="item in userList" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
- <el-button type="primary" @click="setAuditUser" >确定</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="setAuditUser" >{{ $t('btn.determine') }}</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</section>
|
|
</section>
|
|
@@ -103,9 +103,9 @@
|
|
curUserId: null,
|
|
curUserId: null,
|
|
index:0,
|
|
index:0,
|
|
roleArray:[
|
|
roleArray:[
|
|
- {label:"项目管理员",value:5},
|
|
|
|
- {label:"部门主管",value:6},
|
|
|
|
- {label:"人事管理员",value:4},
|
|
|
|
|
|
+ {label:this.$t('role.projectManager'),value:5},
|
|
|
|
+ {label:this.$t('departmenthead'),value:6},
|
|
|
|
+ {label:this.$t('personnelAdministrator'),value:4},
|
|
],
|
|
],
|
|
dialogVisible:false,
|
|
dialogVisible:false,
|
|
editNode:{},
|
|
editNode:{},
|
|
@@ -123,7 +123,7 @@
|
|
this.sysAuditUSer = res.data;
|
|
this.sysAuditUSer = res.data;
|
|
this.userDialogVisible = false;
|
|
this.userDialogVisible = false;
|
|
this.$message({
|
|
this.$message({
|
|
- message: '设置成功',
|
|
|
|
|
|
+ message: this.$t('setupthesuccess'),
|
|
type: "success"
|
|
type: "success"
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
@@ -282,7 +282,7 @@
|
|
this.listLoading = false;
|
|
this.listLoading = false;
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '保存成功',
|
|
|
|
|
|
+ message: this.$t('savesuccess'),
|
|
type: "success"
|
|
type: "success"
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|