Commit 9091efbe authored by 吴春's avatar 吴春

提交地接总表预计用款下载

parent 9221bd13
......@@ -140,6 +140,7 @@
</li>
<li>
<input type="button" class="normalBtn" :value="$t('pub.searchBtn')" @click="getList();resetPageIndex()" />
<input type="button" class="normalBtn" :value="$t('adm.adm_download')" @click="DownLoad.ShowDownLoad=true" />
</li>
</ul>
</div>
......@@ -571,6 +572,21 @@
<el-dialog :visible.sync="dialog.show" width="1400px" title="报价详情">
<price-dialog :ConfigId="dialog.ConfigId" :OfferId="dialog.OfferId" ref="dialog"></price-dialog>
</el-dialog>
<el-dialog :visible.sync="DownLoad.ShowDownLoad" width="386px" title="预计用款下载">
<div style="height:120px;"><ul>
<li><span><em>{{$t('sm.chutuandate')}}</em>
<el-date-picker v-model='DownLoad.StartDate' class='w135' value-format="yyyy-MM-dd" type="date"
:picker-options="pickerBeginDateBeforeDownLoad"></el-date-picker>
-
<el-date-picker v-model='DownLoad.EndDate' class='w135' value-format="yyyy-MM-dd" type="date"
:picker-options="pickerBeginDateAfterDownLoad"></el-date-picker>
</span>
</li>
<li> <input style="margin-top:25px;float:right;" type="button" class="normalBtn" :value="$t('adm.adm_download')" @click="DownLoadExpectedUsage()" /> <input style="margin-top:25px;float:right;" type="button" class="normalBtn" :value="$t('pub.cancelBtn')" @click="CancelDownLoad()" /></li>
</ul></div>
</el-dialog>
</div>
</template>
<script>
......@@ -700,6 +716,29 @@
let startTime = new Date(this.UpdateHotelMsg.StartDate)
return startTime.getTime() >= time.getTime()
}
},
pickerBeginDateBeforeDownLoad: {
disabledDate: time => {
if (this.DownLoad.EndDate == null) {
return false;
} else {
let endTime = new Date(this.DownLoad.EndDate)
return endTime.getTime() < time.getTime()
}
}
},
pickerBeginDateAfterDownLoad: {
disabledDate: time => {
let startTime = new Date(this.DownLoad.StartDate)
return startTime.getTime() >= time.getTime()
}
},
DownLoad:{
ShowDownLoad:false,
StartDate: "", //开始日期
EndDate: "", //结束日期
EmployeeID:0,
}
}
},
......@@ -710,6 +749,33 @@
priceDialog
},
methods: {
CancelDownLoad(){
this.DownLoad.ShowDownLoad=false;
this.DownLoad.StartDate="";
this.DownLoad.EndDate="";
this.DownLoad.EmployeeID=0;
},
DownLoadExpectedUsage(item) {
this.loading = true;
//导出报表
if (this.DownLoad.StartDate == "" || this.DownLoad.EndDate == "") {
this.Error('请选择出团日期')
this.loading = false;
return
}
this.DownLoad.EmployeeID=this.getLocalStorage().EmployeeId;
var fileName = "团预计用款下载.xls";
this.GetLocalFile("dmcstatistics_post_GetHotelPriceDownLoad", this.DownLoad, fileName,
res => {
this.DownLoad.ShowDownLoad = false;
this.loading = false;
this.DownLoad.StartDate = "";
this.DownLoad.EndDate = "";
this.DownLoad.EmployeeID=0;
});
},
showDialog(ConfigId, OfferId) {
if (!OfferId) {
return
......@@ -1216,6 +1282,7 @@
this.loading = false;
});
},
goRoomTip() {
this.Error("请联系组团OP提供分房表文件!");
},
......
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