Commit 96a9a6e9 authored by 华国豪's avatar 华国豪 🙄
parents f3d77f7b 3cce58be
<style scoped>
.page_fnDm {
background-color: white;
}
.query-box {
overflow: inherit;
padding-bottom: 0;
}
._nav {
margin: 20px 0 0 0;
background-color: #f5f5f5;
}
._nav li {
float: left;
font-size: 14px;
color: #666666;
padding: 15px 20px;
cursor: pointer;
position: relative;
background-color: #f1f1f1;
margin-right: 5px;
}
._nav li._active {
background-color: #ffffff;
color: #333333;
}
._nav li._active::after {
content: "";
width: 20px;
height: 3px;
background-color: #e95252;
display: inline-block;
position: absolute;
bottom: 0;
left: 38%;
}
.el-range-editor.el-input__inner {
border-radius: 0;
}
.query-box {
border: none;
}
.hight_query {
position: relative;
}
.hight_query span {
height: 34px;
line-height: 34px;
color: #e95252;
}
.hight_query span .icon-gengduo {
font-size: 12px;
}
.hight_query span em {
text-decoration: underline;
cursor: pointer;
}
.hight_query_box {
position: absolute;
background-color: white;
z-index: 2000;
right: 200px;
width: 800px;
}
._hqb_shadow {
box-shadow: 3px 2px 10px rgb(204, 203, 203);
border: 1px solid #ececec;
}
.query-box ul {
overflow: initial;
}
.hqb_t {
padding: 10px 20px;
font-size: 16px;
background-color: #e95252;
border: 1px solid #e95252;
color: #fff;
text-align: center;
margin-bottom: 15px;
}
.query-box li:last-child {
float: left;
}
.query-box > ul > li:last-child {
float: right;
}
.query-box .hight_query ul .el-input {
width: inherit;
}
.hight_query_box ul li {
margin-top: 0;
float: left;
margin-right: 15px;
}
.hight_query_box ul li label {
font-size: 14px;
}
.hight_query_box .el-form {
padding: 0 20px;
}
.hight_query_box ul li._hqb_btn {
float: right;
margin-right: 25px;
padding-top: 5px;
position: inherit;
}
.Receipt_box {
padding: 15px;
color: #c94052;
width: 614px;
background-color: rgba(242, 242, 242, 1);
border: 1px solid rgba(228, 228, 228, 1);
}
.Receipt_box.color_blur {
color: #106baf;
}
.Receipt_box.color_blur .rb_stit span {
display: inline-block;
border-bottom: 2px solid #106baf;
padding: 0 20px;
}
.rb_tit {
font-size: 18px;
text-align: center;
}
.rb_stit {
font-size: 14px;
text-align: center;
}
.rb_stit span {
display: inline-block;
border-bottom: 2px solid #c94052;
padding: 0 20px;
}
.rb_top_row {
display: flex;
justify-content: space-between;
font-size: 12px;
}
.rb_top_row span._r_name {
color: #333333;
}
.rb_top_row span._r_bold {
font-weight: bold;
}
.rb_top_row ._r_time span {
color: #333333;
}
._r_mb5 {
margin-bottom: 5px;
}
.Receipt_table {
width: 100%;
font-size: 14px;
text-align: center;
}
.Receipt_table .th {
font-weight: 200 !important;
}
._r_mt10 {
margin-top: 10px;
}
._bg__ {
display: inline-block;
padding: 2px 8px;
color: white;
border-radius: 4px;
}
._bg_red {
background-color: #e95252;
}
._bg_green {
background-color: #2bb87c;
}
.text_d {
text-decoration: underline;
cursor: pointer;
}
.PingFangSC {
font-weight: bold;
}
.Bill_par {
position: relative;
}
tr th,
tr td {
text-align: left;
padding-left: 20px;
}
tr._item_list {
border-bottom: 1px solid #e5e5e5;
height: 78px;
}
tr._item_list td {
border-bottom: 1px solid #e5e5e5;
padding: 10px;
}
/* tr._t_head th{border-top: 1px solid #e5e5e5;} */
tr._item_list td:first-child {
border-left: 1px solid #e5e5e5;
}
tr._item_list td:last-child {
border-right: 1px solid #e5e5e5;
}
._head_img {
width: 28px;
height: 28px;
border-radius: 50%;
vertical-align: middle;
}
._btn_group {
font-size: 14px;
}
.icon-daiqueren {
color: #4bca81;
}
.icon-yiqueren {
color: #4bca81;
}
.icon-yiquxiao {
color: #959595;
}
.icon-shenhebohui {
color: #e95252;
}
.icon-icon-zancun {
color: #ff9c01;
}
.singeRowTable tr:hover {
background-color: white;
}
._TradeWayList {
padding: 5px 10px;
background-color: #eeeeee;
border-radius: 4px;
margin: 10px 0;
width: 190px;
}
._bold {
font-weight: bold;
}
._bank_name,
._bank_type {
display: inline-block;
background-color: #333333;
color: white;
padding: 2px 4px;
border-radius: 4px;
margin-left: 10px;
}
._bank_name {
margin-left: 10px;
}
._bank_type {
background-color: #2aaef2;
}
._bank_type2 {
background-color: #ff9c01;
}
._font_init {
color: #333333;
font-size: 12px;
vertical-align: top;
}
.InfoChangeLog {
height: auto;
max-height: 220px;
background-color: #ffffff;
}
.changLogList {
padding-left: 20px;
max-height: 180px;
overflow: auto;
}
.changLogList_l {
border-left: 1px solid #e9e9e9;
position: relative;
padding-bottom: 10px;
padding-left: 20px;
padding-top: 10px;
}
._radius_green {
background-color: #47bf8c;
width: 7px;
height: 7px;
border-radius: 50%;
display: inline-block;
position: absolute;
left: -4px;
top: 19px;
}
.changLog_time {
color: #666666;
font-size: 12px;
display: inline-block;
padding-right: 10px;
}
._icon_btn i {
width: 30px;
height: 30px;
display: inline-block;
color: white !important;
border-radius: 50%;
text-align: center;
line-height: 30px;
margin-right: 10px;
cursor: pointer;
outline: none;
}
._icon_btn i.edit {
background-color: #00c6ff;
font-size: 16px;
}
._icon_btn i.edit:hover {
background-color: #59daff;
}
._icon_btn i.edit:active {
background-color: #00b8ec;
}
._icon_btn i.icon-sousuo {
background-color: #47bf8c;
}
._icon_btn i.icon-sousuo:hover {
background-color: #66bb97;
}
._icon_btn i.icon-sousuo:active {
background-color: #35ab79;
}
._icon_btn i.icon-ico_commodity_defaul {
background-color: #f16c3c;
}
._icon_btn i.icon-ico_commodity_defaul:hover {
background-color: #e87c54;
}
._icon_btn i.icon-ico_commodity_defaul:active {
background-color: #f76630;
}
._icon_btn i.icon-quxiao1 {
background-color: #e95252;
}
._icon_btn i.icon-quxiao1:hover {
background-color: #ea6d6d;
}
._icon_btn i.icon-quxiao1:active {
background-color: #e42d2d;
}
._icon_btn i.icon-zhuanjiao1 {
background-color: #e6a014;
font-size: 16px;
}
._icon_btn i.icon-zhuanjiao1:hover {
background-color: rgb(235, 184, 84);
}
._icon_btn i.icon-zhuanjiao1:active {
background-color: rgb(223, 150, 6);
}
._tag_span {
background-color: rgba(64, 158, 255, 0.1);
display: inline-block;
padding: 0 5px;
height: 22px;
line-height: 20px;
font-size: 12px;
color: #409eff;
border-radius: 4px;
box-sizing: border-box;
border: 1px solid rgba(64, 158, 255, 0.2);
white-space: nowrap;
margin-bottom: 4px;
}
._tag_span._tag_warr {
background-color: rgba(103, 194, 58, 0.1);
border-color: rgba(103, 194, 58, 0.2);
color: #67c23a;
}
._fex_cen {
display: flex;
align-items: center;
}
._pad5 {
padding: 5px 10px;
}
._color_gar {
color: gray;
}
._TCIDAndTCNUMList {
display: flex;
}
.other_report{
padding: 0 28px 15px 28px;
}
.other_report li{
float: left;
color: #fff;
background-color: #b00;
border-color: #b00;
min-width: 80px;
padding: 4px 12px;
margin-bottom: 0;
font-size: 14px;
font-weight: normal;
text-align: center;
cursor: pointer;
border-radius: 4px;
margin-bottom: 10px;
}
.year .el-date-editor.el-input{
width: auto;
}
</style>
<template>
<div class="page_fnDm page_RecPayQuery" v-loading="AALloading">
<div class="query-box">
<el-form class="_info_box clearfix" label-width="110px">
<el-row style="padding:15px 20px 0 0;">
<el-col :span="4">
<el-form-item label="出团公司:">
<el-select :disabled="BranchStatus" filterable v-model="msg.OutBranchId" class>
<el-option :value="-1" label="不限"></el-option>
<el-option
v-for="item in CompanyList"
:label="item.BName"
: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 v-model="msg.StartCityId" class>
<el-option :value="0" label="不限"></el-option>
<el-option
v-for="item in startCityList1"
:label="item.startCityName"
: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 v-model="msg.LineId" @change="getLineTeamList(msg.LineId)">
<el-option :value="0" label="不限"></el-option>
<el-option
v-for="item in LineList"
:label="item.LineName"
:value="item.LineID"
:key="item.LineID"
></el-option>
</el-select>
</el-form-item>
</el-col>
<!-- <el-col :span="4">
<el-form-item label="系列:">
<el-select filterable v-model="msg.LineTeamId" class>
<el-option :value="0" label="不限"></el-option>
<el-option
v-for="item in LineTeamList"
:label="item.LtName"
:value="item.LtID"
:key="item.LtID"
></el-option>
</el-select>
</el-form-item>
</el-col> -->
<el-col :span="4" class="year">
<el-form-item label="年份:">
<el-date-picker
v-model="msg.QStartDate"
type="year"
value-format="yyyy"
placeholder="选择年">
</el-date-picker>
</el-form-item>
</el-col>
<!-- <el-col :span="4">
<el-form-item label="团队编号:">
<el-input v-model="msg.TCID" class></el-input>
</el-form-item>
</el-col> -->
</el-row>
</el-form>
<ul class="clearfix">
<li class="hight_query">
<button class="normalBtn" @click="togbu()">{{$t('pub.searchBtn')}}</button>
<button class="hollowFixedBtn" @click="method5()">导出</button>
</li>
</ul>
</div>
<div class="_fnDm_content" v-loading="loading">
<v-table
is-horizontal-resize
column-width-drag
:show-vertical-border="true"
style="width:100%"
:columns="columns"
:table-data="DataList"
:filter-method="filterMethod"
:total="total"
:pageSize="msg.pageSize"
:pageIndex="msg.pageIndex"
:row-height="30"
:column-cell-class-name="columnCellClass"
@on-custom-comp="customCompFunc"
@sort-change="sortChange"
:footer="footer"
:footer-row-height="33"
:multiple-sort="multipleSort"
:row-click="rowClick"
>
<!-- 多个排序 -->
</v-table>
</div>
</div>
</template>
<script>
import Vue from "vue";
import XLSX from "xlsx";
import downloadExcelEasy from "../../../assets/utils/downloadExcelEasy";
import { setTimeout } from "timers";
Vue.component("fontColor", {
// 是否联运团
template: `<p>
<span style="color: red">{{rowData.FirstQuarter}}</span>
</p>`,
props: {
rowData: {
type: Object
},
field: {
type: String
},
index: {
type: Number
}
},data(){
return {
red: false
}
},mounted(){
// this.red = this.rowData.Compare1.indexOf("-")!==-1 ? true : false
}
});
Vue.component("fontColor2", {
// 是否联运团
template: `<p>
<span v-if="red" style="color: red">{{rowData.Compare1}}</span>
<span v-else>{{rowData.Compare1}}</span>
</p>`,
props: {
rowData: {
type: Object
},
field: {
type: String
},
index: {
type: Number
}
},data(){
return {
red: false
}
},mounted(){
// this.red = this.rowData.Compare2.indexOf("-")!==-1 ? true : false
}
});
export default {
data() {
return {
showID: false,
active: 1,
userId: 0,
msg: {
OutBranchId: "",
TCID: "",
LineId:"",
QStartDate: "",
QEndDate: "",
EmployeeId:''
},
getCompanyMsg: {
// 公司
RB_Group_Id: "0",
Status: "0"
},
DataList: [],
CompanyList: [],
productionDate: [],
loading: false,
currentPage: 1,
total: 0,
tableData: [],
LineList: [],
LineTeamList: [],
// startCityList1: [],
multipleSort: false,
kaiqiZzBox: false,
KaiqiZzTime: [],
kaiqiZzTitle: "",
kaiqiZzLoading: false,
kaiqiZzMsg: {
QStartDate: "",
QEndDate: "",
Is_Open: ""
},
defaultMonth: [],
columns: [],
footer: [],
pageSize: 6,
pageIndex: 1,
AALloading: false,
BranchStatus:true,
};
},
created() {},
components: {},
mounted() {
let allH, allW, cH, cW;
allH = document.documentElement.clientHeight;
allW = document.documentElement.clientWidth;
cW = allW - 90;
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
this.userId = userInfo.EmployeeId;
this.msg.OutBranchId=0;
this.msg.LineId=14;
this.getCompanyList();
// this.getPageList();
this.getLineList();
// this.getStartList1();
this.togbu()
},
methods: {
goEasyReport: function () {
let year = this.productionDate[0] ? this.productionDate[0].substring(0,4) : ''
this.$router.push({
path: "/YearReport",
query: { year: year, blank: "y" }
});
},
togbu: function () {
this.loading = true;
if (!this.msg.OutBranchId && this.msg.OutBranchId !== 0)
this.msg.OutBranchId = -1;
if (!this.msg.TCID) this.msg.TCID = 0;
if (this.msg.QStartDate == "") this.msg.QStartDate = "2019";
this.apipost('financestatistics_post_GetPeopleMonthReportList', this.msg, res=>{
// console.log(res);
if (res.data.resultCode == 1) {
let BranchStatus=res.data.data.IsBranchButton;
if(BranchStatus==-1){
this.BranchStatus=false;
}else{
this.BranchStatus=true;
this.msg.OutBranchId=BranchStatus;
}
this.DataList = res.data.data.RObj;
this.columns = [
// 团队编号、团号 点击跳转团控列表
{
field: "BranchName",
title: "公司名称",
width: 120,
titleAlign: "left",
columnAlign: "left",
isResize: true,
result: [],
type: "select",
isFrozen: true
},
{
field: "Digest",
title: "摘要",
width: 120,
titleAlign: "left",
columnAlign: "left",
isResize: true,
isFrozen: true
},
{
field: "JAN",
title: "一月",
width: 80,
titleAlign: "left",
columnAlign: "right",
isResize: true
},
{
field: "FEB",
title: "二月",
width: 80,
titleAlign: "left",
columnAlign: "right",
isResize: true
},
{
field: "MAR",
title: "三月",
width: 80,
titleAlign: "left",
columnAlign: "right",
isResize: true
},
{
field: "FirstQuarter",
title: "第一季度平均",
width: 80,
titleAlign: "left",
columnAlign: "right",
isResize: true
},
{
field: "APR",
title: "四月",
width: 80,
titleAlign: "left",
columnAlign: "right",
isResize: true
},
{
field: "MAY",
title: "五月",
width: 80,
titleAlign: "left",
columnAlign: "right",
isResize: true
},
{
field: "JUN",
title: "六月",
width: 80,
titleAlign: "left",
columnAlign: "right",
isResize: true
},
{
field: "TwoQuarter",
title: "第二季度平均",
width: 80,
titleAlign: "left",
columnAlign: "right",
isResize: true
},
{
field: "FirstHalf",
title: "上半年平均",
width: 80,
titleAlign: "left",
columnAlign: "right",
isResize: true
},
{
field: "JUL",
title: "七月",
width: 80,
titleAlign: "left",
columnAlign: "right",
isResize: true
},
{
field: "AUG",
title: "八月",
width: 80,
titleAlign: "left",
columnAlign: "right",
isResize: true
},
{
field: "SEP",
title: "九月",
width: 80,
titleAlign: "left",
columnAlign: "right",
isResize: true
},
{
field: "ThreeQuarter",
title: "第三季度平均",
width: 80,
titleAlign: "left",
columnAlign: "right",
isResize: true
},
{
field: "OCT",
title: "十月",
width: 80,
titleAlign: "left",
columnAlign: "right",
isResize: true
},
{
field: "NOV",
title: "十一月",
width: 80,
titleAlign: "left",
columnAlign: "right",
isResize: true
},
{
field: "DEC",
title: "十二月",
width: 80,
titleAlign: "left",
columnAlign: "right",
isResize: true
},
{
field: "FourQuarter",
title: "第四季度平均",
width: 80,
titleAlign: "left",
columnAlign: "right",
isResize: true
},
{
field: "EndHalf",
title: "下半年平均",
width: 80,
titleAlign: "left",
columnAlign: "right",
isResize: true
},
{
field: "Total",
title: "全年平均",
width: 80,
titleAlign: "left",
columnAlign: "right",
isResize: true
}
]
this.loading = false;
this.$message.success(res.data.message)
} else {this.loading = false;
this.$message.error(res.data.message)
}
})
},
moneyFormat(rowData, rowIndex, pagingIndex, field) {
if (field === "JAN") return this.priceFormat(rowData.JAN);
if (field === "FEB") return this.priceFormat(rowData.FEB);
if (field === "MAR") return this.priceFormat(rowData.MAR);
if (field === "APR") return this.priceFormat(rowData.APR);
if (field === "MAY") return this.priceFormat(rowData.MAY);
if (field === "JUN") return this.priceFormat(rowData.JUN);
if (field === "TwoQuarter") return this.priceFormat(rowData.TwoQuarter);
if (field === "FirstHalf") return this.priceFormat(rowData.FirstHalf);
if (field === "JUL") return this.priceFormat(rowData.JUL);
if (field === "AUG") return this.priceFormat(rowData.AUG);
if (field === "SEP") return this.priceFormat(rowData.SEP);
if (field === "ThreeQuarter") return this.priceFormat(rowData.ThreeQuarter);
if (field === "OCT") return this.priceFormat(rowData.OCT);
if (field === "NOV") return this.priceFormat(rowData.NOV);
if (field === "DEC") return this.priceFormat(rowData.DEC);
if (field === "FourQuarter") return this.priceFormat(rowData.FourQuarter);
if (field === "EndHalf") return this.priceFormat(rowData.EndHalf);
if (field === "Total") return this.priceFormat(rowData.Total );
},
rowClick(rowIndex,rowData,column){
let field=column.field;
let StartTime=field+"StartTime";
let EndTime=field+`EndTime`;
let LineId=Number(rowData.LineId);
let OutBranchId=rowData.BranchId;
this.$router.push({
path: "TeamRevenueReport",
query: {
LineId:LineId,
StartTime:rowData[StartTime],
EndTime:rowData[EndTime],
OutBranchId:OutBranchId,
blank: 'y',
tab: '营收报表'
}
});
},
priceFormat(value) {
if (value == null) {
return 0.0;
}
let nStr = value.toFixed(2);
nStr += "";
let x = nStr.split(".");
let x1 = x[0];
let x2 = x.length > 1 ? "." + x[1] : "";
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, "$1" + "," + "$2");
}
return x1 + x2;
},
method5: function() {
this.loading = true;
this.msg.EmployeeId=this.userId;
this.GetLocalFile(
"financestatistics_post_OutToExcelPeopleMonthReportList",
this.msg,
"团队人数统计表.xls"
);
this.loading = false;
},
columnCellClass(rowIndex, columnName, rowData) {
if(rowData.JAN < 0 && columnName=="JAN"){
return "column-cell-class-name-test-red"
}
if(rowData.FEB < 0 && columnName=="FEB"){
return "column-cell-class-name-test-red"
}
if(rowData.MAR < 0 && columnName=="MAR"){
return "column-cell-class-name-test-red"
}
if(rowData.FirstQuarter < 0 && columnName=="FirstQuarter"){
return "column-cell-class-name-test-red"
}
if(rowData.APR < 0 && columnName=="APR"){
return "column-cell-class-name-test-red"
}
if(rowData.MAY < 0 && columnName=="MAY"){
return "column-cell-class-name-test-red"
}
if(rowData.JUN < 0 && columnName=="JUN"){
return "column-cell-class-name-test-red"
}
if(rowData.TwoQuarter < 0 && columnName=="TwoQuarter"){
return "column-cell-class-name-test-red"
}
if(rowData.FirstHalf < 0 && columnName=="FirstHalf"){
return "column-cell-class-name-test-red"
}
if(rowData.JUL < 0 && columnName=="JUL"){
return "column-cell-class-name-test-red"
}
if(rowData.AUG < 0 && columnName=="AUG"){
return "column-cell-class-name-test-red"
}
if(rowData.ThreeQuarter < 0 && columnName=="ThreeQuarter"){
return "column-cell-class-name-test-red"
}
if(rowData.OCT < 0 && columnName=="OCT"){
return "column-cell-class-name-test-red"
}
if(rowData.NOV < 0 && columnName=="NOV"){
return "column-cell-class-name-test-red"
}
if(rowData.OCT < 0 && columnName=="OCT"){
return "column-cell-class-name-test-red"
}
if(rowData.DEC < 0 && columnName=="DEC"){
return "column-cell-class-name-test-red"
}
if(rowData.FourQuarter < 0 && columnName=="FourQuarter"){
return "column-cell-class-name-test-red"
}
if(rowData.EndHalf < 0 && columnName=="EndHalf"){
return "column-cell-class-name-test-red"
}
if(rowData.Total < 0 && columnName=="Total"){
return "column-cell-class-name-test-red"
}
if (columnName === "FirstQuarter" || columnName === "TwoQuarter" || columnName === "ThreeQuarter" || columnName === "FourQuarter" || columnName === "FirstHalf" || columnName === "EndHalf") {
return "column-cell-class-name-test";
}
if (columnName === "Total"){
return "column-cell-class-name-test-pink";
}
if (rowData.Digest === "营业毛利"){
return "column-cell-class-name-test-greed";
}
},
// getStartList1() {
// // 获取出发城市
// this.apipost(
// "city_post_GetList",
// {
// isDefault: -1,
// priceType: -1
// },
// res => {
// if (res.data.resultCode == 1) {
// this.startCityList1 = res.data.data;
// } else {
// console.log(res.data);
// }
// }
// );
// },
// getLineTeamList(lineId) {
// //获取系列列表
// this.LineTeamList = [];
// this.apipost(
// "team_post_GetList",
// {
// lineID: lineId,
// isTOOP: 1
// },
// res => {
// if (res.data.resultCode == 1) {
// this.msg.LineTeamId = "-1";
// this.LineTeamList = res.data.data;
// }
// }
// );
// },
getLineList() {
// 获取线路
this.apipost("line_post_GetAllList", {}, res => {
if (res.data.resultCode == 1) {
this.LineList = res.data.data;
} else {
this.$message.error(res.data.message);
}
});
},
customCompFunc(param) {
console.log(param);
},
compare(property, type) {
// 升序 t 1升 2降
if (type === 1) {
return function(a, b) {
let value1 = a[property];
let value2 = b[property];
return value1 - value2;
};
} else {
return function(a, b) {
let value1 = a[property];
let value2 = b[property];
return value2 - value1;
};
}
},
sortChange(param) {
console.log(param);
if (param.YingShou === "asc") {
this.DataList.sort(this.compare("YingShou", 1));
} else if (param.YingShou === "desc") {
this.DataList.sort(this.compare("YingShou", 2));
} else {
}
//自己写实现
//{gender:"",name:"asc"}
},
// 数据筛选
filterMethod(filters) {
this.total = tableData.length;
},
getCompanyList() {
//获取公司列表
this.apipost(
"admin_get_BranchGetList",
this.getCompanyMsg,
res => {
if (res.data.resultCode == 1) {
this.CompanyList = res.data.data;
this.msg.OutBranchId=this.CompanyList[0].Id;
} else {
}
},
err => {}
);
},
timeAdd(type) {
// 日期格式
if (type === 1) {
if (!this.productionDate) {
this.msg.startDate = "";
this.msg.endDate = "";
return;
}
this.msg.startDate = this.productionDate[0];
this.msg.endDate = this.productionDate[1];
}
if (type === 2) {
if (!this.KaiqiZzTime) {
this.kaiqiZzMsg.QStartDate = "";
this.kaiqiZzMsg.QEndDate = "";
return;
}
this.kaiqiZzMsg.QStartDate = this.KaiqiZzTime[0];
this.kaiqiZzMsg.QEndDate = this.KaiqiZzTime[1];
}
},
}
};
</script>
...@@ -1421,7 +1421,7 @@ export default { ...@@ -1421,7 +1421,7 @@ export default {
this.msg.startDate=this.$route.query.StartTime!=undefined?this.$route.query.StartTime:''; this.msg.startDate=this.$route.query.StartTime!=undefined?this.$route.query.StartTime:'';
this.msg.endDate=this.$route.query.EndTime!=undefined?this.$route.query.EndTime:''; this.msg.endDate=this.$route.query.EndTime!=undefined?this.$route.query.EndTime:'';
this.msg.LineId=this.$route.query.LineId!=undefined?Number(this.$route.query.LineId):''; this.msg.LineId=this.$route.query.LineId!=undefined?Number(this.$route.query.LineId):'';
this.msg.OutBranchId=this.$route.query.BranchId?Number(this.$route.query.BranchId):this.msg.OutBranchId; this.msg.OutBranchId=this.$route.query.OutBranchId?Number(this.$route.query.OutBranchId):this.msg.OutBranchId;
if(this.msg.endDate!=""){ if(this.msg.endDate!=""){
this.productionDate[0]=this.msg.startDate; this.productionDate[0]=this.msg.startDate;
this.productionDate[1]=this.msg.endDate; this.productionDate[1]=this.msg.endDate;
...@@ -1741,7 +1741,6 @@ export default { ...@@ -1741,7 +1741,6 @@ export default {
} }
}; };
}); });
console.log(dataInfo);
// return // return
XLSX.writeFile(wb, xlsxName + ".xlsx"); XLSX.writeFile(wb, xlsxName + ".xlsx");
}, },
...@@ -2109,14 +2108,11 @@ export default { ...@@ -2109,14 +2108,11 @@ export default {
getPageList() { getPageList() {
// 获取列表数据 // 获取列表数据
this.loading = true; this.loading = true;
if (!this.msg.OutBranchId && this.msg.OutBranchId !== 0)
this.msg.OutBranchId = -1;
if (!this.msg.StartCityId) this.msg.StartCityId = 0; if (!this.msg.StartCityId) this.msg.StartCityId = 0;
if (!this.msg.LineId) this.msg.LineId = 0; if (!this.msg.LineId) this.msg.LineId = 0;
if (!this.msg.LineTeamId) this.msg.LineTeamId = 0; if (!this.msg.LineTeamId) this.msg.LineTeamId = 0;
if (!this.msg.TCID) this.msg.TCID = 0; if (!this.msg.TCID) this.msg.TCID = 0;
if (this.msg.startDate == "") this.msg.startDate = "2019-01-01"; if (this.msg.startDate == "") this.msg.startDate = "2019-01-01";
console.log("this.msg",this.msg);
this.apipost( this.apipost(
"financestatistics_post_GetPageList", "financestatistics_post_GetPageList",
this.msg, this.msg,
...@@ -2189,7 +2185,7 @@ export default { ...@@ -2189,7 +2185,7 @@ export default {
this.loading = false; this.loading = false;
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
if (this.msg.OutBranchId === -1) this.msg.OutBranchId = -1; // if (this.msg.OutBranchId === -1) this.msg.OutBranchId = -1;
if (!this.msg.StartCityId) this.msg.StartCityId = 0; if (!this.msg.StartCityId) this.msg.StartCityId = 0;
if (!this.msg.LineId) this.msg.LineId = 0; if (!this.msg.LineId) this.msg.LineId = 0;
if (!this.msg.LineTeamId) this.msg.LineTeamId = 0; if (!this.msg.LineTeamId) this.msg.LineTeamId = 0;
......
...@@ -1913,6 +1913,7 @@ ...@@ -1913,6 +1913,7 @@
<div class="combottomDiv" v-if="showChangeSales" style="height:200px;"> <div class="combottomDiv" v-if="showChangeSales" style="height:200px;">
<updateSalesMan @closeUpdiv="closeSalseDiv" @getList="getList" :subInfo="subInfo"></updateSalesMan> <updateSalesMan @closeUpdiv="closeSalseDiv" @getList="getList" :subInfo="subInfo"></updateSalesMan>
</div> </div>
<a id='groupTourOrder_DownLoad' target="_blank" style="display:none">1不要删除</a>
</div> </div>
</template> </template>
...@@ -2266,10 +2267,10 @@ import moment from "moment"; ...@@ -2266,10 +2267,10 @@ import moment from "moment";
let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0) let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0)
let saveMsg = {} let saveMsg = {}
saveMsg.Path = x.data.FilePath saveMsg.Path = x.data.FilePath;
saveMsg.FileName = file.file.name saveMsg.FileName = file.file.name;
saveMsg.Status = 1 saveMsg.Status = 1;
saveMsg.OrderId = this.checkedObj.orderId saveMsg.OrderId = this.checkedObj.orderId;
that.apipost('sellorder_post_SetConfirmationLetter', saveMsg, res => { that.apipost('sellorder_post_SetConfirmationLetter', saveMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$message.success(res.data.message) this.$message.success(res.data.message)
...@@ -2282,8 +2283,9 @@ import moment from "moment"; ...@@ -2282,8 +2283,9 @@ import moment from "moment";
}) })
}, },
downLoadFile (obj) { downLoadFile (obj) {
let reg = /^http(s)?:\/\/(.*?)\// let dom = document.querySelector("#groupTourOrder_DownLoad");
this.downloadFileRename(obj[0].fullUrl.replace(reg, ''), obj[0].name) dom.href = obj[0].fullUrl;
dom.click();
}, },
// 订单转团 // 订单转团
transfer: function (item) { transfer: function (item) {
...@@ -3535,7 +3537,6 @@ import moment from "moment"; ...@@ -3535,7 +3537,6 @@ import moment from "moment";
this.loading = false this.loading = false
this.total = res.data.data.count this.total = res.data.data.count
this.list = res.data.data.pageData; this.list = res.data.data.pageData;
console.log("this.list",this.list)
} else { } else {
this.$message.error(res.data.message) this.$message.error(res.data.message)
} }
......
...@@ -1710,7 +1710,7 @@ ...@@ -1710,7 +1710,7 @@
</div> </div>
</td> </td>
<td> <td>
<span v-if='item.confirmFileList.length>0' class="fz12 dowloadSpan" @click="downLoadFile(item.confirmFileList)"> <span v-if='item.confirmFileList.length>0' style="cursor:pointer" class="fz12 dowloadSpan" @click="downLoadFile(item.confirmFileList)">
确认函下载 确认函下载
</span> </span>
<i v-if='item.confirmFileList.length>0&&item.commissionSharePeople !== userId' @click="deleteFile(item)" style="margin-left: 5px;" class="el-icon-error color999"></i> <i v-if='item.confirmFileList.length>0&&item.commissionSharePeople !== userId' @click="deleteFile(item)" style="margin-left: 5px;" class="el-icon-error color999"></i>
...@@ -1992,7 +1992,7 @@ ...@@ -1992,7 +1992,7 @@
</div> </div>
</td> </td>
<td> <td>
<span v-if='item.confirmFileList.length>0' class="fz12 dowloadSpan" @click="downLoadFile(item.confirmFileList)"> <span v-if='item.confirmFileList.length>0' style="cursor:pointer" class="fz12 dowloadSpan" @click="downLoadFile(item.confirmFileList)">
确认函下载 确认函下载
</span> </span>
<i v-if='item.confirmFileList.length>0&&item.commissionSharePeople !== userId' @click="deleteFile(item)" style="margin-left: 5px;" class="el-icon-error color999"></i> <i v-if='item.confirmFileList.length>0&&item.commissionSharePeople !== userId' @click="deleteFile(item)" style="margin-left: 5px;" class="el-icon-error color999"></i>
...@@ -2224,6 +2224,7 @@ ...@@ -2224,6 +2224,7 @@
<button class="hollowFixedBtn" @click="OrderMoneyDialog=false">{{$t('pub.cancelBtn')}}</button> <button class="hollowFixedBtn" @click="OrderMoneyDialog=false">{{$t('pub.cancelBtn')}}</button>
</div> </div>
</el-dialog> </el-dialog>
<a id='groupTourOrderByTuan_DownLoad' target="_blank" style="display:none">1不要删除</a>
</div> </div>
</template> </template>
...@@ -2732,8 +2733,9 @@ export default { ...@@ -2732,8 +2733,9 @@ export default {
}); });
}, },
downLoadFile(obj) { downLoadFile(obj) {
let reg = /^http(s)?:\/\/(.*?)\// let dom = document.querySelector("#groupTourOrderByTuan_DownLoad");
this.downloadFileRename(obj[0].fullUrl.replace(reg,''),obj[0].name); dom.href = obj[0].fullUrl;
dom.click();
}, },
// 订单转团 // 订单转团
transfer: function (item) { transfer: function (item) {
......
...@@ -1897,8 +1897,8 @@ ...@@ -1897,8 +1897,8 @@
<td> <td>
<div @click="goOpenUrl('confirmationOrder',childItem.OrderId)" style="cursor:pointer;">电子确认函</div> <div @click="goOpenUrl('confirmationOrder',childItem.OrderId)" style="cursor:pointer;">电子确认函</div>
<span v-if='childItem.ConfirmFileList.length>0' <span v-if='childItem.ConfirmFileList.length>0'
@click="downLoadFile(childItem.ConfirmFileList)" style="color:blue;text-decoration:underline;font-size:12px;">已上传</span> @click="downLoadFile(childItem.ConfirmFileList)" style="color:blue;text-decoration:underline;font-size:12px;cursor:pointer;">确认函下载</span>
<span v-else style="color:gray;font-size:12px;">未上传</span>
</td> </td>
<td class="RL-BTNlist" rowspan="2"> <td class="RL-BTNlist" rowspan="2">
<el-button-group> <el-button-group>
...@@ -2207,7 +2207,7 @@ ...@@ -2207,7 +2207,7 @@
</td> </td>
<td> <td>
<div @click="goOpenUrl('confirmationOrder',item.orderId)" style="cursor:pointer;">电子确认函</div> <div @click="goOpenUrl('confirmationOrder',item.orderId)" style="cursor:pointer;">电子确认函</div>
<span v-if='item.ConfirmFileList.length>0' @click="downLoadFile(item.ConfirmFileList)">确认函下载</span> <span v-if='item.ConfirmFileList.length>0' @click="downLoadFile(item.ConfirmFileList)" style="color:blue;text-decoration:underline;font-size:12px;cursor:pointer;">确认函下载</span>
</td> </td>
<td class="RL-BTNlist" rowspan="2"> <td class="RL-BTNlist" rowspan="2">
<el-button-group> <el-button-group>
...@@ -2618,7 +2618,7 @@ ...@@ -2618,7 +2618,7 @@
</el-row> </el-row>
</el-form> </el-form>
</div> </div>
<a id='RegistrationList_DownLoad' target="_blank" style="display:none">1不要删除</a>
</div> </div>
</template> </template>
...@@ -3304,8 +3304,9 @@ ...@@ -3304,8 +3304,9 @@
}, null) }, null)
}, },
downLoadFile(obj) { downLoadFile(obj) {
let reg = /^http(s)?:\/\/(.*?)\// let dom = document.querySelector("#RegistrationList_DownLoad");
this.downloadFileRename(obj[0].FullUrl.replace(reg, ''), obj[0].Name) dom.href = obj[0].FullUrl;
dom.click();
}, },
goUrlTravelControl(name, path, id, tcmun) { goUrlTravelControl(name, path, id, tcmun) {
......
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
<!-- <div style="margin: 10px 0;" class="fz14 color333">{{$t('adm.adm_Validaccount')}}:<span class="colorE95252">{{UseNum}}</span>&nbsp;&nbsp;&nbsp;&nbsp;账号限额:<span class="colorE95252">{{TotalNum}}</span></div> --> <!-- <div style="margin: 10px 0;" class="fz14 color333">{{$t('adm.adm_Validaccount')}}:<span class="colorE95252">{{UseNum}}</span>&nbsp;&nbsp;&nbsp;&nbsp;账号限额:<span class="colorE95252">{{TotalNum}}</span></div> -->
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0"> <table class="singeRowTable" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<th>单号</th>
<th>出发地</th> <th>出发地</th>
<th>目的地</th> <th>目的地</th>
<th>人数</th> <th>人数</th>
...@@ -77,12 +78,13 @@ ...@@ -77,12 +78,13 @@
<th>订单状态</th> <th>订单状态</th>
<th>出发日期</th> <th>出发日期</th>
<th>返回日期</th> <th>返回日期</th>
<th>销售数量</th> <th>上传合同</th>
<th>方案数量</th> <th>方案数量</th>
<th>创建日期</th> <th>创建日期</th>
<th>操作</th> <th>操作</th>
</tr> </tr>
<tr v-for="(item,index) in DataList" :key="index" v-loading='loading'> <tr v-for="(item,index) in DataList" :key="index" v-loading='loading'>
<td>{{item.customId}}</td>
<td>{{item.departureName}}</td> <td>{{item.departureName}}</td>
<td>{{item.destinationNames}}</td> <td>{{item.destinationNames}}</td>
<td> <td>
...@@ -103,7 +105,11 @@ ...@@ -103,7 +105,11 @@
<td>{{item.startDate | YearMD}}</td> <td>{{item.startDate | YearMD}}</td>
<td>{{item.backDate | YearMD}}</td> <td>{{item.backDate | YearMD}}</td>
<td>{{item.salesCount}}</td> <td>
<el-tooltip class="item" effect="dark" content="上传合同" placement="top">
<el-button v-if="item.chooseSalesId&&item.chooseSalesId==EmployeeId" type="primary" icon="el-icon-upload2" circle></el-button>
</el-tooltip>
</td>
<td>{{item.planCount}}</td> <td>{{item.planCount}}</td>
<td>{{item.createDate | YearMD}}</td> <td>{{item.createDate | YearMD}}</td>
...@@ -186,12 +192,15 @@ import moment from "moment" ...@@ -186,12 +192,15 @@ import moment from "moment"
let startTime = new Date(this.form.searchStartDate) let startTime = new Date(this.form.searchStartDate)
return startTime.getTime() >= time.getTime() return startTime.getTime() >= time.getTime()
} }
} },
EmployeeId:-1,
} }
}, },
mounted() { mounted() {
let userInfo=this.getLocalStorage(); let userInfo=this.getLocalStorage();
this.EmployeeId=userInfo.EmployeeId;
console.log(this.EmployeeId)
this.getList(); this.getList();
}, },
filters:{ filters:{
...@@ -213,6 +222,7 @@ import moment from "moment" ...@@ -213,6 +222,7 @@ import moment from "moment"
name: path, name: path,
query: { query: {
customId: item.customId, customId: item.customId,
allotId: item.allotId,
blank: "y", blank: "y",
tab: "行程定制方案" tab: "行程定制方案"
} }
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<div class="TravelInfoList flexOne"> <div class="TravelInfoList flexOne">
<div class="query-box"> <div class="query-box">
<div style="overflow:auto"> <div style="overflow:auto">
<!-- <input type="button" class="normalBtn" value="查询" style="float:right" @click="getList"/> --> <input type="button" class="normalBtn" value="新增" style="float:right" @click="Gourl"/>
</div> </div>
...@@ -32,14 +32,19 @@ ...@@ -32,14 +32,19 @@
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0"> <table class="singeRowTable" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<th>团期ID</th> <th>团期ID</th>
<th>行程简介</th>
<th>团期标题</th>
<th>部门名称</th> <th>部门名称</th>
<th>销售姓名</th> <th>销售姓名</th>
<th>公司名称</th> <th>公司名称</th>
<th>采用状态</th> <th>采用状态</th>
<th>方案价格</th>
</tr> </tr>
<tr v-for="(item,index) in DataList" :key="index" v-loading='loading'> <tr v-for="(item,index) in DataList" :key="index" v-loading='loading'>
<td>{{item.tcid}}</td> <td>{{item.tcnum}}({{item.tcid}})</td>
<td>{{item.planIntroduce}}</td>
<td>{{item.travelTitle}}</td>
<td>{{item.departmentName}}</td> <td>{{item.departmentName}}</td>
<td>{{item.salseName}}</td> <td>{{item.salseName}}</td>
<td>{{item.companyName}}</td> <td>{{item.companyName}}</td>
...@@ -48,6 +53,7 @@ ...@@ -48,6 +53,7 @@
<span v-if="item.planUseStatus==2">采用</span> <span v-if="item.planUseStatus==2">采用</span>
<span v-if="item.planUseStatus==3">不合适</span> <span v-if="item.planUseStatus==3">不合适</span>
</td> </td>
<td>{{item.planPrice}}</td>
</tr> </tr>
</table> </table>
...@@ -69,11 +75,13 @@ import moment from "moment" ...@@ -69,11 +75,13 @@ import moment from "moment"
DataList:[], DataList:[],
loading:false, loading:false,
customId:0, customId:0,
allotId:0,
} }
}, },
mounted() { mounted() {
this.customId=this.$route.query.customId; this.customId=this.$route.query.customId;
this.allotId=this.$route.query.allotId;
let userInfo=this.getLocalStorage(); let userInfo=this.getLocalStorage();
this.getList(); this.getList();
}, },
...@@ -88,7 +96,17 @@ import moment from "moment" ...@@ -88,7 +96,17 @@ import moment from "moment"
}, },
methods: { methods: {
Gourl(){
this.$router.push({
name: "TravelManager5",
query: {
customId: this.customId,
allotId: this.allotId,
blank: "y",
tab: "自主开团"
}
});
},
getList() { //获取数据 getList() { //获取数据
this.loading=true, this.loading=true,
......
...@@ -74,6 +74,7 @@ ...@@ -74,6 +74,7 @@
<!-- <div style="margin: 10px 0;" class="fz14 color333">{{$t('adm.adm_Validaccount')}}:<span class="colorE95252">{{UseNum}}</span>&nbsp;&nbsp;&nbsp;&nbsp;账号限额:<span class="colorE95252">{{TotalNum}}</span></div> --> <!-- <div style="margin: 10px 0;" class="fz14 color333">{{$t('adm.adm_Validaccount')}}:<span class="colorE95252">{{UseNum}}</span>&nbsp;&nbsp;&nbsp;&nbsp;账号限额:<span class="colorE95252">{{TotalNum}}</span></div> -->
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0"> <table class="singeRowTable" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<th>单号</th>
<th>出发地</th> <th>出发地</th>
<th>目的地</th> <th>目的地</th>
<th>人数</th> <th>人数</th>
...@@ -88,6 +89,7 @@ ...@@ -88,6 +89,7 @@
<th>操作</th> <th>操作</th>
</tr> </tr>
<tr v-for="(item,index) in DataList" :key="index" v-loading='loading'> <tr v-for="(item,index) in DataList" :key="index" v-loading='loading'>
<td>{{item.customId}}</td>
<td>{{item.departureName}}</td> <td>{{item.departureName}}</td>
<td>{{item.destinationNames}}</td> <td>{{item.destinationNames}}</td>
<td> <td>
...@@ -124,9 +126,9 @@ ...@@ -124,9 +126,9 @@
<el-tooltip class="item" effect="dark" content="删除" placement="top"> <el-tooltip class="item" effect="dark" content="删除" placement="top">
<el-button @click="Delete(item)" type="danger" class='zidingyiFz' icon="el-icon-delete" circle ></el-button> <el-button @click="Delete(item)" type="danger" class='zidingyiFz' icon="el-icon-delete" circle ></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="取消" placement="top"> <!-- <el-tooltip class="item" effect="dark" content="取消" placement="top">
<el-button @click="Exit(item)" style="background:#62DC9E" class='zidingyiFz' icon="el-icon-document-remove" circle ></el-button> <el-button @click="Exit(item)" style="background:#62DC9E" class='zidingyiFz' icon="el-icon-document-remove" circle ></el-button>
</el-tooltip> </el-tooltip> -->
</td> </td>
</tr> </tr>
...@@ -308,24 +310,24 @@ import moment from "moment" ...@@ -308,24 +310,24 @@ import moment from "moment"
} }
}, null); }, null);
}, },
Exit(item){ // Exit(item){
this.$confirm('是否取消该条行程定制信息?', '提示', { // this.$confirm('是否取消该条行程定制信息?', '提示', {
confirmButtonText: '确定', // confirmButtonText: '确定',
cancelButtonText: '取消', // cancelButtonText: '取消',
type: 'warning' // type: 'warning'
}).then(() => { // }).then(() => {
this.apiJavaPost("/api/b2b/free/cancelTravelCoupom",{customId:item.customId}, res => { // this.apiJavaPost("/api/b2b/free/cancelTravelCoupom",{customId:item.customId}, res => {
if (res.data.resultCode === 1) { // if (res.data.resultCode === 1) {
this.Success(res.data.message) // this.Success(res.data.message)
this.getList(); // this.getList();
} else { // } else {
this.Error(res.data.message) // this.Error(res.data.message)
} // }
}, null); // }, null);
}).catch(() => { // }).catch(() => {
}); // });
}, // },
Delete(item){ Delete(item){
this.$confirm('是否删除该条行程定制信息?', '提示', { this.$confirm('是否删除该条行程定制信息?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
......
<style> <style>
.busUsePrice .busList { .busUsePrice .busList {
width: 230px; width: 230px;
height: 240px; height: 270px;
float: left; float: left;
margin: 0 10px 10px 0; margin: 0 10px 10px 0;
background-color: #fff; background-color: #fff;
...@@ -188,6 +188,9 @@ ...@@ -188,6 +188,9 @@
<td>全天茶代:{{item.AllDayChaDaiFee}}</td> <td>全天茶代:{{item.AllDayChaDaiFee}}</td>
<td>接送茶代:{{item.PickUpChaDaiFee}}</td> <td>接送茶代:{{item.PickUpChaDaiFee}}</td>
</tr> </tr>
<tr>
<td colspan="2"><div style="height:40px; overflow-y:scroll">{{item.Remark}}</div></td>
</tr>
</table> </table>
<div class="busUserBtnList"> <div class="busUserBtnList">
<input type="button" class="normalBtn" @click="managePrice(item.Id)" value="管理报价"> <input type="button" class="normalBtn" @click="managePrice(item.Id)" value="管理报价">
......
...@@ -33,22 +33,29 @@ ...@@ -33,22 +33,29 @@
<TravelConfig @headCallBack="getConfig" @setTravelUploadData="setTravelUploadData" :PostConfig="PostConfig" <TravelConfig @headCallBack="getConfig" @setTravelUploadData="setTravelUploadData" :PostConfig="PostConfig"
:TCNUM="TCNUM" id="firstAnchor" :LineList="LineList"></TravelConfig> :TCNUM="TCNUM" id="firstAnchor" :LineList="LineList"></TravelConfig>
<TravelDaysTripDirect id="secondAnchor" @headCallBack="getDaysTrip" :NoticeParameters="NoticeParameters" <TravelDaysTripDirect id="secondAnchor" @headCallBack="getDaysTrip" :NoticeParameters="NoticeParameters"
:subConfig="journeyList" :isOpenGroup="false" :IsDirect="PostConfig.IsDirect" v-bind:AllCityList="AllCityList" :subConfig="journeyList" :isOpenGroup="false" :IsDirect="PostConfig.IsDirect"
v-bind:StartCity="StartCity" :UseTypeArray="UseTypeArray" :AirPickUp="AirPickUp" :AirSend="AirSend" @change="handlerChangeData" :TeamType="TeamType"></TravelDaysTripDirect> v-bind:AllCityList="AllCityList"
<TravelFeature ref="TravelFeature" id="thirdAnchor" @featureCallBack="getFeature" :FeatureData="FeatureData" :TeamType="TeamType" v-bind:StartCity="StartCity" :UseTypeArray="UseTypeArray" :AirPickUp="AirPickUp"
:AirSend="AirSend" @change="handlerChangeData"
:TeamType="TeamType"></TravelDaysTripDirect>
<TravelFeature ref="TravelFeature" id="thirdAnchor" @featureCallBack="getFeature" :FeatureData="FeatureData"
:TeamType="TeamType"
:isNewConfig="isNewConfig" @unlockFormCommit="unlockFormCommit"></TravelFeature> :isNewConfig="isNewConfig" @unlockFormCommit="unlockFormCommit"></TravelFeature>
<TravelNotice ref="TravelNotice" id="fourAnchor" @headCallBack="getNotice" :subArray="NoticeParameters" <TravelNotice ref="TravelNotice" id="fourAnchor" @headCallBack="getNotice" :subArray="NoticeParameters"
:NoticeData="NoticeData" v-bind:PostConfig="PostConfig" v-bind:AllCityList="AllCityList" v-bind:CountryID="PostConfig.CountryID"></TravelNotice> :NoticeData="NoticeData" v-bind:PostConfig="PostConfig" v-bind:AllCityList="AllCityList"
v-bind:CountryID="PostConfig.CountryID"></TravelNotice>
<TravelPrice2 ref="TravelPrice" id="fiveAnchor" @headCallBack="getPrice" :PostDaysTrip="PostDaysTrip" <TravelPrice2 ref="TravelPrice" id="fiveAnchor" @headCallBack="getPrice" :PostDaysTrip="PostDaysTrip"
:priceList="PriceList" :PostConfig="PostConfig" :modifyTcid="modifyTcid" :TeamType="TeamType"></TravelPrice2> :priceList="PriceList" :PostConfig="PostConfig" :modifyTcid="modifyTcid"
:TeamType="TeamType"></TravelPrice2>
<div class="btnFixedDiv"> <div class="btnFixedDiv">
<div class="toTop" @click="backTop"> <div class="toTop" @click="backTop">
<i class="iconfont icon-huidaodingbu"></i> <i class="iconfont icon-huidaodingbu"></i>
</div> </div>
<div v-if="modifyType!=2" class="DTSaveBtn" :class="{'disClick':!isSubmit}" @click="submitForm(1)">保存</div> <div v-if="modifyType!=2" class="DTSaveBtn" :class="{'disClick':!isSubmit}" @click="submitForm(1)">保存</div>
<div v-if="modifyType!=2" class="DTSaveBtn" :class="{'disClick':!isSubmit}" @click="submitForm(2)">提交</div> <div v-if="modifyType!=2" class="DTSaveBtn" :class="{'disClick':!isSubmit}" @click="submitForm(2)">提交</div>
<div v-if="modifyType==2" class="DTSaveBtn" :class="{'disClick':!isSubmit}" @click="submitForm(3)" title="另存为新模板">保存 <div v-if="modifyType==2" class="DTSaveBtn" :class="{'disClick':!isSubmit}" @click="submitForm(3)"
title="另存为新模板">保存
</div> </div>
<div v-if="ConfigId>0" class="DTSaveBtn" :class="{'disClick':!isSubmit}" @click="goB2B()">预览</div> <div v-if="ConfigId>0" class="DTSaveBtn" :class="{'disClick':!isSubmit}" @click="goB2B()">预览</div>
</div> </div>
...@@ -58,37 +65,37 @@ ...@@ -58,37 +65,37 @@
</template> </template>
<script> <script>
import TravelConfig from "../TravelGroupControl/TravelConfig.vue"; import TravelConfig from '../TravelGroupControl/TravelConfig.vue'
import TravelDaysTripDirect from "../oldTravelGroupControl/TravelDaysTrip_Direct"; import TravelDaysTripDirect from '../oldTravelGroupControl/TravelDaysTrip_Direct'
import TravelFeature from "../TravelGroupControl/TravelFeature"; import TravelFeature from '../TravelGroupControl/TravelFeature'
import TravelNotice from "../TravelGroupControl/TravelNotice"; import TravelNotice from '../TravelGroupControl/TravelNotice'
import TravelPrice2 from "../TravelGroupControl/TravelPrice2"; import TravelPrice2 from '../TravelGroupControl/TravelPrice2'
export default { export default {
provide() { provide () {
return { return {
loadConfigInfo: this.firstLoadConfigInfo loadConfigInfo: this.firstLoadConfigInfo
} }
}, },
data() { data () {
return { return {
ConfigId: 0, //地址栏查询参数 ConfigId: 0, //地址栏查询参数
NewConfigId: "", //configID加密后的字符串【预览使用】 NewConfigId: '', //configID加密后的字符串【预览使用】
TCNUM: '', //团控列表传过来的tcnum TCNUM: '', //团控列表传过来的tcnum
NoticeParameters: { NoticeParameters: {
ConfigId: 0, //配置编号 ConfigId: 0, //配置编号
CountryID: "", //国家 CountryID: '', //国家
IsDirect: 0, //是否直采 IsDirect: 0, //是否直采
LineId: 0 //线路编号 LineId: 0 //线路编号
}, },
NoticeData: { NoticeData: {
FeeInclude: "", FeeInclude: '',
FeeNonInclude: "", FeeNonInclude: '',
ImportantTip: "", ImportantTip: '',
WarmTip: "", WarmTip: '',
B2BRemark: "", B2BRemark: '',
ShopRemark: "", ShopRemark: '',
VisaRemark: "" VisaRemark: ''
}, },
ShopList: [], ShopList: [],
SelfpayingList: [], SelfpayingList: [],
...@@ -100,49 +107,51 @@ ...@@ -100,49 +107,51 @@
StartCityId: 0, StartCityId: 0,
LineId: 0, LineId: 0,
LineteamId: 0, LineteamId: 0,
Title: "", Title: '',
//本团卖点 //本团卖点
ProductRecommend: "", ProductRecommend: '',
//选择的系列的国家编号 //选择的系列的国家编号
CountryID: 0, CountryID: 0,
RemoveChild: [], //移除的子项 RemoveChild: [], //移除的子项
RemoveImg: [], //移除的图片 RemoveImg: [], //移除的图片
IsDirect: 0, //是否直采(0-否-1-是) IsDirect: 0, //是否直采(0-否-1-是)
PriceIsDirect: 0, //是否直采报价(1-否-2-是) PriceIsDirect: 0, //是否直采报价(1-否-2-是)
PDFAlias: "", //pdf别名, PDFAlias: '', //pdf别名,
FlightList: [], //航班信息 FlightList: [], //航班信息
ShopList: [], //购物店信息 ShopList: [], //购物店信息
SelfpayingList: [], //自费信息 SelfpayingList: [], //自费信息
Feature: "", //行程特色 Feature: '', //行程特色
fileList: [], fileList: [],
VideoStr: "", //视频地址 VideoStr: '', //视频地址
//是否更新酒店库存 //是否更新酒店库存
IsUpdateHotel:0, IsUpdateHotel: 0,
OpenTeamDescribe:"",//开团备注 OpenTeamDescribe: '',//开团备注
customId: 0,
allotId: 0,
}, },
//行程 //行程
FeatureData: { FeatureData: {
ID: 0, ID: 0,
ConfigId: 0, ConfigId: 0,
FeatureType: 3, FeatureType: 3,
FeatureImg: "", FeatureImg: '',
FeatureContent: "", //自定义内容 FeatureContent: '', //自定义内容
FeatureHtml: "", //行程特色(html) FeatureHtml: '', //行程特色(html)
FeatureHtmlImage: "", //行程特色(image) FeatureHtmlImage: '', //行程特色(image)
FeatureHtmlJson: "", //行程特色(Json数据) FeatureHtmlJson: '', //行程特色(Json数据)
FeatureHtmlJsonDelete: "", //行程特色删除数据 FeatureHtmlJsonDelete: '', //行程特色删除数据
fileList: [], fileList: [],
Title: "", Title: '',
Subtitle: "", Subtitle: '',
LineName: "", LineName: '',
DayList: [], DayList: [],
TemplateId: 1, TemplateId: 1,
IsSave: false //是否保存 IsSave: false //是否保存
}, },
//线路行程 //线路行程
journeyList: { journeyList: {
DayNum: "", //天数 DayNum: '', //天数
NightNum: "", //晚上 NightNum: '', //晚上
StartCityId: 0, StartCityId: 0,
ReturnArriveCityId: 0, //返回抵达城市 ReturnArriveCityId: 0, //返回抵达城市
//交通 //交通
...@@ -163,13 +172,13 @@ ...@@ -163,13 +172,13 @@
DayList: [], DayList: [],
isFileUpload: false //是否是一键上传行程 isFileUpload: false //是否是一键上传行程
}, },
PostPrice: "", //报价信息 PostPrice: '', //报价信息
//线路 //线路
LineList: [], LineList: [],
PostFeature: "", //行程特色信息 PostFeature: '', //行程特色信息
PostNotice: "", //行程特色其他内容 PostNotice: '', //行程特色其他内容
//配置信息 //配置信息
PostDaysTrip: "", //每天的行程 PostDaysTrip: '', //每天的行程
PriceList: [], PriceList: [],
//所有的城市数据 //所有的城市数据
AllCityList: [], AllCityList: [],
...@@ -180,17 +189,17 @@ ...@@ -180,17 +189,17 @@
isgetPrice: true, isgetPrice: true,
realSave: 1, //1:制作报价单,2保存草稿 realSave: 1, //1:制作报价单,2保存草稿
outerVisible: false, outerVisible: false,
tripTitle: "", tripTitle: '',
isSubmit: true, isSubmit: true,
//选中的导航 //选中的导航
ckedNav: 1, ckedNav: 1,
modifyType: 1, //1:系列团修改,2:单团修改 modifyType: 1, //1:系列团修改,2:单团修改
modifyTcid: 0, //修改单团期id modifyTcid: 0, //修改单团期id
TeamType:'', TeamType: '',
loading: false, loading: false,
isNewConfig: true, isNewConfig: true,
isfromManager:true, isfromManager: true,
}; }
}, },
components: { components: {
TravelConfig: TravelConfig, TravelConfig: TravelConfig,
...@@ -201,10 +210,10 @@ ...@@ -201,10 +210,10 @@
}, },
methods: { methods: {
/*获取行程特色内容对象*/ /*获取行程特色内容对象*/
getFeature(featureObj) { getFeature (featureObj) {
this.PostFeature = featureObj; this.PostFeature = featureObj
}, },
handlerChangeData(data) { handlerChangeData (data) {
if ( if (
this.FeatureData.FeatureHtmlJson && this.FeatureData.FeatureHtmlJson &&
this.FeatureData.FeatureHtmlJson.d && this.FeatureData.FeatureHtmlJson.d &&
...@@ -212,134 +221,137 @@ ...@@ -212,134 +221,137 @@
) { ) {
//to do something //to do something
} else { } else {
this.$refs.TravelFeature.setNewDate(data); this.$refs.TravelFeature.setNewDate(data)
} }
}, },
/*获取组件配置信息【回调方法】*/ /*获取组件配置信息【回调方法】*/
getConfig(configObj) { getConfig (configObj) {
this.PostConfig = configObj; this.PostConfig = configObj
this.NoticeParameters.ConfigId = this.PostConfig.ConfigId; this.NoticeParameters.ConfigId = this.PostConfig.ConfigId
this.NoticeParameters.CountryID = this.PostConfig.CountryID; this.NoticeParameters.CountryID = this.PostConfig.CountryID
this.NoticeParameters.IsDirect = this.PostConfig.IsDirect; this.NoticeParameters.IsDirect = this.PostConfig.IsDirect
this.NoticeParameters.LineId = this.PostConfig.LineId; this.NoticeParameters.LineId = this.PostConfig.LineId
if (this.ConfigId == 0) { if (this.ConfigId == 0) {
this.FeatureData.LineName = this.PostConfig.LineName; this.FeatureData.LineName = this.PostConfig.LineName
this.FeatureData.Subtitle = this.PostConfig.LineTeamName; this.FeatureData.Subtitle = this.PostConfig.LineTeamName
this.FeatureData.Title = this.PostConfig.Title; this.FeatureData.Title = this.PostConfig.Title
} }
}, },
/*获取组件报价信息*/ /*获取组件报价信息*/
getPrice(priceObj) { getPrice (priceObj) {
priceObj.forEach(objItem => { priceObj.forEach(objItem => {
var SaleBranchId = ""; var SaleBranchId = ''
if (objItem.SaleBranchIdArray.length > 0) { if (objItem.SaleBranchIdArray.length > 0) {
objItem.SaleBranchIdArray.forEach(subItem => { objItem.SaleBranchIdArray.forEach(subItem => {
SaleBranchId += subItem + ","; SaleBranchId += subItem + ','
}); })
} }
if (SaleBranchId != "") { if (SaleBranchId != '') {
var str = SaleBranchId.substr(0, SaleBranchId.length - 1); var str = SaleBranchId.substr(0, SaleBranchId.length - 1)
objItem.SaleBranchId = str; objItem.SaleBranchId = str
} }
}); })
this.PostPrice = priceObj; this.PostPrice = priceObj
}, },
//行程回调 //行程回调
getDaysTrip(tripObj) { getDaysTrip (tripObj) {
this.PostDaysTrip = tripObj; this.PostDaysTrip = tripObj
console.log("this.PostDaysTrip",this.PostDaysTrip);
}, },
/*获取行程特色内容对象*/ /*获取行程特色内容对象*/
getFeature(featureObj) { getFeature (featureObj) {
this.PostFeature = featureObj; this.PostFeature = featureObj
}, },
/*获取行程特色其他内容*/ /*获取行程特色其他内容*/
getNotice(noticeObj) { getNotice (noticeObj) {
this.PostNotice = noticeObj; this.PostNotice = noticeObj
}, },
//解锁表单重复提交 //解锁表单重复提交
unlockFormCommit(value) { unlockFormCommit (value) {
this.isSubmit = value; this.isSubmit = value
}, },
//初始化幻灯片 //初始化幻灯片
initFileList() { initFileList () {
for (var i = 0; i < 5; i++) { for (var i = 0; i < 5; i++) {
var fileObj = this.$commonUtils.FileObject(); var fileObj = this.$commonUtils.FileObject()
if (this.PostConfig.fileList.length <= 5) { if (this.PostConfig.fileList.length <= 5) {
this.PostConfig.fileList.push(fileObj); this.PostConfig.fileList.push(fileObj)
} }
this.FeatureData.fileList.push(fileObj); this.FeatureData.fileList.push(fileObj)
} }
}, },
//提交验证 //提交验证
submitForm(SaveType) { submitForm (SaveType) {
if (this.isSubmit) { if (this.isSubmit) {
this.isSubmit = false; this.isSubmit = false
this.SaveData(SaveType); this.SaveData(SaveType)
} }
}, },
/*保存数据*/ /*保存数据*/
SaveData(SaveType) { SaveData (SaveType) {
this.MsgBus.$emit('saveTravel', true); this.MsgBus.$emit('saveTravel', true)
this.FeatureData.IsSave = true; this.FeatureData.IsSave = true
this.submitText = "保存中"; this.submitText = '保存中'
//团队配置 //团队配置
var basicData = {}; var basicData = {}
basicData.PriceList = this.PostPrice; basicData.PriceList = this.PostPrice
//配置编号 //配置编号
basicData.ID = this.ConfigId; basicData.ID = this.ConfigId
basicData.LineId = this.PostConfig.LineId; if (basicData.ID != null && basicData.ID == 0) {
basicData.LineteamId = this.PostConfig.LineteamId; basicData.customId = this.PostConfig.customId
basicData.Title = this.PostConfig.Title; basicData.allotId = this.PostConfig.allotId
basicData.OpRemark = this.PostConfig.OpRemark; }
basicData.ProductRecommend = this.PostConfig.ProductRecommend; basicData.LineId = this.PostConfig.LineId
basicData.VideoStr = this.PostConfig.VideoStr; basicData.LineteamId = this.PostConfig.LineteamId
basicData.PDFAlias = this.PostConfig.PDFAlias; basicData.Title = this.PostConfig.Title
basicData.ImgCover = this.PostConfig.ImgCover; basicData.OpRemark = this.PostConfig.OpRemark
basicData.PriceIsDirect = this.PostConfig.PriceIsDirect; basicData.ProductRecommend = this.PostConfig.ProductRecommend
basicData.IsDirect = this.PostConfig.IsDirect; basicData.VideoStr = this.PostConfig.VideoStr
basicData.OpenTeamDescribe=this.PostConfig.OpenTeamDescribe; basicData.PDFAlias = this.PostConfig.PDFAlias
basicData.RemoveChild = this.PostConfig.RemoveChild; basicData.ImgCover = this.PostConfig.ImgCover
basicData.PriceIsDirect = this.PostConfig.PriceIsDirect
basicData.IsDirect = this.PostConfig.IsDirect
basicData.OpenTeamDescribe = this.PostConfig.OpenTeamDescribe
basicData.RemoveChild = this.PostConfig.RemoveChild
basicData.TeamType = this.PostConfig.TeamType; basicData.TeamType = this.PostConfig.TeamType
basicData.DayNum = (this.PostDaysTrip && this.PostDaysTrip.DayNum != "") ? this.PostDaysTrip.DayNum : 0; basicData.DayNum = (this.PostDaysTrip && this.PostDaysTrip.DayNum != '') ? this.PostDaysTrip.DayNum : 0
basicData.NightNum = (this.PostDaysTrip && this.PostDaysTrip.NightNum != "") ? this.PostDaysTrip.NightNum : 0; basicData.NightNum = (this.PostDaysTrip && this.PostDaysTrip.NightNum != '') ? this.PostDaysTrip.NightNum : 0
basicData.StartCityId = (this.PostDaysTrip && this.PostDaysTrip.StartCityId != "") ? this.PostDaysTrip.StartCityId : basicData.StartCityId = (this.PostDaysTrip && this.PostDaysTrip.StartCityId != '') ? this.PostDaysTrip.StartCityId :
0; 0
basicData.ReturnArriveCityId = (this.PostDaysTrip && this.PostDaysTrip.ReturnArriveCityId != "") ? this.PostDaysTrip basicData.ReturnArriveCityId = (this.PostDaysTrip && this.PostDaysTrip.ReturnArriveCityId != '') ? this.PostDaysTrip
.ReturnArriveCityId : 0; .ReturnArriveCityId : 0
basicData.SelfpayingList = this.PostConfig.SelfpayingList; basicData.SelfpayingList = this.PostConfig.SelfpayingList
basicData.ShopList = this.PostConfig.ShopList; basicData.ShopList = this.PostConfig.ShopList
basicData.DinnerList = this.PostDaysTrip.DinnerList; basicData.DinnerList = this.PostDaysTrip.DinnerList
basicData.FreedomList = this.PostDaysTrip.FreedomList; basicData.FreedomList = this.PostDaysTrip.FreedomList
basicData.HotelList = this.PostDaysTrip.HotelList; basicData.HotelList = this.PostDaysTrip.HotelList
basicData.ScenicList = this.PostDaysTrip.ScenicList; basicData.ScenicList = this.PostDaysTrip.ScenicList
basicData.TrafficList = this.PostDaysTrip.TrafficList; basicData.TrafficList = this.PostDaysTrip.TrafficList
basicData.WarmTipList = this.PostDaysTrip.WarmTipList; basicData.WarmTipList = this.PostDaysTrip.WarmTipList
basicData.TitleList = this.PostDaysTrip.TitleList; basicData.TitleList = this.PostDaysTrip.TitleList
basicData.RemoveImg = this.PostDaysTrip.RemoveImg; basicData.RemoveImg = this.PostDaysTrip.RemoveImg
//行程特色数据 //行程特色数据
var TripFeature = {}; var TripFeature = {}
if (this.PostFeature == "") { if (this.PostFeature == '') {
TripFeature = this.FeatureData; TripFeature = this.FeatureData
} else { } else {
TripFeature = this.PostFeature; TripFeature = this.PostFeature
} }
TripFeature.FeatureHtmlJson = TripFeature.FeatureHtmlJson ? TripFeature.FeatureHtmlJson = TripFeature.FeatureHtmlJson ?
JSON.stringify(TripFeature.FeatureHtmlJson) : JSON.stringify(TripFeature.FeatureHtmlJson) :
""; ''
TripFeature.FeatureHtmlJsonDelete = TripFeature.FeatureHtmlJsonDelete ? JSON.stringify(TripFeature.FeatureHtmlJsonDelete) : TripFeature.FeatureHtmlJsonDelete = TripFeature.FeatureHtmlJsonDelete ? JSON.stringify(TripFeature.FeatureHtmlJsonDelete) :
""; ''
TripFeature.FeeInclude = this.PostNotice.FeeInclude; TripFeature.FeeInclude = this.PostNotice.FeeInclude
TripFeature.FeeNonInclude = this.PostNotice.FeeNonInclude; TripFeature.FeeNonInclude = this.PostNotice.FeeNonInclude
TripFeature.ImportantTip = this.PostNotice.ImportantTip; TripFeature.ImportantTip = this.PostNotice.ImportantTip
TripFeature.WarmTip = this.PostNotice.WarmTip; TripFeature.WarmTip = this.PostNotice.WarmTip
TripFeature.B2BRemark = this.PostNotice.B2BRemark; TripFeature.B2BRemark = this.PostNotice.B2BRemark
TripFeature.ShopRemark = this.PostNotice.ShopRemark; TripFeature.ShopRemark = this.PostNotice.ShopRemark
TripFeature.VisaRemark = this.PostNotice.VisaRemark; TripFeature.VisaRemark = this.PostNotice.VisaRemark
if ( if (
basicData.TrafficList != null && basicData.TrafficList != null &&
...@@ -347,408 +359,418 @@ ...@@ -347,408 +359,418 @@
basicData.TrafficList[0].SubTraffic != null && basicData.TrafficList[0].SubTraffic != null &&
basicData.TrafficList[0].SubTraffic.length > 0 basicData.TrafficList[0].SubTraffic.length > 0
) { ) {
basicData["ArriveCityId"] = basicData['ArriveCityId'] =
basicData.TrafficList[0].SubTraffic[0].ArrivalCityId; basicData.TrafficList[0].SubTraffic[0].ArrivalCityId
} }
if (basicData.OpenState == 1) { if (basicData.OpenState == 1) {
basicData["AfterOpenModify"] = true; basicData['AfterOpenModify'] = true
} }
//"另存"新增团期 //"另存"新增团期
if (SaveType == 3) { if (SaveType == 3) {
basicData.TravelInfoIsCopy = true; basicData.TravelInfoIsCopy = true
} }
basicData.TeamType=this.TeamType; basicData.TeamType = this.TeamType
basicData.IsUpdateHotel=this.PostConfig.IsUpdateHotel; basicData.IsUpdateHotel = this.PostConfig.IsUpdateHotel
this.apipost( this.apipost(
"travel_post_SetTravelConfigInfo", 'travel_post_SetTravelConfigInfo',
basicData, basicData,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
//配置编号 //配置编号
TripFeature.ConfigId = res.data.data; TripFeature.ConfigId = res.data.data
TripFeature.isfromManager = true; TripFeature.isfromManager = true
this.$refs.TravelFeature.getHtml(TripFeature, SaveType,this.TeamType); this.$refs.TravelFeature.getHtml(TripFeature, SaveType, this.TeamType)
// this.$refs.TravelPrice.closeHotelDialog(); // this.$refs.TravelPrice.closeHotelDialog();
// this.$refs.TravelPrice.initStatus(); // this.$refs.TravelPrice.initStatus();
} else if (res.data.resultCode == 10009) { } else if (res.data.resultCode == 10009) {
this.FeatureData.IsSave = false; this.FeatureData.IsSave = false
//表单重复提交 //表单重复提交
this.isSubmit = true; this.isSubmit = true
} else { } else {
this.FeatureData.IsSave = false; this.FeatureData.IsSave = false
this.Error(res.data.message); this.Error(res.data.message)
this.isSubmit = true; this.isSubmit = true
this.submitText = "提交"; this.submitText = '提交'
this.$refs.TravelFeature.del_show = true; this.$refs.TravelFeature.del_show = true
} }
}, },
err => {} err => {
); }
)
}, },
//初始化团的幻灯片 //初始化团的幻灯片
initFileList() { initFileList () {
this.PostConfig.fileList=[]; this.PostConfig.fileList = []
for (var i = 0; i < 5; i++) { for (var i = 0; i < 5; i++) {
var fileObj = this.$commonUtils.FileObject(); var fileObj = this.$commonUtils.FileObject()
this.PostConfig.fileList.push(fileObj); this.PostConfig.fileList.push(fileObj)
} }
}, },
//初始化行程特色幻灯片 //初始化行程特色幻灯片
initFeatureFile() { initFeatureFile () {
for (var i = 0; i < 5; i++) { for (var i = 0; i < 5; i++) {
var fileObj = this.$commonUtils.FileObject(); var fileObj = this.$commonUtils.FileObject()
this.FeatureData.fileList.push(fileObj); this.FeatureData.fileList.push(fileObj)
} }
}, },
custormAnchor(anchorName, index) { custormAnchor (anchorName, index) {
// 找到锚点 // 找到锚点
let anchorElement = document.getElementById(anchorName); let anchorElement = document.getElementById(anchorName)
// 如果对应id的锚点存在,就跳转到锚点 // 如果对应id的锚点存在,就跳转到锚点
if (anchorElement) { if (anchorElement) {
anchorElement.scrollIntoView(); anchorElement.scrollIntoView()
} }
this.ckedNav = index; this.ckedNav = index
}, //滚动事件 }, //滚动事件
ScrollMethod() { ScrollMethod () {
var that = this; var that = this
var s1, s2, s3, s4, s5; var s1, s2, s3, s4, s5
document document
.getElementsByClassName("frame-box")[0] .getElementsByClassName('frame-box')[0]
.addEventListener("scroll", function () { .addEventListener('scroll', function () {
if (document.getElementById("firstAnchor") != null) { if (document.getElementById('firstAnchor') != null) {
s1 = document.getElementById("firstAnchor").offsetTop; s1 = document.getElementById('firstAnchor').offsetTop
} }
if (document.getElementById("secondAnchor") != null) { if (document.getElementById('secondAnchor') != null) {
s2 = document.getElementById("secondAnchor").offsetTop; s2 = document.getElementById('secondAnchor').offsetTop
} }
if (document.getElementById("thirdAnchor") != null) { if (document.getElementById('thirdAnchor') != null) {
s3 = document.getElementById("thirdAnchor").offsetTop; s3 = document.getElementById('thirdAnchor').offsetTop
} }
if (document.getElementById("fourAnchor") != null) { if (document.getElementById('fourAnchor') != null) {
s4 = document.getElementById("fourAnchor").offsetTop; s4 = document.getElementById('fourAnchor').offsetTop
} }
if (document.getElementById("fiveAnchor") != null) { if (document.getElementById('fiveAnchor') != null) {
s5 = document.getElementById("fiveAnchor").offsetTop; s5 = document.getElementById('fiveAnchor').offsetTop
} }
if (s1 >= this.scrollTop - 50 && s1 <= this.scrollTop + 50) { if (s1 >= this.scrollTop - 50 && s1 <= this.scrollTop + 50) {
that.ckedNav = 1; that.ckedNav = 1
} else if (s2 >= this.scrollTop - 50 && s2 <= this.scrollTop + 50) { } else if (s2 >= this.scrollTop - 50 && s2 <= this.scrollTop + 50) {
that.ckedNav = 2; that.ckedNav = 2
} else if (s3 >= this.scrollTop - 50 && s3 <= this.scrollTop + 50) { } else if (s3 >= this.scrollTop - 50 && s3 <= this.scrollTop + 50) {
that.ckedNav = 3; that.ckedNav = 3
} else if (s4 >= this.scrollTop - 50 && s4 <= this.scrollTop + 50) { } else if (s4 >= this.scrollTop - 50 && s4 <= this.scrollTop + 50) {
that.ckedNav = 4; that.ckedNav = 4
} else if (s5 >= this.scrollTop - 50 && s5 <= this.scrollTop + 50) { } else if (s5 >= this.scrollTop - 50 && s5 <= this.scrollTop + 50) {
that.ckedNav = 5; that.ckedNav = 5
} }
}); })
}, },
//返回顶部 //返回顶部
backTop() { backTop () {
var timer = setInterval(function () { var timer = setInterval(function () {
var scrollTop = document.getElementsByClassName("frame-box")[0] var scrollTop = document.getElementsByClassName('frame-box')[0]
.scrollTop; .scrollTop
var ispeed = Math.floor(-scrollTop / 6); var ispeed = Math.floor(-scrollTop / 6)
if (scrollTop == 0) { if (scrollTop == 0) {
clearInterval(timer); clearInterval(timer)
} }
document.getElementsByClassName("frame-box")[0].scrollTop = document.getElementsByClassName('frame-box')[0].scrollTop =
scrollTop + ispeed; scrollTop + ispeed
}, 30); }, 30)
}, },
/*一键上传数据组装*/ /*一键上传数据组装*/
setTravelUploadData(uploadConfig) { setTravelUploadData (uploadConfig) {
if (uploadConfig != undefined) { if (uploadConfig != undefined) {
var configData = JSON.parse(uploadConfig); var configData = JSON.parse(uploadConfig)
//基础数据组装 //基础数据组装
//this.PostConfig.Title = ""; //this.PostConfig.Title = "";
this.PostConfig.IsDirect = 0; this.PostConfig.IsDirect = 0
//线路行程组装 //线路行程组装
let dayList = []; let dayList = []
for (var i = 0; i < configData.Days.length; i++) { for (var i = 0; i < configData.Days.length; i++) {
let dayObj = configData.Days[i]; let dayObj = configData.Days[i]
var dayItem = this.$tripUtils.tripDayobj(); var dayItem = this.$tripUtils.tripDayobj()
dayItem.DayNum = i + 1; dayItem.DayNum = i + 1
//行程大点 //行程大点
var titleItem = this.$tripUtils.titleObj(); var titleItem = this.$tripUtils.titleObj()
titleItem.DayNum = i + 1; titleItem.DayNum = i + 1
titleItem.Title = dayObj.Title; titleItem.Title = dayObj.Title
dayItem.TitleObj = titleItem; dayItem.TitleObj = titleItem
//交通对象 //交通对象
var trafficObj = this.$tripUtils.trafficObj(); var trafficObj = this.$tripUtils.trafficObj()
trafficObj.DayNum = i + 1; trafficObj.DayNum = i + 1
//交通子对象 //交通子对象
var subTrafficObj = this.$tripUtils.subTrafficObj(); var subTrafficObj = this.$tripUtils.subTrafficObj()
trafficObj.SubTraffic.push(subTrafficObj); trafficObj.SubTraffic.push(subTrafficObj)
dayItem.TrafficObj = trafficObj; dayItem.TrafficObj = trafficObj
//温馨提示 //温馨提示
var warmTipObj = this.$tripUtils.warmtipObj(); var warmTipObj = this.$tripUtils.warmtipObj()
warmTipObj.DayNum = i + 1; warmTipObj.DayNum = i + 1
warmTipObj.Description = dayObj.Tips; warmTipObj.Description = dayObj.Tips
dayItem.WarmTipObj = warmTipObj; dayItem.WarmTipObj = warmTipObj
dayItem.isHide = false; dayItem.isHide = false
dayItem.isRead = false; dayItem.isRead = false
//景点 //景点
if (dayObj.ViewSpotList.length > 0) { if (dayObj.ViewSpotList.length > 0) {
dayObj.ViewSpotList.forEach((viewSpot, index) => { dayObj.ViewSpotList.forEach((viewSpot, index) => {
if ((index + 1) <= 5) { if ((index + 1) <= 5) {
var scenicObj = this.$tripUtils.scenicObj(); var scenicObj = this.$tripUtils.scenicObj()
scenicObj.DayNum = i + 1; scenicObj.DayNum = i + 1
scenicObj.CouponsName = viewSpot.Name; scenicObj.CouponsName = viewSpot.Name
scenicObj.Description = viewSpot.Description; scenicObj.Description = viewSpot.Description
if (viewSpot.Imgs != null && viewSpot.Imgs.length > 0) { if (viewSpot.Imgs != null && viewSpot.Imgs.length > 0) {
let imaArray = []; let imaArray = []
viewSpot.Imgs.forEach(img => { viewSpot.Imgs.forEach(img => {
imaArray.push({ imaArray.push({
Url: img, Url: img,
Name: "" Name: ''
}); })
}); })
scenicObj.NewImaArray = imaArray; scenicObj.NewImaArray = imaArray
scenicObj.NewScenicImg = JSON.stringify(scenicObj.NewImaArray); scenicObj.NewScenicImg = JSON.stringify(scenicObj.NewImaArray)
} else { } else {
scenicObj.NewImaArray = []; scenicObj.NewImaArray = []
scenicObj.NewScenicImg = ""; scenicObj.NewScenicImg = ''
} }
dayItem.ScenicArray.push(scenicObj); dayItem.ScenicArray.push(scenicObj)
} }
}); })
} }
//餐厅 //餐厅
dayItem.DinnerArray.push(this.dinnerUploadFactory(i + 1, 1, dayObj.Breakfast)); dayItem.DinnerArray.push(this.dinnerUploadFactory(i + 1, 1, dayObj.Breakfast))
dayItem.DinnerArray.push(this.dinnerUploadFactory(i + 1, 2, dayObj.Lanuch)); dayItem.DinnerArray.push(this.dinnerUploadFactory(i + 1, 2, dayObj.Lanuch))
dayItem.DinnerArray.push(this.dinnerUploadFactory(i + 1, 3, dayObj.Dinner)); dayItem.DinnerArray.push(this.dinnerUploadFactory(i + 1, 3, dayObj.Dinner))
//酒店 //酒店
var hotelObj = this.$tripUtils.hotelObj(); var hotelObj = this.$tripUtils.hotelObj()
hotelObj.DayNum = i + 1; hotelObj.DayNum = i + 1
hotelObj.HotelName = dayObj.Hotel; hotelObj.HotelName = dayObj.Hotel
dayItem.HotelArray.push(hotelObj); dayItem.HotelArray.push(hotelObj)
dayList.push(dayItem); dayList.push(dayItem)
} }
this.journeyList.isFileUpload = true; this.journeyList.isFileUpload = true
this.journeyList.DayNum = configData.Days.length; this.journeyList.DayNum = configData.Days.length
this.journeyList.NightNum = this.journeyList.DayNum - 1; this.journeyList.NightNum = this.journeyList.DayNum - 1
this.journeyList.DayList = dayList; this.journeyList.DayList = dayList
//产品特色 //产品特色
this.FeatureData.FeatureType = 3; this.FeatureData.FeatureType = 3
this.FeatureData.FeatureContent = configData.Feature; this.FeatureData.FeatureContent = configData.Feature
//行程补充信息 //行程补充信息
this.NoticeData.FeeInclude = configData.PriceInCloub; this.NoticeData.FeeInclude = configData.PriceInCloub
this.NoticeData.FeeNonInclude = configData.PriceNoInCloub; this.NoticeData.FeeNonInclude = configData.PriceNoInCloub
this.NoticeData.ImportantTip = configData.PriceNoInCloub; this.NoticeData.ImportantTip = configData.PriceNoInCloub
this.NoticeData.WarmTip = configData.Tips; this.NoticeData.WarmTip = configData.Tips
this.NoticeData.ShopRemark = configData.Shopping; this.NoticeData.ShopRemark = configData.Shopping
} }
}, },
//餐饮对象上传创建 //餐饮对象上传创建
dinnerUploadFactory(dayNum, useDinnerType, dinnerName) { dinnerUploadFactory (dayNum, useDinnerType, dinnerName) {
let dinnerObj = this.$tripUtils.dinnerObj(); let dinnerObj = this.$tripUtils.dinnerObj()
dinnerObj.UseDinnerType = useDinnerType; dinnerObj.UseDinnerType = useDinnerType
dinnerObj.DinnerName = dinnerName; dinnerObj.DinnerName = dinnerName
dinnerObj.BreakfastUseType = 0; dinnerObj.BreakfastUseType = 0
dinnerObj.DayNum = dayNum; dinnerObj.DayNum = dayNum
return dinnerObj; return dinnerObj
}, },
firstLoadConfigInfo() { firstLoadConfigInfo () {
var routeName = this.$route.name; var routeName = this.$route.name
this.TeamType=1; this.TeamType = 1
let configId = this.$route.query.configId; let configId = this.$route.query.configId
this.modifyTcid = this.$route.query.tcid; this.modifyTcid = this.$route.query.tcid
this.TCNUM = this.$route.query.TCNUM; this.TCNUM = this.$route.query.TCNUM
if (this.modifyTcid > 0) { if (this.modifyTcid > 0) {
this.modifyType = 2; this.modifyType = 2
} else { } else {
this.modifyType = 1; this.modifyType = 1
this.modifyTcid = 0; this.modifyTcid = 0
} }
var that = this; var that = this
if (configId > 0) { if (configId > 0) {
this.isNewConfig = false; this.isNewConfig = false
this.ConfigId = configId; this.ConfigId = configId
let msg = { let msg = {
configId: configId, configId: configId,
TeamType: this.TeamType TeamType: this.TeamType
}; }
this.loading = true; this.loading = true
this.apipost( this.apipost(
"travel_get_GetTravelConfigMakeInfo", 'travel_get_GetTravelConfigMakeInfo',
msg, msg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData = res.data.data; var tempData = res.data.data
console.log("tempData",tempData);
if (tempData.Feature != null) { if (tempData.Feature != null) {
this.FeatureData.ID = tempData.Feature.ID; this.FeatureData.ID = tempData.Feature.ID
this.FeatureData.ConfigId = tempData.Feature.ConfigId; this.FeatureData.ConfigId = tempData.Feature.ConfigId
this.FeatureData.FeatureType = tempData.Feature.FeatureType; this.FeatureData.FeatureType = tempData.Feature.FeatureType
this.FeatureData.FeatureImg = tempData.Feature.FeatureImg; this.FeatureData.FeatureImg = tempData.Feature.FeatureImg
this.FeatureData.TemplateId = tempData.Feature.TemplateId; this.FeatureData.TemplateId = tempData.Feature.TemplateId
this.FeatureData.FeatureContent = tempData.Feature.FeatureContent; this.FeatureData.FeatureContent = tempData.Feature.FeatureContent
//图片列表 //图片列表
this.FeatureData.fileList = tempData.Feature.FeatureImgList; this.FeatureData.fileList = tempData.Feature.FeatureImgList
this.FeatureData.FeatureHtmlJson = this.FeatureData.FeatureHtmlJson =
tempData.Feature.FeatureHtmlJson && tempData.Feature.FeatureHtmlJson &&
tempData.Feature.FeatureHtmlJson != "" && tempData.Feature.FeatureType > 3 ? tempData.Feature.FeatureHtmlJson != '' && tempData.Feature.FeatureType > 3 ?
JSON.parse(tempData.Feature.FeatureHtmlJson) : JSON.parse(tempData.Feature.FeatureHtmlJson) :
null; null
this.FeatureData.FeatureHtmlJsonDelete = tempData.Feature.FeatureHtmlJsonDelete && this.FeatureData.FeatureHtmlJsonDelete = tempData.Feature.FeatureHtmlJsonDelete &&
tempData.Feature.FeatureHtmlJsonDelete != "" && tempData.Feature.FeatureType > 3 ? tempData.Feature.FeatureHtmlJsonDelete != '' && tempData.Feature.FeatureType > 3 ?
JSON.parse(tempData.Feature.FeatureHtmlJsonDelete) : JSON.parse(tempData.Feature.FeatureHtmlJsonDelete) :
null; null
this.NoticeData.FeeInclude = tempData.Feature.FeeInclude; this.NoticeData.FeeInclude = tempData.Feature.FeeInclude
this.NoticeData.FeeNonInclude = tempData.Feature.FeeNonInclude; this.NoticeData.FeeNonInclude = tempData.Feature.FeeNonInclude
this.NoticeData.ImportantTip = tempData.Feature.ImportantTip; this.NoticeData.ImportantTip = tempData.Feature.ImportantTip
this.NoticeData.WarmTip = tempData.Feature.WarmTip; this.NoticeData.WarmTip = tempData.Feature.WarmTip
this.NoticeData.B2BRemark = tempData.Feature.B2BRemark; this.NoticeData.B2BRemark = tempData.Feature.B2BRemark
this.NoticeData.ShopRemark = tempData.Feature.ShopRemark; this.NoticeData.ShopRemark = tempData.Feature.ShopRemark
this.NoticeData.VisaRemark = tempData.Feature.VisaRemark; this.NoticeData.VisaRemark = tempData.Feature.VisaRemark
} }
if (tempData.PDFAlias !== null && tempData.PDFAlias !== "") { if (tempData.PDFAlias !== null && tempData.PDFAlias !== '') {
this.FeatureData.Title = tempData.PDFAlias; this.FeatureData.Title = tempData.PDFAlias
} else { } else {
this.FeatureData.Title = tempData.Title; this.FeatureData.Title = tempData.Title
} }
if (tempData.PriceList != null) { if (tempData.PriceList != null) {
this.PriceList = tempData.PriceList; this.PriceList = tempData.PriceList
} }
this.FeatureData.Subtitle = tempData.LtName; this.FeatureData.Subtitle = tempData.LtName
this.FeatureData.LineName = tempData.LineName; this.FeatureData.LineName = tempData.LineName
this.FeatureData.DayList = tempData.DayList; this.FeatureData.DayList = tempData.DayList
this.ConfigId = tempData.ID; this.ConfigId = tempData.ID
//HK 2019-01-08添加 NewConfigId B2B预览使用 //HK 2019-01-08添加 NewConfigId B2B预览使用
this.NewConfigId = tempData.NewConfigId; this.NewConfigId = tempData.NewConfigId
this.PostConfig.ID = tempData.ID; this.PostConfig.ID = tempData.ID
this.PostConfig.StartCityId = tempData.StartCityId; this.PostConfig.StartCityId = tempData.StartCityId
this.PostConfig.LineId = tempData.LineId; this.PostConfig.LineId = tempData.LineId
this.PostConfig.LineteamId = tempData.LineteamId; this.PostConfig.LineteamId = tempData.LineteamId
this.PostConfig.CountryID = tempData.CountryID; this.PostConfig.CountryID = tempData.CountryID
//视频地址 //视频地址
this.PostConfig.VideoStr = tempData.VideoStr; this.PostConfig.VideoStr = tempData.VideoStr
this.PostConfig.OpenTeamDescribe=tempData.OpenTeamDescribe; this.PostConfig.OpenTeamDescribe = tempData.OpenTeamDescribe
this.NoticeParameters.ConfigId = tempData.ConfigId; this.NoticeParameters.ConfigId = tempData.ConfigId
this.NoticeParameters.CountryID = tempData.CountryID; this.NoticeParameters.CountryID = tempData.CountryID
this.NoticeParameters.IsDirect = tempData.IsDirect; this.NoticeParameters.IsDirect = tempData.IsDirect
this.NoticeParameters.LineId = tempData.LineId; this.NoticeParameters.LineId = tempData.LineId
this.PostConfig.ImgCover = tempData.ImgCover; this.PostConfig.ImgCover = tempData.ImgCover
this.PostConfig.LtName = tempData.LtName; this.PostConfig.LtName = tempData.LtName
this.PostConfig.CreateBy = tempData.CreateBy; this.PostConfig.CreateBy = tempData.CreateBy
if (tempData.ImgCover != "") { if (tempData.ImgCover != '') {
if (tempData.ImgCoverList.length > 0) { if (tempData.ImgCoverList.length > 0) {
this.PostConfig.fileList = tempData.ImgCoverList; this.PostConfig.fileList = tempData.ImgCoverList
} }
} else { } else {
this.initFileList(); this.initFileList()
} }
this.PostConfig.Title = tempData.Title; this.PostConfig.Title = tempData.Title
this.PostConfig.ProductRecommend = tempData.ProductRecommend; this.PostConfig.ProductRecommend = tempData.ProductRecommend
this.PostConfig.IsSubstitution = tempData.IsSubstitution; this.PostConfig.IsSubstitution = tempData.IsSubstitution
this.PostConfig.IsDirect = tempData.IsDirect; this.PostConfig.IsDirect = tempData.IsDirect
this.PostConfig.PriceIsDirect = tempData.PriceIsDirect; this.PostConfig.PriceIsDirect = tempData.PriceIsDirect
if (tempData.FlightList != null) { if (tempData.FlightList != null) {
this.PostConfig.FlightList = tempData.FlightList; this.PostConfig.FlightList = tempData.FlightList
} }
if (tempData.ShopList != null) { if (tempData.ShopList != null) {
this.PostConfig.ShopList = tempData.ShopList; this.PostConfig.ShopList = tempData.ShopList
} }
if (tempData.SelfpayingList != null) { if (tempData.SelfpayingList != null) {
this.PostConfig.SelfpayingList = tempData.SelfpayingList; this.PostConfig.SelfpayingList = tempData.SelfpayingList
} }
this.journeyList.DayNum = tempData.DayNum; this.journeyList.DayNum = tempData.DayNum
this.journeyList.NightNum = tempData.NightNum; this.journeyList.NightNum = tempData.NightNum
this.journeyList.ReturnArriveCityId = tempData.ReturnArriveCityId; this.journeyList.ReturnArriveCityId = tempData.ReturnArriveCityId
this.journeyList.StartCityId = tempData.StartCityId; this.journeyList.StartCityId = tempData.StartCityId
this.journeyList.DayList = tempData.DayList; this.journeyList.DayList = tempData.DayList
this.journeyList.DayList.forEach(x => { this.journeyList.DayList.forEach(x => {
x["HotelChooseArray"] = []; x['HotelChooseArray'] = []
x["ChooseScenicArray"] = []; x['ChooseScenicArray'] = []
x["isHide"] = false; x['isHide'] = false
}); })
if (tempData.OfferList != null) { if (tempData.OfferList != null) {
this.OfferList = tempData.OfferList; this.OfferList = tempData.OfferList
} }
if (tempData.LineList != null) { if (tempData.LineList != null) {
this.LineList = tempData.LineList; this.LineList = tempData.LineList
} }
if (tempData.AllCityList != null) { if (tempData.AllCityList != null) {
this.AllCityList = tempData.AllCityList; this.AllCityList = tempData.AllCityList
} }
if (tempData.StartCity != null) { if (tempData.StartCity != null) {
this.StartCity = tempData.StartCity; this.StartCity = tempData.StartCity
} }
this.UseTypeArray = tempData.UseTypeArray; this.UseTypeArray = tempData.UseTypeArray
this.AirPickUp = tempData.AirPickUp; this.AirPickUp = tempData.AirPickUp
this.AirSend = tempData.AirSend; this.AirSend = tempData.AirSend
this.PostConfig["OpenState"] = this.OpenState; this.PostConfig['OpenState'] = this.OpenState
this.PostConfig.PDFAlias = tempData.PDFAlias; this.PostConfig.PDFAlias = tempData.PDFAlias
} else { } else {
this.Error(res.data.message); this.Error(res.data.message)
} }
this.loading = false; this.loading = false
}, },
err => {} err => {
); }
)
} else { } else {
this.initFileList(); this.initFileList()
this.initFeatureFile(); this.initFeatureFile()
this.loading = true; this.loading = true
this.apipost( this.apipost(
"travel_get_GetCommonTravelInfo", { 'travel_get_GetCommonTravelInfo', {
TeamType: this.TeamType TeamType: this.TeamType
}, },
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData = res.data.data; var tempData = res.data.data
if (tempData.LineList != null) { if (tempData.LineList != null) {
this.LineList = tempData.LineList; this.LineList = tempData.LineList
} }
if (tempData.AllCityList != null) { if (tempData.AllCityList != null) {
this.AllCityList = tempData.AllCityList; this.AllCityList = tempData.AllCityList
} }
if (tempData.StartCity != null) { if (tempData.StartCity != null) {
this.StartCity = tempData.StartCity; this.StartCity = tempData.StartCity
} }
this.UseTypeArray = tempData.UseTypeArray; this.UseTypeArray = tempData.UseTypeArray
this.AirPickUp = tempData.AirPickUp; this.AirPickUp = tempData.AirPickUp
this.AirSend = tempData.AirSend; this.AirSend = tempData.AirSend
} else { } else {
this.Error(res.data.message); this.Error(res.data.message)
} }
this.loading = false; this.loading = false
}, },
err => {} err => {
); }
)
} }
}, },
goB2B() { goB2B () {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage()
var B2BDomain = userInfo.B2BDomain; var B2BDomain = userInfo.B2BDomain
let configId = this.NewConfigId; let configId = this.NewConfigId
window.open( window.open(
B2BDomain + "/#/detailTwo/" + B2BDomain + '/#/detailTwo/' +
encodeURIComponent(configId) + '/' + 0 + encodeURIComponent(configId) + '/' + 0 +
"/preview", '/preview',
"_blank" '_blank'
); )
}, },
}, },
updated: function () { updated: function () {
this.MsgBus.$emit('FeatureDataFlag'); this.MsgBus.$emit('FeatureDataFlag')
}, },
watch: {}, watch: {},
mounted() { mounted () {
this.ScrollMethod(); if (this.$route.query.customId) {
this.PostConfig.customId = this.$route.query.customId
}
if (this.$route.query.allotId) {
this.PostConfig.allotId = this.$route.query.allotId
}
console.log("this.PostConfig",this.PostConfig)
this.ScrollMethod()
}, },
created() { created () {
this.firstLoadConfigInfo(); this.firstLoadConfigInfo()
}
} }
};
</script> </script>
...@@ -2714,6 +2714,14 @@ export default { ...@@ -2714,6 +2714,14 @@ export default {
meta: { meta: {
title: '团队营收统计' title: '团队营收统计'
}, },
},
{ //财务 报表 团队人数统计
path: '/NumberStatistics',
name: 'NumberStatistics',
component: resolve => require(['@/components/FinancialModule/ReportForm/NumberStatistics'], resolve),
meta: {
title: '团队人数统计'
},
}, { }, {
path: '/JumpReport', path: '/JumpReport',
name: 'JumpReport', name: 'JumpReport',
......
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