Browse Source

项目数据、营销费用国际化调整

qymljy 1 tháng trước cách đây
mục cha
commit
ccb6ab37f4

+ 156 - 38
src/HDrpManagement/projectData/index.vue

@@ -209,11 +209,11 @@
                     </div>
                     <div class="mt-10 inline-16">
                       <p class="search__label">{{$t('项目状态')}}:</p>
-                      <el-select size="small" v-model="typeMapParam.content.where.status" multiple filterable placeholder="请选择" @change="typeTableParam.content.where.status = typeMapParam.content.where.status;typeTableParam.content.pageNumber = 1;$refs.typeTable.listData();typeInit()">
+                      <el-select size="small" v-model="typeMapParam.content.where.status" multiple filterable :placeholder="$t(`请选择`)" @change="typeTableParam.content.where.status = typeMapParam.content.where.status;typeTableParam.content.pageNumber = 1;$refs.typeTable.listData();typeInit()">
                         <el-option
                             v-for="item in option.statusTab"
                             :key="item.value"
-                            :label="item.label"
+                            :label="$t(item.label)"
                             :value="item.value">
                         </el-option>
                       </el-select>
@@ -361,11 +361,11 @@
                     </div>
                     <div class="mt-10 inline-16">
                       <p class="search__label">{{$t('项目状态')}}:</p>
-                      <el-select size="small" v-model="gradMapParam.content.where.status" multiple filterable placeholder="请选择" @change="gradTableParam.content.where.status = gradMapParam.content.where.status;gradTableParam.content.pageNumber = 1;$refs.gradTable.listData();gradInit()">
+                      <el-select size="small" v-model="gradMapParam.content.where.status" multiple filterable :placeholder="$t(`请选择`)" @change="gradTableParam.content.where.status = gradMapParam.content.where.status;gradTableParam.content.pageNumber = 1;$refs.gradTable.listData();gradInit()">
                         <el-option
                             v-for="item in option.statusTab"
                             :key="item.value"
-                            :label="item.label"
+                            :label="$t(item.label)"
                             :value="item.value">
                         </el-option>
                       </el-select>
@@ -521,11 +521,11 @@
                   </div>
                   <div class="mt-10 inline-16">
                     <p class="search__label">{{$t('项目状态')}}:</p>
-                    <el-select size="small" v-model="scoreMapParam1.content.where.status" multiple filterable placeholder="请选择" @change="scoreTableParam1.content.where.status = scoreMapParam1.content.where.status;scoreTableParam1.content.pageNumber = 1;$refs.scoreTable.listData();scoreInit()">
+                    <el-select size="small" v-model="scoreMapParam1.content.where.status" multiple filterable :placeholder="$t(`请选择`)" @change="scoreTableParam1.content.where.status = scoreMapParam1.content.where.status;scoreTableParam1.content.pageNumber = 1;$refs.scoreTable.listData();scoreInit()">
                       <el-option
                           v-for="item in option.statusTab"
                           :key="item.value"
-                          :label="item.label"
+                          :label="$t(item.label)"
                           :value="item.value">
                       </el-option>
                     </el-select>
@@ -542,7 +542,7 @@
                   <div ref="scoreEl" style="height:30%"></div>
                   <div class="panel-table" style="height:70%">
                     <div class="mt-10 inline-16" style="margin:10px 0;display:flex !important;justify-content:space-between">
-                      <span style="font-size:16px;color:#333333">{{ scoreStatus ? scoreStatus : '全部' }}</span>
+                      <span style="font-size:16px;color:#333333">{{ $t(scoreStatus ? scoreStatus : '全部') }}</span>
                       <div style="display:flex;align-items:center">
                         <div>
                           <label  class="search__label" >{{$t(`评估分档位`)}}:</label>
@@ -895,11 +895,11 @@
                     </div>
                     <div class="mt-10 inline-16">
                       <p class="search__label">{{$t('项目状态')}}:</p>
-                      <el-select size="small" v-model="fllowMapParam.content.where.status" multiple filterable placeholder="请选择" @change="fllowTableParam.content.where.status = fllowMapParam.content.where.status;fllowTableParam.content.pageNumber = 1;$refs.projectFllowTable.listData();fllowInit()">
+                      <el-select size="small" v-model="fllowMapParam.content.where.status" multiple filterable :placeholder="$t(`请选择`)" @change="fllowTableParam.content.where.status = fllowMapParam.content.where.status;fllowTableParam.content.pageNumber = 1;$refs.projectFllowTable.listData();fllowInit()">
                         <el-option
                             v-for="item in option.statusTab"
                             :key="item.value"
