|
@@ -5,14 +5,14 @@
|
|
|
<!-- 日期 -->
|
|
|
<div class="budgetReviewHeader_FormItem">
|
|
|
<el-date-picker size="small" v-model="screeningConditionForm.dateRange" :editable="false"
|
|
|
- format="yyyy-MM-dd" value-format="yyyy-MM-dd" :clearable="false" :range-separator="'至'"
|
|
|
- type="daterange" :start-placeholder="'开始日期'" :end-placeholder="'结束日期'" style="width: 260px"
|
|
|
+ format="yyyy-MM-dd" value-format="yyyy-MM-dd" :clearable="false" :range-separator="$t('other.to')"
|
|
|
+ type="daterange" :start-placeholder="$t('selectstartdate')" :end-placeholder="$t('time.endDate')" style="width: 260px"
|
|
|
@change="getList"></el-date-picker>
|
|
|
</div>
|
|
|
<!-- 项目 -->
|
|
|
<div class="budgetReviewHeader_FormItem">
|
|
|
- <div class="budgetReviewHeader_FormItemText">项目:</div>
|
|
|
- <el-select v-model="screeningConditionForm.projectId" filterable placeholder="请选择项目" clearable
|
|
|
+ <div class="budgetReviewHeader_FormItemText">{{ $t('xiangMu') }}</div>
|
|
|
+ <el-select v-model="screeningConditionForm.projectId" filterable :placeholder="$t('defaultText.pleaseSelectSnItem')" clearable
|
|
|
size="small" @change="getList">
|
|
|
<el-option v-for="item in projectList" :key="item.id"
|
|
|
:label="item.projectName + '\u3000' + item.projectCode" :value="item.id">
|
|
@@ -23,8 +23,8 @@
|
|
|
</div>
|
|
|
<!-- 审核人 -->
|
|
|
<div class="budgetReviewHeader_FormItem">
|
|
|
- <div class="budgetReviewHeader_FormItemText">审核人:</div>
|
|
|
- <el-select v-model="screeningConditionForm.checkUserId" filterable placeholder="请选择审核人" clearable
|
|
|
+ <div class="budgetReviewHeader_FormItemText">{{ $t('shenHeRen') }}</div>
|
|
|
+ <el-select v-model="screeningConditionForm.checkUserId" filterable :placeholder="$t('message.Pleaseselectareviewer')" clearable
|
|
|
size="small" v-if="user.userNameNeedTranslate != 1" style="width: 130px;" @change="getList">
|
|
|
<el-option v-for="item in usersList" :key="item.id" :label="item.name + '\u3000' + item.jobNumber"
|
|
|
:value="item.id">
|
|
@@ -38,8 +38,8 @@
|
|
|
</div>
|
|
|
<!-- 审核状态 -->
|
|
|
<div class="budgetReviewHeader_FormItem">
|
|
|
- <div class="budgetReviewHeader_FormItemText">审核状态:</div>
|
|
|
- <el-select v-model="screeningConditionForm.status" filterable placeholder="请选择状态" clearable size="small"
|
|
|
+ <div class="budgetReviewHeader_FormItemText">{{ $t('other.approvalStatus') }}:</div>
|
|
|
+ <el-select v-model="screeningConditionForm.status" filterable :placeholder="$t('qingXuanZeZhuangTai')" clearable size="small"
|
|
|
style="width: 120px;" @change="getList">
|
|
|
<el-option v-for="item in auditStatus" :key="item.id" :label="item.label" :value="item.id">
|
|
|
</el-option>
|
|
@@ -47,13 +47,13 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="budgetReviewHeader_btn">
|
|
|
- <el-button type="primary" size="small" @click="exportReport" :loading="exporListLoading">导出</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="exportReport" :loading="exporListLoading">{{ $t('export.export') }}</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!--列表-->
|
|
|
<el-table :data="list" ref="multipleTable" highlight-current-row v-loading="listLoading" :height="tableHeight"
|
|
|
style="width: 100%;">
|
|
|
- <el-table-column prop="projectName" :label="'项目名称'" sortable min-width="200px">
|
|
|
+ <el-table-column prop="projectName" :label="$t('headerTop.projectName')" sortable min-width="200px">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<span>
|
|
@@ -63,7 +63,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column prop="groupName" :label="'分组名称'" sortable min-width="180px">
|
|
|
+ <el-table-column prop="groupName" :label="$t('groupname')" sortable min-width="180px">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<span>
|
|
@@ -73,7 +73,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column prop="creator" :label="'提交人'" sortable min-width="120px">
|
|
|
+ <el-table-column prop="creator" :label="$t('tiJiaoRen')" sortable min-width="120px">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<span v-if="user.userNameNeedTranslate == '1'">
|
|
@@ -86,7 +86,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column prop="createTime" :label="'提交时间'" sortable min-width="120px">
|
|
|
+ <el-table-column prop="createTime" :label="$t('tiJiaoShiJian')" sortable min-width="120px">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<span>
|
|
@@ -95,37 +95,37 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="oldManDay" :label="'变更前预估工时'" sortable min-width="150px">
|
|
|
+ <el-table-column prop="oldManDay" :label="$t('bianGengQianYuGuGongShi')" sortable min-width="150px">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<span>
|
|
|
- {{ scope.row.oldManDay }}人天 / {{ scope.row.oldEstimatedWorkTime }}小时
|
|
|
+ {{ scope.row.oldManDay }}{{ $t('renTian') }} / {{ scope.row.oldEstimatedWorkTime }} {{ $t('time.hour') }}
|
|
|
</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column prop="changeManDay" :label="'预估工时变更'" sortable min-width="150px">
|
|
|
+ <el-table-column prop="changeManDay" :label="$t('yuGuGongShiBianGeng')" sortable min-width="150px">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<span>
|
|
|
- {{ scope.row.changeManDay }}人天 / {{ scope.row.changeEstimatedWorkTime }}小时
|
|
|
+ {{ scope.row.changeManDay }}{{ $t('renTian') }} / {{ scope.row.changeEstimatedWorkTime }}{{ $t('time.hour') }}
|
|
|
</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column prop="nowManDay" :label="'变更后预估工时'" sortable min-width="150px">
|
|
|
+ <el-table-column prop="nowManDay" :label="$t('bianGengHouYuGuGongShi')" sortable min-width="150px">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<span>
|
|
|
- {{ scope.row.nowManDay }}人天 / {{ scope.row.nowEstimatedWorkTime }}小时
|
|
|
+ {{ scope.row.nowManDay }}{{ $t('renTian') }} / {{ scope.row.nowEstimatedWorkTime }}{{ $t('time.hour') }}
|
|
|
</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column prop="remark" :label="'变更理由'" sortable width="200px">
|
|
|
+ <el-table-column prop="remark" :label="$t('bianGengLiYou')" sortable width="200px">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<div v-if="scope.row.remark && scope.row.remark.length > 11">
|
|
@@ -140,7 +140,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column prop="rejectReason" :label="'驳回理由'" sortable width="200px">
|
|
|
+ <el-table-column prop="rejectReason" :label="$t('boHuiLiYou')" sortable width="200px">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<div v-if="scope.row.rejectReason && scope.row.rejectReason.length > 11">
|
|
@@ -197,9 +197,9 @@ export default {
|
|
|
searchUsersList: [],
|
|
|
projectList: [],
|
|
|
auditStatus: [
|
|
|
- { id: 1, label: '待审核' },
|
|
|
- { id: 2, label: '审核通过' },
|
|
|
- { id: 3, label: '已驳回' }
|
|
|
+ { id: 1, label: this.$t('state.WaitingAudit') },
|
|
|
+ { id: 2, label: this.$t('state.approved') },
|
|
|
+ { id: 3, label: this.$t('state.rejected') }
|
|
|
],
|
|
|
|
|
|
screeningConditionForm: {
|
|
@@ -218,15 +218,15 @@ export default {
|
|
|
methods: {
|
|
|
review(id,checkType){
|
|
|
if(checkType==2){
|
|
|
- this.$prompt('请输入驳回理由', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
+ this.$prompt(this.$t('qingShuRuBoHuiLiYou'), this.$t('other.prompts'), {
|
|
|
+ confirmButtonText: this.$t('btn.determine'),
|
|
|
+ cancelButtonText: this.$t('btn.cancel'),
|
|
|
}).then(({ value }) => {
|
|
|
this.http.post("/group-budget-review/check", {id:id,checkType:checkType,rejectReason:value},
|
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
|
this.$message({
|
|
|
- message:"操作成功",
|
|
|
+ message:this.$t('operationissuccessful'),
|
|
|
type: "success"
|
|
|
});
|
|
|
this.getList();
|
|
@@ -246,7 +246,7 @@ export default {
|
|
|
}).catch(() => {
|
|
|
this.$message({
|
|
|
type: 'info',
|
|
|
- message: '取消驳回'
|
|
|
+ message: this.$t('quXiaoBoHui')
|
|
|
});
|
|
|
});
|
|
|
}else{
|
|
@@ -254,7 +254,7 @@ export default {
|
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
|
this.$message({
|
|
|
- message:"操作成功",
|
|
|
+ message:this.$t('operationissuccessful'),
|
|
|
type: "success"
|
|
|
});
|
|
|
this.getList();
|
|
@@ -382,7 +382,7 @@ export default {
|
|
|
if (res.code == "ok") {
|
|
|
var filePath = res.data;
|
|
|
const a = document.createElement('a'); // 创建a标签
|
|
|
- a.setAttribute('download', '预估工时审核');// download属性
|
|
|
+ a.setAttribute('download', this.$t('navigation.budgetReview'));// download属性
|
|
|
a.setAttribute('href', filePath);// href链接
|
|
|
a.click(); //自执行点击事件
|
|
|
a.remove();
|