|
@@ -419,7 +419,6 @@ var namearr=['小姐','先生','女士','老师']
|
|
|
var namewy = (rule, value, callback) => {
|
|
|
var array=namearr.map((item,index)=>{
|
|
|
if (value.includes(item)) {
|
|
|
- console.log(4123);
|
|
|
callback(new Error('联系人不能包含先生、女士、小姐等字样'));
|
|
|
return
|
|
|
}
|
|
@@ -628,7 +627,6 @@ export default {
|
|
|
},
|
|
|
//卡类型切换
|
|
|
cardhandoff(val){
|
|
|
- console.log(val)
|
|
|
for(var i=0;i<this.cardTypeData.length;i++){
|
|
|
if(val==this.cardTypeData[i].id){
|
|
|
this.InvitationOfficialActivities.bankNo=this.cardTypeData[i].remark;
|
|
@@ -649,7 +647,6 @@ export default {
|
|
|
|
|
|
}).then(function (res) {
|
|
|
if (res.data.code == 200) {
|
|
|
- console.log(res)
|
|
|
that.payment = res.data.data.payTypeData;
|
|
|
that.cardTypeData = res.data.data.cardTypeData;
|
|
|
that.costIdentificationData = res.data.data.costIdentificationData;
|
|
@@ -741,7 +738,6 @@ export default {
|
|
|
}
|
|
|
}).then(function (res) {
|
|
|
if (res.data.code == 200) {
|
|
|
- console.log(res)
|
|
|
that.delegationInfoList = res.data.data.groupName;
|
|
|
that.DiIdSelect = parseInt(that.DiId)
|
|
|
for (let index = 0; index < that.delegationInfoList.length; index++) {
|
|
@@ -770,7 +766,6 @@ export default {
|
|
|
}
|
|
|
}).then(function (res) {
|
|
|
if (res.data.code == 200) {
|
|
|
- console.log(res.data.data)
|
|
|
that.InvitationOfficialActivities.payDId = res.data.data._CreditCard.payDId;
|
|
|
that.InvitationOfficialActivities.orbitalPrivateTransfer = res.data.data._CreditCard.orbitalPrivateTransfer;
|
|
|
that.InvitationOfficialActivities.payee = res.data.data._CreditCard.payee;
|
|
@@ -838,18 +833,35 @@ export default {
|
|
|
var inviteRate=0;
|
|
|
var translateRate=0;
|
|
|
var sendRate=0;
|
|
|
+ var zongmoney=[];
|
|
|
for (let h = 0; h < this.rateList.length; h++) {
|
|
|
if(this.InvitationOfficialActivities.eventsCurrency==this.rateList[h].currencyId){
|
|
|
eventsRate=this.rateList[h].rate;
|
|
|
+ zongmoney.push({
|
|
|
+ jine:this.InvitationOfficialActivities.eventsCost,
|
|
|
+ bizhongs:this.InvitationOfficialActivities.eventsCurrency
|
|
|
+ })
|
|
|
}
|
|
|
if(this.InvitationOfficialActivities.inviteCurrency==this.rateList[h].currencyId){
|
|
|
inviteRate=this.rateList[h].rate;
|
|
|
+ zongmoney.push({
|
|
|
+ jine:this.InvitationOfficialActivities.inviteCost,
|
|
|
+ bizhongs:this.InvitationOfficialActivities.inviteCurrency
|
|
|
+ })
|
|
|
}
|
|
|
if(this.InvitationOfficialActivities.translateCurrency==this.rateList[h].currencyId){
|
|
|
translateRate=this.rateList[h].rate;
|
|
|
+ zongmoney.push({
|
|
|
+ jine:this.InvitationOfficialActivities.translateCost,
|
|
|
+ bizhongs:this.InvitationOfficialActivities.translateCurrency
|
|
|
+ })
|
|
|
}
|
|
|
if(this.InvitationOfficialActivities.sendCurrency==this.rateList[h].currencyId){
|
|
|
sendRate=this.rateList[h].rate;
|
|
|
+ zongmoney.push({
|
|
|
+ jine:this.InvitationOfficialActivities.sendCost,
|
|
|
+ bizhongs:this.InvitationOfficialActivities.sendCurrency
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
if(
|
|
@@ -858,13 +870,33 @@ export default {
|
|
|
||this.InvitationOfficialActivities.translateCurrency!=this.InvitationOfficialActivities.sendCurrency
|
|
|
||this.InvitationOfficialActivities.sendCurrency!=this.InvitationOfficialActivities.eventsCurrency
|
|
|
){
|
|
|
- this.InvitationOfficialActivities.paymentCurrency=836
|
|
|
- this.InvitationOfficialActivities.payMoney=(
|
|
|
- this.InvitationOfficialActivities.eventsCost*eventsRate+
|
|
|
- this.InvitationOfficialActivities.inviteCost*inviteRate+
|
|
|
- this.InvitationOfficialActivities.translateCost*translateRate+
|
|
|
- this.InvitationOfficialActivities.sendCost*sendRate
|
|
|
- );
|
|
|
+ for (let k = 0; k < zongmoney.length; k++) {
|
|
|
+ if (zongmoney[k].jine==0) {
|
|
|
+ zongmoney.splice(k,1)
|
|
|
+ k--
|
|
|
+ }
|
|
|
+ }
|
|
|
+ var totalss=[];
|
|
|
+ for(let o = 0; o < zongmoney.length; o++){
|
|
|
+ totalss.push(zongmoney[o].bizhongs)
|
|
|
+ }
|
|
|
+ if(Array.from(new Set(totalss)).length>1){
|
|
|
+ this.InvitationOfficialActivities.paymentCurrency=836
|
|
|
+ this.InvitationOfficialActivities.payMoney=(
|
|
|
+ this.InvitationOfficialActivities.eventsCost*eventsRate+
|
|
|
+ this.InvitationOfficialActivities.inviteCost*inviteRate+
|
|
|
+ this.InvitationOfficialActivities.translateCost*translateRate+
|
|
|
+ this.InvitationOfficialActivities.sendCost*sendRate
|
|
|
+ );
|
|
|
+ }else{
|
|
|
+ this.InvitationOfficialActivities.paymentCurrency=this.InvitationOfficialActivities.eventsCurrency
|
|
|
+ this.InvitationOfficialActivities.payMoney=(
|
|
|
+ this.InvitationOfficialActivities.eventsCost+
|
|
|
+ this.InvitationOfficialActivities.inviteCost+
|
|
|
+ this.InvitationOfficialActivities.translateCost+
|
|
|
+ this.InvitationOfficialActivities.sendCost
|
|
|
+ );
|
|
|
+ }
|
|
|
}else{
|
|
|
this.InvitationOfficialActivities.paymentCurrency=this.InvitationOfficialActivities.eventsCurrency
|
|
|
this.InvitationOfficialActivities.payMoney=(
|