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

11

parent 8e3bb35b
......@@ -865,7 +865,7 @@ tr._item_list td:last-child {
{{scope.row.DMCNUM}}
</template>
</el-table-column>
<el-table-column prop="" :label="$t('fnc.ysjine')" ">
<el-table-column prop="" :label="$t('fnc.ysjine')">
<template slot-scope="scope">
<span class="teamRevenRep2">
<span style="cursor: pointer" v-if="scope.row.DataType===1"
......
......@@ -7,7 +7,7 @@
.tripPlanTab tr th,
.tripPlanTab tr td {
border: 1px solid gray;
text-align: center;
padding-left: 1px;
padding-right: 1px;
......@@ -35,6 +35,17 @@
</el-date-picker>
</span>
</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>
<span><em></em>
<el-select v-model="msg.CarId" filterable :placeholder="$t('pub.pleaseSel')" clearable @clear="getList()"
......@@ -76,7 +87,12 @@
<template v-for="(subItem,subIndex) in item.DayList">
<tr :key="`d1_`+index+`s1_`+subIndex">
<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>
<template v-for="(childItem,childIndex) in subItem">
<td :key="`d1_`+index+`s1_`+subIndex+`d1`+childIndex">
......@@ -109,14 +125,28 @@
:key="`d2_`+index+`s2_`+subIndex+`d2`+childIndex">
<el-tooltip
:content="(childItem.OrderType==1?`常规订单:`:`包车订单:`)+childItem.OrderId+`,用车时间:`+childItem.StartDateStr+`至`+childItem.EndDateStr">
<font :style="{color: childItem.Income>0?'#29b6f6':'#000000'}">
<template v-if="childItem.TCNUM">
{{childItem.TCNUM}}
</template>
<template v-else>
{{childItem.OrderTCNUM}}
</template>
</font>
<template v-if="isHaveAuth">
<font :style="{color: childItem.Income>0?'#29b6f6':'#000000'}" @click="goToBus(childItem)"
style="cursor:pointer;">
<template v-if="childItem.TCNUM">
{{childItem.TCNUM}}
</template>
<template v-else>
{{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>
</td>
</template>
......@@ -146,6 +176,7 @@
MonthStr: "",
CarId: "",
QOrderId: "",
BusCompany: "", //车公司
},
headerList: [], //表头
dataList: [],
......@@ -157,14 +188,28 @@
isShowEditPlanDialog: false, //是否显示新增修改
dialogTitle: "",
carList: [],
isHaveAuth: false,
}
},
components: {
editTripPlan
},
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() {
var carMsg = {}
this.apipost("travel_post_GetJapanCarList", {}, res => {
if (res.data.resultCode == 1) {
this.carList = res.data.data;
......@@ -256,6 +301,14 @@
},
},
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 yearStr = myDate.getFullYear();
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