Commit 4029bb2a authored by youjie's avatar youjie

no message

parent 28cb6a42
......@@ -749,6 +749,15 @@
<el-switch v-if="isHandFee" v-model="is_HandFee" @change="getHandFee">
</el-switch>
</el-tooltip>
<p v-if="StoredCustomerList&&StoredCustomerList.length" style="margin-left: 15px;">预收抵用:<span>
<el-select clearable filterable v-model='msg.DepositCustomerId' class="w135 _border_b_1"
@change="getSigningCustomerId(2)">
<el-option v-for='item in StoredCustomerList' :label='item.customerName' :value='item.customerId'
:key='item.customerId'>
</el-option>
</el-select>
</span>
</p>
</div>
<template v-if="isHandFee&&is_HandFee">
<div>
......@@ -813,6 +822,21 @@
</table>
</template>
<table v-if="DepositCustomer" class="Receipt_table" border="1" bordercolor="#c94052"
style="border-collapse:collapse;margin-top: 10px;">
<tr>
<th>预存客户</th>
<th>联系人</th>
<th>手机号</th>
<th>余额 </th>
</tr>
<tr class="_color_b">
<td height="26px">{{DepositCustomer.customerName?DepositCustomer.customerName:'-'}}</td>
<td height="26px">{{DepositCustomer.contact?DepositCustomer.contact:'-'}}</td>
<td height="26px">{{DepositCustomer.contactNumber?DepositCustomer.contactNumber:'-'}}</td>
<td height="26px">{{DepositCustomer.depositMoney?DepositCustomer.depositMoney:'-'}}</td>
</tr>
</table>
</div>
<div class="_remark">
<p>{{$t('system.label_info')}}</p>
......@@ -912,6 +936,10 @@
export default {
data() {
return {
ContractCustomer: null,
DepositCustomer: null,
CustomerIdList:[],
StoredCustomerList:[],
yballPriceTo: 0, //原币合计
maxmoneyData: 0,
detailCurrDis: false,
......@@ -1067,6 +1095,57 @@
}
},
methods: {
// 获取预存用户
getSigningCustomerId(type) {
// 1 签约客户 2 预存客户抵用
if (type == 1) {
// if (!this.msg.SigningCustomerId) {
// this.ContractCustomer = null
// }
this.CustomerIdList.forEach(item => {
if (item.customerId == this.msg.SigningCustomerId) {
this.ContractCustomer = item
}
})
// this.msg.DepositCustomerId = ''
// this.DepositCustomer = null
} else if (type == 2) {
// if (!this.msg.DepositCustomerId) {
// this.DepositCustomer = null
// }
this.StoredCustomerList.forEach(item => {
if (item.customerId == this.msg.DepositCustomerId) {
this.DepositCustomer = item
}
})
// this.msg.SigningCustomerId = ''
// this.ContractCustomer = null
}
},
// 获取签约用户、预存用户
getCustomerIdList() {
this.apipost(
"app_today_visit_GetMySigningCustomerList", {
pageIndex: 1,
pageSize: 1000,
CustomerStatus: 0
},
res => {
if (res.data.resultCode == 1) {
this.CustomerIdList = res.data.data.signingList;
this.StoredCustomerList = res.data.data.depositList
if (this.msg.SigningCustomerId || this.msg.DepositCustomerId) {
let type = this.msg.SigningCustomerId ? 1 : 2
this.getSigningCustomerId(type)
}
} else {
this.loading = false;
this.$message.error(res.data.message);
}
},
err => {},
);
},
// 是否开启手配费
getHandFee() {
if (this.is_HandFee) {
......
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