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

融资方案列表和明细

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