Commit a70e5af7 authored by 黄奎's avatar 黄奎

用款计划调整

parent f4de6b35
......@@ -888,6 +888,7 @@
<tr>
<th width="140">团号</th>
<th>预付合计</th>
<th>提示</th>
<th>实际领款</th>
<th>财务单号</th>
<th>操作</th>
......@@ -904,10 +905,27 @@
{{currencyTypeObj[cur.CurrencyId]}}
</template>
) </span>
<br />
</span>
</td>
<td :rowspan="nav.length * CurrencyListMoney.length" width="280" v-if="index===0"
style="text-align:left;padding-left:5px;">
<span>注意:</span><br />
<span>1、合团的请分别领款;</span> <br />
<span>2、如需日本PIC付款,请选择PIC相关付款流程,请注意日本转账手续费;</span><br />
<span v-for="(cur,index) in CurrencyListMoney" :key="index+6000">
<template
v-if="cur.LeaderGetPriceArr&&cur.LeaderGetPriceArr.length>0 && cur.LeaderGetPriceArr[0].ShowTotalPrice">
<span> 合计领款不能超过 <font style="color:red;font-weight:bold">{{cur.LeaderGetPriceArr[0].ShowTotalPrice}}</font></span>
<span>3、合计领款不能超过:<font style="color:red;font-weight:bold">
{{moneyFormat(cur.LeaderGetPriceArr[0].ShowTotalPrice)}}
<span v-if="cur.CurrencyId>0">(
<template v-if="IsShowRMB">
<span>人民币</span>
</template>
<template v-else>
{{currencyTypeObj[cur.CurrencyId]}}
</template>
);</span>
</font></span>
</template>
</span>
</td>
......@@ -931,9 +949,7 @@
<el-input class="w300" type="number" v-model="leadr.LeaderGetPriceT" @input="changePrice"></el-input>
</template>
</div>
<span>
注意:<span>1、合团的请分别领款!</span> <span style="margin-left: 20px;">2、如需日本PIC付款,请选择PIC相关付款流程,请注意日本转账手续费</span>
</span>
</td>
<td>
<p v-for="(subItem, subIndex) in item.FinanceIds"><span class="cursorpointer text-decoration"
......@@ -962,14 +978,12 @@
<template v-for="leadr in cur.LeaderGetPriceArr" v-if=" leadr.TCNUMS == item.TCNUMS">
<input type="button" v-if="item.TeamType == 1 && index2==0" value="日当费" class="normalBtn"
@click="goDiJieZhiDan(item, 2)" />
<template v-if="item.hideZDBtn && ContractUrlCount == 0">
<template v-if="item.hideZDBtn ">
<el-tooltip class="item" effect="dark" :content="currencyTypeObj[leadr.CurrencyId]" placement="top">
<input type="button" value="制单" class="normalBtn" @click="goDiJieZhiDan(item,0,leadr,cur)" />
</el-tooltip>
</template>
<template v-else-if="ContractUrlCount !== 0 && index2==0">
<span>未上传现付、刷卡的酒店手配书无法制单</span>
</template>
<template v-else-if="!item.hideZDBtn && index2==0">
<span>超过五天时间限制,无法制单</span>
</template>
......@@ -1780,6 +1794,7 @@
this.CurrencyListMoney.push(obj);
});
}
var isreceive = 0;//是否领取过用款(1-领取过,0-未领取)
this.CurrencyListMoney.forEach((cur, i) => {
cur.yiLing = 0;
cur.LeaderGetPriceArr = [];
......@@ -1801,11 +1816,22 @@
});
cur.LeaderGetPriceArr.push(obj);
});
if (cur.yiLing > 0) {
isreceive = 1;
}
});
this.CurrencyListMoney.forEach((cur, i) => {
cur.LeaderGetPriceArr.forEach(lead => {
var tempMoney = (cur.money * this.comRate - cur.yiLing);
if (lead.LeaderGetPrice == 0) {
var tempShowPrice = cur.money * this.comRate;
//日本
if (this.myLineId == 14) {
tempShowPrice = Math.round(tempShowPrice / 10000) * 10000;
} else {
tempShowPrice = Math.round(tempShowPrice / 100) * 100;
}
//未领取,日本线 *0.95 在精确到万
if (isreceive == 0) {
if (this.myLineId == 14) {
lead.LeaderGetPriceT = Math.round(tempMoney / 10000) * 10000;
} else {
......@@ -1813,13 +1839,14 @@
lead.LeaderGetPriceT = Math.round(tempMoney / 10000) * 10000;
}
} else {
//领取过,直接用计划金额(精确到万)-已领取的金额
if (this.myLineId == 14) {
lead.LeaderGetPriceT = Math.round(tempMoney * 100) / 100;
lead.LeaderGetPriceT = tempShowPrice-cur.yiLing;
} else {
lead.LeaderGetPriceT = Math.round(tempMoney * 100) / 100;
lead.LeaderGetPriceT = tempShowPrice-cur.yiLing;
}
}
lead.ShowTotalPrice = lead.LeaderGetPriceT;
lead.ShowTotalPrice = tempShowPrice;
lead.PlanPrice = cur.money * this.comRate;
});
});
......@@ -1838,7 +1865,7 @@
},
res => {
if (res.data.resultCode == 1) {
this.TotalNav = res.data.data;
this.TotalNav = res.data.data;
this.getNav();
} else {
this.Error(res.data.message);
......
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