Commit 51a4b95f authored by youjie's avatar youjie

no message

parent 199ae380
......@@ -141,7 +141,7 @@
<script>
import OrderList from './OrderList.vue';
export default {
props:['pagesTitle','type','OrderId'],
props:['pagesTitle','dataObj'],
components: { OrderList },
data() {
return {
......@@ -206,14 +206,14 @@
pagesTitle(val,oldval){
this.Title = val
},
type(val,oldval){
this.msg.OrderType = val
dataObj:{
handler(val, oldVal) {
this.msg.OrderType = val.tab
this.msg.OrderId = val.OrderId
this.GetList()
},
OrderId(val,oldval){
this.msg.OrderId = val
this.GetList()
},
},
deep: true,
}
},
methods: {
getEmployee() { //员工
......
......@@ -342,7 +342,7 @@
<div class="row-c">
<div>
<div
class="orderType cf fz12 active"
class="orderType cf fz12 activeB"
>
行程用车
</div>
......@@ -919,8 +919,8 @@
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="isShowPrice = false">取 消</el-button>
<el-button type="primary" @click="submitTripBusOffer('drivermsg')">确 定</el-button>
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="driverdetermine">确 定</el-button>
</span>
</el-dialog>
</div>
......
......@@ -5,16 +5,16 @@
<div>
<el-tabs v-model="tab" @tab-click="handleClick">
<el-tab-pane label="团队订单" name="0">
<TeamOrder :pagesTitle="pagesTitle"></TeamOrder>
<TeamOrder :pagesTitle="pagesTitle" :OrderId="OrderId"></TeamOrder>
</el-tab-pane>
<el-tab-pane label="接机订单" name="1">
<BookAcarOrder :pagesTitle="pagesTitle" :type="tab"></BookAcarOrder>
<BookAcarOrder :pagesTitle="pagesTitle" :dataObj="dataObj"></BookAcarOrder>
</el-tab-pane>
<el-tab-pane label="送机订单" name="2">
<BookAcarOrder :pagesTitle="pagesTitle" :type="tab"></BookAcarOrder>
<BookAcarOrder :pagesTitle="pagesTitle" :dataObj="dataObj"></BookAcarOrder>
</el-tab-pane>
<el-tab-pane label="包车订单" name="3">
<BookAcarOrder :pagesTitle="pagesTitle" :type="tab"></BookAcarOrder>
<BookAcarOrder :pagesTitle="pagesTitle" :dataObj="dataObj"></BookAcarOrder>
</el-tab-pane>
</el-tabs>
</div>
......@@ -27,17 +27,31 @@
data() {
return {
pagesTitle: '销售',
tab:'1'
tab:'1',
OrderId: '',
dataObj:{
tab:'1',
OrderId: 0,
}
};
},
watch: {
pagesTitle(val,oldval){
}
},
// dataObj:{
// handler(val, oldVal) {
// this.dataObj.OrderType = val.tab
// this.dataObj.OrderId = val.OrderId
// },
// deep: true,
// immediate: true,
// }
},
methods: {
handleClick(tab, event){
this.tab = tab.name
this.dataObj.tab = tab.name
}
},
created() {
......@@ -45,9 +59,15 @@
},
mounted() {
if(this.$route.query.OrderType){
this.OrderId = this.$route.query.OrderId
this.tab = this.$route.query.OrderType
this.dataObj.OrderId = this.$route.query.OrderId
this.dataObj.tab = this.$route.query.OrderType
}else{
this.tab = '0'
this.OrderId = 0
this.dataObj.OrderId = 0
this.dataObj.tab = '1'
}
},
};
......
<style>
</style>
</style>
<template>
<div>
<el-tabs v-model="tab" @tab-click="handleClick">
<el-tab-pane label="团队订单" name="0">
<TeamOrder></TeamOrder>
</el-tab-pane>
<el-tab-pane label="接机订单" name="1">
<BookAcarOrder :pagesTitle="pagesTitle" :type="tab"></BookAcarOrder>
</el-tab-pane>
<el-tab-pane label="送机订单" name="2">
<BookAcarOrder :pagesTitle="pagesTitle" :type="tab"></BookAcarOrder>
</el-tab-pane>
<el-tab-pane label="包车订单" name="3">
<BookAcarOrder :pagesTitle="pagesTitle" :type="tab"></BookAcarOrder>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import BookAcarOrder from './components/BookAcarOrder.vue';
import TeamOrder from '../../busManagement/tripBusOrder.vue';
export default {
components: { TeamOrder,BookAcarOrder },
data() {
return {
pagesTitle: 'OP',
tab:'1'
};
},
watch: {
pagesTitle(val,oldval){
}
},
methods: {
handleClick(tab, event){
this.tab = tab.name
<template>
<div>
<el-tabs v-model="tab" @tab-click="handleClick">
<el-tab-pane label="团队订单" name="0">
<TeamOrder :pagesTitle="pagesTitle" :OrderId="OrderId"></TeamOrder>
</el-tab-pane>
<el-tab-pane label="接机订单" name="1">
<BookAcarOrder :pagesTitle="pagesTitle" :dataObj="dataObj"></BookAcarOrder>
</el-tab-pane>
<el-tab-pane label="送机订单" name="2">
<BookAcarOrder :pagesTitle="pagesTitle" :dataObj="dataObj"></BookAcarOrder>
</el-tab-pane>
<el-tab-pane label="包车订单" name="3">
<BookAcarOrder :pagesTitle="pagesTitle" :dataObj="dataObj"></BookAcarOrder>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import BookAcarOrder from './components/BookAcarOrder.vue';
import TeamOrder from '../../busManagement/tripBusOrder.vue';
export default {
components: { TeamOrder,BookAcarOrder },
data() {
return {
pagesTitle: 'OP',
tab:'1',
OrderId: '',
dataObj:{
tab:'1',
OrderId: 0,
}
},
created() {
};
},
watch: {
pagesTitle(val,oldval){
},
mounted() {
if(this.$route.query.OrderType){
this.tab = this.$route.query.OrderType
}else{
this.tab = '0'
}
},
};
// dataObj:{
// handler(val, oldVal) {
// this.dataObj.OrderType = val.tab
// this.dataObj.OrderId = val.OrderId
// },
// deep: true,
// immediate: true,
// }
},
methods: {
handleClick(tab, event){
this.tab = tab.name
this.dataObj.tab = tab.name
}
},
created() {
},
mounted() {
if(this.$route.query.OrderType){
this.OrderId = this.$route.query.OrderId
this.tab = this.$route.query.OrderType
this.dataObj.OrderId = this.$route.query.OrderId
this.dataObj.tab = this.$route.query.OrderType
}else{
this.tab = '0'
this.OrderId = 0
this.dataObj.OrderId = 0
this.dataObj.tab = '1'
}
},
};
</script>
</script>
<style>
<style>
</style>
</style>
......@@ -398,6 +398,7 @@
},
OrderId(val,oldval){
this.msg.OrderId = val
this.getList()
},
},
methods: {
......
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