Commit a9e13571 authored by 黄奎's avatar 黄奎
parents 215b28f2 f42727b2
...@@ -389,7 +389,9 @@ ...@@ -389,7 +389,9 @@
<p>附加说明: <span class="fr" v-if="GetDetail.ComplainID > 0" @click="goComplain('ComplaintsDetail', GetDetail.ComplainID,GetDetail.OrderID)"> <p>附加说明: <span class="fr" v-if="GetDetail.ComplainID > 0" @click="goComplain('ComplaintsDetail', GetDetail.ComplainID,GetDetail.OrderID)">
<span style="color:#000">投诉单号:</span> <span class="cursorpointer text-decoration">{{GetDetail.ComplainID}}</span></span> <span style="color:#000">投诉单号:</span> <span class="cursorpointer text-decoration">{{GetDetail.ComplainID}}</span></span>
<span v-if="GetDetail.TemplateId==28 || GetDetail.TemplateId==30" @click="Gourl" style="cursor: pointer;float: right;color: #000;font-size: 14px;text-decoration: underline;">提成详情</span> <span v-if="GetDetail.TemplateId==28 || GetDetail.TemplateId==30" @click="Gourl" style="cursor: pointer;float: right;color: #000;font-size: 14px;text-decoration: underline;">提成详情</span>
</p> <span v-if="CostTypeState" @click="GourlCostType('VisitRecord',1)" style="margin:0 10px;cursor: pointer;float: right;color: #000;font-size: 14px;text-decoration: underline;">拜访记录</span>
<span v-if="CostTypeState" @click="GourlCostType('yingyanMap',2)" style="cursor: pointer;float: right;color: #000;font-size: 14px;text-decoration: underline;">鹰眼轨迹</span>
</p>
<table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;margin-top:15px;" width="100%" v-if="GetDetail.TCIDAndTCNUMList.length>0"> <table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;margin-top:15px;" width="100%" v-if="GetDetail.TCIDAndTCNUMList.length>0">
<tr v-for="(o,ox) in GetDetail.TCIDAndTCNUMList" class="_fujiashuoming_tr"> <tr v-for="(o,ox) in GetDetail.TCIDAndTCNUMList" class="_fujiashuoming_tr">
<td :colspan="4" v-if="GetDetail.Is_Merge===1">单据号:{{o.FinanceId}}</td> <td :colspan="4" v-if="GetDetail.Is_Merge===1">单据号:{{o.FinanceId}}</td>
...@@ -907,7 +909,8 @@ export default { ...@@ -907,7 +909,8 @@ export default {
isChongDi: false, isChongDi: false,
ChongDiList: [], ChongDiList: [],
danjuType: '', danjuType: '',
showModel: false showModel: false,
CostTypeState:false,
} }
},components:{ },components:{
'my-FlowChartModule': myFlowChartModule, 'my-FlowChartModule': myFlowChartModule,
...@@ -931,6 +934,19 @@ export default { ...@@ -931,6 +934,19 @@ export default {
let userinfo = this.getLocalStorage(); let userinfo = this.getLocalStorage();
this.bossID = userinfo.EmployeeId; this.bossID = userinfo.EmployeeId;
},methods:{ },methods:{
GourlCostType(path,num){
console.log("path",path);
console.log("this.GetDetail",this.GetDetail.CreateBy)
this.$router.push({
name: path,
query: {
blank: "y",
EmployeeId:this.GetDetail.CreateBy,
}
});
},
Gourl(){ Gourl(){
this.$router.push({ this.$router.push({
name: 'CommissionManagement', name: 'CommissionManagement',
...@@ -1351,6 +1367,15 @@ export default { ...@@ -1351,6 +1367,15 @@ export default {
this.FrID = this.GetDetail.FrID; this.FrID = this.GetDetail.FrID;
this.SourceID = this.GetDetail.SourceID; this.SourceID = this.GetDetail.SourceID;
this.Callback = this.GetDetail.Callback; this.Callback = this.GetDetail.Callback;
if(this.GetDetail.DetailList.length>0){
this.GetDetail.DetailList.forEach(item=>{
if(item.CostTypeName=="差旅费"){
this.CostTypeState=true;
}
})
}
// 拼接团号显示团信息 // 拼接团号显示团信息
let str = ''; let str = '';
if(data.TCIDList.length>0){ if(data.TCIDList.length>0){
......
...@@ -146,7 +146,12 @@ export default { ...@@ -146,7 +146,12 @@ export default {
tripDistance:'', tripDistance:'',
name:'', name:'',
DepartName:'', DepartName:'',
PostName:'', PostName:'',
visitMsg:{
pageIndex:1,
pageSize:1000,
empId:0,
},
} }
},methods:{ },methods:{
getYingyan(){ getYingyan(){
...@@ -176,7 +181,7 @@ export default { ...@@ -176,7 +181,7 @@ export default {
console.log(date) console.log(date)
}, },
getVisitLineList(){ getVisitLineList(){
this.apipost('app_get_visit_line_list',{},res=>{ this.apipost('app_get_visit_line_list',this.visitMsg,res=>{
if(res.data.resultCode==1){ if(res.data.resultCode==1){
this.VisitLineList = res.data.data.pageData this.VisitLineList = res.data.data.pageData
if(this.VisitLineList.length>0){ if(this.VisitLineList.length>0){
...@@ -363,6 +368,9 @@ export default { ...@@ -363,6 +368,9 @@ export default {
map.style.border = "none" map.style.border = "none"
}, },
},mounted(){ },mounted(){
if(this.$route.query.EmployeeId){
this.visitMsg.empId=this.$route.query.EmployeeId;
}
let userInfo=this.getLocalStorage() let userInfo=this.getLocalStorage()
this.name=userInfo.emName this.name=userInfo.emName
this.headIcon=userInfo.Icon this.headIcon=userInfo.Icon
...@@ -370,6 +378,7 @@ export default { ...@@ -370,6 +378,7 @@ export default {
this.DepartName=userInfo.DepartName this.DepartName=userInfo.DepartName
this.PostName=userInfo.PostName this.PostName=userInfo.PostName
this.getVisitLineList() this.getVisitLineList()
} }
} }
</script> </script>
...@@ -76,7 +76,8 @@ ...@@ -76,7 +76,8 @@
<p style="margin:14px 0; padding: 0 14px; "> <p style="margin:14px 0; padding: 0 14px; ">
<el-input class='w272' placeholder="请输入员工姓名查询" v-model="filterText"><i slot="prefix" class="el-input__icon el-icon-search"></i> </el-input> <el-input class='w272' placeholder="请输入员工姓名查询" v-model="filterText"><i slot="prefix" class="el-input__icon el-icon-search"></i> </el-input>
</p> </p>
<div class="yingyanMetacont"> <!-- -->
<div v-if="FinalYingYan" class="yingyanMetacont">
<div style="margin-bottom:70px;"> <div style="margin-bottom:70px;">
<el-tree :data='trackTreeData' ref="tree" :filter-node-method="filterNode" :props="defaultProps"> <el-tree :data='trackTreeData' ref="tree" :filter-node-method="filterNode" :props="defaultProps">
<span class="custom-tree-node" style="width: 100%;" slot-scope="{ node, data }"> <span class="custom-tree-node" style="width: 100%;" slot-scope="{ node, data }">
...@@ -179,6 +180,8 @@ ...@@ -179,6 +180,8 @@
onlinePerson: 0, onlinePerson: 0,
gettrackPageIndex:0, gettrackPageIndex:0,
getlistIndex:0, getlistIndex:0,
FinalYingYan:true,
datainfo:{},
} }
}, },
beforeDestroy() { beforeDestroy() {
...@@ -198,8 +201,26 @@ ...@@ -198,8 +201,26 @@
FileSizeFormat(value) { FileSizeFormat(value) {
return(value / 1000).toFixed(2) + 'Km' return(value / 1000).toFixed(2) + 'Km'
} }
},
created(){
}, },
methods: { methods: {
getPerson(id) {
this.apipost('admin_get_EmployeeGet', {
Id: id
}, res => {
if(res.data.resultCode == 1) {
console.log(res.data.data)
this.datainfo=res.data.data;
this.filterText=this.datainfo.EmName;
let obj={};
obj.Phone=this.datainfo.EmLoginMobile
this.getPersonList(obj);
}
}, err => {})
},
toggleDiv(){ toggleDiv(){
if(this.isToggle==1){ if(this.isToggle==1){
this.isToggle=2 this.isToggle=2
...@@ -465,9 +486,10 @@ ...@@ -465,9 +486,10 @@
} }
}); });
}, },
// 轨迹请求
getPersonList(obj) { getPersonList(obj) {
this.entity_name = obj.Phone this.entity_name = obj.Phone;
console.log("this.dateTime",this.dateTime)
let timestamp = new Date(this.dateTime) let timestamp = new Date(this.dateTime)
let start_time = timestamp.getTime() / 1000 let start_time = timestamp.getTime() / 1000
let end_time = start_time + 86400 let end_time = start_time + 86400
...@@ -487,7 +509,7 @@ ...@@ -487,7 +509,7 @@
let url = this.keys + '&entity_name=' + obj.Phone + '&start_time=' + start_time + '&end_time=' + end_time +'&page_size=5000&is_processed=' + this.isjiuzheng + let url = this.keys + '&entity_name=' + obj.Phone + '&start_time=' + start_time + '&end_time=' + end_time +'&page_size=5000&is_processed=' + this.isjiuzheng +
'&process_option=' + canshu + ',transport_mode=' + this.transportMode; '&process_option=' + canshu + ',transport_mode=' + this.transportMode;
this.gettrackPage(url); this.gettrackPage(url);
console.log(url); console.log("url",url);
this.Point = [] this.Point = []
}, },
gettrackPage(url){ gettrackPage(url){
...@@ -513,8 +535,16 @@ ...@@ -513,8 +535,16 @@
}, },
getPersonListByTime() { getPersonListByTime() {
this.filterText=''
this.getTrackTreeData() if(this.$route.query.EmployeeId){
let obj={};
obj.Phone=this.datainfo.EmLoginMobile
this.getPersonList(obj);
}
else{
this.filterText=''
this.getTrackTreeData();
}
}, },
formatDate(now) { formatDate(now) {
...@@ -566,7 +596,9 @@ ...@@ -566,7 +596,9 @@
map.addOverlay(curve); map.addOverlay(curve);
} }
if(this.markersList.length > 0&& this.mapType==1) { if(this.markersList.length > 0&& this.mapType==1) {
this.personData.forEach(person => { this.personData.forEach(person => {
let item = this.markersList.find(markers => markers.entity_name == person.entity_name) let item = this.markersList.find(markers => markers.entity_name == person.entity_name)
if(item) { if(item) {
let myIcon = new BMap.Icon(this.domainManager().ViittoFileUrl+"/Upload/Icon/Common/positioning.png", new BMap.Size(32,40)); let myIcon = new BMap.Icon(this.domainManager().ViittoFileUrl+"/Upload/Icon/Common/positioning.png", new BMap.Size(32,40));
...@@ -753,6 +785,13 @@ ...@@ -753,6 +785,13 @@
this.intervalid = setInterval(() => { this.intervalid = setInterval(() => {
this.getlist() this.getlist()
}, 60000) }, 60000)
if(this.$route.query.EmployeeId){
let id=this.$route.query.EmployeeId;
this.FinalYingYan=false;
this.getPerson(id);
this.mapType=2;
}
} }
} }
</script> </script>
......
...@@ -444,6 +444,10 @@ ...@@ -444,6 +444,10 @@
} else if (_orderSource === 5 && _type === 2) { } else if (_orderSource === 5 && _type === 2) {
id = [49, 50, 57, 58] id = [49, 50, 57, 58]
} }
// 门票
else if (_orderSource === 3 && _type === 2) {
id = [88, 89]
}
TCIDARR.push(this.$route.query.id) TCIDARR.push(this.$route.query.id)
let orderObj = { let orderObj = {
OrderID: 0, OrderID: 0,
......
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