Commit ec6ff276 authored by youjie's avatar youjie

no message

parent 3dd36320
...@@ -589,13 +589,34 @@ ...@@ -589,13 +589,34 @@
</div> </div>
<div> <div>
<p>签约客户:<span> <p>签约客户:<span>
<el-select clearable filterable v-model='msg.SigningCustomerId' class="w135 _border_b_1"> <el-select clearable filterable v-model='msg.SigningCustomerId' class="w135 _border_b_1"
@change="getSigningCustomerId">
<el-option v-for='item in CustomerIdList' :label='item.customerName' :value='item.customerId' <el-option v-for='item in CustomerIdList' :label='item.customerName' :value='item.customerId'
:key='item.customerId'> :key='item.customerId'>
</el-option> </el-option>
</el-select> </el-select>
</span></p> </span>
</p>
</div> </div>
<table v-if="ContractCustomer" class="Receipt_table" border="1" bordercolor="#c94052"
style="border-collapse:collapse;margin-top: 10px;">
<tr>
<th>客户名称 </th>
<th>联系人</th>
<th>手机号</th>
<th>签约到期时间</th>
<th>签约金额 </th>
<th>待结算金额</th>
</tr>
<tr class="_color_b">
<td height="26px">{{ContractCustomer.customerName?ContractCustomer.customerName:'-'}}</td>
<td height="26px">{{ContractCustomer.contact?ContractCustomer.contact:'-'}}</td>
<td height="26px">{{ContractCustomer.contactNumber?ContractCustomer.contactNumber:'-'}}</td>
<td height="26px">{{ContractCustomer.signingEndTimet?ContractCustomer.signingEndTimet:'-'}}</td>
<td height="26px">{{ContractCustomer.signingPrice?ContractCustomer.signingPrice:'-'}}</td>
<td height="26px">{{ContractCustomer.signingUnsettledPrice?ContractCustomer.signingUnsettledPrice:'-'}}</td>
</tr>
</table>
</div> </div>
<div class="_remark"> <div class="_remark">
<p>{{$t('system.label_info')}}</p> <p>{{$t('system.label_info')}}</p>
...@@ -681,6 +702,7 @@ ...@@ -681,6 +702,7 @@
export default { export default {
data() { data() {
return { return {
ContractCustomer: null,
Description: '', Description: '',
msg: { msg: {
ReFinanceId: '', ReFinanceId: '',
...@@ -831,7 +853,7 @@ ...@@ -831,7 +853,7 @@
this.getcommission() this.getcommission()
this.countFee(); this.countFee();
} }
this.$forceUpdate(); this.$forceUpdate();
}, },
jumpPage(path, id, type) { //生成单据时连带信息跳转 jumpPage(path, id, type) { //生成单据时连带信息跳转
...@@ -1469,8 +1491,8 @@ ...@@ -1469,8 +1491,8 @@
this.Calculation(1); this.Calculation(1);
}) })
} }
if (list.CostTypeId == '') return if (list.CostTypeId == '') return
if (list.Number == '') return if (list.Number == '') return
if (list.UnitPrice == '') return if (list.UnitPrice == '') return
...@@ -1515,7 +1537,7 @@ ...@@ -1515,7 +1537,7 @@
this.getcommission() this.getcommission()
} }
this.countFee(); this.countFee();
}, },
getcommission(){//计算手续费 满足平台账户 而且是结算方式为百分比 SettlementType=1 getcommission(){//计算手续费 满足平台账户 而且是结算方式为百分比 SettlementType=1
let obj = null let obj = null
...@@ -1534,11 +1556,11 @@ ...@@ -1534,11 +1556,11 @@
if(this.msg.detailList && this.msg.detailList.length>0){ if(this.msg.detailList && this.msg.detailList.length>0){
this.msg.detailList.forEach(x=>{ this.msg.detailList.forEach(x=>{
if(Number(x.yTotalPrice) > 0){ if(Number(x.yTotalPrice) > 0){
price = price + Number(x.yTotalPrice) price = price + Number(x.yTotalPrice)
} }
}) })
} }
this.msg.OriginalFee = Math.round((price * obj.Commission) ) / 100; this.msg.OriginalFee = Math.round((price * obj.Commission) ) / 100;
}else{ }else{
this.msg.OriginalFee = 0 this.msg.OriginalFee = 0
this.msg.Fee = 0 this.msg.Fee = 0
...@@ -1585,7 +1607,7 @@ ...@@ -1585,7 +1607,7 @@
} }
} }
}) })
} }
if (!isNaN(rate)) { if (!isNaN(rate)) {
let num = (numberC * price) * rate; let num = (numberC * price) * rate;
num = Math.round(num * 100) / 100; num = Math.round(num * 100) / 100;
...@@ -1647,7 +1669,7 @@ ...@@ -1647,7 +1669,7 @@
chages(){ chages(){
this.$forceUpdate() this.$forceUpdate()
}, },
shouxufeiJiSuan: function () { shouxufeiJiSuan: function () {
let price = 0; let price = 0;
this.msg.detailList.forEach(y => { this.msg.detailList.forEach(y => {
...@@ -1853,12 +1875,20 @@ ...@@ -1853,12 +1875,20 @@
} }
}, err => {}) }, err => {})
}, },
getSigningCustomerId(){
this.CustomerIdList.forEach(item=>{
if(item.customerId==this.msg.SigningCustomerId){
this.ContractCustomer = item
}
})
},
getCustomerIdList() {this.apipost( getCustomerIdList() {this.apipost(
"app_today_visit_GetMySigningCustomerList", "app_today_visit_GetMySigningCustomerList",
{pageIndex: 1,pageSize: 1000,CustomerStatus: 0}, {pageIndex: 1,pageSize: 1000,CustomerStatus: 0},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.CustomerIdList = res.data.data; this.CustomerIdList = res.data.data;
console.log(this.CustomerIdList,'------')
} else { } else {
this.loading = false; this.loading = false;
this.$message.error(res.data.message); this.$message.error(res.data.message);
...@@ -1938,7 +1968,7 @@ ...@@ -1938,7 +1968,7 @@
this.detailList.UnitPrice = this.orderObj.Money this.detailList.UnitPrice = this.orderObj.Money
} }
} }
let TCID = (this.orderObj && this.orderObj.TCIDList && this.orderObj.TCIDList.length>0) ? this.orderObj.TCIDList[0] : 0 let TCID = (this.orderObj && this.orderObj.TCIDList && this.orderObj.TCIDList.length>0) ? this.orderObj.TCIDList[0] : 0
this.TCID = TCID this.TCID = TCID
......
...@@ -358,7 +358,7 @@ ...@@ -358,7 +358,7 @@
<!-- <a v-if="detailList.signingFile" style="margin-left:20px;color:blue;cursor:pointer;font-size: 14px;" <!-- <a v-if="detailList.signingFile" style="margin-left:20px;color:blue;cursor:pointer;font-size: 14px;"
target="_blank" @click="downloadFile(detailList.signingFile)">签约客户附件</a> --> target="_blank" @click="downloadFile(detailList.signingFile)">签约客户附件</a> -->
<div v-if="detailList&&detailList.signingFile" style="display: flex;"> <div v-if="detailList&&detailList.signingFile" style="display: flex;">
<span style="color:blue;font-size: 12px; padding: 5px 0;">签约附件:</span> <!-- <span style="color:blue;font-size: 12px; padding: 5px 0;">签约附件:</span> -->
<div> <div>
<template v-if="verificationFile(detailList.signingFile)==3"> <template v-if="verificationFile(detailList.signingFile)==3">
<el-image :src="domainManager().ViittoFileUrl+detailList.signingFile" <el-image :src="domainManager().ViittoFileUrl+detailList.signingFile"
......
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