Commit b6247b0f authored by 华国豪's avatar 华国豪 🙄
parents 1940a37e b1fa7e78
...@@ -803,9 +803,9 @@ export default { ...@@ -803,9 +803,9 @@ export default {
if(wechat==null&&zhifu==null&&barcode==""){ if(wechat==null&&zhifu==null&&barcode==""){
return; return;
} }
if(zhifu==null&&wechat!=null&&wechat.length>20){ if(zhifu==null&&wechat!=null&&wechat.length>0&&wechat[wechat.length-1].length>20){
this.setCode = wechat[wechat.length-1].replace('商户单号',''); this.setCode = wechat[wechat.length-1].replace('商户单号','');
}else if(wechat==null&&zhifu!=null&&zhifu.length>20){ }else if(wechat==null&&zhifu!=null&&zhifu.length>0&&zhifu[zhifu.length-1].length>20){
this.setCode = zhifu[zhifu.length-1].replace('商家可扫码退款或查询交易',''); this.setCode = zhifu[zhifu.length-1].replace('商家可扫码退款或查询交易','');
}else if(barcode!=""){ }else if(barcode!=""){
this.setCode=barcode; this.setCode=barcode;
......
...@@ -471,7 +471,14 @@ ...@@ -471,7 +471,14 @@
{ {
y.UnitPrice=0; y.UnitPrice=0;
} }
y.HotelDiscount = parseInt(y.HotelDiscount); if(y.HotelDiscount)
{
y.HotelDiscount = parseInt(y.HotelDiscount);
}else
{
y.HotelDiscount =0;
}
if (y.BookNum == "") { if (y.BookNum == "") {
y.BookNum = 0; y.BookNum = 0;
} }
...@@ -497,7 +504,13 @@ ...@@ -497,7 +504,13 @@
subItem.OrderDetailsList.forEach(y => { subItem.OrderDetailsList.forEach(y => {
y.HouseTypeCount = parseFloat(y.HouseTypeCount); y.HouseTypeCount = parseFloat(y.HouseTypeCount);
y.UnitPrice = parseInt(y.UnitPrice); y.UnitPrice = parseInt(y.UnitPrice);
y.HotelDiscount = parseInt(y.HotelDiscount); if(y.HotelDiscount)
{
y.HotelDiscount = parseInt(y.HotelDiscount);
}else
{
y.HotelDiscount =0;
}
if (y.BookNum == "") { if (y.BookNum == "") {
y.BookNum = 0; y.BookNum = 0;
} }
...@@ -540,9 +553,8 @@ ...@@ -540,9 +553,8 @@
this.TCNUM = this.$route.query.TCNUM; this.TCNUM = this.$route.query.TCNUM;
this.flightTotal = this.$route.query.flightTotal; this.flightTotal = this.$route.query.flightTotal;
this.GuestNum = this.$route.query.GuestNum; this.GuestNum = this.$route.query.GuestNum;
let width = window.innerWidth - 50 let width = window.innerWidth - 50;
let height = window.innerHeight - 65 -55 let height = window.innerHeight - 65 -55;
console.log(height)
this.boxHeight = height; this.boxHeight = height;
this.offsetwidth = width this.offsetwidth = width
this.getList(); this.getList();
......
...@@ -20,6 +20,12 @@ ...@@ -20,6 +20,12 @@
padding-left: 20px; padding-left: 20px;
} }
.comTextdisClick {
background-color: #d1d1d1;
color: #fff;
border: 1px solid #d1d1d1;
}
</style> </style>
<template> <template>
<div> <div>
...@@ -102,8 +108,9 @@ ...@@ -102,8 +108,9 @@
<tfoot> <tfoot>
<tr> <tr>
<td colspan="6"> <td colspan="6">
<input type="button" class="normalBtn" @click="SaveData()" value="保存" /> <input type="button" class="normalBtn" :class="{'comTextdisClick':isSave}" @click="SaveData()" value="保存" />
<input type="button" class="normalBtn" @click="DownLoadFile()" value="下载" /> <input type="button" class="normalBtn" :class="{'comTextdisClick':isSave}" @click="DownLoadFile()"
value="下载" />
</td> </td>
</tr> </tr>
</tfoot> </tfoot>
...@@ -128,20 +135,25 @@ ...@@ -128,20 +135,25 @@
Remarks: "", Remarks: "",
Details_Extends: [] Details_Extends: []
}, },
isSave: false,
TCIDS: "" TCIDS: ""
} }
}, },
methods: { methods: {
DownLoadFile(item) { DownLoadFile(item) {
let msg = { if (!this.isSave) {
TCIDS: this.TCIDS this.isSave = true;
}; let msg = {
this.loading = true; TCIDS: this.TCIDS
var fileName = "バス手配依頼書" + this.DataObj.TeamNum + ".xls"; };
this.GetLocalFile("bus_get_DownLoadBusConfig", msg,fileName, this.loading = true;
res => { var fileName = "バス手配依頼書" + this.DataObj.TeamNum + ".xls";
this.loading = false; this.GetLocalFile("bus_get_DownLoadBusConfig", msg, fileName,
}); res => {
this.loading = false;
this.isSave = false;
});
}
}, },
GetData() { GetData() {
this.loading = true; this.loading = true;
...@@ -151,22 +163,25 @@ ...@@ -151,22 +163,25 @@
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.DataObj = res.data.data; this.DataObj = res.data.data;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, err => {}) }, err => {})
}, },
SaveData() { SaveData() {
this.DataObj.TCIDS = this.TCIDS; if (!this.isSave) {
this.apipost('bus_Post_SaveBusDownLoadData', this.DataObj, res => { this.isSave = true;
if (res.data.resultCode == 1) { this.DataObj.TCIDS = this.TCIDS;
this.Success("操作成功"); this.apipost('bus_Post_SaveBusDownLoadData', this.DataObj, res => {
this.GetData(); if (res.data.resultCode == 1) {
} else { this.Success("操作成功");
this.Error(res.data.message); this.GetData();
} } else {
}, err => {}) this.Error(res.data.message);
}
this.isSave = false;
}, err => {})
}
} }
}, },
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