Commit 54b64673 authored by huangyuanyuan's avatar huangyuanyuan

提交订单中心

parent ba8e3e9e
...@@ -352,32 +352,32 @@ export default { ...@@ -352,32 +352,32 @@ export default {
position: absolute; position: absolute;
top:8px; top:8px;
} }
.orderPay .div_2 p span:nth-child(2){ .pay_vue .orderPay .div_2 p span:nth-child(2){
float: right; float: right;
} }
.orderPay .div_2 { .pay_vue .orderPay .div_2 {
margin-top: 20px; margin-top: 20px;
width: 320px; width: 320px;
} }
.orderPay .div_2 p{ .pay_vue .orderPay .div_2 p{
padding:6px 0; padding:6px 0;
margin:20px 0; margin:20px 0;
font-size: 12px; font-size: 12px;
color:#333; color:#333;
border-bottom:1px solid rgba(221,221,221,1); border-bottom:1px solid rgba(221,221,221,1);
} }
.orderPay .div_1 img{ .pay_vue .orderPay .div_1 img{
width: 54px; width: 54px;
height:54px; height:54px;
position: absolute; position: absolute;
} }
.orderPay .div_1{ .pay_vue .orderPay .div_1{
position: relative; position: relative;
box-sizing: border-box; box-sizing: border-box;
} }
.orderPay{ .pay_vue .orderPay{
padding-top:130px; padding-top:130px;
padding-left:150px; padding-left:150px;
margin:30px auto; margin:30px auto;
...@@ -387,7 +387,7 @@ export default { ...@@ -387,7 +387,7 @@ export default {
box-shadow:0px 4px 38px 0px rgba(107,107,107,0.2); box-shadow:0px 4px 38px 0px rgba(107,107,107,0.2);
box-sizing: border-box; box-sizing: border-box;
} }
.orderPay .back{ .pay_vue .orderPay .back{
position: absolute; position: absolute;
width: 384px; width: 384px;
height: 289px; height: 289px;
......
...@@ -233,9 +233,13 @@ ...@@ -233,9 +233,13 @@
<span v-else-if="item.status === 3">待付款</span> <span v-else-if="item.status === 3">待付款</span>
</td> </td>
<td> <td>
<p v-if="item.status === 3" style="margin-bottom:10px;"> <p v-if="item.status === 1 || item.status === 3" style="margin-bottom:10px;">
<el-button @click="Pay(item)" size="mini" type="danger">查看详情</el-button> <el-button @click="Pay(item)" size="mini" type="danger">支付</el-button>
</p> </p>
<!-- <p v-if="item.status === 3" style="margin-bottom:10px;">
<el-button @click="Pay(item)" size="mini" type="danger">查看详情</el-button>
</p> -->
<p v-if="item.status === 1 || item.status === 3" style="margin-bottom:10px;"> <p v-if="item.status === 1 || item.status === 3" style="margin-bottom:10px;">
<el-button size="mini">取消订单</el-button> <el-button size="mini">取消订单</el-button>
</p> </p>
......
...@@ -216,14 +216,23 @@ ...@@ -216,14 +216,23 @@
width="200" width="200"
trigger="click"> trigger="click">
<ul> <ul>
<li class="__item"> <li v-for="(guest,index) in item.guestList" :key="index+500" class="__item">
<div class="img"> <div class="img">
</div> </div>
<div class="__info"> <div class="__info">
<p class="__name color333">李健国 <i class="iconfont icon-nan"></i></p> <p class="__name color333">{{guest.name}}
<p class="color666">13880879660</p> <i v-if="guest.sex==1" class="iconfont icon-nan"></i>
<p class="color666">房号:403 单人间</p> <i v-if="guest.sex==2" class="iconfont icon-xingbie-nv"></i>
</p>
<p class="color666">{{guest.mobilePhone}}</p>
<p class="color666">房号:
<span v-if="guest.houseType==1">单间</span>
<span v-if="guest.houseType==2">标准双人间</span>
<span v-if="guest.houseType==3">大床房</span>
<span v-if="guest.houseType==4">三人间</span>
<span v-if="guest.houseType==5">拼凑双人间</span>
</p>
</div> </div>
</li> </li>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</template> </template>
</ul> </ul>
<!-- 表格 --> <!-- 表格 -->
<TCTable :tableData="tableData" v-on:queryDays="queryDays"/> <TCTable v-loading="orderLoading" :tableData="tableData" v-on:queryDays="queryDays"/>
<div class="empty-data" v-if="tableData.length<1"> <div class="empty-data" v-if="tableData.length<1">
<i class="iconfont icon-kong"></i> <i class="iconfont icon-kong"></i>
...@@ -43,7 +43,7 @@ export default { ...@@ -43,7 +43,7 @@ export default {
return { return {
activeName: -1, activeName: -1,
currentPage: 1, currentPage: 1,
rderLoading: false, orderLoading: false,
totalCount: 1, totalCount: 1,
Count: 1, Count: 1,
WaitDealOrderPageList: "", WaitDealOrderPageList: "",
......
...@@ -8,13 +8,13 @@ ...@@ -8,13 +8,13 @@
<template v-for="item in TitList"> <template v-for="item in TitList">
<li <li
class="__cp" class="__cp"
@click="handleClick(item)" @click="handleClick(item)" :key="item.ID"
:class="{_active: activeName === item.ID}" :class="{_active: activeName === item.ID}"
>{{item.Type}}</li> >{{item.Type}}</li>
</template> </template>
</ul> </ul>
<!-- 表格 --> <!-- 表格 -->
<TCTable :tableData ="tableData"/> <TCTable v-loading="orderLoading" :tableData ="tableData" v-on:queryDays="queryDays"/>
<div class="empty-data" v-if="tableData.length<1"> <div class="empty-data" v-if="tableData.length<1">
<i class="iconfont icon-kong"></i> <i class="iconfont icon-kong"></i>
很抱歉,你想要的信息我们真的找不到了 很抱歉,你想要的信息我们真的找不到了
...@@ -41,7 +41,7 @@ export default { ...@@ -41,7 +41,7 @@ export default {
return { return {
activeName: -1, activeName: -1,
currentPage: 1, currentPage: 1,
rderLoading: false, orderLoading: false,
totalCount: 1, totalCount: 1,
Count: 1, Count: 1,
WaitDealOrderPageList: "", WaitDealOrderPageList: "",
...@@ -78,22 +78,6 @@ export default { ...@@ -78,22 +78,6 @@ export default {
Type: "取消", Type: "取消",
ID: 5 ID: 5
} }
// {
// val: 6,
// lable: '等待商家确认'
// },
// {
// val: 7,
// lable: '退款中'
// },
// {
// val: 8,
// lable: '退款成功'
// },
// {
// val: 9,
// lable: '交易完成'
// },
], ],
tableData: [] tableData: []
}; };
...@@ -109,6 +93,11 @@ export default { ...@@ -109,6 +93,11 @@ export default {
this.b2b_get_GetWaitDealOrderPageList(); this.b2b_get_GetWaitDealOrderPageList();
}, },
methods: { methods: {
queryDays(val){
this.getOrderMsg.queryDays=val;
this.gerOrderList();
},
b2b_get_GetWaitDealOrderPageList() { b2b_get_GetWaitDealOrderPageList() {
//获取待处理订单 //获取待处理订单
let msg = { let msg = {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</template> </template>
</ul> </ul>
<!-- 表格 --> <!-- 表格 -->
<TCTable :tableData="tableData" v-on:queryDays="queryDays"/> <TCTable v-loading="orderLoading" :tableData="tableData" v-on:queryDays="queryDays"/>
<div class="empty-data" v-if="tableData.length<1"> <div class="empty-data" v-if="tableData.length<1">
<i class="iconfont icon-kong"></i> <i class="iconfont icon-kong"></i>
...@@ -43,7 +43,7 @@ export default { ...@@ -43,7 +43,7 @@ export default {
return { return {
activeName: -1, activeName: -1,
currentPage: 1, currentPage: 1,
rderLoading: false, orderLoading: false,
totalCount: 1, totalCount: 1,
Count: 1, Count: 1,
WaitDealOrderPageList: "", WaitDealOrderPageList: "",
...@@ -80,22 +80,6 @@ export default { ...@@ -80,22 +80,6 @@ export default {
Type: "取消", Type: "取消",
ID: 5 ID: 5
} }
// {
// val: 6,
// lable: '等待商家确认'
// },
// {
// val: 7,
// lable: '退款中'
// },
// {
// val: 8,
// lable: '退款成功'
// },
// {
// val: 9,
// lable: '交易完成'
// },
], ],
tableData: [] tableData: []
}; };
...@@ -113,7 +97,6 @@ export default { ...@@ -113,7 +97,6 @@ export default {
}, },
methods: { methods: {
queryDays(val){ queryDays(val){
console.log("val",val)
this.getOrderMsg.queryDays=val; this.getOrderMsg.queryDays=val;
this.gerOrderList(); this.gerOrderList();
......
...@@ -9,13 +9,13 @@ ...@@ -9,13 +9,13 @@
<template v-for="item in TitList"> <template v-for="item in TitList">
<li <li
class="__cp" class="__cp"
@click="handleClick(item)" @click="handleClick(item)" :key="item.ID"
:class="{_active: activeName === item.ID}" :class="{_active: activeName === item.ID}"
>{{item.Type}}</li> >{{item.Type}}</li>
</template> </template>
</ul> </ul>
<!-- 表格 --> <!-- 表格 -->
<NewTKtable :tableData="tableData"/> <NewTKtable v-loading="orderLoading" :tableData="tableData"/>
<div class="empty-data" v-if="tableData.length<1"> <div class="empty-data" v-if="tableData.length<1">
<i class="iconfont icon-kong"></i> <i class="iconfont icon-kong"></i>
很抱歉,你想要的信息我们真的找不到了 很抱歉,你想要的信息我们真的找不到了
...@@ -42,7 +42,7 @@ export default { ...@@ -42,7 +42,7 @@ export default {
return { return {
activeName: -1, activeName: -1,
currentPage: 1, currentPage: 1,
rderLoading: false, orderLoading: false,
totalCount: 1, totalCount: 1,
Count: 1, Count: 1,
WaitDealOrderPageList: "", WaitDealOrderPageList: "",
......
...@@ -8,13 +8,13 @@ ...@@ -8,13 +8,13 @@
<template v-for="item in TitList"> <template v-for="item in TitList">
<li <li
class="__cp" class="__cp"
@click="handleClick(item)" @click="handleClick(item)" :key="item.ID"
:class="{_active: activeName === item.ID}" :class="{_active: activeName === item.ID}"
>{{item.Type}}</li> >{{item.Type}}</li>
</template> </template>
</ul> </ul>
<!-- 表格 --> <!-- 表格 -->
<TCTable :tableData="tableData"/> <TCTable v-loading="orderLoading" :tableData="tableData" v-on:queryDays="queryDays"/>
<div class="empty-data" v-if="tableData.length<1"> <div class="empty-data" v-if="tableData.length<1">
<i class="iconfont icon-kong"></i> <i class="iconfont icon-kong"></i>
很抱歉,你想要的信息我们真的找不到了 很抱歉,你想要的信息我们真的找不到了
...@@ -41,7 +41,7 @@ export default { ...@@ -41,7 +41,7 @@ export default {
return { return {
activeName: -1, activeName: -1,
currentPage: 1, currentPage: 1,
rderLoading: false, orderLoading: false,
totalCount: 1, totalCount: 1,
Count: 1, Count: 1,
WaitDealOrderPageList: "", WaitDealOrderPageList: "",
...@@ -110,6 +110,11 @@ export default { ...@@ -110,6 +110,11 @@ export default {
this.b2b_get_GetWaitDealOrderPageList(); this.b2b_get_GetWaitDealOrderPageList();
}, },
methods: { methods: {
queryDays(val){
this.getOrderMsg.queryDays=val;
this.gerOrderList();
},
b2b_get_GetWaitDealOrderPageList() { b2b_get_GetWaitDealOrderPageList() {
//获取待处理订单 //获取待处理订单
let msg = { let msg = {
...@@ -135,9 +140,10 @@ export default { ...@@ -135,9 +140,10 @@ export default {
"/api/b2b/user/getrecentorder", "/api/b2b/user/getrecentorder",
this.getOrderMsg, this.getOrderMsg,
res => { res => {
console.log("自由行订单",res);
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.tableData = res.data.data.pageData; this.tableData = res.data.data.pageData;
console.log("自由行订单",this.tableData);
this.totalCount = res.data.data.pageCount; this.totalCount = res.data.data.pageCount;
this.Count = res.data.data.count; this.Count = res.data.data.count;
this.orderLoading = false; this.orderLoading = false;
......
...@@ -636,7 +636,7 @@ export default { ...@@ -636,7 +636,7 @@ export default {
this.priceList.forEach((x, i)=>{ this.priceList.forEach((x, i)=>{
if(x.startDate==this.chosenObj.startDate){ if(x.startDate==this.chosenObj.startDate){
this.priceFlight=x this.priceFlight=x
let msg = {configId:this.priceList[i].configIDDes, cityId:this.city, preview:this.pre, tcid:this.priceList[i].tcid} let msg = {configId:this.priceList[i].configIDDes, cityId:this.city, preview:this.pre, tcid:this.priceList[i].tcid,teamType:2}
this.getDataT(msg, 2) this.getDataT(msg, 2)
this.getUnicos(this.priceList[i].tcid) this.getUnicos(this.priceList[i].tcid)
} }
...@@ -949,7 +949,8 @@ export default { ...@@ -949,7 +949,8 @@ export default {
configId: this.ID, configId: this.ID,
cityId: city, cityId: city,
preview: this.pre, preview: this.pre,
tcid: this.tcid tcid: this.tcid,
teamType:2
}; };
this.getData(msg, days); this.getData(msg, days);
}); });
...@@ -965,7 +966,7 @@ export default { ...@@ -965,7 +966,7 @@ export default {
let priceList = data.priceList; let priceList = data.priceList;
for ( let i = 0; i < priceList.length; i++) { for ( let i = 0; i < priceList.length; i++) {
if (days===priceList[i].startDate){ if (days===priceList[i].startDate){
let msg = {configId:priceList[i].configIDDes, cityId:this.city, preview:this.pre, tcid:priceList[i].tcid} let msg = {configId:priceList[i].configIDDes, cityId:this.city, preview:this.pre, tcid:priceList[i].tcid,teamType:2}
this.getDataT(msg) this.getDataT(msg)
} }
} }
......
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