Browse Source

提交project文件夹下的的detailDep文件翻译

Lijy 11 months ago
parent
commit
771698bab5

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

@@ -1761,5 +1761,9 @@
   "feiYongBaoXiaoChengBen": "Expense reimbursement cost",
   "feiYongBaoXiaoChengBen": "Expense reimbursement cost",
   "gongShiChengBen": "Labor cost",
   "gongShiChengBen": "Labor cost",
   "gongShiHeJi": "Total working hours",
   "gongShiHeJi": "Total working hours",
-  "riQiQuJian": "Date range:"
+  "riQiQuJian": "Date range:",
+  "buMenChengBen": "Departmental costs:",
+  "gongShi": "Working hours:",
+  "gongZuoChengBen": "Work cost:",
+  "xiangMuMingCheng": "Project Name:"
 }
 }

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

@@ -1761,5 +1761,9 @@
   "gongShiChengBen": "工时成本",
   "gongShiChengBen": "工时成本",
   "gongShiHeJi": "工时合计",
   "gongShiHeJi": "工时合计",
   "feiYongBaoXiaoChengBen": "费用报销成本",
   "feiYongBaoXiaoChengBen": "费用报销成本",
-  "baoXiaoHeJi": "报销合计"
+  "baoXiaoHeJi": "报销合计",
+  "buMenChengBen": "部门成本:",
+  "gongShi": "工时 :",
+  "xiangMuMingCheng": "项目名称:",
+  "gongZuoChengBen": "工作成本 :"
 }
 }

+ 10 - 10
fhKeeper/formulahousekeeper/timesheet/src/views/project/detailDep.vue

@@ -4,24 +4,24 @@
         <el-col :span="24" class="toolbar" style="padding-bottom: 0px;">
         <el-col :span="24" class="toolbar" style="padding-bottom: 0px;">
             <el-form :inline="true">
             <el-form :inline="true">
                 <el-form-item>
                 <el-form-item>
-                    <el-button type="text" @click="backToList" icon="el-icon-back" class="back">返回</el-button>
+                    <el-button type="text" @click="backToList" icon="el-icon-back" class="back">{{ $t('fan-hui') }}</el-button>
                 </el-form-item>
                 </el-form-item>
                 <el-form-item class="divLine"></el-form-item>
                 <el-form-item class="divLine"></el-form-item>
                 <el-form-item style="width: 500px">
                 <el-form-item style="width: 500px">
                     <!-- <div class="dipali"> -->
                     <!-- <div class="dipali"> -->
                         <!-- <span class="workName">{{detailName}}</span> -->
                         <!-- <span class="workName">{{detailName}}</span> -->
 
 
-                        <el-cascader v-if="user.userNameNeedTranslate != '1'" v-model="departmentId" placeholder="请选择部门" style="width: 180px;margin-left:10px;" @change="getList"
+                        <el-cascader v-if="user.userNameNeedTranslate != '1'" v-model="departmentId" :placeholder="$t('qing-xuan-ze-bu-men')" style="width: 180px;margin-left:10px;" @change="getList"
                         :options="option" :props="{ checkStrictly: true }" :show-all-levels="false"></el-cascader>
                         :options="option" :props="{ checkStrictly: true }" :show-all-levels="false"></el-cascader>
 
 
                         <vueCascader v-if="user.userNameNeedTranslate == '1'" :size="'medium'" :widthStr="'180'" :clearable="true" :subject="option" :radios="true" :distinction="'1'" @vueCasader="vueCasader" :selectNameChuan="$t('qing-xuan-ze-bu-men')"></vueCascader>
                         <vueCascader v-if="user.userNameNeedTranslate == '1'" :size="'medium'" :widthStr="'180'" :clearable="true" :subject="option" :radios="true" :distinction="'1'" @vueCasader="vueCasader" :selectNameChuan="$t('qing-xuan-ze-bu-men')"></vueCascader>
                     <!-- </div> -->
                     <!-- </div> -->
                 </el-form-item>
                 </el-form-item>
                 <el-form-item >
                 <el-form-item >
-                    <span style="color:#666;">时间段:{{startDate}}<span style="padding-left:5px;padding-right:5px;">至</span>{{endDate}}</span>
+                    <span style="color:#666;">{{ $t('message.period') }} :{{startDate}}<span style="padding-left:5px;padding-right:5px;">{{ $t('other.to') }}</span>{{endDate}}</span>
                 </el-form-item>
                 </el-form-item>
                 <el-form-item style="float:right;">
                 <el-form-item style="float:right;">
-                    <span style="font-size:18px;">部门成本:<span style="color:#20a0ff;">{{cost.toFixed(2)}}元</span></span>
+                    <span style="font-size:18px;">{{ $t('buMenChengBen') }}<span style="color:#20a0ff;">{{cost.toFixed(2)}} {{ $t('yuan') }}</span></span>
                 </el-form-item>
                 </el-form-item>
             </el-form>
             </el-form>
         </el-col> 
         </el-col> 
@@ -292,16 +292,16 @@
                                 }
                                 }
                                 var res
                                 var res
                                 if(_this.user.userNameNeedTranslate != 1) {
                                 if(_this.user.userNameNeedTranslate != 1) {
-                                    res = params[0].name + " 工时 : " + totalTime.toFixed(1)+"小时<br/>";
+                                    res = params[0].name + this.$t('gongShi')+ totalTime.toFixed(1)+this.$t('time.hour') + "<br/>";
                                 } else {
                                 } else {
-                                    res = " 工时 : " + totalTime.toFixed(1)+"小时<br/>";
+                                    res = "this.$t('gongShi')" + totalTime.toFixed(1)+this.$t('time.hour')+"<br/>";
                                 }
                                 }
                                 
                                 
                                 for(var i in params) {
                                 for(var i in params) {
                                     if (params[i].data.value > 0) {
                                     if (params[i].data.value > 0) {
-                                        res += "<div style='margin-top:3px;font-size:12px;'><font color='#ddd'>项目名称:" + params[i].seriesName 
-                                            + "</font><br/>工作成本 : " + params[i].data.money
-                                            + " <br/>工作时长"+" : " + params[i].data.cost + "小时</br></div>";
+                                        res += "<div style='margin-top:3px;font-size:12px;'><font color='#ddd'>"+ _this.$t('xiangMuMingCheng') + params[i].seriesName 
+                                            + "</font><br/>"+ _this.$t('gongZuoChengBen') + params[i].data.money
+                                            + _this.$t('yuan') +" <br/>"+ _this.$t('screening.workTime') +" : " + params[i].data.cost + _this.$t('time.hour')+ "</br></div>";
                                     }
                                     }
                                 }
                                 }
                                 return res;
                                 return res;
@@ -324,7 +324,7 @@
                     myChart.setOption(option, {notMerge: true});
                     myChart.setOption(option, {notMerge: true});
                 } else {
                 } else {
                     this.$message({
                     this.$message({
-                        message: "暂无数据",
+                        message: this.$t('nodata'),
                         type: "error"
                         type: "error"
                         });
                         });
                 }
                 }