Преглед изворни кода

数据总览,业务员默认展示调整

qymljy пре 2 година
родитељ
комит
5b79cff1d2

+ 12 - 1
src/HDrpManagement/customerData/index.vue

@@ -665,7 +665,7 @@
                 <div style="height:calc(100% - 44px)">
                   <div ref="customerUnfllowEl" style="height:30%"></div>
                 <div style="font-size:16px;color:#333333;margin:10px 0">{{ unfllowStatus ? unfllowStatus : '全部' }}</div>
-                  <div style="height:calc(70% - 100px)">
+                  <div :style="{height:windowWidth>1521 || isFull?'calc(70% - 100px)':'calc(66% - 100px)'}">
                     <pageTable
                       ref="customerUnfllowTable"
                       :tablecols="tool.tabelCol($route.name).typeTable1.tablecols.splice(0,tool.tabelCol($route.name).typeTable1.tablecols.length - 1)"
@@ -775,6 +775,7 @@ export default {
       isFull:false,
       deplist:[],
       personnelList:[],
+      windowWidth: document.documentElement.clientWidth,  //实时屏幕宽度
       depmentParam:{
         "id": 20230620102004,
         "content": {
@@ -1793,6 +1794,16 @@ export default {
     console.log(this.customerLead,'客户等级');
 
     console.log(`${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}`);
+
+    var that = this;
+    // <!--把window.onresize事件挂在到mounted函数上-->
+    window.onresize = () => {
+      return (() => {
+        window.fullWidth = document.documentElement.clientWidth;
+        that.windowWidth = window.fullWidth; // 宽
+        console.log(that.windowWidth,'屏幕宽度')
+      })()
+    };
   }
 }
 

+ 12 - 1
src/HDrpManagement/projectData/index.vue

@@ -1007,7 +1007,7 @@
                 <div style="height:calc(100% - 44px)">
                   <div ref="customerUnfllowEl" style="height:30%"></div>
                   <div style="font-size:16px;color:#333333;margin:10px 0">{{ unfllowStatus ? unfllowStatus : '全部' }}</div>
-                  <div style="height:70%">
+                  <div :style="{height:windowWidth>1784?'70%':'65%'}">
                     <pageTable
                       style="height:calc(100% - 50px)"
                       v-if="projectType[0].value != ''"
@@ -1192,6 +1192,7 @@ export default {
     return {
       isFull:false,
       colorArr:['#3874f6','#00b32b','#ffae02','#f53f3f','#f2f2f2'],
+      windowWidth: document.documentElement.clientWidth,  //实时屏幕宽度
       deplist:[],
       personnelList:[],
       depmentParam:{
@@ -2490,6 +2491,16 @@ export default {
     this.projectLead = res2.data
     let res3 = await this.$store.dispatch('optiontypeselect','tradefield')
     this.tradefieldSelect = res3.data
+
+    var that = this;
+    // <!--把window.onresize事件挂在到mounted函数上-->
+    window.onresize = () => {
+      return (() => {
+        window.fullWidth = document.documentElement.clientWidth;
+        that.windowWidth = window.fullWidth; // 宽
+        console.log(that.windowWidth,'屏幕宽度')
+      })()
+    };
   }
 }
 

+ 5 - 4
src/views/clueData/index.vue

@@ -67,33 +67,34 @@ export default {
     },
     /*其他页面调用*/
     otherMethod(dataid){
+      const userName = JSON.parse(sessionStorage.getItem('active_account')).name
       /*数字看板*/
       this.$refs.digitalSigns.listData()
       /*线索新增*/
       this.$refs.clueAdd.$refs.departmentSalesperson.depment = ''
       this.$refs.clueAdd.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.clueAdd.$refs.departmentSalesperson.person = dataid
+      this.$refs.clueAdd.$refs.departmentSalesperson.person = userName
       this.$refs.clueAdd.param.content.type = '0'
       this.$refs.clueAdd.$refs.departmentSalesperson.personnelList = this.personnelList
       this.$refs.clueAdd.listData(dataid)
       /*线索跟进*/
       this.$refs.clueFollow.$refs.departmentSalesperson.depment = ''
       this.$refs.clueFollow.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.clueFollow.$refs.departmentSalesperson.person = dataid
+      this.$refs.clueFollow.$refs.departmentSalesperson.person = userName
       this.$refs.clueFollow.param.content.type = '0'
       this.$refs.clueFollow.$refs.departmentSalesperson.personnelList = this.personnelList
       this.$refs.clueFollow.listData(dataid)
       /*线索转化*/
       this.$refs.clueChange.$refs.departmentSalesperson.depment = ''
       this.$refs.clueChange.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.clueChange.$refs.departmentSalesperson.person = dataid
+      this.$refs.clueChange.$refs.departmentSalesperson.person = userName
       this.$refs.clueChange.param.content.type = '0'
       this.$refs.clueChange.$refs.departmentSalesperson.personnelList = this.personnelList
       this.$refs.clueChange.listData(dataid)
       /*有效线索未跟进天数*/
       this.$refs.clueUnFollow.$refs.departmentSalesperson.depment = ''
       this.$refs.clueUnFollow.$refs.departmentSalesperson.deplist = this.deplist
-      this.$refs.clueUnFollow.$refs.departmentSalesperson.person = dataid
+      this.$refs.clueUnFollow.$refs.departmentSalesperson.person = userName
       this.$refs.clueUnFollow.param.content.type = '0'
       this.$refs.clueUnFollow.$refs.departmentSalesperson.personnelList = this.personnelList
       this.$refs.clueUnFollow.listData(dataid)

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

@@ -165,11 +165,15 @@ export default {
       const res = await this.$api.requested(this.depParam)
       this.deplist = this.createMenu(res.data.dep)
       this.personnelList = res.data.hr
+      const usertype = JSON.parse(sessionStorage.getItem('active_account')).usertype
+      const userName = JSON.parse(sessionStorage.getItem('active_account')).name
+      const userid = JSON.parse(sessionStorage.getItem('active_account')).userid
       if (this.type == 1){
         this.depment = this.dataid
         this.person = ''
       }else {
-        this.person = this.dataid
+        console.log(usertype,userName)
+        this.person = usertype!==0?this.dataid:userid === this.dataid?userName:this.dataid
         this.depment = ''
       }
 

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

@@ -208,8 +208,11 @@ export default {
       this.title = '订单'
       this.param.content.pageNumber = 1
       this.param.content.pageSize = 50
+      const usertype = JSON.parse(sessionStorage.getItem('active_account')).usertype
+      const userName = JSON.parse(sessionStorage.getItem('active_account')).name
+      const userid = JSON.parse(sessionStorage.getItem('active_account')).userid
       if (this.param.content.type == 0){
-        this.person = this.param.content.dataid
+        this.person = usertype!==0?this.param.content.dataid:userid === this.param.content.dataid?userName:this.param.content.dataid
         this.depment = ''
       }else {
         this.depment = this.param.content.dataid

+ 14 - 12
src/views/salesData/index.vue

@@ -108,6 +108,7 @@ export default {
     },
     /*其他页面调用*/
     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
@@ -122,18 +123,19 @@ export default {
       this.$refs.digitalSigns.$refs.returned.param.content.type = 0
       this.$refs.digitalSigns.$refs.returned.listData()
       /*账户余额分析*/
-      this.$refs.customerAccountBalanceAnalysis.listData(dataid)
+
       /*this.$refs.customerAccountBalanceAnalysis.$refs.departmentSalesperson.depment = dataid*/
-      this.$refs.customerAccountBalanceAnalysis.person = 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 = 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 = dataid
+      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)
@@ -142,45 +144,45 @@ export default {
       this.$refs.quotationAnalysis.listData(dataid)
       this.$refs.quotationAnalysis.queryQuotation(dataid)
       /*this.$refs.quotationAnalysis.$refs.departmentSalesperson.depment = dataid*/
-      this.$refs.quotationAnalysis.$refs.departmentSalesperson.person = dataid
+      this.$refs.quotationAnalysis.$refs.departmentSalesperson.person = userName
       this.$refs.quotationAnalysis.$refs.departmentSalesperson.deplist = this.deplist
       this.$refs.quotationAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
       /*订单趋势分析*/
       this.$refs.orderTrendAnalysis.listData(dataid)
       /*this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.depment = dataid*/
-      this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.person = dataid
+      this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.person = userName
       this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.deplist = this.deplist
       this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
       /*订单类型占比分析*/
       this.$refs.orderType.listData(dataid)
       /*出货趋势分析*/
       this.$refs.shippingTrendAnalysis.listData(dataid)
-      this.$refs.shippingTrendAnalysis.$refs.departmentSalesperson.person = dataid
+      this.$refs.shippingTrendAnalysis.$refs.departmentSalesperson.person = userName
       this.$refs.shippingTrendAnalysis.$refs.departmentSalesperson.deplist = this.deplist
       this.$refs.shippingTrendAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
       /*近12月延期出货情况分析*/
       this.$refs.delayedShipmentAnalysis.listData(dataid)
-      this.$refs.delayedShipmentAnalysis.$refs.departmentSalesperson.person = dataid
+      this.$refs.delayedShipmentAnalysis.$refs.departmentSalesperson.person = userName
       this.$refs.delayedShipmentAnalysis.$refs.departmentSalesperson.deplist = this.deplist
       this.$refs.delayedShipmentAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
       /*开票金额趋势分析*/
       this.$refs.invoiceAmountAnalysis.listData(dataid)
-      this.$refs.invoiceAmountAnalysis.$refs.departmentSalesperson.person = dataid
+      this.$refs.invoiceAmountAnalysis.$refs.departmentSalesperson.person = userName
       this.$refs.invoiceAmountAnalysis.$refs.departmentSalesperson.deplist = this.deplist
       this.$refs.invoiceAmountAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
       /*近12月出货未开票金额趋势分析*/
       this.$refs.uninvoiceAmountAnalysis.listData(dataid)
-      this.$refs.uninvoiceAmountAnalysis.$refs.departmentSalesperson.person = dataid
+      this.$refs.uninvoiceAmountAnalysis.$refs.departmentSalesperson.person = userName
       this.$refs.uninvoiceAmountAnalysis.$refs.departmentSalesperson.deplist = this.deplist
       this.$refs.uninvoiceAmountAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
       /*出货未开票分析*/
       this.$refs.shippingUninvoiceAnalysis.listData(dataid)
-      this.$refs.shippingUninvoiceAnalysis.$refs.departmentSalesperson.person = dataid
+      this.$refs.shippingUninvoiceAnalysis.$refs.departmentSalesperson.person = userName
       this.$refs.shippingUninvoiceAnalysis.$refs.departmentSalesperson.deplist = this.deplist
       this.$refs.shippingUninvoiceAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
       /*财务回款分析 */
       this.$refs.financialCollectionAnalysis.listData(dataid)
-      this.$refs.financialCollectionAnalysis.$refs.departmentSalesperson.person = dataid
+      this.$refs.financialCollectionAnalysis.$refs.departmentSalesperson.person = userName
       this.$refs.financialCollectionAnalysis.$refs.departmentSalesperson.deplist = this.deplist
       this.$refs.financialCollectionAnalysis.$refs.departmentSalesperson.personnelList = this.personnelList
     },

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

@@ -181,7 +181,7 @@ export default {
         yField: ['value','value'],
         geometryOptions: [
           {
-            geometry: 'line',
+            geometry: 'column',
             isGroup: true,
             seriesField: 'name',
            /* label: {