Commit ff23ec63 authored by 华国豪's avatar 华国豪 🙄
parents 38fffdb4 b3ec3692
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<td>{{NewCombinationNum}}</td> <td>{{NewCombinationNum}}</td>
<td>{{item.FlightDate}}</td> <td>{{item.FlightDate}}</td>
<td>{{item.DayNum}}</td> <td>{{item.DayNum}}</td>
<td>{{item.GuestNum}}</td> <td>{{item.GuestNum}}+{{item.LeaderOrderNum}}</td>
<td>{{item.LeaderName}}</td> <td>{{item.LeaderName}}</td>
<td>{{item.GuideName}}</td> <td>{{item.GuideName}}</td>
<td> <td>
......
...@@ -65,6 +65,17 @@ ...@@ -65,6 +65,17 @@
text-align: center; text-align: center;
margin: 10px; margin: 10px;
} }
.PassengerList .disClick {
background-color: #d1d1d1;
color: #fff;
border: 1px solid #d1d1d1;
}
.PassengerList .disClick:hover {
background-color: #d1d1d1 !important;
cursor: default !important;
box-shadow: none !important;
}
</style> </style>
...@@ -136,11 +147,17 @@ ...@@ -136,11 +147,17 @@
</el-select> </el-select>
</td> </td>
<td> <td>
<el-select v-model="subItem.HouseType" placeholder="请选择" @change="changeRmType(subItem, subIndex)" v-if="subItem.IsLeaderOrder==1"> <!-- <el-select v-model="subItem.HouseType" placeholder="请选择" @change="changeRmType(subItem, subIndex)" v-if="subItem.IsLeaderOrder==1">
<el-option :disabled="(subItem.HouseType == 1 && IsLeaderGuide == 1) || allDIs" <el-option :disabled="(subItem.HouseType == 1 && IsLeaderGuide == 1) || allDIs"
v-for="(hs, hsIndex) in HouseTypeList" :key="hsIndex" :label="hs.HouseName" :value="hs.HouseType"> v-for="(hs, hsIndex) in HouseTypeList" :key="hsIndex" :label="hs.HouseName" :value="hs.HouseType">
</el-option> </el-option>
</el-select> -->
<el-select v-model="subItem.HouseType" placeholder="请选择" @change="changeRmType1(subItem, subIndex,subItem.HouseType)" v-if="subItem.IsLeaderOrder==1">
<el-option :disabled="(hs.disabled && IsLeaderGuide == 1) || allDIs"
v-for="(hs, hsIndex) in HouseTypeList" :key="hsIndex" :label="hs.HouseName" :value="hs.HouseType">
</el-option>
</el-select> </el-select>
<el-select v-model="subItem.HouseType" placeholder="请选择" @change="changeRmType(subItem, subIndex)" v-else> <el-select v-model="subItem.HouseType" placeholder="请选择" @change="changeRmType(subItem, subIndex)" v-else>
<el-option :disabled="(subItem.HouseType == 1 && IsLeaderGuide == 1) || allDIs" <el-option :disabled="(subItem.HouseType == 1 && IsLeaderGuide == 1) || allDIs"
v-for="(hs, hsIndex) in LeaderHouseList" :key="hsIndex" :label="hs.HouseName" :value="hs.HouseType"> v-for="(hs, hsIndex) in LeaderHouseList" :key="hsIndex" :label="hs.HouseName" :value="hs.HouseType">
...@@ -170,8 +187,9 @@ ...@@ -170,8 +187,9 @@
<td>{{subItem.VisaTypeStr}} {{subItem.VisaTypeStr==1?'拒签':"正常"}}</td> <td>{{subItem.VisaTypeStr}} {{subItem.VisaTypeStr==1?'拒签':"正常"}}</td>
</tr> </tr>
<tr v-if="!allDIs" style="height:50px; line-height:50px;"> <tr v-if="!allDIs" style="height:50px; line-height:50px;">
<td style="text-align:right" colspan="23"><input type="button" value="保存" class="leader2Btn" <td style="text-align:right" colspan="23">
@click="saveOPSetGuestHouse"></td> <input type="button" value="保存" :class="{'disClick':!isSubmit}" class="leader2Btn" @click="saveOPSetGuestHouse">
</td>
</tr> </tr>
</tbody> </tbody>
<!--单机票和自由行--> <!--单机票和自由行-->
...@@ -245,7 +263,11 @@ ...@@ -245,7 +263,11 @@
numberList: [], numberList: [],
dataList: [], dataList: [],
otherList: [], //单机票和自由行列表 otherList: [], //单机票和自由行列表
//只有两个项、
twoList:[],
allDIs: false, allDIs: false,
//验证重复提交
isSubmit: true,
}; };
}, },
methods: { methods: {
...@@ -266,6 +288,26 @@ ...@@ -266,6 +288,26 @@
err => {} err => {}
); );
}, },
// 修改类型1
changeRmType1: function (obj, index,type) {
if(type==1||type==6){
this.HouseTypeList.forEach((x,index)=>{
if(index!=0&&index!=5){
x.disabled=true
}
})
}
let list = this.dataList;
for (let i = 0; i < list.length; i++) {
if (obj.HouseNo === list[i].HouseNo) {
list[i].HouseType = obj.HouseType
list[i].SingleRoomType = obj.HouseType
}
}
list = list.sort(this.compare)
this.dataList = list;
},
// 修改类型 // 修改类型
changeRmType: function (obj, index) { changeRmType: function (obj, index) {
let list = this.dataList; let list = this.dataList;
...@@ -304,19 +346,23 @@ ...@@ -304,19 +346,23 @@
}, },
//保存分房 //保存分房
saveOPSetGuestHouse: function () { saveOPSetGuestHouse: function () {
if (this.isSubmit) {
this.isSubmit = false;
this.apipost( this.apipost(
"travel_get_OPSetGuestHouse", "travel_get_OPSetGuestHouse",
this.dataList, this.dataList,
res => { res => {
this.isSubmit = true;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$message.success('操作成功') this.Success('操作成功')
this.getList() this.getList()
} else { } else {
this.$message.error('操作失败') this.Error('操作失败')
} }
}, },
err => {} err => {}
); );
}
}, },
goUrlTravelControl(name, path, id, tcmun) { goUrlTravelControl(name, path, id, tcmun) {
this.$router.push({ this.$router.push({
...@@ -367,12 +413,16 @@ ...@@ -367,12 +413,16 @@
this.QueryMsg.loading = false; this.QueryMsg.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.HouseTypeList = res.data.data; this.HouseTypeList = res.data.data;
console.log(this.HouseTypeList,'houseType');
this.LeaderHouseList=[]; this.LeaderHouseList=[];
this.twoList=[];
this.HouseTypeList.forEach(x=>{ this.HouseTypeList.forEach(x=>{
x.disabled=false;
if(x.HouseType!=6){ if(x.HouseType!=6){
this.LeaderHouseList.push(x) this.LeaderHouseList.push(x)
} }
if(x.HouseType==1||x.HouseType==6){
this.twoList.push(x);
}
}) })
} }
}, },
...@@ -434,7 +484,6 @@ ...@@ -434,7 +484,6 @@
} }
this.dataList = list this.dataList = list
this.numberList = numberList this.numberList = numberList
console.log(this.dataList,'datalist');
} }
}, },
err => {} err => {}
......
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