-                            :label="item.label"
+                            :label="$t(item.label)"
                             :value="item.value">
                         </el-option>
                       </el-select>
@@ -1045,11 +1045,11 @@
                     </div>
                     <div class="mt-10 inline-16">
                       <p class="search__label">{{$t('项目状态')}}:</p>
-                      <el-select size="small" v-model="contactMapParam.content.where.status" multiple filterable placeholder="请选择" @change="contactTableParam.content.where.status = contactMapParam.content.where.status;contactTableParam.content.pageNumber = 1;$refs.projectContactTable.listData();contactInit()">
+                      <el-select size="small" v-model="contactMapParam.content.where.status" multiple filterable :placeholder="$t(`请选择`)" @change="contactTableParam.content.where.status = contactMapParam.content.where.status;contactTableParam.content.pageNumber = 1;$refs.projectContactTable.listData();contactInit()">
                         <el-option
                             v-for="item in option.statusTab"
                             :key="item.value"
-                            :label="item.label"
+                            :label="$t(item.label)"
                             :value="item.value">
                         </el-option>
                       </el-select>
@@ -1195,11 +1195,11 @@
                     </div>
                     <div class="mt-10 inline-16">
                       <p class="search__label">{{$t('项目状态')}}:</p>
-                      <el-select size="small" v-model="customerMapParam.content.where.status" multiple filterable placeholder="请选择" @change="customerTableParam.content.where.status = customerMapParam.content.where.status;customerTableParam.content.pageNumber = 1;$refs.projectCustomerTable.listData();customerInit()">
+                      <el-select size="small" v-model="customerMapParam.content.where.status" multiple filterable :placeholder="$t(`请选择`)" @change="customerTableParam.content.where.status = customerMapParam.content.where.status;customerTableParam.content.pageNumber = 1;$refs.projectCustomerTable.listData();customerInit()">
                         <el-option
                             v-for="item in option.statusTab"
                             :key="item.value"
-                            :label="item.label"
+                            :label="$t(item.label)"
                             :value="item.value">
                         </el-option>
                       </el-select>
@@ -1345,11 +1345,11 @@
                     </div>
                     <div class="mt-10 inline-16">
                       <p class="search__label">{{$t('项目状态')}}:</p>
-                      <el-select size="small" v-model="scoreMapParam.content.where.status" multiple filterable placeholder="请选择" @change="scoreTableParam.content.where.status = scoreMapParam.content.where.status;scoreTableParam.content.pageNumber = 1;$refs.projectScoreTable.listData();projectScoreInit()">
+                      <el-select size="small" v-model="scoreMapParam.content.where.status" multiple filterable :placeholder="$t(`请选择`)" @change="scoreTableParam.content.where.status = scoreMapParam.content.where.status;scoreTableParam.content.pageNumber = 1;$refs.projectScoreTable.listData();projectScoreInit()">
                         <el-option
                             v-for="item in option.statusTab"
                             :key="item.value"
-                            :label="item.label"
+                            :label="$t(item.label)"
                             :value="item.value">
                         </el-option>
                       </el-select>
@@ -1496,14 +1496,14 @@
                       <label  class="search__label">{{ $t('项目类型') }}:</label>
                       <el-select
                         v-model="unfllowMapParam.content.where.projecttype"
-                        placeholder="请选择项目类型"
+                        :placeholder="$t(`请选择项目类型`)"
                         :popper-append-to-body="false"
                         @change="$event => {if($event.length) {unfllowTableParam.content.where.projecttype=$event;unfllowTableParam.content.pageNumber = 1;$refs.customerUnfllowTable.listData();customerUnfllowInit()} else {unfllowTableParam.content.where.projecttype='';$refs.customerUnfllowTable.listData();customerUnfllowInit()}}"
                         size="small" clearable>
                         <el-option
                             v-for="item in projectType"
                             :key="item.value"
-                            :label="$t(item.value + item.remarks)"
+                            :label="$t(item.value + '-' +item.remarks)"
                             :value="item.value">
                           <span style="float: left">{{ $t(item.value) }}</span>
                           <span style="float: right; color: #8492a6; font-size: 12px">{{ item.remarks?$t(item.remarks):$t('暂无描述') }}</span>
@@ -1512,11 +1512,11 @@
                     </div>
                     <div class="mt-10 inline-16">
                       <p class="search__label">{{$t('项目状态')}}:</p>
