Commit 86606b37 authored by 李晓兵's avatar 李晓兵

Merge branch 'develop' of https://hel.hand-china.com/xugong/hls-xcmg-vue-app into develop

parents a51b2793 9ef29de6
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-09-29 10:02:11 * @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-10-22 17:22:03 * @LastEditTime: 2019-10-23 13:51:34
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
--> -->
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
<img src="@/assets/constractSigning/read.png" alt="" class="read"> <img src="@/assets/constractSigning/read.png" alt="" class="read">
</div> </div>
<div slot="content" class="in-all"> <div slot="content" class="in-all">
<div @click="entryInfo"><img src="@/assets/constractSigning/scan.png" alt=""></div> <div v-show="confirm_status === 'SUBMIT'" @click="entryInfo"><img src="@/assets/constractSigning/scan.png" alt=""></div>
<div @click="goContractContent('农行代扣授权书')"><img src="@/assets/constractSigning/detail.png" alt=""></div> <div @click="goContractContent('农行代扣授权书')"><img src="@/assets/constractSigning/detail.png" alt=""></div>
</div> </div>
...@@ -177,7 +177,7 @@ export default { ...@@ -177,7 +177,7 @@ export default {
check2: Check2, check2: Check2,
uncheck1: unCheck1, uncheck1: unCheck1,
uncheck2: unCheck2, uncheck2: unCheck2,
confirm_status: this.$route.params.confirm_status, confirm_status: '',
} }
}, },
computed: {}, computed: {},
...@@ -186,11 +186,15 @@ export default { ...@@ -186,11 +186,15 @@ export default {
if (from.name === 'ContractSigning') { if (from.name === 'ContractSigning') {
next(vm => { next(vm => {
vm.project_id = vm.$route.params.project_id vm.project_id = vm.$route.params.project_id
vm.confirm_status = vm.$route.params.confirm_status
vm.conditionQuery() vm.conditionQuery()
}) })
} }
next() next()
}, },
activated () {
// console.log('...........', this.$route.params.confirm_status)
},
methods: { methods: {
// 合同商务条件查询 // 合同商务条件查询
conditionQuery () { conditionQuery () {
...@@ -230,6 +234,9 @@ export default { ...@@ -230,6 +234,9 @@ export default {
entryInfo () { entryInfo () {
this.$router.push({ this.$router.push({
name: 'EntryInfo', name: 'EntryInfo',
params: {
project_id: this.project_id,
},
}) })
}, },
inSure () { inSure () {
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-09-29 10:02:11 * @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-10-22 16:43:01 * @LastEditTime: 2019-10-23 11:01:35
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
--> -->
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<p class="incoming-num">进件号</p> <p class="incoming-num">进件号</p>
<p class="code">{{ item.project_number }}</p> <p class="code">{{ item.project_number }}</p>
</div> </div>
<div class="details" @click="goDetails(item.project_id,item.confirm_status)"> <div class="details" @click="goDetails(item.project_id,item.con_confirm_status)">
<div class="option"> <div class="option">
<p class="name">承租人</p> <p class="name">承租人</p>
<p class="full-name normal">{{ item.bp_name }}</p> <p class="full-name normal">{{ item.bp_name }}</p>
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<p class="incoming-num">进件号</p> <p class="incoming-num">进件号</p>
<p class="code">{{ item.project_number }}</p> <p class="code">{{ item.project_number }}</p>
</div> </div>
<div class="details" @click="goDetails(item.project_id)"> <div class="details" @click="goDetails(item.project_id,item.con_confirm_status)">
<div class="option"> <div class="option">
<p class="name">承租人</p> <p class="name">承租人</p>
<p class="full-name normal">{{ item.bp_name }}</p> <p class="full-name normal">{{ item.bp_name }}</p>
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
}, },
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
if (from.name === 'HomePage') { if (from.name === 'MyInfo') {
next(vm => { next(vm => {
vm.contractList() vm.contractList()
}) })
...@@ -118,8 +118,8 @@ export default { ...@@ -118,8 +118,8 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
console.log(res) console.log(res)
if (res.result === 'S') { if (res.result === 'S') {
vm.submitLists = res.lists.filter(item => item.confirm_status === 'SUBMIT') vm.submitLists = res.lists.filter(item => item.con_confirm_status === 'SUBMIT')
vm.approvedLists = res.lists.filter(item => item.confirm_status === 'APPROVED') vm.approvedLists = res.lists.filter(item => item.con_confirm_status === 'APPROVED')
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2019-09-29 10:02:11 * @Date: 2019-09-29 10:02:11
* @LastEditTime: 2019-10-22 20:03:19 * @LastEditTime: 2019-10-23 13:47:58
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: /c:\Users\slice\Desktop\xg\new-pro\hls-xcmg-vue-app\src\pages\contractSigning\entry-info.vue
--> -->
<template> <template>
<h-view id="entry-info" class="public-style"> <h-view id="entry-info" class="public-style">
...@@ -19,29 +18,31 @@ ...@@ -19,29 +18,31 @@
<div class="info"> <div class="info">
<div class="info-header"> <div class="info-header">
<p>请上传银行卡照片</p> <p>请上传银行卡照片</p>
<div class="bank-pic"> <div v-if="!bankImg" class="bank-pic">
<img v-if="!bankImg" src="@/assets/constractSigning/bank.png" alt="" @click="ocrShow('bankCard', '')"> <img src="@/assets/constractSigning/bank.png" alt="" @click="ocrShow('bankCard', '')">
<img v-if="bankImg" :src="bankImg" alt="" @click="ocrShow('bankCard', '')"> </div>
<div v-if="bankImg" class="bank-pic2">
<img :src="bankImg" alt="" @click="ocrShow('bankCard', '')">
</div> </div>
</div> </div>
<list-item :item-height="44" class="info-center"> <list-item :item-height="44" class="info-center">
<item> <item>
<div slot="name" >银行卡卡号</div> <div slot="name" >银行卡卡号</div>
<input <input
slot="content" v-model="bank_lists.bank_account_num" type="text" placeholder="上传银行卡自动填充" slot="content" v-model="bank_lists[0].bank_account_num" type="text" placeholder="上传银行卡自动填充"
readonly> >
</item> </item>
<item> <item>
<div slot="name" >账户名称</div> <div slot="name" >账户名称</div>
<input slot="content" type="text" placeholder="请输入账户名称"> <input slot="content" v-model="bank_lists[0].bank_account_name" type="text" placeholder="请输入账户名称">
</item> </item>
<item> <item>
<div slot="name" >银行名称</div> <div slot="name" >银行名称</div>
<input slot="content" v-model="bank_lists.bank_full_name" type="text" placeholder="请输入银行名称"> <input slot="content" v-model="bank_lists[0].bank_full_name" type="text" placeholder="请输入银行名称">
</item> </item>
<item> <item>
<div slot="name" >支行名称</div> <div slot="name" >支行名称</div>
<input slot="content" type="text" placeholder="请输入支行名称"> <input slot="content" v-model="bank_lists[0].bank_branch_name" type="text" placeholder="请输入支行名称">
</item> </item>
</list-item> </list-item>
...@@ -49,7 +50,7 @@ ...@@ -49,7 +50,7 @@
</h-content> </h-content>
<bottom-tab> <bottom-tab>
<tab-button class="footer"> <tab-button class="footer" @click.native="cardAdd">
保存 保存
</tab-button> </tab-button>
</bottom-tab> </bottom-tab>
...@@ -76,10 +77,20 @@ export default { ...@@ -76,10 +77,20 @@ export default {
uncheck2: unCheck2, uncheck2: unCheck2,
res: '', res: '',
name: '', name: '',
bank_lists: { // bank_lists: {
// bank_full_name: '', // 银行名称
// bank_account_num: '', // 卡号
// 'bank_account_name': '',
// 'bank_branch_name': '',
// },
bank_lists: [
{
bank_full_name: '', // 银行名称 bank_full_name: '', // 银行名称
bank_account_num: '', // 卡号 bank_account_num: '', // 卡号
bank_account_name: '',
bank_branch_name: '',
}, },
],
} }
}, },
computed: {}, computed: {},
...@@ -156,11 +167,29 @@ export default { ...@@ -156,11 +167,29 @@ export default {
hlsUtil.baiduOcr(fileUrl, url, function (res) { hlsUtil.baiduOcr(fileUrl, url, function (res) {
hlsPopup.hideLoading() hlsPopup.hideLoading()
let result = res.result.result let result = res.result.result
vm.bank_lists.bank_account_num = result.bank_card_number.replace(/\s*/g, '') // 卡号 vm.bank_lists[0].bank_account_num = result.bank_card_number.replace(/\s*/g, '') // 卡号
vm.bank_lists.bank_full_name = result.bank_name // 银行名称 vm.bank_lists[0].bank_full_name = result.bank_name // 银行名称
// vm.bank_lists.bank_card_type = result.bank_card_type // vm.bank_lists.bank_card_type = result.bank_card_type
}) })
}, },
cardAdd () {
let vm = this
let url = $config.basePath + 'con_bank_save'
let param = {
master: {
project_id: vm.$route.params.project_id,
bank_lists: vm.bank_lists,
},
}
vm.hlsHttp.post(url, param).then(function (res) {
console.log('银行信息录入', res)
// if (res.result === 'S') {
// vm.conditionInfo = res.info
// } else {
// hlsPopup.showLongCenter(res.message)
// }
})
},
}, },
} }
</script> </script>
...@@ -205,6 +234,18 @@ export default { ...@@ -205,6 +234,18 @@ export default {
margin: 14px auto 0; margin: 14px auto 0;
line-height: 145px; line-height: 145px;
} }
.bank-pic2 {
border: 1px dashed #DCDCDD;
border-radius: 2px;
width: 172px;
height: 120px;
// text-align: center;
// margin: 14px auto 0;
// line-height: 145px;
img {
width: 100%;
}
}
img{ img{
height: 45px; height: 45px;
......
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
vm.sumMoney = vm.money vm.sumMoney = vm.money
for (let i of this.info) { for (let i of this.info) {
i.con_lists.forEach(j => { i.con_lists.forEach(j => {
sumL.push(j.pay) sumL.push(j.amount)
}) })
let a = 0 let a = 0
let newSum = sumL.filter(item => { let newSum = sumL.filter(item => {
...@@ -147,10 +147,10 @@ export default { ...@@ -147,10 +147,10 @@ export default {
}) })
}, },
createData () { createData () {
let obj = {}
let pushList = [] let pushList = []
this.info.forEach(i => { this.info.forEach(i => {
i.con_lists.forEach(j => { i.con_lists.forEach(j => {
let obj = {}
obj.bp_id = window.sessionStorage.getItem('bp_id') obj.bp_id = window.sessionStorage.getItem('bp_id')
obj.amount = j.amount obj.amount = j.amount
obj.contract_id = j.contract_id obj.contract_id = j.contract_id
......
...@@ -96,7 +96,9 @@ export default { ...@@ -96,7 +96,9 @@ export default {
let vm = this let vm = this
let url = process.env.basePath + 'create_order_1_amount' let url = process.env.basePath + 'create_order_1_amount'
let param = { let param = {
info: {
bp_id: window.sessionStorage.getItem('bp_id'), bp_id: window.sessionStorage.getItem('bp_id'),
},
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
...@@ -115,7 +117,9 @@ export default { ...@@ -115,7 +117,9 @@ export default {
window.sessionStorage.setItem('order_id', 123) window.sessionStorage.setItem('order_id', 123)
// let url = process.env.basePath + 'do_order_1_con' // let url = process.env.basePath + 'do_order_1_con'
// let param = { // let param = {
// bp_id: vm.$route.params.bp_id, // info: {
// bp_id: window.sessionStorage.getItem('bp_id'),
// },
// } // }
// hlsPopup.showLoading('请稍候') // hlsPopup.showLoading('请稍候')
// vm.$post(url, param).then(function (res) { // vm.$post(url, param).then(function (res) {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @Author: your name * @Author: your name
* @Date: 2019-09-19 09:31:19 * @Date: 2019-09-19 09:31:19
* @LastEditTime: 2019-10-12 09:42:44 * @LastEditTime: 2019-10-23 14:04:33
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
--> -->
<template> <template>
...@@ -959,7 +959,7 @@ export default { ...@@ -959,7 +959,7 @@ export default {
this.showModalValue = false this.showModalValue = false
}, },
getInfo (i, isClear) { getInfo (i, isClear) {
if(isClear){ if (isClear) {
this.bank_lists = {} this.bank_lists = {}
} }
this.showModalValue = i this.showModalValue = i
......
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