Commit 955de0b7 authored by 华国豪's avatar 华国豪 🙄

修改了bug

parent c40da16b
......@@ -423,7 +423,7 @@
</td>
<td width="80" class="_zhidan">
<input type="button"
v-if="isUpdate=='true' && item.LeaderGetPrice < (TotalNav.reimburseTotalPrice.PlanPrice * 0.95)" value="制单"
value="制单"
class="normalBtn" @click="goZhiDan(item)" />
</td>
</tr>
......@@ -501,7 +501,7 @@
}
});
},
goZhiDan: function (obj) {
goZhiDan2: function (obj) {
let allMoney = this.TotalNav.reimburseTotalPrice.PlanPrice * 0.95
let totailMoney = 0
this.nav.forEach(x => {
......@@ -539,6 +539,21 @@
}
});
},
goZhiDan: function (obj) {
if (this.list.hotelNoSureInfo !== '') {
this.$confirm(`${this.list.hotelNoSureInfo},是否去制单?`, this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning'
}).then(() => {
this.goZhiDan2(obj)
}).catch(() => {
return false
});
}else{
this.goZhiDan2(obj)
}
},
addOtherList(index, id) {
this.list.OtherOrderReportList.OtherList.push({
OrderType: '1',
......
......@@ -2769,7 +2769,7 @@
this.Unit_PriceList = [];
this.apipost('sellorder_post_GetLessPrice', {
"TCID": obj.tcid,
"MaxPeopleNum": MaxPeopleNum
"MaxPeopleNum": maxPeopleNum
}, res => {
this.LessMoney = res.data.data.lessMoney;
if (parseFloat(this.LessMoney) > 0) {
......
......@@ -3097,7 +3097,7 @@ submitYSZEForm(){
this.getDdlyList(this.addMsg.CustomerType);
let maxPeopleNum = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNoNeedBedNum) + Number(this.addMsg.ChirdNeedBedNum) + Number(this.addMsg.OldPeopleNum) + Number(this.addMsg.AirticketNum) )
this.Unit_PriceList=[];
this.apipost('sellorder_post_GetLessPrice', {"TCID":obj.tcid, "MaxPeopleNum": MaxPeopleNum}, res => {
this.apipost('sellorder_post_GetLessPrice', {"TCID":obj.tcid, "MaxPeopleNum": maxPeopleNum}, res => {
this.LessMoney = res.data.data.lessMoney;
if (parseFloat(this.LessMoney)>0){
for (var i = 0; i <= parseInt(this.LessMoney)/10; i++) {
......
......@@ -343,7 +343,13 @@ input[type="number"] {
</p>
</td>
<td width="80" class="_zhidan">
<input v-if="dataList.LeaderApply && dataList.LeaderApply.Status && dataList.LeaderApply.Status==2"
<input v-if="TimeXiao"
type="button"
value="制单"
class="leader2Btn"
@click="goZhiDan(item)"
>
<input v-else-if="dataList.LeaderApply && dataList.LeaderApply.Status && dataList.LeaderApply.Status==2"
type="button"
value="制单"
class="leader2Btn"
......@@ -414,6 +420,7 @@ export default {
TotalPriceData: [],
blankUrl: "",
TotalNav: [],
TimeXiao: false,
};
},
methods: {
......@@ -511,6 +518,8 @@ export default {
res => {
if (res.data.resultCode == 1) {
this.nav = res.data.data;
let time = this.nav[0].StartDateStr
this.TimeXiao = time < '2019-05-01' ? true : false
} else {
this.Error(res.data.message);
}
......
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