Commit 81c70800 authored by 华国豪's avatar 华国豪 🙄

团队营收 跳转

parent eecfb114
......@@ -386,10 +386,10 @@ tr._item_list td:last-child {
._TCIDAndTCNUMList {
display: flex;
}
.other_report{
.other_report {
padding: 0 28px 15px 28px;
}
.other_report li{
.other_report li {
float: left;
color: #fff;
background-color: #b00;
......@@ -488,33 +488,33 @@ tr._item_list td:last-child {
</el-col>
<el-col :span="4">
<el-form-item label="状态:">
<el-select v-model="msg.QueryCondition" filterable class="w150">
<el-option key="-1" value="-1" label="不限"></el-option>
<el-option key="0" value="0" label="待收"></el-option>
<el-option key="1" value="1" label="退款"></el-option>
<el-option key="2" value="2" label="在途"></el-option>
</el-select>
<el-select v-model="msg.QueryCondition" filterable class="w150">
<el-option key="-1" value="-1" label="不限"></el-option>
<el-option key="0" value="0" label="待收"></el-option>
<el-option key="1" value="1" label="退款"></el-option>
<el-option key="2" value="2" label="在途"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="数据类别:">
<el-select v-model="msg.DataType" filterable class="w150">
<el-option key="-1" value="-1" label="不限"></el-option>
<el-option key="0" value="1" label="团队营收"></el-option>
<el-option key="1" value="2" label="机票"></el-option>
<el-option key="2" value="3" label="签证"></el-option>
</el-select>
<el-select v-model="msg.DataType" filterable class="w150">
<el-option key="-1" value="-1" label="不限"></el-option>
<el-option key="0" value="1" label="团队营收"></el-option>
<el-option key="1" value="2" label="机票"></el-option>
<el-option key="2" value="3" label="签证"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-form>
<ul class="clearfix">
<li class="hight_query">
<!-- <button class="normalBtn" @click="openKaiQiZzBox('一键开启')">一键开启</button>
<button class="hollowFixedBtn" @click="openKaiQiZzBox('一键关闭')">一键关闭</button> -->
<button class="hollowFixedBtn" @click="openKaiQiZzBox('一键关闭')">一键关闭</button>-->
<button class="normalBtn" @click="resetPageIndex(),getPageList()">{{$t('pub.searchBtn')}}</button>
<button class="hollowFixedBtn" @click="method5()">导出</button>
<button class="normalBtn " @click="togbu">一键同步</button>
<button class="normalBtn" @click="togbu">一键同步</button>
<!--<button class="hollowFixedBtn" @click="exportExcelCurrentPage">导出2</button>-->
</li>
</ul>
......@@ -606,12 +606,13 @@ Vue.component("TCIDJump", {
path: "/" + path,
query: { id: id, blank: "y" }
});
},goUrlVisa(path, id) {
},
goUrlVisa(path, id) {
this.$router.push({
path: "/" + path,
query: { VisaID: id, blank: "y" }
});
},
}
}
});
Vue.component("TCNUMJump", {
......@@ -645,12 +646,13 @@ Vue.component("TCNUMJump", {
path: "/" + path,
query: { id: id, blank: "y" }
});
},goUrlVisa(path, id) {
},
goUrlVisa(path, id) {
this.$router.push({
path: "/" + path,
query: { VisaID: id, blank: "y" }
});
},
}
}
});
Vue.component("GuestNum", {
......@@ -683,6 +685,31 @@ Vue.component("Transport", {
}
}
});
Vue.component("TCIDJumpWang", {
template: `<div>
<span style="cursor: pointer" v-if="rowData.DataType===1" @click="goUrl('TeamBalancePayment',rowData.TCID)">{{rowData[field]}}</span>
<span v-else >{{rowData[field]}}</span>
</div>`,
props: {
rowData: {
type: Object
},
field: {
type: String
},
index: {
type: Number
}
},
methods: {
goUrl(path, id) {
this.$router.push({
path: "/" + path,
query: { id: id, blank: "y" }
});
}
}
});
export default {
data() {
return {
......@@ -700,8 +727,8 @@ export default {
startDate: "",
endDate: "",
Type: 1,
QueryCondition:"-1",
DataType:"1"
QueryCondition: "-1",
DataType: "1"
},
getCompanyMsg: {
// 公司
......@@ -737,9 +764,9 @@ export default {
}
},
disabledDate: time => {
if(time < new Date("2018-12-31")){
if (time < new Date("2018-12-31")) {
return true;
} else{
} else {
if (this.choiceDate) {
const one = 365 * 24 * 3600 * 1000;
const minTime = this.choiceDate - one;
......@@ -818,7 +845,8 @@ export default {
width: 100,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
}, //,orderBy:''
{
field: "ShiShou",
......@@ -827,7 +855,8 @@ export default {
width: 100,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "TuiKuan",
......@@ -836,7 +865,8 @@ export default {
width: 100,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "PingTaiShuiJin",
......@@ -845,7 +875,8 @@ export default {
width: 100,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "ZaiTu",
......@@ -855,6 +886,7 @@ export default {
titleAlign: "left",
columnAlign: "left",
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "DaiShou",
......@@ -863,7 +895,8 @@ export default {
width: 100,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "YiShou",
......@@ -872,7 +905,8 @@ export default {
width: 100,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "GuestNum",
......@@ -890,7 +924,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "CheZi",
......@@ -899,7 +934,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "JiPiao",
......@@ -908,7 +944,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "GuoNeiLianYunJiPiao",
......@@ -917,7 +954,8 @@ export default {
width: 120,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
// {field: 'Money11', title: '房费',width: 90, titleAlign: 'left',columnAlign:'left',isResize:true},
{
......@@ -927,7 +965,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "TiCheng",
......@@ -935,7 +974,8 @@ export default {
width: 100,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "CompensationMoney",
......@@ -944,8 +984,9 @@ export default {
width: 100,
titleAlign: "left",
columnAlign: "left",
isResize: true
},
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "QiTa",
formatter: this.moneyFormat,
......@@ -953,7 +994,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "DiJieZhiChu",
......@@ -962,7 +1004,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "DiJieShouRu",
......@@ -971,7 +1014,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "ZiFei",
......@@ -980,7 +1024,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "XiaoFeiShouRu",
......@@ -989,7 +1034,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "YongJinShouRu",
......@@ -998,7 +1044,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "YingFu",
......@@ -1007,7 +1054,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "MaoLi",
......@@ -1016,7 +1064,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "MaoLiRate",
......@@ -1025,7 +1074,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "ShiJiLiRun",
......@@ -1034,7 +1084,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "Remark",
......@@ -1182,7 +1233,7 @@ export default {
titleAlign: "left",
columnAlign: "left",
isResize: true
},
},
{
field: "RealIncome",
formatter: this.moneyFormat,
......@@ -1287,7 +1338,7 @@ export default {
footer: [],
pageSize: 6,
pageIndex: 1,
AALloading: false,
AALloading: false
};
},
created() {},
......@@ -1297,7 +1348,7 @@ export default {
allH = document.documentElement.clientHeight;
allW = document.documentElement.clientWidth;
cW = allW - 90;
cH = allH - 350 -52;
cH = allH - 350 - 52;
this.msg.pageSize = parseInt(cH / 30) - 1;
let userInfo = this.getLocalStorage();
this.getCompanyMsg.RB_Group_Id = userInfo.RB_Group_id; //集团ID
......@@ -1308,23 +1359,29 @@ export default {
this.getStartList1();
},
methods: {
goEasyReport: function () {
let year = this.productionDate[0] ? this.productionDate[0].substring(0,4) : ''
goEasyReport: function() {
let year = this.productionDate[0]
? this.productionDate[0].substring(0, 4)
: "";
this.$router.push({
path: "/EasyReport",
query: { year: year, blank: "y" }
});
},
togbu: function () {
this.AALloading = true
this.apipost('financestatistics_post_InsertFinanceStatistics', {}, res=>{
if (res.data.resultCode == 1) {
this.$message.success(res.data.message)
} else {
this.AALloading = false
this.$message.error(res.data.message)
togbu: function() {
this.AALloading = true;
this.apipost(
"financestatistics_post_InsertFinanceStatistics",
{},
res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
} else {
this.AALloading = false;
this.$message.error(res.data.message);
}
}
})
);
},
submitKaiqiZzBox: function() {
// 开关闸提交
......@@ -1585,7 +1642,8 @@ export default {
return this.priceFormat(rowData.GuoNeiLianYunJiPiao);
if (field === "Visa") return this.priceFormat(rowData.Visa);
if (field === "TiCheng") return this.priceFormat(rowData.TiCheng);
if (field === "CompensationMoney") return this.priceFormat(rowData.CompensationMoney);
if (field === "CompensationMoney")
return this.priceFormat(rowData.CompensationMoney);
if (field === "QiTa") return this.priceFormat(rowData.QiTa);
if (field === "DiJieZhiChu") return this.priceFormat(rowData.DiJieZhiChu);
if (field === "DiJieShouRu") return this.priceFormat(rowData.DiJieShouRu);
......@@ -1598,7 +1656,7 @@ export default {
return this.priceFormat(rowData.YongJinShouRu);
if (field === "YingFu") return this.priceFormat(rowData.YingFu);
if (field === "MaoLi") return this.priceFormat(rowData.MaoLi);
if (field === "MaoLiRate") return rowData.MaoLiRate+'%';
if (field === "MaoLiRate") return rowData.MaoLiRate + "%";
if (field === "ShiJiLiRun") return this.priceFormat(rowData.ShiJiLiRun);
if (field === "TransportCost")
return this.priceFormat(rowData.TransportCost);
......@@ -1781,10 +1839,20 @@ export default {
x.Is_Transport = x.Is_Transport === 0 ? "否" : "是";
newData.push(x);
} else {
x.MaoLiRate = this.total===0 ? 0 : parseFloat(x.MaoLiRate/this.total);
x.AverageIncome = this.total===0 ? 0 : parseFloat(x.AverageIncome/this.total);
x.AverageCost = this.total===0 ? 0 : parseFloat(x.AverageCost/this.total);
x.AverageProfit = this.total===0 ? 0 : parseFloat(x.AverageProfit/this.total);
x.MaoLiRate =
this.total === 0 ? 0 : parseFloat(x.MaoLiRate / this.total);
x.AverageIncome =
this.total === 0
? 0
: parseFloat(x.AverageIncome / this.total);
x.AverageCost =
this.total === 0
? 0
: parseFloat(x.AverageCost / this.total);
x.AverageProfit =
this.total === 0
? 0
: parseFloat(x.AverageProfit / this.total);
x.LineName = "合计";
x.TCID = "";
x.TCNUM = "";
......
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