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()">
......@@ -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