Commit d959ed00 authored by liudong1993's avatar liudong1993

1

parent d572da05
...@@ -558,7 +558,7 @@ ...@@ -558,7 +558,7 @@
</el-row> </el-row>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="closeContractDialog">{{$t('pub.cancelBtn')}}</button> &nbsp; <button class="hollowFixedBtn" @click="closeContractDialog">{{$t('pub.cancelBtn')}}</button> &nbsp;
<button class="normalBtn" type="primary" @click="!isBoHui?AuditElec():SubmitContract(BoHuiObj,auditMsg.AuditContract)">{{$t('pub.sureBtn')}}</button> <button class="normalBtn" type="primary" :disabled="auditLoading" @click="!isBoHui?AuditElec():SubmitContract(BoHuiObj,auditMsg.AuditContract)">{{auditLoading?'...':$t('pub.sureBtn')}}</button>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog custom-class='w350' :visible.sync="isShowTG" :title="TGTitle" <el-dialog custom-class='w350' :visible.sync="isShowTG" :title="TGTitle"
...@@ -571,7 +571,7 @@ ...@@ -571,7 +571,7 @@
</el-row> </el-row>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="isShowTG = false">{{$t('pub.cancelBtn')}}</button> &nbsp; <button class="hollowFixedBtn" @click="isShowTG = false">{{$t('pub.cancelBtn')}}</button> &nbsp;
<button class="normalBtn" type="primary" @click="activeName==1?AuditElec():setContractStatus(auditMsg,auditMsg.status)">{{$t('pub.sureBtn')}}</button> <button class="normalBtn" type="primary" :disabled="auditLoading" @click="activeName==1?AuditElec():setContractStatus(auditMsg,auditMsg.status)">{{auditLoading?'...':$t('pub.sureBtn')}}</button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
...@@ -689,6 +689,7 @@ ...@@ -689,6 +689,7 @@
hetongTitle: '', hetongTitle: '',
ContractInfor: {}, ContractInfor: {},
inforLoading: false, inforLoading: false,
auditLoading: false, //审核提交防重复
}; };
}, },
methods: { methods: {
...@@ -775,8 +776,11 @@ ...@@ -775,8 +776,11 @@
}, },
//审核通过或者驳回 //审核通过或者驳回
AuditElec() { AuditElec() {
if(this.auditLoading) return;
this.auditLoading = true;
if(this.activeName==1){ if(this.activeName==1){
this.apipost("travelcontract_get_UpdateAuditContractService", this.auditMsg, res => { this.apipost("travelcontract_get_UpdateAuditContractService", this.auditMsg, res => {
this.auditLoading = false;
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.Success(res.data.message); this.Success(res.data.message);
this.getListOutTract() this.getListOutTract()
...@@ -786,7 +790,7 @@ ...@@ -786,7 +790,7 @@
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, null); }, () => { this.auditLoading = false; });
}else if(this.activeName==2){ }else if(this.activeName==2){
this.SubmitContract(this.BoHuiObj, this.auditMsg.AuditContract) this.SubmitContract(this.BoHuiObj, this.auditMsg.AuditContract)
} }
...@@ -911,6 +915,8 @@ ...@@ -911,6 +915,8 @@
} }
}, },
setContractStatus(item,status){ setContractStatus(item,status){
if(this.auditLoading) return;
this.auditLoading = true;
this.apipost('travelcontract_post_UpdateTravelContractStatusService', { this.apipost('travelcontract_post_UpdateTravelContractStatusService', {
ID: item.ID, ID: item.ID,
Status: status, Status: status,
...@@ -921,6 +927,7 @@ ...@@ -921,6 +927,7 @@
C_NightNum: item.C_NightNum, C_NightNum: item.C_NightNum,
IsApplyContract: this.auditMsg.IsApplyContract, IsApplyContract: this.auditMsg.IsApplyContract,
}, res => { }, res => {
this.auditLoading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
this.getOtherList(); this.getOtherList();
...@@ -930,7 +937,7 @@ ...@@ -930,7 +937,7 @@
} else { } else {
this.Error(res.data.message) this.Error(res.data.message)
} }
}) }, () => { this.auditLoading = false; })
}, },
//单项、一日游、境内旅游合同 //单项、一日游、境内旅游合同
getOtherList() { getOtherList() {
......
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