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

融资方案

parent 08081855
...@@ -13,7 +13,7 @@ export default { ...@@ -13,7 +13,7 @@ export default {
name: 'CurrencyInput', name: 'CurrencyInput',
props: { props: {
value: { value: {
default: '4', default: '',
}, },
// disable: { // disable: {
// type: Boolean, // type: Boolean,
...@@ -43,7 +43,7 @@ export default { ...@@ -43,7 +43,7 @@ export default {
let currency = this.$options.filters['rate'] let currency = this.$options.filters['rate']
if (!this.focused) { if (!this.focused) {
if (this.value !== '' && this.value !== null) { if (this.value !== '' && this.value !== null) {
return `${currency(this.value)}%` return `${currency(this.value*100)}%`
} }
} else { } else {
return this.value return this.value
...@@ -68,15 +68,16 @@ export default { ...@@ -68,15 +68,16 @@ export default {
// let uncurrency = this.$options.filter['uncurrency'] // let uncurrency = this.$options.filter['uncurrency']
// this.newVal = uncurrency(this.value) // this.newVal = uncurrency(this.value)
this.newVal = this.value this.newVal = this.value
if (this.newVal.includes('.') && value === '.') {
if (this.newVal !=''&&this.newVal.includes('.') && value === '.') {
} else { } else {
this.newVal += ('' + value) this.newVal += ('' + value)
} }
this.$emit('input', this.newVal) this.$emit('input', this.newVal/100)
}, },
onDelete () { onDelete () {
this.newVal = '' this.newVal = ''
this.$emit('input', this.newVal) this.$emit('input', this.newVal/100)
}, },
// onInput: function (value) { // onInput: function (value) {
// if (this.disable) return // if (this.disable) return
...@@ -86,6 +87,7 @@ export default { ...@@ -86,6 +87,7 @@ export default {
// }, // },
onFocus (event) { onFocus (event) {
// if (this.disable) return // if (this.disable) return
debugger
let vm = this let vm = this
this.focused = true this.focused = true
let value = (event.target.value).trim() let value = (event.target.value).trim()
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<div class="equipment-list">承租人信息</div> <div class="equipment-list">承租人信息</div>
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
<item> <item>
<div slot="name" class="font-color">公司名称</div> <div slot="name" class="font-color required">公司名称</div>
<input <input
slot="content" slot="content"
v-model="baseInfo.bp_name" v-model="baseInfo.bp_name"
...@@ -71,23 +71,23 @@ ...@@ -71,23 +71,23 @@
> >
</item> </item>
<item> <item>
<div slot="name" class="font-color">营业执照号</div> <div slot="name" class="font-color required">统一社会信用代码</div>
<input slot="content" v-model="baseInfo.organization_code"> <input slot="content" v-model="baseInfo.organization_code">
</item> </item>
<item> <item>
<div slot="name" class="font-color">注册资本</div> <div slot="name" class="font-color required">注册资本</div>
<input slot="content" v-model="baseInfo.registered_capital"> <input slot="content" v-model="baseInfo.registered_capital">
</item> </item>
<item> <item>
<div slot="name" class="font-color">注册地址</div> <div slot="name" class="font-color required">注册地址</div>
<input slot="content" v-model="baseInfo.registered_place" > <input slot="content" v-model="baseInfo.registered_place" >
</item> </item>
<item> <item>
<div slot="name" class="font-color">经营地址</div> <div slot="name" class="font-color required">经营地址</div>
<input slot="content" v-model="baseInfo.business_address"> <input slot="content" v-model="baseInfo.business_address">
</item> </item>
<item> <item>
<div slot="name" class="font-color">固定电话</div> <div slot="name" class="font-color required">联系电话</div>
<input slot="content" v-model="baseInfo.phone"> <input slot="content" v-model="baseInfo.phone">
</item> </item>
<item> <item>
...@@ -102,22 +102,41 @@ ...@@ -102,22 +102,41 @@
<div class="equipment-list">法定代表人</div> <div class="equipment-list">法定代表人</div>
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
<item> <item>
<div slot="name" class="font-color">姓名</div> <div slot="name" class="font-color required">姓名</div>
<input slot="content" v-model="baseInfo.legal_person" > <input slot="content" v-model="baseInfo.legal_person" >
</item> </item>
<item> <item>
<div slot="name" class="font-color">证件号</div> <div slot="name" class="font-color required">证件号</div>
<input slot="content" v-model="baseInfo.id_card_no" > <input slot="content" v-model="baseInfo.id_card_no" >
</item> </item>
<item> <item>
<div slot="name" class="font-color">手机号码</div> <div slot="name" class="font-color required">手机号码</div>
<input slot="content" v-model="baseInfo.cell_phone" > <input slot="content" v-model="baseInfo.cell_phone" >
</item> </item>
<item> <item>
<div slot="name" class="font-color">联系地址</div> <div slot="name" class="font-color required">联系地址</div>
<textarea slot="content" v-model="baseInfo.living_address"/> <textarea slot="content" v-model="baseInfo.living_address"/>
</item> </item>
</list-item> </list-item>
<div class="equipment-list">实控人</div>
<list-item :item-height="44" class="second-part">
<item>
<div slot="name" class="font-color required">姓名</div>
<input slot="content" v-model="baseInfo.control_person" >
</item>
<item>
<div slot="name" class="font-color required">证件号</div>
<input slot="content" v-model="baseInfo.control_id_card_no" >
</item>
<item>
<div slot="name" class="font-color required">手机号码</div>
<input slot="content" v-model="baseInfo.control_cell_phone" >
</item>
<item>
<div slot="name" class="font-color required">联系地址</div>
<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> <span v-if="guarantorInfo.length === 0">(无)</span>
...@@ -172,7 +191,7 @@ ...@@ -172,7 +191,7 @@
开票信息 开票信息
</div> </div>
<list-item :item-height="44"> <list-item :item-height="44">
<item :showArrow="true"> <!-- <item :showArrow="true">
<div slot="name" class="font-color">纳税人类型</div> <div slot="name" class="font-color">纳税人类型</div>
<input <input
slot="content" slot="content"
...@@ -182,7 +201,7 @@ ...@@ -182,7 +201,7 @@
placeholder="请选择" placeholder="请选择"
@click="selectTaxpayer" @click="selectTaxpayer"
> >
</item> </item> -->
<item :showArrow="true"> <item :showArrow="true">
<div slot="name" class="font-color">发票类型</div> <div slot="name" class="font-color">发票类型</div>
<input <input
...@@ -226,6 +245,18 @@ ...@@ -226,6 +245,18 @@
<div slot="name" class="font-color">开户行账号</div> <div slot="name" class="font-color">开户行账号</div>
<input slot="content" v-model="baseInfo.open_account" type="text" placeholder="请输入开户行账号"> <input slot="content" v-model="baseInfo.open_account" type="text" placeholder="请输入开户行账号">
</item> </item>
<item>
<div slot="name" class="font-color">联系人</div>
<input slot="content" v-model="baseInfo.invoice_contact_person" type="text" placeholder="请输入联系人">
</item>
<item>
<div slot="name" class="font-color">联系电话</div>
<input slot="content" v-model="baseInfo.invoice_contact_phone" type="text" placeholder="请输入联系电话">
</item>
<item>
<div slot="name" class="font-color">发票邮寄地址</div>
<input slot="content" v-model="baseInfo.invoice_mail_address" type="text" placeholder="请输入发票邮寄地址">
</item>
<!--<item> <!--<item>
<div slot="name" class="font-color">纳税人识别号</div> <div slot="name" class="font-color">纳税人识别号</div>
<input <input
...@@ -348,7 +379,7 @@ ...@@ -348,7 +379,7 @@
<item> <item>
<div slot="name" class="font-color">保证金比例</div> <div slot="name" class="font-color">保证金比例</div>
<!-- <span slot="content">{{ info.deposit_ratio_n }}</span>--> <!-- <span slot="content">{{ info.deposit_ratio_n }}</span>-->
<input slot="content" v-model="quotationInfo.deposit_ratio" placeholder="请输入保证金比例"> <rate-input slot="content" v-model="quotationInfo.deposit_ratio" placeholder="请输入保证金比例" />
</item> </item>
<item> <item>
<div slot="name" class="font-color">保证金</div> <div slot="name" class="font-color">保证金</div>
...@@ -358,36 +389,36 @@ ...@@ -358,36 +389,36 @@
<item> <item>
<div slot="name" class="font-color">手续费比例</div> <div slot="name" class="font-color">手续费比例</div>
<!-- <input slot="content" v-model="info.lease_charge_ratio_n" readonly />--> <!-- <input slot="content" v-model="info.lease_charge_ratio_n" readonly />-->
<input slot="content" v-model="quotationInfo.lease_charge_ratio" placeholder="请输入手续费比例"> <rate-input slot="content" v-model="quotationInfo.lease_charge_ratio" placeholder="请输入手续费比例" />
</item> </item>
<item> <item>
<div slot="name" class="font-color">手续费</div> <div slot="name" class="font-color">手续费</div>
<!-- <span slot="content">{{ parseFloat(info.lease_charge * info.product_num).toFixed(2) | currency }}</span>--> <!-- <span slot="content">{{ parseFloat(info.lease_charge * info.product_num).toFixed(2) | currency }}</span>-->
<input slot="content" v-model="quotationInfo.lease_charge" placeholder="请输入手续费"> <input slot="content" v-model="quotationInfo.lease_charge" placeholder="请输入手续费">
</item> </item>
<item> <!-- <item>
<div slot="name" class="font-color">保险押金</div> <div slot="name" class="font-color">保险押金</div> -->
<!-- <span slot="content">{{ info.insurance_fee * info.product_num | currency }}</span>--> <!-- <span slot="content">{{ info.insurance_fee * info.product_num | currency }}</span>-->
<input slot="content" v-model="quotationInfo.insurance_fee" placeholder="请输入保险押金"> <!-- <input slot="content" v-model="quotationInfo.insurance_fee" placeholder="请输入保险押金">
</item> </item> -->
<item> <!-- <item>
<div slot="name" class="font-color">GPS费用</div> <div slot="name" class="font-color">GPS费用</div> -->
<!-- <span slot="content">{{ info.gps_fee * info.product_num | currency }}</span>--> <!-- <span slot="content">{{ info.gps_fee * info.product_num | currency }}</span>-->
<input slot="content" v-model="quotationInfo.gps_fee" placeholder="请输入GPS费用"> <!-- <input slot="content" v-model="quotationInfo.gps_fee" placeholder="请输入GPS费用">
</item> </item> -->
<item> <!-- <item>
<div slot="name">首次付款合计</div> <div slot="name">首次付款合计</div> -->
<!-- <span slot="content">{{ parseFloat(info.first_pay).toFixed(2) | currency }}</span>--> <!-- <span slot="content">{{ parseFloat(info.first_pay).toFixed(2) | currency }}</span>-->
<input slot="content" v-model="quotationInfo.first_pay" placeholder="请输入首次付款合计"> <!-- <input slot="content" v-model="quotationInfo.first_pay" placeholder="请输入首次付款合计">
</item> </item> -->
<!-- <item>--> <!-- <item>-->
<!-- <div slot="name" class="font-color">预计付款日</div>--> <!-- <div slot="name" class="font-color">预计付款日</div>-->
<!-- <span slot="content">{{ dateConverse(info.lease_start_date) }}</span>--> <!-- <span slot="content">{{ dateConverse(info.lease_start_date) }}</span>-->
<!-- </item>--> <!-- </item>-->
<item :show-arrow="true" @click.native="showTime('YYYY-MM-DD')"> <!-- <item :show-arrow="true" @click.native="showTime('YYYY-MM-DD')">
<div slot="name" class="font-color">预计付款日</div> <div slot="name" class="font-color">预计付款日</div>
<div slot="content" class="autoColor">{{ quotationInfo.lease_start_date }}</div> <div slot="content" class="autoColor">{{ quotationInfo.lease_start_date }}</div>
</item> </item> -->
<!-- <item>--> <!-- <item>-->
<!-- <div slot="name" class="font-color">还款周期</div>--> <!-- <div slot="name" class="font-color">还款周期</div>-->
<!-- <input slot="content" v-model="info.annual_pay_times_n" readonly />--> <!-- <input slot="content" v-model="info.annual_pay_times_n" readonly />-->
...@@ -405,7 +436,7 @@ ...@@ -405,7 +436,7 @@
<item> <item>
<div slot="name" class="font-color">年利率</div> <div slot="name" class="font-color">年利率</div>
<!-- <span slot="content">{{ info.int_rate_n }}</span> --> <!-- <span slot="content">{{ info.int_rate_n }}</span> -->
<input slot="content" v-model="quotationInfo.int_rate" placeholder="请输入年利率"> <rate-input slot="content" v-model="quotationInfo.int_rate" placeholder="请输入年利率" />
</item> </item>
</list-item> </list-item>
<!-- <div class="repay-plan">--> <!-- <div class="repay-plan">-->
...@@ -1196,7 +1227,36 @@ export default { ...@@ -1196,7 +1227,36 @@ export default {
// handleSave // handleSave
handleSave () { handleSave () {
if (this.num === 0) { if (this.num === 0) {
this.prjBaseInfoSave() let vm = this
if (!vm.baseInfo.bp_name) {
hlsPopup.showLongCenter('公司名称不能为空!')
} else if (!vm.baseInfo.organization_code) {
hlsPopup.showLongCenter('统一社会信用代码不能为空!')
} else if (!vm.baseInfo.registered_capital) {
hlsPopup.showLongCenter('注册资本不能为空!')
} else if (!vm.baseInfo.business_address) {
hlsPopup.showLongCenter('经营地址不能为空!')
} else if (!vm.baseInfo.phone) {
hlsPopup.showLongCenter('承租人联系电话能为空!')
} else if (!vm.baseInfo.legal_person) {
hlsPopup.showLongCenter('法人姓名不能为空!')
} else if (!vm.baseInfo.id_card_no) {
hlsPopup.showLongCenter('法人证件号不能为空!')
} else if (!vm.baseInfo.cell_phone) {
hlsPopup.showLongCenter('法人手机号码不能为空!')
} else if (!vm.baseInfo.living_address) {
hlsPopup.showLongCenter('法人联系地址不能为空!')
} else if (!vm.baseInfo.control_person) {
hlsPopup.showLongCenter('实控人姓名不能为空!')
} else if (!vm.baseInfo.control_id_card_no) {
hlsPopup.showLongCenter('实控人证件号不能为空!')
} else if (!vm.baseInfo.control_cell_phone) {
hlsPopup.showLongCenter('实控人手机号码不能为空!')
} else if (!vm.baseInfo.control_living_address) {
hlsPopup.showLongCenter('实控人联系地址不能为空!')
} else {
this.prjBaseInfoSave()
}
} else { } else {
this.calculationSave() this.calculationSave()
} }
...@@ -1252,10 +1312,6 @@ export default { ...@@ -1252,10 +1312,6 @@ export default {
let vm = this let vm = this
if (!vm.quotationInfo.equip_price) { if (!vm.quotationInfo.equip_price) {
hlsPopup.showLongCenter('请输入设备总价') hlsPopup.showLongCenter('请输入设备总价')
} else if (!vm.quotationInfo.gps_fee) {
hlsPopup.showLongCenter('请输入GPS费用')
} else if (!vm.quotationInfo.insurance_fee) {
hlsPopup.showLongCenter('请输入保险押金费用')
} else { } else {
let url = $config.basePath + 'zm_prj_quotation_save' let url = $config.basePath + 'zm_prj_quotation_save'
let master = { let master = {
...@@ -1288,15 +1344,15 @@ export default { ...@@ -1288,15 +1344,15 @@ export default {
} }
}) })
} }
vm.hlsPopup.showLoading('请稍候') // vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) { // vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() // vm.hlsPopup.hideLoading()
if (res.result === 'S') { // if (res.result === 'S') {
vm.quotationInfo.quotation_id = res.quotation_id // vm.quotationInfo.quotation_id = res.quotation_id
} else { // } else {
hlsPopup.showLongCenter(res.message) // hlsPopup.showLongCenter(res.message)
} // }
}) // })
}, },
}, },
} }
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<div class="equipment-list">承租人信息</div> <div class="equipment-list">承租人信息</div>
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
<item> <item>
<div slot="name" class="font-color">公司名称</div> <div slot="name" class="font-color required">公司名称</div>
<input <input
slot="content" slot="content"
v-model="baseInfo.bp_name" v-model="baseInfo.bp_name"
...@@ -71,23 +71,23 @@ ...@@ -71,23 +71,23 @@
> >
</item> </item>
<item> <item>
<div slot="name" class="font-color">营业执照号</div> <div slot="name" class="font-color required">统一社会信用代码</div>
<input slot="content" v-model="baseInfo.organization_code"> <input slot="content" v-model="baseInfo.organization_code">
</item> </item>
<item> <item>
<div slot="name" class="font-color">注册资本</div> <div slot="name" class="font-color required">注册资本</div>
<input slot="content" v-model="baseInfo.registered_capital"> <input slot="content" v-model="baseInfo.registered_capital">
</item> </item>
<item> <item>
<div slot="name" class="font-color">注册地址</div> <div slot="name" class="font-color required">注册地址</div>
<textarea slot="content" v-model="baseInfo.registered_place"/> <textarea slot="content" v-model="baseInfo.registered_place"/>
</item> </item>
<item> <item>
<div slot="name" class="font-color">经营地址</div> <div slot="name" class="font-color required">经营地址</div>
<input slot="content" v-model="baseInfo.business_address"> <input slot="content" v-model="baseInfo.business_address">
</item> </item>
<item> <item>
<div slot="name" class="font-color">固定电话</div> <div slot="name" class="font-color required">联系电话</div>
<input slot="content" v-model="baseInfo.phone"> <input slot="content" v-model="baseInfo.phone">
</item> </item>
<item> <item>
...@@ -104,22 +104,41 @@ ...@@ -104,22 +104,41 @@
<div class="equipment-list">法定代表人</div> <div class="equipment-list">法定代表人</div>
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
<item> <item>
<div slot="name" class="font-color">姓名</div> <div slot="name" class="font-color required">姓名</div>
<input slot="content" v-model="baseInfo.legal_person" > <input slot="content" v-model="baseInfo.legal_person" >
</item> </item>
<item> <item>
<div slot="name" class="font-color">证件号</div> <div slot="name" class="font-color required">证件号</div>
<input slot="content" v-model="baseInfo.id_card_no" > <input slot="content" v-model="baseInfo.id_card_no" >
</item> </item>
<item> <item>
<div slot="name" class="font-color">手机号码</div> <div slot="name" class="font-color required">手机号码</div>
<input slot="content" v-model="baseInfo.cell_phone" > <input slot="content" v-model="baseInfo.cell_phone" >
</item> </item>
<item> <item>
<div slot="name" class="font-color">联系地址</div> <div slot="name" class="font-color required">联系地址</div>
<textarea slot="content" v-model="baseInfo.living_address"/> <textarea slot="content" v-model="baseInfo.living_address"/>
</item> </item>
</list-item> </list-item>
<div class="equipment-list">实控人</div>
<list-item :item-height="44" class="second-part">
<item>
<div slot="name" class="font-color required">姓名</div>
<input slot="content" v-model="baseInfo.control_person" >
</item>
<item>
<div slot="name" class="font-color required">证件号</div>
<input slot="content" v-model="baseInfo.control_id_card_no" >
</item>
<item>
<div slot="name" class="font-color required">手机号码</div>
<input slot="content" v-model="baseInfo.control_cell_phone" >
</item>
<item>
<div slot="name" class="font-color required">联系地址</div>
<textarea slot="content" v-model="baseInfo.control_living_address"/>
</item>
</list-item>
<div class="equipment-list"> <div class="equipment-list">
采矿权许可证 采矿权许可证
</div> </div>
...@@ -155,7 +174,7 @@ ...@@ -155,7 +174,7 @@
开票信息 开票信息
</div> </div>
<list-item :item-height="44"> <list-item :item-height="44">
<item :showArrow="true"> <!-- <item :showArrow="true">
<div slot="name" class="font-color">纳税人类型</div> <div slot="name" class="font-color">纳税人类型</div>
<input <input
slot="content" slot="content"
...@@ -165,7 +184,7 @@ ...@@ -165,7 +184,7 @@
placeholder="请选择" placeholder="请选择"
@click="selectTaxpayer" @click="selectTaxpayer"
> >
</item> </item> -->
<item :showArrow="true"> <item :showArrow="true">
<div slot="name" class="font-color">发票类型</div> <div slot="name" class="font-color">发票类型</div>
<input <input
...@@ -209,6 +228,18 @@ ...@@ -209,6 +228,18 @@
<div slot="name" class="font-color">开户行账号</div> <div slot="name" class="font-color">开户行账号</div>
<input slot="content" v-model="baseInfo.open_account" type="text" placeholder="请输入开户行账号"> <input slot="content" v-model="baseInfo.open_account" type="text" placeholder="请输入开户行账号">
</item> </item>
<item>
<div slot="name" class="font-color">联系人</div>
<input slot="content" v-model="baseInfo.invoice_contact_person" type="text" placeholder="请输入联系人">
</item>
<item>
<div slot="name" class="font-color">联系电话</div>
<input slot="content" v-model="baseInfo.invoice_contact_phone" type="text" placeholder="请输入联系电话">
</item>
<item>
<div slot="name" class="font-color">发票邮寄地址</div>
<input slot="content" v-model="baseInfo.invoice_mail_address" type="text" placeholder="请输入发票邮寄地址">
</item>
<!--<item> <!--<item>
<div slot="name" class="font-color">纳税人识别号</div> <div slot="name" class="font-color">纳税人识别号</div>
<input <input
...@@ -311,49 +342,49 @@ ...@@ -311,49 +342,49 @@
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
<item> <item>
<div slot="name" class="font-color">设备总价</div> <div slot="name" class="font-color">设备总价</div>
<input slot="content" v-model="quotationInfo.equip_price" placeholder="请输入设备总价"> <currency-input slot="content" v-model="quotationInfo.equip_price" placeholder="请输入设备总价" />
</item> </item>
<item> <item>
<div slot="name" class="font-color">融资金额</div> <div slot="name" class="font-color">融资金额</div>
<input slot="content" v-model="quotationInfo.finance_amount" placeholder="请输入融资金额"> <currency-input slot="content" v-model="quotationInfo.finance_amount" placeholder="请输入融资金额" />
</item> </item>
<item> <item>
<div slot="name" class="font-color">首付款</div> <div slot="name" class="font-color">首付款</div>
<input slot="content" v-model="quotationInfo.down_payment" placeholder="请输入首付款"> <currency-input 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>
<input slot="content" v-model="quotationInfo.deposit_ratio" placeholder="请输入保证金比例"> <rate-input slot="content" v-model="quotationInfo.deposit_ratio" placeholder="请输入保证金比例" />
</item> </item>
<item> <item>
<div slot="name" class="font-color">保证金</div> <div slot="name" class="font-color">保证金</div>
<input slot="content" v-model="quotationInfo.deposit" placeholder="请输入保证金"> <currency-input slot="content" v-model="quotationInfo.deposit" placeholder="请输入保证金" />
</item> </item>
<item> <item>
<div slot="name" class="font-color">手续费比例</div> <div slot="name" class="font-color">手续费比例</div>
<input slot="content" v-model="quotationInfo.lease_charge_ratio" placeholder="请输入手续费比例"> <rate-input slot="content" v-model="quotationInfo.lease_charge_ratio" placeholder="请输入手续费比例" />
</item> </item>
<item> <item>
<div slot="name" class="font-color">手续费</div> <div slot="name" class="font-color">手续费</div>
<input slot="content" v-model="quotationInfo.lease_charge" placeholder="请输入手续费"> <currency-input slot="content" v-model="quotationInfo.lease_charge" placeholder="请输入手续费" />
</item> </item>
<item> <!-- <item>
<div slot="name" class="font-color">保险押金</div> <div slot="name" class="font-color">保险押金</div> -->
<!-- <span slot="content">{{ info.insurance_fee * info.product_num | currency }}</span>--> <!-- <span slot="content">{{ info.insurance_fee * info.product_num | currency }}</span>-->
<input slot="content" v-model="quotationInfo.insurance_fee" placeholder="请输入保险押金"> <!-- <input slot="content" v-model="quotationInfo.insurance_fee" placeholder="请输入保险押金">
</item> </item> -->
<item> <!-- <item>
<div slot="name" class="font-color">GPS费用</div> <div slot="name" class="font-color">GPS费用</div>
<input slot="content" v-model="quotationInfo.gps_fee" placeholder="请输入GPS费用"> <input slot="content" v-model="quotationInfo.gps_fee" placeholder="请输入GPS费用">
</item> </item> -->
<item> <!-- <item>
<div slot="name">首次付款合计</div> <div slot="name">首次付款合计</div>
<input slot="content" v-model="quotationInfo.first_pay" placeholder="请输入首次付款合计"> <input slot="content" v-model="quotationInfo.first_pay" placeholder="请输入首次付款合计">
</item> </item>
<item :show-arrow="true" @click.native="showTime('YYYY-MM-DD')"> <item :show-arrow="true" @click.native="showTime('YYYY-MM-DD')">
<div slot="name" class="font-color">预计付款日</div> <div slot="name" class="font-color">预计付款日</div>
<div slot="content" class="autoColor">{{ quotationInfo.lease_start_date }}</div> <div slot="content" class="autoColor">{{ quotationInfo.lease_start_date }}</div>
</item> </item> -->
<item :show-arrow="true" > <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> --> <!-- <span slot="content">{{ quotationInfo.annual_pay_times_n }}</span> -->
...@@ -365,7 +396,7 @@ ...@@ -365,7 +396,7 @@
</item> </item>
<item> <item>
<div slot="name" class="font-color">年利率</div> <div slot="name" class="font-color">年利率</div>
<input slot="content" v-model="quotationInfo.int_rate" placeholder="请输入年利率"> <rate-input slot="content" v-model="quotationInfo.int_rate" placeholder="请输入年利率" />
</item> </item>
</list-item> </list-item>
<div class="equipment-list-fund"> <div class="equipment-list-fund">
...@@ -434,7 +465,13 @@ export default { ...@@ -434,7 +465,13 @@ export default {
uncheck1: unCheck1, uncheck1: unCheck1,
uncheck2: unCheck2, uncheck2: unCheck2,
uncheck3: unCheck3, uncheck3: unCheck3,
quotationInfo: {}, quotationInfo: {
equip_price: '',
deposit_ratio: '',
lease_charge_ratio: '',
lease_charge: '',
deposit: '',
},
itemInfo: {}, itemInfo: {},
upload_list_mining: [], upload_list_mining: [],
dowload_list_mining: [], dowload_list_mining: [],
...@@ -448,6 +485,30 @@ export default { ...@@ -448,6 +485,30 @@ export default {
$route (to, from) { $route (to, from) {
hlsPopup.hideConfirm() hlsPopup.hideConfirm()
}, },
'quotationInfo.equip_price' (newVal, oldVal) {
debugger
console.log('newVal' + newVal)
if (this.quotationInfo.deposit_ratio) {
this.quotationInfo.deposit = newVal * this.quotationInfo.deposit_ratio
}
if (this.quotationInfo.lease_charge_ratio) {
this.quotationInfo.lease_charge = newVal * this.quotationInfo.lease_charge_ratio
}
},
'quotationInfo.deposit_ratio' (newVal, oldVal) {
debugger
console.log('newVal' + newVal)
if (this.quotationInfo.equip_price) {
this.quotationInfo.deposit = this.quotationInfo.equip_price * newVal
}
},
'quotationInfo.lease_charge_ratio' (newVal, oldVal) {
debugger
console.log('newVal' + newVal)
if (this.quotationInfo.equip_price) {
this.quotationInfo.lease_charge = this.quotationInfo.equip_price * newVal
}
},
}, },
activated () { activated () {
...@@ -892,8 +953,38 @@ export default { ...@@ -892,8 +953,38 @@ export default {
// handleSave // handleSave
handleSave () { handleSave () {
debugger
if (this.num === 0) { if (this.num === 0) {
this.prjBaseInfoSave() let vm = this
if (!vm.baseInfo.bp_name) {
hlsPopup.showLongCenter('公司名称不能为空!')
} else if (!vm.baseInfo.organization_code) {
hlsPopup.showLongCenter('统一社会信用代码不能为空!')
} else if (!vm.baseInfo.registered_capital) {
hlsPopup.showLongCenter('注册资本不能为空!')
} else if (!vm.baseInfo.business_address) {
hlsPopup.showLongCenter('经营地址不能为空!')
} else if (!vm.baseInfo.phone) {
hlsPopup.showLongCenter('承租人联系电话能为空!')
} else if (!vm.baseInfo.legal_person) {
hlsPopup.showLongCenter('法人姓名不能为空!')
} else if (!vm.baseInfo.id_card_no) {
hlsPopup.showLongCenter('法人证件号不能为空!')
} else if (!vm.baseInfo.cell_phone) {
hlsPopup.showLongCenter('法人手机号码不能为空!')
} else if (!vm.baseInfo.living_address) {
hlsPopup.showLongCenter('法人联系地址不能为空!')
} else if (!vm.baseInfo.control_person) {
hlsPopup.showLongCenter('实控人姓名不能为空!')
} else if (!vm.baseInfo.control_id_card_no) {
hlsPopup.showLongCenter('实控人证件号不能为空!')
} else if (!vm.baseInfo.control_cell_phone) {
hlsPopup.showLongCenter('实控人手机号码不能为空!')
} else if (!vm.baseInfo.control_living_address) {
hlsPopup.showLongCenter('实控人联系地址不能为空!')
} else {
this.prjBaseInfoSave()
}
} else { } else {
this.calculationSave() this.calculationSave()
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</h-header> </h-header>
<h-content> <h-content>
<div class="contact-us"> <div class="contact-us">
<p class="title">金融科技事业部</p> <p class="title">中煤科工金融租赁股份有限公</p>
<div class="Address"> <div class="Address">
<ul> <ul>
<li>地址:北京市东城区环球贸易中心A座28层</li> <li>地址:北京市东城区环球贸易中心A座28层</li>
...@@ -17,22 +17,22 @@ ...@@ -17,22 +17,22 @@
<li>网址:www.cctegfl.com</li> <li>网址:www.cctegfl.com</li>
</ul> </ul>
</div> </div>
<div class="RentCentral"> <!-- <div class="RentCentral">
<ul> <ul>
<li>汉得金融科技核心条线集中交付中心</li> <li>汉得金融科技核心条线集中交付中心</li>
<li>监督举报</li> <li>监督举报</li>
<li>电话:01234-567890</li> <li>电话:01234-567890</li>
</ul> </ul>
</div> </div> -->
<div class="Ercode"> <div class="Ercode">
<ul> <ul>
<!--<li><img src="@/assets/myInfo/xugongFinancial.jpg"></li>--> <li><img src="@/assets/myInfo/zhongmei.jpeg"></li>
<li>演示demo<br>微信公众号</li>
</ul>
<ul>
<!--<li><img src="@/assets/myInfo/xugongRent.jpg"></li>-->
<li>演示demo<br>微信公众号</li> <li>演示demo<br>微信公众号</li>
</ul> </ul>
<!-- <ul> -->
<!--<li><img src="@/assets/myInfo/xugongRent.jpg"></li>-->
<!-- <li>演示demo<br>微信公众号</li>
</ul> -->
</div> </div>
</div> </div>
</h-content> </h-content>
......
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