Commit 6cef32ef authored by 黄奎's avatar 黄奎

页面修改

parent b2fe8589
......@@ -378,7 +378,7 @@
<template slot-scope="scope">
<div v-for="subItem in scope.row.BusPlanOrderList" class="comBTM">
<el-input v-model="subItem.CostPrice" @keyup.native="checkPrice(subItem,'CostPrice')"
placeholder="请输入成本价" :disabled="isShowBtn==1?true:false" class="w135"></el-input>
placeholder="请输入成本价" class="w135"></el-input>
</div>
</template>
</el-table-column>
......
......@@ -54,45 +54,80 @@
</template>
</td>
<td v-if="showHotelObj.showZhan">
{{hotelSubItem.SureTimeStr}}
{{hotelSubItem.SureTimeStr}}
</td>
</tr>
</template>
<tfoot v-if="showHotelObj.showBtnList">
<tr>
<td colspan="8" 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="下载" @click="DownLoadShouPeiShu()" />
</td>
</tr>
</tfoot>
<template v-if="HotelObj&&HotelObj.length>0">
<tfoot>
<tr style="display:none;">
<td>
开团时间:
</td>
<td>
{{HotelObj[0].PriceCreateDateStr}}</td>
<td>
吃房时间:
</td>
<td>
{{HotelObj[0].UseHotelTimeStr}}
</td>
<td>
操作时间:
</td>
<td>
{{HotelObj[0].DMCNumCreateTimeStr}}
</td>
<td>
操作时间:
</td>
<td>
{{HotelObj[0].ShouPeiStatusTimeStr}}
</td>
</tr>
<template v-if="showHotelObj.showBtnList">
<tr>
<td colspan="8" style="padding:10px 0">
<input type="button" class="normalBtn" :value="HotelObj[0].ShouPeiStatus==0?'手配书(确定)':'手配书(暂定)'"
v-if="showHotelObj.ShowShouPeiStatus" @click="subSetShouPeiShu(HotelObj[0].ShouPeiStatus)" />
<input type="button" class="normalBtn" value="下载" @click="DownLoadShouPeiShu()" />
</td>
</tr>
</template>
</tfoot>
</template>
</table>
</template>
<script>
export default {
props: ["HotelObj", "showHotelObj","TCID","DMCNum","TCNUM"],
props: ["HotelObj", "showHotelObj", "TCID", "DMCNum", "TCNUM"],
data() {
return {
loading:false,
loading: false,
};
},
methods: {
DownLoadShouPeiShu() {
this.loading = true;
let qMsg = {
TCID:this.TCID
TCID: this.TCID
};
let fileName = "手配书【"+this.DMCNum+"】" + this.$commonUtils.getCurrentDate() + ".xls";
let fileName = "手配书【" + this.DMCNum + "】" + this.$commonUtils.getCurrentDate() + ".xls";
this.GetLocalFile("hotel_SPS_DownLoad", qMsg, fileName,
res => {
this.loading = false;
});
},
//子组件调用父组件方法
subSetShouPeiShu(ShouPeiStatus) {
var that = this;
var str="是否将手配书设置成"+(ShouPeiStatus==0?"【确定】":"【暂定】")+"?";
this.Confirm(str, function () {
that.$emit('SetShouPeiShu');
});
}
},
mounted() {
}
mounted() {}
};
</script>
......@@ -292,7 +292,7 @@
v-if="item.LineId==14 && item.CommonReport.PriceHotelResult && item.CommonReport.PriceHotelResult.length>0">
<el-popover width="750" trigger="click" popper-class="TC_HotelPop">
<commonHotelInfo :HotelObj="item.CommonReport.PriceHotelResult" :showHotelObj="showHotelObj"
:TCID="item.TCID" :DMCNum="item.DMCNum" :TCNUM="item.TCNUMS"></commonHotelInfo>
:TCID="item.TCID" :DMCNum="item.DMCNum" :TCNUM="item.TCNUMS" @SetShouPeiShu="SetShouPeiShu(item.TCID,item.ShouPeiStatus)"></commonHotelInfo>
<span slot="reference" class="price" style="cursor:pointer;text-decoration:underline;">酒店信息</span>
</el-popover>
</p>
......@@ -544,7 +544,8 @@
showPrice: true,
showPay: true,
showZhan: true,
showBtnList: true
showBtnList: true,
ShowShouPeiStatus:true,//显示手配置暂定确定按钮
},
pickerBeginDateBefore: {
disabledDate: time => {
......@@ -878,6 +879,24 @@
err => {}
)
},
//更新手配书状态
SetShouPeiShu(TCID,ShouPeiStatus)
{
var msg=
{
TCID:TCID,
ShouPeiStatus:(ShouPeiStatus==0?1:0)
};
this.apipost('dmcstatistics_post_SetPriceShouPeiShuService', msg, res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
this.getList();
} else {
this.$message.error(res.data.message);
}
}, err => {})
}
},
mounted() {
let myDate = new Date();
......
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