浏览代码

挣值分析翻译完成

Lijy 2 年之前
父节点
当前提交
bbd1922e47

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

@@ -1374,5 +1374,20 @@
   "xiabo": "dial time",
   "xiabochenggong": "dial down successfully",
   "yi": "already",
-  "yu": "Remain"
+  "yu": "Remain",
+  "bai-fen-bi": "percentage",
+  "baselinecost": "Baseline cost",
+  "calibrationdate": "Calibration date",
+  "contractamounttotalcost": "Profit = (Contract Amount - Total Cost)",
+  "contractamounttotalcostabd": "Profit Margin = (Contract Amount - Total Cost)/Contract Amount",
+  "deletethisrecord": "Are you sure you want to delete this record?",
+  "kuaizao": "Project Profit Snapshot",
+  "li-run-shuai": "Profit margin (%)",
+  "marginsB": "Profit margin B",
+  "profitratetrendchart": "Profit margin trend graph",
+  "quer": "confirm deletion",
+  "quxiao": "Cancel the operation",
+  "shan-chu-ji-lu": "Delete Record",
+  "wanttodeletefirst": "Please select the record to delete first",
+  "xuan-ze": "choose"
 }

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

@@ -1374,5 +1374,20 @@
   "xiabo": "下拨时间",
   "caozuo": "操作人员",
   "saoyixiang": "下拨成本至少一项不能为0",
-  "xiabochenggong": "下拨成功"
+  "xiabochenggong": "下拨成功",
+  "kuaizao": "项目利润快照",
+  "quxiao": "取消操作",
+  "quer": "确认删除",
+  "calibrationdate": "校准日期",
+  "contractamounttotalcost": "利润 = (合同金额 - 总成本)",
+  "contractamounttotalcostabd": "利润率 = (合同金额 - 总成本)/合同金额",
+  "marginsB": "利润率B",
+  "baselinecost": "基线成本",
+  "xuan-ze": "选择",
+  "shan-chu-ji-lu": "删除记录",
+  "wanttodeletefirst": "请先选择要删除的记录",
+  "deletethisrecord": "确定要删除该记录吗?",
+  "profitratetrendchart": "利润率趋势图",
+  "li-run-shuai": "利润率(%)",
+  "bai-fen-bi": "百分比"
 }

+ 27 - 27
fhKeeper/formulahousekeeper/timesheet/src/views/project/earning.vue

@@ -5,15 +5,15 @@
             <el-col :span="24">    
             <div class="box" style="height:650px;">
                 <div >
-                    <div class="lableTxt">项目利润快照<el-button type="default" size="small" style="float:right;margin-left:10px;" @click="cancelDelete" v-if="deleteTxt == '确认删除'">取消操作</el-button><el-button type="default" size="small" style="float:right;" @click="showDeleteBox">{{deleteTxt}}</el-button></div>
+                    <div class="lableTxt">{{ $t('kuaizao') }}<el-button type="default" size="small" style="float:right;margin-left:10px;" @click="cancelDelete" v-if="deleteTxt == $t('quer')">{{ $t('quxiao') }}</el-button><el-button type="default" size="small" style="float:right;" @click="showDeleteBox">{{deleteTxt}}</el-button></div>
                     <el-divider></el-divider>
                     <!--利润率列表-->
                     <el-table :data="list" highlight-current-row v-loading="listLoading" max-height="300" :height="300" style="width: 100%;" @selection-change="handleSelectionChange">
-                        <el-table-column prop="indate" label="校准日期"  ></el-table-column>
+                        <el-table-column prop="indate" :label="$t('calibrationdate')"  ></el-table-column>
                         <el-table-column prop="profit" align="right" >
                             <template slot="header">
-                               <span>利润</span>
-                               <el-popover placement="top" width="200" trigger="hover" content="利润 = (合同金额 - 总成本)">
+                               <span>{{ $t('profits') }}</span>
+                               <el-popover placement="top" width="200" trigger="hover" :content="$t('contractamounttotalcost')">
                                    <i class="el-icon-question" slot="reference" />
                                </el-popover>
                             </template>
@@ -21,10 +21,10 @@
                                ¥{{scope.row.profit | numberToCurrency}}
                             </template>
                         </el-table-column>
-                        <el-table-column prop="profitPercent" label="利润率B"  align="right">
+                        <el-table-column prop="profitPercent" :label="$t('marginsB')"  align="right">
                             <template slot="header">
-                               <span>利润率</span>
-                               <el-popover placement="top" width="350" trigger="hover" content="利润率 = (合同金额 - 总成本)/合同金额">
+                               <span>{{ $t('profitmargin') }}</span>
+                               <el-popover placement="top" width="350" trigger="hover" :content="$t('contractamounttotalcostabd')">
                                    <i class="el-icon-question" slot="reference" />
                                </el-popover>
                             </template>
@@ -33,12 +33,12 @@
                             </template>
                         </el-table-column>
                         
-                        <el-table-column prop="contractAmount" label="合同金额" width="150" align="right">
+                        <el-table-column prop="contractAmount" :label="$t('contractamount')" width="150" align="right">
                             <template slot-scope="scope">
                                <span >¥{{scope.row.contractAmount | numberToCurrency}}</span>
                             </template>
                         </el-table-column>
