Commit 7d88f3cf authored by youjie's avatar youjie

no message

parent aa3711c7
......@@ -338,7 +338,7 @@
if (res.data.resultCode == 1) {
this.PeroidsList = res.data.data;
if(!this.$route.query.PeriodId){
this.msg.PeriodId = this.PeroidsList[0].Id
this.msg.PeriodsId = this.PeroidsList[0].Id
}
this.getList()
} else {
......
......@@ -36,7 +36,7 @@
<ul class="opUl">
<li>
<em>出团公司</em>
<el-select filterable v-model='msg.OutBranchId'
<el-select filterable v-model='msg.RB_Branch_Id'
@change='handleCurrentChange(1)'>
<el-option label="不限" :value="-1" :key="-1"></el-option>
<el-option
......@@ -49,7 +49,7 @@
</li>
<li>
<em>期数</em>
<el-select v-model="msg.PeriodId" size="mini" @change="handleCurrentChange(1)" filterable>
<el-select v-model="msg.PeriodsId" size="mini" @change="handleCurrentChange(1)" filterable>
<el-option label="不限" :value="-1"></el-option>
<el-option v-for="(item,index) in PeroidsList" :key="item.index" :label="item.Periods"
:value="item.ID"></el-option>
......@@ -57,7 +57,7 @@
</li>
<li>
<em>所属公司</em>
<el-select filterable v-model='msg.RB_Branch_Id'
<el-select filterable v-model='msg.EmBranchId'
@change='getDepartment();handleCurrentChange(1)' :disabled="disabled">
<el-option label="不限" :value="-1" :key="-1"></el-option>
<el-option
......@@ -149,6 +149,7 @@
<tr>
<th style="width: 100px;">出团公司</th>
<th style="width: 80px;">类型</th>
<th style="width: 150px;">团/订单ID</th>
<th style="width: 150px;">团号</th>
<th style="width: 100px;">所属公司</th>
......@@ -168,7 +169,11 @@
<tr v-for="item in dataList">
<td>{{item.OutBranchName?item.OutBranchName:'-'}}</td>
<td>{{item.OrderTypeName}}</td>
<td><span class="cursor-p" :style="{'color': !disabled?'#409EFF':''}" v-if="item.TCNUM" @click="!disabled?goTuanDetails(item):''">{{item.TCNUM}}({{item.TCID}})</span></td>
<td>
<span class="cursor-p" :style="{'color': !disabled?'#409EFF':''}" @click="clickUrl(item)">{{item.TCID}}</span>
</td>
<td><span class="cursor-p" :style="{'color': !disabled?'#409EFF':''}" v-if="item.TCNUM"
@click="!disabled?goTuanDetails(item):''">{{item.TCNUM}}</span></td>
<td>{{item.BranchName?item.BranchName:'-'}}</td>
<td>{{item.DeptName?item.DeptName:'-'}}</td>
<td>{{item.UserName}}</td>
......@@ -206,14 +211,13 @@
pageIndex: 1,
pageSize: 20,
EmployeeId: -1,
PeriodId: -1,
OrderId:'',
PeriodsId: -1,
OrderType: -1,
Way: -1,
TCNUM: '',
RB_Department_Id: -1,//部门ID
RB_Branch_Id: -1,//公司ID
OutBranchId: -1,//出团公司ID
EmBranchId: -1,//公司ID
RB_Branch_Id: -1,//出团公司ID
},
loading: false,
//数据源
......@@ -226,9 +230,9 @@
TotalNum: 0,
disabled: true,
WayTypeList:[
{name:'不限',Id:'-1'},
{name:'人头奖励',Id:'1'},
{name:'利润比例',Id:'2'}
{Name:'不限',Id:'-1'},
{Name:'人头奖励',Id:'1'},
{Name:'利润比例',Id:'2'}
],
titleList:[
{name:'不限',id:'-1'},
......@@ -281,17 +285,16 @@
}
}
this.msg.PeriodId = this.$route.query.PeriodId?Number(this.$route.query.PeriodId):-1
this.msg.OrderId = this.$route.query.OrderId?this.$route.query.OrderId:''
this.msg.OutBranchId = this.$route.query.OutBranchId?Number(this.$route.query.OutBranchId):-1
this.msg.RB_Branch_Id = this.$route.query.RB_Branch_Id?Number(this.$route.query.RB_Branch_Id):Number(userInfo.RB_Branch_id)
this.msg.PeriodsId = this.$route.query.PeriodId?Number(this.$route.query.PeriodId):-1
this.msg.RB_Branch_Id = this.$route.query.OutBranchId?Number(this.$route.query.OutBranchId):-1
this.msg.EmBranchId = this.$route.query.RB_Branch_Id?Number(this.$route.query.RB_Branch_Id):Number(userInfo.RB_Branch_id)
this.msg.EmployeeId = this.$route.query.UserId?Number(this.$route.query.UserId):Number(userInfo.EmployeeId)
if (ActionMenuCode.indexOf('S_CheckBranchOrder') != -1
||ActionMenuCode.indexOf('S_CheckAllOrder')!=-1
||ActionMenuCode.indexOf('F_Query_AllIncomPay')!=-1) {//是否有看所有人的权限
this.disabled = false;
this.msg.OutBranchId = this.$route.query.OutBranchId?Number(this.$route.query.OutBranchId):-1
this.msg.RB_Branch_Id = this.$route.query.RB_Branch_Id?Number(this.$route.query.RB_Branch_Id):-1
this.msg.RB_Branch_Id = this.$route.query.OutBranchId?Number(this.$route.query.OutBranchId):-1
this.msg.EmBranchId = this.$route.query.RB_Branch_Id?Number(this.$route.query.RB_Branch_Id):-1
// this.msg.RB_Department_Id = -1
this.msg.EmployeeId = this.$route.query.UserId?Number(this.$route.query.UserId):-1
}else{
......@@ -301,7 +304,7 @@
},
methods: {
GetOrderTypeEnumList() {
this.apipost("CarSingle_post_GetOrderTypeEnumList", {}, (res) => {
this.apipost("opcommission_GetOrderTypeEnumList", {}, (res) => {
if (res.data.resultCode == 1) {
this.OrderTypeList = res.data.data;
} else {
......@@ -326,10 +329,17 @@
},
goTuanDetails(row) {
let name = ''
if (row.IsOneDayOrder == 1) {
name = 'groupTourOrderByTuanOne'
} else {
name = 'groupTourOrderByTuan'
// if (row.IsOneDayOrder == 1) {
// name = 'groupTourOrderByTuanOne'
// } else {
// name = 'groupTourOrderByTuan'
// }
if (row.TravelType == 0) {//正常团
name = 'TravelControlList'
}else if (row.TravelType == 2) {//当地团
name = 'oneDayTrip'
} else {//小包团
name = 'TravelControlListSale'
}
this.$router.push({
name: name,
......@@ -340,29 +350,9 @@
}
});
},
clickUrl(row,type){
let data = [{
path: "",
OrderId: row.OrderId,
Type: '',
PeriodId: this.msg.PeriodId
}]
let href
let url = this.domainManager().crmRoutingUrl;
if (row.OrderType == 1) {
if (!this.S_CheckBranchOrder && !this.S_CheckAllOrder) {
data[0].path = 'myCustomerOrderAllType'
} else {
data[0].path = 'customerOrderAllType'
}
href = url + 'automaticLogin?token=' + this.getLocalStorage().token + '&data=' + JSON.stringify(data)
window.open(href);
} else {
clickUrl(row){
let name = ''
if (row.OrderType == 6) {
if (row.OrderType == 5) {//签证
if (!this.S_CheckBranchOrder && !this.S_CheckAllOrder) {
name = 'VisaProductEditOrder'
} else {
......@@ -371,29 +361,29 @@
this.$router.push({
name: name,
});
} else if (row.OrderType == 2) { //跟团 一日游
if (!this.S_CheckBranchOrder && !this.S_CheckAllOrder) {
if (row.TravelType == 1) {
name = 'groupTourOrder'
} else {
name = 'groupTourOrderOne'
}
} else {
name = 'enrollTotal'
} else if (row.OrderType == 1||row.OrderType == 6) { //跟团 一日游 团签
// if (!this.S_CheckBranchOrder && !this.S_CheckAllOrder) {}
if (row.TravelType == 0) {//正规团
name = 'TravelControlList'
}else if (row.TravelType == 2) {//当地游
name = 'oneDayTrip'
}else if (row.TravelType == 1) {//小包团
name = 'TravelControlListSale'
}
} else if (row.OrderType == 3) { //酒店
} else if (row.OrderType == 2) { //酒店
if (!this.S_CheckBranchOrder && !this.S_CheckAllOrder) {
name = 'singleProductHotelOrder'
} else {
name = 'singleProductHotelOrderOP'
}
} else if (row.OrderType == 4) { //门票
} else if (row.OrderType == 3) { //门票
if (!this.S_CheckBranchOrder && !this.S_CheckAllOrder) {
name = 'SingleticketOrderList'
} else {
name = 'SingleticketOrderListOP'
}
} else if (row.OrderType == 5) { //包车
} else if (row.OrderType == 4) { //包车
if(row.CarType==''||row.CarType==null){
this.GetAdminCarOrderPageList(row,url,href,data)
}else{
......@@ -404,33 +394,26 @@
}
data[0].Type = row.CarType==null||!row.CarType?4:row.CarType
}
} else if (row.OrderType == 7) { //jalan酒店
this.$message.info('jalan酒店暂不支持查看')
// if(!this.S_CheckBranchOrder && !this.S_CheckAllOrder){
// name = 'CharterOrderList'
// }else{
// name = 'CharterOrderListOP'
// }
}
if (name) {
this.$router.push({
name: name,
query: {
OrderId: row.OrderId,
PeriodId: this.msg.PeriodId,
OrderId: row.TCID,
tcmun: row.TCNUM,
PeriodId: this.msg.PeriodsId,
blank: "y",
}
});
}
}
},
GetAdminCarOrderPageList(row, url, href, data) {
let msg = {
pageIndex: 1,
pageSize: 5,
OrderType: '',
OrderId: row.OrderId,
OrderId: row.TCID,
OrderNo: '',
SurName: '',
Name: '',
......@@ -460,7 +443,7 @@
this.$router.push({
name: name,
query: {
OrderId: row.OrderId,
OrderId: row.TCID,
OrderType: OrderType ? OrderType : 4,
blank: "y",
}
......@@ -490,7 +473,7 @@
if (res.data.resultCode == 1) {
this.PeroidsList = res.data.data;
if(!this.$route.query.PeriodId){
this.msg.PeriodId = this.PeroidsList[0].Id
this.msg.PeriodsId = this.PeroidsList[0].Id
}
this.getList()
} else {
......
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