Commit 7d953326 authored by 黄奎's avatar 黄奎

页面修改

parent 340567cb
...@@ -448,6 +448,8 @@ ...@@ -448,6 +448,8 @@
"-" + "-" +
myDate.getDate(); myDate.getDate();
this.msg.StartDate = nowDate; this.msg.StartDate = nowDate;
// this.msg.StartDate='';
// this.msg.TCNUM='NRTCA08190613A';
this.getLineList(); this.getLineList();
this.getList(); this.getList();
}, },
......
...@@ -371,8 +371,8 @@ ...@@ -371,8 +371,8 @@
parseInt(myDate.getMonth() + 1) + parseInt(myDate.getMonth() + 1) +
"-" + "-" +
myDate.getDate(); myDate.getDate();
//this.msg.StartDate = nowDate; this.msg.StartDate = nowDate;
this.msg.TCNUM="NRTMU07190702A"; //this.msg.TCNUM="NRTMU07190702A";
this.getLineList(); this.getLineList();
this.getList(); this.getList();
}, },
......
...@@ -175,7 +175,8 @@ ...@@ -175,7 +175,8 @@
<td> <td>
<el-popover placement="right" width="540" trigger="click" v-model="subItem.isShowPop"> <el-popover placement="right" width="540" trigger="click" v-model="subItem.isShowPop">
<commonPriceHotelWork :ref="'commonPriceHotelWork_'+index+'_'+subIndex+'_'+childIndex+''" <commonPriceHotelWork :ref="'commonPriceHotelWork_'+index+'_'+subIndex+'_'+childIndex+''"
:DateStr="childItem.JourneyDate" :TCID="item.TCID" :DayNum="subItem.DayNum"> :DateStr="childItem.JourneyDate" :TCID="item.TCID" :DayNum="subItem.DayNum"
v-on:childPriceHotel="priceHotelList">
</commonPriceHotelWork> </commonPriceHotelWork>
<el-button size="small" type="danger" <el-button size="small" type="danger"
:data-index="'commonPriceHotelWork_'+index+'_'+subIndex+'_'+childIndex+''" slot="reference" :data-index="'commonPriceHotelWork_'+index+'_'+subIndex+'_'+childIndex+''" slot="reference"
...@@ -290,10 +291,30 @@ ...@@ -290,10 +291,30 @@
methods: { methods: {
//点击酒店 //点击酒店
getPriceHotel(index, subIndex, childIndex) { getPriceHotel(index, subIndex, childIndex) {
console.log(index, subIndex, childIndex);
let str = `commonPriceHotelWork_${index}_${subIndex}_${childIndex}`; let str = `commonPriceHotelWork_${index}_${subIndex}_${childIndex}`;
console.log("str", str); this.$refs[str][0].getPriceHotelCheck();
//this.$refs[str].getCheckHotel(); },
//父页面方法
priceHotelList(obj) {
this.DataList.forEach(x => {
x.HotelOrderListReports.forEach(y => {
y.isShowPop = false;
})
});
//console.log("obj", obj);
var nMsg = {
TCID: obj.TCID,
DayNum: obj.DayNum,
HotelId: obj.ID
};
console.log("nMsg",nMsg);
this.apipost("travel_post_SavePriceHotelService", nMsg, res => {
if (res.data.resultCode == 1) {
} else {
this.Error(res.data.message);
}
});
}, },
goUrlR(path, obj, title) { goUrlR(path, obj, title) {
this.$router.push({ this.$router.push({
...@@ -361,7 +382,6 @@ ...@@ -361,7 +382,6 @@
}); });
} }
this.DataList = sourceData; this.DataList = sourceData;
console.log("this.dataList", this.DataList);
this.$forceUpdate() this.$forceUpdate()
} else { } else {
this.Error(res.data.message) this.Error(res.data.message)
...@@ -379,14 +399,6 @@ ...@@ -379,14 +399,6 @@
} }
}); });
}, },
getChildHotel(index, subIndex) {
this.findex = index;
this.childIndex = subIndex;
let str = `comCheckHotel${index}${subIndex}`
this.$refs[str][0].getCheckHotel();
},
//获取目的地列表 //获取目的地列表
getLinePlaceList() { getLinePlaceList() {
this.msg.PlaceID = 0; this.msg.PlaceID = 0;
...@@ -476,7 +488,6 @@ ...@@ -476,7 +488,6 @@
parseInt(myDate.getMonth() + 1) + parseInt(myDate.getMonth() + 1) +
"-" + "-" +
myDate.getDate(); myDate.getDate();
this.msg.StartGroupDate = nowDate; this.msg.StartGroupDate = nowDate;
let width = window.innerWidth - 50; let width = window.innerWidth - 50;
let height = window.innerHeight - 65 - 164; let height = window.innerHeight - 65 - 164;
......
<style> <style>
.comCheckHotel .comCheckHotel { .commonPriceHotelWork .comCheckHotel {
width: 100%; width: 100%;
height: 150px; height: 150px;
overflow: auto overflow: auto
} }
.comCheckHotel .comCk_list { .commonPriceHotelWork .comCk_list {
padding: 0 20px; padding: 0 20px;
margin: 0 15px 5px 0; margin: 0 15px 5px 0;
} }
.comCheckHotel .cm_Inventory { .commonPriceHotelWork .cm_Inventory {
margin-left: 20px; margin-left: 20px;
color: red; color: red;
display: inline-block; display: inline-block;
} }
.comCheckHotel .cm_hotelTitle { .commonPriceHotelWork .cm_hotelTitle {
width: 100%; width: 100%;
text-align: center; text-align: center;
margin-bottom: 20px; margin-bottom: 20px;
...@@ -25,15 +25,15 @@ ...@@ -25,15 +25,15 @@
padding: 0 20px 10px 20px; padding: 0 20px 10px 20px;
} }
.comCheckHotel .com_SaveBtn { .commonPriceHotelWork .com_SaveBtn {
margin: 10px 20px 0 45%; margin: 10px 20px 0 45%;
} }
.comCheckHotel .ckedList { .commonPriceHotelWork .ckedList {
background-color: #E95252; background-color: #E95252;
color: #fff; color: #fff;
} }
.comCheckHotel .Ck_hotelInfo{ .commonPriceHotelWork .Ck_hotelInfo{
width:100%; width:100%;
height:40px; height:40px;
background-color: #F6F8FB; background-color: #F6F8FB;
...@@ -41,15 +41,11 @@ ...@@ -41,15 +41,11 @@
line-height: 40px; line-height: 40px;
margin-bottom:10px; margin-bottom:10px;
} }
.comCheckHotel .ck_goUrl{
color:blue;
cursor: pointer;
margin-left:10px;
}
</style> </style>
<template> <template>
<div class="comCheckHotel"> <div class="commonPriceHotelWork">
<div class="Ck_hotelInfo"> <div class="Ck_hotelInfo">
<span style="color:red">{{DateStr}}</span> 酒店库存信息 <span style="color:red">{{DateStr}}</span> 酒店库存信息
</div> </div>
...@@ -77,7 +73,7 @@ ...@@ -77,7 +73,7 @@
<label :for="'H'+index+'_'+subIndex" style="cursor: pointer">{{subItem.Name}}</label> <label :for="'H'+index+'_'+subIndex" style="cursor: pointer">{{subItem.Name}}</label>
<span class="cm_Inventory">{{subItem.Inventory}}</span> <span class="cm_Inventory">{{subItem.Inventory}}</span>
<span class="cm_Inventory">剩余:{{subItem.RemainingInventory}}</span> <span class="cm_Inventory">剩余:{{subItem.RemainingInventory}}</span>
<span class="ck_goUrl" @click="goUrl(subItem.ID)">新增库存</span> <span class="cm_Inventory">价格:{{subItem.CostPrice}}</span>
</div> </div>
</div> </div>
</el-tab-pane> </el-tab-pane>
...@@ -103,7 +99,7 @@ ...@@ -103,7 +99,7 @@
}; };
}, },
methods: { methods: {
getCheckHotel() { getPriceHotelCheck() {
this.loading=true; this.loading=true;
this.IsShow=false; this.IsShow=false;
this.dataList = []; this.dataList = [];
...@@ -115,7 +111,7 @@ ...@@ -115,7 +111,7 @@
IsAllHotel: 1, IsAllHotel: 1,
Province: this.qMsg.ProvinceId, Province: this.qMsg.ProvinceId,
Name:this.qMsg.Name, Name:this.qMsg.Name,
sDate: this.UseDate sDate: this.DateStr
}, res => { }, res => {
this.loading=false; this.loading=false;
this.IsShow=true; this.IsShow=true;
...@@ -155,8 +151,11 @@ ...@@ -155,8 +151,11 @@
ckHotelObj.RebateRatio=this.ckedHotel.RebateRatio; ckHotelObj.RebateRatio=this.ckedHotel.RebateRatio;
ckHotelObj.RebateCount=this.ckedHotel.RebateCount; ckHotelObj.RebateCount=this.ckedHotel.RebateCount;
ckHotelObj.CostPrice=this.ckedHotel.CostPrice; ckHotelObj.CostPrice=this.ckedHotel.CostPrice;
ckHotelObj.TCID=this.TCID;
ckHotelObj.DateStr=this.DateStr;
ckHotelObj.DayNum=this.DayNum;
} }
this.$emit("childHotel", ckHotelObj); this.$emit("childPriceHotel", ckHotelObj);
}, },
//获取日本下面的市->下拉框用 //获取日本下面的市->下拉框用
getProvinceList() { getProvinceList() {
...@@ -172,19 +171,6 @@ ...@@ -172,19 +171,6 @@
}, },
err => {} err => {}
); );
},
goUrl(ID){
this.$router.push({
path: 'HotelProductManage2',
query: {
id: ID,
Country: 651,
IsSelfBook: 1,
blank: 'y',
tab: '报价详情'
}
});
} }
}, },
mounted() { mounted() {
......
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