Commit 59ddc8bf authored by zhengke's avatar zhengke

酒店信息增加下载

parent e4a9d2e5
...@@ -48,8 +48,7 @@ ...@@ -48,8 +48,7 @@
{{hotelSubItem.PayTypeStr}} {{hotelSubItem.PayTypeStr}}
</td> </td>
<td v-if="showHotelObj.showZhan"> <td v-if="showHotelObj.showZhan">
<template <template v-if="hotelSubItem.OPState==1||(hotelSubItem.OPState==2 && hotelSubItem.DMCState==0)">
v-if="hotelSubItem.OPState==1||(hotelSubItem.OPState==2 && hotelSubItem.DMCState==0)">
{{hotelSubItem.CreateDateStr}} {{hotelSubItem.CreateDateStr}}
</template> </template>
</td> </td>
...@@ -58,9 +57,9 @@ ...@@ -58,9 +57,9 @@
<tfoot v-if="showHotelObj.showBtnList"> <tfoot v-if="showHotelObj.showBtnList">
<tr> <tr>
<td colspan="7" style="padding:10px 0"> <td colspan="7" style="padding:10px 0">
<input type="button" class="normalBtn" value="确定" style="display:none;"/> <input type="button" class="normalBtn" value="确定" style="display:none;" />
<input type="button" class="normalBtn" value="暂定" style="display:none;"/> <input type="button" class="normalBtn" value="暂定" style="display:none;" />
<input type="button" class="normalBtn" value="下载"/> <input type="button" class="normalBtn" value="下载" style="display:none;" @click="DownLoadShouPeiShu()" />
</td> </td>
</tr> </tr>
</tfoot> </tfoot>
...@@ -68,14 +67,24 @@ ...@@ -68,14 +67,24 @@
</template> </template>
<script> <script>
export default { export default {
props: ["HotelObj","showHotelObj"], props: ["HotelObj", "showHotelObj","TCID","DMCNum","TCNUM"],
data() { data() {
return { return {
loading:false,
}; };
}, },
methods: { methods: {
DownLoadShouPeiShu() {
this.loading = true;
let qMsg = {
TCID:this.TCID
};
let fileName = "手配书【"+this.DMCNum+"】" + this.$commonUtils.getCurrentDate() + ".xls";
this.GetLocalFile("hotel_SPS_DownLoad", qMsg, fileName,
res => {
this.loading = false;
});
}
}, },
mounted() { mounted() {
......
...@@ -266,7 +266,7 @@ ...@@ -266,7 +266,7 @@
<p <p
v-if="item.LineId==14 && item.CommonReport.PriceHotelResult && item.CommonReport.PriceHotelResult.length>0"> v-if="item.LineId==14 && item.CommonReport.PriceHotelResult && item.CommonReport.PriceHotelResult.length>0">
<el-popover width="700" trigger="click" popper-class="TC_HotelPop"> <el-popover width="700" trigger="click" popper-class="TC_HotelPop">
<commonHotelInfo :HotelObj="item.CommonReport.PriceHotelResult" :showHotelObj="showHotelObj"></commonHotelInfo> <commonHotelInfo :HotelObj="item.CommonReport.PriceHotelResult" :showHotelObj="showHotelObj" :TCID="item.TCID" :DMCNum="item.DMCNum" :TCNUM="item.TCNUMS"></commonHotelInfo>
<span slot="reference" class="price" style="cursor:pointer;text-decoration:underline;">酒店信息</span> <span slot="reference" class="price" style="cursor:pointer;text-decoration:underline;">酒店信息</span>
</el-popover> </el-popover>
</p> </p>
......
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