Jelajahi Sumber

提交projectApproval文件翻译

Lijy 10 bulan lalu
induk
melakukan
b22c310a69

+ 10 - 1
fhKeeper/formulahousekeeper/timesheet/src/i18n/en.json

@@ -1905,5 +1905,14 @@
   "yuGuGongShiRenTian": "Estimated working hours (person days)",
   "yuGuGongShiXiaoShi": "Estimated working hours (hours)",
   "yuGuGongShiXiuGai": "Estimated working hours modification",
-  "yuanYuGuGongShi": "Original estimated working hours"
+  "yuanYuGuGongShi": "Original estimated working hours",
+  "caoZuoJiLu": "Operation records",
+  "leRiBao": "The Daily News",
+  "liXiangDaoChuXlsx": "Project proposal export. xlsx",
+  "liXiangDaoRu": "Project initiation import",
+  "liXiangDaoRuJieGuo": "Project initiation import results",
+  "liXiangDaoRuMoBanXlsx": "Project Import Template. xlsx",
+  "liXiangShuJu": "Project proposal data",
+  "queDingYaoShanChuLiXiang": "Confirm to delete the project proposal",
+  "shanChuLiXiang": "Delete project proposal"
 }

+ 10 - 1
fhKeeper/formulahousekeeper/timesheet/src/i18n/zh.json

@@ -1905,5 +1905,14 @@
   "yuGuGongShiXiuGai": "预估工时修改",
   "qingShuRuYuGuGongShi": "请输入预估工时",
   "shiFouYiChuCiWenJian": "是否移除此文件?",
-  "qingShuRuBianGengLiYou": "请输入变更理由"
+  "qingShuRuBianGengLiYou": "请输入变更理由",
+  "caoZuoJiLu": "操作记录",
+  "leRiBao": "了日报",
+  "liXiangDaoRu": "立项导入",
+  "liXiangDaoRuMoBanXlsx": "立项导入模板.xlsx",
+  "liXiangDaoRuJieGuo": "立项导入结果",
+  "queDingYaoShanChuLiXiang": "确定要删除立项",
+  "shanChuLiXiang": "删除立项",
+  "liXiangShuJu": "立项数据",
+  "liXiangDaoChuXlsx": "立项导出.xlsx"
 }

+ 18 - 18
fhKeeper/formulahousekeeper/timesheet/src/views/projectApproval/projectApproval.vue

@@ -51,8 +51,8 @@
                         </template>
                     </el-table-column>
                         <el-table-column prop="categoryName" :label="$t('projectclassification')"  width="140"></el-table-column>
-                        <el-table-column prop="isPublic" :label="'项目类型'"  width="140">
-                            <template slot-scope="scope">{{scope.row.isPublic==0?"正式项目":"非项目"}}</template>
+                        <el-table-column prop="isPublic" :label="$t('projecttype')"  width="140">
+                            <template slot-scope="scope">{{scope.row.isPublic==0?$t('zheng-shi-xiang-mu'):$t('fei-xiang-mu')}}</template>
                         </el-table-column>
                         <el-table-column prop="inchargerName" :label="$t('projectmanager')"  min-width="150">
                             <template slot-scope="scope">
@@ -73,7 +73,7 @@
                                 <span v-else>{{importanceListLable[scope.row.level - 1]}}</span>
                             </template>
                         </el-table-column>
-                        <el-table-column prop="status" :label="'审核状态'" min-width="100" >
+                        <el-table-column prop="status" :label="$t('other.approvalStatus')" min-width="100" >
                             <template slot-scope="scope">
                                 {{scope.row.status == null?"-":approvalStatusStr[scope.row.status]}}
                             </template>
@@ -255,7 +255,7 @@
                     <el-dialog :title="$t('selectingParticipants')"  :visible.sync="chooseParticipVisible" :close-on-click-modal="false" customClass="customWidth" width="500px">
                         <!-- <el-input style="width:100%" v-model="filterName" placeholder="请输入姓名搜索" @change="findUserInTree"></el-input> -->
                         <div v-if="user.userNameNeedTranslate == '1'">
-                            <el-input placeholder="请输入内容" v-model.trim="filterText" class="input-with-select" @keyup.enter.native="echartDepartment()">
+                            <el-input :placeholder="$t('pleaseentercontent')" v-model.trim="filterText" class="input-with-select" @keyup.enter.native="echartDepartment()">
                                 <el-button slot="append" icon="el-icon-search" @click="echartDepartment()"></el-button>
                             </el-input>
                         </div>
@@ -352,26 +352,26 @@
                         </div>
                         <el-divider></el-divider>
                         <div class="line">
-                            <span>成本基线</span>
+                            <span>{{ $t('costbaseline') }}</span>
                         </div>
                         <div class="line" v-for="(item,index) in projectApprocalDetail.projectApprovalBasecostList">
                             <span>{{item.baseName+":"}}</span><span>{{item.baseAmount}}</span>
                         </div>
                         <el-divider></el-divider>
                         <div class="line">
-                            <span>操作记录</span>
+                            <span>{{ $t('caoZuoJiLu') }}</span>
                         </div>
                         <div class="line" v-for="(item,index) in approvalLogData">
-                            <span v-if="user.userNameNeedTranslate != 1">{{item.userName}} {{item.createTime}} {{approvalTypeStr[item.type]}}了日报</span>
-                            <span v-if="user.userNameNeedTranslate == 1"><TranslationOpenDataText type='userName' :openid='item.userName'></TranslationOpenDataText> {{item.createTime}}{{approvalTypeStr[item.type]}}了日报</span>
+                            <span v-if="user.userNameNeedTranslate != 1">{{item.userName}} {{item.createTime}} {{approvalTypeStr[item.type]}}{{ $t('leRiBao') }}</span>
+                            <span v-if="user.userNameNeedTranslate == 1"><TranslationOpenDataText type='userName' :openid='item.userName'></TranslationOpenDataText> {{item.createTime}}{{approvalTypeStr[item.type]}}{{ $t('leRiBao') }}</span>
                         </div>
                         <div slot="footer" class="dialog-footer">
                             <el-button type="primary" @click="projectApprovalDetailVisible = false" >{{'关闭'}}</el-button>
                         </div>
                     </el-dialog>
