Commit c1fa2ee8 authored by youjie's avatar youjie

签证订单

parent 5bb41d5d
...@@ -137,9 +137,9 @@ ...@@ -137,9 +137,9 @@
</button> --> </button> -->
<!-- #endif --> <!-- #endif -->
<!-- #ifdef MP-ALIPAY --> <!-- #ifdef MP-ALIPAY -->
<view v-if="item.orderState == 2" class="jz_Zailai" style="width: 110rpx; margin-right: 10rpx" @click.stop="goZhifuAli(item)">付款</view> <!-- <view class="jz_Zailai" style="width: 110rpx; margin-right: 10rpx" @click.stop="goZhifuAli(item)">付款</view> -->
<!-- #endif --> <!-- #endif -->
<view v-if="item.isApplyForCancel != 1 && item.visaOrderStatus != 3 && item.customerPayMoney==0" class="jz_Zailai" <view v-if="item.visaOrderStatus!=2&&item.income==0" class="jz_Zailai"
style="width: 110rpx" @click.stop="goCancel(item)">取消</view> style="width: 110rpx" @click.stop="goCancel(item)">取消</view>
</view> </view>
</view> </view>
...@@ -246,9 +246,9 @@ ...@@ -246,9 +246,9 @@
//获取订单状态名称 //获取订单状态名称
getOrderStateName(item) { getOrderStateName(item) {
var str = "待付款"; var str = "待付款";
if (item.orderState == 1) { if (item.visaOrderStatus == 1&&item.income>0) {
str = "已付款" str = "已付款"
} else if (item.orderState == 3) { } else if (item.visaOrderStatus == 2) {
str = "已取消" str = "已取消"
} }
return str; return str;
...@@ -335,47 +335,32 @@ ...@@ -335,47 +335,32 @@
}, },
//取消订单 //取消订单
goCancel(item) { goCancel(item) {
//未付款-调用后台取消 let that = this
if ( wx.showModal({
(item.paymentTime == null || item.paymentTime == "") && title: '提示',
item.orderState == 2 content: '确定取消订单?',
) { success: (tip) => {
this.apipost( if (tip.confirm) {
"sellorder_post_B2BRemoveOrder", { that.apipost(
ID: item.orderId, "b2c_get_SetB2BOrderCancel", {
}, OrderId: item.id,
(res) => { OrderSource: 5
if (res.resultCode == 1) { },
uni.showToast({ (res) => {
title: "操作成功", if (res.resultCode == 1) {
icon: "success", uni.showToast({
}); title: "操作成功",
this.research(); icon: "success",
} });
}, that.research();
(err) => {} }
); },
} else { (err) => {}
let msg = { );
OrderId: item.orderId, }
UserId: uni.getStorageSync("mall_UserInfo").UserId, }
}; })
//已付款取消申请
this.apipost(
"sellorder_post_AppletUserCancelOrder",
msg,
(res) => {
if (res.resultCode == 1) {
uni.showToast({
title: "操作成功",
icon: "success",
});
this.research();
} else {}
},
null
);
}
}, },
//付款 //付款
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
......
...@@ -474,7 +474,6 @@ ...@@ -474,7 +474,6 @@
<view class="visaProductNum visaProductNumR column"> <view class="visaProductNum visaProductNumR column">
<view class="visaProductNum_Title">入境日期</view> <view class="visaProductNum_Title">入境日期</view>
<picker class="visaProductTetx" mode="date" <picker class="visaProductTetx" mode="date"
:start-date="startDate"
:value="orderMsg.EnterCountryTime" @change="bindDateChange" :value="orderMsg.EnterCountryTime" @change="bindDateChange"
> >
<view class="row-sbas-n items-center"> <view class="row-sbas-n items-center">
...@@ -498,21 +497,19 @@ ...@@ -498,21 +497,19 @@
</view> </view>
</view> </view>
<view class="row visaProductNumBox"> <view class="row visaProductNumBox">
<view class="visaProductNum column"> <!-- <view class="visaProductNum column">
<view class="visaProductNum_Title">请输入名</view> <view class="visaProductNum_Title">请输入名</view>
<view class="row-sbas-n items-center"> <view class="row-sbas-n items-center">
<input class="visaProductTetx" v-model="customer.customerName" /> <input class="visaProductTetx" v-model="customer.customerName" />
</view> </view>
</view> </view> -->
<view class="visaProductNum visaProductNumR column"> <view class="visaProductNum column">
<view class="visaProductNum_Title">请输入姓</view> <view class="visaProductNum_Title">请输入姓</view>
<view class="row-sbas-n items-center"> <view class="row-sbas-n items-center">
<input class="visaProductTetx" v-model="customer.name" /> <input class="visaProductTetx" v-model="customer.name" />
</view> </view>
</view> </view>
</view> <view class="visaProductNum visaProductNumR column">
<view class="row visaProductNumBox">
<view class="visaProductNum column">
<view class="visaProductNum_Title">国家/地区</view> <view class="visaProductNum_Title">国家/地区</view>
<view class="row-sbas-n items-center" @click="CountryType=1,showCountry=true"> <view class="row-sbas-n items-center" @click="CountryType=1,showCountry=true">
<view class="visaProductCount">{{ optionsTitle[0] }}</view> <view class="visaProductCount">{{ optionsTitle[0] }}</view>
...@@ -521,7 +518,9 @@ ...@@ -521,7 +518,9 @@
color="black" size="30" /> color="black" size="30" />
</view> </view>
</view> </view>
<view class="visaProductNum visaProductNumR column"> </view>
<view class="row visaProductNumBox">
<view class="visaProductNum column">
<view class="visaProductNum_Title">电话 <view class="visaProductNum_Title">电话
<text style="font-weight: bold;font-size: 20rpx;color: #B99846;"> <text style="font-weight: bold;font-size: 20rpx;color: #B99846;">
{{ customer.PhoneCountryStr }} {{ customer.PhoneCountryStr }}
...@@ -531,15 +530,16 @@ ...@@ -531,15 +530,16 @@
<input class="visaProductTetx" v-model="customer.contactNumber" /> <input class="visaProductTetx" v-model="customer.contactNumber" />
</view> </view>
</view> </view>
</view> <view class="visaProductNum visaProductNumR column">
<view class="row visaProductNumBox">
<view class="visaProductNum visaProductNumR column col" style="margin-left: 0;">
<view class="visaProductNum_Title">邮箱地址</view> <view class="visaProductNum_Title">邮箱地址</view>
<view class="row-sbas-n items-center"> <view class="row-sbas-n items-center">
<input class="visaProductTetx" v-model="customer.Mailbox" placeholder="输入邮箱地址"/> <input class="visaProductTetx" v-model="customer.Mailbox" placeholder="输入邮箱地址"/>
</view> </view>
</view> </view>
</view> </view>
<!-- <view class="row visaProductNumBox">
</view> -->
<view class="row items-center visaProductTextBox"> <view class="row items-center visaProductTextBox">
<view class="visaProduct_rColor visaProductTextL"></view> <view class="visaProduct_rColor visaProductTextL"></view>
<view class="visaProductTitle">收件信息</view> <view class="visaProductTitle">收件信息</view>
...@@ -729,6 +729,7 @@ ...@@ -729,6 +729,7 @@
<script> <script>
import coupon from '@/components/coupon/index'; import coupon from '@/components/coupon/index';
import { gegerateDates,getBeforeDate,getDateWeek } from "../airTicket/dates.js";
export default { export default {
components: { components: {
coupon coupon
...@@ -937,7 +938,15 @@ ...@@ -937,7 +938,15 @@
this.customer.PhoneCountryStr = "+" + this.customer.PhoneCountry; this.customer.PhoneCountryStr = "+" + this.customer.PhoneCountry;
}, },
bindDateChange(e) { bindDateChange(e) {
this.orderMsg.EnterCountryTime = e.detail.value let dates = getBeforeDate(0, new Date())
if(e.detail.value<=dates){
uni.showToast({
title: `请选择大于今天的日期`,
icon: "none",
});
return;
}
this.orderMsg.EnterCountryTime = e.detail.value
}, },
scroll(e) { scroll(e) {
this.boxOption = Math.floor((e.detail.scrollTop - 50) / 1.5); this.boxOption = Math.floor((e.detail.scrollTop - 50) / 1.5);
...@@ -1095,12 +1104,12 @@ ...@@ -1095,12 +1104,12 @@
return; return;
} }
this.tipsText = '' this.tipsText = ''
if (this.customer.customerName == "") { // if (this.customer.customerName == "") {
this.tipsText = '请输入名' // this.tipsText = '请输入名'
return; // return;
} // }
if (this.customer.name == "") { if (this.customer.name == "") {
this.tipsText = '请输入姓' this.tipsText = '请输入姓'
return; return;
} }
if (this.customer.PhoneCountryStr == "") { if (this.customer.PhoneCountryStr == "") {
...@@ -1187,7 +1196,7 @@ ...@@ -1187,7 +1196,7 @@
EnterCountryTime: this.orderMsg.EnterCountryTime,//入境时间 EnterCountryTime: this.orderMsg.EnterCountryTime,//入境时间
GuestList: [],//this.guests GuestList: [],//this.guests
VisaOrderRelation:{ VisaOrderRelation:{
RelationName: this.customer.customerName + this.customer.name,// 联系名称 RelationName: this.customer.name ,// +this.customer.customerName联系名称
RelationPhone: this.customer.contactNumber,// 电话 RelationPhone: this.customer.contactNumber,// 电话
RelationEmail: this.customer.Mailbox,// 邮箱 RelationEmail: this.customer.Mailbox,// 邮箱
IsNeedInvoice: this.orderMsg.IsNeedInvoice,// 是否需要发票 ,0-默认 IsNeedInvoice: this.orderMsg.IsNeedInvoice,// 是否需要发票 ,0-默认
......
This diff is collapsed.
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