|
@@ -3,20 +3,20 @@
|
|
|
<!--工具条-->
|
|
|
<el-col :span="24" class="toolbar" style="padding-bottom: 0px;">
|
|
|
<el-form :inline="true">
|
|
|
- <el-form-item label="部门" style="width: 165px">
|
|
|
- <el-cascader v-model="search.departmentIdArray" placeholder="请选择部门" style="width: 125px"
|
|
|
+ <el-form-item :label="$t('lable.department')" style="width: 165px">
|
|
|
+ <el-cascader v-model="search.departmentIdArray" :placeholder="$t('qing-xuan-ze-bu-men')" style="width: 125px"
|
|
|
:options="option" :props="{ checkStrictly: false,expandTrigger: 'hover' }" :show-all-levels="false" clearable
|
|
|
@change="getList(1)" size="mini"
|
|
|
></el-cascader>
|
|
|
<!-- <el-button @click="test" size="mini">test</el-button> -->
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="人员" style="width: 210px">
|
|
|
- <el-select v-model="search.userIdArray" placeholder="请选择" clearable @visible-change="usersSearch" @remove-tag="usersSearch(false)" @clear="usersSearch(false)" filterable="true" size="mini" style="width: 150px" multiple collapse-tags>
|
|
|
+ <el-form-item :label="$t('ren-yuan')" style="width: 210px">
|
|
|
+ <el-select v-model="search.userIdArray" :placeholder="$t('defaultText.pleaseChoose')" clearable @visible-change="usersSearch" @remove-tag="usersSearch(false)" @clear="usersSearch(false)" filterable="true" size="mini" style="width: 150px" multiple collapse-tags>
|
|
|
<el-option v-for="item in searchUsersList" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="项目" style="width: 215px">
|
|
|
- <el-select v-model="search.projectId" placeholder="请选择" clearable @change="getList()" filterable="true" size="mini" style="width: 175px" popper-class="projectSelectPopperClass">
|
|
|
+ <el-form-item :label="$t('other.project')" style="width: 215px">
|
|
|
+ <el-select v-model="search.projectId" :placeholder="$t('defaultText.pleaseChoose')" clearable @change="getList()" filterable="true" size="mini" style="width: 175px" popper-class="projectSelectPopperClass">
|
|
|
<el-option v-for="item in projectList" :key="item.id" :label="item.projectName + item.projectCode" :value="item.id">
|
|
|
<span style="float: left;color: #8492a6;">{{ item.projectCode }}</span>
|
|
|
<span style="float: right;font-size: 13px;margin-left: 20px">{{ item.projectName }}</span>
|
|
@@ -29,25 +29,25 @@
|
|
|
</el-form-item> -->
|
|
|
<!-- <div> -->
|
|
|
|
|
|
- <el-form-item label="日期">
|
|
|
+ <el-form-item :label="$t('weekDay.date')">
|
|
|
<!-- <el-date-picker v-model="search.date" :editable="false" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
|
|
|
@change="getList()" :clearable="true" type="date" placeholder="选择工作日期"></el-date-picker> -->
|
|
|
<el-date-picker
|
|
|
v-model="dataTime"
|
|
|
type="daterange"
|
|
|
- range-separator="至"
|
|
|
- start-placeholder="工作开始日期"
|
|
|
- end-placeholder="工作结束日期"
|
|
|
+ :range-separator="$t('other.to')"
|
|
|
+ :start-placeholder="$t('time.startDate')"
|
|
|
+ :end-placeholder="$t('time.endDate')"
|
|
|
format="yyyy-MM-dd" value-format="yyyy-MM-dd" @change="dataTimes()" size="mini">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item style="margin-left:20px;">
|
|
|
- <el-button @click="batchApprove(true)" style="margin-left:10px;" :loading="batchApproveLoading" :disabled="multipleSelection.length==0" size="mini">批量通过</el-button>
|
|
|
- <el-button @click="batchApprove(false)" :disabled="multipleSelection.length==0" size="mini">批量驳回</el-button>
|
|
|
+ <el-button @click="batchApprove(true)" style="margin-left:10px;" :loading="batchApproveLoading" :disabled="multipleSelection.length==0" size="mini">{{ $t('Batchthrough') }}</el-button>
|
|
|
+ <el-button @click="batchApprove(false)" :disabled="multipleSelection.length==0" size="mini">{{ $t('Batchrejected') }}</el-button>
|
|
|
</el-form-item>
|
|
|
<el-form-item style="margin-left:20px;">
|
|
|
- <el-link type="primary" @click="recordList(),recordDialogVisible = true,pageIndexList = 1,pageSizeList = 20">审核记录</el-link>
|
|
|
+ <el-link type="primary" @click="recordList(),recordDialogVisible = true,pageIndexList = 1,pageSizeList = 20">{{ $t('Auditrecords') }}</el-link>
|
|
|
</el-form-item>
|
|
|
<!-- </div> -->
|
|
|
</el-form>
|
|
@@ -61,18 +61,18 @@
|
|
|
<el-timeline>
|
|
|
<el-timeline-item v-for="(item,index) in props.row.data" :key="index">
|
|
|
<el-card shadow="never">
|
|
|
- <p>项目:<b>{{item.project}}<span v-if="item.subProjectName != null"> / {{item.subProjectName}}</span>
|
|
|
+ <p>{{ $t('other.project') + ':' }}<b>{{item.project}}<span v-if="item.subProjectName != null"> / {{item.subProjectName}}</span>
|
|
|
<span style="margin-left:15px;color:#DAA520;" >[
|
|
|
<span v-if="item.isDeptAudit==0">
|
|
|
<span v-if="item.projectAuditState==0">
|
|
|
- 待项目审核人<span v-if="item.projectAuditorName != null">({{item.projectAuditorName}})</span>审核
|
|
|
+ {{ $t('other.waitForTheProjectReviewer') }}<span v-if="item.projectAuditorName != null">({{item.projectAuditorName}})</span>{{ $t('other.audit') }}
|
|
|
</span>
|
|
|
<span style="color:#32CD32;" v-else-if="item.projectAuditState==1">
|
|
|
- 项目审核人<span v-if="item.projectAuditorName != null">({{item.projectAuditorName}})</span>审核通过
|
|
|
+ {{ $t('other.projectAuditor') }}<span v-if="item.projectAuditorName != null">({{item.projectAuditorName}})</span>{{ $t('state.approved') }}
|
|
|
</span>
|
|
|
</span>
|
|
|
<span v-else-if="item.isDeptAudit==1">
|
|
|
- {{('待'+item.auditDeptName+('('+item.deptAuditorName+')')+'审核')}}
|
|
|
+ {{($t('other.await') +item.auditDeptName+('('+item.deptAuditorName+')')+ $t('other.audit'))}}
|
|
|
</span>
|
|
|
]
|
|
|
</span>
|
|
@@ -81,40 +81,39 @@
|
|
|
<p v-if="user.timeType.customDataActive==1">{{user.timeType.customDataName}}:{{item.customData}}</p>
|
|
|
<p v-if="user.timeType.customTextActive==1">{{user.timeType.customTextName}}:{{item.customText}}</p>
|
|
|
<p v-if="user.company.packageEngineering == 1">
|
|
|
- 专业进度:
|
|
|
- <span style="margin-right:10px;" v-for="progressItem in item.professionProgressList" :key="progressItem.id">
|
|
|
+ {{ $t('other.professionalProgress') +':'}} <span style="margin-right:10px;" v-for="progressItem in item.professionProgressList" :key="progressItem.id">
|
|
|
{{progressItem.professionName}}({{progressItem.progress}}%)
|
|
|
- <el-tooltip v-if="progressItem.auditState == 0" content="待审核" effect="light" placement="top">
|
|
|
+ <el-tooltip v-if="progressItem.auditState == 0" :content="$t('state.WaitingAudit')" effect="light" placement="top">
|
|
|
<i class="iconfont firerock-icondaibandengdaishenhe"></i>
|
|
|
</el-tooltip>
|
|
|
- <el-tooltip v-if="progressItem.auditState == 1" content="已通过" effect="light" placement="top">
|
|
|
+ <el-tooltip v-if="progressItem.auditState == 1" :content="$t('state.alreadyPassed')" effect="light" placement="top">
|
|
|
<i class="iconfont firerock-iconshenhetongguo"></i>
|
|
|
</el-tooltip>
|
|
|
- <el-tooltip v-if="progressItem.auditState == 2" content="不通过" effect="light" placement="top">
|
|
|
+ <el-tooltip v-if="progressItem.auditState == 2" :content="$t('state.notThrough')" effect="light" placement="top">
|
|
|
<i class="iconfont firerock-iconshenhebohui"></i>
|
|
|
</el-tooltip>
|
|
|
</span>
|
|
|
</p>
|
|
|
- <p v-if="item.taskId != null">任务:{{item.taskName}}</p>
|
|
|
+ <p v-if="item.taskId != null">{{$t('other.task')}}:{{item.taskName}}</p>
|
|
|
<p v-if="item.groupId">
|
|
|
- <span>任务分组:{{item.groupName}}</span>
|
|
|
+ <span>{{$t('other.taskGroup')}}:{{item.groupName}}</span>
|
|
|
<!-- 阶段 -->
|
|
|
- <span v-if="item.stage != null" style="margin-left:10px;"> 投入阶段:{{item.stage}}</span>
|
|
|
+ <span v-if="item.stage != null" style="margin-left:10px;"> {{$t('other.inputStage')}}:{{item.stage}}</span>
|
|
|
</p>
|
|
|
- <p><span v-if="item.multiWorktime==1">项目</span>时长:{{item.time.toFixed(1)}}h <span class="propsbtn" v-if="item.isOvertime === 1">
|
|
|
- <el-tag type="danger" size="mini" style="margin-left: 65px">加班<span v-if="item.overtimeHours">{{item.overtimeHours.toFixed(1)}}小时</span></el-tag></span>
|
|
|
+ <p><span v-if="item.multiWorktime==1">{{ $t('other.project') }}</span>{{$t('time.duration')}}:{{item.time.toFixed(1)}}h <span class="propsbtn" v-if="item.isOvertime === 1">
|
|
|
+ <el-tag type="danger" size="mini" style="margin-left: 65px">{{ $t('other.WorkOvertime') }}<span v-if="item.overtimeHours">{{item.overtimeHours.toFixed(1)}}{{$t('time.hour')}}</span></el-tag></span>
|
|
|
</p>
|
|
|
<div v-if="item.multiWorktime==0">
|
|
|
- <p>事项:<span v-html="item.content"></span></p>
|
|
|
+ <p>{{ $t('other.matters') }}:<span v-html="item.content"></span></p>
|
|
|
</div>
|
|
|
<div v-if="item.multiWorktime==1" >
|
|
|
<div v-for="(timeItem, tIndex) in item.worktimeList" :key="tIndex"
|
|
|
style="border: 0.5px #ddd solid;margin:5px 0px;padding:5px; ">
|
|
|
- <p style="line-height:20px;margin:5px 0px;">时长:
|
|
|
+ <p style="line-height:20px;margin:5px 0px;">{{$t('time.duration')}}:
|
|
|
<span v-if="item.reportTimeType == 2" style="margin-right:10px;">{{timeItem.startTime+'-'+timeItem.endTime}}</span>
|
|
|
{{timeItem.time.toFixed(1)}}h
|
|
|
</p>
|
|
|
- <p style="line-height:20px;margin:5px 0px;">事项:<span v-html="timeItem.content"></span></p>
|
|
|
+ <p style="line-height:20px;margin:5px 0px;">{{ $t('other.matters') }}:<span v-html="timeItem.content"></span></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -132,52 +131,52 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column prop="name" label="姓名" sortable></el-table-column>
|
|
|
- <el-table-column prop="departmentName" label="部门" sortable></el-table-column>
|
|
|
- <el-table-column prop="dateStr" label="日期" sortable>
|
|
|
+ <el-table-column prop="name" :label="$t('lable.name')" sortable></el-table-column>
|
|
|
+ <el-table-column prop="departmentName" :label="$t('lable.department')" sortable></el-table-column>
|
|
|
+ <el-table-column prop="dateStr" :label="$t('weekDay.date')" sortable>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="reportTime" label="工作时长(h)" >
|
|
|
+ <el-table-column prop="reportTime" :label="$t('screening.workTime') + '(h)'" >
|
|
|
<template slot-scope="scope">
|
|
|
{{scope.row.reportTime | amounts}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="cardHours" label="考勤时长(h)" v-if="user.timeType.showCorpwxCardtime==1||user.timeType.showDdCardtime==1">
|
|
|
+ <el-table-column prop="cardHours" :label="$t('workAttendance') + '(h)'" v-if="user.timeType.showCorpwxCardtime==1||user.timeType.showDdCardtime==1">
|
|
|
<template slot-scope="scope">
|
|
|
{{scope.row.cardHours?scope.row.cardHours.toFixed(1):'-'}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="state" label="状态" sortable>
|
|
|
+ <el-table-column prop="state" :label="$t('state.states')" sortable>
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.state == 0" style="color:#DAA520;">{{scope.row.isDeptAudit==0?'待项目审核人审核':('待'+scope.row.auditDeptName+('('+scope.row.deptAuditorName+')')+'审核')}}</span>
|
|
|
- <span v-else-if="scope.row.state == 1" style="color:#32CD32;">已通过</span>
|
|
|
- <span v-else-if="scope.row.state == 2" style="color:#FF0000;">已驳回</span>
|
|
|
+ <span v-if="scope.row.state == 0" style="color:#DAA520;">{{scope.row.isDeptAudit==0?$t('other.Tobereviewedbytheprojectreviewer'):($t('other.await')+scope.row.auditDeptName+('('+scope.row.deptAuditorName+')')+$t('other.audit'))}}</span>
|
|
|
+ <span v-else-if="scope.row.state == 1" style="color:#32CD32;">{{ $t('state.alreadyPassed') }}</span>
|
|
|
+ <span v-else-if="scope.row.state == 2" style="color:#FF0000;">{{ $t('state.rejected') }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" width="220">
|
|
|
+ <el-table-column :label="$t('operation')" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="primary" :loading="logining" size="small" @click="approve(scope.row.id,scope.row.date, scope.row)">通过</el-button>
|
|
|
- <el-button type="danger" :loading="logining" size="small" @click="showDenyDialog(scope.row.id,0,scope.row.dateStr, scope.row)">驳回</el-button>
|
|
|
+ <el-button type="primary" :loading="logining" size="small" @click="approve(scope.row.id,scope.row.date, scope.row)">{{ $t('btn.through') }}</el-button>
|
|
|
+ <el-button type="danger" :loading="logining" size="small" @click="showDenyDialog(scope.row.id,0,scope.row.dateStr, scope.row)">{{ $t('btn.rejected') }}</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<!--驳回弹出框 -->
|
|
|
- <el-dialog title="请输入原因" v-if="denyReasonDialog" :visible.sync="denyReasonDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
|
|
|
+ <el-dialog :title="$t('defaultText.pleaseEnterTheReason')" v-if="denyReasonDialog" :visible.sync="denyReasonDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
|
|
|
<div>
|
|
|
- <el-input type="textarea" v-model="denyForm.reason" rows="2" :placeholder="'请输入您决定'+(denyForm.i==0?'驳回':'撤销')+'的原因'" />
|
|
|
+ <el-input type="textarea" v-model="denyForm.reason" rows="2" :placeholder="$t('defaultText.pleaseEnterYourDecision')+(denyForm.i==0?$t('btn.rejected'):$t('btn.undo'))+$t('other.reason')" />
|
|
|
</div>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="denyReasonDialog = false" >取消</el-button>
|
|
|
- <el-button type="primary" @click="deny()" >确定</el-button>
|
|
|
+ <el-button @click="denyReasonDialog = false" >{{ $t('btn.cancel') }}</el-button>
|
|
|
+ <el-button type="primary" @click="deny()" >{{ $t('btn.determine') }}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!--批量驳回弹出框 -->
|
|
|
- <el-dialog title="请输入原因" v-if="batchDenyDialog" :visible.sync="batchDenyDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
|
|
|
+ <el-dialog :title="$t('defaultText.pleaseEnterTheReason')" v-if="batchDenyDialog" :visible.sync="batchDenyDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
|
|
|
<div>
|
|
|
- <el-input type="textarea" v-model="batchDenyData.reason" rows="2" placeholder="请输入您决定驳回的原因" />
|
|
|
+ <el-input type="textarea" v-model="batchDenyData.reason" rows="2" :placeholder="$t('reasonforyourdecisiontoreject')" />
|
|
|
</div>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="batchDenyDialog = false" >取消</el-button>
|
|
|
- <el-button type="primary" @click="batchDenyClick()" :loading="batchDenyLoading">确定</el-button>
|
|
|
+ <el-button @click="batchDenyDialog = false" >{{ $t('btn.cancel') }}</el-button>
|
|
|
+ <el-button type="primary" @click="batchDenyClick()" :loading="batchDenyLoading">{{ $t('btn.determine') }}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!--工具条-->
|
|
@@ -195,14 +194,14 @@
|
|
|
|
|
|
|
|
|
<!-- 审核记录弹窗 -->
|
|
|
- <el-dialog title="审核记录" :visible.sync="recordDialogVisible" width="1000px" :before-close="handleClose">
|
|
|
+ <el-dialog :title="$t('Auditrecords')" :visible.sync="recordDialogVisible" width="1000px" :before-close="handleClose">
|
|
|
<div style="height: 430px">
|
|
|
<el-table :data="recordLists" style="width: 100%" height="400">
|
|
|
- <el-table-column prop="userName" label="操作人" width="120"></el-table-column>
|
|
|
+ <el-table-column prop="userName" :label="$t('other.operator')" width="120"></el-table-column>
|
|
|
|
|
|
- <el-table-column prop="indate" label="审核时间"></el-table-column>
|
|
|
- <el-table-column prop="result" label="审核结果" width="120" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="date" label="员工/日期" width="200">
|
|
|
+ <el-table-column prop="indate" :label="$t('AuditTime')"></el-table-column>
|
|
|
+ <el-table-column prop="result" :label="$t('Reviewtheresults')" width="120" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column prop="date" :label="$t('EmployeeDate')" width="200">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<div v-if="scope.row.membdateList.length > 1">
|
|
@@ -227,15 +226,15 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="projectName" label="项目" width="200" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="date" label="操作" width="100">
|
|
|
+ <el-table-column prop="projectName" :label="$t('other.project')" width="200" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column prop="date" :label="$t('operation')" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<template v-if="scope.row.membdateList.length < 2 && scope.row.flg">
|
|
|
- <el-button type="warning" size="mini" v-if="scope.row.membdateList[0].state == 1" @click="undoCli(scope.row, 0)">撤销</el-button>
|
|
|
- <el-link type="info" v-else :underline="false">{{scope.row.membdateList[0].state == 2 ? '已驳回' : '已撤销'}}</el-link>
|
|
|
+ <el-button type="warning" size="mini" v-if="scope.row.membdateList[0].state == 1" @click="undoCli(scope.row, 0)">{{ $t('btn.undo') }}</el-button>
|
|
|
+ <el-link type="info" v-else :underline="false">{{scope.row.membdateList[0].state == 2 ? $t('state.rejected') : $t('state.undone')}}</el-link>
|
|
|
</template>
|
|
|
- <el-button size="mini" v-if="scope.row.membdateList.length >= 2 && scope.row.flg" @click="detailsClick(scope.row, scope.$index)">详情</el-button>
|
|
|
+ <el-button size="mini" v-if="scope.row.membdateList.length >= 2 && scope.row.flg" @click="detailsClick(scope.row, scope.$index)">{{ $t('details') }}</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -254,51 +253,51 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!-- 审核记录撤销 -->
|
|
|
- <el-dialog title="请输入原因" v-if="undoFormDialog" :visible.sync="undoFormDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
|
|
|
+ <el-dialog :title="$t('defaultText.pleaseEnterTheReason')" v-if="undoFormDialog" :visible.sync="undoFormDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
|
|
|
<div>
|
|
|
- <el-input type="textarea" v-model="undoForm.reason" rows="2" placeholder="请输入您决定撤销的原因" />
|
|
|
+ <el-input type="textarea" v-model="undoForm.reason" rows="2" :placeholder="$t('yourdecisiontorevoke')" />
|
|
|
</div>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="undoFormDialog = false" >取消</el-button>
|
|
|
- <el-button type="primary" @click="clickCancel()" :loading="undoFormLoading">确定</el-button>
|
|
|
+ <el-button @click="undoFormDialog = false" >{{ $t('btn.cancel') }}</el-button>
|
|
|
+ <el-button type="primary" @click="clickCancel()" :loading="undoFormLoading">{{ $t('btn.determine') }}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!-- 审核记录详情列表 -->
|
|
|
- <el-dialog title="审核记录" v-if="detailsDialog" :visible.sync="detailsDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
|
|
|
+ <el-dialog :title="$t('Auditrecords')" v-if="detailsDialog" :visible.sync="detailsDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
|
|
|
<div>
|
|
|
<el-table :data="detailsList" style="width: 100%">
|
|
|
- <el-table-column prop="userName" label="员工/日期">
|
|
|
+ <el-table-column prop="userName" :label="$t('EmployeeDate')">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
{{scope.row.userName}}/{{scope.row.createDate}}
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="date" label="操作" width="80">
|
|
|
+ <el-table-column prop="date" :label="$t('operation')" width="80">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
- <el-button type="warning" size="mini" @click="undoCli(scope.row, 1)" v-if="scope.row.state == 1">撤销</el-button>
|
|
|
+ <el-button type="warning" size="mini" @click="undoCli(scope.row, 1)" v-if="scope.row.state == 1">{{ $t('btn.undo') }}</el-button>
|
|
|
<!-- <div >{{scope.row.state == 2 ? '已驳回' : '已撤销'}}</div> -->
|
|
|
- <el-link type="info" v-else :underline="false">{{scope.row.state == 2 ? '已驳回' : '已撤销'}}</el-link>
|
|
|
+ <el-link type="info" v-else :underline="false">{{scope.row.state == 2 ? $t('state.rejected') : $t('state.undone')}}</el-link>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="detailsDialog = false" size="mini">取消</el-button>
|
|
|
+ <el-button @click="detailsDialog = false" size="mini">{{ $t('btn.cancel') }}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 审核通过评价 -->
|
|
|
- <el-dialog title="请输入通过评价" v-if="approveinDialog" :visible.sync="approveinDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
|
|
|
+ <el-dialog :title="$t('enterapassrating')" v-if="approveinDialog" :visible.sync="approveinDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
|
|
|
<div>
|
|
|
- <el-input type="textarea" v-model="approveinData.evaluate" rows="2" placeholder="请输入您决定通过的评价" />
|
|
|
+ <el-input type="textarea" v-model="approveinData.evaluate" rows="2" :placeholder="$t('defaultText.Pleaseenterthereviewyoudecidetopass')" />
|
|
|
</div>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="approveinDialog = false" >取消</el-button>
|
|
|
- <el-button type="primary" @click="batchApproveinfun()" v-if="isbatch">确定</el-button>
|
|
|
- <el-button type="primary" @click="approveinfun()" v-else>确定</el-button>
|
|
|
+ <el-button @click="approveinDialog = false" >{{ $t('btn.cancel') }}</el-button>
|
|
|
+ <el-button type="primary" @click="batchApproveinfun()" v-if="isbatch">{{ $t('btn.determine') }}</el-button>
|
|
|
+ <el-button type="primary" @click="approveinfun()" v-else>{{ $t('btn.determine') }}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</section>
|
|
@@ -386,7 +385,7 @@
|
|
|
this.undoFormLoading = false
|
|
|
if (res.code == "ok") {
|
|
|
this.$message({
|
|
|
- message: '撤销成功',
|
|
|
+ message: this.$t('Revocationofsuccess'),
|
|
|
type: "success"
|
|
|
});
|
|
|
this.undoFormDialog = false
|
|
@@ -437,7 +436,7 @@
|
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
|
for (var i in res.data.records) {
|
|
|
- res.data.records[i].result.indexOf('通过') == '-1' ? res.data.records[i].flg = false : res.data.records[i].flg = true
|
|
|
+ res.data.records[i].result.indexOf(this.$t('btn.through')) == '-1' ? res.data.records[i].flg = false : res.data.records[i].flg = true
|
|
|
}
|
|
|
this.recordLists = res.data.records
|
|
|
this.totals = res.data.total
|
|
@@ -682,7 +681,7 @@
|
|
|
if (res.code == "ok") {
|
|
|
this.approveinDialog = false
|
|
|
this.$message({
|
|
|
- message: "审核成功",
|
|
|
+ message: this.$t('message.Reviewsucceeded'),
|
|
|
type: "success"
|
|
|
});
|
|
|
this.getList();
|
|
@@ -758,7 +757,7 @@
|
|
|
this.logining = false;
|
|
|
if (res.code == "ok") {
|
|
|
this.$message({
|
|
|
- message: this.denyForm.i==0?"驳回成功":"撤销成功",
|
|
|
+ message: this.denyForm.i==0?this.$t('message.rejectedsuccessfully'):this.$t('Revocationofsuccess'),
|
|
|
type: "success"
|
|
|
});
|
|
|
this.getList();
|