Commit a2bb55d3 authored by 王建文's avatar 王建文

融资方案列表和明细

parent 0054a797
......@@ -30,7 +30,7 @@
</item>
</list-item>
</div>
<button @click.native="prjLeaseItemSave">保存</button>
<button @click="prjLeaseItemSave">保存</button>
</div>
</div>
</transition>
......@@ -62,10 +62,10 @@
<input
slot="content"
v-model="baseInfo.bp_name"
type="text"
readonly
placeholder="请选择"
@click="selectBpTenant"
>
</item>
<item>
......@@ -78,7 +78,7 @@
</item>
<item>
<div slot="name" class="font-color">注册地址</div>
<span slot="content">{{ baseInfo.registered_place }}</span>
<input slot="content" v-model="baseInfo.registered_place" >
</item>
<item>
<div slot="name" class="font-color">经营地址</div>
......@@ -101,19 +101,20 @@
<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>
<span slot="content">{{ baseInfo.living_address }}</span>
<input slot="content" v-model="baseInfo.living_address" >
</item>
</list-item>
<div class="equipment-list">
......@@ -228,7 +229,7 @@
<div slot="name" class="font-color">纳税人识别号</div>
<input
slot="content"
v-model="invoiceInfo.organization_code" placeholder="纳税人识别号" type="text" readonly
v-model="invoiceInfo.organization_code" placeholder="纳税人识别号" type="text"
>
</item>
</list-item>
......@@ -238,13 +239,13 @@
<list-item :item-height="44">
<item>
<div slot="name">账户名称</div>
<input slot="content" v-model="baseInfo.bank_account_name" placeholder="请输入账户名称">
<input slot="content" v-model="bank_lists.bank_account_name" placeholder="请输入账户名称">
</item>
<item>
<div slot="name">开户行</div>
<input
slot="content"
v-model="baseInfo.bank_full_name"
v-model="bank_lists.bank_full_name"
placeholder="请输入开户行"
>
</item>
......@@ -252,13 +253,13 @@
<div slot="name">银行账号</div>
<input
slot="content"
v-model="baseInfo.bank_account_num"
v-model="bank_lists.bank_account_num"
placeholder="请输入银行账号"
>
</item>
<item>
<div slot="name">联行号</div>
<input slot="content" v-model="baseInfo.bank_branch_name" placeholder="请输入联行号">
<input slot="content" v-model="bank_lists.bank_branch_name" placeholder="请输入联行号">
</item>
</list-item>
<div class="equipment-list">
......@@ -331,52 +332,52 @@
<item>
<div slot="name" class="font-color">设备总价</div>
<!-- <span slot="content">{{ info.equip_price * info.product_num | currency }}</span>-->
<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>
<!-- <span slot="content">{{ info.finance_amount * info.product_num | currency }}</span>-->
<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>
<!-- <span slot="content">{{ info.down_payment * info.product_num | currency }}</span>-->
<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>
<!-- <span slot="content">{{ info.deposit_ratio_n }}</span>-->
<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>
<!-- <span slot="content">{{ info.deposit * info.product_num | currency }}</span>-->
<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>
<!-- <input slot="content" v-model="info.lease_charge_ratio_n" readonly />-->
<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>
<!-- <span slot="content">{{ parseFloat(info.lease_charge * info.product_num).toFixed(2) | currency }}</span>-->
<CurrencyInput 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>
<!-- <span slot="content">{{ info.gps_fee * info.product_num | currency }}</span>-->
<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>
<!-- <span slot="content">{{ parseFloat(info.first_pay).toFixed(2) | currency }}</span>-->
<CurrencyInput slot="content" v-model="quotationInfo.first_pay" placeholder="请输入首次付款合计"/>
<input slot="content" v-model="quotationInfo.first_pay" placeholder="请输入首次付款合计"/>
</item>
<!-- <item>-->
<!-- <div slot="name" class="font-color">预计付款日</div>-->
......@@ -390,10 +391,10 @@
<!-- <div slot="name" class="font-color">还款周期</div>-->
<!-- <input slot="content" v-model="info.annual_pay_times_n" readonly />-->
<!-- </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>
<!-- <input slot="content" v-model="info.annual_pay_times_n" placeholder="月"> -->
<!-- <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>
......@@ -403,7 +404,7 @@
<item>
<div slot="name" class="font-color">年利率</div>
<!-- <span slot="content">{{ info.int_rate_n }}</span> -->
<RateInput slot="content" v-model="quotationInfo.int_rate_n" placeholder="请输入年利率"/>
<input slot="content" v-model="quotationInfo.int_rate" placeholder="请输入年利率"/>
</item>
</list-item>
<!-- <div class="repay-plan">-->
......@@ -430,8 +431,8 @@
</list-item>
</h-content>
<bottom-tab class="add-box">
<tab-button class="next">
<img src="@/assets/intoApproval/approve.png" @click.native="">保存
<tab-button class="next" @click.native="saveData">
<img src="@/assets/intoApproval/approve.png" >保存
</tab-button>
</bottom-tab>
</h-view>
......@@ -601,6 +602,26 @@ export default {
this.repayPeriod()
},
methods: {
saveData(){
let vm = this
let url = $config.basePath + 'zm_prj_base_info_save'
let master = {
...vm.baseInfo, ...vm.bank_lists,...vm.invoiceInfo
}
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.calculationSave()
},
_renderPage (num) {
this.pdfDoc.getPage(num).then((page) => {
let canvas = document.getElementById('the-canvas' + num)
......@@ -669,7 +690,8 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.leaseList = res.info
vm.leaseList = res.lists
vm.downNum=false
}
})
},
......@@ -823,26 +845,26 @@ export default {
}
})
},
selectBpTenant (e) {
let vm = this
vm.hlsPopup.selectList({
list: vm.bpTenantList,
code: 'bp_id',
object: {},
returnItem: function (index, obj) {
debugger
console.log(vm.bpTenantList[index])
vm.baseInfo = {
...vm.baseInfo,
...vm.bpTenantList[index],
}
vm.invoiceInfo = {
...vm.invoiceInfo,
...vm.bpTenantList[index],
}
},
})
},
// selectBpTenant (e) {
// let vm = this
// vm.hlsPopup.selectList({
// list: vm.bpTenantList,
// code: 'bp_id',
// object: {},
// returnItem: function (index, obj) {
// debugger
// console.log(vm.bpTenantList[index])
// vm.baseInfo = {
// ...vm.baseInfo,
// ...vm.bpTenantList[index],
// }
// vm.invoiceInfo = {
// ...vm.invoiceInfo,
// ...vm.bpTenantList[index],
// }
// },
// })
// },
getAttachmentList (checkId, code) {
let vm = this
let url =
......@@ -1174,6 +1196,7 @@ export default {
},
// 保存设备
prjLeaseItemSave () {
debugger
let vm = this
let url = $config.basePath + 'zm_prj_lease_item_save'
let param = {
......@@ -1199,15 +1222,13 @@ export default {
let vm = this
if (!vm.quotationInfo.equip_price) {
hlsPopup.showLongCenter('请输入设备总价')
} else if (!vm.quotationInfo.price_date_to) {
hlsPopup.showLongCenter('请选择时间')
} else if (!vm.quotationInfo.gps_fee) {
hlsPopup.showLongCenter('请输入GPS费用')
} else if (!vm.quotationInfo.insurance_fee) {
hlsPopup.showLongCenter('请输入保险押金费用')
} else {
let url = $config.basePath + 'zm_prj_quotation_save'
let param = {
let master = {
'project_id': vm.project_id,
'quotation_id': vm.quotationInfo.quotation_id,
'equip_price': vm.quotationInfo.equip_price,
......@@ -1225,6 +1246,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()
......
......@@ -27,7 +27,7 @@
<div class="pro-code" @click="goDetails(item)">
<img src="@/assets/distributorSign/fileIcon.png" alt class="file-icon" />
<p>
<span>项目编号</span>
<span>合同编号</span>
<span>{{ item.project_number }}</span>
</p>
<img v-if="item.read_check === 'N'" src="@/assets/constractSigning/unread.png" alt class="unread" />
......@@ -53,15 +53,15 @@
<p>承租人</p>
<p>{{ item.bp_name }}</p>
</div>
<!-- <div>-->
<!-- <p>合同名称</p>-->
<!-- <p>{{ item.project_name }}</p>-->
<!-- </div>-->
<div>
<p>合同名称</p>
<p>{{ item.project_name }}</p>
</div>
<div>
<p>设备总价</p>
<p>合同租金</p>
<p class="money">{{ item.equip_price | currency }}</p>
</div>
<!-- <div>-->
<!-- <div>
<!-- <p>产品名称</p>-->
<!-- <p>{{ item.division_n }}</p>-->
<!-- </div>-->
......@@ -284,7 +284,7 @@ export default {
let vm = this
if (vm.num === 1) {
vm.submitPagenum++
let url = $config.basePath + 'prj_confirm_list_query'
let url = $config.basePath + 'zm_prj_list_query'
let param = {
// user_phone: window.localStorage.user_phone,
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
......@@ -322,7 +322,7 @@ export default {
})
} else if (vm.num === 2) {
vm.approvedPagenum++
let url = $config.basePath + 'prj_confirm_list_query'
let url = $config.basePath + 'zm_prj_list_query'
let param = {
// user_phone: window.localStorage.user_phone,
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
......@@ -361,7 +361,7 @@ export default {
async submitSearch() {
let vm = this
vm.submitPagenum = 1
let url = $config.basePath + 'prj_confirm_list_query'
let url = $config.basePath + 'zm_prj_list_query'
let param = {
// user_phone: window.localStorage.user_phone,
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
......@@ -396,7 +396,7 @@ export default {
},
approvedearch() {
let vm = this
let url = $config.basePath + 'prj_confirm_list_query'
let url = $config.basePath + 'zm_prj_list_query'
vm.approvedPagenum = 1
let param = {
// user_phone: window.localStorage.user_phone,
......
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