Commit 87344958 authored by linxin's avatar linxin

add

parent 3a83d728
...@@ -8,9 +8,9 @@ module.exports = merge(prodEnv, { ...@@ -8,9 +8,9 @@ module.exports = merge(prodEnv, {
debug: true, debug: true,
isMobilePlatform: false, isMobilePlatform: false,
loginPath: '"http://180.104.121.66:8088/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=appadmin&password=" ', loginPath: '"http://180.104.121.66:8088/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=appadmin&password=" ',
basePath: '"http://180.104.121.66:8088/r/api/interface?sysName=XCMG_DEV&apiName="', basePath: '"http://180.104.121.66:8088/r/api/interface?sysName=XCMG_UAT&apiName="',
rootPath: '"http://180.104.121.66:8088/r/api"', rootPath: '"http://180.104.121.66:8088/r/api"',
filePath: '"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_DEV&apiName=file_view&"', filePath: '"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_UAT&apiName=file_view&"',
ocrPath: '"http://180.104.121.66:8088/r/api"', ocrPath: '"http://180.104.121.66:8088/r/api"',
appId: '"com.xcmg.app.dev"', appId: '"com.xcmg.app.dev"',
currentVersion: '"1.8.1"', currentVersion: '"1.8.1"',
......
...@@ -89,6 +89,8 @@ export default { ...@@ -89,6 +89,8 @@ export default {
// if (from.name === 'Login') { // if (from.name === 'Login') {
vm.moduleSeparateList = [...functionState.moduleSeparateList] vm.moduleSeparateList = [...functionState.moduleSeparateList]
vm.userQuery() vm.userQuery()
vm.guessingQuery() // 猜你喜欢查询
// } // }
}) })
}, },
...@@ -111,7 +113,6 @@ export default { ...@@ -111,7 +113,6 @@ export default {
vm.city = res.address.city vm.city = res.address.city
vm.province = res.address.province vm.province = res.address.province
} }
vm.guessingQuery() // 猜你喜欢查询
} }
}, {enableHighAccuracy: true}) }, {enableHighAccuracy: true})
} else { // ios使用插件定位 } else { // ios使用插件定位
...@@ -124,7 +125,6 @@ export default { ...@@ -124,7 +125,6 @@ export default {
vm.city = result.city vm.city = result.city
vm.province = result.province vm.province = result.province
} }
vm.guessingQuery() // 猜你喜欢查询
}, function (error) { }, function (error) {
}) })
} }
...@@ -176,7 +176,9 @@ export default { ...@@ -176,7 +176,9 @@ export default {
'user_phone': window.localStorage.getItem('user_phone'), 'user_phone': window.localStorage.getItem('user_phone'),
'city': vm.city, 'city': vm.city,
} }
vm.hlsPopup.showLoading('数据加载中')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.guessingList = res.lists vm.guessingList = res.lists
} else { } else {
......
...@@ -35,7 +35,7 @@ export default { ...@@ -35,7 +35,7 @@ export default {
} }
hlsPopup.showLoading('请稍候') 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.notice_detail = res.info.notice_body vm.notice_detail = res.info.notice_body
} else { } else {
......
...@@ -908,6 +908,7 @@ export default { ...@@ -908,6 +908,7 @@ export default {
let param = { let param = {
phone: window.localStorage.getItem('user_phone'), phone: window.localStorage.getItem('user_phone'),
} }
vm.hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
if (res.result === 'S') { if (res.result === 'S') {
if (res.info.user_bp_status === 'APPROVED') { if (res.info.user_bp_status === 'APPROVED') {
......
/**
* @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>
<span>{{ item.bp_type_n }}</span>
</div>
<div :class="{'content-btn-active':switchIndex !== ''}" class="content-btn" @click="roleConfirm"><span>确定</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>
...@@ -335,9 +335,50 @@ export default { ...@@ -335,9 +335,50 @@ export default {
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
next(vm => { next(vm => {
if (from.name === 'NPInvoiceInfo' && window.localStorage.from === 'true') { if (from.name === 'NPInvoiceInfo' && window.localStorage.from === 'true') {
vm.propertyInfo = {bp_id: window.localStorage.getItem('bp_id')} vm.propertyInfo = {
vm.hauseInfo = {bp_id: window.localStorage.getItem('bp_id')} bp_id: window.localStorage.getItem('bp_id'),
vm.carInfo = {bp_id: window.localStorage.getItem('bp_id')} right_person: '',
public_situation: '',
house_located: '',
real_unit_number: '',
right_type: '',
right_property: '',
house_purpose: '',
house_area: '',
land_use_limit: '',
right_others: '',
}
vm.hauseInfo = {
house_owner: '',
public_situation: '',
house_located: '',
regist_date: '',
house_property: '',
plan_purpose: '',
house_layers: '',
built_area: '',
built_in_area: '',
others: '',
land_number: '',
land_get_method: '',
land_use_limit: '',
bp_id: window.localStorage.getItem('bp_id'),
}
vm.carInfo = {
vehicle_identify_num: '',
address: '',
brand_model_number: '',
start_date: '',
vehicle_type: '',
owner: '',
use_nature: '',
engine_number: '',
plate_number: '',
regist_date: '',
words_result_num: '',
success: '',
bp_id: window.localStorage.getItem('bp_id'),
}
vm.houseImg = '' vm.houseImg = ''
vm.carImg = '' vm.carImg = ''
vm.estateImg = '' vm.estateImg = ''
...@@ -355,9 +396,50 @@ export default { ...@@ -355,9 +396,50 @@ export default {
vm.getEstateInfo() vm.getEstateInfo()
}, 0) }, 0)
} else if (from.name === 'NPInvoiceInfo' && window.localStorage.from === 'false') { } else if (from.name === 'NPInvoiceInfo' && window.localStorage.from === 'false') {
vm.propertyInfo = {bp_id: window.localStorage.getItem('bp_id')} vm.propertyInfo = {
vm.hauseInfo = {bp_id: window.localStorage.getItem('bp_id')} bp_id: window.localStorage.getItem('bp_id'),
vm.carInfo = {bp_id: window.localStorage.getItem('bp_id')} right_person: '',
public_situation: '',
house_located: '',
real_unit_number: '',
right_type: '',
right_property: '',
house_purpose: '',
house_area: '',
land_use_limit: '',
right_others: '',
}
vm.hauseInfo = {
house_owner: '',
public_situation: '',
house_located: '',
regist_date: '',
house_property: '',
plan_purpose: '',
house_layers: '',
built_area: '',
built_in_area: '',
others: '',
land_number: '',
land_get_method: '',
land_use_limit: '',
bp_id: window.localStorage.getItem('bp_id'),
}
vm.carInfo = {
vehicle_identify_num: '',
address: '',
brand_model_number: '',
start_date: '',
vehicle_type: '',
owner: '',
use_nature: '',
engine_number: '',
plate_number: '',
regist_date: '',
words_result_num: '',
success: '',
bp_id: window.localStorage.getItem('bp_id'),
}
vm.houseImg = '' vm.houseImg = ''
vm.carImg = '' vm.carImg = ''
vm.estateImg = '' vm.estateImg = ''
...@@ -372,7 +454,6 @@ export default { ...@@ -372,7 +454,6 @@ export default {
}) })
}, },
updated () { updated () {
let vm = this
let myArea = document.querySelectorAll('textarea') let myArea = document.querySelectorAll('textarea')
myArea.forEach(i => { myArea.forEach(i => {
let num = Math.round((i.scrollHeight - 42) / 20) let num = Math.round((i.scrollHeight - 42) / 20)
......
...@@ -38,11 +38,12 @@ ...@@ -38,11 +38,12 @@
<span v-for="(item,index) in multiRoleList" :key="index">{{ item.bp_type_n }}</span> <span v-for="(item,index) in multiRoleList" :key="index">{{ item.bp_type_n }}</span>
</div> </div>
</item> </item>
<item v-if="(((isPaople&&from)||(isPaople&&isSelected))&&!multipleRole)||(multipleRole==='GUTA'||multipleRole==='TENANT')"> <item v-if="(((isPaople&&from)||(isPaople&&isSelected)))||(multipleRole==='GUTA'||multipleRole==='TENANT')||searchPeople">
<div slot="name" class="required">业务经办人</div> <div slot="name" class="required">业务经办人</div>
<input slot="content" v-model="baseInfo.agent_username" placeholder="请输入业务经办员工代码" > <input slot="content" v-model="baseInfo.agent_username" placeholder="请输入业务经办员工代码" >
<!-- <img src=""> -->
</item> </item>
<item v-if="(((isLesons&&from)||(isLesons&&isSelected))&&!multipleRole)||multipleRole==='AGENT'"> <item v-if="(((isLesons&&from)||(isLesons&&isSelected)))||multipleRole==='AGENT'||searchLecens">
<div slot="name" class="required">营业执照</div> <div slot="name" class="required">营业执照</div>
<input slot="content" v-model="baseInfo.business_license_num" placeholder="请输入营业执照号" > <input slot="content" v-model="baseInfo.business_license_num" placeholder="请输入营业执照号" >
</item> </item>
...@@ -312,10 +313,21 @@ ...@@ -312,10 +313,21 @@
<bottom-tab class="footer-button"> <bottom-tab class="footer-button">
<tab-button class="save" @click.native="verified(false)">下一步</tab-button> <tab-button class="save" @click.native="verified(false)">下一步</tab-button>
</bottom-tab> </bottom-tab>
<!-- <InputNum
v-show="inputNum"
ref="inputtNum"
:roleList="type"
@roleConfirm="typeConfirm"
@roleCancle="typeCancle"
/> -->
</h-view> </h-view>
</template> </template>
<script> <script>
import InputNum from '../input-num'
export default { export default {
components: {
InputNum,
},
data () { data () {
return { return {
list: {}, list: {},
...@@ -325,6 +337,9 @@ export default { ...@@ -325,6 +337,9 @@ export default {
isLesons: false, isLesons: false,
isMatter: false, isMatter: false,
isApproved: false, isApproved: false,
searchPeople: false,
searchLecens: false,
inputNum: false, // 填写业务经办
isSave: false, isSave: false,
isAGENT: this.$route.params.isAGENT, isAGENT: this.$route.params.isAGENT,
isMultiRole: false, // 能否选择多角色 isMultiRole: false, // 能否选择多角色
...@@ -469,6 +484,8 @@ export default { ...@@ -469,6 +484,8 @@ export default {
vm.idCardBack = '' // 身份证反面图片 vm.idCardBack = '' // 身份证反面图片
vm.idCardFrontSp = '' // 配偶身份证正面图片 vm.idCardFrontSp = '' // 配偶身份证正面图片
vm.idCardBackSp = '' // 配偶身份证反面图片 vm.idCardBackSp = '' // 配偶身份证反面图片
vm.searchPeople = false
vm.searchLecens = false
vm.idCardFrontUrlFlag = false // 身份证正面图片查看标识,为false则用查询出来的,为true则用拍照出来的 vm.idCardFrontUrlFlag = false // 身份证正面图片查看标识,为false则用查询出来的,为true则用拍照出来的
vm.idCardBackUrlFlag = false // 身份证反面图片,为false则用查询出来的,为true则用拍照出来的 vm.idCardBackUrlFlag = false // 身份证反面图片,为false则用查询出来的,为true则用拍照出来的
vm.idCardFrontSpUrlFlag = false // 配偶身份证正面图片,为false则用查询出来的,为true则用拍照出来的 vm.idCardFrontSpUrlFlag = false // 配偶身份证正面图片,为false则用查询出来的,为true则用拍照出来的
...@@ -497,6 +514,8 @@ export default { ...@@ -497,6 +514,8 @@ export default {
window.localStorage.setItem('from', false) window.localStorage.setItem('from', false)
vm.isApproved = false vm.isApproved = false
vm.from = false vm.from = false
vm.searchPeople = false
vm.searchLecens = false
vm.multiBpType = { vm.multiBpType = {
bp_type_n: '', bp_type_n: '',
bp_type: '', bp_type: '',
...@@ -563,6 +582,9 @@ export default { ...@@ -563,6 +582,9 @@ export default {
}) })
}, },
methods: { methods: {
roleCancle () {
this.inputNum = false
},
timeFormat (str) { timeFormat (str) {
return `${str.substring(0, 4)}-${str.substring(4, 6)}-${str.substring(6)}` return `${str.substring(0, 4)}-${str.substring(4, 6)}-${str.substring(6)}`
}, },
...@@ -824,6 +846,14 @@ export default { ...@@ -824,6 +846,14 @@ export default {
} else if (res.lists.length === 2) { } else if (res.lists.length === 2) {
vm.hasMultiRole = true vm.hasMultiRole = true
} }
if (res.lists.length !== 0) {
vm.searchPeople = res.lists.some(item => {
return item.bp_type === 'TENANT' || item.bp_type === 'GUTA'
})
vm.searchLecens = res.lists.some(item => {
return item.bp_type === 'AGENT'
})
}
} }
}) })
} }
......
...@@ -632,6 +632,10 @@ export default { ...@@ -632,6 +632,10 @@ export default {
vm.getMultipleRole()// 获取第二角色 vm.getMultipleRole()// 获取第二角色
} else if (from.name === 'UserBind') { } else if (from.name === 'UserBind') {
window.localStorage.setItem('from', false) window.localStorage.setItem('from', false)
vm.isMultiRole = false
vm.hasMultiRole = false
vm.isApproved = false
vm.bp_type_flag = false
vm.multiBpType = { vm.multiBpType = {
bp_type_n: '', bp_type_n: '',
bp_type: '', bp_type: '',
...@@ -692,7 +696,7 @@ export default { ...@@ -692,7 +696,7 @@ export default {
vm.licenseEditFlag = false // 营业执照照片修改标识,为true则标识已修改,后续需要重新上传此照片 vm.licenseEditFlag = false // 营业执照照片修改标识,为true则标识已修改,后续需要重新上传此照片
vm.LaEditFlag = false // 授权书图片修改标识,为true则标识已修改,后续需要重新上传此照片 vm.LaEditFlag = false // 授权书图片修改标识,为true则标识已修改,后续需要重新上传此照片
vm.isClear = false vm.isClear = false
vm.from = false
vm.idCardFrontUrlFlag = false // 身份证正面图片,为false则用查询出来的,为true则用拍照出来的 vm.idCardFrontUrlFlag = false // 身份证正面图片,为false则用查询出来的,为true则用拍照出来的
vm.idCardBackUrlFlag = false // 身份证反面图片,为false则用查询出来的,为true则用拍照出来的 vm.idCardBackUrlFlag = false // 身份证反面图片,为false则用查询出来的,为true则用拍照出来的
vm.authidCardFrontUrlFlag = false // 授权人身份证正面图片,为false则用查询出来的,为true则用拍照出来的 vm.authidCardFrontUrlFlag = false // 授权人身份证正面图片,为false则用查询出来的,为true则用拍照出来的
......
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