Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xugong
hls-xcmg-vue-app
Commits
fe7cd829
Commit
fe7cd829
authored
Feb 11, 2020
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
f65230b6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
299 additions
and
190 deletions
+299
-190
first-pay.vue
src/pages/pay/marginPay/first-pay.vue
+4
-3
input-num.vue
src/pages/userBindNew/input-num.vue
+33
-18
accessory-info.vue
src/pages/userBindNew/np/accessory-info.vue
+63
-51
base-info.vue
src/pages/userBindNew/np/base-info.vue
+64
-34
baseInfo.vue
src/pages/userBindNew/org/baseInfo.vue
+70
-32
enclosure.vue
src/pages/userBindNew/org/enclosure.vue
+65
-52
No files found.
src/pages/pay/marginPay/first-pay.vue
View file @
fe7cd829
...
...
@@ -25,7 +25,7 @@
<img
src=
"@/assets/payment/first-pay.png"
>
保证金支付
</div>
<div
class=
"pay-input"
>
<span>
应
还
保证金
</span>
<span>
应
付
保证金
</span>
<CurrencyInput
v-model=
"money"
placeholder=
"请输入支付金额"
/>
<!--
<div
@
click=
"createOrder"
>
<img
src=
"@/assets/payment/into.png"
>
...
...
@@ -36,10 +36,10 @@
<div
class=
"pos"
>
<div
class=
"pay-money"
>
<div
class=
"pay-icon"
>
<img
src=
"@/assets/payment/first-pay.png"
>
已
还
保证金
<img
src=
"@/assets/payment/first-pay.png"
>
已
缴纳
保证金
</div>
<div
class=
"pay-input"
>
<span>
已
还
保证金
</span>
<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"
>
...
...
@@ -257,6 +257,7 @@ export default {
flex: 3;
text-align: right;
padding-right: 5px;
height:100%;
}
div {
...
...
src/pages/userBindNew/input-num.vue
View file @
fe7cd829
...
...
@@ -7,14 +7,14 @@
<div
v-show=
"showFlag"
class=
"role-switch-wrap"
>
<div
class=
"role-switch-content"
>
<div
class=
"content-header"
>
<span>
请
选
输入业务经办代码
</span>
<span>
请输入业务经办代码
</span>
<img
src=
"@/assets/myInfo/modalClose.png"
@
click=
"roleCancle"
>
</div>
<div
class=
"content-wrap"
>
<div>
<
span>
{{
item
.
bp_type_n
}}
</span
>
<div
class=
"input-text"
>
<
input
v-model=
"business_num"
type=
"text"
placeholder=
"请输入业务经办代码"
>
</div>
<div
:class=
"
{'content-btn-active':switchIndex !== ''}" class="
content-btn" @click="roleConfirm">
<span>
确定
</span></div>
<div
class=
"content-btn-active
content-btn"
@
click=
"roleConfirm"
><span>
确定
</span></div>
</div>
</div>
</div>
...
...
@@ -23,11 +23,10 @@
<
script
>
export
default
{
props
:
[
'roleList'
],
data
()
{
return
{
showFlag
:
false
,
switchIndex
:
''
,
business_num
:
''
,
}
},
created
:
function
()
{
...
...
@@ -37,20 +36,26 @@ export default {
updated
:
function
()
{
},
methods
:
{
chooseRole
(
index
)
{
this
.
switchIndex
=
index
},
roleConfirm
()
{
if
(
this
.
switchIndex
===
''
)
{
}
else
{
this
.
showFlag
=
false
this
.
$emit
(
'roleConfirm'
,
this
.
roleList
[
this
.
switchIndex
])
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'bp_relation_insert'
let
param
=
{
bp_id
:
window
.
localStorage
.
getItem
(
'bp_id'
),
business_num
:
vm
.
business_num
,
}
},
show
()
{
this
.
switchIndex
=
''
this
.
showFlag
=
true
vm
.
hlsPopup
.
showLoading
(
'正在添加'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
showLongCenter
(
'添加成功'
)
if
(
res
.
result
===
'S'
)
{
vm
.
showFlag
=
false
vm
.
$emit
(
'roleConfirm'
,
vm
.
business_num
)
vm
.
business_num
=
''
}
else
{
hlsPopup
.
showError
(
res
.
message
)
vm
.
business_num
=
''
}
})
},
roleCancle
()
{
this
.
showFlag
=
false
...
...
@@ -112,6 +117,16 @@ export default {
padding: 10px 0;
border-bottom-left-radius: 14px;
border-bottom-right-radius: 14px;
.input-text{
border: 1px solid @headerColor;
margin:30px auto;
height:40px;
line-height: 40px;
border-radius: 5px;
input{
text-indent: 5px;
}
}
.role-item {
width: 90%;
height: 44px;
...
...
src/pages/userBindNew/np/accessory-info.vue
View file @
fe7cd829
...
...
@@ -391,9 +391,9 @@ export default {
vm
.
bp_type
=
window
.
localStorage
.
bp_type
setTimeout
(()
=>
{
vm
.
loadItemList
()
vm
.
getCarInfo
()
vm
.
getHouseInfo
()
vm
.
getEstateInfo
()
//
vm.getCarInfo()
//
vm.getHouseInfo()
//
vm.getEstateInfo()
},
0
)
}
else
if
(
from
.
name
===
'NPInvoiceInfo'
&&
window
.
localStorage
.
from
===
'false'
)
{
vm
.
propertyInfo
=
{
...
...
@@ -502,37 +502,45 @@ export default {
hlsPopup
.
showLongCenter
(
res
.
message
)
}
},
getCarInfo
()
{
async
getCarInfo
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'bp_vehicleLicense_query'
let
flag
=
await
vm
.
getEstateInfo
()
let
param
=
{
bp_id
:
window
.
localStorage
.
getItem
(
'bp_id'
),
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
// hlsPopup.showLoading('请稍候')
if
(
flag
)
{
let
res
=
await
vm
.
$post
(
url
,
param
)
// vm.hlsPopup.hideLoading()
if
(
res
.
result
===
'S'
)
{
Object
.
assign
(
vm
.
carInfo
,
res
.
info
)
return
true
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
return
false
}
}
)
}
},
getEstateInfo
()
{
async
getEstateInfo
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'bp_real_estate_query'
let
flag
=
await
vm
.
getHouseInfo
()
let
param
=
{
bp_id
:
window
.
localStorage
.
getItem
(
'bp_id'
),
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
// hlsPopup.showLoading('请稍候')
if
(
flag
)
{
let
res
=
await
vm
.
$post
(
url
,
param
)
// vm.hlsPopup.hideLoading()
if
(
res
.
result
===
'S'
)
{
Object
.
assign
(
vm
.
propertyInfo
,
res
.
info
)
return
true
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
return
false
}
}
)
}
},
async
saveHouseInfo
()
{
let
vm
=
this
...
...
@@ -574,21 +582,22 @@ export default {
}
})
},
getHouseInfo
()
{
async
getHouseInfo
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'bp_house_info_query'
let
param
=
{
bp_id
:
window
.
localStorage
.
getItem
(
'bp_id'
),
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
Object
.
assign
(
vm
.
hauseInfo
,
res
.
info
)
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
let
res
=
await
vm
.
$post
(
url
,
param
)
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
Object
.
assign
(
vm
.
hauseInfo
,
res
.
info
)
return
true
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
return
false
}
},
save
()
{
let
vm
=
this
...
...
@@ -951,10 +960,11 @@ export default {
}
})
},
loadItemList
()
{
async
loadItemList
()
{
let
vm
=
this
vm
.
dowload_list
=
[]
let
bpId
=
window
.
localStorage
.
getItem
(
'bp_id'
)
let
flag
=
await
vm
.
getCarInfo
()
if
(
bpId
===
'undefined'
)
{
bpId
=
null
}
...
...
@@ -967,34 +977,36 @@ export default {
},
}
// vm.hlsPopup.showLoading('请稍候')
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
// vm.hlsPopup.hideLoading()
if
(
res
.
result
===
'S'
)
{
var
listTemp
=
[...
res
.
lists
]
listTemp
.
forEach
(
item
=>
{
switch
(
item
.
cdd_item
)
{
case
'HOUSE_CARD'
:
// 房产证
vm
.
house_id
=
item
.
check_id
break
case
'CAR_CARD'
:
// 承租人身份证背面
vm
.
car_id
=
item
.
check_id
break
case
'REAL_EST_CERTIFICATE'
:
// 承租人身份证背面
vm
.
estate_id
=
item
.
check_id
break
default
:
break
}
})
vm
.
cddItemList
=
res
.
lists
.
filter
(
i
=>
{
return
i
.
description
.
indexOf
(
'身份证'
)
===
-
1
})
// 查询图片
vm
.
cddItemList
.
forEach
((
item
,
index
)
=>
{
vm
.
load_picture
(
item
.
check_id
,
index
,
item
.
cdd_item
)
})
}
})
if
(
flag
)
{
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
var
listTemp
=
[...
res
.
lists
]
listTemp
.
forEach
(
item
=>
{
switch
(
item
.
cdd_item
)
{
case
'HOUSE_CARD'
:
// 房产证
vm
.
house_id
=
item
.
check_id
break
case
'CAR_CARD'
:
// 承租人身份证背面
vm
.
car_id
=
item
.
check_id
break
case
'REAL_EST_CERTIFICATE'
:
// 承租人身份证背面
vm
.
estate_id
=
item
.
check_id
break
default
:
break
}
})
vm
.
cddItemList
=
res
.
lists
.
filter
(
i
=>
{
return
i
.
description
.
indexOf
(
'身份证'
)
===
-
1
})
// 查询图片
vm
.
cddItemList
.
forEach
((
item
,
index
)
=>
{
vm
.
load_picture
(
item
.
check_id
,
index
,
item
.
cdd_item
)
})
}
})
}
},
delete_pic_to_ocr
(
attachment_id
)
{
let
vm
=
this
...
...
src/pages/userBindNew/np/base-info.vue
View file @
fe7cd829
...
...
@@ -40,8 +40,9 @@
</item>
<item
v-if=
"(((isPaople&&from)||(isPaople&&isSelected)))||(multipleRole==='GUTA'||multipleRole==='TENANT')||searchPeople"
>
<div
slot=
"name"
class=
"required"
>
业务经办人
</div>
<input
slot=
"content"
v-model=
"baseInfo.agent_username"
placeholder=
"请输入业务经办员工代码"
>
<!--
<img
src=
""
>
-->
<!--
<input
slot=
"content"
v-model=
"baseInfo.agent_username"
placeholder=
"请输入业务经办员工代码"
>
-->
<div
slot=
"content"
class=
"add-people"
><input
v-model=
"baseInfo.agent_username"
><img
src=
"@/assets/contractCreate/add.png"
@
click=
"inputNum=true"
></div>
<!-- -->
</item>
<item
v-if=
"(((isLesons&&from)||(isLesons&&isSelected)))||multipleRole==='AGENT'||searchLecens"
>
<div
slot=
"name"
class=
"required"
>
营业执照
</div>
...
...
@@ -313,13 +314,12 @@
<bottom-tab
class=
"footer-button"
>
<tab-button
class=
"save"
@
click
.
native=
"verified(false)"
>
下一步
</tab-button>
</bottom-tab>
<
!--
<
InputNum
<InputNum
v-show=
"inputNum"
ref=
"inputtNum"
:roleList=
"type"
@
roleConfirm=
"typeConfirm"
@
roleCancle=
"typeCancle"
/>
-->
@
roleCancle=
"roleCancle"
@
roleConfirm=
"roleConfirm"
/>
</h-view>
</
template
>
<
script
>
...
...
@@ -351,6 +351,17 @@ export default {
bp_type_n
:
''
,
bp_type
:
''
,
},
peopleList
:
[
{
agent_username
:
'1343dwsd'
,
},
{
agent_username
:
'1343dwsd'
,
},
{
agent_username
:
'1343dwsd'
,
},
],
cityList
:
[],
provinceList
:
[],
upload_list
:
[],
// 上传图片列表
...
...
@@ -585,6 +596,14 @@ export default {
roleCancle
()
{
this
.
inputNum
=
false
},
roleConfirm
(
e
)
{
if
(
this
.
baseInfo
.
agent_username
.
indexOf
(
e
)
!==
-
1
)
{
hlsPopup
.
showLongCenter
(
'您已添加了该业务经办'
)
}
else
{
this
.
baseInfo
.
agent_username
=
this
.
baseInfo
.
agent_username
+
`,
${
e
}
`
}
this
.
inputNum
=
false
},
timeFormat
(
str
)
{
return
`
${
str
.
substring
(
0
,
4
)}
-
${
str
.
substring
(
4
,
6
)}
-
${
str
.
substring
(
6
)}
`
},
...
...
@@ -615,6 +634,8 @@ export default {
vm
.
isAddNewType
=
false
let
item
=
vm
.
multiBpTypeSelectList
.
pop
()
vm
.
multiRoleList
.
push
(
item
)
vm
.
searchLecens
=
true
vm
.
searchPeople
=
true
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
...
...
@@ -876,34 +897,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
}
window
.
localStorage
.
setItem
(
'business_num'
,
business_num
)
let
url
=
process
.
env
.
basePath
+
'bp_bind_check'
let
param
=
{
'master'
:
{
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
)
}
// 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
// }
// window.localStorage.setItem('business_num', business_num)
// let url = process.env.basePath + 'bp_bind_check'
// let param = {
// 'master': {
// 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
()
{
let
vm
=
this
...
...
@@ -1616,6 +1638,14 @@ export default {
text-align: right;
color: #666;
}
.add-people{
display: flex;
justify-content: start;
img{
width:20px;
margin-left:10px;
}
}
.type-save{
color: #fff;
width:80px;
...
...
src/pages/userBindNew/org/baseInfo.vue
View file @
fe7cd829
...
...
@@ -46,13 +46,19 @@
</div>
</item>
<item
v-if=
"bp_type_flag"
>
<div
slot=
"name"
class=
"required"
>
业务经办人
</div>
<!--
<input
slot=
"content"
v-model=
"baseInfo.agent_username"
placeholder=
"请输入业务经办员工代码"
>
-->
<div
slot=
"content"
class=
"add-people"
><input
v-model=
"baseInfo.agent_username"
><img
src=
"@/assets/contractCreate/add.png"
@
click=
"inputNum=true"
></div>
<!-- -->
</item>
<!--
<item
v-if=
"bp_type_flag"
>
<div
slot=
"name"
class=
"required"
>
{{
typeName
}}
</div>
<input
v-if=
"bpClass_flag"
slot=
"content"
:placeholder=
"type"
v-model=
"baseInfo.agent_username"
>
>
-->
<!--
<input
v-if=
"!bpClass_flag"
slot=
"content"
:placeholder=
"type"
v-model=
"baseInfo.business_license_num"
>
-->
</item>
<button
v-if=
"isAddNewType"
class=
"type-save"
@
click=
"addNewRole"
>
新增角色
</button>
...
...
@@ -418,20 +424,32 @@
<!--
<tab-button
class=
"put"
@
click
.
native=
"handSubmit"
>
提交
</tab-button>
-->
<tab-button
class=
"save"
@
click
.
native=
"verified(false)"
>
下一步
</tab-button>
</bottom-tab>
<InputNum
v-show=
"inputNum"
ref=
"inputtNum"
@
roleCancle=
"roleCancle"
@
roleConfirm=
"roleConfirm"
/>
</h-view>
</
template
>
<
script
>
import
InputNum
from
'../input-num'
export
default
{
name
:
'Enterprise'
,
components
:
{
InputNum
,
},
data
()
{
return
{
bp_id
:
''
,
flag
:
true
,
// 显示未授权框
bpClass
:
''
,
from
:
false
,
inputNum
:
false
,
// 填写业务经办
isApproved
:
false
,
// 审批通过为true
isAddNewType
:
false
,
hasPeople
:
false
,
// 是否有第二角色
isAGENT
:
this
.
$route
.
params
.
isAGENT
,
// 是否为经销商
isMultiRole
:
this
.
$route
.
params
.
isMultiRole
,
// 担保人/承租人为true
img_url
:
{},
...
...
@@ -556,7 +574,7 @@ export default {
// 监听客户类型
'baseInfo.bp_type_n'
()
{
let
vm
=
this
if
(
vm
.
baseInfo
.
bp_type
===
'TENANT'
||
vm
.
baseInfo
.
bp_type
===
'GUTA'
)
{
if
(
vm
.
baseInfo
.
bp_type
===
'TENANT'
||
vm
.
baseInfo
.
bp_type
===
'GUTA'
||
vm
.
hasPeople
)
{
vm
.
type
=
'请输入业务经办员工代码'
vm
.
typeName
=
'业务经办人'
vm
.
bp_type_flag
=
true
...
...
@@ -593,6 +611,7 @@ export default {
id_card_date_from
:
''
,
// 法定代表人身份证有效期从
id_card_date_to
:
''
,
// 法定代表人身份证有效期到
}
vm
.
hasPeople
=
false
if
(
vm
.
$route
.
params
.
status
===
'APPROVED'
)
{
vm
.
isApproved
=
true
window
.
localStorage
.
setItem
(
'isApproved'
,
vm
.
isApproved
)
...
...
@@ -689,6 +708,7 @@ export default {
vm
.
upload_list
=
[]
// 上传图片列表
vm
.
dowload_list
=
[]
// 下载图片列表
vm
.
hasPeople
=
false
vm
.
idCardFrontEditFlag
=
false
// 身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm
.
idCardBackEditFlag
=
false
// 身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm
.
authidCardFrontEditFlag
=
false
// 授权人身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
...
...
@@ -752,6 +772,17 @@ export default {
next()
}, */
methods
:
{
roleCancle
()
{
this
.
inputNum
=
false
},
roleConfirm
(
e
)
{
if
(
this
.
baseInfo
.
agent_username
.
indexOf
(
e
)
!==
-
1
)
{
hlsPopup
.
showLongCenter
(
'您已添加了该业务经办'
)
}
else
{
this
.
baseInfo
.
agent_username
=
this
.
baseInfo
.
agent_username
+
`,
${
e
}
`
}
this
.
inputNum
=
false
},
async
getMultipleRole
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'bp_role_query'
...
...
@@ -788,7 +819,7 @@ export default {
}
let
res
=
await
vm
.
hlsHttp
.
post
(
url
,
param
)
if
(
res
.
result
===
'S'
)
{
// vm.hasMultiRo
le = true
vm
.
hasPeop
le
=
true
return
true
}
else
{
vm
.
hasMultiRole
=
false
...
...
@@ -902,35 +933,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
}
window
.
localStorage
.
setItem
(
'business_num'
,
business_num
)
let
url
=
process
.
env
.
basePath
+
'bp_bind_check'
let
param
=
{
'master'
:
{
bp_class
:
'ORG'
,
bp_type
:
vm
.
baseInfo
.
bp_type
,
business_num
:
business_num
,
// var business_num = ''
// if (vm.baseInfo.bp_type === 'TENANT' || vm.baseInfo.bp_type === 'GUTA') {
// business_num = vm.baseInfo.agent_username
// }
// window.localStorage.setItem('business_num', business_num)
// let url = process.env.basePath + 'bp_bind_check'
// let param = {
// 'master': {
// bp_class: 'ORG',
// 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
:
'Invoice'
,
params
:
{
bp_id
:
vm
.
bp_id
,
organization_code
:
vm
.
baseInfo
.
organization_code
,
from
:
vm
.
from
,
bp_name
:
vm
.
baseInfo
.
bp_name
,
},
}
vm
.
hlsPopup
.
showLoading
(
'正在校验数据有效性'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
$router
.
push
({
name
:
'Invoice'
,
params
:
{
bp_id
:
vm
.
bp_id
,
organization_code
:
vm
.
baseInfo
.
organization_code
,
from
:
vm
.
from
,
bp_name
:
vm
.
baseInfo
.
bp_name
,
},
})
}
else
{
hlsPopup
.
showError
(
res
.
message
)
}
// })
// } else {
// hlsPopup.showError(res.message)
// }
})
},
// 校验手机号
...
...
@@ -1948,7 +1979,14 @@ export default {
color: #666;
// padding-top:16px;
}
.add-people{
display: flex;
justify-content: start;
img{
width:20px;
margin-left:10px;
}
}
.type-save {
color: #fff;
width: 80px;
...
...
src/pages/userBindNew/org/enclosure.vue
View file @
fe7cd829
...
...
@@ -473,9 +473,9 @@ export default {
vm
.
isApproved
=
window
.
localStorage
.
isApproved
vm
.
bp_id
=
vm
.
$route
.
params
.
bp_id
vm
.
loadItemList
()
vm
.
houseQuery
()
vm
.
carQuery
()
vm
.
propertyQuery
()
// 不动产权证查询
//
vm.houseQuery()
//
vm.carQuery()
//
vm.propertyQuery() // 不动产权证查询
}
else
if
(
from
.
name
===
'Invoice'
&&
window
.
localStorage
.
from
===
'false'
)
{
vm
.
carFlag
=
false
,
// 行驶证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
houseFlag
=
false
,
// 房产证查看标识,为false则用查询出来的,为true则用拍照出来的
...
...
@@ -573,60 +573,69 @@ export default {
}
},
// 房产证信息查询
houseQuery
()
{
async
houseQuery
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'bp_house_info_query'
let
flag
=
await
vm
.
carQuery
()
let
param
=
{
bp_id
:
vm
.
bp_id
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
flag
)
{
// hlsPopup.showLoading('请稍候')
let
res
=
await
vm
.
$post
(
url
,
param
)
// vm.hlsPopup.hideLoading()
if
(
res
.
result
===
'S'
)
{
Object
.
assign
(
vm
.
hauseInfo
,
res
.
info
)
// vm.hauseInfo = res.info
return
true
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
return
false
}
}
)
}
},
// 行驶证信息查询
carQuery
()
{
async
carQuery
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'bp_vehicleLicense_query'
let
flag
=
await
vm
.
propertyQuery
()
let
param
=
{
bp_id
:
vm
.
bp_id
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
// hlsPopup.showLoading('请稍候')
if
(
flag
)
{
let
res
=
await
vm
.
$post
(
url
,
param
)
// vm.hlsPopup.hideLoading()
console
.
log
(
'行驶证信息查询'
,
res
)
if
(
res
.
result
===
'S'
)
{
Object
.
assign
(
vm
.
carInfo
,
res
.
info
)
// vm.carInfo = res.info
return
true
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
return
false
}
}
)
}
},
// 不动产权证查询
propertyQuery
()
{
async
propertyQuery
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'bp_real_estate_query'
let
param
=
{
bp_id
:
vm
.
bp_id
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
console
.
log
(
'不动产权证查询'
,
res
)
if
(
res
.
result
===
'S'
)
{
Object
.
assign
(
vm
.
propertyInfo
,
res
.
info
)
// vm.propertyInfo = res.info
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
let
res
=
await
vm
.
$post
(
url
,
param
)
// vm.hlsPopup.hideLoading()
console
.
log
(
'不动产权证查询'
,
res
)
if
(
res
.
result
===
'S'
)
{
Object
.
assign
(
vm
.
propertyInfo
,
res
.
info
)
return
true
// vm.propertyInfo = res.info
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
return
false
}
},
// 行驶证信息保存
async
saveCarInfo
()
{
...
...
@@ -910,9 +919,10 @@ export default {
vm
.
propertyInfo
.
right_others
=
result
.
right_others
.
word
})
},
loadItemList
()
{
async
loadItemList
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'prj_cdd_check_list'
let
flag
=
await
vm
.
houseQuery
()
let
bpId
=
vm
.
bp_id
if
(
bpId
===
'undefined'
)
{
bpId
=
null
...
...
@@ -924,33 +934,36 @@ export default {
'tab_group'
:
window
.
localStorage
.
authFlag
?
'HLS_ORG_NAUTH'
:
'HLS_ORG_AUTH'
,
},
}
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
if
(
res
.
result
===
'S'
)
{
vm
.
cddItemList
=
[]
var
listTemp
=
[...
res
.
lists
]
listTemp
.
forEach
(
item
=>
{
switch
(
item
.
cdd_item
)
{
case
'HOUSE_CARD'
:
// 房产证
vm
.
house_id
=
item
.
check_id
break
case
'CAR_CARD'
:
// 行驶证
vm
.
car_id
=
item
.
check_id
break
case
'REAL_EST_CERTIFICATE'
:
// 不动产
vm
.
property_id
=
item
.
check_id
break
default
:
break
}
})
vm
.
cddItemList
=
res
.
lists
.
filter
(
item
=>
{
return
item
.
cdd_item
===
'HOUSE_CARD'
||
item
.
cdd_item
===
'CAR_CARD'
||
item
.
cdd_item
===
'ASSETS_CARD'
||
item
.
cdd_item
===
'REAL_EST_CERTIFICATE'
})
// 查询图片
console
.
log
(
'cddItemList.........'
,
vm
.
cddItemList
)
vm
.
cddItemList
.
forEach
((
item
,
index
)
=>
{
vm
.
load_picture
(
item
.
check_id
,
index
,
item
.
cdd_item
)
})
}
})
if
(
flag
)
{
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
cddItemList
=
[]
var
listTemp
=
[...
res
.
lists
]
listTemp
.
forEach
(
item
=>
{
switch
(
item
.
cdd_item
)
{
case
'HOUSE_CARD'
:
// 房产证
vm
.
house_id
=
item
.
check_id
break
case
'CAR_CARD'
:
// 行驶证
vm
.
car_id
=
item
.
check_id
break
case
'REAL_EST_CERTIFICATE'
:
// 不动产
vm
.
property_id
=
item
.
check_id
break
default
:
break
}
})
vm
.
cddItemList
=
res
.
lists
.
filter
(
item
=>
{
return
item
.
cdd_item
===
'HOUSE_CARD'
||
item
.
cdd_item
===
'CAR_CARD'
||
item
.
cdd_item
===
'ASSETS_CARD'
||
item
.
cdd_item
===
'REAL_EST_CERTIFICATE'
})
// 查询图片
console
.
log
(
'cddItemList.........'
,
vm
.
cddItemList
)
vm
.
cddItemList
.
forEach
((
item
,
index
)
=>
{
vm
.
load_picture
(
item
.
check_id
,
index
,
item
.
cdd_item
)
})
}
})
}
},
load_picture
(
check_id
,
index
,
cdd_item
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment