Commit 1b2c7b7a authored by wjc's avatar wjc

融租方案新增

parent 0744c914
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
</item> </item>
<item> <item>
<div slot="name" class="font-color">是否征信授权</div> <div slot="name" class="font-color">是否征信授权</div>
<h-switch slot="content" v-model="baseInfo.auth_flag"/> <h-switch slot="content" v-model="baseInfo.credit_flag"/>
</item> </item>
</list-item> </list-item>
<div class="equipment-list">法定代表人</div> <div class="equipment-list">法定代表人</div>
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
</item> </item>
<item> <item>
<div slot="name" class="font-color">联系地址</div> <div slot="name" class="font-color">联系地址</div>
<span slot="content">{{ baseInfo.living_address }}</span> <textarea slot="content" v-model="baseInfo.living_address"></textarea>
</item> </item>
</list-item> </list-item>
<div class="equipment-list"> <div class="equipment-list">
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
<div slot="name" class="font-color">纳税人类型</div> <div slot="name" class="font-color">纳税人类型</div>
<input <input
slot="content" slot="content"
v-model="invoiceInfo.taxpayer_type_n" v-model="baseInfo.taxpayer_type_n"
type="text" type="text"
readonly readonly
placeholder="请选择" placeholder="请选择"
...@@ -185,7 +185,7 @@ ...@@ -185,7 +185,7 @@
<div slot="name" class="font-color">发票类型</div> <div slot="name" class="font-color">发票类型</div>
<input <input
slot="content" slot="content"
v-model="invoiceInfo.invoice_kind_n" v-model="baseInfo.invoice_kind_n"
type="text" type="text"
readonly readonly
placeholder="请选择" placeholder="请选择"
...@@ -194,43 +194,43 @@ ...@@ -194,43 +194,43 @@
</item> </item>
<item> <item>
<div slot="name" class="font-color">发票抬头</div> <div slot="name" class="font-color">发票抬头</div>
<input slot="content" v-model="invoiceInfo.invoice_title" type="text" placeholder="请输入发票抬头"> <input slot="content" v-model="baseInfo.invoice_title" type="text" placeholder="请输入发票抬头">
</item> </item>
<item> <item>
<div slot="name" class="font-color">发票地址</div> <div slot="name" class="font-color">发票地址</div>
<textarea <textarea
slot="content" ref="myTestarea" v-model="invoiceInfo.invoice_adds" cols="22" slot="content" ref="myTestarea" v-model="baseInfo.invoice_adds" cols="22"
rows="1" rows="1"
type="text" placeholder="请输入发票地址" @input="addRows(invoiceInfo.invoice_adds)"/> type="text" placeholder="请输入发票地址" @input="addRows(baseInfo.invoice_adds)"/>
</item> </item>
<item> <item>
<div slot="name" class="font-color">开户电话</div> <div slot="name" class="font-color">开户电话</div>
<input slot="content" v-model="invoiceInfo.invoice_tel" type="text" placeholder="请输入开户电话"> <input slot="content" v-model="baseInfo.invoice_tel" type="text" placeholder="请输入开户电话">
</item> </item>
<item> <item>
<div slot="name" class="font-color">发票开户行</div> <div slot="name" class="font-color">发票开户行</div>
<textarea <textarea
slot="content" slot="content"
ref="myTestareaLive" ref="myTestareaLive"
v-model="invoiceInfo.open_bank" v-model="baseInfo.open_bank"
cols="22" cols="22"
rows="1" rows="1"
type="text" type="text"
placeholder="请输入发票开户行" placeholder="请输入发票开户行"
@input="addRowsLive(invoiceInfo.open_bank)" @input="addRowsLive(baseInfo.open_bank)"
/> />
</item> </item>
<item> <item>
<div slot="name" class="font-color">开户行账号</div> <div slot="name" class="font-color">开户行账号</div>
<input slot="content" v-model="invoiceInfo.open_account" type="text" placeholder="请输入开户行账号"> <input slot="content" v-model="baseInfo.open_account" type="text" placeholder="请输入开户行账号">
</item> </item>
<item> <!--<item>
<div slot="name" class="font-color">纳税人识别号</div> <div slot="name" class="font-color">纳税人识别号</div>
<input <input
slot="content" slot="content"
v-model="invoiceInfo.organization_code" placeholder="纳税人识别号" type="text" readonly v-model="invoiceInfo.organization_code" placeholder="纳税人识别号" type="text" readonly
> >
</item> </item>-->
</list-item> </list-item>
<div class="equipment-list"> <div class="equipment-list">
基本账户信息 基本账户信息
...@@ -341,7 +341,7 @@ ...@@ -341,7 +341,7 @@
<item> <item>
<div slot="name" class="font-color">首付款</div> <div slot="name" class="font-color">首付款</div>
<!-- <span slot="content">{{ info.down_payment * info.product_num | currency }}</span>--> <!-- <span slot="content">{{ info.down_payment * info.product_num | currency }}</span>-->
<CurrencyInput slot="content" v-model="quotationInfo.down_payment" :readonly="true" placeholder="请输入首付款"/> <CurrencyInput slot="content" v-model="quotationInfo.down_payment" placeholder="请输入首付款"/>
</item> </item>
<item> <item>
<div slot="name" class="font-color">保证金比例</div> <div slot="name" class="font-color">保证金比例</div>
...@@ -481,7 +481,7 @@ export default { ...@@ -481,7 +481,7 @@ export default {
bp_class: this.$route.params.item.bp_class, // 承租人性质(自然人,企业) bp_class: this.$route.params.item.bp_class, // 承租人性质(自然人,企业)
info: {}, // 租赁信息 info: {}, // 租赁信息
baseInfo: { baseInfo: {
auth_flag: true, credit_flag: true,
}, // 基本信息 }, // 基本信息
project_id: '', project_id: '',
bank_flag: false, bank_flag: false,
...@@ -511,18 +511,7 @@ export default { ...@@ -511,18 +511,7 @@ export default {
legalPic: '', // 法人授权书图片 legalPic: '', // 法人授权书图片
abc_deduction_flag: 'N', // 代扣授权书状态 abc_deduction_flag: 'N', // 代扣授权书状态
signCheckFlag: false, // 签约校验,为true已认证通过可进行签约,否则不可签约 signCheckFlag: false, // 签约校验,为true已认证通过可进行签约,否则不可签约
invoiceInfo: {
invoice_kind: '',
invoice_kind_n: '',
taxpayer_type: '',
invoice_title: '',
taxpayer_type_n: '',
organization_code: '',
invoice_adds: '',
invoice_tel: '',
open_bank: '',
open_account: '',
},
bank_lists: { bank_lists: {
bank_account_num: '', // 卡号 bank_account_num: '', // 卡号
bank_account_name: '', // 账户姓名 bank_account_name: '', // 账户姓名
...@@ -699,25 +688,7 @@ export default { ...@@ -699,25 +688,7 @@ export default {
} }
}) })
}, },
invoiceQuery () {
let vm = this
let url = process.env.basePath + 'bp_invoice_query'
let param = {
bp_id: vm.bp_id,
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
console.log('invoiceInfo', res.info)
vm.invoiceInfo = res.info
vm.invoiceInfo.invoice_title = JSON.parse(window.localStorage.getItem('handleUser')).bp_name
// Object.assign(vm.invoiceInfo, res.info)
vm.addRows(vm.invoiceInfo.invoice_adds)
vm.addRowsLive(vm.invoiceInfo.open_bank)
}
})
},
addRows (e) { addRows (e) {
if (e) { if (e) {
...@@ -834,15 +805,11 @@ export default { ...@@ -834,15 +805,11 @@ export default {
object: {}, object: {},
returnItem: function (index, obj) { returnItem: function (index, obj) {
debugger debugger
console.log(vm.bpTenantList[index]) // console.log(vm.bpTenantList[index])
vm.baseInfo = { vm.baseInfo = {
...vm.baseInfo, ...vm.baseInfo,
...vm.bpTenantList[index], ...vm.bpTenantList[index],
} }
vm.invoiceInfo = {
...vm.invoiceInfo,
...vm.bpTenantList[index],
}
}, },
}) })
}, },
...@@ -915,9 +882,9 @@ export default { ...@@ -915,9 +882,9 @@ export default {
code: 'bp_type', code: 'bp_type',
object: {}, object: {},
returnItem: function (index, obj) { returnItem: function (index, obj) {
vm.$set(vm.invoiceInfo, 'taxpayer_type', obj.bp_type) vm.$set(vm.baseInfo, 'taxpayer_type', obj.bp_type)
vm.$set(vm.invoiceInfo, 'taxpayer_type_n', obj.bp_type_n) vm.$set(vm.baseInfo, 'taxpayer_type_n', obj.bp_type_n)
console.log('obj', vm.invoiceInfo) console.log('obj', vm.baseInfo)
}, },
}) })
}, },
...@@ -928,8 +895,8 @@ export default { ...@@ -928,8 +895,8 @@ export default {
code: 'bp_type', code: 'bp_type',
object: {}, object: {},
returnItem: function (index, obj) { returnItem: function (index, obj) {
vm.$set(vm.invoiceInfo, 'invoice_kind', obj.bp_type) vm.$set(vm.baseInfo, 'invoice_kind', obj.bp_type)
vm.$set(vm.invoiceInfo, 'invoice_kind_n', obj.bp_type_n) vm.$set(vm.baseInfo, 'invoice_kind_n', obj.bp_type_n)
}, },
}) })
}, },
......
This diff is collapsed.
<template> <template>
<h-view id="contract-signing"> <h-view id="contract-signing">
<h-header :proportion="[5, 1, 1]" class="bar-custom"> <h-header :proportion="[5, 1, 3]" class="bar-custom">
<div slot="left" class="h-header-btn"> <div slot="left" class="h-header-btn">
<img src="@/assets/userBind/arrow.png" @click="$routeGo()" > <img src="@/assets/userBind/arrow.png" @click="$routeGo()" >
<span>融租方案确认</span> <span>融租方案确认</span>
</div> </div>
<div slot="right" class="h-header-btn" @click="addNew()"><span>新增</span></div>
</h-header> </h-header>
<!-- <div class="tab-style has-header"> <!-- <div class="tab-style has-header">
<div :class="{ 'done': num === 1, 'undone': num !== 1 }" @click="num = 1; isRadio = false"> <div :class="{ 'done': num === 1, 'undone': num !== 1 }" @click="num = 1; isRadio = false">
...@@ -284,7 +286,7 @@ export default { ...@@ -284,7 +286,7 @@ export default {
let vm = this let vm = this
if (vm.num === 1) { if (vm.num === 1) {
vm.submitPagenum++ vm.submitPagenum++
let url = $config.basePath + 'prj_confirm_list_query' let url = $config.basePath + 'zm_prj_list_query'
let param = { let param = {
// user_phone: window.localStorage.user_phone, // user_phone: window.localStorage.user_phone,
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id, bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
...@@ -322,7 +324,7 @@ export default { ...@@ -322,7 +324,7 @@ export default {
}) })
} else if (vm.num === 2) { } else if (vm.num === 2) {
vm.approvedPagenum++ vm.approvedPagenum++
let url = $config.basePath + 'prj_confirm_list_query' let url = $config.basePath + 'zm_prj_list_query'
let param = { let param = {
// user_phone: window.localStorage.user_phone, // user_phone: window.localStorage.user_phone,
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id, bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
...@@ -441,6 +443,12 @@ export default { ...@@ -441,6 +443,12 @@ export default {
}, },
}) })
}, },
addNew () {
this.$router.push({
name: 'ContractNew',
})
},
}, },
} }
</script> </script>
......
...@@ -68,6 +68,7 @@ const EntryInfo = resolve => require.ensure([], () => { resolve(require('@/pages ...@@ -68,6 +68,7 @@ const EntryInfo = resolve => require.ensure([], () => { resolve(require('@/pages
const ElectronicSign = resolve => require.ensure([], () => { resolve(require('@/pages/ContractSigning/electronic-sign')) }, 'contractSigning') const ElectronicSign = resolve => require.ensure([], () => { resolve(require('@/pages/ContractSigning/electronic-sign')) }, 'contractSigning')
/* const BodyCheck = resolve=>require.ensure([],()=>{resolve(require(@/pages/ContractSigning/body-check')) }, 'contractSigning') */ /* const BodyCheck = resolve=>require.ensure([],()=>{resolve(require(@/pages/ContractSigning/body-check')) }, 'contractSigning') */
const ContractRepayPlan = resolve => require.ensure([], () => { resolve(require('@/pages/ContractSigning/contract-repay-plan')) }, 'contractSigning') const ContractRepayPlan = resolve => require.ensure([], () => { resolve(require('@/pages/ContractSigning/contract-repay-plan')) }, 'contractSigning')
const ContractNew = resolve => require.ensure([], () => { resolve(require('@/pages/ContractSigning/contract-new')) }, 'contractSigning')
// 首付款支付 // 首付款支付
const FirstPay = resolve => require.ensure([], () => { resolve(require('@/pages/pay/firstPay/first-pay')) }, 'firstPay') const FirstPay = resolve => require.ensure([], () => { resolve(require('@/pages/pay/firstPay/first-pay')) }, 'firstPay')
...@@ -275,6 +276,7 @@ export default new Router({ ...@@ -275,6 +276,7 @@ export default new Router({
{path: '/entry-info', component: EntryInfo, name: 'EntryInfo', meta: {keepAlive: true}}, {path: '/entry-info', component: EntryInfo, name: 'EntryInfo', meta: {keepAlive: true}},
{path: '/contract-repay-plan', component: ContractRepayPlan, name: 'ContractRepayPlan', meta: {keepAlive: false}}, {path: '/contract-repay-plan', component: ContractRepayPlan, name: 'ContractRepayPlan', meta: {keepAlive: false}},
{path: '/electronic-sign', component: ElectronicSign, name: 'ElectronicSign', meta: {keepAlive: false}}, {path: '/electronic-sign', component: ElectronicSign, name: 'ElectronicSign', meta: {keepAlive: false}},
{path: '/contract-new', component: ContractNew, name: 'ContractNew', meta: {keepAlive: false}},
// 首付款支付 // 首付款支付
{path: '/first-pay', component: FirstPay, name: 'FirstPay', meta: {keepAlive: true}}, {path: '/first-pay', component: FirstPay, name: 'FirstPay', meta: {keepAlive: true}},
{path: '/pay-entry', component: PayEntry, name: 'PayEntry', meta: {keepAlive: true}}, {path: '/pay-entry', component: PayEntry, name: 'PayEntry', meta: {keepAlive: true}},
......
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