-                        <el-table-column label="基线成本" align="center">
+                        <el-table-column :label="$t('baselinecost')" align="center">
                             <el-table-column v-for="item in costFields" :prop="contractAmount" :label="item.baseName" :key="item.id" align="right">
                                 <template slot-scope="scope">
                                     <span v-if="scope.row.costList.filter(c=>c.baseId == item.baseId)[0]">
@@ -76,7 +76,7 @@
                             
                             
                         </el-table-column>
-                        <el-table-column  label="备注"  prop="remark">
+                        <el-table-column  :label="$t('bei-zhu')"  prop="remark">
                             <template slot-scope="scope">
                                 
                                     <div style="font-size:10px;overflow:hidden;width:100px;height:25px;">
@@ -87,7 +87,7 @@
                                 
                             </template>
                         </el-table-column>
-                        <el-table-column  label="选择" width="55" type="selection" v-if="deleteTxt == '确认删除'">
+                        <el-table-column  :label="$t('xuan-ze')" width="55" type="selection" v-if="deleteTxt == $t('quer')">
                                 
                         </el-table-column>
                     </el-table>
@@ -138,7 +138,7 @@
             return {
                 costFields:[],
                 selectionArray:[],
-                deleteTxt:"删除记录",
+                deleteTxt:this.$t('shan-chu-ji-lu'),
                 yList3:[],
                 yList2:[],
                 yList1:[],
@@ -148,11 +148,11 @@
                 pVisible:false,
                 taskSum:{},
                 users:[],
-                importanceList:[{id:1,label:'一般'},{id:2,label:'紧急'},{id:3,label:'重要'},{id:4,label:'重要且紧急'}],
+                importanceList:[{id:1,label:this.$t('yi-ban')},{id:2,label:this.$t('jin-ji')},{id:3,label:this.$t('zhong-yao')},{id:4,label:this.$t('zhong-yao-qie-jin-ji')}],
                 //1-一般,2-紧急,3-重要,4-重要且紧急
-                levelTxt:["全部","一般","紧急","重要","重要且紧急"],
+                levelTxt:[this.$t('all'),this.$t('yi-ban'),this.$t('jin-ji'),this.$t('zhong-yao'),this.$t('zhong-yao-qie-jin-ji')],
                 //1-进行中,2-已完成,3-已撤销
-                statusTxt: ["全部","进行中","已完成","已撤销"],
+                statusTxt: [this.$t('all'),this.$t('ongoing'),this.$t('state.completed'),this.$t('state.undone')],
                 addFolderDialog: false,
                 upLoading:false,
                 user: JSON.parse(sessionStorage.getItem("user")),
@@ -184,30 +184,30 @@
                 console.log(this.selectionArray);
             },
             cancelDelete() {
-                this.deleteTxt = "删除记录";
+                this.deleteTxt = this.$t('shan-chu-ji-lu');
             },
             showDeleteBox() {
-                if (this.deleteTxt == '删除记录') {
-                    this.deleteTxt = "确认删除";
+                if (this.deleteTxt == this.$t('shan-chu-ji-lu')) {
+                    this.deleteTxt = this.$t('quer');
                 } else {
                     if (this.selectionArray.length == 0) {
                         this.$message({
-                            message: '请先选择要删除的记录',
+                            message: this.$t('wanttodeletefirst'),
                             type: "error"
                         });
                         return;
                     }
                     
-                    this.$confirm("确定要删除该记录吗吗?","删除记录", {
-                        confirmButtonText: "确定",
-                        cancelButtonText: "取消",
+                    this.$confirm(this.$t('deletethisrecord'),this.$t('shan-chu-ji-lu'), {
+                        confirmButtonText: this.$t('btn.determine'),
+                        cancelButtonText: this.$t('btn.cancel'),
                         type: "warning"
                     })
                     .then(() => {
                         //调接口删除
                         this.listLoading = true;
                         var ids = '';
-                        this.deleteTxt = "删除记录";
+                        this.deleteTxt = this.$t('shan-chu-ji-lu');
                         for (var i=0;i<this.selectionArray.length; i++) {
                             ids += this.selectionArray[i].id+',';
                         }
@@ -265,7 +265,7 @@
                                     fontSize: 18,
                                     fontWeight: 'normal',
                                  },
-                              text: list.length == 0?"暂无数据":"利润率趋势图",
+                              text: list.length == 0?this.$t('nodata'):this.$t('profitratetrendchart'),
                               left: list.length == 0?"center":"left",
                               top: list.length == 0?"center":"left"
                             },
@@ -281,7 +281,7 @@
                                trigger: 'axis'
                             },
                             legend: {
-                                data: ['利润率(%)']
+                                data: [this.$t('li-run-shuai')]
                             },
                             grid: {
                                 left: '3%',
@@ -299,9 +299,9 @@
                             },
                             series : [
                                 {
-                                    name: '利润率(%)',
+                                    name: this.$t('li-run-shuai'),
                                     type: 'line',
-                                    stack: '百分比',
+                                    stack: this.$t('bai-fen-bi'),
                                     data: this.yList1
                                 },