-                      <el-select size="small" v-model="unfllowMapParam.content.where.status" multiple filterable placeholder="请选择" @change="unfllowTableParam.content.where.status = unfllowMapParam.content.where.status;unfllowTableParam.content.pageNumber = 1;customerUnfllowInit();$refs.customerUnfllowTable.listData()">
+                      <el-select size="small" v-model="unfllowMapParam.content.where.status" multiple filterable :placeholder="$t(`请选择`)" @change="unfllowTableParam.content.where.status = unfllowMapParam.content.where.status;unfllowTableParam.content.pageNumber = 1;customerUnfllowInit();$refs.customerUnfllowTable.listData()">
                         <el-option
                             v-for="item in option.statusTab"
                             :key="item.value"
-                            :label="item.label"
+                            :label="$t(item.label)"
                             :value="item.value">
                         </el-option>
                       </el-select>
@@ -1530,7 +1530,7 @@
                           value-format="yyyy-MM-dd"
                           type="date"
                           size="small"
-                          placeholder="选择日期"
+                          :placeholder="$t(`选择日期`)"
                           @change="unfllowTableParam.content.enddate=unfllowMapParam.content.enddate;unfllowTableParam.content.pageNumber = 1;customerUnfllowInit();$refs.customerUnfllowTable.listData()">
                       </el-date-picker>
                     </div>
@@ -1545,7 +1545,7 @@
                 <div style="height:calc(100% - 55px)">
                   <div ref="customerUnfllowEl" style="height:30%"></div>
                   <div style="font-size:16px;color:#333333;margin:10px 0">{{ $t(unfllowStatus ? unfllowStatus : '全部') }}</div>
-                  <div :style="{height:windowWidth<1359?'60%':windowWidth<1372?'62%':windowWidth<2110?'66%':'71%'}">
+                  <div :style="{height:windowWidth<1359?'60%':windowWidth<1372?'62%':windowWidth<2110?'66%':'66%'}">
                     <pageTable
                       style="height:calc(100% - 50px)"
                       v-if="projectType[0].value != ''"
@@ -1606,7 +1606,7 @@
                   <div class="progress-item" :style="[{'--bg':colorArr[index]},{'--width':item.avg}]" v-for="(item,index) in dateList" :key="index">
                     <div class="day">{{$t(`平均周期`)}}:{{ item.dateavg.toFixed(2) }}{{$t(`天`)}}</div>
                     <div class="start" v-if="index == 0">
-                      <span>{{ item.start }}</span>
+                      <span>{{ $t(item.start) }}</span>
                       <span v-if="item.end == '立项'">{{$t(`项目立项`)}}</span>
                       <span v-else-if="item.end == '报备'">{{$t(`项目报备审核`)}}</span>
                       <span v-else-if="item.end == '报价'">{{$t(`项目报价审核`)}}</span>
@@ -1615,7 +1615,7 @@
                       <span v-else-if="item.end == '结案'">{{$t(`项目结案`)}}</span>
                     </div>
                     <div class="end">
-                      <span>{{ item.end }}</span>
+                      <span>{{ $t(item.end) }}</span>
                       <span v-if="item.end == '立项'">{{$t(`项目立项`)}}</span>
                       <span v-else-if="item.end == '报备'">{{$t(`项目报备审核`)}}</span>
                       <span v-else-if="item.end == '报价'">{{$t(`项目报价审核`)}}</span>
@@ -2470,6 +2470,15 @@ export default {
       }
       let res = await this.$api.requested(this.typeMapParam)
       this.typeData.map = res.data
