Commit e29604f0 authored by 黄奎's avatar 黄奎

包机团跳转调整

parent 3ce25ea8
......@@ -349,14 +349,7 @@
<i class="iconfont icon-tiaozheng" style="font-size: 22px; color: #297bef"></i></el-tooltip>
</p>
<p class="fz12 over_ellipsis" style="width: 100%; text-decoration: underline; cursor: pointer"
:title="item.alName" @click="
goUrlX(
'产品查询',
item.isOneDay === 1 ? 'productQueryOne' : 'productQuery',
item.tcid,
item.tcnum
)
">
:title="item.alName" @click="gotoProduct(item)">
{{ item.tcnum }}
</p>
<p class="fz12 over_ellipsis" style="width: 100%">
......@@ -1125,6 +1118,21 @@
(err) => {}
);
},
gotoProduct(item) {
var path = "productQuery";
if (item.teamType == 2) {
path = "productQueryOne";
} else if (item.teamType == 4) {
path = "priceGroup";
} else {
path = "productQuery";
}
var ntcnum = item.tcnum;
if (ntcnum && ntcnum.indexOf('(') > -1) {
ntcnum = ntcnum.substring(0, ntcnum.indexOf('('));
}
this.goUrlX('产品查询', path, item.tcid, ntcnum)
},
goUrlX(name, path, id, tcmun) {
this.$router.push({
name: path,
......@@ -1349,7 +1357,7 @@
this.msg.CEndDate = this.$route.query.CEndDate
if (this.$route.query.discount) this.msg.IsUseCoupon = this.$route.query.discount
}
if (this.$route.query.BranchId &&this.$route.query.BranchId >= -1) {
if (this.$route.query.BranchId && this.$route.query.BranchId >= -1) {
this.msg.BranchId = Number(this.$route.query.BranchId);
}
if (this.$route.query.isNormal) this.msg.isNormal = this.$route.query.isNormal
......
......@@ -749,11 +749,21 @@
},
//跳转到团控列表
goToTravelList(item) {
var path = "TravelControlList";
if (item.teamType == 1) {
this.goUrlX('团控列表', 'TravelControlListSale', item.tcid, item.tcnum);
path = "TravelControlListSale";
} else if (item.teamType == 2) {
path = "oneDayTrip";
} else if (item.teamType == 4) {
path = "TravelTeam";
} else {
this.goUrlX('团控列表', 'TravelControlList', item.tcid, item.tcnum);
path = "TravelControlList";
}
var ntcnum = item.tcnum;
if (ntcnum && ntcnum.indexOf('(') > -1) {
ntcnum = ntcnum.substring(0, ntcnum.indexOf('('));
}
this.goUrlX('团控列表', path, item.tcid, ntcnum);
},
goUrlHappy(item) {
this.$router.push({
......
......@@ -562,7 +562,7 @@
<li>
<span>
<em>{{ $t("visa.v_tuanhao") }}</em>
<el-input v-model="msg.TCID" class="w150" clearable></el-input>
<el-input v-model="msg.TCNUM" class="w150" clearable></el-input>
</span>
</li>
<li>
......@@ -1006,7 +1006,7 @@
msg: {
pageIndex: 1,
pageSize: 10,
TCID: "",
TCNUM: "",
StartTime: "",
EndTime: "",
},
......@@ -1099,6 +1099,13 @@
this.currentPage = 1;
},
},
created() {
if (this.$route.query) {
if (this.$route.query.tcmun) {
this.msg.TCNUM = this.$route.query.tcmun;
}
}
},
mounted() {
let StartDate = this.getBeforeDate(0, new Date().Format("yyyy-MM-dd"))
this.msg.StartTime = StartDate
......
......@@ -100,6 +100,13 @@
@keyup.native.enter="resetQuery" :placeholder="$t('pub.pleaseImport')"></el-input>
</span>
</li>
<li>
<span>
<em>{{ $t("visa.v_tuanhao") }}</em>
<el-input maxlength="50" v-model="queryMsg.TCNUM" class="permiss-input w150"
@keyup.native.enter="resetQuery" :placeholder="$t('pub.pleaseImport')" clearable></el-input>
</span>
</li>
<li>
<span>
<em>{{$t('scen.sc_ftTime')}}</em>
......@@ -123,16 +130,16 @@
@keyup.native.enter="resetQuery" :placeholder="$t('pub.pleaseImport')"></el-input>
</span>
</li> -->
<li>
<!-- <li>
<span>
<em>{{$t('objFill.v101.hezuohuoban')}}:</em>
<el-input maxlength="50" v-model="queryMsg.QCustomerName" class="permiss-input w150" clearable
@keyup.native.enter="resetQuery" :placeholder="$t('pub.pleaseImport')"></el-input>
</span>
</li>
</li> -->
<li>
<span>
<em>{{$t('sm.chufadi')}}:</em>
<em>{{$t('sm.chufadi')}}</em>
<el-input v-model="queryMsg.StartAddress" class="permiss-input w150" clearable
@keyup.native.enter="resetQuery" :placeholder="$t('objFill.qingshurcfddian')"></el-input>
</span>
......@@ -517,6 +524,9 @@
<el-dropdown-item @click.native="gotoPay(item)">
{{$t('objFill.v101.baojijiesuan')}}
</el-dropdown-item>
<el-dropdown-item @click.native="goTeamBalance(item.TCID, item.OutBranchId)">
{{ $t("Operation.Op_shouzhiDetail") }}
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
......@@ -571,6 +581,7 @@
QFlightNum: "", //航班号
QCustomerName: "", //合作伙伴名称
StartAddress: "", //出发地
TCNUM: "", //团队编号
},
queryDataObj: {
LineList: [], //线路列表
......@@ -663,6 +674,18 @@
);
})
},
goTeamBalance(id, OutBranchId) {
this.$router.push({
name: "TeamBalancePayment",
query: {
id: id,
OutBranchId: OutBranchId,
IsHaveAuth: true,
blank: "y",
tab: "团队收支明细",
},
});
},
//跳转到报名清单
gotoPay(item) {
this.OpenNewPage('/TravelPay', {
......@@ -753,6 +776,11 @@
created() {
this.CurrentUserInfo = this.getLocalStorage();
this.getLineList();
if (this.$route.query) {
if (this.$route.query.tcmun) {
this.queryMsg.TCNUM = this.$route.query.tcmun;
}
}
}
};
......
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