Commit c9277772 authored by 华国豪's avatar 华国豪 🙄
parents 076536ab ef141874
...@@ -326,6 +326,7 @@ ...@@ -326,6 +326,7 @@
<el-option label="年榜" :value='3'></el-option> <el-option label="年榜" :value='3'></el-option>
<el-option label="总榜" :value='1'></el-option> <el-option label="总榜" :value='1'></el-option>
<el-option label="人均" :value='4'></el-option> <el-option label="人均" :value='4'></el-option>
<el-option label="回佣人均" :value='5'></el-option>
</el-option> </el-option>
</el-select> </el-select>
</span> </span>
...@@ -364,6 +365,10 @@ ...@@ -364,6 +365,10 @@
人均 人均
<i></i> <i></i>
</li> </li>
<li :class="msg.Type==5?'Day_active':''" @click="msg.Type=5,getStatis()">
回佣人均
<i></i>
</li>
</ul> </ul>
<div class="ChampionsLeague clearfix"> <div class="ChampionsLeague clearfix">
<div class="championList" v-for="item in yajun" :key="item.subCode"> <div class="championList" v-for="item in yajun" :key="item.subCode">
...@@ -490,7 +495,7 @@ ...@@ -490,7 +495,7 @@
QMonthStr: this.msg.MonthStr, QMonthStr: this.msg.MonthStr,
ShoppingID:this.msg.ShoppingID ShoppingID:this.msg.ShoppingID
}; };
if(msg.Type==4) if(msg.Type==4||msg.Type==5)
{ {
msg.QMonthStr=this.msg.Year+","+this.msg.Month; msg.QMonthStr=this.msg.Year+","+this.msg.Month;
} }
...@@ -516,7 +521,6 @@ ...@@ -516,7 +521,6 @@
err => {} err => {}
); );
}, },
//获取工作类型(值获取领兼地和导游) //获取工作类型(值获取领兼地和导游)
getWorkType() { getWorkType() {
this.apipost( this.apipost(
......
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
</tr> </tr>
<tr v-if="TotalNav.reimburseTotalPrice"> <tr v-if="TotalNav.reimburseTotalPrice">
<td>总金额</td> <td>总金额</td>
<td colspan="15"> <td colspan="16">
<span v-for="item in TotalNav.busPrice">{{item.Str + ':' +item.TotalPrice}} &nbsp;&nbsp;&nbsp;&nbsp;</span> <span v-for="item in TotalNav.busPrice">{{item.Str + ':' +item.TotalPrice}} &nbsp;&nbsp;&nbsp;&nbsp;</span>
</td> </td>
</tr> </tr>
...@@ -222,7 +222,8 @@ ...@@ -222,7 +222,8 @@
<td style="white-space:nowrap; "> <td style="white-space:nowrap; ">
<p class="cursorpointer text-decoration" <p class="cursorpointer text-decoration"
@click="goHotelDetail(subItem.TCID, subItem.NewCombinationNum, subItem.TCNUM, 'roomReservationsDetails')"> @click="goHotelDetail(subItem.TCID, subItem.NewCombinationNum, subItem.TCNUM, 'roomReservationsDetails')">
{{subItem.PayStyle === 1 ? moneyFormat(childItem.UnitPrice) : 0}} <!-- {{subItem.PayStyle === 1 ? moneyFormat(childItem.UnitPrice) : 0}} -->
{{moneyFormat(childItem.UnitPrice)}}
</p> </p>
</td> </td>
<td style="white-space:nowrap; "> <td style="white-space:nowrap; ">
...@@ -375,7 +376,8 @@ ...@@ -375,7 +376,8 @@
<td> <td>
<p class="cursorpointer text-decoration" <p class="cursorpointer text-decoration"
@click="goHotelDetail(subItem.TCID, subItem.NewCombinationNum, subItem.TCNUM, 'bookDinnerStatisticsDetails')"> @click="goHotelDetail(subItem.TCID, subItem.NewCombinationNum, subItem.TCNUM, 'bookDinnerStatisticsDetails')">
{{subItem.PayStyle === 1 ? moneyFormat(childItem.PeoplePrice) : 0}} {{ moneyFormat(childItem.PeoplePrice) }}
<!-- {{subItem.PayStyle === 1 ? moneyFormat(childItem.PeoplePrice) : 0}} -->
</p> </p>
</td> </td>
<td> <td>
...@@ -447,7 +449,8 @@ ...@@ -447,7 +449,8 @@
<td> <td>
<p class="cursorpointer text-decoration" <p class="cursorpointer text-decoration"
@click="goHotelDetail(subItem.TCID, subItem.NewCombinationNum, subItem.TCNUM, 'admissionStatisticsDetails')"> @click="goHotelDetail(subItem.TCID, subItem.NewCombinationNum, subItem.TCNUM, 'admissionStatisticsDetails')">
{{subItem.PayStyle === 1 ? moneyFormat(childItem.PeoplePrice) : 0}} <!-- {{subItem.PayStyle === 1 ? moneyFormat(childItem.PeoplePrice) : 0}} -->
{{ moneyFormat(childItem.PeoplePrice)}}
</p> </p>
</td> </td>
<td> <td>
......
...@@ -4,12 +4,13 @@ ...@@ -4,12 +4,13 @@
<ul> <ul>
<li> <li>
<template v-if="IsOperation != 1"> <template v-if="IsOperation != 1">
<input type="button" class="fr normalBtn mb30" value="保存" @click="saveList(1)" /> <input type="button" class="fr normalBtn mb30" value="保存" @click="saveList(1)" :disabled="IsDisabled" />
<input type="button" class="fr normalBtn mb30" value="保存草稿" @click="saveList(0)" /> <input type="button" class="fr normalBtn mb30" value="保存草稿" @click="saveList(0)" :disabled="IsDisabled" />
</template> </template>
<template v-else> <template v-else>
<span style="color:red;font-size:14px;">已制单,不能在修改!</span> <span style="color:red;font-size:14px;">已制单,不能在修改!</span>
<input v-if="CurrentUserInfo.EmployeeId==615" type="button" class="fr normalBtn mb30" value="保存" @click="saveList(1)" /> <input v-if="CurrentUserInfo.EmployeeId==615" type="button" class="fr normalBtn mb30" value="保存"
@click="saveList(1)" />
</template> </template>
</li> </li>
</ul> </ul>
...@@ -193,7 +194,9 @@ ...@@ -193,7 +194,9 @@
loading: false, loading: false,
IsOperation: '', IsOperation: '',
//当前登录人信息 //当前登录人信息
CurrentUserInfo:{}, CurrentUserInfo: {},
//是否禁用按钮
IsDisabled: false,
}; };
}, },
methods: { methods: {
...@@ -281,6 +284,7 @@ ...@@ -281,6 +284,7 @@
obj.TotalPrice = totalPrice.toFixed(2); obj.TotalPrice = totalPrice.toFixed(2);
}, },
saveList(type) { saveList(type) {
this.IsDisabled = true;
if (type == 0) { if (type == 0) {
this.list.forEach(item => { this.list.forEach(item => {
item.DiningSummaryList.forEach(insideItem => { item.DiningSummaryList.forEach(insideItem => {
...@@ -313,7 +317,9 @@ ...@@ -313,7 +317,9 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$message.success(res.data.message); this.$message.success(res.data.message);
this.getList(); this.getList();
this.IsDisabled = false;
} else { } else {
this.IsDisabled = false;
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}, err => {}) }, err => {})
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<ul> <ul>
<li> <li>
<template v-if="IsOperation !=1"> <template v-if="IsOperation !=1">
<input type="button" class="fr normalBtn mb30" value="保存" @click="saveList(1)" /> <input type="button" class="fr normalBtn mb30" value="保存" @click="saveList(1)" :disabled="IsDisabled" />
<input type="button" class="fr normalBtn mb30" value="保存草稿" @click="saveList(0)" /> <input type="button" class="fr normalBtn mb30" value="保存草稿" @click="saveList(0)" :disabled="IsDisabled" />
</template> </template>
<template v-else> <template v-else>
<span style="color:red;font-size:14px;">已制单,不能在修改!</span> <span style="color:red;font-size:14px;">已制单,不能在修改!</span>
...@@ -161,6 +161,8 @@ ...@@ -161,6 +161,8 @@
IsOperation: '', IsOperation: '',
//当前登录人信息 //当前登录人信息
CurrentUserInfo:{}, CurrentUserInfo:{},
//是否禁用按钮
IsDisabled:false,
} }
}, },
methods: { methods: {
...@@ -213,6 +215,7 @@ ...@@ -213,6 +215,7 @@
}, err => {}) }, err => {})
}, },
saveList(type) { saveList(type) {
this.IsDisabled=true;
if (type == 0) { if (type == 0) {
this.DataList.forEach(item => { this.DataList.forEach(item => {
item.ScenicStatisticsList.forEach(insideItem => { item.ScenicStatisticsList.forEach(insideItem => {
...@@ -247,10 +250,13 @@ ...@@ -247,10 +250,13 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$message.success(res.data.message); this.$message.success(res.data.message);
this.getList(); this.getList();
this.IsDisabled=false;
} else { } else {
this.IsDisabled=false;
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}, err => {}) }, 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