+      this.typeData.map = this.typeData.map.map(item=>{
+        return {
+          ratio: item.ratio,
+          key:this.$t(item.key),
+          value: item.value,
+          totalqty: item.totalqty,
+          qty:item.qty
+        }
+      })
       console.log(this.typeData.map,'项目类型数据');
       if (init) {
         this.typeMap = new Pie(this.$refs.typeEl, {
@@ -2499,7 +2508,7 @@ export default {
               style: {
                 fontSize:'16px'
               },
-              content:'项目总数'
+              content:this.$t('项目总数')
             },
             content: {
               offsetY: 4,
@@ -2546,6 +2555,15 @@ export default {
       }
       let res = await this.$api.requested(this.gradMapParam)
       this.gradData.map = res.data
+      this.gradData.map = this.gradData.map.map(item=>{
+        return {
+          ratio: item.ratio,
+          key:this.$t(item.key),
+          value: item.value,
+          totalqty: item.totalqty,
+          qty:item.qty
+        }
+      })
       console.log(this.gradData.map,'项目等级数据');
       if (init) {
         this.gradMap = new Pie(this.$refs.gradEl, {
@@ -2569,7 +2587,7 @@ export default {
               style: {
                 fontSize:'16px'
               },
-              content:'项目总数'
+              content:this.$t('项目总数')
             },
             content: {
               offsetY: 4,
@@ -2616,6 +2634,15 @@ export default {
       }
       let res = await this.$api.requested(this.scoreMapParam1)
       this.scoreData.map = res.data
+      this.scoreData.map = this.scoreData.map.map(item=>{
+        return {
+          ratio: item.ratio,
+          key:this.$t(item.key),
+          value: item.value,
+          totalqty: item.totalqty,
+          qty:item.qty
+        }
+      })
       if (init) {
         this.scoreMap = new Bar(this.$refs.scoreEl, {
           data:this.scoreData.map,
@@ -2680,13 +2707,27 @@ export default {
         }
       }
       this.addData.arr1 = lastYear.concat(nowYear)
-      res.data.lineChart.forEach(item => item[`同比增长率`] = item.value)
+      this.addData.arr1 = this.addData.arr1.map(item=>{
+        return {
+          date: item.date,
+          key:this.$t(item.key),
+          value: item.value,
+        }
+      })
+      // res.data.lineChart.forEach(item => item[`同比增长率`] = item.value)
       this.addData.arr2 = res.data.lineChart
+      this.addData.arr2 = this.addData.arr2.map(item=>{
+        return {
+          date: item.date,
+          key:this.$t('同比增长率'),
+          value: item.value,
+        }
+      })
       if (init) {
         this.addMap = new DualAxes(this.$refs.addEl, {
           data: [this.addData.arr1,this.addData.arr2],
           xField: 'date',
-          yField: ['value', '同比增长率'],
+          yField: ['value', 'value'],
           geometryOptions: [
             {
               geometry: 'column',
@@ -2704,6 +2745,7 @@ export default {
               },
               color: '#F6903D',
               smooth: true,
+              seriesField: 'key',
               label:{
                 position:top,
                 formatter: (datum) =>{
@@ -2714,7 +2756,7 @@ export default {
           ],
           tooltip: {
             formatter: (datum) => {
-              return { name: datum.key?datum.key:'同比增长率', value: datum.key? datum.value  : datum.同比增长率 + '%'};
+              return { name: datum.key, value: datum.key != this.$t('同比增长率')? datum.value  : datum.value + '%'};
             },
           },
         });
@@ -2752,13 +2794,27 @@ export default {
         }
       }
       this.baobeiData.arr1 = lastYear.concat(nowYear)
-      res.data.lineChart.forEach(item => item[`同比增长率`] = item.value)
+      this.baobeiData.arr1 = this.baobeiData.arr1.map(item=>{
+        return {
+          date: item.date,
+          key:this.$t(item.key),
+          value: item.value,
+        }
+      })
+      // res.data.lineChart.forEach(item => item[`同比增长率`] = item.value)
       this.baobeiData.arr2 = res.data.lineChart
+      this.baobeiData.arr2 = this.baobeiData.arr2.map(item=>{
+        return {
+          date: item.date,
+          key:this.$t('同比增长率'),
+          value: item.value,
+        }
+      })
       if (init) {
         this.baobeiMap = new DualAxes(this.$refs.baobeiEl, {
           data: [this.baobeiData.arr1,this.baobeiData.arr2],
           xField: 'date',
-          yField: ['value', '同比增长率'],
+          yField: ['value', 'value'],
           geometryOptions: [
             {
               geometry: 'column',
@@ -2776,6 +2832,7 @@ export default {
               },
               color: '#F6903D',
               smooth: true,
+              seriesField: 'key',
               label:{
                 position:top,
                 formatter: (datum) =>{
@@ -2786,7 +2843,7 @@ export default {
           ],
           tooltip: {
             formatter: (datum) => {
-              return { name: datum.key?datum.key:'同比增长率', value: datum.key? datum.value  : datum.同比增长率 + '%'};
+              return { name: datum.key, value: datum.key != this.$t(`同比增长率`)? datum.value  : datum.value + '%'};
             },
           },
         });
@@ -2824,7 +2881,21 @@ export default {
         }
       }
       this.fllowData.followup = lastYear.concat(nowYear)
-      this.fllowData.tbzzl.forEach(item => item.key = '同比增长率')
+      this.fllowData.followup = this.fllowData.followup.map(item=>{
+        return {
+          date: item.date,
+          key:this.$t(item.key),
+          value: item.value,
+        }
+      })
+      // this.fllowData.tbzzl.forEach(item => item.key = '同比增长率')
+      this.fllowData.tbzzl = this.fllowData.tbzzl.map(item=>{
+        return {
+          date: item.date,
+          key:this.$t(item.key),
+          value: item.value,
+        }
+      })
       console.log(res.data,'跟进数据');
       if (init) {
         this.fllowMap = new DualAxes(this.$refs.fllowEl, {
@@ -2855,7 +2926,7 @@ export default {
           ],
           tooltip: {
             formatter: (datum) => {
-              return { name: datum.key, value: datum.key == '同比增长率'? datum.value + '%' : datum.value };
+              return { name: datum.key, value: datum.key == this.$t('同比增长率')? datum.value + '%' : datum.value };
             },
           },
         })
@@ -2876,7 +2947,13 @@ export default {
       }
       let res = await this.$api.requested(param)
       this.baojiaData = res.data
-
+      this.baojiaData = this.baojiaData.map(item=>{
+        return {
+          date: item.date,
+          key:this.$t(item.key),
+          value: item.value,
+        }
+      })
       if (init) {
         this.baojiaMap = new Line(this.$refs.baojiaEl, {
           data:this.baojiaData,
@@ -2910,6 +2987,14 @@ export default {
       }
       let res = await this.$api.requested(this.fllowMapParam)
       this.projectFllowData.map = res.data
+      this.projectFllowData.map = this.projectFllowData.map.map(item=>{
+        return {
+          ratio: item.ratio,
+          key:this.$t(item.key),
+          value: item.value,
+          totalqty: item.totalqty,
+        }
+      })
       if (init) {
         this.projectFllowMap = new Pie(this.$refs.projectFllowEl, {
           appendPadding: 10,
@@ -2932,7 +3017,7 @@ export default {
               style: {
                 fontSize:'16px'
               },
-              content:'项目总数'
+              content:this.$t('项目总数')
             },
             content: {
               offsetY: 4,
@@ -2979,6 +3064,14 @@ export default {
       }
       let res = await this.$api.requested(this.contactMapParam)
       this.projectContactData.map = res.data
+      this.projectContactData.map = this.projectContactData.map.map(item=>{
+        return {
+          ratio: item.ratio,
+          key:this.$t(item.key),
+          value: item.value,
+          totalqty: item.totalqty,
+        }
+      })
       console.log(this.projectContactData.map,'项目联系人数据');
       if (init) {
         this.projectContactMap = new Pie(this.$refs.projectContactEl, {
@@ -3002,7 +3095,7 @@ export default {
               style: {
                 fontSize:'16px'
               },
-              content:'项目总数'
+              content:this.$t('项目总数')
             },
             content: {
               offsetY: 4,
@@ -3049,6 +3142,14 @@ export default {
       }
       let res = await this.$api.requested(this.customerMapParam)
       this.projectCustomerData.map = res.data
+      this.projectCustomerData.map = this.projectCustomerData.map.map(item=>{
+        return {
+          ratio: item.ratio,
+          key:this.$t(item.key),
+          value: item.value,
+          totalqty: item.totalqty,
+        }
+      })
       console.log(this.projectCustomerData.map,'项目关联客户数据');
       if (init) {
         this.projectCustomerMap = new Pie(this.$refs.projectCustomerEl, {
@@ -3072,7 +3173,7 @@ export default {
               style: {
                 fontSize:'16px'
               },
-              content:'项目总数'
+              content:this.$t('项目总数')
             },
             content: {
               offsetY: 4,
@@ -3119,6 +3220,14 @@ export default {
       }
       let res = await this.$api.requested(this.scoreMapParam)
       this.projectScoreData.map = res.data
+      this.projectScoreData.map = this.projectScoreData.map.map(item=>{
+        return {
+          ratio: item.ratio,
+          key:this.$t(item.key),
+          value: item.value,
+          totalqty: item.totalqty,
+        }
+      })
       console.log(this.projectScoreData.map,'项目评估数据');
       if (init) {
         this.projectScoreMap = new Pie(this.$refs.projectScoreEl, {
@@ -3142,7 +3251,7 @@ export default {
               style: {
                 fontSize:'16px'
               },
-              content:'项目总数'
+              content:this.$t('项目总数')
             },
             content: {
               offsetY: 4,
@@ -3203,6 +3312,15 @@ export default {
       }
       let res = await this.$api.requested(this.unfllowMapParam)
       this.customerUnfllowData.map = res.data
+      this.customerUnfllowData.map = this.customerUnfllowData.map.map(item=>{
+        return {
+          datetype: this.$t(item.datetype),
+          key:this.$t(item.key),
+          projecttype:this.$t(item.projecttype),
+          value: item.value,
+          sequence: item.sequence,
+        }
+      })
       if (init) {
         this.customerUnfllowMap = new Column(this.$refs.customerUnfllowEl, {
           data:this.customerUnfllowData.map,

+ 2 - 2
src/HDrpManagement/salerpriceData/index.vue

@@ -110,8 +110,8 @@
                   <div class="data-item div-hover-click" @click="onClick('营销费用总金额')">
                     <p>
                       <span v-if="dataAll.amount > 10000"
-                        >{{ tool.formatAmount(dataAll.amount / 10000, 2)
-                        }}<span style="font-size: 14px">万</span></span
+                        >{{ tool.formatAmount(tool.unitConversion(dataAll.amount,10000), 2)
+                        }}<span style="font-size: 14px">{{$t(``)}}</span></span
                       >
                       <span v-else>{{
                         tool.formatAmount(dataAll.amount, 2)

+ 9 - 9
src/HDrpManagement/salerpriceData/modules/customerType.vue

@@ -4,7 +4,7 @@
         <div class="out">
           <div>
             <div class="div-line div-line-right"></div>
-            <div class="title" style="min-width: 220px;"> 客户类型营销费用情况统计</div>
+            <div class="title" style="min-width: 220px;"> {{$t(`客户类型营销费用情况统计`)}}</div>
           </div>
           <div class="in">
             <div class="inline-16 mt-10">
@@ -18,12 +18,12 @@
               </el-select>
             </div>
             <div class="mt-10 inline-16">
-              <label class="search__label">费用类型:</label>
-              <el-select v-model="param.content.where.feestype" placeholder="请选择费用类型" class="inline-16" size="small" filterable clearable @change="queryModel(param.content.dataid,null,param.content.where.isleave)" @focus="feesTypeData">
+              <label class="search__label">{{$t(`费用类型`)}}:</label>
+              <el-select v-model="param.content.where.feestype" :placeholder="$t(`请选择费用类型`)" class="inline-16" size="small" filterable clearable @change="queryModel(param.content.dataid,null,param.content.where.isleave)" @focus="feesTypeData">
                 <el-option
                     v-for="item in feestypeList"
                     :key="item.index"
-                    :label="item.value + '-' + item.remarks"
+                    :label="$t(item.value + '-' + item.remarks)"
                     :value="item.value">
                 </el-option>
               </el-select>
@@ -179,14 +179,14 @@
         }
 
         if (this.type === '金额'){
-          if (res.data[0].ratio[0]) this.totalamount = '¥'+this.tool.formatAmount(res.data[0].ratio[0].total/10000,2)+'万'
+          if (res.data[0].ratio[0]) this.totalamount = '¥'+this.tool.formatAmount(this.tool.unitConversion(res.data[0].ratio[0].total,10000),2)+this.$t('万')
         }else {
           this.totalamount = res.data[0].ratio[0].total
         }
         this.chartData = this.list[0].ratio.map(item=>{
           return {
             "totalamount": this.totalamount,//值
-            "type": item.type,
+            "type": this.$t(item.type),
             "rowindex": item.rowindex,
             "ratio": Math.round(((item.ratio * 100)*100)/100) //比例
           }
@@ -226,14 +226,14 @@
           sessionStorage.setItem('total',res.total)
         }
         if (this.type === '金额'){
-          if (res.data[0].ratio[0]) this.totalamount = '¥'+this.tool.formatAmount(res.data[0].ratio[0].total/10000,2)+'万'
+          if (res.data[0].ratio[0]) this.totalamount = '¥'+this.tool.formatAmount(this.tool.unitConversion(res.data[0].ratio[0].total,10000),2)+this.$t('万')
         }else {
           this.totalamount = res.data[0].ratio[0].total
         }
         this.chartData = res.data[0].ratio.map(item=>{
           return {
             "totalamount": this.totalamount,//值
-            "type": item.type,
+            "type": this.$t(item.type),
             "rowindex": item.rowindex,
             "ratio": Math.round(((item.ratio * 100)*100)/100), //比例
             "value":item.value
@@ -306,7 +306,7 @@
               style: {
                 fontSize:'16px'
               },
-              content: '客户营销费用'
+              content: this.$t('客户营销费用')
             },
             content: {
               offsetY: 4,

+ 9 - 9
src/HDrpManagement/salerpriceData/modules/phoneType.vue

@@ -4,7 +4,7 @@
         <div class="out">
           <div>
             <div class="div-line div-line-right"></div>
-            <div class="title" style="min-width: 230px;">营销费用来源情况统计</div>
+            <div class="title" style="min-width: 230px;">{{$t(`营销费用来源情况统计`)}}</div>
           </div>
           <div class="in">
             <div class="inline-16 mt-10">
@@ -18,12 +18,12 @@
               </el-select>
             </div>
             <div class="mt-10 inline-16">
-              <label class="search__label">费用类型:</label>
-              <el-select v-model="param.content.where.feestype" placeholder="请选择费用类型" class="inline-16" size="small" filterable clearable @change="queryModel(param.content.dataid,null,param.content.where.isleave)" @focus="feesTypeData">
+              <label class="search__label">{{$t(`费用类型`)}}:</label>
+              <el-select v-model="param.content.where.feestype" :placeholder="$t(`请选择费用类型`)" class="inline-16" size="small" filterable clearable @change="queryModel(param.content.dataid,null,param.content.where.isleave)" @focus="feesTypeData">
                 <el-option
                     v-for="item in feestypeList"
                     :key="item.index"
-                    :label="item.value + '-' + item.remarks"
+                    :label="$t(item.value + '-' + item.remarks)"
                     :value="item.value">
                 </el-option>
               </el-select>
@@ -171,14 +171,14 @@
         }
 
         if (this.type === '金额'){
-          if (res.data[0].ratio[0]) this.totalamount = '¥'+this.tool.formatAmount(res.data[0].ratio[0].total/10000,2)+'万'
+          if (res.data[0].ratio[0]) this.totalamount = '¥'+this.tool.formatAmount(this.tool.unitConversion(res.data[0].ratio[0].total,10000),2)+this.$t('万')
         }else {
           this.totalamount = res.data[0].ratio[0].total
         }
         this.chartData = this.list[0].ratio.map(item=>{
           return {
             "totalamount": this.totalamount,//值
-            "type": item.type,
+            "type": this.$t(item.type),
             "rowindex": item.rowindex,
             "ratio": Math.round(((item.ratio * 100)*100)/100) //比例
           }
@@ -218,14 +218,14 @@
           sessionStorage.setItem('total',res.total)
         }
         if (this.type === '金额'){
-          if (res.data[0].ratio[0]) this.totalamount = '¥'+this.tool.formatAmount(res.data[0].ratio[0].total/10000,2)+'万'
+          if (res.data[0].ratio[0]) this.totalamount = '¥'+this.tool.formatAmount(this.tool.unitConversion(res.data[0].ratio[0].total,10000),2)+this.$t('万')
         }else {
           this.totalamount = res.data[0].ratio[0].total
         }
         this.chartData = res.data[0].ratio.map(item=>{
           return {
             "totalamount": this.totalamount,//值
-            "type": item.type,
+            "type": this.$t(item.type),
             "rowindex": item.rowindex,
             "ratio": Math.round(((item.ratio * 100)*100)/100), //比例
             "value":item.value
@@ -298,7 +298,7 @@
               style: {
                 fontSize:'16px'
               },
-              content: '总计'
+              content: this.$t('总计')
             },
             content: {
               offsetY: 4,

+ 9 - 9
src/HDrpManagement/salerpriceData/modules/projectType.vue

@@ -4,7 +4,7 @@
         <div class="out">
           <div>
             <div class="div-line div-line-right"></div>
-            <div class="title" style="min-width: 220px;"> 项目类型营销费用情况统计</div>
+            <div class="title" style="min-width: 220px;"> {{$t(`项目类型营销费用情况统计`)}}</div>
           </div>
           <div class="in">
             <div class="inline-16 mt-10">
@@ -18,12 +18,12 @@
               </el-select>
             </div>
             <div class="mt-10 inline-16">
-              <label class="search__label">费用类型:</label>
-              <el-select v-model="param.content.where.feestype" placeholder="请选择费用类型" class="inline-16" size="small" filterable clearable @change="queryModel(param.content.dataid,null,param.content.where.isleave)" @focus="feesTypeData">
+              <label class="search__label">{{$t(`费用类型`)}}:</label>
+              <el-select v-model="param.content.where.feestype" :placeholder="$t(`请选择费用类型`)" class="inline-16" size="small" filterable clearable @change="queryModel(param.content.dataid,null,param.content.where.isleave)" @focus="feesTypeData">
                 <el-option
                     v-for="item in feestypeList"
                     :key="item.index"
-                    :label="item.value + '-' + item.remarks"
+                    :label="$t(item.value + '-' + item.remarks)"
                     :value="item.value">
                 </el-option>
               </el-select>
@@ -171,14 +171,14 @@
         }
 
         if (this.type === '金额'){
-          if (res.data[0].ratio[0]) this.totalamount = '¥'+this.tool.formatAmount(res.data[0].ratio[0].total/10000,2)+'万'
+          if (res.data[0].ratio[0]) this.totalamount = '¥'+this.tool.formatAmount(this.tool.unitConversion(res.data[0].ratio[0].total,10000),2)+this.$t('万')
         }else {
           this.totalamount = res.data[0].ratio[0].total
         }
         this.chartData = this.list[0].ratio.map(item=>{
           return {
             "totalamount": this.totalamount,//值
-            "type": item.type,
+            "type": this.$t(item.type),
             "rowindex": item.rowindex,
             "ratio": Math.round(((item.ratio * 100)*100)/100) //比例
           }
@@ -217,14 +217,14 @@
           sessionStorage.setItem('total',res.total)
         }
         if (this.type === '金额'){
-          if (res.data[0].ratio[0]) this.totalamount = '¥'+this.tool.formatAmount(res.data[0].ratio[0].total/10000,2)+'万'
+          if (res.data[0].ratio[0]) this.totalamount = '¥'+this.tool.formatAmount(this.tool.unitConversion(res.data[0].ratio[0].total,10000),2)+this.$t('万')
         }else {
           this.totalamount = res.data[0].ratio[0].total
         }
         this.chartData = res.data[0].ratio.map(item=>{
           return {
             "totalamount": this.totalamount,//值
-            "type": item.type,
+            "type": this.$t(item.type),
             "rowindex": item.rowindex,
             "ratio": Math.round(((item.ratio * 100)*100)/100), //比例
             "value":item.value
@@ -297,7 +297,7 @@
               style: {
                 fontSize:'16px'
               },
-              content: '项目营销费用'
+              content: this.$t('项目营销费用')
             },
             content: {
               offsetY: 4,

+ 5 - 5
src/HDrpManagement/salerpriceData/modules/salerType.vue

@@ -23,7 +23,7 @@
                 <el-option
                     v-for="item in feestypeList"
                     :key="item.index"
-                    :label="item.value + '-' + item.remarks"
+                    :label="$t(item.value + '-' + item.remarks)"
                     :value="item.value + '-' + item.remarks">
                 </el-option>
               </el-select>
@@ -220,15 +220,15 @@
           sessionStorage.setItem('total',res.total)
         }
         if (this.type === '金额'){
-          if (res.data[0].ratio[0]) this.totalamount = '¥'+this.tool.formatAmount(res.data[0].ratio[0].total/10000,2)+'万'
+          if (res.data[0].ratio[0]) this.totalamount = '¥'+this.tool.formatAmount(this.tool.unitConversion(res.data[0].ratio[0].total,10000),2)+this.$t('万')
         }else {
           this.totalamount = res.data[0].ratio[0].total
         }
         this.chartData = res.data[0].ratio.map(item=>{
           return {
             "totalamount": this.totalamount,//值
-            "type": item.text,
-            "text": item.text,
+            "type": this.$t(item.text),
+            "text": this.$t(item.text),
             "rowindex": item.rowindex,
             "ratio": Math.round(((item.ratio * 100)*100)/100), //比例
             "value":item.value
@@ -301,7 +301,7 @@
               style: {
                 fontSize:'16px'
               },
-              content: '总计'
+              content: this.$t('总计')
             },
             content: {
               offsetY: 4,

+ 1 - 1
src/HManagement/task/index.vue

@@ -78,7 +78,7 @@
 export default {
   data () {
     return {
-      options:[{label:'全部',value:0},{label:'我负责的',value:1},{label:'我参与的',value:2},{label:'我下属负责的',value:3},{label:'我下属参与的',value:4},{label:'我创建的',value:5}],
+      options:[{label:'全部',value:0},{label:'我负责的',value:1},{label:'我参与的',value:2},{label:'我下属负责的',value:3},{label:'我下属参与的',value:4},{label:'我下属创建的',value:9},{label:'我创建的',value:5}],
       type:0,
       statusList:[
         {