Commit a3a3fb49 authored by Mac's avatar Mac

修改旅客身份证带入信息

parent 7b2f8f9d
...@@ -1860,9 +1860,10 @@ ...@@ -1860,9 +1860,10 @@
let OrderId = this.addMsg.OrderId; let OrderId = this.addMsg.OrderId;
let IsBed = this.addMsg.IsBed; let IsBed = this.addMsg.IsBed;
let Sex = this.addMsg.Sex; let Sex = this.addMsg.Sex;
if(Sex ==1 || Sex == 2) {
this.apipost( this.apipost(
"sellorder_post_GetHouseDetailsByOrderID", "sellorder_post_GetHouseDetailsByOrderID",
{TCIDs:TCIDs,OrderId:OrderId,Sex:Sex,IsBed:IsBed}, {TCIDs: TCIDs, OrderId: OrderId, Sex: Sex, IsBed: IsBed},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.roomlist = res.data.data; this.roomlist = res.data.data;
...@@ -1870,8 +1871,10 @@ ...@@ -1870,8 +1871,10 @@
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}, },
err => {} err => {
}
); );
}
}, },
getHouselist(Sex,TCID,OrderId,IsBed){ getHouselist(Sex,TCID,OrderId,IsBed){
if(Sex ==1 || Sex == 2){ if(Sex ==1 || Sex == 2){
...@@ -1887,14 +1890,17 @@ ...@@ -1887,14 +1890,17 @@
}, },
err => {} err => {}
); );
}else {
this.$message.error('请选择性别');
} }
}, },
addhouse(){ addhouse(){
let orderId = this.addMsg.OrderId; let orderId = this.addMsg.OrderId;
let sex = this.addMsg.Sex; let sex = this.addMsg.Sex;
if(sex ==1 || sex == 2) {
this.apipost( this.apipost(
"sellorder_get_BatchSetOrderHouse_V2", "sellorder_get_BatchSetOrderHouse_V2",
{orderId:orderId,sex:sex,}, {orderId: orderId, sex: sex,},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Roominformation() this.Roominformation()
...@@ -1902,32 +1908,56 @@ ...@@ -1902,32 +1908,56 @@
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}, },
err => {} err => {
}
); );
}
}, },
authentication() { authentication() {
let IdCard = this.addMsg.IdCard;
if (this.$route.query.guestId == 0) { if (this.$route.query.guestId == 0) {
if(IdCard.length == 18){
this.apipost( this.apipost(
"sellorder_post_GetGusetByIDCard", "sellorder_post_GetGusetByIDCard",
{IdCard: this.addMsg.IdCard,}, {IdCard: this.addMsg.IdCard,},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let obj = res.data.data; let obj = res.data.data;
this.addMsg = obj;
this.addMsg.SurName = obj.SurName;
this.addMsg.Name = obj.Name;
this.addMsg.ESurName = obj.ESurName;
this.addMsg.EName = obj.EName;
this.addMsg.Sex = obj.Sex.toString(); this.addMsg.Sex = obj.Sex.toString();
this.addMsg.MobilePhone = obj.MobilePhone;
this.addMsg.Birthday = obj.Birthday;
this.addMsg.BirthdayAddress = obj.BirthdayAddress;
this.addMsg.PassportNo = obj.PassportNo;
this.addMsg.PassportAddress = obj.PassportAddress;
this.addMsg.PassportIssued = obj.PassportIssued;
this.addMsg.PassportExpiry = obj.PassportExpiry;
this.addMsg.Nationality = obj.Nationality;
this.addMsg.Marriage = obj.Marriage.toString(); this.addMsg.Marriage = obj.Marriage.toString();
if (this.addMsg.Marriage == "0") { if (this.addMsg.Marriage == "0") {
this.addMsg.Marriage = ""; this.addMsg.Marriage = "";
} }
this.addMsg.IsCriminalRecord = obj.IsCriminalRecord === null ? '' : obj.IsCriminalRecord.toString(); this.addMsg.Address = obj.Address;
this.addMsg.IsDepartureRecord = obj.IsDepartureRecord.toString(); this.addMsg.AddressDetail = obj.AddressDetail;
this.addMsg.IdentityType = obj.IdentityType;
this.addMsg.HistoryRecord = obj.HistoryRecord;
this.addMsg.Duty = obj.Duty;
this.addMsg.Remarks = obj.Remarks;
this.addMsg.IsHightSchool = obj.IsHightSchool;
this.addMsg.IsRecommend = obj.IsRecommend;
this.addMsg.Id = this.$route.query.guestId; this.addMsg.Id = this.$route.query.guestId;
this.addMsg.TCID = this.$route.query.TCID; this.addMsg.TCID = this.$route.query.TCID;
this.addMsg.OrderId = this.$route.query.orderId; this.addMsg.OrderId = this.$route.query.orderId;
this.Roominformation() //调取下房间信息 this.Roominformation() //调取下房间信息
} else { } else {
this.$message.error(res.data.message); // this.$message.error(res.data.message);
} }
}, },
err => { err => {
...@@ -1935,6 +1965,7 @@ ...@@ -1935,6 +1965,7 @@
); );
} }
} }
}
}, },
mounted() { mounted() {
this.getCountry(); this.getCountry();
......
...@@ -84,6 +84,9 @@ ...@@ -84,6 +84,9 @@
<td> <td>
<span class="spanlink" v-if='childItem.PeoplePrice==0' <span class="spanlink" v-if='childItem.PeoplePrice==0'
@click="goUrl('ticketManagement',subItem,'门票管理')">设置</span> @click="goUrl('ticketManagement',subItem,'门票管理')">设置</span>
<span v-else>
{{childItem.PeoplePrice}}
</span>
</td> </td>
<td> <td>
{{(childItem.UsePeopleNum-childItem.Discount)*childItem.PeoplePrice}} {{(childItem.UsePeopleNum-childItem.Discount)*childItem.PeoplePrice}}
......
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