Commit 1030f522 authored by 李晓兵's avatar 李晓兵

'1.3uat'

parent 9c1ca516
Pipeline #4468 canceled with stages
...@@ -11,5 +11,5 @@ module.exports = { ...@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://180.104.121.66:8088/r/api"', ocrPath:'"http://180.104.121.66:8088/r/api"',
fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_DEV&apiName="', fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_DEV&apiName="',
appId: '"com.xcmg.app.dev"', appId: '"com.xcmg.app.dev"',
currentVersion: '"1.3.3"' currentVersion: '"1.3.4"'
} }
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<br >证件号 <br >证件号
</div> </div>
<div slot="content"> <div slot="content">
<input v-model="item.bp_name" placeholder="暂无信息" readonly > <input v-model="item.bp_guta_name" placeholder="暂无信息" readonly >
<input v-model="item.id_card_no" placeholder="暂无信息" readonly > <input v-model="item.id_card_no" placeholder="暂无信息" readonly >
</div> </div>
</item> </item>
......
...@@ -522,11 +522,11 @@ export default { ...@@ -522,11 +522,11 @@ 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.hlsPopup.showSuccess('提交成功') vm.hlsPopup.showSuccess('提交成功')
vm.$router.push({ vm.$router.push({
name: 'ContractCreateList', name: 'MyInfo',
}) })
} else { } else {
vm.hlsPopup.showLongCenter(res.message) vm.hlsPopup.showLongCenter(res.message)
......
...@@ -37,7 +37,7 @@ export default { ...@@ -37,7 +37,7 @@ export default {
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.notice_detail = res.info.notice_detail vm.notice_detail = res.info.notice_body
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
...@@ -73,6 +73,8 @@ export default { ...@@ -73,6 +73,8 @@ export default {
line-height: 20px; line-height: 20px;
p{ p{
text-indent: 35px; text-indent: 35px;
color: #666666;
font-size: 14px;
} }
} }
} }
......
/**
* @Author Sean
* @Date 2019/11/27
*/
<template>
<transition name="role">
<div v-show="showFlag" class="role-switch-wrap">
<div class="role-switch-content">
<div class="content-header">
<span>请选择要切换的角色</span>
<img src="@/assets/myInfo/modalClose.png" @click="roleCancle">
</div>
<div class="content-wrap">
<div v-for="(item,index) in roleList" :key="index" :class="{'item-active':index === switchIndex}" class="role-item" @click="chooseRole(index)">
<span>{{ item.bp_type_desc }}</span>
</div>
<div :class="{'content-btn-active':switchIndex !== ''}" class="content-btn"><span @click="roleConfirm">确定</span></div>
</div>
</div>
</div>
</transition>
</template>
<script>
export default {
props: ['roleList'],
data () {
return {
showFlag: false,
switchIndex: '',
}
},
created: function () {
},
mounted: function () {
},
updated: function () {
},
methods: {
chooseRole(index){
this.switchIndex = index
},
roleConfirm () {
if(this.switchIndex === ''){
}else {
this.showFlag = false
this.$emit('roleConfirm',this.roleList[this.switchIndex])
}
},
show () {
this.switchIndex = ''
this.showFlag = true
},
roleCancle () {
this.showFlag = false
this.$emit('roleCancle')
},
},
}
</script>
<style scoped lang="less">
.role-enter-active, .role-leave-active {
transition: opacity .5s;
}
.role-enter, .role-leave-to /* .fade-leave-active below version 2.1.8 */ {
opacity: 0;
}
.role-switch-wrap {
width: 100%;
height: 100%;
position: absolute;
top: 0;
z-index: 999;
background: rgba(56, 63, 69, 0.30);
display: flex;
justify-content: center;
align-items: center;
.role-switch-content {
width: 80%;
margin: 0 auto;
.content-header {
width: 100%;
height: 44px;
background-color: @headerColor;
font-family: PingFangSC-Semibold;
font-size: 16px;
color: #FFFFFF;
letter-spacing: 0;
text-align: center;
line-height: 44px;
border-top-left-radius: 14px;
border-top-right-radius: 14px;
img {
width: 26px;
float: right;
}
}
.content-wrap {
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: #FFF;
padding: 10px 0;
border-bottom-left-radius: 14px;
border-bottom-right-radius: 14px;
.role-item {
width: 90%;
height: 44px;
background: #FFFFFF;
border: 1px solid #CFCFCF;
border-radius: 4px;
display: flex;
justify-content: center;
align-items: center;
margin: 4px 0;
span {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #656464;
letter-spacing: 0;
line-height: 18px;
}
}
.item-active{
background: rgba(29,63,255,0.10);
border: 1px solid #1D3FFF;
border-radius: 4px;
}
}
.content-btn {
margin-top: 10px;
width: 84%;
height: 40px;
background: rgba(56, 63, 69, 0.50);
border-radius: 4px;
display: flex;
justify-content: center;
align-items: center;
span {
font-family: PingFangSC-Semibold;
font-size: 15px;
color: #FAFAFA;
line-height: 20px;
}
}
.content-btn-active{
background: #1D3FFF;
border-radius: 4px;
}
}
}
</style>
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
</div> </div>
</div> </div>
</div> </div>
<section class="pay-content"> <section class="pay-content">
<div class="pos"> <div class="pos">
<div class="pay-money"> <div class="pay-money">
...@@ -34,6 +33,20 @@ ...@@ -34,6 +33,20 @@
</div> </div>
</div> </div>
</div> </div>
<div class="pos">
<div class="pay-money">
<div class="pay-icon">
<img src="@/assets/payment/first-pay.png" >已还保证金
</div>
<div class="pay-input">
<span>已还保证金</span>
<span style="text-align:right;display:inline-block;margin-right:5px;">{{ Paied|currency }}</span>
<!-- <div @click="createOrder">
<img src="@/assets/payment/into.png" >
</div>-->
</div>
</div>
</div>
<div class="write"> <div class="write">
<div class="box"> <div class="box">
<span>备注</span> <span>备注</span>
...@@ -67,17 +80,38 @@ export default { ...@@ -67,17 +80,38 @@ export default {
}, },
data () { data () {
return { return {
money: 0, money: null,
Paied: 0, // 已缴纳金额
default: 0, default: 0,
pay_note: '', // 备注 pay_note: '', // 备注
} }
}, },
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
next(vm => {}) next(vm => {
vm.getPaied()
})
}, },
computed: {}, computed: {},
watch: {}, watch: {},
methods: { methods: {
getPaied () {
let vm = this
let url = process.env.basePath + 'bp_agent_query'
let param = {
info: {
phone: window.localStorage.user_phone,
},
}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.Paied = res.info.paid_deposit
} else {
vm.hlsPopup.showLongCenter(res.message)
}
})
},
putOrder (money) { putOrder (money) {
let vm = this let vm = this
let url = process.env.basePath + 'create_order_agent_amt' let url = process.env.basePath + 'create_order_agent_amt'
......
...@@ -451,15 +451,34 @@ export default { ...@@ -451,15 +451,34 @@ export default {
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.$router.push({ /*vm.$router.push({
name: 'NPBankInfo', name: 'NPBankInfo',
}) })*/
vm.attachmentCheck()
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
}) })
} }
}, },
attachmentCheck(){
let vm = this
let url = process.env.basePath + 'bp_attachment_check'
let param = {
bp_id: window.localStorage.getItem('bp_id'),
}
vm.hlsPopup.showLoading('正在校验数据')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.$router.push({
name: 'NPBankInfo',
})
} else {
hlsPopup.showError(res.message)
}
})
},
getHouseInfo () { getHouseInfo () {
let vm = this let vm = this
let url = process.env.basePath + 'bp_house_info_query' let url = process.env.basePath + 'bp_house_info_query'
......
...@@ -529,7 +529,7 @@ export default { ...@@ -529,7 +529,7 @@ export default {
vm.idCardFrontSpEditFlag = false // 配偶身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片 vm.idCardFrontSpEditFlag = false // 配偶身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm.idCardBackSpEditFlag = false // 配偶身份证反面修改标识,为true则标识已修改,后续需要重新上传此照片 vm.idCardBackSpEditFlag = false // 配偶身份证反面修改标识,为true则标识已修改,后续需要重新上传此照片
vm.isClear = false vm.isClear = false
//vm.baseInfo.bp_class = vm.$route.params.bp_class // vm.baseInfo.bp_class = vm.$route.params.bp_class
} }
}) })
}, },
...@@ -762,6 +762,35 @@ export default { ...@@ -762,6 +762,35 @@ export default {
} }
}) })
}, },
// 基本信息保存前校验
bindCheck () {
let vm = this
var business_num = ''
if (vm.baseInfo.bp_type === 'TENANT' || vm.baseInfo.bp_type === 'GUTA') {
business_num = vm.baseInfo.agent_username
} else if (vm.baseInfo.bp_type === 'AGENT' || vm.baseInfo.bp_type === 'FACTORY') {
business_num = vm.baseInfo.business_license_num
} else if (vm.baseInfo.bp_type === 'OFFICE') {
business_num = vm.baseInfo.business_license_num
}
let url = process.env.basePath + 'bp_bind_check'
let param = {
bp_class: 'NP',
bp_type: vm.baseInfo.bp_type,
business_num: business_num,
}
vm.hlsPopup.showLoading('正在校验数据有效性')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.$router.push({
name: 'NPInvoiceInfo',
})
} else {
hlsPopup.showError(res.message)
}
})
},
async saveProtocol () { async saveProtocol () {
let vm = this let vm = this
let url = process.env.basePath + 'bp_np_bind_save' let url = process.env.basePath + 'bp_np_bind_save'
...@@ -779,7 +808,8 @@ export default { ...@@ -779,7 +808,8 @@ export default {
window.localStorage.setItem('bp_name', vm.baseInfo.bp_name) window.localStorage.setItem('bp_name', vm.baseInfo.bp_name)
window.localStorage.setItem('bp_type', vm.baseInfo.bp_type) window.localStorage.setItem('bp_type', vm.baseInfo.bp_type)
window.localStorage.setItem('from', vm.from) window.localStorage.setItem('from', vm.from)
vm.$router.push({ // vm.bindCheck()
vm.$router.push({
name: 'NPInvoiceInfo', name: 'NPInvoiceInfo',
}) })
return res.bp_id return res.bp_id
...@@ -789,7 +819,6 @@ export default { ...@@ -789,7 +819,6 @@ export default {
}, },
async saveWord () { async saveWord () {
let vm = this let vm = this
debugger
if (!vm.baseInfo.bp_type) { if (!vm.baseInfo.bp_type) {
vm.hlsPopup.showLongCenter('客户类型不能为空!') vm.hlsPopup.showLongCenter('客户类型不能为空!')
} else if (vm.isPaople && !vm.baseInfo.agent_username) { } else if (vm.isPaople && !vm.baseInfo.agent_username) {
......
...@@ -304,32 +304,6 @@ export default { ...@@ -304,32 +304,6 @@ export default {
} }
}, },
}) })
// this.hlsPopup.showConfirm({
// title: '提示',
// content: '您确认提交吗?',
// onConfirm: data => {
// if (data) {
// let url = $config.basePath + 'bp_bind_submit'
// let param = {
// master: {
// bp_id: this.$route.params.bp_id,
// company_id: '2145',
// },
// }
// let vm = this
// vm.hlsPopup.showLoading('请稍候')
// this.hlsHttp.post(url, param).then(function (res) {
// vm.hlsPopup.hideLoading()
// if (res.result === 'S') {
// vm.hlsPopup.showSuccess('提交成功')
// vm.$router.push({
// name: 'MyInfo',
// })
// }
// })
// }
// },
// })
}, },
// 获取个人认证url // 获取个人认证url
getNpCertificationUrl () { getNpCertificationUrl () {
......
...@@ -395,7 +395,7 @@ ...@@ -395,7 +395,7 @@
</div> </div>
</div> </div>
</div> </div>
<!--
<div v-if="from&&isApproved&&isAGENT" class="tax" @click="changeUndertake"> <div v-if="from&&isApproved&&isAGENT" class="tax" @click="changeUndertake">
<img src="@/assets/userBind/tax.png" class="left-img"> <img src="@/assets/userBind/tax.png" class="left-img">
<div> <div>
...@@ -404,8 +404,8 @@ ...@@ -404,8 +404,8 @@
</div> </div>
<img src="@/assets/userBind/arrow-right.png" class="right-img"> <img src="@/assets/userBind/arrow-right.png" class="right-img">
</div> </div>
</div> </div> -->
</h-content> </div></h-content>
<bottom-tab class="footer-button"> <bottom-tab class="footer-button">
<!-- <tab-button class="put" @click.native="handSubmit">提交</tab-button> --> <!-- <tab-button class="put" @click.native="handSubmit">提交</tab-button> -->
<tab-button class="save" @click.native="verified">下一步</tab-button> <tab-button class="save" @click.native="verified">下一步</tab-button>
...@@ -752,16 +752,16 @@ export default { ...@@ -752,16 +752,16 @@ export default {
}, },
}) })
}, },
changeUndertake () { // changeUndertake () {
this.$router.push({ // this.$router.push({
name: 'MarginFirstPay', // name: 'MarginFirstPay',
params: { // params: {
bp_id: this.$route.params.bp_id, // bp_id: this.$route.params.bp_id,
status: this.$route.params.status, // status: this.$route.params.status,
isAGENT: this.isAGENT, // isAGENT: this.isAGENT,
}, // },
}) // })
}, // },
addRows (e) { addRows (e) {
let addNum = parseInt(e.length / 16) let addNum = parseInt(e.length / 16)
if (addNum === 0) { if (addNum === 0) {
......
...@@ -414,6 +414,9 @@ export default { ...@@ -414,6 +414,9 @@ export default {
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
next(vm => { next(vm => {
if (from.name === 'Invoice') { if (from.name === 'Invoice') {
vm.carImg = '',
vm.houseImg = '',
vm.propertyImg = '', // 不动产识别图片
vm.propertyInfo = { // 不动产证 vm.propertyInfo = { // 不动产证
bp_id: vm.$route.params.bp_id, bp_id: vm.$route.params.bp_id,
right_person: '', right_person: '',
...@@ -515,8 +518,8 @@ export default { ...@@ -515,8 +518,8 @@ export default {
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
Object.assign(vm.hauseInfo, res.info) Object.assign(vm.hauseInfo, res.info)
//vm.hauseInfo = res.info // vm.hauseInfo = res.info
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
...@@ -534,8 +537,8 @@ export default { ...@@ -534,8 +537,8 @@ export default {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
console.log('行驶证信息查询', res) console.log('行驶证信息查询', res)
if (res.result === 'S') { if (res.result === 'S') {
Object.assign(vm.carInfo, res.info) Object.assign(vm.carInfo, res.info)
// vm.carInfo = res.info // vm.carInfo = res.info
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
...@@ -553,72 +556,86 @@ export default { ...@@ -553,72 +556,86 @@ export default {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
console.log('不动产权证查询', res) console.log('不动产权证查询', res)
if (res.result === 'S') { if (res.result === 'S') {
Object.assign(vm.propertyInfo, res.info) Object.assign(vm.propertyInfo, res.info)
// vm.propertyInfo = res.info // vm.propertyInfo = res.info
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
}) })
}, },
// 行驶证信息保存 // 行驶证信息保存
saveCarInfo () { async saveCarInfo () {
let vm = this let vm = this
let url = process.env.basePath + 'bp_vehicleLicense_save' let url = process.env.basePath + 'bp_vehicleLicense_save'
let param = { let param = {
master: vm.carInfo, master: vm.carInfo,
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { let res = await vm.$post(url, param)
if (res.result === 'S') {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { return true
vm.$router.push({ } else {
name: 'BankInfo', hlsPopup.showLongCenter(res.message)
params: { }
bp_id: vm.bp_id,
},
})
} else {
hlsPopup.showLongCenter(res.message)
}
})
}, },
// 不动产信息保存 // 不动产信息保存
savePropertyInfo () { async savePropertyInfo () {
let vm = this let vm = this
let url = process.env.basePath + 'bp_real_estate_save' let url = process.env.basePath + 'bp_real_estate_save'
let param = { let param = {
master: vm.propertyInfo, master: vm.propertyInfo,
} }
// hlsPopup.showLoading('请稍候') let res = await vm.$post(url, param)
if (res.result === 'S') {
return true
} else {
hlsPopup.showLongCenter(res.message)
}
},
// 房产证信息保存
async saveHouseInfo () {
let vm = this
let url = process.env.basePath + 'bp_house_info_save'
let isSaveCar = await vm.saveCarInfo()
let isSaveEstate = await vm.savePropertyInfo()
let param = {
master: vm.hauseInfo,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
// vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
/* vm.$router.push({
name: 'BankInfo',
params: {
bp_id: vm.bp_id,
},
})*/
vm.attachmentCheck()
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
}) })
}, },
// 房产证信息保存 attachmentCheck () {
saveHouseInfo () {
let vm = this let vm = this
let url = process.env.basePath + 'bp_house_info_save' let url = process.env.basePath + 'bp_attachment_check'
// vm.hauseInfo.regist_date.substr(0, 10)
console.log('regist_date', vm.hauseInfo.regist_date)
let param = { let param = {
/*master: { bp_id: vm.bp_id,
...vm.hauseInfo,
regist_date: vm.hauseInfo.regist_date.substr(0, 10),
},*/
master: vm.hauseInfo,
} }
// hlsPopup.showLoading('请稍候') vm.hlsPopup.showLoading('正在校验数据')
vm.$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.saveCarInfo() vm.$router.push({
name: 'BankInfo',
params: {
bp_id: vm.bp_id,
},
})
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showError(res.message)
} }
}) })
}, },
...@@ -678,7 +695,7 @@ export default { ...@@ -678,7 +695,7 @@ export default {
vm.save_picture(list) vm.save_picture(list)
vm.isUploadProperty = false // 置为false,防止再次保存重复上传,只有重新识别才会重新上传 vm.isUploadProperty = false // 置为false,防止再次保存重复上传,只有重新识别才会重新上传
} }
vm.savePropertyInfo() // vm.savePropertyInfo()
vm.saveHouseInfo() vm.saveHouseInfo()
}, },
// 房产证/车辆证识别 // 房产证/车辆证识别
......
...@@ -35,11 +35,14 @@ axios.interceptors.response.use(response => { ...@@ -35,11 +35,14 @@ axios.interceptors.response.use(response => {
err.message = response.data.message err.message = response.data.message
hlsPopup.showError(err.message) hlsPopup.showError(err.message)
return Promise.resolve(err) return Promise.resolve(err)
} else if (response.code === '404') {
hlsPopup.showError('未找到资源文件')
} else { } else {
return response.data return response.data
} }
}, err => { }, err => {
if (err && err.response) { if (err && err.response) {
debugger
switch (err.response.status) { switch (err.response.status) {
case 400: case 400:
err.message = '错误请求' err.message = '错误请求'
......
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