|
@@ -50,7 +50,7 @@
|
|
|
<div class="contents">
|
|
|
<div v-if="!displayTable" class="headine" ref="headine">
|
|
|
<!-- <h3 ref="headHe" style="padding-left: 220px">{{shuz[ins]}}</h3> -->
|
|
|
- <h3 ref="headHe" style="padding-left: 220px">费用填报</h3>
|
|
|
+ <h3 ref="headHe" style="padding-left: 220px">{{ $t('expenses') }}</h3>
|
|
|
<p style="float: right;margin-right: 25px;"><el-button type="primary" @click="submits" size="mini">{{
|
|
|
$t('btn.submit') }}</el-button></p>
|
|
|
<p style="float: right;margin-right: 25px;"><el-button type="primary" @click="submitUpload" size="mini">{{
|
|
@@ -58,7 +58,7 @@
|
|
|
<p style="float: right;margin-right: 25px;"><el-button type="primary" @click="customTypeOp" size="mini"
|
|
|
v-if="permissions.costAll">{{ $t('expensetypemanagement') }}</el-button></p>
|
|
|
<p style="float: right;margin-right: 25px;"><el-button type="primary" @click="expenseTypeOp" size="mini"
|
|
|
- v-if="permissions.costAll">费用主类型管理</el-button></p>
|
|
|
+ v-if="permissions.costAll">{{ $t('feiYongZhuLeiXingGuanLi') }}</el-button></p>
|
|
|
</div>
|
|
|
<!-- 上面部分 -->
|
|
|
<div ref="staff" style="margin: 20px 20px 0 220px; width: 81.5%">
|
|
@@ -95,16 +95,16 @@
|
|
|
<el-input v-model="addForm.ticketNum" style="width: 150px"></el-input>
|
|
|
</el-form-item>
|
|
|
<!-- 费用主类型 -->
|
|
|
- <el-form-item :label="'费用主类型'">
|
|
|
+ <el-form-item :label="$t('feiYongZhuLeiXing')">
|
|
|
<el-select v-model="expenseMainTypeValue" style="width: 150px" @change="this.getExpList">
|
|
|
<el-option v-for="item in expenseMainTypes" :key="item.id" :label="item.name"
|
|
|
:value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!-- 第一审核人 -->
|
|
|
- <el-form-item label="第一审核人" v-if="auditTypeItem.auditType == 2">
|
|
|
+ <el-form-item :label="$t('di-yi-shen-he-ren')" v-if="auditTypeItem.auditType == 2">
|
|
|
<el-select v-if="user.userNameNeedTranslate != '1'" v-model="addForm.firstCheckerId"
|
|
|
- :placeholder="'请选择审核人'" style="width: 150px"
|
|
|
+ :placeholder="$t('message.Pleaseselectareviewer')" style="width: 150px"
|
|
|
filterable="true">
|
|
|
<span v-for="(item, index) in usersNoInfo" :key="index">
|
|
|
<el-option :label="item.name" :value="item.id"></el-option>
|
|
@@ -116,9 +116,9 @@
|
|
|
@selectCal="selectCal"></selectCat>
|
|
|
</el-form-item>
|
|
|
<!-- 第一审核人 -->
|
|
|
- <el-form-item label="第二审核人" v-if="auditTypeItem.auditType == 2">
|
|
|
+ <el-form-item :label="$t('di-er-shen-he-ren')" v-if="auditTypeItem.auditType == 2">
|
|
|
<el-select v-if="user.userNameNeedTranslate != '1'" v-model="addForm.secondCheckerId"
|
|
|
- :placeholder="'请选择审核人'" style="width: 150px"
|
|
|
+ :placeholder="$t('message.Pleaseselectareviewer')" style="width: 150px"
|
|
|
filterable="true">
|
|
|
<span v-for="(item, index) in usersNoInfo" :key="index">
|
|
|
<el-option :label="item.name" :value="item.id"></el-option>
|
|
@@ -229,10 +229,10 @@
|
|
|
-->
|
|
|
<div>
|
|
|
<div v-if="scope.row.pic && scope.row.pic.length > 0">
|
|
|
- <el-button size="small" @click="viewDetailsImage(scope.$index)">查看详情</el-button>
|
|
|
+ <el-button size="small" @click="viewDetailsImage(scope.$index)">{{ $t('Checkthedetails') }}</el-button>
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
- <el-button type="primary" size="small" @click="performCustomization(scope.$index)" :loading="listLoading">点击上传</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="performCustomization(scope.$index)" :loading="listLoading">{{ $t('clickupload') }}</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -252,7 +252,7 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- 多张图片查看详情 -->
|
|
|
- <el-dialog title="查看详情" :visible.sync="dialogVisibleImage" width="745px" :before-close="handleClose">
|
|
|
+ <el-dialog :title="$t('Checkthedetails')" :visible.sync="dialogVisibleImage" width="745px" :before-close="handleClose">
|
|
|
<div class="dayImge">
|
|
|
<div class="dayImgeItem" v-if="dialogVisibleImageList">
|
|
|
<viewer :images="dialogVisibleImageList" v-viewer="viewerOptions" class="dayImgeItem">
|
|
@@ -304,8 +304,8 @@
|
|
|
style="width: 120px"></el-input>
|
|
|
</el-form-item>
|
|
|
<!-- 费用主类型 -->
|
|
|
- <el-form-item :label="'费用主类型'">
|
|
|
- <el-select size="small" v-model="queryExpenseMainType" style="width: 150px" clearable placeholder="全部类型">
|
|
|
+ <el-form-item :label="$t('feiYongZhuLeiXing')">
|
|
|
+ <el-select size="small" v-model="queryExpenseMainType" style="width: 150px" clearable :placeholder="$t('typesof')">
|
|
|
<el-option v-for="item in expenseMainTypes" :key="item.id" :label="item.name"
|
|
|
:value="item.id"></el-option>
|
|
|
<!-- <el-option :label="$t('yi-ban')" :value="0"></el-option>
|
|
@@ -313,16 +313,16 @@
|
|
|
<el-option :label="$t('wai-bao')" :value="2"></el-option> -->
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item :label="'发放状态'" v-if="permissions.costExpenseRelease">
|
|
|
+ <el-form-item :label="$t('faFangZhuangTai')" v-if="permissions.costExpenseRelease">
|
|
|
<el-select v-model="sendState" size="small" style="width: 150px"
|
|
|
clearable>
|
|
|
- <el-option :label="'未发放'" :value="0"></el-option>
|
|
|
- <el-option :label="'已发放'" :value="1"></el-option>
|
|
|
+ <el-option :label="$t('weiFaFang')" :value="0"></el-option>
|
|
|
+ <el-option :label="$t('yiFaFang')" :value="1"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<!-- 填报日期 -->
|
|
|
<div style="display: inline-block;">
|
|
|
- <el-form-item :label="'项目'">
|
|
|
+ <el-form-item :label="$t('other.project')">
|
|
|
<el-select v-model="selectProject" size="small" style="width: 162px" clearable filterable>
|
|
|
<el-option v-for="item in projectList" :label="item.projectName" :value="item.id" :key="item.id">
|
|
|
<span style="float: left">{{ item.projectName }}</span>
|
|
@@ -340,13 +340,13 @@
|
|
|
<el-button @click="getList" size="small">{{ $t('find') }}</el-button>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="currentClick == '2-1'">
|
|
|
- <el-button @click="exportDocument()" size="small">单据导出</el-button>
|
|
|
+ <el-button @click="exportDocument()" size="small">{{ $t('danJuDaoChu') }}</el-button>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="currentClick == '2-1' && permissions.costExpenseRelease">
|
|
|
- <el-button @click="documentIssuance(1)" size="small">发放</el-button>
|
|
|
+ <el-button @click="documentIssuance(1)" size="small">{{ $t('faFang') }}</el-button>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="currentClick == '2-1' && permissions.costExpenseRelease">
|
|
|
- <el-button @click="documentIssuance(0)" size="small">取消发放</el-button>
|
|
|
+ <el-button @click="documentIssuance(0)" size="small">{{ $t('quXiaoFaFang') }}</el-button>
|
|
|
</el-form-item>
|
|
|
<!-- <span>审核模式:{{ auditTypeItem.auditType }}</span> -->
|
|
|
</div>
|
|
@@ -397,11 +397,11 @@
|
|
|
<span v-if="scope.row.status == 0 || scope.row.status == 3">{{ statusTxt[scope.row.status] }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="reviewProcess" :label="'审核流程'" width="180" v-if="auditTypeItem.auditType == 2">
|
|
|
+ <el-table-column prop="reviewProcess" :label="{{ $t('title.reviewProcess') }}" width="180" v-if="auditTypeItem.auditType == 2">
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.reviewProcess == 0">待第一审核人审核</span>
|
|
|
- <span v-if="scope.row.reviewProcess == 1">待第二审核人审核</span>
|
|
|
- <span v-if="scope.row.reviewProcess == 2">审核完成</span>
|
|
|
+ <span v-if="scope.row.reviewProcess == 0">{{ $t('daiDiYiShenHeRenShenHe') }}</span>
|
|
|
+ <span v-if="scope.row.reviewProcess == 1">{{ $t('daiDiErShenHeRenShenHe') }}</span>
|
|
|
+ <span v-if="scope.row.reviewProcess == 2">{{ $t('shenHeWanCheng') }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<!-- <el-table-column prop="denyReason" :label="$t('dismissreason')" width="180">
|
|
@@ -409,13 +409,13 @@
|
|
|
<span style="font-size:12px;">{{scope.row.denyReason}}</span>
|
|
|
</template>
|
|
|
</el-table-column> -->
|
|
|
- <el-table-column prop="sendState" label="发放状态" width="80" v-if="permissions.costExpenseRelease">
|
|
|
+ <el-table-column prop="sendState" :label="$t('faFangZhuangTai')" width="80" v-if="permissions.costExpenseRelease">
|
|
|
<template slot-scope="scope">
|
|
|
- <span :style="`color: ${scope.row.sendState == 0 ? '#FFA500' : ''}`">{{ scope.row.sendState == 1 ? '已发放' :
|
|
|
+ <span :style="`color: ${scope.row.sendState == 0 ? '#FFA500' : ''}`">{{ scope.row.sendState == 1 ? $t('yiFaFang') :
|
|
|
'未发放' }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="payWayName" label="支付方式" width="80" v-if="permissions.costExpenseRelease">
|
|
|
+ <el-table-column prop="payWayName" :label="$t('zhiFuFangShi')" width="80" v-if="permissions.costExpenseRelease">
|
|
|
</el-table-column>
|
|
|
<el-table-column fixed="right" :label="$t('operation')" :width="isAuditList ? 220 : 160">
|
|
|
<template slot-scope="scope">
|
|
@@ -438,7 +438,7 @@
|
|
|
$t('btn.rejected') }}</el-button>
|
|
|
</div>
|
|
|
<div v-if="auditTypeItem.auditType == 1">
|
|
|
- <el-button size="mini" @click.stop.native="approve(scope.row)">审核</el-button>
|
|
|
+ <el-button size="mini" @click.stop.native="approve(scope.row)">{{ $t('other.audit') }}</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -455,7 +455,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 我的单据报销展示 -->
|
|
|
- <el-dialog title="报销凭证详情" :visible.sync="dialog" width="1000px">
|
|
|
+ <el-dialog :title="$t('detailsofReimbursementvoucher')" :visible.sync="dialog" width="1000px">
|
|
|
<!-- 内容主体 -->
|
|
|
<div class="informant"><!-- 报销人 -->
|
|
|
<el-form :model="ParticularsList" label-width="100px">
|
|
@@ -477,9 +477,9 @@
|
|
|
|
|
|
</el-form-item>
|
|
|
<!-- 第一审核人 -->
|
|
|
- <el-form-item label="第一审核人" v-if="auditTypeItem.auditType == 2">
|
|
|
+ <el-form-item :label="$t('di-yi-shen-he-ren')" v-if="auditTypeItem.auditType == 2">
|
|
|
<el-select v-if="user.userNameNeedTranslate != '1'" v-model="ParticularsList.firstCheckerId"
|
|
|
- :placeholder="'请选择审核人'" style="width: 150px" :disabled="ParticularsList.reviewProcess > 0"
|
|
|
+ :placeholder="$t('message.Pleaseselectareviewer')" style="width: 150px" :disabled="ParticularsList.reviewProcess > 0"
|
|
|
filterable="true">
|
|
|
<span v-for="(item, index) in users" :key="index">
|
|
|
<el-option :label="item.name" :value="item.id"></el-option>
|
|
@@ -491,9 +491,9 @@
|
|
|
@selectCal="selectCal"></selectCat>
|
|
|
</el-form-item>
|
|
|
<!-- 第二审核人 -->
|
|
|
- <el-form-item label="第二审核人" v-if="auditTypeItem.auditType == 2">
|
|
|
+ <el-form-item :label="$t('di-er-shen-he-ren')" v-if="auditTypeItem.auditType == 2">
|
|
|
<el-select v-if="user.userNameNeedTranslate != '1'" v-model="ParticularsList.secondCheckerId"
|
|
|
- :placeholder="'请选择审核人'" style="width: 150px" :disabled="ParticularsList.reviewProcess > 1"
|
|
|
+ :placeholder="$t('message.Pleaseselectareviewer')" style="width: 150px" :disabled="ParticularsList.reviewProcess > 1"
|
|
|
filterable="true">
|
|
|
<span v-for="(item, index) in users" :key="index">
|
|
|
<el-option :label="item.name" :value="item.id"></el-option>
|
|
@@ -530,14 +530,14 @@
|
|
|
}}</span>
|
|
|
</div>
|
|
|
<el-table :data="ParticularsList.invoiceList" border style="width: 100%">
|
|
|
- <el-table-column prop="status" label="审核状态" width="172" v-if="auditTypeItem.auditType == 1">
|
|
|
+ <el-table-column prop="status" :label="$t('other.approvalStatus')" width="172" v-if="auditTypeItem.auditType == 1">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.status == 1" class="waiting">{{ statusTxt[scope.row.status] }}</span>
|
|
|
<span v-if="scope.row.status == 2" class="rejected">{{ statusTxt[scope.row.status] }}</span>
|
|
|
<span v-if="scope.row.status == 0 || scope.row.status == 3">{{ statusTxt[scope.row.status] }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column v-if="auditTypeItem.auditType == 1" width="172" label="审核人">
|
|
|
+ <el-table-column v-if="auditTypeItem.auditType == 1" width="172" :label="$t('other.reviewer')">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="user.userNameNeedTranslate == 1">
|
|
|
<TranslationOpenDataText type='userName' :openid='scope.row.projectManagerName'></TranslationOpenDataText>
|
|
@@ -648,10 +648,10 @@
|
|
|
</div> -->
|
|
|
<div>
|
|
|
<div v-if="scope.row.pic && scope.row.pic.length > 0">
|
|
|
- <el-button size="small" @click="viewDetailsImage(scope.$index, 'ParticularsList', 'invoiceList')">查看详情</el-button>
|
|
|
+ <el-button size="small" @click="viewDetailsImage(scope.$index, 'ParticularsList', 'invoiceList')">{{ $t('Checkthedetails') }}</el-button>
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
- <el-button type="primary" size="small" @click="performCustomization(scope.$index, 2)" :loading="listLoading">点击上传</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="performCustomization(scope.$index, 2)" :loading="listLoading">{{ $t('clickupload') }}</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -663,12 +663,12 @@
|
|
|
@click="delec(scope.$index)">{{ $t('btn.delete') }}</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="status" label="审核" width="172" v-if="auditTypeItem.auditType == 1 && showSingleAudit"
|
|
|
+ <el-table-column prop="status" :label="$t('other.audit')" width="172" v-if="auditTypeItem.auditType == 1 && showSingleAudit"
|
|
|
fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button v-if="scope.row.isIncharger && scope.row.status == 1"
|
|
|
- @click="approveSingle(scope.row)">通过</el-button><el-button
|
|
|
- v-if="scope.row.isIncharger && scope.row.status == 1" @click="denySingle(scope.row)">驳回</el-button>
|
|
|
+ @click="approveSingle(scope.row)">{{ $t('btn.through') }}</el-button><el-button
|
|
|
+ v-if="scope.row.isIncharger && scope.row.status == 1" @click="denySingle(scope.row)">{{ $t('btn.rejected') }}</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -711,15 +711,15 @@
|
|
|
|
|
|
|
|
|
<!-- 主费用类型自定义 -->
|
|
|
- <el-dialog title="费用类型大类管理" v-if="expenseTypeDialog" :visible.sync="expenseTypeDialog" customClass="customWidth"
|
|
|
+ <el-dialog :title="$t('feiYongLeiXingDaLeiGuanLi')" v-if="expenseTypeDialog" :visible.sync="expenseTypeDialog" customClass="customWidth"
|
|
|
width="600px">
|
|
|
<el-table :data="expenseMainTypes" style="width:100%" height="400" :loading="expenseTypeListLoading">
|
|
|
- <el-table-column :label="'类型名称'" min-width="150">
|
|
|
+ <el-table-column :label="$t('typename ')" min-width="150">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.name }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column :label="'对应成本项'" min-width="150">
|
|
|
+ <el-table-column :label="$t('duiYingChengBenXiang')" min-width="150">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.basecostSettingName }}</span>
|
|
|
</template>
|
|
@@ -747,7 +747,7 @@
|
|
|
:placeholder="$t('customizethfeetypename')" style="width:90%"
|
|
|
@keyup.native="editExpenseTypeDataInput('editExpenseTypeDataInput')"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="对应成本项" style="margin:30px 0" prop="basecostSettingId">
|
|
|
+ <el-form-item :label="$t('duiYingChengBenXiang')" style="margin:30px 0" prop="basecostSettingId">
|
|
|
<el-select v-model="editExpenseTypeData.basecostSettingId" size="medium" style="width:90%" clearable>
|
|
|
<el-option v-for="item in basecostSettingList" :key="item.id" :label="item.name" :value="item.id"
|
|
|
:disabled="item.alarmType == 1"></el-option>
|
|
@@ -819,11 +819,11 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 详情查看弹出框 -->
|
|
|
- <el-dialog title="报销凭证详情" :visible.sync="detailDialog" width="1100px" :before-close="handleClose">
|
|
|
+ <el-dialog :title="$t('detailsofReimbursementvoucher')" :visible.sync="detailDialog" width="1100px" :before-close="handleClose">
|
|
|
<div ref="printContent" class="printContent">
|
|
|
<div class="printContent-detail">
|
|
|
<div class="detail-item">
|
|
|
- <span class="detail-item-title"> <span class="printBox">报销人</span> </span>
|
|
|
+ <span class="detail-item-title"> <span class="printBox">{{ $t('peopleconcerned') }}</span> </span>
|
|
|
<span class="detail-item-content">
|
|
|
<span v-if="user.userNameNeedTranslate == 1">
|
|
|
<TranslationOpenDataText type='userName' :openid='ParticularsList.ownerName'></TranslationOpenDataText>
|
|
@@ -832,23 +832,23 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="detail-item">
|
|
|
- <span class="detail-item-title"><span class="printBox">填报时间</span></span>
|
|
|
+ <span class="detail-item-title"><span class="printBox">{{ $t('tianBaoShiJian') }}</span></span>
|
|
|
<span class="detail-item-content">{{ ParticularsList.createDate }}</span>
|
|
|
</div>
|
|
|
<div class="detail-item">
|
|
|
- <span class="detail-item-title"><span class="printBox">发票张数</span></span>
|
|
|
- <span class="detail-item-content">{{ ParticularsList.ticketNum }} 张</span>
|
|
|
+ <span class="detail-item-title"><span class="printBox">{{ $t('invoicenumber') }}</span></span>
|
|
|
+ <span class="detail-item-content">{{ ParticularsList.ticketNum }} {{ $t('zhang') }}</span>
|
|
|
</div>
|
|
|
<div class="detail-item">
|
|
|
- <span class="detail-item-title"><span class="printBox">费用类型:</span></span>
|
|
|
+ <span class="detail-item-title"><span class="printBox">{{ $t('feiYongLeiXing') }}</span></span>
|
|
|
<span class="detail-item-content">{{ detaExpenseMainTypeName }}</span>
|
|
|
</div>
|
|
|
<div class="detail-item">
|
|
|
- <span class="detail-item-title"><span class="printBox">总费用</span></span>
|
|
|
+ <span class="detail-item-title"><span class="printBox">{{ $t('totalcostos') }}</span></span>
|
|
|
<span class="detail-item-content">¥ {{ ParticularsList.totalAmount | numberToCurrency }}</span>
|
|
|
</div>
|
|
|
<div class="detail-item" style="width: 100%">
|
|
|
- <span class="detail-item-title"><span class="printBox">备注</span></span>
|
|
|
+ <span class="detail-item-title"><span class="printBox">{{ $t('bei-zhu') }}</span></span>
|
|
|
<span class="detail-item-content">{{ ParticularsList.remark }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -978,7 +978,7 @@
|
|
|
<div class="conter-box">
|
|
|
<div class="conter-border" v-for="item, index in ParticularsList.invoiceList" :key="index">
|
|
|
<div class="detail-item" v-if="auditTypeItem.auditType != 1">
|
|
|
- <span class="detail-item-title"> <span class="printBox">项目</span> </span>
|
|
|
+ <span class="detail-item-title"> <span class="printBox">{{ $t('other.project') }}</span> </span>
|
|
|
<span class="detail-item-content">
|
|
|
{{ item.projectName }}
|
|
|
<!-- <el-select size="small" v-if="!flg" v-model="item.projectId" :placeholder="$t('other.project')"
|
|
@@ -997,7 +997,7 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="detail-item" v-if="auditTypeItem.auditType == 1">
|
|
|
- <span class="detail-item-title"> <span class="printBox">项目(审核状态)</span> </span>
|
|
|
+ <span class="detail-item-title"> <span class="printBox">{{ $t('xiangMuShenHeZhuangTai') }}</span> </span>
|
|
|
<span class="detail-item-content">
|
|
|
<span v-if="item.status == 1" class="waiting">{{ statusTxt[item.status] }}</span>
|
|
|
<span v-if="item.status == 2" class="rejected">{{ statusTxt[item.status] }}</span>
|
|
@@ -1005,39 +1005,39 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="detail-item">
|
|
|
- <span class="detail-item-title"> <span class="printBox">费用日期</span> </span>
|
|
|
+ <span class="detail-item-title"> <span class="printBox">{{ $t('forthedate') }}</span> </span>
|
|
|
<span class="detail-item-content">{{ item.happenDate }}</span>
|
|
|
</div>
|
|
|
<div class="detail-item">
|
|
|
- <span class="detail-item-title"> <span class="printBox">发票种类</span> </span>
|
|
|
+ <span class="detail-item-title"> <span class="printBox">{{ $t('invoices') }}</span> </span>
|
|
|
<span class="detail-item-content">{{ typeInvoic[item.invoiceType] }}</span>
|
|
|
</div>
|
|
|
<div class="detail-item">
|
|
|
- <span class="detail-item-title"> <span class="printBox">费用类型</span> </span>
|
|
|
+ <span class="detail-item-title"> <span class="printBox">{{ $t('costtype') }}</span> </span>
|
|
|
<span class="detail-item-content">{{ item.expenseType }}</span>
|
|
|
</div>
|
|
|
<div class="detail-item">
|
|
|
- <span class="detail-item-title single"> <span class="printBox">费用金额(含税)</span> </span>
|
|
|
+ <span class="detail-item-title single"> <span class="printBox">{{ $t('feiYongJineHanShui') }}</span> </span>
|
|
|
<span class="detail-item-content">{{ item.amount }}</span>
|
|
|
</div>
|
|
|
<div class="detail-item">
|
|
|
- <span class="detail-item-title"> <span class="printBox">发票号</span> </span>
|
|
|
+ <span class="detail-item-title"> <span class="printBox">{{ $t('invoiceno') }}</span> </span>
|
|
|
<span class="detail-item-content">{{ item.invoiceNo }}</span>
|
|
|
</div>
|
|
|
<div class="detail-item">
|
|
|
- <span class="detail-item-title"> <span class="printBox">税率%</span> </span>
|
|
|
+ <span class="detail-item-title"> <span class="printBox">{{ $t('shui-shuai') }}</span> </span>
|
|
|
<span class="detail-item-content">{{ item.taxValue }}</span>
|
|
|
</div>
|
|
|
<div class="detail-item">
|
|
|
- <span class="detail-item-title"> <span class="printBox">税额</span> </span>
|
|
|
+ <span class="detail-item-title"> <span class="printBox">{{ $t('taxs') }}</span> </span>
|
|
|
<span class="detail-item-content">{{ item.taxValue ? `¥${item.taxValue}` : '' }}</span>
|
|
|
</div>
|
|
|
<div class="detail-item">
|
|
|
- <span class="detail-item-title"> <span class="printBox">备注</span> </span>
|
|
|
+ <span class="detail-item-title"> <span class="printBox">{{ $t('bei-zhu') }}</span> </span>
|
|
|
<span class="detail-item-content">{{ item.remark }}</span>
|
|
|
</div>
|
|
|
<div class="detail-item" style="display: flex">
|
|
|
- <span class="detail-item-title"> <span class="printBox">报销凭证</span> </span>
|
|
|
+ <span class="detail-item-title"> <span class="printBox">{{ $t('expensereimbursementvoucher') }}</span> </span>
|
|
|
<div class="detail-item-content">
|
|
|
<div v-if="item.pic" style="display: inline-block;">
|
|
|
<div class="tups">
|
|
@@ -1058,8 +1058,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="print()">打 印</el-button>
|
|
|
- <el-button @click="detailDialog = false">关 闭</el-button>
|
|
|
+ <el-button @click="print()">{{ $t('daYin') }}</el-button>
|
|
|
+ <el-button @click="detailDialog = false">{{ $t('guanBi') }}</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
|
|
@@ -1069,15 +1069,15 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- 发放支付方式 -->
|
|
|
- <el-dialog title="发放方式" :visible.sync="dialogVisibleRelease" width="400px" :before-close="handleClose">
|
|
|
+ <el-dialog :title="$t('faFangFangShi')" :visible.sync="dialogVisibleRelease" width="400px" :before-close="handleClose">
|
|
|
<div>
|
|
|
- <el-select v-model="releaseData.id" placeholder="请选择支付方式" style="width: 100%" clearable>
|
|
|
+ <el-select v-model="releaseData.id" :placeholder="$t('qingXuanZeZhiFuFangShi')" style="width: 100%" clearable>
|
|
|
<el-option v-for="item in sendStateList" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="dialogVisibleRelease = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="callingInterface(1, releaseData.data)">确 定</el-button>
|
|
|
+ <el-button @click="dialogVisibleRelease = false">{{ $t('quXiao') }}</el-button>
|
|
|
+ <el-button type="primary" @click="callingInterface(1, releaseData.data)">{{ $t('queDing') }}</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
</section>
|
|
@@ -1737,7 +1737,7 @@ export default {
|
|
|
let noAmount = paramData.invoiceList.filter(item => !item.amount)
|
|
|
if(noAmount.length > 0) {
|
|
|
this.$message({
|
|
|
- message: '请填写完整费用金额',
|
|
|
+ message: this.$t('qingTianXieWanZhengFeiYongJinE'),
|
|
|
type: "error"
|
|
|
});
|
|
|
return;
|
|
@@ -1812,7 +1812,7 @@ export default {
|
|
|
if (valid) {
|
|
|
if(this.auditTypeItem.auditType == 2 && (!this.addForm.firstCheckerId || !this.addForm.secondCheckerId)) {
|
|
|
this.$message({
|
|
|
- message: !this.addForm.firstCheckerId ? '请选择第一审核人' : '请选择第二审核人',
|
|
|
+ message: !this.addForm.firstCheckerId ? this.$t('qingXuanZeDiYiShenHeRen') : this.$t('qingXuanZeDiErShenHeRen'),
|
|
|
type: "error"
|
|
|
});
|
|
|
return;
|
|
@@ -1834,7 +1834,7 @@ export default {
|
|
|
}
|
|
|
for (var i in this.invoiceList) {
|
|
|
if (!this.invoiceList[i].projectId) {
|
|
|
- strObj.project = '所属项目'
|
|
|
+ strObj.project = this.$t('subordinatetotheproject')
|
|
|
strObj.flg = true
|
|
|
}
|
|
|
// if(!this.invoiceList[i].invoiceType || this.invoiceList[i].invoiceType == '') {
|
|
@@ -1842,21 +1842,21 @@ export default {
|
|
|
// strObj.flg = true
|
|
|
// }
|
|
|
if (!this.invoiceList[i].expenseType || this.invoiceList[i].expenseType == '') {
|
|
|
- strObj.fyType = '费用类型'
|
|
|
+ strObj.fyType = this.$t('costtype')
|
|
|
strObj.flg = true
|
|
|
}
|
|
|
if (!this.invoiceList[i].happenDate || this.invoiceList[i].happenDate == '') {
|
|
|
- strObj.datas = '费用日期'
|
|
|
+ strObj.datas = this.$t('forthedate')
|
|
|
strObj.flg = true
|
|
|
}
|
|
|
if (!this.invoiceList[i].amount || this.invoiceList[i].amount == '') {
|
|
|
- strObj.rmb = '费用金额'
|
|
|
+ strObj.rmb = this.$t('feiYongJinE')
|
|
|
strObj.flg = true
|
|
|
}
|
|
|
}
|
|
|
if (strObj.flg) {
|
|
|
this.$message({
|
|
|
- message: `${strObj.project} ${strObj.fptype} ${strObj.fyType} ${strObj.datas} ${strObj.rmb} 请填写完整`,
|
|
|
+ message: `${strObj.project} ${strObj.fptype} ${strObj.fyType} ${strObj.datas} ${strObj.rmb} ${this.$t('qingTianXieWanZheng')}`,
|
|
|
type: "error"
|
|
|
});
|
|
|
return;
|
|
@@ -2075,7 +2075,7 @@ export default {
|
|
|
name: item,
|
|
|
url: `/upload/${item}`,
|
|
|
// url: `http://47.101.180.183/upload/${item}`,
|
|
|
- title: '报销凭证'
|
|
|
+ title: this.$t('expensereimbursementvoucher')
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -2336,7 +2336,7 @@ export default {
|
|
|
const sums = [];
|
|
|
columns.forEach((column, index) => {
|
|
|
if (index === 1) {
|
|
|
- sums[index] = '本页金额合计';//this.$t('other.totals');
|
|
|
+ sums[index] = this.$t('benYeJineheJi');//this.$t('other.totals');
|
|
|
return;
|
|
|
}
|
|
|
if (index === 2) {
|
|
@@ -2407,7 +2407,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('feiYongBaoXiaoDanJuLieBiao'));// download属性
|
|
|
a.setAttribute('href', filePath);// href链接
|
|
|
a.click(); //自执行点击事件
|
|
|
a.remove();
|
|
@@ -2439,17 +2439,17 @@ export default {
|
|
|
};
|
|
|
|
|
|
if (newList.length > 0) {
|
|
|
- showMessage('存在待审核或已驳回的单据', 'warning');
|
|
|
+ showMessage(this.$t('cunZaiDaiShenHeHuoYiBoHuiDeDanJu'), 'warning');
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (type == 1 && unissueds.length == 0) {
|
|
|
- showMessage('请选择未发放的单据', 'warning');
|
|
|
+ showMessage(this.$t('qingXuanZeWeiFaFangDeDanJu'), 'warning');
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (type == 0 && Issueds.length == 0) {
|
|
|
- showMessage('请选择已发放的单据', 'warning');
|
|
|
+ showMessage(this.$t('qingXuanZeYiFaFangDeDanJu'), 'warning');
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -2473,7 +2473,7 @@ export default {
|
|
|
this.dialogVisibleRelease = false
|
|
|
if (res.code == "ok") {
|
|
|
this.$message({
|
|
|
- message: '操作成功',
|
|
|
+ message: this.$t('operationissuccessful'),
|
|
|
type: "success"
|
|
|
});
|
|
|
this.getList()
|
|
@@ -2552,7 +2552,7 @@ export default {
|
|
|
name: item,
|
|
|
url: '/upload/' + item,
|
|
|
// url: `http://47.101.180.183/upload/${item}`,
|
|
|
- title: '报销凭证'
|
|
|
+ title: this.$t('expensereimbursementvoucher')
|
|
|
}
|
|
|
})
|
|
|
if(this.imgLoadType == 1) {
|