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

页面修改

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