-                    <el-dialog :title="'立项导入'" v-if="importDialog" :visible.sync="importDialog" customClass="customWidth" width="500px">
+                    <el-dialog :title="$t('liXiangDaoRu')" v-if="importDialog" :visible.sync="importDialog" customClass="customWidth" width="500px">
                     <p>1. {{$t('other.download')}}
-                    <el-link type="primary" style="margin-left:5px;" :underline="false" :href="'./upload/立项导入模板.xlsx'" :download="'立项导入模板.xlsx'">{{'立项导入模板.xlsx'}}</el-link>
+                    <el-link type="primary" style="margin-left:5px;" :underline="false" :href="'./upload/立项导入模板.xlsx'" :download="'立项导入模板.xlsx'">{{ $t('liXiangDaoRuMoBanXlsx') }}</el-link>
                     </p>
                     <p>2. {{$t('other.projectsAndPeopleInThetemplate')}}。</p>
                     <p style="display: flex;justify-content: center;">
@@ -380,7 +380,7 @@
                     </el-upload>
                     </p>
                     </el-dialog>
-                    <el-dialog append-to-body :title="'立项导入结果'" v-if="showImportResult" :visible.sync="showImportResult" width="40%">
+                    <el-dialog append-to-body :title="$t('liXiangDaoRuJieGuo')" v-if="showImportResult" :visible.sync="showImportResult" width="40%">
                             <div >
                                 {{importResultMsg}}
                             </div>
@@ -407,7 +407,7 @@ return {
     page: 1,
     size: localStorage.getItem("projectPageSize")==null?20:parseInt(localStorage.getItem("projectPageSize")),
     listLoading:false,
-    approvalStatusStr:["待审核","已通过","已驳回","已撤销"],
+    approvalStatusStr:[this.$t('state.WaitingAudit'),this.$t('state.alreadyPassed'),this.$t('state.rejected'),this.$t('state.undone')],
     importanceList:[{id:1,label:this.$t('zheng-chang')},{id:2,label:this.$t('jin-ji')},{id:3,label:this.$t('zhong-yao')},{id:4,label:this.$t('zhong-yao-qie-jin-ji')}],
     importanceListLable:[this.$t('zheng-chang'), this.$t('jin-ji'), this.$t('zhong-yao'), this.$t('zhong-yao-qie-jin-ji'), this.$t('di-feng-xian'), this.$t('zhong-feng-xian'), this.$t('gao-feng-xian')],
     addFormVisible:false,
@@ -442,7 +442,7 @@ return {
         code: [{ required: true, message: this.$t('qing-shu-ru-bian-hao'), trigger: "blur" }],
         projectStageName: [{ required: true, message: this.$t('pleaseentername'), trigger: "blur" }],
         projectLevelName: [{ required: true, message: this.$t('pleaseentername'), trigger: "blur" }],
-        deptId: [{ required: true, message: '请选择所属部门', trigger: "blur" }]
+        deptId: [{ required: true, message: this.$t('qingXuanZeSuoShuBuMen'), trigger: "blur" }]
     },
     chosenMembCount:0,
     dataDetail:{},
@@ -459,7 +459,7 @@ return {
     projectApprocalDetail:{},
     importDialog:false,
     approvalLogData:[],
-    approvalTypeStr:["提交","编辑","通过","驳回","撤销"],
+    approvalTypeStr:[this.$t('btn.submit'),this.$t('bian-ji'),this.$t('btn.through'),this.$t('btn.rejected'),this.$t('btn.undo')],
     addLoading:false,
     importingData:false,
     showImportResult:false,
@@ -1221,7 +1221,7 @@ methods: {
         this.getList()
     },
     deletePro(i, item) {
-        this.$confirm('确定要删除立项[' + item.name +'吗]','删除立项', {
+        this.$confirm(this.$t('queDingYaoShanChuLiXiang')+'[' + item.name +this.$t('ma')+']',this.$t('shanChuLiXiang'), {
             confirmButtonText: this.$t('btn.determine'),
             cancelButtonText: this.$t('btn.cancel'),
             type: "warning"
@@ -1269,7 +1269,7 @@ methods: {
             this.listLoading = false;
             if (res.code == "ok") {
                 this.$message({
-                    message: "操作成功",
+                    message: this.$t('operationissuccessful'),
                     type: "success"
                 });
                 this.addFormVisible=false
@@ -1328,7 +1328,7 @@ methods: {
             this.importingData = false;
             if (res.code == "ok") {
                 //换成弹出框,以免有人等了半天回来啥也没看到
-                this.importResultMsg = res.data+'立项数据'+(res.msg?res.msg:"");;
+                this.importResultMsg = res.data+this.$t('liXiangShuJu')+(res.msg?res.msg:"");;
                 this.showImportResult=true
                 this.getList();
                 this.importDialog = false;
@@ -1359,7 +1359,7 @@ methods: {
         res => {
             if (res.code == "ok") {
                 const a = document.createElement("a"); // 创建a标签
-                a.setAttribute("download", "立项导出.xlsx"); // download属性
+                a.setAttribute("download", this.$t('liXiangDaoChuXlsx')); // download属性
                 a.setAttribute("href", res.data); // href链接
                 a.click(); // 自执行点击事件
                 a.remove();