xiaohaizhao 9 месяцев назад
Родитель
Сommit
d213f1eca8

+ 1 - 1
src/HDrpManagement/salerpriceData/components/allSalesTemplate.vue

@@ -1,6 +1,6 @@
 <template>
   <div style=" display: inline-block !important;">
-    <el-button type="primary" size="small" @click="showVisible">{{buttonTitle}}<i class="el-icon-arrow-right el-icon--right"></i></el-button>
+    <el-button type="primary" size="small" @click="showVisible">{{$t(buttonTitle)}}<i class="el-icon-arrow-right el-icon--right"></i></el-button>
     <el-drawer
         :title="$t(`业务员全部排名`)"
         :visible.sync="visible"

+ 1 - 1
src/HManagement/ecycle/modules/recovery.vue

@@ -41,7 +41,7 @@
         <el-button v-if="type === '客户'" @click="dialogTableVisible = false" size="small" type="primary" class="normal-btn-width">{{$t('确 定')}}</el-button>
          <el-button v-if="type === '项目'" @click="dialogTableVisible = false;onRecovery()" size="small" type="primary" class="normal-btn-width">{{$t('确定恢复')}}</el-button>
          <el-button v-if="type === '项目'" @click="dialogTableVisible = false" size="small"  class="normal-btn-width">{{$t('取 消')}}</el-button>
-        <!--        <el-button :type="buttonTitle === '确定保存'?'warning':'primary'" @click="onCheck" size="small" class="normal-btn-width">{{buttonTitle}}</el-button>-->
+        <!--        <el-button :type="buttonTitle === '确定保存'?'warning':'primary'" @click="onCheck" size="small" class="normal-btn-width">{{$t(buttonTitle)}}</el-button>-->
       </span>
     </el-dialog>
   </div>

+ 1 - 1
src/components/down_select/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="select1">
-    <p class="search__label">{{title}}:</p>
+    <p class="search__label">{{$t(title)}}:</p>
     <el-select v-model="result" :multiple="multiple" clearable @clear="clearCatory" :placeholder="`${$t('请选择')}${' '}${title}`" size="small" @change="change" :width="width ? width : ''">
       <el-option
         v-for="item in list"

+ 1 - 1
src/components/duplicatesCheck/customerChangeCheck.vue

@@ -39,7 +39,7 @@
       </div>
       <span slot="footer" class="dialog-footer" v-if="creatShow">
         <el-button @click="dialogTableVisible = false" type="primary" size="small" class="normal-btn-width">{{$t('确 定')}}</el-button>
-<!--        <el-button :type="buttonTitle === '确定保存'?'warning':'primary'" @click="onCheck" size="small" class="normal-btn-width">{{buttonTitle}}</el-button>-->
+<!--        <el-button :type="buttonTitle === '确定保存'?'warning':'primary'" @click="onCheck" size="small" class="normal-btn-width">{{$t(buttonTitle)}}</el-button>-->
       </span>
     </el-dialog>
   </div>

+ 2 - 2
src/components/duplicatesCheck/customerCheck.vue

@@ -43,7 +43,7 @@
           <el-button @click="dialogTableVisible = false" size="small" type="primary" class="normal-btn-width">{{$t('确 定')}}</el-button>
         </div>
 
-<!--        <el-button :type="buttonTitle === '确定保存'?'warning':'primary'" @click="onCheck" size="small" class="normal-btn-width">{{buttonTitle}}</el-button>-->
+<!--        <el-button :type="buttonTitle === '确定保存'?'warning':'primary'" @click="onCheck" size="small" class="normal-btn-width">{{$t(buttonTitle)}}</el-button>-->
       </span>
       <span slot="footer" class="dialog-footer" v-if="isBack && !creatShow">
         <div style="display: flex;justify-content: space-between">
@@ -51,7 +51,7 @@
           <el-button  @click="dialogTableVisible = false;isBack = false" size="small" type="primary" class="normal-btn-width">{{$t('确 定')}}</el-button>
         </div>
 
-        <!--        <el-button :type="buttonTitle === '确定保存'?'warning':'primary'" @click="onCheck" size="small" class="normal-btn-width">{{buttonTitle}}</el-button>-->
+        <!--        <el-button :type="buttonTitle === '确定保存'?'warning':'primary'" @click="onCheck" size="small" class="normal-btn-width">{{$t(buttonTitle)}}</el-button>-->
       </span>
     </el-dialog>
   </div>

+ 2 - 2
src/components/duplicatesCheck/publicCustomerCheck.vue

@@ -44,7 +44,7 @@
           <el-button @click="dialogTableVisible = false" size="small" type="primary" class="normal-btn-width">{{$t('确 定')}}</el-button>
         </div>
 
-        <!--        <el-button :type="buttonTitle === '确定保存'?'warning':'primary'" @click="onCheck" size="small" class="normal-btn-width">{{buttonTitle}}</el-button>-->
+        <!--        <el-button :type="buttonTitle === '确定保存'?'warning':'primary'" @click="onCheck" size="small" class="normal-btn-width">{{$t(buttonTitle)}}</el-button>-->
       </span>
       <span slot="footer" class="dialog-footer" v-if="isBack && !creatShow">
         <div style="display: flex;justify-content: space-between">
@@ -52,7 +52,7 @@
           <el-button  @click="dialogTableVisible = false;isBack = false" size="small" type="primary" class="normal-btn-width">{{$t('确 定')}}</el-button>
         </div>
 
-        <!--        <el-button :type="buttonTitle === '确定保存'?'warning':'primary'" @click="onCheck" size="small" class="normal-btn-width">{{buttonTitle}}</el-button>-->
+        <!--        <el-button :type="buttonTitle === '确定保存'?'warning':'primary'" @click="onCheck" size="small" class="normal-btn-width">{{$t(buttonTitle)}}</el-button>-->
       </span>
     </el-dialog>
   </div>

+ 1 - 1
src/components/normal-basic-layout-new/modules/cardList.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="card__list__item">
-    <p class="item__title sticky" :style="{background:bgColor[index]}">{{title}}</p>
+    <p class="item__title sticky" :style="{background:bgColor[index]}">{{$t(title)}}</p>
     <el-card style="border:none" shadow="never">
       <p style="font-size:30px"><small>¥</small>&nbsp;3300</p>
     </el-card>

+ 1 - 1
src/components/normal-basic-layout/modules/cardList.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="card__list__item">
-    <p class="item__title sticky" :style="{background:bgColor[index]}">{{title}}</p>
+    <p class="item__title sticky" :style="{background:bgColor[index]}">{{$t(title)}}</p>
     <el-card style="border:none" shadow="never">
       <p style="font-size:30px"><small>¥</small>&nbsp;3300</p>
     </el-card>

+ 1 - 1
src/views/salesData/components/accountBalanceDetail.vue

@@ -84,7 +84,7 @@
         </tableTemplate>
         <div  v-for="item in counts" :key="item.index">
           <div class="container normal-panel" style="float: left">
-          <span>{{item.accountname}}:</span>
+          <span>{{$t(item.accountname)}}:</span>
           <span style="color: red">¥{{tool.formatAmount(item.balance,2)}}</span>
           </div>
         </div>

+ 1 - 1
src/views/salesData/components/allSalesTemplate.vue

