|
@@ -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>
|