Commit e167fb80 authored by linxin's avatar linxin

优化refund

parent 3b0d5060
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</div> </div>
</div> </div>
<h-header :proportion="[5,1,1]" class="header"> <h-header :proportion="[5,1,1]" class="header">
<div slot="left" class="h-header-btn" @click="$routeGo()"> <div slot="left" class="h-header-btn" @click="$routeGo(-2)">
<img src="@/assets/intoApproval/arrow.png" > <img src="@/assets/intoApproval/arrow.png" >
<span>进件审批</span> <span>进件审批</span>
</div> </div>
...@@ -87,7 +87,8 @@ ...@@ -87,7 +87,8 @@
<input slot="content" v-model="personInfo.marital_status_n" readonly > <input slot="content" v-model="personInfo.marital_status_n" readonly >
</item> </item>
</list-item> </list-item>
<div v-if="personInfo.marital_status == 'MARRIED'" class="userInfo">配偶信息</div> <div v-if="personInfo.marital_status == 'MARRIED'" >
<div class="userInfo">配偶信息</div>
<list-item :item-height="44"> <list-item :item-height="44">
<item> <item>
<div slot="name">姓名</div> <div slot="name">姓名</div>
...@@ -106,6 +107,7 @@ ...@@ -106,6 +107,7 @@
<input slot="content" v-model="personInfo.address_sp" readonly > <input slot="content" v-model="personInfo.address_sp" readonly >
</item> </item>
</list-item> </list-item>
</div>
<div class="userInfo"> <div class="userInfo">
担保人信息 担保人信息
<span v-if="bondsInfo.length==0">(无)</span> <span v-if="bondsInfo.length==0">(无)</span>
...@@ -140,6 +142,7 @@ ...@@ -140,6 +142,7 @@
</div> </div>
</div> </div>
</div> </div>
<div v-if="tabNum==0&&bp_class=='ORG'"> <div v-if="tabNum==0&&bp_class=='ORG'">
<list-item :item-height="44"> <list-item :item-height="44">
<item> <item>
...@@ -366,6 +369,7 @@ export default { ...@@ -366,6 +369,7 @@ export default {
let param = { let param = {
project_id: window.sessionStorage.project_id, project_id: window.sessionStorage.project_id,
} }
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') {
...@@ -379,6 +383,7 @@ export default { ...@@ -379,6 +383,7 @@ export default {
let param = { let param = {
project_id: window.sessionStorage.project_id, project_id: window.sessionStorage.project_id,
} }
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') {
...@@ -392,6 +397,7 @@ export default { ...@@ -392,6 +397,7 @@ export default {
let param = { let param = {
project_id: window.sessionStorage.project_id, project_id: window.sessionStorage.project_id,
} }
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') {
...@@ -420,6 +426,7 @@ export default { ...@@ -420,6 +426,7 @@ export default {
confirm_note: this.confirm_note, confirm_note: this.confirm_note,
}, },
} }
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') {
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
<span>还款计划</span> <span>还款计划</span>
</div> </div>
</h-header> </h-header>
<div class="top-content"> <img v-if="none" class="noData" src="@/assets/intoApproval/none.jpg">
<div v-if="dataNone" class="top-content">
<span class="top-tittle">融资额(元)</span> <span class="top-tittle">融资额(元)</span>
<span class="num">{{ info.finance_amount|NumFormat }}</span> <span class="num">{{ info.finance_amount|NumFormat }}</span>
<div class="top-detail"> <div class="top-detail">
...@@ -28,12 +29,12 @@ ...@@ -28,12 +29,12 @@
</div> </div>
<div class="right"> <div class="right">
<span class="line">合同期数</span> <span class="line">合同期数</span>
<span>{{ info.lease_times }}</span> <span>&nbsp;&nbsp;&nbsp;&nbsp;{{ info.lease_times }}</span>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<h-content> <h-content v-if="dataNone">
<table> <table>
<tr> <tr>
<th /> <th />
...@@ -43,7 +44,7 @@ ...@@ -43,7 +44,7 @@
</tr> </tr>
<tr v-for="(item,index) in lists" :key="index"> <tr v-for="(item,index) in lists" :key="index">
<td>{{ index+1 }}</td> <td>{{ index+1 }}</td>
<td>{{ item.due_date }}</td> <td>{{ item.due_date|timeFormat }}</td>
<td>租金</td> <td>租金</td>
<td>{{ item.rental|NumFormat }}</td> <td>{{ item.rental|NumFormat }}</td>
</tr> </tr>
...@@ -73,6 +74,19 @@ export default { ...@@ -73,6 +74,19 @@ export default {
return intPartFormat + floatPart return intPartFormat + floatPart
} }
}, },
'timeFormat': function (time) {
var date = new Date(time)
var y = date.getFullYear()
var m = date.getMonth() + 1
var d = date.getDate()
if (m < 10) {
m = `0${m}`
}
if (d < 10) {
d = `0${d}`
}
return `${y}-${m}-${d}`
},
}, },
data () { data () {
return { return {
...@@ -84,6 +98,8 @@ export default { ...@@ -84,6 +98,8 @@ export default {
deposit: '', deposit: '',
}, },
lists: [], lists: [],
dataNone: false,
none: false,
} }
}, },
created () { created () {
...@@ -104,15 +120,30 @@ export default { ...@@ -104,15 +120,30 @@ export default {
let param = { let param = {
project_id: window.sessionStorage.project_id, project_id: window.sessionStorage.project_id,
} }
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.lists = res.lists vm.lists = res.lists
Object.assign(vm.info, res.info) Object.assign(vm.info, res.info)
if (!vm.lists.length) {
vm.none = true
} else {
vm.dataNone = true
}
vm.lists.sort(vm.compare('due_date'))
} }
}) })
}, },
compare (key) {
return function (value1, value2) {
var val1 = parseInt(value1[key].substr(0, 4))
var val2 = parseInt(value2[key])
return val1 - val2
}
},
}, },
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
...@@ -245,5 +276,9 @@ export default { ...@@ -245,5 +276,9 @@ export default {
letter-spacing: 0; letter-spacing: 0;
} }
} }
.noData{
width:100%;
// height:100%
}
} }
</style> </style>
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