Commit 62a76786 authored by 黄奎's avatar 黄奎

11

parent 8e3bb35b
...@@ -865,7 +865,7 @@ tr._item_list td:last-child { ...@@ -865,7 +865,7 @@ tr._item_list td:last-child {
{{scope.row.DMCNUM}} {{scope.row.DMCNUM}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="" :label="$t('fnc.ysjine')" "> <el-table-column prop="" :label="$t('fnc.ysjine')">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="teamRevenRep2"> <span class="teamRevenRep2">
<span style="cursor: pointer" v-if="scope.row.DataType===1" <span style="cursor: pointer" v-if="scope.row.DataType===1"
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
.tripPlanTab tr th, .tripPlanTab tr th,
.tripPlanTab tr td { .tripPlanTab tr td {
border: 1px solid gray; border: 1px solid gray;
text-align: center; text-align: center;
padding-left: 1px; padding-left: 1px;
padding-right: 1px; padding-right: 1px;
...@@ -35,6 +35,17 @@ ...@@ -35,6 +35,17 @@
</el-date-picker> </el-date-picker>
</span> </span>
</li> </li>
<li>
<span><em>公司</em>
<el-select v-model="msg.BusCompany" filterable :placeholder="$t('pub.pleaseSel')" clearable
@clear="getCarList(),getList()" @change="getCarList(),getList()" :disabled="!isHaveAuth">
<el-option label="永樂車行(東京)" :value="1248" :key="1248">
</el-option>
<el-option label="永樂車行(大阪)" :value="1256" :key="1256" v>
</el-option>
</el-select>
</span>
</li>
<li> <li>
<span><em></em> <span><em></em>
<el-select v-model="msg.CarId" filterable :placeholder="$t('pub.pleaseSel')" clearable @clear="getList()" <el-select v-model="msg.CarId" filterable :placeholder="$t('pub.pleaseSel')" clearable @clear="getList()"
...@@ -76,7 +87,12 @@ ...@@ -76,7 +87,12 @@
<template v-for="(subItem,subIndex) in item.DayList"> <template v-for="(subItem,subIndex) in item.DayList">
<tr :key="`d1_`+index+`s1_`+subIndex"> <tr :key="`d1_`+index+`s1_`+subIndex">
<td :rowspan="item.DayList.length*2" v-if="subIndex==0"> <td :rowspan="item.DayList.length*2" v-if="subIndex==0">
{{item.CarName}}({{item.CarSeatNum}}座) {{item.CarName}}({{item.CarSeatNum}}座)<br />
<font style="color:blue">{{item.CarNo}}</font>
<template v-if="item.BusStateName!='正常'">
<br />
<font style="color:red">{{item.BusStateName}}</font>
</template>
</td> </td>
<template v-for="(childItem,childIndex) in subItem"> <template v-for="(childItem,childIndex) in subItem">
<td :key="`d1_`+index+`s1_`+subIndex+`d1`+childIndex"> <td :key="`d1_`+index+`s1_`+subIndex+`d1`+childIndex">
...@@ -109,14 +125,28 @@ ...@@ -109,14 +125,28 @@
:key="`d2_`+index+`s2_`+subIndex+`d2`+childIndex"> :key="`d2_`+index+`s2_`+subIndex+`d2`+childIndex">
<el-tooltip <el-tooltip
:content="(childItem.OrderType==1?`常规订单:`:`包车订单:`)+childItem.OrderId+`,用车时间:`+childItem.StartDateStr+`至`+childItem.EndDateStr"> :content="(childItem.OrderType==1?`常规订单:`:`包车订单:`)+childItem.OrderId+`,用车时间:`+childItem.StartDateStr+`至`+childItem.EndDateStr">
<font :style="{color: childItem.Income>0?'#29b6f6':'#000000'}"> <template v-if="isHaveAuth">
<template v-if="childItem.TCNUM"> <font :style="{color: childItem.Income>0?'#29b6f6':'#000000'}" @click="goToBus(childItem)"
{{childItem.TCNUM}} style="cursor:pointer;">
</template> <template v-if="childItem.TCNUM">
<template v-else> {{childItem.TCNUM}}
{{childItem.OrderTCNUM}} </template>
</template> <template v-else>
</font> {{childItem.OrderTCNUM}}
</template>
</font>
</template>
<template v-else>
<font :style="{color: childItem.Income>0?'#29b6f6':'#000000'}">
<template v-if="childItem.TCNUM">
{{childItem.TCNUM}}
</template>
<template v-else>
{{childItem.OrderTCNUM}}
</template>
</font>
</template>
</el-tooltip> </el-tooltip>
</td> </td>
</template> </template>
...@@ -146,6 +176,7 @@ ...@@ -146,6 +176,7 @@
MonthStr: "", MonthStr: "",
CarId: "", CarId: "",
QOrderId: "", QOrderId: "",
BusCompany: "", //车公司
}, },
headerList: [], //表头 headerList: [], //表头
dataList: [], dataList: [],
...@@ -157,14 +188,28 @@ ...@@ -157,14 +188,28 @@
isShowEditPlanDialog: false, //是否显示新增修改 isShowEditPlanDialog: false, //是否显示新增修改
dialogTitle: "", dialogTitle: "",
carList: [], carList: [],
isHaveAuth: false,
} }
}, },
components: { components: {
editTripPlan editTripPlan
}, },
methods: { methods: {
//跳转到车订单
goToBus(item) {
let carUrl = this.domainManager().CarUrl;
var nPath = "CarOrders/" + item.OrderId
var that = this;
this.apipost("travel_temp_token", {}, res => {
if (res.data.resultCode == 1) {
let newUrl = carUrl + "/auth/autologin?tk=" + res.data.data + "&gpath=" + nPath;
window.open(newUrl)
}
})
},
//获取车辆列表 //获取车辆列表
getCarList() { getCarList() {
var carMsg = {}
this.apipost("travel_post_GetJapanCarList", {}, res => { this.apipost("travel_post_GetJapanCarList", {}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.carList = res.data.data; this.carList = res.data.data;
...@@ -256,6 +301,14 @@ ...@@ -256,6 +301,14 @@
}, },
}, },
mounted() { mounted() {
var userInfo = this.getLocalStorage();
if (userInfo.EmployeeId == 1 || userInfo.EmployeeId == 5 || userInfo.RB_Branch_id == 49 || userInfo
.RB_Branch_id == 1248 || userInfo.RB_Branch_id == 1256) {
this.isHaveAuth = true;
}
if (!this.isHaveAuth) {
this.msg.BusCompany = 1248;
}
let myDate = new Date(); let myDate = new Date();
let yearStr = myDate.getFullYear(); let yearStr = myDate.getFullYear();
let monthStr = parseInt(myDate.getMonth() + 1); let monthStr = parseInt(myDate.getMonth() + 1);
......
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