@@ -1,6 +1,6 @@
 <template>
   <div style=" display: inline-block !important;">
-    <el-button type="primary" size="small" @click="showVisible">{{buttonTitle}}<i class="el-icon-arrow-right el-icon--right"></i></el-button>
+    <el-button type="primary" size="small" @click="showVisible">{{$t(buttonTitle)}}<i class="el-icon-arrow-right el-icon--right"></i></el-button>
     <el-drawer
         :title="buttonTitle === '客户全部排名'?$t('客户销售排名'):$t('业务员销售排名')"
         :visible.sync="visible"

+ 1 - 1
src/views/salesData/components/boxLine.vue

@@ -2,7 +2,7 @@
   <div class="box-line-new">
     <div class="item" >
       <div class="title inline-16">
-        {{title}}
+        {{$t(title)}}
       </div>
       <el-tooltip  effect="dark"  placement="top-start" >
         <div slot="content">

+ 2 - 2
src/views/salesData/components/boxLine1.vue

@@ -2,11 +2,11 @@
   <div class="box-line" :style="{width:windowWidth > 2000?'15.6%':'24%',marginRight:windowWidth > 2000?'1%':'1%'}">
     <div class="item">
       <div class="title inline-16">
-        {{title}}
+        {{$t(title)}}
       </div>
       <el-tooltip  effect="dark"  placement="top-start">
         <div slot="content">
-          {{content}}
+          {{$t(content)}}
         </div>
 <!--        <i class="el-icon-question" style="color: #afb0be;float: right;"></i>-->
         <img width="14px" height="14px" src="../../../assets/icons/prompt_icon.svg" style="float: right">

+ 2 - 2
src/views/salesData/components/boxLineFor.vue

@@ -2,11 +2,11 @@
   <div class="box-line">
     <div class="item">
       <div class="title inline-16">
-        {{title}}
+        {{$t(title)}}
       </div>
       <el-tooltip  effect="dark"  placement="top-start">
         <div slot="content">
-          {{content}}
+          {{$t(content)}}
         </div>
 <!--        <i class="el-icon-question" style="color: #afb0be;float: right;margin-top: 0px"></i>-->
         <img width="14px" height="14px" src="../../../assets/icons/prompt_icon.svg" style="float: right">

+ 558 - 315
src/views/salesData/index.vue

@@ -1,38 +1,80 @@
 <template>
-  <div style="background: #f8f8f8;">
+  <div style="background: #f8f8f8">
     <normalLayout>
       <template #refresh>
-        <el-button size="mini" type="text" style="margin-right: 15px;color: #3874f6;font-size: 14px" @click="toTop">{{$t('返回顶部')}}</el-button>
-<!--        <i class="el-icon-refresh-right"></i>-->
+        <el-button
+          size="mini"
+          type="text"
+          style="margin-right: 15px; color: #3874f6; font-size: 14px"
+          @click="toTop"
+          >{{ $t("返回顶部") }}</el-button
+        >
+        <!--        <i class="el-icon-refresh-right"></i>-->
       </template>
       <template #content>
-        <div  style="overflow: auto;height: calc(100vh - 220px);" ref="rollRef" @scroll="handleScroll">
-          <div style="margin: 10px 24px 10px 24px;" >
+        <div
+          style="overflow: auto; height: calc(100vh - 220px)"
+          ref="rollRef"
+          @scroll="handleScroll"
+        >
+          <div style="margin: 10px 24px 10px 24px">
             <div class="inline-16">
-              <label  class="search__label" >{{$t('部门')}}:</label>
-              <el-cascader :placeholder="$t('请选择')" ref="selectdep" size="small" v-model="depment" :options="deplist" :props="{emitPath:true,expandTrigger:'hover',checkStrictly:true,label:'label',value:'departmentid',children:'children'}"  @change="selectDep" clearable ></el-cascader>
+              <label class="search__label">{{ $t("部门") }}:</label>
+              <el-cascader
+                :placeholder="$t('请选择')"
+                ref="selectdep"
+                size="small"
+                v-model="depment"
+                :options="deplist"
+                :props="{
+                  emitPath: true,
+                  expandTrigger: 'hover',
+                  checkStrictly: true,
+                  label: 'label',
+                  value: 'departmentid',
+                  children: 'children',
+                }"
+                @change="selectDep"
+                clearable
+              ></el-cascader>
             </div>
             <div class="inline-16">
-              <label  class="search__label" >{{$t('业务员')}}:</label>
-              <el-select v-model="person" filterable :placeholder="$t('请选择')" size="small" clearable @change="selectPerson">
+              <label class="search__label">{{ $t("业务员") }}:</label>
+              <el-select
+                v-model="person"
+                filterable
+                :placeholder="$t('请选择')"
+                size="small"
+                clearable
+                @change="selectPerson"
+              >
                 <el-option
-                    v-for="item in personnelList"
-                    :key="item.index"
-                    :label="$t(item.name)"
-                    :value="item.userid">
+                  v-for="item in personnelList"
+                  :key="item.index"
+                  :label="$t(item.name)"
+                  :value="item.userid"
+                >
                 </el-option>
               </el-select>
             </div>
             <div class="mt-10 inline-16">
-              <p class="search__label">{{$t('状态')}}:</p>
-              <el-select v-model="isleave" clearable style="margin-right:10px" size="small" :placeholder="$t(`请选择状态`)" @change="leaveChange" :disabled="depment == ''">
+              <p class="search__label">{{ $t("状态") }}:</p>
+              <el-select
+                v-model="isleave"
+                clearable
+                style="margin-right: 10px"
+                size="small"
+                :placeholder="$t(`请选择状态`)"
+                @change="leaveChange"
+                :disabled="depment == ''"
+              >
                 <el-option :label="$t(`在职`)" value="1"></el-option>
                 <el-option :label="$t(`离职`)" value="2"></el-option>
               </el-select>
             </div>
           </div>
           <!--  数字看板      -->
-          <digitalSigns ref="digitalSigns" :windowWidth="windowWidth"></digitalSigns>
+          <!-- <digitalSigns ref="digitalSigns" :windowWidth="windowWidth"></digitalSigns> -->
           <!--  客户账户余额分析      -->
           <!-- <customerAccountBalanceAnalysis ref="customerAccountBalanceAnalysis" :dataid="departmentid" :windowWidth="windowWidth" :scrollHeight="scrollData" @backFull="backFull" ></customerAccountBalanceAnalysis> -->
           <!--  客户业务员销售      -->
@@ -49,7 +91,13 @@
             </div>
           </div> -->
           <!--  报价分析      -->
-          <!-- <quotationAnalysis ref="quotationAnalysis" :dataid="departmentid" :windowWidth="windowWidth" :scrollHeight="scrollData" @backFull="backFull"></quotationAnalysis> -->
+          <quotationAnalysis
+            ref="quotationAnalysis"
+            :dataid="departmentid"
+            :windowWidth="windowWidth"
+            :scrollHeight="scrollData"
+            @backFull="backFull"
+          ></quotationAnalysis>
           <!--  订单趋势分析      -->
           <!-- <orderTrendAnalysis ref="orderTrendAnalysis" :dataid="departmentid" :windowWidth="windowWidth" :scrollHeight="scrollData" @backFull="backFull"></orderTrendAnalysis> -->
           <!--  订单类型占比分析      -->
