Commit 71987969 authored by Mac's avatar Mac

新增旅客页面修改

parent 3bdc1a0e
......@@ -154,8 +154,8 @@
</li>
<li>
<el-form-item label="性别" prop="Sex">
<el-checkbox v-model="addMsg.Sex" true-label='1' false-label='2'></el-checkbox>
<el-checkbox v-model="addMsg.Sex" true-label='2' false-label='1'></el-checkbox>
<el-checkbox v-model="addMsg.Sex" true-label='1' false-label='2' @change="Roominformation()"></el-checkbox>
<el-checkbox v-model="addMsg.Sex" true-label='2' false-label='1' @change="Roominformation()"></el-checkbox>
</el-form-item>
</li>
<li>
......@@ -291,8 +291,17 @@
</li>
<li>
<el-form-item label="是否占床">
<el-checkbox v-model="addMsg.IsBed" name="IsBed" :true-label='1' :false-label='0'></el-checkbox>
<el-checkbox v-model="addMsg.IsBed" name="IsBed" :true-label='0' :false-label='1'></el-checkbox>
<el-checkbox v-model="addMsg.IsBed" name="IsBed" :true-label='1' :false-label='0' @change="Roominformation()"></el-checkbox>
<el-checkbox v-model="addMsg.IsBed" name="IsBed" :true-label='0' :false-label='1' @change="Roominformation()"></el-checkbox>
</el-form-item>
</li>
<li>
<el-form-item label="房间信息" prop="HouseId">
<el-select v-model="addMsg.HouseId" filterable size=mini class="w230">
<el-option v-for="item in roomlist" :key="item.ID" :label="item.HouseInfo" :value="item.ID">
</el-option>
</el-select>
<input type="button" value="新增" class="normalBtn" @click="addhouse()" />
</el-form-item>
</li>
<li>
......@@ -647,6 +656,7 @@
VisaReplaceId: "0",
SafeReplaceId: "0",
VisaState: 0, //签证状态
HouseId:'',//房间信息
},
EconomicCapabilityS: [],
rules: {
......@@ -756,7 +766,8 @@
VisaStartStatus: 2,
AirStartStatus: 2,
SafeStartStatus: 2,
btnState: true
btnState: true,
roomlist:[],
};
},
methods: {
......@@ -1513,7 +1524,7 @@
this.addMsg.Marriage = "0";
}
this.apipost(
"sellorder_post_SetTravelGuestInfo",
"sellorder_post_SetTravelGuestInfo_V2",
this.addMsg,
res => {
if (res.data.resultCode == 1) {
......@@ -1735,8 +1746,9 @@
this.AirStartStatus = this.addMsg.IsNeedAirticket;
this.SafeStartStatus = this.addMsg.IsNeedSafe;
this.$forceUpdate();
this.getHouselist(obj.Sex.toString(),obj.TCID,obj.OrderId,obj.IsBed)
} else {
this.$message.error(res.data.message);
this.$message.error();
}
},
err => {}
......@@ -1841,7 +1853,58 @@
this.addMsg.PassportAddress = "湖南";
}
this.addMsg.IssuingAuthority = "公安部出入境管理局";
}
},
Roominformation(){
let TCIDs = this.addMsg.TCID;
let OrderId = this.addMsg.OrderId;
let IsBed = this.addMsg.IsBed;
let Sex = this.addMsg.Sex;
this.apipost(
"sellorder_post_GetHouseDetailsByOrderID",
{TCIDs:TCIDs,OrderId:OrderId,Sex:Sex,IsBed:IsBed},
res => {
if (res.data.resultCode == 1) {
this.roomlist = res.data.data;
} else {
this.$message.error(res.data.message);
}
},
err => {}
);
},
getHouselist(Sex,TCID,OrderId,IsBed){
if(Sex ==1 || Sex == 2){
this.apipost(
"sellorder_post_GetHouseDetailsByOrderID",
{TCIDs:TCID,OrderId:OrderId,Sex:Sex,IsBed:IsBed},
res => {
if (res.data.resultCode == 1) {
this.roomlist = res.data.data;
} else {
this.$message.error(res.data.message);
}
},
err => {}
);
}
},
addhouse(){
let orderId = this.addMsg.OrderId;
let sex = this.addMsg.Sex;
this.apipost(
"sellorder_get_BatchSetOrderHouse_V2",
{orderId:orderId,sex:sex,},
res => {
if (res.data.resultCode == 1) {
this.Roominformation()
} else {
this.$message.error(res.data.message);
}
},
err => {}
);
},
},
mounted() {
this.getCountry();
......
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