Commit e0e136e6 authored by 黄奎's avatar 黄奎

当团修改调整

parent 849c8718
...@@ -1381,15 +1381,7 @@ ...@@ -1381,15 +1381,7 @@
{{ $t("objFill.xilietxbm") }} {{ $t("objFill.xilietxbm") }}
</el-dropdown-item> </el-dropdown-item>
</template> </template>
<el-dropdown-item @click.native=" <el-dropdown-item @click.native="goTonowTeam(item) ">
goTonowTeam(
'TravelManager',
item.ID,
item.TCID,
item.TCNUM,
item
)
">
{{ $t("objFill.dangtuanxbm") }} {{ $t("objFill.dangtuanxbm") }}
</el-dropdown-item> </el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
...@@ -3293,28 +3285,53 @@ ...@@ -3293,28 +3285,53 @@
} }
}, },
//当团修改 //当团修改
goTonowTeam(path, configId, tcid, TCNUM, item) { goTonowTeam(item) {
if (configId > 0) { var that = this;
this.$store.commit("pageConditionUpdate", this.queryMsg); var path = 'TravelManager';
this.$router.push({ var ttMsg = {
name: path, configId: item.ID,
query: {
configId: configId,
offerId: item.Config_OfferId, offerId: item.Config_OfferId,
openState: 1, openState: 1,
tcid: tcid, tcid: item.TCID,
TCNUM: TCNUM, TCNUM: item.TCNUM,
blank: "y", blank: "y",
tab: "团期配置", tab: "团期配置",
};
if (item.RelationPriceList && item.RelationPriceList.length > 0) {
var tipMsg = "当前行程为系列团,你是否确定需要将当前团期进行独立维护并且不再与系列团关联?"
that.Confirm(tipMsg, function () {
that.queryCommonData.loading = true;
var dMsg = {
ConfigId: item.ID,
TCID: item.TCID
};
that.apipost(
"travel_post_SetTravelConfigChangeDT",
dMsg,
(res) => {
that.queryCommonData.loading = false;
if (res.data.resultCode == 1) {
that.Success(res.data.message);
ttMsg.configId = res.data.data;
that.getControlList();
that.gotoUrl(path,ttMsg);
} else {
that.Error(res.data.message);
}
}, },
null
);
}); });
} else { } else {
that.gotoUrl(path, ttMsg);
}
},
gotoUrl(path, query) {
this.$router.push({ this.$router.push({
name: path, name: path,
query: query
}); });
}
}, },
//删除团期 //删除团期
removeTeamInfo(TCID) { removeTeamInfo(TCID) {
var that = this; var that = this;
......
...@@ -975,7 +975,7 @@ ...@@ -975,7 +975,7 @@
<el-dropdown-item @click.native="goToOpenTravel('TravelManager',item.ID,0,item)"> <el-dropdown-item @click.native="goToOpenTravel('TravelManager',item.ID,0,item)">
{{$t('Operation.Op_xilieModyfi')}}</el-dropdown-item> {{$t('Operation.Op_xilieModyfi')}}</el-dropdown-item>
</template> </template>
<el-dropdown-item @click.native="goToOpenTravel('TravelManager',item.ID,item.TCID,item)"> <el-dropdown-item @click.native="goTonowTeam(item)">
{{$t('Operation.Op_dangtuanModify')}}</el-dropdown-item> {{$t('Operation.Op_dangtuanModify')}}</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
...@@ -2582,6 +2582,54 @@ ...@@ -2582,6 +2582,54 @@
}); });
} }
}, },
//当团修改
goTonowTeam(item) {
var that = this;
var path = 'TravelManager';
var ttMsg = {
configId: item.ID,
offerId: item.Config_OfferId,
openState: 1,
tcid: item.TCID,
TCNUM: item.TCNUM,
blank: "y",
tab: "团期配置",
};
if (item.RelationPriceList && item.RelationPriceList.length > 0) {
var tipMsg = "当前行程为系列团,你是否确定需要将当前团期进行独立维护并且不再与系列团关联?"
that.Confirm(tipMsg, function () {
that.queryCommonData.loading = true;
var dMsg = {
ConfigId: item.ID,
TCID: item.TCID
};
that.apipost(
"travel_post_SetTravelConfigChangeDT",
dMsg,
(res) => {
that.queryCommonData.loading = false;
if (res.data.resultCode == 1) {
that.Success(res.data.message);
ttMsg.configId = res.data.data;
that.getControlList();
that.gotoUrl(path, ttMsg);
} else {
that.Error(res.data.message);
}
},
null
);
});
} else {
that.gotoUrl(path, ttMsg);
}
},
gotoUrl(path, query) {
this.$router.push({
name: path,
query: query
});
},
//删除团期 //删除团期
removeTeamInfo(TCID) { removeTeamInfo(TCID) {
var that = this; var that = this;
......
...@@ -745,7 +745,7 @@ ...@@ -745,7 +745,7 @@
{{$t('Operation.Op_xilieModyfi')}} {{$t('Operation.Op_xilieModyfi')}}
</el-dropdown-item> </el-dropdown-item>
</template> </template>
<el-dropdown-item @click.native="goTonowTeam('TravelManager',item.ID,item.TCID,item.TCNUM,item)"> <el-dropdown-item @click.native="goTonowTeam(item)">
{{$t('Operation.Op_dangtuanModify')}} {{$t('Operation.Op_dangtuanModify')}}
</el-dropdown-item> </el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
...@@ -1834,7 +1834,6 @@ ...@@ -1834,7 +1834,6 @@
} }
) )
}, },
//验证大小 //验证大小
checkTeamNum(queryMsg) { checkTeamNum(queryMsg) {
var TeamMinNum = parseInt(queryMsg.TeamMinNum) var TeamMinNum = parseInt(queryMsg.TeamMinNum)
...@@ -2000,7 +1999,6 @@ ...@@ -2000,7 +1999,6 @@
} }
}) })
}, },
goUrl(path, id, name) { goUrl(path, id, name) {
this.$store.commit('pageConditionUpdate', this.queryMsg) this.$store.commit('pageConditionUpdate', this.queryMsg)
this.$router.push({ this.$router.push({
...@@ -2101,30 +2099,53 @@ ...@@ -2101,30 +2099,53 @@
} }
}, },
//当团修改 //当团修改
goTonowTeam(path, configId, tcid, TCNUM, item) { goTonowTeam(item) {
if (configId > 0) { var that = this;
this.$store.commit('pageConditionUpdate', this.queryMsg) var path = 'TravelManager';
this.$router.push({ var ttMsg = {
name: path, configId: item.ID,
query: {
configId: configId,
offerId: item.Config_OfferId, offerId: item.Config_OfferId,
openState: 1, openState: 1,
tcid: tcid, tcid: item.TCID,
TCNUM: TCNUM, TCNUM: item.TCNUM,
blank: 'y', blank: "y",
tab: '团期配置', tab: "团期配置",
flag: this.$route.query.flag ? this.$route.query.flag : false };
if (item.RelationPriceList && item.RelationPriceList.length > 0) {
var tipMsg = "当前行程为系列团,你是否确定需要将当前团期进行独立维护并且不再与系列团关联?"
that.Confirm(tipMsg, function () {
that.queryCommonData.loading = true;
var dMsg = {
ConfigId: item.ID,
TCID: item.TCID
};
that.apipost(
"travel_post_SetTravelConfigChangeDT",
dMsg,
(res) => {
that.queryCommonData.loading = false;
if (res.data.resultCode == 1) {
that.Success(res.data.message);
ttMsg.configId = res.data.data;
that.getControlList();
that.gotoUrl(path, ttMsg);
} else {
that.Error(res.data.message);
} }
}) },
null
);
});
} else { } else {
this.$router.push({ that.gotoUrl(path, ttMsg);
name: path
})
} }
}, },
gotoUrl(path, query) {
this.$router.push({
name: path,
query: query
});
},
//删除团期 //删除团期
removeTeamInfo(TCID) { removeTeamInfo(TCID) {
var that = this var that = this
......
...@@ -6,16 +6,18 @@ ...@@ -6,16 +6,18 @@
</span> </span>
<span class="foldList" @click="fold" v-if="isFold==''">{{$t('sm.djzd')}}</span> <span class="foldList" @click="fold" v-if="isFold==''">{{$t('sm.djzd')}}</span>
<span class="foldList" @click="fold" v-if="isFold==1">{{$t('sm.djzk')}}</span> <span class="foldList" @click="fold" v-if="isFold==1">{{$t('sm.djzk')}}</span>
<span v-if="FeatureData.ConfigId&&dataAll.FeaturePageType&&FeatureData.FeatureType==9" class="foldList" <template v-if="FeatureData.ConfigId&&FeatureData.FeatureType==9">
style="margin-right: 5px;" @click="journeyTemplate()">{{$t('objFill.v101.myOrdersAllType.bianjixc')}}</span> <span v-if="dataAll.FeaturePageType" class="foldList" style="margin-right: 5px;"
<span style="color: red;float: right;margin-right: 5px;line-height: 28px;font-weight:bold;"> @click="journeyTemplate()">{{$t('objFill.v101.myOrdersAllType.bianjixc')}}</span>
{{$t('objFill.v101.myOrdersAllType.xinfzdtqrx')}}</span> <font v-else style="margin-right:5px;color:red;float:right;padding-top:5px;font-weight:bold;">
请选择 线路行程=>版型
</font>
</template>
<div class="TrfList clearfix"> <div class="TrfList clearfix">
<template v-for="item in TypeArray"> <template v-for="item in TypeArray">
<div class="TFslide" <div class="TFslide"
:class="{'TFcked':item.isShow,'display_none':(item.TypeState===4 && FeatureData.FeatureType !== 4) || (item.TypeState===4 && !$route.query.configId)}" :class="{'TFcked':item.isShow,'display_none':(item.TypeState===4 && FeatureData.FeatureType !== 4) || (item.TypeState===4 && !$route.query.configId)}"
@click="clickFeature(item)" :key="item.subCode"> @click="clickFeature(item)" :key="item.subCode">
<!--v-if="((item.TypeState>3 && CurrentUserInfo.RB_Group_id==QjGroupId())||item.TypeState<=3)"-->
<img v-bind:src="item.imgUrl"> <img v-bind:src="item.imgUrl">
<div>{{item.ckTitle}}</div> <div>{{item.ckTitle}}</div>
</div> </div>
...@@ -202,14 +204,6 @@ ...@@ -202,14 +204,6 @@
<iframe name="myIframe" :src="myIframeUrl" style="width: 100%;border: 0;" <iframe name="myIframe" :src="myIframeUrl" style="width: 100%;border: 0;"
:style="{'height':myIframeHeigth+'px'}"> :style="{'height':myIframeHeigth+'px'}">
</iframe> </iframe>
<!-- <div v-if="FeatureData.TripImageListNew&&FeatureData.TripImageListNew.length>0">
<template v-for="url in FeatureData.TripImageListNew">
<el-image
style="width: 100%; height: auto"
:src="url"
:preview-src-list="FeatureData.TripImageListNew"></el-image>
</template>
</div> -->
<div v-show="PostMessageText=='暂无行程数据'" <div v-show="PostMessageText=='暂无行程数据'"
style="text-align: center;margin-bottom: 20px;font-size: 14px;color: #808080;"> style="text-align: center;margin-bottom: 20px;font-size: 14px;color: #808080;">
{{$t('objFill.v101.myOrdersAllType.zanwusjysjbjssb')}}</div> {{$t('objFill.v101.myOrdersAllType.zanwusjysjbjssb')}}</div>
......
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