Commit d959ed00 authored by liudong1993's avatar liudong1993

1

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