Commit 2010ac94 authored by youjie's avatar youjie

no message

parent 408523b0
......@@ -56,7 +56,7 @@
</li>
<li>
<em>人员</em>
<el-select v-model="msg.EmpId" size="mini" @change="handleCurrentChange(1)" filterable>
<el-select v-model="msg.EmpId" size="mini" @change="handleCurrentChange(1)" filterable :disabled="disabled">
<el-option label="不限" :value="-1"></el-option>
<el-option label="微途" :value="-2"></el-option>
<el-option v-for="(item,index) in searchList" :key="item.index" :label="item.name"
......@@ -118,14 +118,16 @@
<!-- <td></td> -->
<td>{{item.PostName?item.PostName:'-'}}</td>
<td>{{item.EmName}}</td>
<td><span class="cursor-p" @click="clickUrl(item,1)">{{item.OrderId}}</span></td>
<td><span class="cursor-p" @click="!disabled?clickUrl(item,1):''">{{item.OrderId}}</span></td>
<td>{{item.OrderTypeName}}</td>
<td style="font-size: 12px;" :style="{'cursor':item.TCID?'pointer':''}" @click="item.TCID?goTravel(item.TCID):''">{{item.TCNUM?item.TCNUM:'-'}}
<td style="font-size: 12px;" :style="{'cursor':item.TCID?'pointer':''}"
@click="!disabled&&item.TCID?goTravel(item.TCID):''">
{{item.TCNUM?item.TCNUM:'-'}}
<p v-if="item.OutBranchName">{{item.OutBranchName?item.OutBranchName:'-'}}</p>
</td>
<td>{{item.LineName?item.LineName:'-'}}</td>
<td>{{item.PeopleNum?item.PeopleNum:''}}
<template v-if="item.PeopleNum>0">/</template>
<template v-if="item.TCID>0">/</template>
<template v-if="item.TCID>0">{{item.TCGuestNum}}</template></td>
<td><template v-if="item.TCID>0">{{item.TCProfit?item.TCProfit:'-'}}</template>
<template v-else>-</template>
......@@ -196,13 +198,14 @@
searchList: [],
TotalMoney: 0,
TotalNum: 0,
disabled: true,
titleList:[
{name:'不限',id:'-1'},
{name:'引流',id:'2'},
{name:'销售',id:'1'}
],
S_CheckBranchOrder:false,
S_CheckAllOrder:false,
disabled: true,
}
},
mounted() {
......@@ -219,6 +222,20 @@
this.msg.EmpType = this.$route.query.EmpType
}
}
// 判断是否销售
if (ActionMenuCode.indexOf('S_CheckBranchOrder') != -1) {
this.S_CheckBranchOrder = true
}
if (ActionMenuCode.indexOf('S_CheckAllOrder') != -1) {
this.S_CheckAllOrder = true
}
if (ActionMenuCode.indexOf('S_CheckBranchOrder') != -1
||ActionMenuCode.indexOf('S_CheckAllOrder')!=-1
||ActionMenuCode.indexOf('F_Query_AllIncomPay')!=-1) {//是否有看所有人的权限
this.disabled = false;
}else{
this.disabled = true;
}
},
methods: {
GetOrderTypeEnumList() {
......@@ -230,12 +247,20 @@
}
});
},
clickUrl(item,type){
if(type==2){//线索
this.$router.push({
name: 'erpCustomerOrderDayOP',
query: {
blank: 'y',
OrderId: item.OrderId
}
});
// if(type==2){//线索
}else{
this.OrderStatistics(item)
}
// }else{
// this.OrderStatistics(item)
// }
},
// 订单统计
OrderStatistics(item){
......
......@@ -612,21 +612,20 @@
},
},
created() {
if(this.$route.query.OrderId){
this.msg.OrderId=this.$route.query.OrderId
}
let userInfo=this.getLocalStorage();
this.employeeMsg.GroupId = userInfo.RB_Group_id; //集团ID
// this.msg.EnterID = userInfo.EmployeeId;
},
mounted() {
this.Title = this.pagesTitle
if(this.Title!='销售'){
this.getEmployee()
}
this.msg.StartTime = this.getBeforeDate(0, new Date())
this.msg.EndTime = this.getBeforeDate(0, new Date())
this.DatelistBM = [new Date(this.msg.StartTime),new Date()]
if(this.$route.query.OrderId){
this.msg.OrderId=this.$route.query.OrderId
this.msg.StartTime = ''
this.msg.EndTime = ''
this.DatelistBM = []
this.msg.OrderState = '0'
}
if(this.$route.query.DepartSTime){
this.msg.DepartSTime=this.$route.query.DepartSTime
this.msg.DepartETime=this.$route.query.DepartETime
......@@ -635,6 +634,13 @@
this.msg.EndTime = ''
this.DatelistBM = []
this.DatelistUse = [this.msg.DepartSTime,this.msg.DepartETime]
this.msg.OrderState = '0'
}
},
mounted() {
this.Title = this.pagesTitle
if(this.Title!='销售'){
this.getEmployee()
}
// this.GetOrderStatusEnumList()//订单状态
// this.GetTicketStatusEnumList()//出票状态
......
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