Commit 7d4a9700 authored by 王建文's avatar 王建文

融资方案

parent eaeb85f4
......@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://210.12.156.64:9090/r/api"',
fileUploadSvcPath:'"http://210.12.156.64:9090/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
appId: '"com.xcmg.app.dev"',
currentVersion: '"3.6.0"'
currentVersion: '"3.6.1"'
}
......@@ -34,6 +34,42 @@
</div>
</div>
</transition>
<transition name="trans">
<div v-show="guarantorFlag" class="modal-show">
<div class="down">
<div class="top">
录入担保人信息
<img
src="@/assets/intoApproval/close.png"
@click="guarantorFlag = false"
>
</div>
<div class="down-content">
<list-item :item-height="44">
<item>
<div slot="name" class="required">担保人类型</div>
<input
slot="content"
v-model="guarantorInfo.guarantor_type_n"
placeholder="请选择担保人类型"
readonly
@click="selectGuarantorType"
>
</item>
<item>
<div slot="name" class="required">担保人名称</div>
<input
slot="content"
v-model="guarantorInfo.guarantor_name"
placeholder="请输入担保人名称"
>
</item>
</list-item>
</div>
<button @click="prjGuarantorSave">保存</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()">
......@@ -149,7 +185,7 @@
<textarea slot="content" v-model="baseInfo.control_living_address"/>
</item>
</list-item>
<div class="equipment-list">
<!-- <div class="equipment-list">
担保人信息
<span v-if="guarantorInfo.length === 0">(无)</span>
</div>
......@@ -167,6 +203,25 @@
<span>{{ item.bp_class === 'NP' ? item.id_card_no : item.organization_code }}</span>
</div>
</item>
</list-item> -->
<div class="equipment-list-fund" style="color:#00469c">
<span/>
<p>担保人信息</p>
<div style="width: 75%;text-align: right;" @click="guarantorFlag=true">新增</div>
</div>
<list-item v-for="(item, index) in guarantorList" :item-height="76" :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.guarantor_type_n" readonly>
</item>
<item>
<div slot="name" class="font-color">担保人名称</div>
<input slot="content" v-model="item.guarantor_name" readonly>
</item>
</list-item>
<div class="equipment-list">
采矿权许可证
......@@ -500,17 +555,17 @@
<item>
<div slot="name" class="font-color">设备总价</div>
<!-- <span slot="content">{{ info.equip_price * info.product_num | currency }}</span>-->
<input slot="content" v-model="quotationInfo.equip_price" placeholder="请输入设备总价">
<currency-input slot="content" v-model="quotationInfo.equip_price" placeholder="请输入设备总价" />
</item>
<item>
<div slot="name" class="font-color">融资金额</div>
<!-- <span slot="content">{{ info.finance_amount * info.product_num | currency }}</span>-->
<input slot="content" v-model="quotationInfo.finance_amount" placeholder="请输入融资金额">
<currency-input slot="content" v-model="quotationInfo.finance_amount" placeholder="请输入融资金额" />
</item>
<item>
<div slot="name" class="font-color">首付款</div>
<!-- <span slot="content">{{ info.down_payment * info.product_num | currency }}</span>-->
<input slot="content" v-model="quotationInfo.down_payment" placeholder="请输入首付款">
<currency-input slot="content" v-model="quotationInfo.down_payment" placeholder="请输入首付款" />
</item>
<item>
<div slot="name" class="font-color">保证金比例</div>
......@@ -520,7 +575,7 @@
<item>
<div slot="name" class="font-color">保证金</div>
<!-- <span slot="content">{{ info.deposit * info.product_num | currency }}</span>-->
<input slot="content" v-model="quotationInfo.deposit" placeholder="请输入保证金">
<currency-input slot="content" v-model="quotationInfo.deposit" placeholder="请输入保证金" />
</item>
<item>
<div slot="name" class="font-color">手续费比例</div>
......@@ -530,7 +585,7 @@
<item>
<div slot="name" class="font-color">手续费</div>
<!-- <span slot="content">{{ parseFloat(info.lease_charge * info.product_num).toFixed(2) | currency }}</span>-->
<input slot="content" v-model="quotationInfo.lease_charge" placeholder="请输入手续费">
<currency-input slot="content" v-model="quotationInfo.lease_charge" placeholder="请输入手续费" />
</item>
<!-- <item>
<div slot="name" class="font-color">保险押金</div> -->
......@@ -560,9 +615,12 @@
<!-- <input slot="content" v-model="info.annual_pay_times_n" readonly />-->
<!-- </item>-->
<item :show-arrow="true" >
<div slot="name" class="font-color">还款周期</div>
<div slot="name" class="font-color">还款周期/月</div>
<!-- <span slot="content">{{ quotationInfo.annual_pay_times_n }}</span> -->
<input slot="content" v-model="quotationInfo.annual_pay_times" placeholder="月">
<input
slot="content" v-model="quotationInfo.annual_pay_times_n" readonly
placeholder="请选择"
@click="selectPayTimes" >
</item>
<item>
<div slot="name" class="font-color">租赁期数</div>
......@@ -645,7 +703,7 @@ export default {
content_id: '',
showModalValue: false,
credit_status: 'N', // 一个月内是否查过征信 N查过
guarantorInfo: [], // 担保人信息
// guarantorInfo: [], // 担保人信息
attachArray: [], // 附件数组
bp_class: this.$route.params.item.bp_class, // 承租人性质(自然人,企业)
info: {}, // 租赁信息
......@@ -690,7 +748,11 @@ export default {
quotationInfo: {},
leaseList: [],
itemInfo: {},
guarantorInfo: {},
downNum: false,
guarantorFlag: false,
guarantorTypeList: [],
guarantorList: [],
checkId: '',
reportCheckId: '',
miningCheckId: '',
......@@ -762,6 +824,8 @@ export default {
vm.getPrjQuotationList()
vm.getLease()
vm.getProjectApprover()
vm.getGuarantorList()
vm.getGuarantorInfo()
}
})
},
......@@ -833,10 +897,36 @@ export default {
})
})
},
selectPayTimes () {
let vm = this
vm.hlsPopup.selectList({
list: [{code: 1, code_name: 1}, {code: 2, code_name: 2}, {code: 3, code_name: 3}],
code: 'annual_pay_times',
object: {},
returnItem: function (index, obj) {
vm.$set(vm.quotationInfo, 'annual_pay_times', obj.annual_pay_times)
vm.$set(vm.quotationInfo, 'annual_pay_times_n', obj.annual_pay_times_n)
},
})
},
selectGuarantorType () {
let vm = this
vm.hlsPopup.selectList({
list: vm.guarantorTypeList,
code: 'guarantor_type',
object: {},
returnItem: function (index, obj) {
vm.$set(vm.guarantorInfo, 'guarantor_type', obj.guarantor_type)
vm.$set(vm.guarantorInfo, 'guarantor_type_n', obj.guarantor_type_n)
// console.log('obj', vm.baseInfo)
},
})
},
// 担保人
getGuarantor () {
getGuarantorList () {
let vm = this
let url = $config.basePath + 'prj_guarantor_list_query'
let url = $config.basePath + 'zm_bp_type_query'
let param = {
project_id: vm.project_id,
}
......@@ -844,7 +934,12 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.guarantorInfo = res.lists
vm.guarantorTypeList = res.lists.map(item => {
return {
code: item.value_code,
code_name: item.value_name,
}
})
}
})
},
......@@ -867,6 +962,22 @@ export default {
}
})
},
// 担保人信息
getGuarantorInfo () {
let vm = this
let url = $config.basePath + 'zm_prj_project_ref_info'
let param = {
project_id: vm.project_id,
}
vm.hlsPopup.showLoading('数据加载中')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.guarantorList = res.lists
vm.guarantorFlag = false
}
})
},
// 基本信息
getBseMsg () {
let vm = this
......@@ -1499,6 +1610,29 @@ export default {
}
})
},
// 保存担保人
prjGuarantorSave () {
let vm = this
let url = $config.basePath + 'zm_prj_ref_info_save'
let param = {
master: {
lists: [{
'project_id': vm.project_id,
...vm.guarantorInfo,
}],
},
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
hlsPopup.showLongCenter('担保人保存成功')
vm.getGuarantorInfo()
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
// 保存设备
prjLeaseItemSave () {
// debugger
......
......@@ -34,6 +34,42 @@
</div>
</div>
</transition>
<transition name="trans">
<div v-show="guarantorFlag" class="modal-show">
<div class="down">
<div class="top">
录入担保人信息
<img
src="@/assets/intoApproval/close.png"
@click="guarantorFlag = false"
>
</div>
<div class="down-content">
<list-item :item-height="44">
<item>
<div slot="name" class="required">担保人类型</div>
<input
slot="content"
v-model="guarantorInfo.guarantor_type_n"
placeholder="请选择担保人类型"
readonly
@click="selectGuarantorType"
>
</item>
<item>
<div slot="name" class="required">担保人名称</div>
<input
slot="content"
v-model="guarantorInfo.guarantor_name"
placeholder="请输入担保人名称"
>
</item>
</list-item>
</div>
<button @click="prjGuarantorSave">保存</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()">
......@@ -151,6 +187,25 @@
<textarea slot="content" v-model="baseInfo.control_living_address"/>
</item>
</list-item>
<div class="equipment-list-fund" style="color:#00469c">
<span/>
<p>担保人信息</p>
<div style="width: 75%;text-align: right;" @click="guarantorFlag=true">新增</div>
</div>
<list-item v-for="(item, index) in guarantorList" :item-height="76" :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.guarantor_type_n" readonly>
</item>
<item>
<div slot="name" class="font-color">担保人名称</div>
<input slot="content" v-model="item.guarantor_name" readonly>
</item>
</list-item>
<div class="equipment-list">
采矿权许可证
</div>
......@@ -594,6 +649,10 @@ export default {
downNum: false,
leaseList: [],
approverBpList: [],
guarantorTypeList: [],
guarantorList: [],
guarantorFlag: false,
guarantorInfo: {},
baseInfo: {
}, // 基本信息
......@@ -666,6 +725,7 @@ export default {
this.getTaxpayer()
this.repayPeriod()
this.getProjectApprover()
this.getGuarantorType()
},
methods: {
......@@ -789,6 +849,37 @@ export default {
}
})
},
getGuarantorType () {
let vm = this
let url = process.env.basePath + 'zm_bp_type_query'
let param = {}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.guarantorTypeList = res.lists.map(item => {
return {
code: item.value_code,
code_name: item.value_name,
}
})
}
})
},
selectGuarantorType () {
let vm = this
vm.hlsPopup.selectList({
list: vm.guarantorTypeList,
code: 'guarantor_type',
object: {},
returnItem: function (index, obj) {
vm.$set(vm.guarantorInfo, 'guarantor_type', obj.guarantor_type)
vm.$set(vm.guarantorInfo, 'guarantor_type_n', obj.guarantor_type_n)
// console.log('obj', vm.baseInfo)
},
})
},
selectApproverBp (e) {
let vm = this
......@@ -1283,6 +1374,50 @@ export default {
this.calculationSave()
}
},
// 担保人信息
getGuarantorInfo () {
let vm = this
let url = $config.basePath + 'zm_prj_project_ref_info'
let param = {
project_id: vm.project_id,
}
vm.hlsPopup.showLoading('数据加载中')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.guarantorList = res.lists
vm.guarantorFlag = false
}
})
},
// 保存担保人
prjGuarantorSave () {
let vm = this
if (!vm.project_id) {
hlsPopup.showLongCenter('请先保存基本信息')
return
}
let url = $config.basePath + 'zm_prj_ref_info_save'
let param = {
master: {
lists: [{
'project_id': vm.project_id,
...vm.guarantorInfo,
}],
},
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
hlsPopup.showLongCenter('担保人保存成功')
vm.getGuarantorInfo()
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
// 保存融租方案接口
prjBaseInfoSave () {
......
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