Commit f3e180e8 authored by youjie's avatar youjie

no message

parent 8b95fc29
...@@ -4,13 +4,14 @@ ...@@ -4,13 +4,14 @@
<el-tab-pane label="线路经营情况" name="1"></el-tab-pane> <el-tab-pane label="线路经营情况" name="1"></el-tab-pane>
<el-tab-pane label="公司经营情况" name="2"></el-tab-pane> <el-tab-pane label="公司经营情况" name="2"></el-tab-pane>
<el-tab-pane label="日本小包OR常规" name="3"></el-tab-pane> <el-tab-pane label="日本小包OR常规" name="3"></el-tab-pane>
<!-- <el-tab-pane label="购物佣金情况" name="4"></el-tab-pane> -->
</el-tabs> </el-tabs>
<div class="query-box"> <div class="query-box">
<el-form class="_info_box clearfix" label-width="90px"> <el-form class="_info_box clearfix" label-width="90px">
<el-row style="padding: 15px 0px 0 0"> <el-row style="padding: 15px 0px 0 0">
<el-col :span="4"> <el-col v-if="activeName!=4" :span="4">
<el-form-item :label="$t('system.table_company')"> <el-form-item :label="$t('system.table_company')">
<template v-if="activeName==1"> <template v-if="activeName!=2">
<el-select <el-select
filterable filterable
v-model="msg.OutBranchId" v-model="msg.OutBranchId"
...@@ -29,17 +30,19 @@ ...@@ -29,17 +30,19 @@
></el-option> ></el-option>
</el-select> </el-select>
</template> </template>
<div v-if="activeName==2"> <div v-else>
<el-select <el-select
filterable filterable
multiple multiple
collapse-tags
clearable
v-model="msg.OutBranchIdList" v-model="msg.OutBranchIdList"
@change="getChange" @change="getChange"
> >
<el-option <!-- <el-option
:value="-1" :value="-1"
:label="$t('pub.unlimitedSel')" :label="$t('pub.unlimitedSel')"
></el-option> ></el-option> -->
<el-option <el-option
v-for="item in CompanyList" v-for="item in CompanyList"
:label="item.BName" :label="item.BName"
...@@ -51,6 +54,48 @@ ...@@ -51,6 +54,48 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<template v-else>
<el-col :span="4">
<el-form-item label="购物店">
<el-select
filterable
clearable
v-model="shopMsg.PlaceId"
>
<!-- <el-option
value=""
:label="$t('pub.unlimitedSel')"
></el-option> -->
<el-option
v-for="item in ShoppingStores"
:label="item.Name"
:value="item.ID"
:key="item.ID"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="类型">
<el-select
filterable
clearable
v-model="shopMsg.Type"
>
<!-- <el-option
value=""
:label="$t('pub.unlimitedSel')"
></el-option> -->
<el-option
v-for="item in shopType"
:label="item.Name"
:value="item.Id"
:key="item.Id"
></el-option>
</el-select>
</el-form-item>
</el-col>
</template>
<el-col :span="4"> <el-col :span="4">
<el-form-item :label="$t('fnc.bweibi')"> <el-form-item :label="$t('fnc.bweibi')">
<el-select :disabled="coinGetShow" filterable v-model="msg.StandardCurrencyId" @change="getStatement"> <el-select :disabled="coinGetShow" filterable v-model="msg.StandardCurrencyId" @change="getStatement">
...@@ -64,12 +109,13 @@ ...@@ -64,12 +109,13 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="msg.LineIdList.length<2?4:'8'"> <el-col v-if="activeName!=4" :span="msg.LineIdList.length<2?4:'4'">
<el-form-item label="线路"> <el-form-item label="线路">
<el-select <el-select
style="width: 100%;" filterable multiple v-model="msg.LineIdList" @change="getStatement" style="width: 100%;" filterable multiple collapse-tags
v-model="msg.LineIdList" @change="getStatement"
clearable> clearable>
<el-option <el-option v-if="activeName!=2"
:value="0" :value="0"
:label="$t('pub.unlimitedSel')" :label="$t('pub.unlimitedSel')"
></el-option> ></el-option>
...@@ -140,35 +186,60 @@ ...@@ -140,35 +186,60 @@
<!-- height: 78%;overflow: auto; --> <!-- height: 78%;overflow: auto; -->
<div v-loading="loading" style="height: 80%;overflow: auto; "> <div v-loading="loading" style="height: 80%;overflow: auto; ">
<template v-if="activeName=='1'"> <template v-if="activeName=='1'">
<div style="display: flex;flex-direction: row;flex-wrap: wrap;"> <div class="allEchartRow">
<IncomeChange :msgData="msg" :StatisticalData="StatisticalData"></IncomeChange> <IncomeChange :msgData="msg" :StatisticalData="StatisticalData"></IncomeChange>
<IncomeShare :msgData="msg" :StatisticalData="StatisticalData"></IncomeShare> <IncomeShare :msgData="msg" :StatisticalData="StatisticalData"></IncomeShare>
<ChangeProportion :msgData="msg" :StatisticalData="StatisticalData"></ChangeProportion> <ChangeProportion :msgData="msg" :StatisticalData="StatisticalData"></ChangeProportion>
</div> </div>
<div style="display: flex;flex-direction: row;flex-wrap: wrap;"> <div class="allEchartRow">
<WoolRateColumnar :msgData="msg" :StatisticalData="StatisticalData"></WoolRateColumnar> <WoolRateColumnar :msgData="msg" :StatisticalData="StatisticalData"></WoolRateColumnar>
<ActualRateColumnar :msgData="msg" :StatisticalData="StatisticalData"></ActualRateColumnar> <ActualRateColumnar :msgData="msg" :StatisticalData="StatisticalData"></ActualRateColumnar>
</div> </div>
<div style="display: flex;flex-direction: row;flex-wrap: wrap;"> <div class="allEchartRow">
<WoolRateChange :msgData="msg" :StatisticalData="StatisticalData"></WoolRateChange> <WoolRateChange :msgData="msg" :StatisticalData="StatisticalData"></WoolRateChange>
<ActualRateChange :msgData="msg" :StatisticalData="StatisticalData"></ActualRateChange> <ActualRateChange :msgData="msg" :StatisticalData="StatisticalData"></ActualRateChange>
</div> </div>
</template> </template>
<template v-if="activeName=='2'"> <template v-if="activeName=='2'">
<div style="display: flex;flex-direction: row;flex-wrap: wrap;"> <div class="allEchartRow">
<twoIncomeChange :msgData="msg" :StatisticalData="StatisticalData"></twoIncomeChange> <twoIncomeChange :msgData="msg" :StatisticalData="StatisticalData"></twoIncomeChange>
<twoChangeProportion :msgData="msg" :StatisticalData="StatisticalData"></twoChangeProportion> <twoChangeProportion :msgData="msg" :StatisticalData="StatisticalData"></twoChangeProportion>
<!-- <twoIncomeShare :msgData="msg" :StatisticalData="StatisticalData"></twoIncomeShare> -->
</div> </div>
<div style="display: flex;flex-direction: row;flex-wrap: wrap;"> <div class="allEchartRow">
<twoWoolRateColumnar :msgData="msg" :StatisticalData="StatisticalData"></twoWoolRateColumnar> <twoWoolRateColumnar :msgData="msg" :StatisticalData="StatisticalData"></twoWoolRateColumnar>
<twoActualRateColumnar :msgData="msg" :StatisticalData="StatisticalData"></twoActualRateColumnar> <twoActualRateColumnar :msgData="msg" :StatisticalData="StatisticalData"></twoActualRateColumnar>
</div> </div>
<div style="display: flex;flex-direction: row;flex-wrap: wrap;"> </template>
<!-- <twoWoolRateChange :msgData="msg" :StatisticalData="StatisticalData"></twoWoolRateChange> -->
<!-- <twoActualRateChange :msgData="msg" :StatisticalData="StatisticalData"></twoActualRateChange> --> <template v-if="activeName=='3'">
<div class="allEchartRow">
<threeIncomeChange :msgData="msg" :StatisticalData="StatisticalData"></threeIncomeChange>
<threeIncomeShare :msgData="msg" :StatisticalData="StatisticalData"></threeIncomeShare>
<threeChangeProportion :msgData="msg" :StatisticalData="StatisticalData"></threeChangeProportion>
</div>
<div class="allEchartRow">
<threeWoolRateColumnar :msgData="msg" :StatisticalData="StatisticalData"></threeWoolRateColumnar>
<threeActualRateColumnar :msgData="msg" :StatisticalData="StatisticalData"></threeActualRateColumnar>
<threeActualRateColumnar2 :msgData="msg" :StatisticalData="StatisticalData"></threeActualRateColumnar2>
</div> </div>
<div class="allEchartRow">
<threeWoolRateChange :msgData="msg" :StatisticalData="StatisticalData"></threeWoolRateChange>
<threeActualRateChange :msgData="msg" :StatisticalData="StatisticalData"></threeActualRateChange>
<threeActualRateChange2 :msgData="msg" :StatisticalData="StatisticalData"></threeActualRateChange2>
</div>
<div class="allEchartRow">
<threeIncomeChange2 :msgData="msg" :StatisticalData="StatisticalData"></threeIncomeChange2>
<threeIncomeShare2 :msgData="msg" :StatisticalData="StatisticalData"></threeIncomeShare2>
<threeChangeProportion2 :msgData="msg" :StatisticalData="StatisticalData"></threeChangeProportion2>
</div>
</template>
<template v-if="activeName=='4'">
<!-- <fourIncomeChange :msgData="msg" :StatisticalData="StatisticalData"></fourIncomeChange>
<fourIncomeShare></fourIncomeShare>
<fourWoolRateChange></fourWoolRateChange>
<fourActualRateChange></fourActualRateChange> -->
</template> </template>
</div> </div>
...@@ -186,12 +257,27 @@ import WoolRateColumnar from "./components/oneEchart/WoolRateColumnar.vue"; ...@@ -186,12 +257,27 @@ import WoolRateColumnar from "./components/oneEchart/WoolRateColumnar.vue";
import ActualRateColumnar from "./components/oneEchart/ActualRateColumnar.vue"; import ActualRateColumnar from "./components/oneEchart/ActualRateColumnar.vue";
import twoIncomeChange from "./components/twoEchart/IncomeChange.vue"; import twoIncomeChange from "./components/twoEchart/IncomeChange.vue";
import twoIncomeShare from "./components/twoEchart/IncomeShare.vue";
import twoWoolRateChange from "./components/twoEchart/WoolRateChange.vue";
import twoActualRateChange from "./components/twoEchart/ActualRateChange.vue";
import twoChangeProportion from "./components/twoEchart/ChangeProportion.vue"; import twoChangeProportion from "./components/twoEchart/ChangeProportion.vue";
import twoWoolRateColumnar from "./components/twoEchart/WoolRateColumnar.vue"; import twoWoolRateColumnar from "./components/twoEchart/WoolRateColumnar.vue";
import twoActualRateColumnar from "./components/twoEchart/ActualRateColumnar.vue"; import twoActualRateColumnar from "./components/twoEchart/ActualRateColumnar.vue";
import threeIncomeChange from "./components/threeEchart/IncomeChange.vue";
import threeIncomeShare from "./components/threeEchart/IncomeShare.vue";
import threeWoolRateChange from "./components/threeEchart/WoolRateChange.vue";
import threeActualRateChange from "./components/threeEchart/ActualRateChange.vue";
import threeActualRateChange2 from "./components/threeEchart/ActualRateChange2.vue";
import threeChangeProportion from "./components/threeEchart/ChangeProportion.vue";
import threeWoolRateColumnar from "./components/threeEchart/WoolRateColumnar.vue";
import threeActualRateColumnar from "./components/threeEchart/ActualRateColumnar.vue";
import threeActualRateColumnar2 from "./components/threeEchart/ActualRateColumnar2.vue";
import threeIncomeChange2 from "./components/threeEchart/IncomeChange2.vue";
import threeIncomeShare2 from "./components/threeEchart/IncomeShare2.vue";
import threeChangeProportion2 from "./components/threeEchart/ChangeProportion2.vue";
import fourIncomeChange from "./components/fourEchart/IncomeChange.vue";
import fourIncomeShare from "./components/fourEchart/IncomeShare.vue";
import fourWoolRateChange from "./components/fourEchart/WoolRateChange.vue";
import fourActualRateChange from "./components/fourEchart/ActualRateChange.vue";
export default { export default {
components: { components: {
IncomeChange,IncomeShare, IncomeChange,IncomeShare,
...@@ -199,10 +285,19 @@ export default { ...@@ -199,10 +285,19 @@ export default {
ChangeProportion, ChangeProportion,
WoolRateColumnar,ActualRateColumnar, WoolRateColumnar,ActualRateColumnar,
twoIncomeChange,twoIncomeShare, twoIncomeChange,twoChangeProportion,
twoWoolRateChange,twoActualRateChange,
twoChangeProportion,
twoWoolRateColumnar,twoActualRateColumnar, twoWoolRateColumnar,twoActualRateColumnar,
threeIncomeChange,threeIncomeShare,
threeWoolRateChange,
threeActualRateChange,threeActualRateChange2,
threeChangeProportion,
threeWoolRateColumnar,
threeActualRateColumnar,threeActualRateColumnar2,
threeIncomeChange2,threeIncomeShare2,threeChangeProportion2,
fourIncomeChange,fourIncomeShare,
fourWoolRateChange,fourActualRateChange
}, },
data() { data() {
return { return {
...@@ -224,6 +319,23 @@ export default { ...@@ -224,6 +319,23 @@ export default {
LineIdList: [14], LineIdList: [14],
LineIdStr: '14' LineIdStr: '14'
}, },
shopMsg:{
startDate: '',
endDate: '',
PlaceId: '',
Type: '',
LossType: '0',
IsLastData: '1',
StandardCurrencyId: '1',
MaoLiRate: 0.049
},
ShoppingStores: [],
shopType: [
{Name: '不限',Id:''},
{Name: '购物店统计',Id:1},
{Name: '领队导游排名',Id:2},
{Name: '佣金占比统计',Id:3},
],
dateTime: [], dateTime: [],
CompanyList: [], CompanyList: [],
getCompanyMsg: { getCompanyMsg: {
...@@ -263,16 +375,25 @@ export default { ...@@ -263,16 +375,25 @@ export default {
this.getCompanyMsg.RB_Group_Id = this.getLocalStorage().RB_Group_id this.getCompanyMsg.RB_Group_Id = this.getLocalStorage().RB_Group_id
const end = new Date(); const end = new Date();
const start = new Date(); const start = new Date();
start.setMonth(start.getMonth() - 7); start.setMonth(start.getMonth() - 6);
end.setMonth(end.getMonth() - 1);
this.dateTime = [this.$commonUtils.getFormatDateM(start),this.$commonUtils.getFormatDateM(end)] this.dateTime = [this.$commonUtils.getFormatDateM(start),this.$commonUtils.getFormatDateM(end)]
this.msg.startDate = this.dateTime[0] this.msg.startDate = this.dateTime[0]
this.msg.endDate = this.dateTime[1] this.msg.endDate = this.dateTime[1]
this.financeinfo_post_GetList() this.financeinfo_post_GetList()
this.getQueryData() this.getQueryData()
this.getShops()
this.getStatement() this.getStatement()
}, },
methods: { methods: {
getShops() {
this.apipost('Shopping_Post_GetList', {}, res => {
if (res.data.resultCode === 1) {
this.ShoppingStores = res.data.data;
} else {
this.$message.error(res.data.message);
}
}, null)
},
getChange(val){ getChange(val){
if(this.msg.Type!='2'){ if(this.msg.Type!='2'){
if(this.msg.OutBranchId == -1){ if(this.msg.OutBranchId == -1){
...@@ -323,14 +444,26 @@ export default { ...@@ -323,14 +444,26 @@ export default {
} }
this.msg.LineIdStr = this.msg.LineIdList.join(',') this.msg.LineIdStr = this.msg.LineIdList.join(',')
if(this.msg.Type==2) this.msg.StandardBranchIds = this.msg.OutBranchIdList.join(',') if(this.msg.Type==2) this.msg.StandardBranchIds = this.msg.OutBranchIdList.join(',')
this.loading = true this.loading = true
let msg = this.msg
let url ='financestatistics_post_GetDataAnalysisStat' let url ='financestatistics_post_GetDataAnalysisStat'
// if(this.activeName=='2'){ url = ''}
if(this.activeName=='4'){
if(this.msg.StandardCurrencyId==1||!this.msg.StandardCurrencyId){
this.shopMsg.MaoLiRate = 0.049
}
this.shopMsg.startDate = this.msg.startDate
this.shopMsg.endDate = this.msg.endDate
msg = this.shopMsg
url = 'financestatistics_post_GetCommissionAnalysisStat'
}
this.apipost( this.apipost(
url, url,
this.msg, msg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
console.log(this.StatisticalData,'=---------')
this.StatisticalData = res.data.data this.StatisticalData = res.data.data
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
...@@ -346,8 +479,8 @@ export default { ...@@ -346,8 +479,8 @@ export default {
this.activeName = e._props.name this.activeName = e._props.name
this.msg.Type = this.activeName this.msg.Type = this.activeName
if(this.msg.Type==2) { if(this.msg.Type==2) {
this.msg.LineIdList = [0], this.msg.LineIdList = [],
this.msg.LineIdStr = '0' this.msg.LineIdStr = ''
this.msg.IsLastData = 2 this.msg.IsLastData = 2
this.msg.OutBranchIdList = [0] this.msg.OutBranchIdList = [0]
this.msg.StandardBranchIds = '0' this.msg.StandardBranchIds = '0'
...@@ -356,7 +489,8 @@ export default { ...@@ -356,7 +489,8 @@ export default {
}else { }else {
this.msg.LineIdList = [14] this.msg.LineIdList = [14]
this.msg.LineIdStr = '14' this.msg.LineIdStr = '14'
this.msg.IsLastData = 1 if(this.msg.Type==1)this.msg.IsLastData = 1
else this.msg.IsLastData = 3
this.msg.OutBranchId = -1 this.msg.OutBranchId = -1
this.msg.OutBranchIdList = [0] this.msg.OutBranchIdList = [0]
this.msg.StandardBranchIds = '0' this.msg.StandardBranchIds = '0'
...@@ -416,18 +550,23 @@ export default { ...@@ -416,18 +550,23 @@ export default {
</script> </script>
<style> <style>
.allEchartRow{
display: flex;
flex-direction: row;
flex-wrap: nowrap;
}
.titleBox{ .titleBox{
padding: 10px 10px 0 10px; padding: 10px 10px 0 10px;
display: flex; display: flex;
} }
.echartsBox{ .echartsBox{
flex: 1; flex: 1;
min-width: 430px; /* min-width: 430px; */
margin: 5px; margin: 5px;
background: #fff; background: #fff;
} }
.echartsBox:nth-child(2){ .echartsBox:nth-child(2){
min-width: 458px; /* min-width: 458px; */
} }
.allMyEchartBox{ .allMyEchartBox{
height: 270px; height: 270px;
......
...@@ -926,10 +926,17 @@ ...@@ -926,10 +926,17 @@
let leaderIds=[]; let leaderIds=[];
this.shopDataList.forEach((item) => { this.shopDataList.forEach((item) => {
if (item.IsCheck){ if (item.IsCheck){
leaderIds.push(item.LeaderGuideIds); item.PriceShopList.forEach(x=>{
x.ShopDetailsList.forEach(y=>{
let filter = leaderIds.filter(z=>{return z==y.LeaderId})
if(!y.LeaderCommissionFrId&&filter.length==0) leaderIds.push(y.LeaderId);
})
})
// leaderIds.push(item.LeaderGuideIds);
} }
}) })
console.log(leaderIds,'----1111')
if(leaderIds.length>0){
this.loading = true; this.loading = true;
this.IsLGCommissionAccount=true; this.IsLGCommissionAccount=true;
this.apipost( this.apipost(
...@@ -960,6 +967,13 @@ ...@@ -960,6 +967,13 @@
}, },
err => {} err => {}
); );
}else{
this.IsJapan = this.nMsg.IsHaveFee = 0
this.saveMsg = [];
this.BOSSDialog = false;
this.BOSSDialogText = true;
}
}, },
MoreSureCreateBill() { MoreSureCreateBill() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment