Commit 3c5c8a78 authored by 黄奎's avatar 黄奎

新增修改餐,重复提交验证

parent eb521e50
...@@ -46,11 +46,10 @@ ...@@ -46,11 +46,10 @@
<div class="query-box" style="border-bottom: none;"> <div class="query-box" style="border-bottom: none;">
<ul> <ul>
<li> <li>
<input v-if="IsOperation!=1" type="button" class="fr normalBtn mb30" :value="$t('pub.saveBtn')" <el-button type="primary" class="fr normalBtn mb30" v-if="IsOperation!=1" :loading="saveLoading"
@click="saveList(1)" /> @click="saveList(1)">{{$t('pub.saveBtn')}}</el-button>
<!--&&currentUserInfo.EmployeeId==615--> <el-button type="primary" class="fr normalBtn mb30" v-if="IsOperation==1&& EditBtn " :loading="saveLoading"
<input v-if="IsOperation==1&& EditBtn " type="button" @click="saveList(1)">{{$t('pub.saveBtn')}}</el-button>
class="fr normalBtn mb30" :value="$t('pub.saveBtn')" @click="saveList(1)" />
<span v-if="IsOperation==1" style="color:red;font-size:14px;">{{$t('ground.yizhidanbng')}}</span> <span v-if="IsOperation==1" style="color:red;font-size:14px;">{{$t('ground.yizhidanbng')}}</span>
</li> </li>
</ul> </ul>
...@@ -98,7 +97,7 @@ ...@@ -98,7 +97,7 @@
</td> </td>
</tr> </tr>
</table> </table>
<el-button slot="reference" style="background:#E95252; border-color:#E95252" type="primary"> <el-button slot="reference" style="background:#E95252;" type="primary">
批量上传手配书 批量上传手配书
</el-button> </el-button>
</el-popover> </el-popover>
...@@ -134,8 +133,8 @@ ...@@ -134,8 +133,8 @@
</td> </td>
</tr> </tr>
</table> </table>
<el-button slot="reference" style="background:#E95252; border-color:#E95252;" type="primary" <el-button slot="reference" style="background:#E95252; " type="primary" v-if="EditBtn"
v-if="EditBtn" @click="IsShowMoreUpdate=true"> @click="IsShowMoreUpdate=true">
批量修改酒店 批量修改酒店
</el-button> </el-button>
</el-popover> </el-popover>
...@@ -173,7 +172,7 @@ ...@@ -173,7 +172,7 @@
<tbody> <tbody>
<template v-for="(item,index) in list"> <template v-for="(item,index) in list">
<template v-for="(subItem,subIndex) in item.HotelOrderList"> <template v-for="(subItem,subIndex) in item.HotelOrderList">
<tr v-for="(childItem,childIndex) in subItem.OrderDetailsList"> <tr v-for="(childItem,childIndex) in subItem.OrderDetailsList" :key="`h_`+index+subIndex+childIndex">
<td v-if="childIndex==0&&subIndex==0" :rowspan="6*item.HotelOrderList.length"> <td v-if="childIndex==0&&subIndex==0" :rowspan="6*item.HotelOrderList.length">
{{item.UseTimeStr}} {{item.UseTimeStr}}
</td> </td>
...@@ -724,6 +723,7 @@ ...@@ -724,6 +723,7 @@
], ],
ChooseCountry: "651", ChooseCountry: "651",
currentUserInfo: {}, currentUserInfo: {},
saveLoading: false, //保存,防止重复提交
} }
}, },
components: { components: {
...@@ -1148,10 +1148,11 @@ ...@@ -1148,10 +1148,11 @@
} }
}); });
}) })
this.saveLoading = true;
this.loading = true; this.loading = true;
this.apipost('dmcstatistics_get_SetHotelOrder', this.list, res => { this.apipost('dmcstatistics_get_SetHotelOrder', this.list, res => {
this.loading = false; this.loading = false;
this.saveLoading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.getList(); this.getList();
this.Success(res.data.message); this.Success(res.data.message);
......
...@@ -4,16 +4,13 @@ ...@@ -4,16 +4,13 @@
<ul> <ul>
<li> <li>
<template v-if="IsOperation != 1"> <template v-if="IsOperation != 1">
<!--v-if="IsEditDinner==1"--> <el-button type="primary" class="fr normalBtn mb30" :loading="saveLogding" @click="saveList()">
<input type="button" class="fr normalBtn mb30" :value="$t('pub.saveBtn')" @click="saveList(1)" {{$t('pub.saveBtn')}}</el-button>
:disabled="IsDisabled" />
<input v-if="IsEditDinner==0" type="button" class="fr normalBtn mb30" style="display:none;"
:value="$t('ground.baocuncaogao')" @click="saveList()" :disabled="IsDisabled" />
</template> </template>
<template v-else> <template v-else>
<span style="color:red;font-size:14px;">{{$t('ground.yizhidbnxg')}}!</span> <span style="color:red;font-size:14px;">{{$t('ground.yizhidbnxg')}}!</span>
<input v-if="EditBtn&&currentUserInfo.EmployeeId==615" type="button" class="fr normalBtn mb30" <el-button v-if="EditBtn&&currentUserInfo.EmployeeId==615" class="fr normalBtn mb30" type="primary"
:value="$t('pub.saveBtn')" @click="saveList()" /> :loading="saveLogding" @click="saveList()">{{$t('pub.saveBtn')}}</el-button>
</template> </template>
</li> </li>
</ul> </ul>
...@@ -33,7 +30,6 @@ ...@@ -33,7 +30,6 @@
<th width="200">{{$t('restaurant.res_resName')}}</th> <th width="200">{{$t('restaurant.res_resName')}}</th>
<th width="150">{{$t('ground.xiugaict')}}</th> <th width="150">{{$t('ground.xiugaict')}}</th>
<th width="80">{{$t('ground.leibie')}}</th> <th width="80">{{$t('ground.leibie')}}</th>
<th width="70">{{$t('ground.zongrenshu')}}</th> <th width="70">{{$t('ground.zongrenshu')}}</th>
<th width="70">{{$t('ground.yongcanren')}}<br />{{$t('advmanager.v_type')}}</th> <th width="70">{{$t('ground.yongcanren')}}<br />{{$t('advmanager.v_type')}}</th>
<th width="70">{{$t('commonPickUp.Pick_Ding')}}<br />{{$t('admin.admin_personNumber')}}</th> <th width="70">{{$t('commonPickUp.Pick_Ding')}}<br />{{$t('admin.admin_personNumber')}}</th>
...@@ -47,7 +43,7 @@ ...@@ -47,7 +43,7 @@
</tr> </tr>
<template v-for="(item,index) in list"> <template v-for="(item,index) in list">
<template v-for="(subItem,subIndex) in item.DiningSummaryList"> <template v-for="(subItem,subIndex) in item.DiningSummaryList">
<tr v-for="(childItem,childIndex) in subItem.DiningPriceList"> <tr v-for="(childItem,childIndex) in subItem.DiningPriceList" :key="`d_`+index+subIndex+childIndex">
<td v-if="childIndex==0" :rowspan="3"> <td v-if="childIndex==0" :rowspan="3">
{{item.UseTimeStr}} {{item.UseTimeStr}}
</td> </td>
...@@ -234,7 +230,8 @@ ...@@ -234,7 +230,8 @@
确认时间: 确认时间:
</td> </td>
<td style="text-align:left;"> <td style="text-align:left;">
<el-date-picker class='w135' v-model="subItem.SureTime" type="date" placeholder="选择确认时间" value-format="yyyy-MM-dd"> <el-date-picker class='w135' v-model="subItem.SureTime" type="date" placeholder="选择确认时间"
value-format="yyyy-MM-dd">
</el-date-picker> </el-date-picker>
</td> </td>
</tr> </tr>
...@@ -306,8 +303,7 @@ ...@@ -306,8 +303,7 @@
GuestNum: 0, GuestNum: 0,
loading: false, loading: false,
IsOperation: '', IsOperation: '',
//是否禁用按钮 saveLogding: false,
IsDisabled: false,
allCurrencyList: [], allCurrencyList: [],
findex: 0, findex: 0,
childIndex: 0, childIndex: 0,
...@@ -474,7 +470,7 @@ ...@@ -474,7 +470,7 @@
this.$forceUpdate(); this.$forceUpdate();
}, },
saveList() { saveList() {
this.IsDisabled = true; this.saveLogding = true;
this.list.forEach(item => { this.list.forEach(item => {
item.DiningSummaryList.forEach(insideItem => { item.DiningSummaryList.forEach(insideItem => {
if (insideItem.DiningPriceList) { if (insideItem.DiningPriceList) {
...@@ -490,12 +486,11 @@ ...@@ -490,12 +486,11 @@
}) })
}) })
this.apipost('dmcstatistics_get_SetDiningOrder', this.list, res => { this.apipost('dmcstatistics_get_SetDiningOrder', this.list, res => {
this.saveLogding = false;
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 => {})
......
...@@ -218,7 +218,7 @@ ...@@ -218,7 +218,7 @@
<el-table-column fixed :label="$t('sm.yongchejihua')" min-width="180"> <el-table-column fixed :label="$t('sm.yongchejihua')" min-width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- {{scope.$index+1}} --> <!-- {{scope.$index+1}} -->
<div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="subIndex"> <div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bpo_ap_`+subIndex">
<em> <em>
<!--接机送机--> <!--接机送机-->
<el-select class="w100" :placeholder="$t('pub.pleaseSel')" v-model="subItem.AirportPickUp" <el-select class="w100" :placeholder="$t('pub.pleaseSel')" v-model="subItem.AirportPickUp"
...@@ -243,11 +243,10 @@ ...@@ -243,11 +243,10 @@
</el-table-column> </el-table-column>
<el-table-column label="套团团号" min-width="230"> <el-table-column label="套团团号" min-width="230">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="subIndex"> <div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bpo_tt_`+subIndex">
<template v-if="subItem.AirportPickUp==15"> <template v-if="subItem.AirportPickUp==15">
<div v-for="(childItem,childIndex) in subItem.MergeList" :key="childIndex"> <div v-for="(childItem,childIndex) in subItem.MergeList" :key="`bpo_me_`+childIndex">
<em> <em>
<!--@change="GetTravelPrice(subItem)"-->
<el-select filterable style="margin-bottom:5px;" class="w170" :placeholder="$t('pub.pleaseSel')" <el-select filterable style="margin-bottom:5px;" class="w170" :placeholder="$t('pub.pleaseSel')"
v-model="childItem.MTCID" @visible-change="GetPriceList(subItem)" v-model="childItem.MTCID" @visible-change="GetPriceList(subItem)"
@change="GetPriceChange(subItem,childItem)"> @change="GetPriceChange(subItem,childItem)">
...@@ -271,28 +270,28 @@ ...@@ -271,28 +270,28 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('ground.sijiName')" min-width="120"> <el-table-column :label="$t('ground.sijiName')" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="subItem in scope.row.BusPlanOrderList" class="comBTM"> <div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bpd_`+subIndex">
<el-input v-model="subItem.DriverName"></el-input> <el-input v-model="subItem.DriverName"></el-input>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('restaurant.res_ContactNumber')" min-width="140"> <el-table-column :label="$t('restaurant.res_ContactNumber')" min-width="140">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="subItem in scope.row.BusPlanOrderList" class="comBTM"> <div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bpdt_`+subIndex">
<el-input v-model="subItem.DriverTel"></el-input> <el-input v-model="subItem.DriverTel"></el-input>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('ground.cphaoma')" min-width="100"> <el-table-column :label="$t('ground.cphaoma')" min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="subItem in scope.row.BusPlanOrderList" class="comBTM"> <div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bpo_`+subIndex">
<el-input v-model="subItem.BusNum"></el-input> <el-input v-model="subItem.BusNum"></el-input>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('hotel.hotel_Supplier')" min-width="150"> <el-table-column :label="$t('hotel.hotel_Supplier')" min-width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="subItem in scope.row.BusPlanOrderList" class="comBTM"> <div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bps_`+subIndex">
<el-select filterable :placeholder="$t('pub.pleaseSel')" v-model="subItem.BusCompany"> <el-select filterable :placeholder="$t('pub.pleaseSel')" v-model="subItem.BusCompany">
<el-option :key="0" :value="0" :label="$t('pub.pleaseSel')"></el-option> <el-option :key="0" :value="0" :label="$t('pub.pleaseSel')"></el-option>
<el-option v-for="item in SupplierList" :key="item.ID" :label="item.Name" :value="item.ID"> <el-option v-for="item in SupplierList" :key="item.ID" :label="item.Name" :value="item.ID">
...@@ -303,7 +302,7 @@ ...@@ -303,7 +302,7 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('ground.busType')" min-width="150"> <el-table-column :label="$t('ground.busType')" min-width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="subItem in scope.row.BusPlanOrderList" class="comBTM"> <div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bpo_b_`+subIndex">
<el-select filterable :placeholder="$t('pub.pleaseSel')" v-model="subItem.BusType" <el-select filterable :placeholder="$t('pub.pleaseSel')" v-model="subItem.BusType"
:disabled="forbidInput" @change='getBusPrice(subItem)'> :disabled="forbidInput" @change='getBusPrice(subItem)'>
<el-option :key="0" :value="0" :label="$t('pub.pleaseSel')"></el-option> <el-option :key="0" :value="0" :label="$t('pub.pleaseSel')"></el-option>
...@@ -315,7 +314,7 @@ ...@@ -315,7 +314,7 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('fnc.fkfangshi')" min-width="130"> <el-table-column :label="$t('fnc.fkfangshi')" min-width="130">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="subItem in scope.row.BusPlanOrderList" class="comBTM"> <div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bpo_p_`+subIndex">
<el-select class='sel' v-model='subItem.PayType' :disabled="isShowBtn==1||IsEditBus==0?true:false" <el-select class='sel' v-model='subItem.PayType' :disabled="isShowBtn==1||IsEditBus==0?true:false"
:placeholder="$t('pub.pleaseSel')" @change="PayTypeChange(scope.row)"> :placeholder="$t('pub.pleaseSel')" @change="PayTypeChange(scope.row)">
<el-option :label="$t('pub.pleaseSel')" :value='0'></el-option> <el-option :label="$t('pub.pleaseSel')" :value='0'></el-option>
...@@ -332,7 +331,7 @@ ...@@ -332,7 +331,7 @@
<el-table-column :label="$t('ground.dingtuanhao')" min-width="180"> <el-table-column :label="$t('ground.dingtuanhao')" min-width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="comBTM" v-for="(subItem,subIndex) in scope.row.BusPlanOrderList"> <div class="comBTM" v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" :key="`bpo_bo_`+subIndex">
<template v-if="scope.$index==0&&subIndex==0"> <template v-if="scope.$index==0&&subIndex==0">
<i class="iconfont icon-tongshang" style="opacity:0;filter:alpha(opacity=0); "></i> <i class="iconfont icon-tongshang" style="opacity:0;filter:alpha(opacity=0); "></i>
<el-input class='w135' type="text" v-model="subItem.BookGroup"></el-input> <el-input class='w135' type="text" v-model="subItem.BookGroup"></el-input>
...@@ -350,8 +349,9 @@ ...@@ -350,8 +349,9 @@
<el-table-column :label="$t('ground.sjzhusu')" min-width="180"> <el-table-column :label="$t('ground.sjzhusu')" min-width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<!--司机住宿类型--> <!--司机住宿类型-->
<div v-for="childItem in scope.row.BusPlanOrderList" class="comBTM"> <div v-for="(childItem,childIndex) in scope.row.BusPlanOrderList" class="comBTM"
<span v-for="subItem in AccommodationTypeArray"> :key="`bpo_ac_`+childIndex">
<span v-for="(subItem,subIndex) in AccommodationTypeArray" :key="`bpo_acc_`+childIndex+subIndex">
<span class="subName" :class="{'spanCked':childItem.AccommodationType==subItem.Id}" <span class="subName" :class="{'spanCked':childItem.AccommodationType==subItem.Id}"
@click="AccommodationCLick(subItem.Id,childItem)">{{subItem.Name}}</span> @click="AccommodationCLick(subItem.Id,childItem)">{{subItem.Name}}</span>
<span v-if="subItem.Id==1 && childItem.AccommodationType==1"> <span v-if="subItem.Id==1 && childItem.AccommodationType==1">
...@@ -365,14 +365,14 @@ ...@@ -365,14 +365,14 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('ground.bcsm')" min-width="180"> <el-table-column :label="$t('ground.bcsm')" min-width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="subItem in scope.row.BusPlanOrderList" class="comBTM"> <div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bpo_pe_`+subIndex">
<el-input v-model="subItem.ParkExplain" :placeholder="$t('ground.qsrsm')"></el-input> <el-input v-model="subItem.ParkExplain" :placeholder="$t('ground.qsrsm')"></el-input>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('ground.gsfeiyong')" min-width="120"> <el-table-column :label="$t('ground.gsfeiyong')" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="subItem in scope.row.BusPlanOrderList" class="comBTM"> <div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bpo_hsp_`+subIndex">
<el-input v-model="subItem.HighSpeedPrice" @keyup.native="checkPrice(subItem,'HighSpeedPrice')" <el-input v-model="subItem.HighSpeedPrice" @keyup.native="checkPrice(subItem,'HighSpeedPrice')"
:placeholder="$t('ground.qsrfyong')" :disabled="isShowBtn==1||IsEditBus==0?true:false" class='w100'> :placeholder="$t('ground.qsrfyong')" :disabled="isShowBtn==1||IsEditBus==0?true:false" class='w100'>
</el-input> </el-input>
...@@ -382,7 +382,7 @@ ...@@ -382,7 +382,7 @@
<el-table-column :label="$t('ground.gsfkfs')" min-width="140"> <el-table-column :label="$t('ground.gsfkfs')" min-width="140">
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
<div v-for="(subItem,index) in scope.row.BusPlanOrderList" class="comBTM"> <div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bpo_hsp_`+subIndex">
<el-select class='sel w120' v-model='subItem.HighSpeedPayType' :placeholder="$t('pub.pleaseSel')" <el-select class='sel w120' v-model='subItem.HighSpeedPayType' :placeholder="$t('pub.pleaseSel')"
@change="PayTypeChange(subItem)" :disabled="isShowBtn==1||IsEditBus==0?true:false"> @change="PayTypeChange(subItem)" :disabled="isShowBtn==1||IsEditBus==0?true:false">
<el-option :label="$t('pub.pleaseSel')" :value='0'></el-option> <el-option :label="$t('pub.pleaseSel')" :value='0'></el-option>
...@@ -399,7 +399,7 @@ ...@@ -399,7 +399,7 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('ground.UsePCount')" min-width="80"> <el-table-column :label="$t('ground.UsePCount')" min-width="80">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="subItem in scope.row.BusPlanOrderList" class="comBTM"> <div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bpo_un_`+subIndex">
<el-input v-model="subItem.UseNum" @keyup.native="checkPrice(subItem,'UseNum')" <el-input v-model="subItem.UseNum" @keyup.native="checkPrice(subItem,'UseNum')"
:disabled="isShowBtn==1||IsEditBus==0?true:false"></el-input> :disabled="isShowBtn==1||IsEditBus==0?true:false"></el-input>
</div> </div>
...@@ -407,7 +407,7 @@ ...@@ -407,7 +407,7 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('ground.cbenjia')" min-width="120"> <el-table-column :label="$t('ground.cbenjia')" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="subItem in scope.row.BusPlanOrderList" class="comBTM"> <div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bpo_cp_`+subIndex">
<el-input v-model="subItem.CostPrice" :disabled="isShowBtn==1||IsEditBus==0?true:false" <el-input v-model="subItem.CostPrice" :disabled="isShowBtn==1||IsEditBus==0?true:false"
@keyup.native="checkPrice(subItem,'CostPrice')" :placeholder="$t('ground.qingshurcbj')" class="w100"> @keyup.native="checkPrice(subItem,'CostPrice')" :placeholder="$t('ground.qingshurcbj')" class="w100">
</el-input> </el-input>
...@@ -416,21 +416,23 @@ ...@@ -416,21 +416,23 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('pub.pubRemark')" min-width="180"> <el-table-column :label="$t('pub.pubRemark')" min-width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="subItem in scope.row.BusPlanOrderList" class="comBTM"> <div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bpo_rk_`+subIndex">
<el-input type="text" v-model="subItem.Remarks"></el-input> <el-input type="text" v-model="subItem.Remarks"></el-input>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('ground.park')" min-width="70"> <el-table-column :label="$t('ground.park')" min-width="70">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="subItem in scope.row.BusPlanOrderList" class="park_List comBTM"> <div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="park_List comBTM"
:key="`bpo_ihk_`+subIndex">
{{subItem.IsHavearking=='0'?$t('fnc.no'):'有'}} {{subItem.IsHavearking=='0'?$t('fnc.no'):'有'}}
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('ground.xiaoji')" min-width="80"> <el-table-column :label="$t('ground.xiaoji')" min-width="80">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="subItem in scope.row.BusPlanOrderList" class="park_List comBTM"> <div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="park_List comBTM"
:key="`bpo_cpt_`+subIndex">
{{subItem.CostPrice*(Number(subItem.TransferNum)+1) + Number(subItem.HighSpeedPrice)}} {{subItem.CostPrice*(Number(subItem.TransferNum)+1) + Number(subItem.HighSpeedPrice)}}
</div> </div>
</template> </template>
...@@ -438,11 +440,12 @@ ...@@ -438,11 +440,12 @@
</el-table> </el-table>
<div class="upBtnList"> <div class="upBtnList">
<input v-if="isShowBtn==0" type="button" class="normalBtn" :class="{'disClick':!isSubmit}" <el-button v-if="isShowBtn==0" type="primary" class="normalBtn" @click="SaveList(1)" :loading="saveLoading">
@click="SaveList(1)" :disabled="disButton" :value="$t('pub.saveBtn')" /> {{$t('pub.saveBtn')}}</el-button>
<el-button v-if="isShowBtn==1&&currentUserInfo.EmployeeId==615" type="primary" class="normalBtn"
@click="SaveList(1)" :loading="saveLoading">
{{$t('pub.saveBtn')}}</el-button>
<input v-if="isShowBtn==1&&currentUserInfo.EmployeeId==615" type="button" class="normalBtn"
:class="{'disClick':!isSubmit}" @click="SaveList(1)" :disabled="disButton" :value="$t('pub.saveBtn')" />
<span v-if="isShowBtn==1" style="color:red;margin-left:10px;"> <span v-if="isShowBtn==1" style="color:red;margin-left:10px;">
{{$t('ground.xzdanbuneng')}} {{$t('ground.xzdanbuneng')}}
</span> </span>
...@@ -472,15 +475,13 @@ ...@@ -472,15 +475,13 @@
PostData: {}, PostData: {},
//公用信息 //公用信息
CommonList: [], CommonList: [],
//禁用文本框
diabledValue: true,
/*计划表数据*/ /*计划表数据*/
forbidInput: false, forbidInput: false,
PlanTableData: [], PlanTableData: [],
UseTypeArray: [], //用车类型 UseTypeArray: [], //用车类型
BusAirportPickUpList: [], //用车类型 BusAirportPickUpList: [], //用车类型
//禁止重复提交禁用按钮 //防止重复提交
disButton: false, saveLoading: false,
//司机住宿类型 //司机住宿类型
AccommodationTypeArray: [], AccommodationTypeArray: [],
rules: { rules: {
...@@ -574,7 +575,6 @@ ...@@ -574,7 +575,6 @@
LeaderName: '', LeaderName: '',
GuideName: '', GuideName: '',
loading: false, loading: false,
isSubmit: true,
isShowBtn: 1, //1禁用高速费,成本费,高速付款方式文本框 isShowBtn: 1, //1禁用高速费,成本费,高速付款方式文本框
IsEditBus: 0, //车辆修改权限 IsEditBus: 0, //车辆修改权限
currentUserInfo: {}, currentUserInfo: {},
...@@ -762,19 +762,17 @@ ...@@ -762,19 +762,17 @@
y.OrderState = type; y.OrderState = type;
}) })
}) })
if (this.isSubmit) { this.saveLoading = true;
this.isSubmit = false; this.apipost('bus_get_SetPlan_V2', this.PostData, res => {
this.apipost('bus_get_SetPlan_V2', this.PostData, res => { this.saveLoading = false;
this.isSubmit = true; if (res.data.resultCode == 1) {
if (res.data.resultCode == 1) { this.Success(this.$t('tips.saveYes'));
this.Success(this.$t('tips.saveYes')); this.MsgBus.$emit('msg');
this.MsgBus.$emit('msg'); this.createTableData();
this.createTableData(); } else {
} else { this.Error(res.data.message);
this.Error(res.data.message); }
} }, err => {})
}, err => {})
}
}, },
//司机住宿点击事件 //司机住宿点击事件
......
...@@ -4,14 +4,13 @@ ...@@ -4,14 +4,13 @@
<ul> <ul>
<li> <li>
<template v-if="IsOperation !=1"> <template v-if="IsOperation !=1">
<input type="button" class="fr normalBtn mb30" :value="$t('pub.saveBtn')" @click="saveList(1)" <el-button type="primary" class="fr normalBtn mb30" :loading="saveLoading" @click="saveList(1)">
:disabled="IsDisabled" /> {{$t('pub.saveBtn')}}</el-button>
<!-- <input type="button" class="fr normalBtn mb30" value="保存草稿" @click="saveList(1)" :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="EditBtn&&currentUserInfo.EmployeeId==615" type="button" class="fr normalBtn mb30" <el-button type="primary" class="fr normalBtn mb30" v-if="EditBtn&&currentUserInfo.EmployeeId==615"
:value="$t('pub.saveBtn')" @click="saveList(1)" /> :loading="saveLoading" @click="saveList(1)">{{$t('pub.saveBtn')}}</el-button>
</template> </template>
</li> </li>
</ul> </ul>
...@@ -34,16 +33,16 @@ ...@@ -34,16 +33,16 @@
<th width="70">游客<br />{{$t('admin.admin_personNumber')}}</th> <th width="70">游客<br />{{$t('admin.admin_personNumber')}}</th>
<th width="70">使用<br />{{$t('admin.admin_personNumber')}}</th> <th width="70">使用<br />{{$t('admin.admin_personNumber')}}</th>
<th width="70">免人数</th> <th width="70">免人数</th>
<th width="90">单价</th> <th width="120">单价</th>
<th width="90">金额小计</th> <th width="90">金额小计</th>
<th width="80">返佣</th> <th width="120">返佣</th>
<th width="100">总金额</th> <th width="100">总金额</th>
<th width="210">付款方式/订团号</th> <th width="210">付款方式/订团号</th>
<th width="200">{{$t('pub.pubRemark')}}</th> <th width="200">{{$t('pub.pubRemark')}}</th>
</tr> </tr>
<template v-for="(item,index) in DataList"> <template v-for="(item,index) in DataList">
<template v-for="(subItem,subIndex) in item.ScenicStatisticsList"> <template v-for="(subItem,subIndex) in item.ScenicStatisticsList">
<tr v-for="(childItem,childIndex) in subItem.TicketPriceList"> <tr v-for="(childItem,childIndex) in subItem.TicketPriceList" :key="`s_`+index+subIndex+childIndex">
<td v-if="childIndex==0" :rowspan="3"> <td v-if="childIndex==0" :rowspan="3">
{{item.UseTimeStr}} {{item.UseTimeStr}}
</td> </td>
...@@ -101,7 +100,7 @@ ...@@ -101,7 +100,7 @@
</td> </td>
<td> <td>
<template v-if="EditBtn||LineId==90"> <template v-if="EditBtn||LineId==90">
<el-input class='w135' v-model='childItem.PeoplePrice' <el-input class='w100' v-model='childItem.PeoplePrice'
@keyup.native="checkPrice(childItem,'PeoplePrice')" @input='calculationPrice(subItem)' type="text"> @keyup.native="checkPrice(childItem,'PeoplePrice')" @input='calculationPrice(subItem)' type="text">
</el-input> </el-input>
</template> </template>
...@@ -118,7 +117,7 @@ ...@@ -118,7 +117,7 @@
</td> </td>
<td> <td>
<template v-if="EditBtn||LineId==90"> <template v-if="EditBtn||LineId==90">
<el-input class='w135' v-model='childItem.DiscountPrice' <el-input class='w100' v-model='childItem.DiscountPrice'
@keyup.native="checkPrice(childItem,'DiscountPrice')" @input='calculationPrice(subItem)' @keyup.native="checkPrice(childItem,'DiscountPrice')" @input='calculationPrice(subItem)'
type="text"></el-input> type="text"></el-input>
</template> </template>
...@@ -193,8 +192,7 @@ ...@@ -193,8 +192,7 @@
GuestNum: 0, GuestNum: 0,
loading: false, loading: false,
IsOperation: '', IsOperation: '',
//是否禁用按钮 saveLoading: false,
IsDisabled: false,
LineId: 0, //线路编号 LineId: 0, //线路编号
currentUserInfo: {} currentUserInfo: {}
} }
...@@ -259,7 +257,7 @@ ...@@ -259,7 +257,7 @@
}, err => {}) }, err => {})
}, },
saveList(type) { saveList(type) {
this.IsDisabled = true; this.saveLoading = true;
if (type == 0) { if (type == 0) {
this.DataList.forEach(item => { this.DataList.forEach(item => {
item.ScenicStatisticsList.forEach(insideItem => { item.ScenicStatisticsList.forEach(insideItem => {
...@@ -291,16 +289,14 @@ ...@@ -291,16 +289,14 @@
}) })
} }
this.apipost('dmcstatistics_get_SetTicketOrder', this.DataList, res => { this.apipost('dmcstatistics_get_SetTicketOrder', this.DataList, res => {
this.saveLoading = false;
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 => {})
}, },
CheckAuth() { CheckAuth() {
var actionCode = this.$AuthCode.EditRoomDinnerTIcket; var actionCode = this.$AuthCode.EditRoomDinnerTIcket;
......
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