|
|
@@ -120,11 +120,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
windowWidth: document.documentElement.clientWidth, //实时屏幕宽度
|
|
|
- scrollData:''
|
|
|
+ scrollData:'',
|
|
|
+ siteid:JSON.parse(sessionStorage.getItem('active_account')).siteid
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
async departmentrtment() {
|
|
|
+ if (this.siteid == 'HY'){
|
|
|
+ this.isleave = ''
|
|
|
+ this.depmentParam.content.isleave = ''
|
|
|
+ }
|
|
|
const res = await this.$api.requested(this.depmentParam)
|
|
|
this.deplist = this.createMenu(res.data.dep)
|
|
|
this.personnelList = res.data.hr
|
|
|
@@ -133,10 +138,10 @@ export default {
|
|
|
this.departmentid = ''
|
|
|
const userid = JSON.parse(sessionStorage.getItem('active_account')).userid
|
|
|
|
|
|
- this.otherMethod(userid)
|
|
|
+ this.otherMethod(userid,this.isleave)
|
|
|
},
|
|
|
/*其他页面调用*/
|
|
|
- otherMethod(dataid){
|
|
|
+ otherMethod(dataid,isleave){
|
|
|
const userName = JSON.parse(sessionStorage.getItem('active_account')).name
|
|
|
/*数字看板*/
|
|
|
this.$refs.digitalSigns.$refs.order.param.content.dataid = dataid
|
|
|
@@ -157,6 +162,7 @@ export default {
|
|
|
this.$refs.customerAccountBalanceAnalysis.person = userName
|
|
|
this.$refs.customerAccountBalanceAnalysis.deplist = this.deplist
|
|
|
this.$refs.customerAccountBalanceAnalysis.personnelList = this.personnelList
|
|
|
+ this.$refs.customerAccountBalanceAnalysis.param.content.where.isleave = isleave
|
|
|
this.$refs.customerAccountBalanceAnalysis.listData(dataid)
|
|
|
/*客户销售*/
|
|
|
this.$refs.customer.param.content.dataid = dataid
|
|
|
@@ -167,18 +173,18 @@ export default {
|
|
|
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,'1')
|
|
|
- this.$refs.salesperson.listData(dataid,'1')
|
|
|
+ this.$refs.customer.listData(dataid,isleave)
|
|
|
+ this.$refs.salesperson.listData(dataid,isleave)
|
|
|
this.activeName = '客户销售'
|
|
|
/*报价分析*/
|
|
|
- this.$refs.quotationAnalysis.listData(dataid,'1')
|
|
|
- this.$refs.quotationAnalysis.queryQuotation(dataid,'1')
|
|
|
+ this.$refs.quotationAnalysis.listData(dataid,isleave)
|
|
|
+ this.$refs.quotationAnalysis.queryQuotation(dataid,isleave)
|
|
|
/*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
|
|
|
/*订单趋势分析*/
|
|
|
- this.$refs.orderTrendAnalysis.listData(dataid,'1')
|
|
|
+ this.$refs.orderTrendAnalysis.listData(dataid,isleave)
|
|
|
/*this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.depment = dataid*/
|
|
|
this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.person = userName
|
|
|
this.$refs.orderTrendAnalysis.$refs.departmentSalesperson.deplist = this.deplist
|
|
|
@@ -188,51 +194,61 @@ export default {
|
|
|
this.$refs.orderType.$refs.departmentSalesperson.person = userName
|
|
|
this.$refs.orderType.$refs.departmentSalesperson.deplist = this.deplist
|
|
|
this.$refs.orderType.$refs.departmentSalesperson.personnelList = this.personnelList
|
|
|
+ this.$refs.orderType.param.content.where.isleave = isleave
|
|
|
/*订单产品类别占比分析*/
|
|
|
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
|
|
|
+ this.$refs.orderProductCategory.param.content.where.isleave = isleave
|
|
|
/*出货趋势分析*/
|
|
|
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
|
|
|
+ this.$refs.shippingTrendAnalysis.param.content.where.isleave = isleave
|
|
|
/*近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
|
|
|
+ this.$refs.delayedShipmentAnalysis.param.content.where.isleave = isleave
|
|
|
/*未出货已延期情况分析*/
|
|
|
this.$refs.unshippedExtensionAnalysisRef.listData(dataid)
|
|
|
this.$refs.unshippedExtensionAnalysisRef.$refs.departmentSalesperson.person = userName
|
|
|
this.$refs.unshippedExtensionAnalysisRef.$refs.departmentSalesperson.deplist = this.deplist
|
|
|
this.$refs.unshippedExtensionAnalysisRef.$refs.departmentSalesperson.personnelList = this.personnelList
|
|
|
+ this.$refs.unshippedExtensionAnalysisRef.param.content.where.isleave = isleave
|
|
|
/*开票金额趋势分析*/
|
|
|
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
|
|
|
+ this.$refs.invoiceAmountAnalysis.param.content.where.isleave = isleave
|
|
|
/*近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
|
|
|
+ this.$refs.uninvoiceAmountAnalysis.param.content.where.isleave = isleave
|
|
|
/*已下单未出货分析*/
|
|
|
this.$refs.orderUnshippedGoods.listData(dataid)
|
|
|
this.$refs.orderUnshippedGoods.$refs.departmentSalesperson.person = userName
|
|
|
this.$refs.orderUnshippedGoods.$refs.departmentSalesperson.deplist = this.deplist
|
|
|
this.$refs.orderUnshippedGoods.$refs.departmentSalesperson.personnelList = this.personnelList
|
|
|
+ this.$refs.orderUnshippedGoods.param.content.where.isleave = isleave
|
|
|
/*出货未开票分析*/
|
|
|
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
|
|
|
+ this.$refs.shippingUninvoiceAnalysis.param.content.where.isleave = isleave
|
|
|
/*财务回款分析 */
|
|
|
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
|
|
|
+ this.$refs.financialCollectionAnalysis.param.content.where.isleave = isleave
|
|
|
},
|
|
|
/*其他页面调用*/
|
|
|
otherModel(dataid,type,isleave,leave){
|