Commit 966977f2 authored by 王建文's avatar 王建文

融资方案确认

parent acf90b99
......@@ -238,13 +238,13 @@
<list-item :item-height="44">
<item>
<div slot="name">账户名称</div>
<input slot="content" v-model="bank_lists.bank_account_name" placeholder="请输入账户名称">
<input slot="content" v-model="baseInfo.bank_account_name" placeholder="请输入账户名称">
</item>
<item>
<div slot="name">开户行</div>
<input
slot="content"
v-model="bank_lists.bank_full_name"
v-model="baseInfo.bank_full_name"
placeholder="请输入开户行"
>
</item>
......@@ -252,13 +252,13 @@
<div slot="name">银行账号</div>
<input
slot="content"
v-model="bank_lists.bank_account_num"
v-model="baseInfo.bank_account_num"
placeholder="请输入银行账号"
>
</item>
<item>
<div slot="name">联行号</div>
<input slot="content" v-model="bank_lists.bank_branch_name" placeholder="请输入联行号">
<input slot="content" v-model="baseInfo.bank_branch_name" placeholder="请输入联行号">
</item>
</list-item>
<div class="equipment-list">
......@@ -1213,7 +1213,6 @@ export default {
// 方案信息保存&更新接口
calculationSave () {
let vm = this
<<<<<<< HEAD
if (!vm.quotationInfo.equip_price) {
hlsPopup.showLongCenter('请输入设备总价')
} else if (!vm.quotationInfo.gps_fee) {
......
<template>
<h-view id="contract-details" class="public-style">
<transition name="trans">
<div v-show="downNum" class="modal-show">
<div class="down">
<div class="top">
录入产品信息
<img
src="@/assets/intoApproval/close.png"
@click="downNum = false"
>
</div>
<div class="down-content">
<list-item :item-height="44">
<item>
<div slot="name" class="required">产品名称</div>
<input
slot="content"
v-model="itemInfo.ref_v02"
placeholder="请输入产品名称"
>
</item>
<item>
<div slot="name" class="required">产品数量</div>
<input
slot="content"
v-model="itemInfo.quantity"
placeholder="请输入产品数量"
>
</item>
</list-item>
</div>
<button @click="prjLeaseItemSave">保存</button>
</div>
</div>
</transition>
<h-header :proportion="[5, 1, 1]" class="bar-custom">
<div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="$routeGo()">
......@@ -28,10 +62,10 @@
<input
slot="content"
v-model="baseInfo.bp_name"
type="text"
readonly
placeholder="请选择"
@click="selectBpTenant"
placeholder="请输入"
>
</item>
<item>
......@@ -57,25 +91,27 @@
<item>
<div slot="name" class="font-color">是否授权</div>
<h-switch slot="content" v-model="baseInfo.auth_flag"/>
<!-- <h-switch slot="content" v-model="baseInfo.auth_flag"/> -->
</item>
<item>
<div slot="name" class="font-color">是否征信授权</div>
<h-switch slot="content" v-model="baseInfo.credit_flag"/>
<!-- <h-switch slot="content" v-model="baseInfo.credit_flag"/> -->
</item>
</list-item>
<div class="equipment-list">法定代表人</div>
<list-item :item-height="44" class="second-part">
<item>
<div slot="name" class="font-color">姓名</div>
<input slot="content" v-model="baseInfo.legal_person" readonly>
<input slot="content" v-model="baseInfo.legal_person" >
</item>
<item>
<div slot="name" class="font-color">证件号</div>
<input slot="content" v-model="baseInfo.id_card_no" readonly>
<input slot="content" v-model="baseInfo.id_card_no" >
</item>
<item>
<div slot="name" class="font-color">手机号码</div>
<input slot="content" v-model="baseInfo.cell_phone" readonly>
<input slot="content" v-model="baseInfo.cell_phone" >
</item>
<item>
<div slot="name" class="font-color">联系地址</div>
......@@ -273,52 +309,53 @@
<list-item :item-height="44" class="second-part">
<item>
<div slot="name" class="font-color">设备总价</div>
<CurrencyInput slot="content" v-model="quotationInfo.equip_price" placeholder="请输入设备总价"/>
<input slot="content" v-model="quotationInfo.equip_price" placeholder="请输入设备总价"/>
</item>
<item>
<div slot="name" class="font-color">融资金额</div>
<CurrencyInput slot="content" v-model="quotationInfo.finance_amount" placeholder="请输入融资金额"/>
<input slot="content" v-model="quotationInfo.finance_amount" placeholder="请输入融资金额"/>
</item>
<item>
<div slot="name" class="font-color">首付款</div>
<CurrencyInput slot="content" v-model="quotationInfo.down_payment" placeholder="请输入首付款"/>
<input slot="content" v-model="quotationInfo.down_payment" placeholder="请输入首付款"/>
</item>
<item>
<div slot="name" class="font-color">保证金比例</div>
<RateInput slot="content" v-model="quotationInfo.deposit_ratio_n" placeholder="请输入保证金比例"/>
<input slot="content" v-model="quotationInfo.deposit_ratio" placeholder="请输入保证金比例"/>
</item>
<item>
<div slot="name" class="font-color">保证金</div>
<CurrencyInput slot="content" v-model="quotationInfo.deposit" placeholder="请输入保证金"/>
<input slot="content" v-model="quotationInfo.deposit" placeholder="请输入保证金"/>
</item>
<item>
<div slot="name" class="font-color">手续费比例</div>
<RateInput slot="content" v-model="quotationInfo.lease_charge_ratio_n" placeholder="请输入手续费比例"/>
<input slot="content" v-model="quotationInfo.lease_charge_ratio" placeholder="请输入手续费比例"/>
</item>
<item>
<div slot="name" class="font-color">手续费</div>
<currency-input slot="content" v-model="quotationInfo.lease_charge" placeholder="请输入手续费"/>
<input slot="content" v-model="quotationInfo.lease_charge" placeholder="请输入手续费"/>
</item>
<item>
<div slot="name" class="font-color">保险押金</div>
<!-- <span slot="content">{{ info.insurance_fee * info.product_num | currency }}</span>-->
<CurrencyInput slot="content" v-model="quotationInfo.insurance_fee" placeholder="请输入保险押金"/>
<input slot="content" v-model="quotationInfo.insurance_fee" placeholder="请输入保险押金"/>
</item>
<item>
<div slot="name" class="font-color">GPS费用</div>
<CurrencyInput slot="content" v-model="quotationInfo.gps_fee" placeholder="请输入GPS费用"/>
<input slot="content" v-model="quotationInfo.gps_fee" placeholder="请输入GPS费用"/>
</item>
<item>
<div slot="name">首次付款合计</div>
<CurrencyInput slot="content" v-model="quotationInfo.first_pay" placeholder="请输入首次付款合计"/>
<input slot="content" v-model="quotationInfo.first_pay" placeholder="请输入首次付款合计"/>
</item>
<item :show-arrow="true" @click.native="showTime('YYYY-MM-DD')">
<div slot="name" class="font-color">预计付款日</div>
<div slot="content" class="autoColor">{{ quotationInfo.lease_start_date }}</div>
</item>
<item :show-arrow="true" @click.native="periodPull">
<item :show-arrow="true" >
<div slot="name" class="font-color">还款周期</div>
<span slot="content">{{ quotationInfo.annual_pay_times_n }}</span>
<!-- <span slot="content">{{ quotationInfo.annual_pay_times_n }}</span> -->
<input slot="content" v-model="quotationInfo.annual_pay_times" placeholder="月">
</item>
<item>
<div slot="name" class="font-color">租赁期数</div>
......@@ -326,7 +363,26 @@
</item>
<item>
<div slot="name" class="font-color">年利率</div>
<RateInput slot="content" v-model="quotationInfo.int_rate_n" placeholder="请输入年利率"/>
<input slot="content" v-model="quotationInfo.int_rate" placeholder="请输入年利率"/>
</item>
</list-item>
<div class="equipment-list-fund">
<span/>
<p>设备清单</p>
<div style="width: 75%;text-align: right;" @click="downNum=true">新增</div>
</div>
<list-item v-for="(item, index) in leaseList" :item-height="44" :key="index" class="second-part">
<!-- <item>-->
<!-- <div slot="name" class="font-color">设备识别号</div>-->
<!-- <input slot="content" v-model="info.product_code" readonly />-->
<!-- </item>-->
<item>
<div slot="name" class="font-color">产品名称</div>
<input slot="content" v-model="item.ref_v02" readonly>
</item>
<item>
<div slot="name" class="font-color">产品数量</div>
<input slot="content" v-model="item.quantity" readonly>
</item>
</list-item>
</h-content>
......@@ -362,11 +418,11 @@ export default {
data () {
return {
info: {}, // 租赁信息
num: 1,
num: 0,
downNum: false,
leaseList: [],
baseInfo: {
credit_flag: true,
}, // 基本信息
project_id: '',
check1: Check1,
......@@ -779,16 +835,59 @@ export default {
prjBaseInfoSave () {
let vm = this
let url = $config.basePath + 'zm_prj_base_info_save'
let master = {
...vm.baseInfo, ...vm.bank_lists,...vm.invoiceInfo
}
master.user_phone= window.localStorage.user_phone
// master.phone= window.localStorage.user_phone
// master.project_id=vm.project_id
let param={
master
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.project_id=res.project_id
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
// 设备信息
getLease () {
let vm = this
let url = $config.basePath + 'zm_prj_lease_item_query'
let param = {
'project_id': vm.project_id,
'operator_id': '',
...vm.baseInfo,
project_id: vm.project_id,
}
vm.hlsPopup.showLoading('数据加载中')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.leaseList = res.lists
vm.downNum=false
}
})
},
// 保存设备
prjLeaseItemSave () {
debugger
let vm = this
let url = $config.basePath + 'zm_prj_lease_item_save'
let param = {
master: {
lists: [{
'project_id': vm.project_id,
...vm.itemInfo,
}],
},
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.getLease()
} else {
hlsPopup.showLongCenter(res.message)
}
......@@ -798,9 +897,15 @@ export default {
// 方案信息保存&更新接口
calculationSave () {
let vm = this
if(!vm.project_id){
hlsPopup.showLongCenter('请先保存基本信息')
return
}
let url = $config.basePath + 'zm_prj_quotation_save'
let param = {
let master = {
'project_id': vm.project_id,
'user_phone': window.localStorage.user_phone,
// 'phone': window.localStorage.user_phone,
'quotation_id': vm.quotationInfo.quotation_id,
'equip_price': vm.quotationInfo.equip_price,
'down_payment': vm.quotationInfo.down_payment,
......@@ -817,6 +922,7 @@ export default {
'lease_start_date': vm.quotationInfo.lease_start_date,
'int_rate': vm.quotationInfo.int_rate,
}
let param={master}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
......
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