@@ -69,7 +117,6 @@
           <!--  财务回款分析      -->
           <!-- <financialCollectionAnalysis ref="financialCollectionAnalysis" :scrollHeight="scrollData" :windowWidth="windowWidth" @backFull="backFull"></financialCollectionAnalysis> -->
         </div>
-
       </template>
     </normalLayout>
   </div>
@@ -90,290 +137,472 @@ import uninvoiceAmountAnalysis from "@/views/salesData/modules/uninvoiceAmountAn
 import shippingUninvoiceAnalysis from "@/views/salesData/modules/shippingUninvoiceAnalysis";
 import financialCollectionAnalysis from "@/views/salesData/modules/financialCollectionAnalysis";
 import customerAccountBalanceAnalysis from "@/views/salesData/modules/customerAccountBalanceAnalysis";
-import normalLayout from '@/components/normal-basic-layout/normalNew'
+import normalLayout from "@/components/normal-basic-layout/normalNew";
 export default {
   name: "index",
-  components:{normalLayout,digitalSigns,customerSales,salespersonSales,quotationAnalysis,orderTrendAnalysis,orderType,orderProductCategory,
-    shippingTrendAnalysis,delayedShipmentAnalysis,invoiceAmountAnalysis,uninvoiceAmountAnalysis,shippingUninvoiceAnalysis,
-    financialCollectionAnalysis,customerAccountBalanceAnalysis
+  components: {
+    normalLayout,
+    digitalSigns,
+    customerSales,
+    salespersonSales,
+    quotationAnalysis,
+    orderTrendAnalysis,
+    orderType,
+    orderProductCategory,
+    shippingTrendAnalysis,
+    delayedShipmentAnalysis,
+    invoiceAmountAnalysis,
+    uninvoiceAmountAnalysis,
+    shippingUninvoiceAnalysis,
+    financialCollectionAnalysis,
+    customerAccountBalanceAnalysis,
   },
-  data(){
+  data() {
     return {
-      depment:'',
-      person:'',
-      departmentid:'',
-      isleave:'',
-      deplist:[],
-      personnelList:[],
-      activeName: '客户销售',
-      depmentParam:{
-        "id": 20230620102004,
-        "content": {
-          "isleave":0
-        }
+      depment: "",
+      person: "",
+      departmentid: "",
+      isleave: "",
+      deplist: [],
+      personnelList: [],
+      activeName: "客户销售",
+      depmentParam: {
+        id: 20230620102004,
+        content: {
+          isleave: 0,
+        },
       },
-      windowWidth: document.documentElement.clientWidth,  //实时屏幕宽度
-      scrollData:''
-    }
+      windowWidth: document.documentElement.clientWidth, //实时屏幕宽度
+      scrollData: "",
+    };
   },
-  methods:{
+  methods: {
     async departmentrtment() {
-      const res = await this.$api.requested(this.depmentParam)
-      this.deplist = this.createMenu(res.data.dep)
-      this.personnelList = res.data.hr
-      this.person = JSON.parse(window.sessionStorage.getItem('active_account')).name
-      this.depment = ''
-      this.departmentid = ''
-      const userid = JSON.parse(sessionStorage.getItem('active_account')).userid
+      const res = await this.$api.requested(this.depmentParam);
+      this.deplist = this.createMenu(res.data.dep);
+      this.personnelList = res.data.hr;
+      this.person = JSON.parse(
+        window.sessionStorage.getItem("active_account")
+      ).name;
+      this.depment = "";
+      this.departmentid = "";
+      const userid = JSON.parse(
+        sessionStorage.getItem("active_account")
+      ).userid;
 
-      this.otherMethod(userid)
+      this.otherMethod(userid);
     },
     /*其他页面调用*/
-    otherMethod(dataid){
-      const userName = JSON.parse(sessionStorage.getItem('active_account')).name
+    otherMethod(dataid) {
+      const userName = JSON.parse(
+        sessionStorage.getItem("active_account")
+      ).name;
       /*数字看板*/
-      this.$refs.digitalSigns.$refs.order.param.content.dataid = dataid
-      this.$refs.digitalSigns.$refs.order.param.content.type = 0
-      this.$refs.digitalSigns.$refs.order.listData()
-      this.$refs.digitalSigns.$refs.shipment.param.content.dataid = dataid
-      this.$refs.digitalSigns.$refs.shipment.param.content.type = 0
-      this.$refs.digitalSigns.$refs.shipment.listData()
-      this.$refs.digitalSigns.$refs.invoicing.param.content.dataid = dataid
-      this.$refs.digitalSigns.$refs.invoicing.param.content.type = 0
-      this.$refs.digitalSigns.$refs.invoicing.listData()
-      this.$refs.digitalSigns.$refs.returned.param.content.dataid = dataid
-      this.$refs.digitalSigns.$refs.returned.param.content.type = 0
-      this.$refs.digitalSigns.$refs.returned.listData()
+      try {
+        this.$refs.digitalSigns.$refs.order.param.content.dataid = dataid;
+        this.$refs.digitalSigns.$refs.order.param.content.type = 0;
+        this.$refs.digitalSigns.$refs.order.listData();
+        this.$refs.digitalSigns.$refs.shipment.param.content.dataid = dataid;
+        this.$refs.digitalSigns.$refs.shipment.param.content.type = 0;
+        this.$refs.digitalSigns.$refs.shipment.listData();
+        this.$refs.digitalSigns.$refs.invoicing.param.content.dataid = dataid;
+        this.$refs.digitalSigns.$refs.invoicing.param.content.type = 0;
+        this.$refs.digitalSigns.$refs.invoicing.listData();
+        this.$refs.digitalSigns.$refs.returned.param.content.dataid = dataid;
+        this.$refs.digitalSigns.$refs.returned.param.content.type = 0;
+        this.$refs.digitalSigns.$refs.returned.listData();
+      } catch (error) {}
+
       /*账户余额分析*/
+      try {
+        /*this.$refs.customerAccountBalanceAnalysis.$refs.departmentSalesperson.depment = dataid*/
+        this.$refs.customerAccountBalanceAnalysis.person = userName;
+        this.$refs.customerAccountBalanceAnalysis.deplist = this.deplist;
+        this.$refs.customerAccountBalanceAnalysis.personnelList =
+          this.personnelList;
+        this.$refs.customerAccountBalanceAnalysis.listData(dataid);
+      } catch (error) {}
 
-      /*this.$refs.customerAccountBalanceAnalysis.$refs.departmentSalesperson.depment = dataid*/
-      this.$refs.customerAccountBalanceAnalysis.person = userName
-      this.$refs.customerAccountBalanceAnalysis.deplist = this.deplist
-      this.$refs.customerAccountBalanceAnalysis.personnelList = this.personnelList
-      this.$refs.customerAccountBalanceAnalysis.listData(dataid)
       /*客户销售*/
-      this.$refs.customer.param.content.dataid = dataid
-      this.$refs.salesperson.param.content.dataid = dataid
-      this.$refs.customer.$refs.sales.$refs.departmentSalesperson.person = userName
-      this.$refs.customer.$refs.sales.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.customer.$refs.sales.$refs.departmentSalesperson.personnelList = this.personnelList
-      this.$refs.salesperson.$refs.sales.$refs.departmentSalesperson.person = userName
-      this.$refs.salesperson.$refs.sales.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.salesperson.$refs.sales.$refs.departmentSalesperson.personnelList = this.personnelList
-      this.$refs.customer.listData(dataid)
-      this.activeName = '客户销售'
+      try {
+        this.$refs.customer.param.content.dataid = dataid;
+        this.$refs.salesperson.param.content.dataid = dataid;
+        this.$refs.customer.$refs.sales.$refs.departmentSalesperson.person =
+          userName;
+        this.$refs.customer.$refs.sales.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.customer.$refs.sales.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+        this.$refs.salesperson.$refs.sales.$refs.departmentSalesperson.person =
+          userName;
+        this.$refs.salesperson.$refs.sales.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.salesperson.$refs.sales.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+        this.$refs.customer.listData(dataid);
+        this.activeName = "客户销售";
+      } catch (error) {}
+
       /*报价分析*/
-      this.$refs.quotationAnalysis.listData(dataid)
-      this.$refs.quotationAnalysis.queryQuotation(dataid)
-      /*this.$refs.quotationAnalysis.$refs.departmentSalesperson.depment = dataid*/
-      this.$refs.quotationAnalysis.$refs.departmentSalesperson.person = userName
-      this.$refs.quotationAnalysis.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.quotationAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
+      try {
+        this.$refs.quotationAnalysis.listData(dataid);
+        this.$refs.quotationAnalysis.queryQuotation(dataid);
+        /*this.$refs.quotationAnalysis.$refs.departmentSalesperson.depment = dataid*/
+        this.$refs.quotationAnalysis.$refs.departmentSalesperson.person =
+          userName;
+        this.$refs.quotationAnalysis.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.quotationAnalysis.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+      } catch (error) {}
+
       /*订单趋势分析*/
-      this.$refs.orderTrendAnalysis.listData(dataid)
-      /*this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.depment = dataid*/
-      this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.person = userName
-      this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
+      try {
+        this.$refs.orderTrendAnalysis.listData(dataid);
+        /*this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.depment = dataid*/
+        this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.person =
+          userName;
+        this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+      } catch (error) {}
+
       /*订单类型占比分析*/
-      this.$refs.orderType.listData(dataid)
-      this.$refs.orderType.$refs.departmentSalesperson.person = userName
-      this.$refs.orderType.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.orderType.$refs.departmentSalesperson.personnelList = this.personnelList
+      try {
+        this.$refs.orderType.listData(dataid);
+        this.$refs.orderType.$refs.departmentSalesperson.person = userName;
+        this.$refs.orderType.$refs.departmentSalesperson.deplist = this.deplist;
+        this.$refs.orderType.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+      } catch (error) {}
+
       /*订单产品类别占比分析*/
-      this.$refs.orderProductCategory.listData(dataid)
-      this.$refs.orderProductCategory.$refs.departmentSalesperson.person = userName
-      this.$refs.orderProductCategory.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.orderProductCategory.$refs.departmentSalesperson.personnelList = this.personnelList
+      try {
+        this.$refs.orderProductCategory.listData(dataid);
+        this.$refs.orderProductCategory.$refs.departmentSalesperson.person =
+          userName;
+        this.$refs.orderProductCategory.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.orderProductCategory.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+      } catch (error) {}
+
       /*出货趋势分析*/
-      this.$refs.shippingTrendAnalysis.listData(dataid)
-      this.$refs.shippingTrendAnalysis.$refs.departmentSalesperson.person = userName
-      this.$refs.shippingTrendAnalysis.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.shippingTrendAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
+      try {
+        this.$refs.shippingTrendAnalysis.listData(dataid);
+        this.$refs.shippingTrendAnalysis.$refs.departmentSalesperson.person =
+          userName;
+        this.$refs.shippingTrendAnalysis.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.shippingTrendAnalysis.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+      } catch (error) {}
+
       /*近12月延期出货情况分析*/
-      this.$refs.delayedShipmentAnalysis.listData(dataid)
-      this.$refs.delayedShipmentAnalysis.$refs.departmentSalesperson.person = userName
-      this.$refs.delayedShipmentAnalysis.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.delayedShipmentAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
+      try {
+        this.$refs.delayedShipmentAnalysis.listData(dataid);
+        this.$refs.delayedShipmentAnalysis.$refs.departmentSalesperson.person =
+          userName;
+        this.$refs.delayedShipmentAnalysis.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.delayedShipmentAnalysis.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+      } catch (error) {}
+
       /*开票金额趋势分析*/
-      this.$refs.invoiceAmountAnalysis.listData(dataid)
-      this.$refs.invoiceAmountAnalysis.$refs.departmentSalesperson.person = userName
-      this.$refs.invoiceAmountAnalysis.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.invoiceAmountAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
+      try {
+        this.$refs.invoiceAmountAnalysis.listData(dataid);
+        this.$refs.invoiceAmountAnalysis.$refs.departmentSalesperson.person =
+          userName;
+        this.$refs.invoiceAmountAnalysis.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.invoiceAmountAnalysis.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+      } catch (error) {}
+
       /*近12月出货未开票金额趋势分析*/
-      this.$refs.uninvoiceAmountAnalysis.listData(dataid)
-      this.$refs.uninvoiceAmountAnalysis.$refs.departmentSalesperson.person = userName
-      this.$refs.uninvoiceAmountAnalysis.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.uninvoiceAmountAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
+      try {
+        this.$refs.uninvoiceAmountAnalysis.listData(dataid);
+        this.$refs.uninvoiceAmountAnalysis.$refs.departmentSalesperson.person =
+          userName;
+        this.$refs.uninvoiceAmountAnalysis.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.uninvoiceAmountAnalysis.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+      } catch (error) {}
+
       /*出货未开票分析*/
-      this.$refs.shippingUninvoiceAnalysis.listData(dataid)
-      this.$refs.shippingUninvoiceAnalysis.$refs.departmentSalesperson.person = userName
-      this.$refs.shippingUninvoiceAnalysis.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.shippingUninvoiceAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
+      try {
+        this.$refs.shippingUninvoiceAnalysis.listData(dataid);
+        this.$refs.shippingUninvoiceAnalysis.$refs.departmentSalesperson.person =
+          userName;
+        this.$refs.shippingUninvoiceAnalysis.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.shippingUninvoiceAnalysis.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+      } catch (error) {}
+
       /*财务回款分析 */
-      this.$refs.financialCollectionAnalysis.listData(dataid)
-      this.$refs.financialCollectionAnalysis.$refs.departmentSalesperson.person = userName
-      this.$refs.financialCollectionAnalysis.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.financialCollectionAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
+      try {
+        this.$refs.financialCollectionAnalysis.listData(dataid);
+        this.$refs.financialCollectionAnalysis.$refs.departmentSalesperson.person =
+          userName;
+        this.$refs.financialCollectionAnalysis.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.financialCollectionAnalysis.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+      } catch (error) {}
     },
     /*其他页面调用*/
-    otherModel(dataid,type,isleave){
+    otherModel(dataid, type, isleave) {
       /*数字看板*/
-      this.$refs.digitalSigns.$refs.order.param.content.type = type
-      this.$refs.digitalSigns.$refs.order.param.content.dataid = dataid
-      this.$refs.digitalSigns.$refs.order.param.content.where.isleave = isleave
-      this.$refs.digitalSigns.$refs.order.listData()
-      this.$refs.digitalSigns.$refs.shipment.param.content.type = type
-      this.$refs.digitalSigns.$refs.shipment.param.content.dataid = dataid
-      this.$refs.digitalSigns.$refs.shipment.param.content.where.isleave = isleave
-      this.$refs.digitalSigns.$refs.shipment.listData()
-      this.$refs.digitalSigns.$refs.invoicing.param.content.type = type
-      this.$refs.digitalSigns.$refs.invoicing.param.content.dataid = dataid
-      this.$refs.digitalSigns.$refs.invoicing.param.content.where.isleave = isleave
-      this.$refs.digitalSigns.$refs.invoicing.listData()
-      this.$refs.digitalSigns.$refs.returned.param.content.type = type
-      this.$refs.digitalSigns.$refs.returned.param.content.dataid = dataid
-      this.$refs.digitalSigns.$refs.returned.param.content.where.isleave = isleave
-      this.$refs.digitalSigns.$refs.returned.listData()
+      try {
+        this.$refs.digitalSigns.$refs.order.param.content.type = type;
+        this.$refs.digitalSigns.$refs.order.param.content.dataid = dataid;
+        this.$refs.digitalSigns.$refs.order.param.content.where.isleave =
+          isleave;
+        this.$refs.digitalSigns.$refs.order.listData();
+        this.$refs.digitalSigns.$refs.shipment.param.content.type = type;
+        this.$refs.digitalSigns.$refs.shipment.param.content.dataid = dataid;
+        this.$refs.digitalSigns.$refs.shipment.param.content.where.isleave =
+          isleave;
+        this.$refs.digitalSigns.$refs.shipment.listData();
+        this.$refs.digitalSigns.$refs.invoicing.param.content.type = type;
+        this.$refs.digitalSigns.$refs.invoicing.param.content.dataid = dataid;
+        this.$refs.digitalSigns.$refs.invoicing.param.content.where.isleave =
+          isleave;
+        this.$refs.digitalSigns.$refs.invoicing.listData();
+        this.$refs.digitalSigns.$refs.returned.param.content.type = type;
+        this.$refs.digitalSigns.$refs.returned.param.content.dataid = dataid;
+        this.$refs.digitalSigns.$refs.returned.param.content.where.isleave =
+          isleave;
+        this.$refs.digitalSigns.$refs.returned.listData();
+      } catch (error) {}
+
       /*账户余额分析*/
-      this.$refs.customerAccountBalanceAnalysis.param.content.type = type
-      this.$refs.customerAccountBalanceAnalysis.queryModel(dataid,isleave)
-      this.$refs.customerAccountBalanceAnalysis.depment = type == '1'?dataid:''
-      this.$refs.customerAccountBalanceAnalysis.person = type == '0'?dataid:''
-      this.$refs.customerAccountBalanceAnalysis.deplist = this.deplist
-      this.$refs.customerAccountBalanceAnalysis.personnelList = this.personnelList
+      try {
+        this.$refs.customerAccountBalanceAnalysis.param.content.type = type;
+        this.$refs.customerAccountBalanceAnalysis.queryModel(dataid, isleave);
+        this.$refs.customerAccountBalanceAnalysis.depment =
+          type == "1" ? dataid : "";
+        this.$refs.customerAccountBalanceAnalysis.person =
+          type == "0" ? dataid : "";
+        this.$refs.customerAccountBalanceAnalysis.deplist = this.deplist;
+        this.$refs.customerAccountBalanceAnalysis.personnelList =
+          this.personnelList;
+      } catch (error) {}
+
       /*客户销售*/
-      this.$refs.customer.param.content.dataid = dataid
-      this.$refs.customer.param.content.type = type
-      this.$refs.customer.param.content.pageNumber = 1
-      this.$refs.customer.param.content.pageSize = 10
-      this.$refs.customer.$refs.sales.$refs.departmentSalesperson.depment = type == '1'?dataid:''
-      this.$refs.customer.$refs.sales.$refs.departmentSalesperson.person = type == '0'?dataid:''
-      this.$refs.customer.$refs.sales.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.customer.$refs.sales.$refs.departmentSalesperson.personnelList = this.personnelList
-      this.$refs.customer.listData(dataid,isleave)
-      this.$refs.salesperson.param.content.dataid = dataid
-      this.$refs.salesperson.param.content.type = type
-      this.$refs.salesperson.param.content.pageNumber = 1
-      this.$refs.salesperson.param.content.pageSize = 10
-      this.$refs.salesperson.$refs.sales.$refs.departmentSalesperson.depment = type == '1'?dataid:''
-      this.$refs.salesperson.$refs.sales.$refs.departmentSalesperson.person = type == '0'?dataid:''
-      this.$refs.salesperson.$refs.sales.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.salesperson.$refs.sales.$refs.departmentSalesperson.personnelList = this.personnelList
-      this.$refs.salesperson.listData(dataid,isleave)
+      try {
+        this.$refs.customer.param.content.dataid = dataid;
+        this.$refs.customer.param.content.type = type;
+        this.$refs.customer.param.content.pageNumber = 1;
+        this.$refs.customer.param.content.pageSize = 10;
+        this.$refs.customer.$refs.sales.$refs.departmentSalesperson.depment =
+          type == "1" ? dataid : "";
+        this.$refs.customer.$refs.sales.$refs.departmentSalesperson.person =
+          type == "0" ? dataid : "";
+        this.$refs.customer.$refs.sales.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.customer.$refs.sales.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+        this.$refs.customer.listData(dataid, isleave);
+        this.$refs.salesperson.param.content.dataid = dataid;
+        this.$refs.salesperson.param.content.type = type;
+        this.$refs.salesperson.param.content.pageNumber = 1;
+        this.$refs.salesperson.param.content.pageSize = 10;
+        this.$refs.salesperson.$refs.sales.$refs.departmentSalesperson.depment =
+          type == "1" ? dataid : "";
+        this.$refs.salesperson.$refs.sales.$refs.departmentSalesperson.person =
+          type == "0" ? dataid : "";
+        this.$refs.salesperson.$refs.sales.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.salesperson.$refs.sales.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+        this.$refs.salesperson.listData(dataid, isleave);
+      } catch (error) {}
+
       /*报价分析*/
-      this.$refs.quotationAnalysis.param.content.type = type
-      this.$refs.quotationAnalysis.plotParam.content.type = type
-      this.$refs.quotationAnalysis.listData(dataid,isleave)
-      this.$refs.quotationAnalysis.queryQuotationModel(dataid,isleave)
-      this.$refs.quotationAnalysis.$refs.departmentSalesperson.depment = type == '1'?dataid:''
-      this.$refs.quotationAnalysis.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.quotationAnalysis.$refs.departmentSalesperson.person = type == '0'?dataid:''
-      this.$refs.quotationAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
+      try {
+        this.$refs.quotationAnalysis.param.content.type = type;
+        this.$refs.quotationAnalysis.plotParam.content.type = type;
+        this.$refs.quotationAnalysis.listData(dataid, isleave);
+        this.$refs.quotationAnalysis.queryQuotationModel(dataid, isleave);
+        this.$refs.quotationAnalysis.$refs.departmentSalesperson.depment =
+          type == "1" ? dataid : "";
+        this.$refs.quotationAnalysis.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.quotationAnalysis.$refs.departmentSalesperson.person =
+          type == "0" ? dataid : "";
+        this.$refs.quotationAnalysis.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+      } catch (error) {}
+
       /*订单趋势分析*/
-      this.$refs.orderTrendAnalysis.param.content.type = type
-      this.$refs.orderTrendAnalysis.queryModel(dataid,isleave)
-      this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.depment = type == '1'?dataid:''
-      this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.person = type == '0'?dataid:''
-      this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
+      try {
+        this.$refs.orderTrendAnalysis.param.content.type = type;
+        this.$refs.orderTrendAnalysis.queryModel(dataid, isleave);
+        this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.depment =
+          type == "1" ? dataid : "";
+        this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.person =
+          type == "0" ? dataid : "";
+        this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+      } catch (error) {}
+
       /*订单类型占比分析*/
-      this.$refs.orderType.param.content.type = type
-      this.$refs.orderType.queryModel(dataid,isleave)
-      this.$refs.orderType.$refs.departmentSalesperson.depment = type == '1'?dataid:''
-      this.$refs.orderType.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.orderType.$refs.departmentSalesperson.person = type == '0'?dataid:''
-      this.$refs.orderType.$refs.departmentSalesperson.personnelList = this.personnelList
+      try {
+        this.$refs.orderType.param.content.type = type;
+        this.$refs.orderType.queryModel(dataid, isleave);
+        this.$refs.orderType.$refs.departmentSalesperson.depment =
+          type == "1" ? dataid : "";
+        this.$refs.orderType.$refs.departmentSalesperson.deplist = this.deplist;
+        this.$refs.orderType.$refs.departmentSalesperson.person =
+          type == "0" ? dataid : "";
+        this.$refs.orderType.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+      } catch (error) {}
+
       /*订单产品类别占比分析*/
-      this.$refs.orderProductCategory.param.content.type = type
-      this.$refs.orderProductCategory.queryModel(dataid,isleave)
-      this.$refs.orderProductCategory.$refs.departmentSalesperson.depment = type == '1'?dataid:''
-      this.$refs.orderProductCategory.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.orderProductCategory.$refs.departmentSalesperson.person = type == '0'?dataid:''
-      this.$refs.orderProductCategory.$refs.departmentSalesperson.personnelList = this.personnelList
+      try {
+        this.$refs.orderProductCategory.param.content.type = type;
+        this.$refs.orderProductCategory.queryModel(dataid, isleave);
+        this.$refs.orderProductCategory.$refs.departmentSalesperson.depment =
+          type == "1" ? dataid : "";
+        this.$refs.orderProductCategory.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.orderProductCategory.$refs.departmentSalesperson.person =
+          type == "0" ? dataid : "";
+        this.$refs.orderProductCategory.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+      } catch (error) {}
+
       /*出货趋势分析*/
-      this.$refs.shippingTrendAnalysis.param.content.type = type
-      this.$refs.shippingTrendAnalysis.queryModel(dataid,isleave)
-      this.$refs.shippingTrendAnalysis.$refs.departmentSalesperson.depment = type == '1'?dataid:''
-      this.$refs.shippingTrendAnalysis.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.shippingTrendAnalysis.$refs.departmentSalesperson.person = type == '0'?dataid:''
-      this.$refs.shippingTrendAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
+      try {
+        this.$refs.shippingTrendAnalysis.param.content.type = type;
+        this.$refs.shippingTrendAnalysis.queryModel(dataid, isleave);
+        this.$refs.shippingTrendAnalysis.$refs.departmentSalesperson.depment =
+          type == "1" ? dataid : "";
+        this.$refs.shippingTrendAnalysis.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.shippingTrendAnalysis.$refs.departmentSalesperson.person =
+          type == "0" ? dataid : "";
+        this.$refs.shippingTrendAnalysis.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+      } catch (error) {}
       /*近12月延期出货情况分析*/
-      this.$refs.delayedShipmentAnalysis.param.content.type = type
-      this.$refs.delayedShipmentAnalysis.queryModel(dataid,isleave)
-      this.$refs.delayedShipmentAnalysis.$refs.departmentSalesperson.depment = type == '1'?dataid:''
-      this.$refs.delayedShipmentAnalysis.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.delayedShipmentAnalysis.$refs.departmentSalesperson.person = type == '0'?dataid:''
-      this.$refs.delayedShipmentAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
+      try {
+        this.$refs.delayedShipmentAnalysis.param.content.type = type;
+        this.$refs.delayedShipmentAnalysis.queryModel(dataid, isleave);
+        this.$refs.delayedShipmentAnalysis.$refs.departmentSalesperson.depment =
+          type == "1" ? dataid : "";
+        this.$refs.delayedShipmentAnalysis.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.delayedShipmentAnalysis.$refs.departmentSalesperson.person =
+          type == "0" ? dataid : "";
+        this.$refs.delayedShipmentAnalysis.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+      } catch (error) {}
+
       /*开票金额趋势分析*/
-      this.$refs.invoiceAmountAnalysis.param.content.type = type
-      this.$refs.invoiceAmountAnalysis.queryModel(dataid,isleave)
-      this.$refs.invoiceAmountAnalysis.$refs.departmentSalesperson.depment = type == '1'?dataid:''
-      this.$refs.invoiceAmountAnalysis.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.invoiceAmountAnalysis.$refs.departmentSalesperson.person = type == '0'?dataid:''
-      this.$refs.invoiceAmountAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
+      try {
+        this.$refs.invoiceAmountAnalysis.param.content.type = type;
+        this.$refs.invoiceAmountAnalysis.queryModel(dataid, isleave);
+        this.$refs.invoiceAmountAnalysis.$refs.departmentSalesperson.depment =
+          type == "1" ? dataid : "";
+        this.$refs.invoiceAmountAnalysis.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.invoiceAmountAnalysis.$refs.departmentSalesperson.person =
+          type == "0" ? dataid : "";
+        this.$refs.invoiceAmountAnalysis.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+      } catch (error) {}
+
       /*近12月出货未开票金额趋势分析*/
-      this.$refs.uninvoiceAmountAnalysis.param.content.type = type
-      this.$refs.uninvoiceAmountAnalysis.queryModel(dataid,isleave)
-      this.$refs.uninvoiceAmountAnalysis.$refs.departmentSalesperson.depment = type == '1'?dataid:''
-      this.$refs.uninvoiceAmountAnalysis.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.uninvoiceAmountAnalysis.$refs.departmentSalesperson.person = type == '0'?dataid:''
-      this.$refs.uninvoiceAmountAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
+      try {
+        this.$refs.uninvoiceAmountAnalysis.param.content.type = type;
+        this.$refs.uninvoiceAmountAnalysis.queryModel(dataid, isleave);
+        this.$refs.uninvoiceAmountAnalysis.$refs.departmentSalesperson.depment =
+          type == "1" ? dataid : "";
+        this.$refs.uninvoiceAmountAnalysis.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.uninvoiceAmountAnalysis.$refs.departmentSalesperson.person =
+          type == "0" ? dataid : "";
+        this.$refs.uninvoiceAmountAnalysis.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+      } catch (error) {}
+
       /*出货未开票分析*/
-      this.$refs.shippingUninvoiceAnalysis.param.content.type = type
-      this.$refs.shippingUninvoiceAnalysis.queryModel(dataid,isleave)
-      this.$refs.shippingUninvoiceAnalysis.$refs.departmentSalesperson.depment = type == '1'?dataid:''
-      this.$refs.shippingUninvoiceAnalysis.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.shippingUninvoiceAnalysis.$refs.departmentSalesperson.person = type == '0'?dataid:''
-      this.$refs.shippingUninvoiceAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
+      try {
+        this.$refs.shippingUninvoiceAnalysis.param.content.type = type;
+        this.$refs.shippingUninvoiceAnalysis.queryModel(dataid, isleave);
+        this.$refs.shippingUninvoiceAnalysis.$refs.departmentSalesperson.depment =
+          type == "1" ? dataid : "";
+        this.$refs.shippingUninvoiceAnalysis.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.shippingUninvoiceAnalysis.$refs.departmentSalesperson.person =
+          type == "0" ? dataid : "";
+        this.$refs.shippingUninvoiceAnalysis.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+      } catch (error) {}
+
       /*财务回款分析 */
-      this.$refs.financialCollectionAnalysis.param.content.type = type
-      this.$refs.financialCollectionAnalysis.tableParam.content.type = type
-      this.$refs.financialCollectionAnalysis.queryModel(dataid,isleave)
-      this.$refs.financialCollectionAnalysis.tableData(dataid,isleave)
-      this.$refs.financialCollectionAnalysis.$refs.departmentSalesperson.depment = type == '1'?dataid:''
-      this.$refs.financialCollectionAnalysis.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.financialCollectionAnalysis.$refs.departmentSalesperson.person = type == '0'?dataid:''
-      this.$refs.financialCollectionAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
+      try {
+        this.$refs.financialCollectionAnalysis.param.content.type = type;
+        this.$refs.financialCollectionAnalysis.tableParam.content.type = type;
+        this.$refs.financialCollectionAnalysis.queryModel(dataid, isleave);
+        this.$refs.financialCollectionAnalysis.tableData(dataid, isleave);
+        this.$refs.financialCollectionAnalysis.$refs.departmentSalesperson.depment =
+          type == "1" ? dataid : "";
+        this.$refs.financialCollectionAnalysis.$refs.departmentSalesperson.deplist =
+          this.deplist;
+        this.$refs.financialCollectionAnalysis.$refs.departmentSalesperson.person =
+          type == "0" ? dataid : "";
+        this.$refs.financialCollectionAnalysis.$refs.departmentSalesperson.personnelList =
+          this.personnelList;
+      } catch (error) {}
     },
-    createMenu (array) {
-      var that = this
-      let arr = []
+    createMenu(array) {
+      var that = this;
+      let arr = [];
       function convertToElementTree(node) {
         // 新节点
-        if (node.subdep.length === 0){
+        if (node.subdep.length === 0) {
           var elNode = {
             label: node["depname"],
-            parentid:node['parentid'],
-            parentname:node['parentname'],
-            departmentid:node["departmentid"],
-            value:node["departmentid"],
-            remarks:node["remarks"],
-            isused:node["isused"],
-            changedate:node['changedate'],
-            changeby:node['changeby'],
-            createdate:node['createdate'],
-            createby:node['createby'],
-            depno:node['depno'],
-            disabled:that.pageOnlyRead,
-          }
-        }else {
+            parentid: node["parentid"],
+            parentname: node["parentname"],
+            departmentid: node["departmentid"],
+            value: node["departmentid"],
+            remarks: node["remarks"],
+            isused: node["isused"],
+            changedate: node["changedate"],
+            changeby: node["changeby"],
+            createdate: node["createdate"],
+            createby: node["createby"],
+            depno: node["depno"],
+            disabled: that.pageOnlyRead,
+          };
+        } else {
           var elNode = {
             label: node["depname"],
-            parentid:node['parentid'],
-            parentname:node['parentname'],
-            departmentid:node["departmentid"],
-            value:node["departmentid"],
-            remarks:node["remarks"],
-            isused:node["isused"],
-            changedate:node['changedate'],
-            changeby:node['changeby'],
-            createdate:node['createdate'],
-            createby:node['createby'],
-            depno:node['depno'],
-            disabled:that.pageOnlyRead,
-            children: []
-          }
+            parentid: node["parentid"],
+            parentname: node["parentname"],
+            departmentid: node["departmentid"],
+            value: node["departmentid"],
+            remarks: node["remarks"],
+            isused: node["isused"],
+            changedate: node["changedate"],
+            changeby: node["changeby"],
+            createdate: node["createdate"],
+            createby: node["createby"],
+            depno: node["depno"],
+            disabled: that.pageOnlyRead,
+            children: [],
+          };
         }
         if (node.subdep && node.subdep.length > 0) {
           // 如果存在子节点
@@ -385,89 +614,103 @@ export default {
         return elNode;
       }
       array.forEach((element) => {
-        arr.push(convertToElementTree(element))
+        arr.push(convertToElementTree(element));
       });
-      return arr
+      return arr;
     },
     selectDep(val) {
-      if (val.length === 0){
-        const userid = JSON.parse(sessionStorage.getItem('active_account')).userid
-        this.otherModel(userid,'0')
-      }else {
-        this.person = ''
-        this.dataid = ''
-        this.departmentid = val[val.length -1]
-        this.otherModel(this.departmentid,'1',this.isleave)
+      if (val.length === 0) {
+        const userid = JSON.parse(
+          sessionStorage.getItem("active_account")
+        ).userid;
+        this.otherModel(userid, "0");
+      } else {
+        this.person = "";
+        this.dataid = "";
+        this.departmentid = val[val.length - 1];
+        this.otherModel(this.departmentid, "1", this.isleave);
       }
     },
-    selectPerson(val){
-      this.depment = ''
-      this.departmentid = ''
-      this.isleave = ''
-      this.dataid = val
-      this.otherModel(val,'0',this.isleave)
+    selectPerson(val) {
+      this.depment = "";
+      this.departmentid = "";
+      this.isleave = "";
+      this.dataid = val;
+      this.otherModel(val, "0", this.isleave);
     },
-    leaveChange(){
-      const dataid = this.depment?this.departmentid:this.dataid
-      const type = this.depment?'1':'0'
-      this.otherModel(dataid,type,this.isleave)
-      this.personData()
+    leaveChange() {
+      const dataid = this.depment ? this.departmentid : this.dataid;
+      const type = this.depment ? "1" : "0";
+      this.otherModel(dataid, type, this.isleave);
+      this.personData();
     },
     /*获取新的业务员列表*/
-    async personData(){
+    async personData() {
       let param = {
         id: 20230620102004,
         content: {
-          isleave:this.isleave
+          isleave: this.isleave,
         },
-      }
-      const res = await this.$api.requested(param)
-      this.personnelList = res.data.hr
-      this.$refs.customerAccountBalanceAnalysis.personnelList = this.personnelList
-      this.$refs.customer.$refs.sales.$refs.departmentSalesperson.personnelList = this.personnelList
-      this.$refs.salesperson.$refs.sales.$refs.departmentSalesperson.personnelList = this.personnelList
-      this.$refs.quotationAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
-      this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
-      this.$refs.orderType.$refs.departmentSalesperson.personnelList = this.personnelList
-      this.$refs.orderProductCategory.$refs.departmentSalesperson.personnelList = this.personnelList
-      this.$refs.shippingTrendAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
-      this.$refs.delayedShipmentAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
-      this.$refs.invoiceAmountAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
-      this.$refs.uninvoiceAmountAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
-      this.$refs.shippingUninvoiceAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
-      this.$refs.financialCollectionAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
+      };
+      const res = await this.$api.requested(param);
+      this.personnelList = res.data.hr;
+      this.$refs.customerAccountBalanceAnalysis.personnelList =
+        this.personnelList;
+      this.$refs.customer.$refs.sales.$refs.departmentSalesperson.personnelList =
+        this.personnelList;
+      this.$refs.salesperson.$refs.sales.$refs.departmentSalesperson.personnelList =
+        this.personnelList;
+      this.$refs.quotationAnalysis.$refs.departmentSalesperson.personnelList =
+        this.personnelList;
+      this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.personnelList =
+        this.personnelList;
+      this.$refs.orderType.$refs.departmentSalesperson.personnelList =
+        this.personnelList;
+      this.$refs.orderProductCategory.$refs.departmentSalesperson.personnelList =
+        this.personnelList;
+      this.$refs.shippingTrendAnalysis.$refs.departmentSalesperson.personnelList =
+        this.personnelList;
+      this.$refs.delayedShipmentAnalysis.$refs.departmentSalesperson.personnelList =
+        this.personnelList;
+      this.$refs.invoiceAmountAnalysis.$refs.departmentSalesperson.personnelList =
+        this.personnelList;
+      this.$refs.uninvoiceAmountAnalysis.$refs.departmentSalesperson.personnelList =
+        this.personnelList;
+      this.$refs.shippingUninvoiceAnalysis.$refs.departmentSalesperson.personnelList =
+        this.personnelList;
+      this.$refs.financialCollectionAnalysis.$refs.departmentSalesperson.personnelList =
+        this.personnelList;
     },
     handleClick(tab, event) {
       console.log(this.activeName);
-      if (this.activeName === '客户销售'){
-        this.$refs.customer.listData(this.$refs.customer.param.content.dataid)
-      }else {
-        this.$refs.salesperson.listData(this.$refs.salesperson.param.content.dataid)
+      if (this.activeName === "客户销售") {
+        this.$refs.customer.listData(this.$refs.customer.param.content.dataid);
+      } else {
+        this.$refs.salesperson.listData(
+          this.$refs.salesperson.param.content.dataid
+        );
       }
-
     },
     /*返回顶部*/
     toTop() {
-      this.$refs.rollRef.scrollTop = 0
+      this.$refs.rollRef.scrollTop = 0;
     },
-    backFull(val){
-      if (val){
-        this.$refs.rollRef.scrollTop = val
+    backFull(val) {
+      if (val) {
+        this.$refs.rollRef.scrollTop = val;
       }
     },
-    handleScroll(){
-      this.scrollData = this.$refs.rollRef.scrollTop
-    }
-
+    handleScroll() {
+      this.scrollData = this.$refs.rollRef.scrollTop;
+    },
   },
   watch: {
-    windowWidth (val) {
-      console.log("实时屏幕宽度:",val );
-    }
-
+    windowWidth(val) {
+      console.log("实时屏幕宽度:", val);
+    },
   },
   mounted() {
-    this.departmentrtment()
+    this.departmentrtment();
 
     var that = this;
     // <!--把window.onresize事件挂在到mounted函数上-->
@@ -475,10 +718,10 @@ export default {
       return (() => {
         window.fullWidth = document.documentElement.clientWidth;
         that.windowWidth = window.fullWidth; // 宽
-      })()
+      })();
     };
   },
-}
+};
 </script>
 
 <style scoped>

+ 9 - 8
src/views/salesData/modules/quotationAnalysis.vue

@@ -16,37 +16,37 @@
         <boxLine
           :title="$t(`报价总次数`)"
           :data="totalqty"
-          content="统计到当前查询时间为止的报价总次数(审核状态)"
+          :content="this.$t('统计到当前查询时间为止的报价总次数(审核状态)')"
           :windowWidth="windowWidth"
         ></boxLine>
         <boxLine
           :title="$t(`客户报价次数`)"
           :data="cusqty"
-          content="统计到当前查询时间为止的客户报价总次数(审核状态)"
+          :content="this.$t('统计到当前查询时间为止的客户报价总次数(审核状态)')"
           :windowWidth="windowWidth"
         ></boxLine>
         <boxLine
           :title="$t(`项目报价次数`)"
           :data="proqty"
-          content="统计到当前查询时间为止的项目报价总次数(审核状态)"
+          :content="this.$t('统计到当前查询时间为止的项目报价总次数(审核状态)')"
           :windowWidth="windowWidth"
         ></boxLine>
         <boxLine
           :title="$t(`报价总金额`)"
           :data="totalamount"
-          content="统计到当前查询时间为止的报价总金额(审核状态)"
+          :content="this.$t('统计到当前查询时间为止的报价总金额(审核状态)')"
           :windowWidth="windowWidth"
         ></boxLine>
         <boxLine
           :title="$t(`客户报价金额`)"
           :data="cusamount"
-          content="统计到当前查询时间为止的客户报价金额(审核状态)"
+          :content="this.$t('统计到当前查询时间为止的客户报价金额(审核状态)')"
           :windowWidth="windowWidth"
         ></boxLine>
         <boxLine
           :title="$t(`项目报价金额`)"
           :data="proamount"
-          content="统计到当前查询时间为止的项目报价金额(审核状态)"
+          :content="this.$t('统计到当前查询时间为止的项目报价金额(审核状态)')"
           :windowWidth="windowWidth"
         ></boxLine>
       </div>
@@ -147,7 +147,7 @@ import fullScreen from "@/views/salesData/components/fullScreen";
 const G = G2.getEngine("canvas");
 const seriesKey = "series";
 const valueKey = "value";
-const meta = null;
+let meta = null;
 export default {
   name: "quotationAnalysis",
   props: ["dataid", "windowWidth", "scrollHeight"],
@@ -199,6 +199,7 @@ export default {
       this.param.content.dataid = val || this.dataid;
       this.param.content.where.isleave = type;
       const res = await this.$api.requested(this.param);
+      console.log("234234432432",res)
       this.proqty = res.data.proqty;
       this.proamount = res.data.proamount;
       this.cusqty = res.data.cusqty;
@@ -242,7 +243,7 @@ export default {
           result.push({
             ...d,
             date: d.date,
-            [seriesKey]: name,
+            [seriesKey]: this.$t(name),
             [valueKey]: d[yField],
           });
         });

+ 1 - 1
src/views/salesData/modules/uninvoiceAmountAnalysis.vue

@@ -101,7 +101,7 @@ export default {
       data.forEach((d) => {
         yFields.forEach((yField) => {
           const name = this.$t(meta?.[yField]?.alias) || this.$t(yField);
-          result.push({ ...d, date: d.date, [seriesKey]: name, [valueKey]: d[yField] });
+          result.push({ ...d, date: d.date, [seriesKey]: this.$t(name), [valueKey]: d[yField] });
         });
       });
       return result;