Commit 57b48df1 authored by huangyuanyuan's avatar huangyuanyuan

update

parent 36a1f833
......@@ -162,14 +162,18 @@
<el-form-item label="中文名" :prop="'GuestList.'+index+'.Name'" :rules="[{required: true, message: '名不能为空', trigger: 'blur'}]">
<el-input size="small" v-model="item.Name"></el-input>
</el-form-item>
<el-form-item label="护照信息" :prop="'GuestList.'+index+'.PassportNo'" :rules="[{ required: true, message: '请输入护照信息', trigger: 'blur' }]">
<el-input size="small" v-model="item.PassportNo"></el-input>
<el-form-item label="手机号" :prop="'GuestList.'+index+'.MobilePhone'" :rules="[{required: true, message: '电话号码不能为空', trigger: 'blur'},{ required: true, trigger: 'blur', pattern: /^1[3|4|5|7|8|9][0-9]\d{8}$/ ,message: '请填写正确的手机号'}]">
<el-input size="small" v-model="item.MobilePhone"></el-input>
</el-form-item>
<el-form-item label="出生日期" :prop="'GuestList.'+index+'.Birthday'" :rules="[{ type: 'string', required: true, message: '请选择日期', trigger: 'change' }]">
<el-date-picker size="small" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" v-model="item.Birthday" style="width: 100%;"></el-date-picker>
</el-form-item>
<el-form-item label="手机号" :prop="'GuestList.'+index+'.MobilePhone'" :rules="[{required: true, message: '电话号码不能为空', trigger: 'blur'},{ required: true, trigger: 'blur', pattern: /^1[3|4|5|7|8][0-9]\d{8}$/ ,message: '请填写正确的手机号'}]">
<el-input size="small" v-model="item.MobilePhone"></el-input>
<el-form-item label="护照信息" :prop="'GuestList.'+index+'.PassportNo'" :rules="[{ required: true, message: '请输入护照信息', trigger: 'blur' }]">
<el-input size="small" v-model="item.PassportNo"></el-input>
</el-form-item>
<el-form-item label="护照过期时间" :prop="'GuestList.'+index+'.PassportExpiry'" :rules="[{ type: 'string', required: true, message: '请选择日期', trigger: 'change' }]">
<el-date-picker size="small" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" v-model="item.PassportExpiry" style="width: 100%;"></el-date-picker>
</el-form-item>
<el-form-item label="国籍">
<el-select style="width:100%" size="small" v-model="item.Nationality" filterable placeholder="请选择国籍">
......@@ -182,9 +186,7 @@
<el-radio label="2" value="2"></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="护照过期时间" :prop="'GuestList.'+index+'.PassportExpiry'" :rules="[{ type: 'string', required: true, message: '请选择日期', trigger: 'change' }]">
<el-date-picker size="small" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" v-model="item.PassportExpiry" style="width: 100%;"></el-date-picker>
</el-form-item>
</el-col>
</div>
</el-form>
......@@ -198,7 +200,7 @@
<el-form-item label="联系人" prop="ContactName" :rules="{ required: true, message: '请输入联系人姓名', trigger: 'blur' }">
<el-input size="small" v-model="personNum.ContactName"></el-input>
</el-form-item>
<el-form-item label="手机号" prop="ContactMobile" :rules="[{ required: true, message: '请输入联系电话', trigger: 'blur' },{ required: true, trigger: 'blur', pattern: /^1[3|4|5|7|8][0-9]\d{8}$/ ,message: '请填写正确的手机号'}]">
<el-form-item label="手机号" prop="ContactMobile" :rules="[{ required: true, message: '请输入联系电话', trigger: 'blur' },{ required: true, trigger: 'blur', pattern: /^1[3|4|5|7|8|9][0-9]\d{8}$/ ,message: '请填写正确的手机号'}]">
<el-input size="small" v-model="personNum.ContactMobile"></el-input>
</el-form-item>
<el-form-item label="邮箱" prop="ContactEmail" :rules="[{ required: true, message: '请输入邮箱地址', trigger: 'blur' },{ type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }]">
......@@ -219,7 +221,7 @@
<p class="total" style="margin-top:12px">
<span>总价</span>
<span style="font-size:20px;font-weight:400;color:rgba(255,255,255,1);margin:0 15px;">{{personNum.PreferPrice| priceFormat}}</span>
<span @click="submitForm('personNum')" style="cursor: pointer;;height:32px;background:rgba(238,68,84,1);border-radius:4px;color:#fff;padding:4px 15px">同意以上协议条款,提交订单</span>
<span :loading="submitLoad" @click="submitForm('personNum')" style="cursor: pointer;;height:32px;background:rgba(238,68,84,1);border-radius:4px;color:#fff;padding:4px 15px">同意以上协议条款,提交订单</span>
</p>
</div>
......@@ -235,6 +237,7 @@ export default {
},
data () {
return {
submitLoad:false,
personnums:true,
personNum:{
ManNum:0,
......@@ -287,7 +290,6 @@ export default {
this.apiJavaPost('/api/dmc/airticket/getB2BAirticketInfo',{AirTicketId:this.AirTicketId},res=>{
if (res.data.resultCode == 1) {
this.getlistSigel=res.data.data;
console.log("this.getlistSigel",this.getlistSigel)
this.getlistSigel.synum=this.getlistSigel.airTicketScatterNum-this.getlistSigel.useScatterNum;
this.flightList=this.getlistSigel.flightList;
......@@ -427,11 +429,14 @@ export default {
}
});
if(status1&&status2){
this.submitLoad=true;
this.personNum.CustomerId=this.userInfo.customerId;
this.personNum.PlaceOrderFrom=1;
this.apipost(
"sellorder_post_SetOrderInfoForAirTicket", this.personNum,
res => {
this.submitLoad=false;
if (res.data.resultCode == 1) {
this.personNum={};
this.$router.push({
......
......@@ -11,8 +11,8 @@
<div style="margin-left:50px">
<p style="font-size:14px;font-weight:600">
订单提交成功!剩余支付时间
<span style="color:#FF680B;font-size:18px">{{time_15}}</span>
订单提交成功!
<!-- <span style="color:#FF680B;font-size:18px">剩余支付时间{{time_15}}</span> -->
</p>
<p style="font-size:12px">请您在
......@@ -104,7 +104,7 @@
<p style="font-size:24px;color:#333;font-weight:700">订单支付成功!</p>
<!-- <p v-if="!payok" style="font-size:24px;color:#333;font-weight:700">订单支付失败!</p> -->
<p style="font-size:12px;color:#333">如有疑问 可致电028-565464646,点击
<router-link to="/AirlineTicketOrder" style="color:#ee4454;text-decoration:underline">查看订单>></router-link>
<router-link to="/newPersonalCenter?key=8-1" style="color:#ee4454;text-decoration:underline">查看订单>></router-link>
</p>
</div>
</div>
......@@ -198,7 +198,7 @@ export default {
this.code.total_fee=this.Commoditydetails.preferPrice+'';
this.code.body=this.Commoditydetails.description;
this.code.attach=`${this.Commoditydetails.costType}|${this.Commoditydetails.customerName}|${this.AirOrderId}|${this.Commoditydetails.customerId}|${this.Commoditydetails.outBranchId}`
this.Time15();
// this.Time15();
this.Code('3');
}else if (res.data.resultCode == 0){
......@@ -473,7 +473,7 @@ export default {
.pay_vue .head {
padding: 4px 0;
position: relative;
overflow: auto;
height: 40px;
}
.payvue_content {
min-height:479px;
......
......@@ -254,7 +254,7 @@
<!-- <img src="../../assets/img/ticket/banner.png" alt=""> -->
</div>
<div class="yh" style="background:#fff">
<div @click="GoUrl(item)" v-for="(item,key) in yhList" :key="key" style="cursor:pointer">
<div v-if="key<8" @click="GoUrl(item)" v-for="(item,key) in yhList" :key="key" style="cursor:pointer">
<img :src="item.airlineUrl" alt="">
<div class="list_content">
<p class="des" style="padding-top:26px;">
......
<template>
<div class="CustomizedList">
<el-form class="form" ref="form" :model="form" label-width="75px">
<!-- <el-form class="form" ref="form" :model="form" label-width="75px">
<el-form-item label="订单号">
<el-input size="small" v-model="form.id" placeholder="请输入订单号"></el-input>
......@@ -19,7 +19,7 @@
<el-button @click="List" style="background:#EE4454;color:#fff" size="mini">查询</el-button>
</el-form-item>
</el-form>
</el-form> -->
<el-row>
<ul class="clearfix">
<template v-for="item in TitList">
......@@ -29,6 +29,17 @@
:class="{_active: activeName === item.ID}"
>{{item.Type}}</li>
</template>
<el-dropdown trigger="click" @command="handleCommandTwo">
<span class="el-dropdown-link">
{{dropTitTwo}}
<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown">
<template v-for="item in dayList">
<el-dropdown-item :command="item" :key="item.Day">{{item.Day}}</el-dropdown-item>
</template>
</el-dropdown-menu>
</el-dropdown>
</ul>
<!-- <div class="changestatus">
<span :class="{'span_active':form.status==0}" @click="ChangeStatus(0)">全部订单</span>
......@@ -38,26 +49,26 @@
</div> -->
</el-row>
<el-table :header-cell-style="getRowClass"
<el-table :header-cell-style="getRowClass"
v-loading="loading"
:data="tableData"
stripe
style="width: 100%;box-sizing:border-box">
<el-table-column
prop="id"
prop="orderId"
label="订单ID">
</el-table-column>
<el-table-column min-width="150px"
label="机票信息">
<template slot-scope="scope">
<p>
<span v-if="scope.row.airModel.ticketType==2" class="ticket_num"></span>
<span>{{scope.row.airModel.goStartCityName}}-{{scope.row.airModel.goEndCityName}}</span>
<span v-if="scope.row.airticket.ticketType==2" class="ticket_num"></span>
<span>{{scope.row.airticket.goStartCityName}}-{{scope.row.airticket.goEndCityName}}</span>
<!-- -->
</p>
<p v-if="scope.row.airModel.ticketType==2">
<p v-if="scope.row.airticket.ticketType==2">
<span class="ticket_num"></span>
<span>{{scope.row.airModel.backStartCityName}}-{{scope.row.airModel.backEndCityName}}</span>
<span>{{scope.row.airticket.backStartCityName}}-{{scope.row.airticket.backEndCityName}}</span>
<!-- -->
</p>
</template>
......@@ -66,9 +77,9 @@
label="旅客">
<template slot-scope="scope">
<el-tooltip class="item" effect="dark" placement="bottom-start">
<span slot="content" v-for="(guest,index) in scope.row.guestList" :key="guest.name">{{guest.name}}<span v-if="index<scope.row.guestList.length-1"></span></span>
<span slot="content" v-if="index<2" v-for="(guest,index) in scope.row.guestList" :key="index">{{guest.name}}<span v-if="index<scope.row.guestList.length-1"></span></span>
<p style="cursor:pointer">
<span v-for="(guest,index) in scope.row.guestList" :key="guest.name" >
<span v-for="(guest,index) in scope.row.guestList" :key="index+100" >
<span v-if="index<3">{{guest.name}}<span v-if="index<scope.row.guestList.length-1"></span> </span></span>
<span v-if="scope.row.guestList.length>2"><span style="text-decoration:underline">{{scope.row.guestList.length}}</span></span>
</p>
......@@ -80,7 +91,7 @@
label="行程信息">
<template slot-scope="scope">
<p>
行程有效期:{{scope.row.airModel.goFlightTime}} {{scope.row.airModel.goStartHouseTime}}
行程有效期:{{scope.row.airticket.goFlightTime}} {{scope.row.airticket.goStartHouseTime}}
</p>
<p>
下单时间:{{scope.row.createTime}}
......@@ -92,7 +103,8 @@
label="付款信息">
<template slot-scope="scope">
<p>实付金额:¥{{scope.row.preferPrice | priceFormat}}</p>
<p>总金额:¥{{scope.row.preferPrice | priceFormat}}</p>
<p>实付金额:¥{{scope.row.customerPayMoney | priceFormat}}</p>
<p>退款金额:¥{{scope.row.refund | priceFormat}}</p>
</template>
</el-table-column>
......@@ -102,14 +114,14 @@
<template slot-scope="scope">
<div style="cursor:pointer">
<p v-if="scope.row.refundStatus!=1">
<!-- <p v-if="scope.row.refundStatus!=1">
<span v-if="scope.row.refundStatus==2">退款中</span>
<span v-if="scope.row.refundStatus==3">已退款</span>
</p>
<p v-else>
<span v-if="scope.row.status==1">正常</span>
<span v-if="scope.row.status==2">取消</span>
<span v-if="scope.row.status==3">待付款</span>
</p> -->
<p>
<span v-if="scope.row.orderState==1">待付款</span>
<span v-if="scope.row.orderState==2">正常</span>
<span v-if="scope.row.orderState==3">取消</span>
</p>
</div>
<!-- <p @click="OrderDes(scope.row)" style="color:#DDDDDD;cursor:pointer">订单详情</p> -->
......@@ -119,11 +131,11 @@
<el-table-column label="操作">
<template slot-scope="scope">
<el-button v-show="scope.row.status==3"
<el-button v-show="scope.row.orderState==1"
size="mini" style="border:1px solid #EE4454;color:#EE4454"
@click="handlePay(scope.$index, scope.row)">去付款</el-button>
<el-button v-show="scope.row.status==1 && scope.row.refundStatus==1"
size="mini" @click="TuiKuan(scope.$index, scope.row)" type="primary">退款</el-button>
<!-- <el-button v-show="scope.row.status==1 && scope.row.refundStatus==1"
size="mini" @click="TuiKuan(scope.$index, scope.row)" type="primary">退款</el-button> -->
</template>
</el-table-column>
</el-table>
......@@ -148,15 +160,15 @@ export default {
ID: 0
},
{
Type: "正常",
Type: "待付款",
ID: 1
},
{
Type: "取消",
Type: "正常",
ID: 2
},
{
Type: "待付款",
Type: "取消",
ID: 3
}
],
......@@ -164,25 +176,55 @@ export default {
provideItem:[],
tableData:[],
form:{
id:'',
status:0,
startTime:'',
endTime:'',
// id:'',
// status:0,
// startTime:'',
// endTime:'',
pageIndex:1,
pageSize:10,
time:[],
// time:[],
queryDays:10,
orderState:0,
customerId:0,
},
loading:false,
dropTitTwo: "10天内",
dayList: [
{
Day: "10天",
Number: 10,
ID: 1
},
{
Day: "30天",
Number: 30,
ID: 1
},
{
Day: "60天",
Number: 60,
ID: 1
}
],
}
},
created(){
let userInfo=this.getLocalStorage()
this.form.customerId=userInfo.customerId;
},
mounted() {
this.List();
},
methods: {
handleCommandTwo(command) {
this.dropTitTwo = command.Day;
this.form.queryDays = command.Number;
this.List();
},
handleClick(item) {
this.activeName = item.ID;
this.form.status = item.ID;
this.form.orderState = item.ID;
this.List();
},
handleCurrentChange(val){
......@@ -242,10 +284,11 @@ export default {
this.List();
},
handlePay(index,row){
this.$router.push({
name: "Pay",
query: {
id: row.id,
id: row.orderId,
}
});
},
......@@ -260,18 +303,19 @@ export default {
},
List(){
this.loading=true;
if(this.form.time){
this.form.startTime=this.form.time[0];
this.form.endTime=this.form.time[1];
}else{
this.form.time=[];
this.form.startTime="";
this.form.endTime="";
}
this.apiJavaPost('/api/dmc/airticket/GetB2BAirtickOrderPageList',this.form,res=>{
// if(this.form.time){
// this.form.startTime=this.form.time[0];
// this.form.endTime=this.form.time[1];
// }else{
// this.form.time=[];
// this.form.startTime="";
// this.form.endTime="";
// }
this.apiJavaPost('/api/b2b/user/getAirTicketOrder',this.form,res=>{
this.loading=false;
if(res.data.resultCode==1){
this.tableData=res.data.data.pageData;
console.log("this.tableData",this.tableData)
this.totalCount=res.data.data.count;
}else{
this.Error(res.data.message);
......
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