Commit 71987969 authored by Mac's avatar Mac

新增旅客页面修改

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