diff --git a/src/components/Restaurant/bookDinnerStatisticsDetails.vue b/src/components/Restaurant/bookDinnerStatisticsDetails.vue index 6d54ec658ebdb8e34e7eda7d950f737809289e73..6d6039bd8618a4c6884c02576b18f8cda34d3060 100644 --- a/src/components/Restaurant/bookDinnerStatisticsDetails.vue +++ b/src/components/Restaurant/bookDinnerStatisticsDetails.vue @@ -464,7 +464,6 @@ GetAuth() { this.apipost('dmcstatistics_get_GetGetDmcTotalTablePageAuth', {}, res => { if (res.data.resultCode == 1) { - //this.IsDMCIsOpenHotel = res.data.data.IsDMCIsOpenHotel; this.IsEditDinner = res.data.data.IsEditDinner; } else { this.$message.error(res.data.message); diff --git a/src/components/busManagement/BusInfo.vue b/src/components/busManagement/BusInfo.vue index a4b164d5e45b522edd3e7f912908633d82249f40..cf47509755ebe6be7cb6a82bf56836f32552dd86 100644 --- a/src/components/busManagement/BusInfo.vue +++ b/src/components/busManagement/BusInfo.vue @@ -202,10 +202,11 @@ </el-option> </el-select> </td> - <td>回é€è´¹</td> - <td colspan="4" align="left" style="padding-left:5px;"> - <el-input v-model="PostData.BackFee" @keyup.native="checkPrice(PostData,'BackFee')" placeholder="请输入回é€è´¹" maxlength="10" class='w135'></el-input> - </td> + <td>回é€è´¹</td> + <td colspan="4" align="left" style="padding-left:5px;"> + <el-input v-model="PostData.BackFee" @keyup.native="checkPrice(PostData,'BackFee')" placeholder="请输入回é€è´¹" + maxlength="10" class='w135'></el-input> + </td> </tr> </tfoot> </table> @@ -285,8 +286,8 @@ <el-table-column label="付款方å¼" min-width="150"> <template slot-scope="scope"> <div v-for="subItem in scope.row.BusPlanOrderList" class="comBTM"> - <el-select class='sel' v-model='subItem.PayType' :disabled="isShowBtn==1?true:false" :placeholder="$t('pub.pleaseSel')" - @change="PayTypeChange(scope.row)"> + <el-select class='sel' v-model='subItem.PayType' :disabled="isShowBtn==1||IsEditBus==0?true:false" + :placeholder="$t('pub.pleaseSel')" @change="PayTypeChange(scope.row)"> <el-option label='请选择' :value='0'></el-option> <el-option label='现付' :value='1'></el-option> <el-option label='å…¬å¸ç»“ç®—' :value='2'></el-option> @@ -349,7 +350,7 @@ <template slot-scope="scope"> <div v-for="subItem in scope.row.BusPlanOrderList" class="comBTM"> <el-input v-model="subItem.HighSpeedPrice" @keyup.native="checkPrice(subItem,'HighSpeedPrice')" - placeholder="请输入费用" :disabled="isShowBtn==1?true:false" class='w135'></el-input> + placeholder="请输入费用" :disabled="isShowBtn==1||IsEditBus==0?true:false" class='w135'></el-input> </div> </template> </el-table-column> @@ -358,7 +359,7 @@ <div> <div v-for="(subItem,index) in scope.row.BusPlanOrderList" class="comBTM"> <el-select class='sel w135' v-model='subItem.HighSpeedPayType' :placeholder="$t('pub.pleaseSel')" - @change="PayTypeChange(subItem)" :disabled="isShowBtn==1?true:false"> + @change="PayTypeChange(subItem)" :disabled="isShowBtn==1||IsEditBus==0?true:false"> <el-option label='请选择' :value='0'></el-option> <el-option label='现付' :value='1'></el-option> <el-option label='å…¬å¸ç»“ç®—' :value='2'></el-option> @@ -375,15 +376,15 @@ <template slot-scope="scope"> <div v-for="subItem in scope.row.BusPlanOrderList" class="comBTM"> <el-input v-model="subItem.UseNum" @keyup.native="checkPrice(subItem,'UseNum')" - :disabled="isShowBtn==1?true:false"></el-input> + :disabled="isShowBtn==1||IsEditBus==0?true:false"></el-input> </div> </template> </el-table-column> <el-table-column label="æˆæœ¬ä»·" min-width="140"> <template slot-scope="scope"> <div v-for="subItem in scope.row.BusPlanOrderList" class="comBTM"> - <el-input v-model="subItem.CostPrice" :disabled="isShowBtn==1?true:false" @keyup.native="checkPrice(subItem,'CostPrice')" - placeholder="è¯·è¾“å…¥æˆæœ¬ä»·" class="w135"></el-input> + <el-input v-model="subItem.CostPrice" :disabled="isShowBtn==1||IsEditBus==0?true:false" + @keyup.native="checkPrice(subItem,'CostPrice')" placeholder="è¯·è¾“å…¥æˆæœ¬ä»·" class="w135"></el-input> </div> </template> </el-table-column> @@ -410,13 +411,13 @@ </el-table-column> </el-table> <div class="upBtnList"> - <input type="button" class="normalBtn" :class="{'disClick':!isSubmit}" @click="SaveList(0)" + <input v-if="IsEditBus==0" type="button" class="normalBtn" :class="{'disClick':!isSubmit}" @click="SaveList(0)" :disabled="disButton" value="ä¿å˜è‰ç¨¿" /> - <input type="button" class="normalBtn" :class="{'disClick':!isSubmit}" @click="SaveList(1)" + <input v-if="IsEditBus==1" type="button" class="normalBtn" :class="{'disClick':!isSubmit}" @click="SaveList(1)" :disabled="disButton" value="ä¿å˜" /> - <span v-if="isShowBtn==1" style="color:red;margin-left:10px;"> - 已制å•,ä¸èƒ½å†ä¿®æ”¹ä»·æ ¼å’Œä»˜æ¬¾æ–¹å¼ï¼ - </span> + <span v-if="isShowBtn==1" style="color:red;margin-left:10px;"> + 已制å•,ä¸èƒ½å†ä¿®æ”¹ä»·æ ¼å’Œä»˜æ¬¾æ–¹å¼ï¼ + </span> </div> </el-form> </div> @@ -547,6 +548,7 @@ loading: false, isSubmit: true, isShowBtn: 1, //1ç¦ç”¨é«˜é€Ÿè´¹ï¼Œæˆæœ¬è´¹ï¼Œé«˜é€Ÿä»˜æ¬¾æ–¹å¼æ–‡æœ¬æ¡† + IsEditBus:0,//车辆修改æƒé™ }; }, methods: { @@ -560,7 +562,7 @@ }, /*获å–è½¦è¾†æˆæœ¬ä»·æ ¼*/ getBusPrice(obj) { - if(this.isShowBtn!=1){ + if (this.isShowBtn != 1) { let tempCostFee = 0; var tempHighSpeedFee = 0; if (obj.AirportPickUp == 3 || obj.AirportPickUp == 4) { @@ -624,8 +626,9 @@ /*获å–车辆类型列表*/ getBusTypeList() { this.apipost( - "bus_get_GetBusTypePriceList", - {StartDate:this.parametersData.StartDate}, + "bus_get_GetBusTypePriceList", { + StartDate: this.parametersData.StartDate + }, res => { if (res.data.resultCode == 1) { this.BusTypeList = res.data.data; @@ -686,7 +689,7 @@ if (this.isSubmit) { this.isSubmit = false; this.apipost('bus_get_SetPlan_V2', this.PostData, res => { - this.isSubmit = true; + this.isSubmit = true; if (res.data.resultCode == 1) { this.Success("ä¿å˜æˆåŠŸï¼"); this.MsgBus.$emit('msg'); @@ -788,7 +791,7 @@ .length - 1]; } let newPlanData = this.PlanTableData[index].BusPlanOrderList[subIndex]; - newPlanData.AirportPickUp=oldPlanData.AirportPickUp; + newPlanData.AirportPickUp = oldPlanData.AirportPickUp; newPlanData.DriverName = oldPlanData.DriverName; newPlanData.DriverTel = oldPlanData.DriverTel; newPlanData.BusNum = oldPlanData.BusNum; @@ -797,9 +800,20 @@ newPlanData.PayType = oldPlanData.PayType; newPlanData.BookGroup = oldPlanData.BookGroup; newPlanData.HighSpeedPayType = oldPlanData.HighSpeedPayType; + }, + GetAuth() { + this.apipost('dmcstatistics_get_GetGetDmcTotalTablePageAuth', {}, res => { + if (res.data.resultCode == 1) { + this.IsEditBus = res.data.data.IsEditBus; + } else { + this.$message.error(res.data.message); + } + }, err => {}) } + }, mounted() { + this.GetAuth(); this.GetUseTypeList(); this.GetAirportPickUpList(); this.GeAccommodationTypeList();