Forráskód Böngészése

提交weeklyCustomization文件翻译

Lijy 10 hónapja
szülő
commit
391b697293

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

@@ -2089,5 +2089,16 @@
   "zhongDe": "Middle",
   "ziXiangMuBiTianQingJianCha": "Subitem is required, please check",
   "zuiJinXuanZeXiangMu": "Recently selected project",
-  "shenHeLiuCheng": "Review process:"
+  "shenHeLiuCheng": "Review process:",
+  "daiShen": "Pending review",
+  "fenZu": "grouping",
+  "fenZuWeiSheZhiQingLianXiGaiXiangMuGuanLiRenYuan": "Grouping not set, please contact the project management personnel",
+  "fenZuWeiSheZhiShenPiRenQingLianXiGaiXiangMuGuanLiRenYuan": "No approver has been set for the group, please contact the project management personnel",
+  "juJue": "refuse",
+  "qingShuRuZhouZongJie": "Please enter the weekly summary",
+  "shiJianXiaoShi": "Time (hours)",
+  "tiJiaoShiBai": "Submission failed:",
+  "tianXieGongShiHeJiFei": "Fill in the total working hours",
+  "zanCun": "Temporary storage",
+  "zanCunShiBai": "Temporary storage failed:"
 }

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

@@ -2089,5 +2089,16 @@
   "qingXuanZeRenWuLiChengBei": "请选择 任务/里程碑",
   "xiangMuXiaDeRenWuFenZu": "项目下的任务分组",
   "zhongDe": "中的",
-  "shenHeLiuCheng": "审核流程:"
+  "shenHeLiuCheng": "审核流程:",
+  "fenZu": "分组",
+  "shiJianXiaoShi": "时间(小时)",
+  "daiShen": "待审",
+  "juJue": "拒绝",
+  "qingShuRuZhouZongJie": "请输入周总结",
+  "zanCun": "暂 存",
+  "tianXieGongShiHeJiFei": "填写工时合计非",
+  "zanCunShiBai": "暂存失败:",
+  "tiJiaoShiBai": "提交失败:",
+  "fenZuWeiSheZhiShenPiRenQingLianXiGaiXiangMuGuanLiRenYuan": "分组未设置审批人,请联系该项目管理人员",
+  "fenZuWeiSheZhiQingLianXiGaiXiangMuGuanLiRenYuan": "分组未设置,请联系该项目管理人员"
 }

+ 23 - 23
fhKeeper/formulahousekeeper/timesheet/src/views/workReport/weeklyCustomization.vue

@@ -2,21 +2,21 @@
     <div class='weeklyCustomization'>
         <div class="title">
             <el-button @click="getCurrentWeek(-7)" size="small">&lt;&lt;</el-button>
-            <el-button @click="getCurrentWeek(0)" size="small">本周</el-button>
+            <el-button @click="getCurrentWeek(0)" size="small">{{ $t('time.thisWeek') }}</el-button>
             <el-button @click="getCurrentWeek(7)" size="small">&gt;&gt;</el-button>
         </div>
         <div class="weekcen flexColumn" v-loading="submitLoading">
             <div class="flexColumnAuto flex1">
                 <el-table :data="weekTableData" border style="width: 100%;" height="0" :span-method="arraySpanMethod">
-                    <el-table-column prop="dateTime" label="日期" width="180">
+                    <el-table-column prop="dateTime" :label="$t('weekDay.date')" width="180">
                         <template slot-scope="scope">
                             <span>{{ scope.row.dateTime }}</span>
                             (<span>{{ scope.row.weekDayTxt }}</span>)
                         </template>
                     </el-table-column>
-                    <el-table-column label="项目" width="220">
+                    <el-table-column :label="$t('other.project')" width="220">
                         <template slot-scope="scope">
-                            <el-select v-model="scope.row.projectId" size="small" placeholder="请选择项目" clearable
+                            <el-select v-model="scope.row.projectId" size="small" :placeholder="$t('defaultText.pleaseSelectSnItem')" clearable
                                 @change="changeProject(scope.row.projectId, scope.$index)"
                                 :disabled="scope.row.state == 1 || scope.row.state == 0 || !scope.row.canFill">
                                 <el-option v-for="item in projectList" :key="item.id" :label="item.projectName"
@@ -25,9 +25,9 @@
                             </el-select>
                         </template>
                     </el-table-column>
-                    <el-table-column label="分组" width="180">
+                    <el-table-column :label="$t('fenZu')" width="180">
                         <template slot-scope="scope">
-                            <el-select v-model="scope.row.groupId" size="small" placeholder="请选择分组"
+                            <el-select v-model="scope.row.groupId" size="small" :placeholder="$t('selectagroup')"
                                 @change="changeGroup(scope.row.groupId, scope.row.taskGroups, scope.$index)"
                                 :disabled="scope.row.state == 1 || scope.row.state == 0 || !scope.row.canFill">
                                 <el-option v-for="item in scope.row.taskGroups" :key="item.id" :label="item.name"
@@ -36,20 +36,20 @@
                             </el-select>
                         </template>
                     </el-table-column>
-                    <el-table-column prop="content" label="工作内容" width="300">
+                    <el-table-column prop="content" :label="$t('gongZuoNeiRong')" width="300">
                         <template slot-scope="scope">
                             <el-input size="small" type="textarea" :rows="2" v-model="scope.row.content"
                                 :disabled="scope.row.state == 1 || scope.row.state == 0 || !scope.row.canFill"
                                 resize="none"></el-input>
                         </template>
                     </el-table-column>
-                    <el-table-column prop="workingTime" label="时间(小时)" width="160">
+                    <el-table-column prop="workingTime" :label="$t('shiJianXiaoShi')" width="160">
                         <template slot-scope="scope">
                             <el-input-number size="small" v-model="scope.row.workingTime" :min="0" :max="12" :step="0.5"
                                 :disabled="scope.row.state == 1 || scope.row.state == 0 || !scope.row.canFill"></el-input-number>
                         </template>
                     </el-table-column>
-                    <el-table-column prop="projectAuditorId" label="审批人" width="160">
+                    <el-table-column prop="projectAuditorId" :label="$t('approver')" width="160">
                         <template slot-scope="scope">
                             <!-- <span v-if="user.userNameNeedTranslate != '1'">{{ scope.row.projectAuditorName }}</span>
                             <span v-if="user.userNameNeedTranslate == '1'"><TranslationOpenDataText type='userName'
@@ -60,12 +60,12 @@
                             </span>
                         </template>
                     </el-table-column>
-                    <el-table-column prop="state" label="状态" width="140" fixed="right">
+                    <el-table-column prop="state" :label="$t('state.states')" width="140" fixed="right">
                         <template slot-scope="scope">
                             <div class="controls">
-                                <el-tag v-if="scope.row.state == 0" type="warning">待审</el-tag>
-                                <el-tag v-if="scope.row.state == 1" type="success">通过</el-tag>
-                                <el-tag v-if="scope.row.state == 2" type="danger">拒绝</el-tag>
+                                <el-tag v-if="scope.row.state == 0" type="warning">{{ $t('daiShen') }}</el-tag>
+                                <el-tag v-if="scope.row.state == 1" type="success">{{ $t('btn.through') }}</el-tag>
+                                <el-tag v-if="scope.row.state == 2" type="danger">{{ $t('juJue') }}</el-tag>
                                 <span v-if="scope.row.state != 1 && scope.row.canFill">
                                     <el-link type="primary" :underline="false" class="el-icon-circle-plus-outline"
                                         @click="insertRow(scope.$index)"></el-link>
@@ -79,14 +79,14 @@
             </div>
             <div>
                 <el-input type="textarea" :autosize="{ minRows: 4, maxRows: 6}" maxlength="1000" show-word-limit
-                    placeholder="请输入周总结"
+                    :placeholder="$t('qingShuRuZhouZongJie')"
                     v-model="summaryContent">
                     </el-input>
             </div>
             <div class="weeklyCustomization_btn">
-                <el-button @click="handleClose()">取 消</el-button>
-                <el-button @click="submitWeekData(1)">暂 存</el-button>
-                <el-button type="primary" @click="submitWeekData(0)">提 交</el-button>
+                <el-button @click="handleClose()">{{ $t('quXiao') }}</el-button>
+                <el-button @click="submitWeekData(1)">{{ $t('zanCun') }}</el-button>
+                <el-button type="primary" @click="submitWeekData(0)">{{ $t('tiJiao') }}</el-button>
             </div>
         </div>
     </div>
@@ -133,7 +133,7 @@ export default {
             const { allday } = this.user.timeType // 系统设置的每日工作时间
             if (strArr.length > 0) {
                 this.$message({
-                    message: `【${strArr.join('、')}】填写工时合计非 ${allday} 小时`,
+                    message: `【${strArr.join('、')}】`+this.$t('tianXieGongShiHeJiFei')+` ${allday}`+ this.$t('time.hour'),
                     type: "error"
                 });
                 return
@@ -188,14 +188,14 @@ export default {
                     this.submitLoading = false
                     if (res.code == "ok") {
                         this.$message({
-                            message: `${draft ? '暂存成功' : '提交成功'}`,
+                            message: `${draft ? this.$t('message.Temporarysuccess') : this.$t('message.submittedSuccessfully')}`,
                             type: "success"
                         });
                         this.$emit('weekClose')
                         this.$emit('weekSubmit')
                     } else {
                         this.$message({
-                            message: `${draft ? '暂存失败:' : '提交失败:'}` + res.msg,
+                            message: `${draft ? this.$t('zanCunShiBai') : this.$t('tiJiaoShiBai')}` + res.msg,
                             type: "error"
                         });
                     }
@@ -247,7 +247,7 @@ export default {
             let newArr = groupList.filter(item => item.id == groupId)
             if (!newArr[0].inchargerId) {
                 this.$message({
-                    message: `【${newArr[0].name}】分组未设置审批人,请联系该项目管理人员`,
+                    message: `【${newArr[0].name}】`+this.$t('fenZuWeiSheZhiShenPiRenQingLianXiGaiXiangMuGuanLiRenYuan'),
                     type: "error"
                 });
                 return
@@ -307,7 +307,7 @@ export default {
             let { data } = await this.getData('/task-group/listProjectGroupAndAuditor', { projectId, isSubstitude: isSubstitude ? 1 : 0 })
             if (data.length == 0) {
                 this.$message({
-                    message: '分组未设置,请联系该项目管理人员',
+                    message: this.$t('fenZuWeiSheZhiQingLianXiGaiXiangMuGuanLiRenYuan'),
                     type: "error"
                 });
             } else if (data.length == 1) {
@@ -316,7 +316,7 @@ export default {
                 this.$set(this.weekTableData[index], 'projectAuditorName', data[0].inchargerName)
                 if (!data[0].inchargerId) {
                     this.$message({
-                        message: `【${data[0].name}】分组未设置审批人,请联系该项目管理人员`,
+                        message: `【${data[0].name}】`+this.$t('fenZuWeiSheZhiShenPiRenQingLianXiGaiXiangMuGuanLiRenYuan'),
                         type: "error"
                     });
                 }