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
81099525
Commit
81099525
authored
Jun 05, 2023
by
郑娟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
B系列接口新增字段
parent
ac8bf765
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
2177 additions
and
1010 deletions
+2177
-1010
AttachmentInfo.vue
src/pages/customerAccessApply/components/AttachmentInfo.vue
+45
-21
BaseInfoNP.vue
src/pages/customerAccessApply/components/BaseInfoNP.vue
+85
-0
BaseInfoOrg.vue
src/pages/customerAccessApply/components/BaseInfoOrg.vue
+89
-5
customerAccess-detail.vue
src/pages/customerAccessApply/customerAccess-detail.vue
+0
-14
Appendix.vue
src/pages/financingApply/components/Appendix.vue
+103
-43
Lessee.vue
src/pages/financingApply/components/Lessee.vue
+2
-0
Plan.vue
src/pages/financingApply/components/Plan.vue
+182
-47
financingApply-detail.vue
src/pages/financingApply/financingApply-detail.vue
+40
-37
accessory-info.vue
src/pages/userBindNew/np/accessory-info.vue
+426
-342
base-info.vue
src/pages/userBindNew/np/base-info.vue
+224
-15
baseInfo.vue
src/pages/userBindNew/org/baseInfo.vue
+340
-10
enclosure.vue
src/pages/userBindNew/org/enclosure.vue
+641
-476
No files found.
src/pages/customerAccessApply/components/AttachmentInfo.vue
View file @
81099525
...
...
@@ -2,44 +2,67 @@
<list-item
:item-height=
"44"
>
<div>
<div
slot=
"name"
class=
"section-title"
style=
""
>
车辆行驶证
</div>
<item
v-for=
"(ele, i) of driving_permit"
:key=
"ele.title"
>
<div
slot=
"name"
class=
"font-color"
>
{{
ele
.
title
}}
</div>
<span
v-if=
"ele.type === 'date'"
slot=
"content"
>
{{
car
[
ele
.
prop
]
|
dateFormat
}}
</span>
<span
v-else-if=
"ele.type === 'currency'"
slot=
"content"
>
{{
car
[
ele
.
prop
]
|
currency
}}
</span>
<span
v-else-if=
"ele.type === 'bool'"
slot=
"content"
>
{{
car
[
ele
.
prop
]
===
'Y'
?
'是'
:
'否'
}}
</span>
<span
v-else
slot=
"content"
>
{{
car
[
ele
.
prop
]
}}
</span>
</item>
<Collapse
v-model=
"activeNames_c"
>
<CollapseItem
v-for=
"(item,index) of car"
:key=
"'c'+index"
:name=
"'c'+index"
:title=
"'车辆行驶证'+(index+1)"
>
<item
v-for=
"(ele, i) of driving_permit"
:key=
"ele.title"
>
<div
slot=
"name"
class=
"font-color"
>
{{
ele
.
title
}}
</div>
<span
v-if=
"ele.type === 'date'"
slot=
"content"
>
{{
item
[
ele
.
prop
]
|
dateFormat
}}
</span>
<span
v-else-if=
"ele.type === 'currency'"
slot=
"content"
>
{{
item
[
ele
.
prop
]
|
currency
}}
</span>
<span
v-else-if=
"ele.type === 'bool'"
slot=
"content"
>
{{
item
[
ele
.
prop
]
===
'Y'
?
'是'
:
'否'
}}
</span>
<span
v-else
slot=
"content"
>
{{
item
[
ele
.
prop
]
}}
</span>
</item>
</CollapseItem>
</Collapse>
</div>
<div>
<div
slot=
"name"
class=
"section-title"
style=
""
>
房产证
</div>
<item
v-for=
"(ele, i) of house_card"
:key=
"ele.title"
>
<div
slot=
"name"
class=
"font-color"
>
{{
ele
.
title
}}
</div>
<span
v-if=
"ele.type === 'date'"
slot=
"content"
>
{{
house
[
ele
.
prop
]
|
dateFormat
}}
</span>
<span
v-else-if=
"ele.type === 'currency'"
slot=
"content"
>
{{
house
[
ele
.
prop
]
|
currency
}}
</span>
<span
v-else-if=
"ele.type === 'bool'"
slot=
"content"
>
{{
house
[
ele
.
prop
]
===
'Y'
?
'是'
:
'否'
}}
</span>
<span
v-else
slot=
"content"
>
{{
house
[
ele
.
prop
]
}}
</span>
</item>
<Collapse
v-model=
"activeNames_h"
>
<CollapseItem
v-for=
"(item,index) of house"
:key=
"'h'+index"
:name=
"'h'+index"
:title=
"'房产证'+(index+1)"
>
<item
v-for=
"(ele, i) of house_card"
:key=
"ele.title"
>
<div
slot=
"name"
class=
"font-color"
>
{{
ele
.
title
}}
</div>
<span
v-if=
"ele.type === 'date'"
slot=
"content"
>
{{
item
[
ele
.
prop
]
|
dateFormat
}}
</span>
<span
v-else-if=
"ele.type === 'currency'"
slot=
"content"
>
{{
item
[
ele
.
prop
]
|
currency
}}
</span>
<span
v-else-if=
"ele.type === 'bool'"
slot=
"content"
>
{{
item
[
ele
.
prop
]
===
'Y'
?
'是'
:
'否'
}}
</span>
<span
v-else
slot=
"content"
>
{{
item
[
ele
.
prop
]
}}
</span>
</item>
</CollapseItem>
</Collapse>
</div>
<div>
<div
slot=
"name"
class=
"section-title"
style=
""
>
不动产权证
</div>
<item
v-for=
"(ele, i) of real_est"
:key=
"ele.title"
>
<div
slot=
"name"
class=
"font-color"
>
{{
ele
.
title
}}
</div>
<span
v-if=
"ele.type === 'date'"
slot=
"content"
>
{{
real
[
ele
.
prop
]
|
dateFormat
}}
</span>
<span
v-else-if=
"ele.type === 'currency'"
slot=
"content"
>
{{
real
[
ele
.
prop
]
|
currency
}}
</span>
<span
v-else-if=
"ele.type === 'bool'"
slot=
"content"
>
{{
real
[
ele
.
prop
]
===
'Y'
?
'是'
:
'否'
}}
</span>
<span
v-else
slot=
"content"
>
{{
real
[
ele
.
prop
]
}}
</span>
</item>
<Collapse
v-model=
"activeNames_p"
>
<CollapseItem
v-for=
"(item,index) of real"
:key=
"'p'+index"
:name=
"'p'+index"
:title=
"'不动产权证'+(index+1)"
>
<item
v-for=
"(ele, i) of real_est"
:key=
"ele.title"
>
<div
slot=
"name"
class=
"font-color"
>
{{
ele
.
title
}}
</div>
<span
v-if=
"ele.type === 'date'"
slot=
"content"
>
{{
real
[
ele
.
prop
]
|
dateFormat
}}
</span>
<span
v-else-if=
"ele.type === 'currency'"
slot=
"content"
>
{{
item
[
ele
.
prop
]
|
currency
}}
</span>
<span
v-else-if=
"ele.type === 'bool'"
slot=
"content"
>
{{
item
[
ele
.
prop
]
===
'Y'
?
'是'
:
'否'
}}
</span>
<span
v-else
slot=
"content"
>
{{
item
[
ele
.
prop
]
}}
</span>
</item>
</CollapseItem>
</Collapse>
</div>
</list-item>
</
template
>
<
script
>
import
{
Collapse
,
CollapseItem
}
from
'vant'
import
'vant/lib/collapse/style'
import
'vant/lib/collapse-item/style'
export
default
{
components
:
{
Collapse
,
CollapseItem
},
props
:
[
'car'
,
'house'
,
'real'
],
data
()
{
return
{
activeNames_h
:
[
0
],
// 折叠面板 房产证
activeNames_p
:
[
0
],
// 折叠面板 不动产权
activeNames_c
:
[
0
],
// 折叠面板 车辆行驶证
}
},
computed
:
{
...
...
@@ -81,6 +104,7 @@ export default {
[
'号牌号码'
,
'plate_number'
,
'text'
],
[
'注册日期'
,
'regist_date'
,
'date'
],
[
'数量'
,
'words_result_num'
,
'text'
],
// ['驾照类型', 'driving_license_type_n', 'text'],
]
return
this
.
factory
(
driving_permit
)
},
...
...
src/pages/customerAccessApply/components/BaseInfoNP.vue
View file @
81099525
...
...
@@ -10,6 +10,10 @@
<span
v-else-if=
"ele.type === 'bool'"
slot=
"content"
>
{{
baseInfo
[
ele
.
prop
]
===
'Y'
?
'是'
:
'否'
}}
</span>
<span
v-else
slot=
"content"
>
{{
baseInfo
[
ele
.
prop
]
}}
</span>
</item>
<Field
v-model=
"baseInfo.customer_nature_n"
:required=
"true"
:is-link=
"true"
input-align=
"right"
label=
"客户性质选择"
@
click=
"showPicker()"
placeholder=
"请选择"
/>
</div>
<div>
...
...
@@ -32,14 +36,30 @@
<span
v-else
slot=
"content"
>
{{
baseInfo
[
ele
.
prop
]
}}
</span>
</item>
</div>
<div
class=
"foot-bottom"
>
<button
class=
"success"
@
click=
"save"
>
保存
</button>
</div>
<ActionSheet
v-model=
"picker_show"
:actions=
"actions"
:close-on-click-action=
"true"
:closeable=
"false"
title=
"客户性质选择"
@
select=
"onSelect"
/>
</list-item>
</
template
>
<
script
>
import
{
Field
,
ActionSheet
}
from
'vant'
import
'vant/lib/field/style'
import
'vant/lib/action-sheet/style'
export
default
{
components
:
{
Field
,
ActionSheet
,
},
props
:
[
'baseInfo'
],
data
()
{
return
{
actions
:
[],
// 下拉框
customerType
:
[],
// 客户性质下拉框
picker_show
:
false
,
}
},
computed
:
{
...
...
@@ -53,7 +73,65 @@ export default {
return
this
.
createForm_quality
()
},
},
created
()
{
this
.
getDropBox
()
},
methods
:
{
onSelect
(
value
)
{
let
val
=
value
.
name
this
.
$set
(
this
.
baseInfo
,
'customer_nature_n'
,
val
)
let
arr
=
this
.
customerType
.
filter
(
item
=>
item
.
code_name
===
val
)
this
.
$set
(
this
.
baseInfo
,
'customer_nature'
,
arr
[
0
].
code
)
},
showPicker
()
{
this
.
actions
=
this
.
customerType
.
map
(
item
=>
({
name
:
item
.
code_name
}))
this
.
picker_show
=
true
},
// 下拉框数据获取
async
getDropBox
()
{
let
url
=
process
.
env
.
basePath
+
'app_get_syscode'
let
param
=
{
'CUSTOMER_NATURE'
:
'CUSTOMER_NATURE'
,
}
// hlsPopup.showLoading('请稍候')
let
res
=
await
this
.
$post
(
url
,
param
)
// this.hlsPopup.hideLoading()
if
(
res
.
return_status
===
'S'
)
{
this
.
customerType
=
res
.
CUSTOMER_NATURE
}
},
async
save
()
{
let
flag
=
false
let
obj
=
{
'bp_id'
:
this
.
baseInfo
[
'bp_id'
],
}
obj
[
'customer_nature_n'
]
=
this
.
baseInfo
[
'customer_nature_n'
]
obj
[
'customer_nature'
]
=
this
.
baseInfo
[
'customer_nature'
]
Object
.
keys
(
obj
).
map
(
key
=>
{
if
(
obj
[
key
]
===
undefined
||
obj
[
key
]
===
null
||
obj
[
key
]
===
''
)
{
flag
=
true
}
})
console
.
log
(
obj
)
if
(
flag
)
{
hlsPopup
.
showLongCenter
(
'请将必填字段填写完整'
)
return
}
let
url
=
process
.
env
.
basePath
+
'bp_access_info_save'
let
param
=
{
'master'
:
obj
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
let
res
=
await
this
.
$post
(
url
,
param
)
this
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
hlsPopup
.
showLongCenter
(
'保存成功'
)
}
else
{
hlsPopup
.
showLongCenter
(
'保存失败'
)
}
},
factory
(
arr
)
{
let
outArr
=
[]
if
(
arr
.
length
)
{
...
...
@@ -88,6 +166,8 @@ export default {
[
'户籍地址'
,
'address_on_resident_booklit'
,
'text'
],
[
'联系地址'
,
'living_address'
,
'text'
],
[
'资产'
,
'capital'
,
'text'
],
[
'驾照类型'
,
'driving_license_type_n'
,
'text'
],
]
let
baseInfo_B
=
[
// 经销商/主机厂/办事处
...
...
@@ -95,6 +175,8 @@ export default {
[
'学历'
,
'academic_background_n'
,
'text'
],
[
'婚姻状况'
,
'marital_status_n'
,
'text'
],
[
'身份证'
,
'id_card_no'
,
'text'
],
[
'年份'
,
'id_card_no_yy'
,
'text'
],
[
'月份'
,
'id_card_no_mm'
,
'text'
],
[
'证件有效期从'
,
'id_card_date_from'
,
'date'
],
[
'证件有效期到'
,
'id_card_date_to'
,
'date'
],
[
'业务办理地(省)'
,
'province_n'
,
'text'
],
...
...
@@ -145,4 +227,7 @@ export default {
line-height: 0.5rem;
margin-top: 12px;
}
/deep/ #contract-details .van-cell{
background-color: white;
}
</
style
>
src/pages/customerAccessApply/components/BaseInfoOrg.vue
View file @
81099525
...
...
@@ -11,6 +11,10 @@
<Checkbox
v-else-if=
"ele.type === 'checkbox'"
:value=
"baseInfo[ele.prop]==='Y'"
shape=
"square"
/>
<span
v-else
slot=
"content"
>
{{
baseInfo
[
ele
.
prop
]
}}
</span>
</item>
<Field
v-model=
"baseInfo.customer_nature_n"
:required=
"true"
:is-link=
"true"
input-align=
"right"
label=
"客户性质选择"
@
click=
"showPicker()"
placeholder=
"请选择"
/>
</div>
<div
v-if=
"['FACTORY'].indexOf(baseInfo.bp_type)===-1"
class=
"baseinfo-supp"
>
...
...
@@ -33,6 +37,17 @@
<span
v-else
slot=
"content"
>
{{
baseInfo
[
ele
.
prop
]
}}
</span>
</item>
</div>
<div>
<div
slot=
"name"
class=
"section-title"
style=
""
>
实际控制人信息
</div>
<item
v-for=
"(ele, i) of ctrlInfo"
:key=
"ele.title"
>
<div
slot=
"name"
class=
"font-color"
>
{{
ele
.
title
}}
</div>
<span
v-if=
"ele.type === 'date'"
slot=
"content"
>
{{
baseInfo
[
ele
.
prop
]
|
dateFormat
}}
</span>
<span
v-else-if=
"ele.type === 'currency'"
slot=
"content"
>
{{
baseInfo
[
ele
.
prop
]
|
currency
}}
</span>
<Checkbox
v-else-if=
"ele.type === 'checkbox'"
:value=
"baseInfo[ele.prop]==='Y'"
shape=
"square"
/>
<span
v-else-if=
"ele.type === 'bool'"
slot=
"content"
>
{{
baseInfo
[
ele
.
prop
]
===
'Y'
?
'是'
:
'否'
}}
</span>
<span
v-else
slot=
"content"
>
{{
baseInfo
[
ele
.
prop
]
}}
</span>
</item>
</div>
<div
v-if=
"baseInfo.auth_flag==='Y'"
>
<div
slot=
"name"
class=
"section-title"
style=
""
>
法人授权信息
</div>
<item
v-for=
"(ele, i) of authInfo"
:key=
"ele.title"
>
...
...
@@ -58,22 +73,30 @@
<button
class=
"success"
style=
" border: 1px solid #e6b500;background-color: white;color: #e6b500;"
@
click=
"signAuth"
>
签署认证
</button>
<button
class=
"success"
@
click=
"save"
>
保存
</button>
</div>
<ActionSheet
v-model=
"picker_show"
:actions=
"actions"
:close-on-click-action=
"true"
:closeable=
"false"
title=
"客户性质选择"
@
select=
"onSelect"
/>
</list-item>
</
template
>
<
script
>
import
{
Checkbox
,
Field
}
from
'vant'
import
{
Checkbox
,
Field
,
ActionSheet
}
from
'vant'
import
'vant/lib/checkbox/style'
import
'vant/lib/field/style'
import
'vant/lib/action-sheet/style'
export
default
{
components
:
{
Checkbox
,
Field
,
ActionSheet
,
},
props
:
[
'baseInfo'
],
data
()
{
return
{
actions
:
[],
// 下拉框
customerType
:
[],
// 客户性质下拉框
picker_show
:
false
,
}
},
computed
:
{
...
...
@@ -86,6 +109,9 @@ export default {
orgInfo
()
{
return
this
.
createFormOrg
()
},
ctrlInfo
()
{
return
this
.
createFormCtrl
()
},
authInfo
()
{
return
this
.
createFormAuth
()
},
...
...
@@ -93,7 +119,33 @@ export default {
return
this
.
createForm_quality
()
},
},
created
()
{
this
.
getDropBox
()
},
methods
:
{
onSelect
(
value
)
{
let
val
=
value
.
name
this
.
$set
(
this
.
baseInfo
,
'customer_nature_n'
,
val
)
let
arr
=
this
.
customerType
.
filter
(
item
=>
item
.
code_name
===
val
)
this
.
$set
(
this
.
baseInfo
,
'customer_nature'
,
arr
[
0
].
code
)
},
showPicker
()
{
this
.
actions
=
this
.
customerType
.
map
(
item
=>
({
name
:
item
.
code_name
}))
this
.
picker_show
=
true
},
// 下拉框数据获取
async
getDropBox
()
{
let
url
=
process
.
env
.
basePath
+
'app_get_syscode'
let
param
=
{
'CUSTOMER_NATURE'
:
'CUSTOMER_NATURE'
,
}
// hlsPopup.showLoading('请稍候')
let
res
=
await
this
.
$post
(
url
,
param
)
// this.hlsPopup.hideLoading()
if
(
res
.
return_status
===
'S'
)
{
this
.
customerType
=
res
.
CUSTOMER_NATURE
}
},
async
signAuth
()
{
let
vm
=
this
// console.log('qianshu renzhneg ', this.baseInfo)
...
...
@@ -126,12 +178,15 @@ export default {
this
.
baseInfo_B
.
forEach
(
item
=>
{
obj
[
item
.
prop
]
=
this
.
baseInfo
[
item
.
prop
]
})
obj
[
'customer_nature_n'
]
=
this
.
baseInfo
[
'customer_nature_n'
]
obj
[
'customer_nature'
]
=
this
.
baseInfo
[
'customer_nature'
]
Object
.
keys
(
obj
).
map
(
key
=>
{
if
(
obj
[
key
]
===
undefined
||
obj
[
key
]
===
null
||
obj
[
key
]
===
''
)
{
flag
=
true
}
})
console
.
log
(
obj
)
if
(
flag
)
{
hlsPopup
.
showLongCenter
(
'请将必填字段填写完整'
)
return
...
...
@@ -151,7 +206,6 @@ export default {
let
param
=
{
'master'
:
obj
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
let
res
=
await
this
.
$post
(
url
,
param
)
this
.
hlsPopup
.
hideLoading
()
...
...
@@ -199,6 +253,9 @@ export default {
[
'公司名称'
,
'bp_name'
,
'text'
],
[
'企业类型'
,
'enterprise_type'
,
'text'
],
[
'注册地址'
,
'registered_place'
,
'text'
],
[
'营业期限从'
,
'business_term_from'
,
'text'
],
[
'营业期限到'
,
'business_term_to'
,
'text'
],
[
'营业期限'
,
'business_term_type_n'
,
'text'
],
[
'经营地址'
,
'business_address'
,
'text'
],
[
'法定代表人'
,
'legal_person'
,
'text'
],
[
'纳税人识别号'
,
'organization_code'
,
'text'
],
...
...
@@ -215,6 +272,9 @@ export default {
[
'公司名称'
,
'bp_name'
,
'text'
],
[
'企业类型'
,
'enterprise_type'
,
'text'
],
[
'注册地址'
,
'registered_place'
,
'text'
],
[
'营业期限从'
,
'business_term_from'
,
'text'
],
[
'营业期限到'
,
'business_term_to'
,
'text'
],
[
'营业期限'
,
'business_term_type_n'
,
'text'
],
[
'经营地址'
,
'business_address'
,
'text'
],
[
'纳税人识别号'
,
'organization_code'
,
'text'
],
[
'注册资本(万元)'
,
'registered_capital'
,
'text'
],
...
...
@@ -226,14 +286,24 @@ export default {
[
'logo上传的超链接'
,
'logo_upload'
,
'text'
],
[
'是否授权'
,
'auth_flag'
,
'checkbox'
],
]
let
info
=
[]
let
bp_type
=
this
.
baseInfo
.
bp_type
if
([
'TENANT'
,
'GUTA'
].
indexOf
(
bp_type
)
!==
-
1
)
{
return
this
.
factory
(
baseInfo_A2
)
info
=
baseInfo_A2
}
else
if
(
bp_type
===
'AGENT'
)
{
return
this
.
factory
(
baseInfo_A
)
info
=
baseInfo_A
}
else
{
return
this
.
factory
(
baseInfo_A3
)
info
=
baseInfo_A3
}
if
(
this
.
baseInfo
.
business_term_type_n
!==
'长期'
)
{
info
.
push
(
[
'营业期限从'
,
'business_term_from'
,
'date'
],
[
'营业期限到'
,
'business_term_to'
,
'date'
],
)
}
else
{
info
.
push
([
'营业期限'
,
'business_term_type_n'
,
'text'
])
}
return
this
.
factory
(
info
)
},
createFormB
()
{
let
baseInfo_B
=
[
// 基本信息补录 经销商
...
...
@@ -258,6 +328,17 @@ export default {
]
return
this
.
factory
(
orgInfo
)
},
createFormCtrl
()
{
let
orgInfo
=
[
// 实际控制人信息
[
'姓名'
,
'bp_control_name'
,
'text'
],
[
'身份证号'
,
'id_card_no_c'
,
'text'
],
[
'证件有效期从'
,
'id_card_date_from_c'
,
'date'
],
[
'证件有效期到'
,
'id_card_date_to_c'
,
'date'
],
[
'手机号'
,
'cell_phone_c'
,
'text'
],
[
'联系地址'
,
'living_address_c'
,
'text'
],
]
return
this
.
factory
(
orgInfo
)
},
createFormAuth
()
{
let
authInfo
=
[
// 法人授权信息
[
'姓名'
,
'auth_person_name'
,
'text'
],
...
...
@@ -296,4 +377,7 @@ export default {
padding-left:5px
}
}
/deep/ #contract-details .van-cell{
background-color: white;
}
</
style
>
src/pages/customerAccessApply/customerAccess-detail.vue
View file @
81099525
...
...
@@ -104,7 +104,6 @@ export default {
historyData
:
[],
appendixData
:
[],
isTodo
:
true
,
isEditType
:
false
,
// 30节点可编辑合同类型、开票类型
}
},
beforeRouteEnter
(
to
,
from
,
next
)
{
...
...
@@ -122,7 +121,6 @@ export default {
vm
.
historyData
=
[]
vm
.
appendixData
=
[]
vm
.
isTodo
=
vm
.
$route
.
params
.
type
===
'todo'
vm
.
isEditType
=
false
// 30节点可编辑合同类型、开票类型
vm
.
getData
()
vm
.
getHistory
()
...
...
@@ -175,18 +173,6 @@ export default {
this
.
history_Coll
=
!
this
.
history_Coll
},
approv
(
action_type
)
{
if
(
this
.
isEditType
)
{
let
flag
=
false
this
.
planData
.
map
(
item
=>
{
if
(
!
item
.
repurchase_flag
&&
!
item
.
rent_invoice_type
)
{
flag
=
true
}
})
if
(
flag
)
{
hlsPopup
.
showLongCenter
(
'请将必填字段填写完整'
)
return
}
}
let
params
=
this
.
$route
.
params
let
param
=
{
master
:
{
...
...
src/pages/financingApply/components/Appendix.vue
View file @
81099525
<!-- 附件 -->
<
template
>
<div
style=
"width: 100%;"
>
<p
class=
"notice"
>
tips:点击上传目录即可上传,点击文件即可下载或预览。
</p>
<div
class=
"table-box"
>
<table
class=
"att_table"
>
<tr>
<th>
上传目录
</th>
<th>
附件
</th>
<th>
备注
</th>
</tr>
<tr
v-for=
"(item, index) of appendixData"
:key=
"item.check_id"
>
<td
@
click=
"chooseFile(item.check_id)"
>
{{
item
.
description
}}
</td>
<td>
<span
v-for=
"(attach, ai) in item.attachArr"
:key=
"attach.attachId"
@
click=
"previewOrDownload(attach)"
>
{{
attach
.
fileName
+
(
ai
===
item
.
attachArr
.
length
-
1
?
''
:
','
)
}}
</span>
</td>
<td>
{{
item
.
note
}}
</td>
</tr>
</table>
</div>
<Tabs
v-model=
"active"
color=
"#02459a"
>
<Tab
title=
"附件信息"
>
<p
class=
"notice"
>
tips:点击上传目录即可上传,点击文件即可下载或预览。
</p>
<div
class=
"table-box"
>
<table
class=
"att_table"
>
<tr>
<th>
上传目录
</th>
<th>
附件
</th>
<th>
备注
</th>
</tr>
<tr
v-for=
"(item, index) of attachFileArr"
:key=
"item.check_id"
>
<td
@
click=
"chooseFile(item.check_id)"
>
{{
item
.
description
}}
</td>
<td>
<span
v-for=
"(attach, ai) in item.attachArr"
:key=
"attach.attachId"
@
click=
"previewOrDownload(attach)"
>
{{
attach
.
fileName
+
(
ai
===
item
.
attachArr
.
length
-
1
?
''
:
','
)
}}
</span>
</td>
<td>
{{
item
.
note
}}
</td>
</tr>
</table>
</div>
</Tab>
<Tab
title=
"特批附件"
>
<p
class=
"notice"
>
tips:点击上传目录即可上传,点击文件即可下载或预览。
</p>
<div
class=
"table-box"
>
<table
class=
"att_table"
>
<tr>
<th>
上传目录
</th>
<th>
附件
</th>
<th>
备注
</th>
</tr>
<tr
v-for=
"(item, index) of spcialArr"
:key=
"item.check_id"
>
<td
@
click=
"chooseFile(item.check_id)"
>
{{
item
.
description
}}
</td>
<td>
<span
v-for=
"(attach, ai) in item.attachArr"
:key=
"attach.attachId"
@
click=
"previewOrDownload(attach)"
>
{{
attach
.
fileName
+
(
ai
===
item
.
attachArr
.
length
-
1
?
''
:
','
)
}}
</span>
</td>
<td>
{{
item
.
note
}}
</td>
</tr>
</table>
</div>
</Tab>
</Tabs>
</div>
</
template
>
<
script
>
import
{
Tab
,
Tabs
}
from
'vant'
import
'vant/lib/tab/style'
import
'vant/lib/tabs/style'
export
default
{
components
:
{
Tabs
,
Tab
},
props
:
[
'appendixData'
],
data
()
{
data
()
{
return
{
licenseImg
:
''
,
active
:
0
,
// tab索引值
attachFileArr
:
[],
// 附件信息
spcialArr
:
[],
// 特批附件
}
},
// watch:{
// appendixData(){
// console.log('mounted执行', this.appendixData );
// this.attachFileArr = this.appendixData.filter((item, index) => {
// if (item.cdd_item === 'SPCIAL_REPORT') {
// this.spcialArr.push(item)
// }
// return item.cdd_item !== 'SPCIAL_REPORT'
// })
// },
// active(n,o){
// console.log('xin',n,'jiu',o);
// }
// },
created
(){
this
.
attachFileArr
=
this
.
appendixData
.
filter
((
item
,
index
)
=>
{
if
(
item
.
cdd_item
===
'SPCIAL_REPORT'
)
{
this
.
spcialArr
.
push
(
item
)
}
return
item
.
cdd_item
!==
'SPCIAL_REPORT'
})
},
methods
:
{
previewOrDownload
(
attObj
)
{
getspcialArr
()
{
return
this
.
spcialArr
[
0
]
},
previewOrDownload
(
attObj
)
{
let
picUrl
=
`
${
process
.
env
.
filePath
}
attachment_id=
${
attObj
.
attachId
}
&access_token=
${
window
.
localStorage
.
access_token
}
`
if
(
/.png|.jpg$/
.
test
(
attObj
.
fileName
))
{
this
.
showBigPicture
(
picUrl
)
}
else
{
console
.
log
(
hlsUtil
.
convertImageUrl
(
picUrl
))
;
console
.
log
(
hlsUtil
.
convertImageUrl
(
picUrl
))
window
.
open
(
hlsUtil
.
convertImageUrl
(
picUrl
))
}
console
.
log
(
attObj
)
;
console
.
log
(
attObj
)
},
// 上传窗口
chooseFile
(
check_id
)
{
chooseFile
(
check_id
)
{
let
vm
=
this
hlsPopup
.
showActionSheet
({
titleText
:
'请选择照片'
,
...
...
@@ -59,7 +119,7 @@ export default {
},
})
},
openCamera
(
check_id
)
{
openCamera
(
check_id
)
{
let
vm
=
this
let
cameraoptions
=
{
quality
:
60
,
...
...
@@ -73,12 +133,12 @@ export default {
vm
.
licenseImg
=
hlsUtil
.
convertImageUrl
(
imgdata
)
let
list
=
[{
pkvalue
:
check_id
,
source_type
:
"PRJ_CDD_ITEM_CHECK"
,
source_type
:
'PRJ_CDD_ITEM_CHECK'
,
picture
:
''
,
filePath
:
imgdata
,
attachment_id
:
''
,
user_id
:
1
,
fileName
:
''
fileName
:
''
,
}]
vm
.
save_file
(
list
)
...
...
@@ -89,7 +149,7 @@ export default {
}
hlsUtil
.
openCamera
(
cameraoptions
,
success
,
error
)
},
takePicture
(
check_id
)
{
takePicture
(
check_id
)
{
let
vm
=
this
var
cameraoptions
=
{
quality
:
70
,
...
...
@@ -104,12 +164,12 @@ export default {
vm
.
licenseImg
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
])
let
list
=
[{
pkvalue
:
check_id
,
source_type
:
"PRJ_CDD_ITEM_CHECK"
,
source_type
:
'PRJ_CDD_ITEM_CHECK'
,
picture
:
''
,
filePath
:
imgUrl
[
0
],
attachment_id
:
''
,
user_id
:
1
,
fileName
:
''
fileName
:
''
,
}]
vm
.
save_file
(
list
)
...
...
@@ -122,9 +182,9 @@ export default {
},
// 图片保存
save_file
(
list
)
{
save_file
(
list
)
{
let
vm
=
this
let
upView
=
vm
.
debounce
(
function
()
{
vm
.
$emit
(
"upData"
)
},
1500
)
let
upView
=
vm
.
debounce
(
function
()
{
vm
.
$emit
(
'upData'
)
},
1500
)
if
(
list
.
length
)
{
// hlsPopup.showLoading('图片上传请稍候')
var
alreadyUploadNum
=
0
...
...
@@ -162,24 +222,24 @@ export default {
}
},
// 查看图片
showBigPicture
(
picUrl
)
{
showBigPicture
(
picUrl
)
{
let
vm
=
this
vm
.
hlsPopup
.
showBigPicture
({
imgUrl
:
picUrl
,
width
:
'100%'
,
})
vm
.
hlsPopup
.
showBigPicture
({
imgUrl
:
picUrl
,
width
:
'100%'
})
},
debounce
(
func
,
wait
)
{
let
timer
;
debounce
(
func
,
wait
)
{
let
timer
return
function
()
{
let
context
=
this
;
// 注意 this 指向
let
args
=
arguments
;
// arguments中存着e
let
context
=
this
// 注意 this 指向
let
args
=
arguments
// arguments中存着e
if
(
timer
)
clearTimeout
(
timer
)
;
if
(
timer
)
clearTimeout
(
timer
)
timer
=
setTimeout
(()
=>
{
func
.
apply
(
this
,
args
)
},
wait
)
}
}
}
}
,
}
,
}
</
script
>
...
...
@@ -221,4 +281,4 @@ export default {
}
}
</
style
>
\ No newline at end of file
</
style
>
src/pages/financingApply/components/Lessee.vue
View file @
81099525
...
...
@@ -55,6 +55,7 @@ export default {
[
'工程合同'
,
'engineer_con_n'
,
'text'
],
[
'农行代扣'
,
'abc_deduction_flag'
,
'bool'
],
[
'是否授权'
,
'auth_flag'
,
'bool'
],
[
'管家卡'
,
'bank_card_number'
,
'text'
],
[
'合同补充条款'
,
'contract_supplementary_file'
,
'text'
],
]
...
...
@@ -76,6 +77,7 @@ export default {
[
'配偶联系地址'
,
'address_sp'
,
'text'
],
[
'农行代扣'
,
'abc_deduction_flag'
,
'bool'
],
[
'是否抵押'
,
'mortgega_flag'
,
'bool'
],
[
'管家卡'
,
'bank_card_number'
,
'text'
],
[
'合同补充条款'
,
'contract_supplementary_file'
,
'text'
],
]
let
nowForm
=
this
.
lesseeData
.
bp_class
===
'NP'
?
personalFormArr
:
corporationFormArr
...
...
src/pages/financingApply/components/Plan.vue
View file @
81099525
<!-- 商务方案 -->
<
template
>
<div>
<Collapse
v-
model=
"activeNames"
v-if=
"planData.length
"
>
<Collapse
v-
if=
"planData.length"
v-model=
"activeNames
"
>
<CollapseItem
v-for=
"(p, pi) of planData"
:title=
"p.product_plan_id_n"
:key=
"p.quotation_id"
:name=
"pi"
>
<list-item
:item-height=
"44"
>
<item
v-for=
"(ele, i) of formdata"
:key=
"ele.title"
>
<div
slot=
"name"
class=
"font-color"
>
{{
ele
.
title
}}
</div>
<span
slot=
"content"
v-if=
"ele.type == 'currency'
"
>
{{
currency
(
planData
[
pi
][
ele
.
prop
])
}}
</span>
<span
slot=
"content"
v-else-if=
"ele.type == 'rate'
"
>
{{
toPercent
(
planData
[
pi
][
ele
.
prop
])
}}
</span>
<span
slot=
"content"
v-else=
"ele.type == 'text'
"
>
{{
planData
[
pi
][
ele
.
prop
]
}}
</span>
<span
v-if=
"ele.type == 'currency'"
slot=
"content
"
>
{{
currency
(
planData
[
pi
][
ele
.
prop
])
}}
</span>
<span
v-else-if=
"ele.type == 'rate'"
slot=
"content
"
>
{{
toPercent
(
planData
[
pi
][
ele
.
prop
])
}}
</span>
<span
v-else
slot=
"content
"
>
{{
planData
[
pi
][
ele
.
prop
]
}}
</span>
</item>
</list-item>
<Cell
v-if=
"editFlag || showFlag"
:value=
"p.repurchase_flag_n"
:required=
"editFlag"
:is-link=
"editFlag"
title=
"合同类型"
placeholder=
"请选择"
@
click=
"showPicker(1,pi)"
/>
<Cell
v-if=
"editFlag || showFlag"
:value=
"p.rent_invoice_type_n"
:required=
"editFlag"
:is-link=
"editFlag"
title=
"开票类型"
placeholder=
"请选择"
@
click=
"showPicker(0,pi)"
/>
<div
v-if=
"editFlag || showFlag"
>
<Form
ref=
"myForm_30"
>
<Field
v-model=
"p.repurchase_flag_n"
:readonly=
"true"
:required=
"editFlag"
:is-link=
"editFlag"
:rules=
"[
{ required: editFlag,message:'请选择'}]" input-align="right"
label="合同标识" @click="showPicker('repurchase_flag',pi)"/>
<Field
v-model=
"p.rent_invoice_type_n"
:readonly=
"true"
:required=
"editFlag"
:is-link=
"editFlag"
:rules=
"[
{ required: editFlag,message:'请选择'}]" input-align="right"
label="开票类型" @click="showPicker('rent_invoice_type',pi)"/>
<!-- 主机厂是否担保 -->
<Field
v-model=
"p.factory_guarantees_flag_n"
:readonly=
"true"
:required=
"editFlag"
:is-link=
"editFlag"
:rules=
"[
{ required: editFlag,message:'请选择'}]" input-align="right"
label="主机厂是否担保" @click="showPicker('factory_guarantees_flag',pi)"/>
<!-- 合同标识 -->
<Field
v-model=
"p.business_type_new_n"
:readonly=
"true"
:required=
"editFlag"
:is-link=
"editFlag"
:rules=
"[
{ required: editFlag,message:'请选择'}]" input-align="right"
label="业务种类" @click="showPicker('business_type_new',pi)"/>
<!-- 租赁物分类 -->
<Field
v-model=
"p.lease_things_type_n"
:readonly=
"true"
:required=
"editFlag"
:is-link=
"editFlag"
:rules=
"[
{ required: editFlag,message:'请选择'}]" input-align="right"
label="租赁物分类" @click="showPicker('lease_things_type',pi)" />
<!-- 是否为经销商 -->
<Field
v-model=
"p.org_is_dealer_n"
:readonly=
"true"
:required=
"editFlag"
:is-link=
"editFlag"
:rules=
"[
{ required: editFlag,message:'请选择'}]" input-align="right"
label="是否为经销商" @click="showPicker('org_is_dealer',pi)"/>
<!-- 是否上牌 -->
<!--
<Field
v-model=
"p.register_flag_n"
:readonly=
"showFlag"
:required=
"editFlag"
:is-link=
"editFlag"
:rules=
"[
{ required: editFlag,message:'请选择'}]" input-align="right"
label="是否上牌" @click="showPicker('register_flag',pi)"/> -->
<!-- 是否挂靠 -->
<!--
<Field
v-model=
"p.associate_flag_n"
:readonly=
"showFlag"
:required=
"editFlag"
:is-link=
"editFlag"
:rules=
"[
{ required: editFlag,message:'请选择'}]" input-align="right"
label="是否挂靠" @click="showPicker('associate_flag',pi)" /> -->
<!-- 挂靠单位全称 -->
<!--
<Field
v-model=
"p.Associate_company"
:readonly=
"showFlag"
:required=
"p.associate_flag==='Y' && editFlag"
:rules=
"[
{ required: p.associate_flag==='Y'
&&
editFlag,message:'请输入'}]" input-align="right"
label="挂靠单位全称"/> -->
<!-- 是否提供挂靠协议 -->
<!--
<Field
v-model=
"p.associate_agreement_n"
:readonly=
"showFlag"
:is-link=
"editFlag"
input-align=
"right"
label=
"是否提供挂靠协议"
@
click=
"showPicker('associate_agreement',pi)"
/>
-->
<!-- 租赁物是否办理抵押 -->
<!--
<Field
v-model=
"p.lease_mortgage_n"
:readonly=
"showFlag"
:is-link=
"editFlag"
input-align=
"right"
label=
"租赁物是否办理抵押"
@
click=
"showPicker('lease_mortgage',pi)"
/>
-->
<!-- 是否特批中登网不公示 为是 附件信息则必须同步上传审批报告 -->
<Field
v-model=
"p.special_approval_flag_n"
:readonly=
"true"
:required=
"editFlag"
:is-link=
"editFlag"
:rules=
"[
{ required: editFlag,message:'请选择'}]" input-align="right"
label="是否特批中登网不公示" @click="showPicker('special_approval_flag',pi)"/>
<!-- GPS是否未安装(必填) -->
<!--
<Field
v-model=
"p.gps_flag_n"
:readonly=
"showFlag"
:required=
"editFlag"
:is-link=
"editFlag"
:rules=
"[
{ required: editFlag,message:'请选择'}]" input-align="right"
label="GPS是否未安装" @click="showPicker('gps_flag',pi)"/> -->
<!-- 设备是否购买保险(不必填且无默认值) -->
<!--
<Field
v-model=
"p.insurance_flag_n"
:readonly=
"showFlag"
:is-link=
"editFlag"
input-align=
"right"
label=
"设备是否购买保险"
@
click=
"showPicker('insurance_flag',pi)"
/>
-->
</Form>
</div>
<!-- 查看还款计划 -->
<router-link
:to=
"toPath(p.cash_lists, p)"
>
查看还款计划
</router-link>
</CollapseItem>
</Collapse>
<ActionSheet
v-model=
"picker_show"
:actions=
"actions"
:title=
"actionTitle"
:close-on-click-action=
"true"
:closeable=
"false"
@
select=
"onSelect"
/>
<div
class=
"foot-bottom"
v-if=
"editFlag"
>
<button
class=
"success"
@
click=
"save"
>
保存
</button>
<div
v-if=
"editFlag"
class=
"foot-bottom"
>
<button
native-type=
"submit"
class=
"success"
@
click=
"save"
>
保存
</button>
</div>
<ActionSheet
v-model=
"picker_show"
:actions=
"actions"
:title=
"actionTitle"
:close-on-click-action=
"true"
:closeable=
"false"
@
select=
"onSelect"
/>
</div>
</
template
>
<
script
>
import
{
Collapse
,
CollapseItem
,
Cell
,
ActionSheet
}
from
'vant'
import
{
Collapse
,
CollapseItem
,
Cell
,
ActionSheet
,
Field
,
Form
}
from
'vant'
import
'vant/lib/collapse/style'
import
'vant/lib/collapse-item/style'
import
'vant/lib/action-sheet/style'
import
'vant/lib/field/style'
import
'vant/lib/form/style'
import
'vant/lib/cell/style'
export
default
{
props
:
[
'planData'
,
'editFlag'
,
'showFlag'
],
components
:
{
Collapse
,
CollapseItem
,
Cell
,
ActionSheet
},
Collapse
,
CollapseItem
,
Cell
,
ActionSheet
,
Field
,
Form
},
props
:
[
'planData'
,
'editFlag'
,
'showFlag'
],
data
()
{
return
{
activeNames
:
[
0
],
...
...
@@ -42,28 +113,47 @@ export default {
actions
:
[],
// 下拉框
contractType
:
[],
// 合同类型下拉框
ticketType
:
[],
// 开票类型下拉框
factoryType
:
[],
// 是否主机厂担保
businessNewType
:
[],
// 合同标识
leaseType
:
[],
// 租赁物类型
YesNoType
:
[],
// 是否类型
picker_show
:
false
,
now_location
:
''
,
now_nodeName
:
''
,
actionTitle
:
''
,
now_specialFlag
:
false
,
}
},
// watch: {
// planData: {
// deep: true,
// handler (n, o) {
// console.log('xin', n)
// console.log('jiu', o)
// if(o.length!==0) window.localStorage.setItem('myform_30_isSave', false)
// },
// },
// },
created
()
{
this
.
createForm
()
this
.
getDropBox
()
console
.
log
(
this
.
editFlag
,
this
.
showFlag
);
},
methods
:
{
async
save
()
{
let
flag
=
false
this
.
planData
.
map
(
item
=>
{
if
(
!
item
.
repurchase_flag
&&
!
item
.
rent_invoice_type
)
{
flag
=
true
}
getData
(){
return
this
.
now_specialFlag
},
validate
()
{
// 验证表单项是否必填
return
this
.
$refs
.
myForm_30
[
0
].
validate
().
then
(
async
(
res
)
=>
{
return
true
}).
catch
((
err
)
=>
{
return
false
})
if
(
flag
)
{
hlsPopup
.
showLongCenter
(
'请将必填字段填写完整'
)
return
}
},
async
save
()
{
let
flag
=
await
this
.
validate
()
if
(
!
flag
)
return
hlsPopup
.
showLongCenter
(
'请将必填项填写完整'
)
let
url
=
process
.
env
.
basePath
+
'prj_wfl_quotation_save'
let
param
=
{
'master'
:
{
...
...
@@ -77,6 +167,7 @@ export default {
this
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
hlsPopup
.
showLongCenter
(
'保存成功'
)
window
.
localStorage
.
setItem
(
'myform_30_isSave'
,
true
)
}
else
{
hlsPopup
.
showLongCenter
(
'保存失败'
)
}
...
...
@@ -87,23 +178,58 @@ export default {
this
.
planData
[
this
.
now_location
].
repurchase_flag_n
=
val
let
arr
=
this
.
contractType
.
filter
(
item
=>
item
.
code_name
===
val
)
this
.
planData
[
this
.
now_location
].
repurchase_flag
=
arr
[
0
].
code
}
if
(
this
.
now_nodeName
===
'rent_invoice_type'
)
{
// 开票类型
}
else
if
(
this
.
now_nodeName
===
'rent_invoice_type'
)
{
// 开票类型
this
.
planData
[
this
.
now_location
].
rent_invoice_type_n
=
val
let
arr
=
this
.
ticketType
.
filter
(
item
=>
item
.
code_name
===
val
)
this
.
planData
[
this
.
now_location
].
rent_invoice_type
=
arr
[
0
].
code
}
else
if
(
this
.
now_nodeName
===
'factory_guarantees_flag'
)
{
// 是否主机厂担保
this
.
planData
[
this
.
now_location
].
factory_guarantees_flag_n
=
val
let
arr
=
this
.
factoryType
.
filter
(
item
=>
item
.
code_name
===
val
)
this
.
planData
[
this
.
now_location
].
factory_guarantees_flag
=
arr
[
0
].
code
}
else
if
(
this
.
now_nodeName
===
'business_type_new'
)
{
// 合同标识
this
.
planData
[
this
.
now_location
].
business_type_new_n
=
val
let
arr
=
this
.
businessNewType
.
filter
(
item
=>
item
.
code_name
===
val
)
this
.
planData
[
this
.
now_location
].
business_type_new
=
arr
[
0
].
code
}
else
if
(
this
.
now_nodeName
===
'lease_things_type'
)
{
// 租赁物分类
this
.
planData
[
this
.
now_location
].
lease_things_type_n
=
val
let
arr
=
this
.
leaseType
.
filter
(
item
=>
item
.
code_name
===
val
)
this
.
planData
[
this
.
now_location
].
lease_things_type
=
arr
[
0
].
code
}
else
{
this
.
planData
[
this
.
now_location
][
this
.
now_nodeName
+
'_n'
]
=
val
let
arr
=
this
.
YesNoType
.
filter
(
item
=>
item
.
code_name
===
val
)
this
.
planData
[
this
.
now_location
][
this
.
now_nodeName
]
=
arr
[
0
].
code
if
(
this
.
now_nodeName
===
'special_approval_flag'
){
this
.
now_specialFlag
=
arr
[
0
].
code
}
}
window
.
localStorage
.
setItem
(
'myform_30_isSave'
,
false
)
},
showPicker
(
flag
,
index
)
{
if
(
!
this
.
editFlag
)
return
if
(
flag
)
{
if
(
flag
===
'repurchase_flag'
)
{
this
.
actions
=
this
.
contractType
.
map
(
item
=>
({
name
:
item
.
code_name
}))
this
.
now_nodeName
=
'repurchase_flag'
this
.
actionTitle
=
'选择合同类型'
}
else
{
}
else
if
(
flag
===
'rent_invoice_type'
)
{
this
.
now_nodeName
=
'rent_invoice_type'
this
.
actions
=
this
.
ticketType
.
map
(
item
=>
({
name
:
item
.
code_name
}))
this
.
actionTitle
=
'选择开票类型'
}
else
if
(
flag
===
'factory_guarantees_flag'
)
{
this
.
now_nodeName
=
'factory_guarantees_flag'
this
.
actions
=
this
.
factoryType
.
map
(
item
=>
({
name
:
item
.
code_name
}))
this
.
actionTitle
=
'请选择'
}
else
if
(
flag
===
'business_type_new'
)
{
this
.
now_nodeName
=
'business_type_new'
this
.
actions
=
this
.
businessNewType
.
map
(
item
=>
({
name
:
item
.
code_name
}))
this
.
actionTitle
=
'请选择'
}
else
if
(
flag
===
'lease_things_type'
)
{
this
.
now_nodeName
=
'lease_things_type'
this
.
actions
=
this
.
leaseType
.
map
(
item
=>
({
name
:
item
.
code_name
}))
this
.
actionTitle
=
'请选择'
}
else
{
this
.
now_nodeName
=
flag
this
.
actions
=
this
.
YesNoType
.
map
(
item
=>
({
name
:
item
.
code_name
}))
this
.
actionTitle
=
'请选择'
}
this
.
now_location
=
index
this
.
picker_show
=
true
...
...
@@ -112,30 +238,39 @@ export default {
async
getDropBox
()
{
let
url
=
process
.
env
.
basePath
+
'app_get_syscode'
let
param
=
{
'a'
:
'PRJ501A.REPURCHASE_FLAG'
,
'bbbbb'
:
'PRJ501A.RENT_INVOICE_TYPE'
,
'REPURCHASE_FLAG'
:
'PRJ501A.REPURCHASE_FLAG'
,
'RENT_INVOICE_TYPE'
:
'PRJ501A.RENT_INVOICE_TYPE'
,
'FACTORY_GUARANTEES_TYPE'
:
'FACTORY_GUARANTEES_TYPE'
,
'BUSINESS_TYPE_NEW'
:
'BUSINESS_TYPE_NEW'
,
'LEASE_THINGS_TYPE'
:
'LEASE_THINGS_TYPE'
,
'YES_NO'
:
'YES_NO'
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
let
res
=
await
this
.
$post
(
url
,
param
)
this
.
hlsPopup
.
hideLoading
()
if
(
res
.
return_status
===
'S'
)
{
this
.
contractType
=
res
.
a
this
.
ticketType
=
res
.
bbbbb
this
.
contractType
=
res
.
REPURCHASE_FLAG
this
.
ticketType
=
res
.
RENT_INVOICE_TYPE
this
.
factoryType
=
res
.
FACTORY_GUARANTEES_TYPE
this
.
businessNewType
=
res
.
BUSINESS_TYPE_NEW
this
.
leaseType
=
res
.
LEASE_THINGS_TYPE
this
.
YesNoType
=
res
.
YES_NO
}
},
toPath
(
cash_lists
,
p
)
{
toPath
(
cash_lists
,
p
)
{
let
headInfo
=
JSON
.
stringify
({
lease_times
:
p
.
lease_times
,
financing_num
:
p
.
financing_num
,
lease_charge
:
p
.
lease_charge
,
down_payment
:
p
.
down_payment
,
deposit
:
p
.
deposit
deposit
:
p
.
deposit
,
})
return
{
name
:
'financingApplyFinancing'
,
params
:
{
cash_lists
:
JSON
.
stringify
(
cash_lists
),
headInfo
}
}
},
factory
(
arr
)
{
factory
(
arr
)
{
// 接收二维数组,产生 formdata
if
(
arr
.
length
)
{
arr
.
forEach
(
ele
=>
{
...
...
@@ -143,12 +278,12 @@ export default {
this
.
formdata
.
push
({
title
:
title
||
''
,
prop
:
prop
||
''
,
type
:
type
||
'text'
type
:
type
||
'text'
,
})
})
;
})
}
},
createForm
()
{
createForm
()
{
let
formArr
=
[
[
'商务政策'
,
'product_plan_id_n'
,
'text'
],
[
'数量'
,
'product_num'
,
'text'
],
...
...
@@ -193,16 +328,16 @@ export default {
]
this
.
factory
(
formArr
)
},
currency
(
num
,
dotNum
=
2
)
{
if
(
num
===
null
||
num
===
undefined
||
isNaN
(
+
num
))
return
num
;
return
(
+
num
).
toLocaleString
(
"en-US"
,
{
style
:
"decimal"
,
minimumFractionDigits
:
dotNum
,
maximumFractionDigits
:
dotNum
});
currency
(
num
,
dotNum
=
2
)
{
if
(
num
===
null
||
num
===
undefined
||
isNaN
(
+
num
))
return
num
return
(
+
num
).
toLocaleString
(
'en-US'
,
{
style
:
'decimal'
,
minimumFractionDigits
:
dotNum
,
maximumFractionDigits
:
dotNum
})
},
toPercent
(
val
,
needSign
=
true
,
dotNum
=
2
)
{
if
(
!
val
||
isNaN
(
+
val
))
return
'0.00%'
;
let
res
=
(
+
val
).
toLocaleString
(
"zh-CN"
,
{
style
:
"percent"
,
minimumFractionDigits
:
dotNum
});
return
needSign
?
res
:
res
.
replace
(
'%'
,
''
)
;
}
}
toPercent
(
val
,
needSign
=
true
,
dotNum
=
2
)
{
if
(
!
val
||
isNaN
(
+
val
))
return
'0.00%'
let
res
=
(
+
val
).
toLocaleString
(
'zh-CN'
,
{
style
:
'percent'
,
minimumFractionDigits
:
dotNum
})
return
needSign
?
res
:
res
.
replace
(
'%'
,
''
)
}
,
}
,
}
</
script
>
...
...
@@ -214,4 +349,4 @@ export default {
/deep/ .van-cell__title {
color: #333333 !important
}
</
style
>
\ No newline at end of file
</
style
>
src/pages/financingApply/financingApply-detail.vue
View file @
81099525
...
...
@@ -10,14 +10,14 @@
<h-content
style=
"overflow-y: auto;"
>
<!-- 审批历史 -->
<div
class=
"history"
:class=
"[history_Coll ? 'history_active' : '']
"
@
click=
"triggerHistory"
>
<History
:isOpen=
"history_Coll"
:historyData=
"historyData"
></History
>
<div
:class=
"[history_Coll ? 'history_active' : '']"
class=
"history
"
@
click=
"triggerHistory"
>
<History
:isOpen=
"history_Coll"
:historyData=
"historyData"
/
>
</div>
<!-- 销售信息折叠 -->
<Collapse
v-model=
"collActiveTab"
>
<CollapseItem
title=
"销售信息"
name=
"1"
>
<Sale
:lesseeData=
"lesseeData"
></Sale
>
<Sale
:lesseeData=
"lesseeData"
/
>
</CollapseItem>
</Collapse>
...
...
@@ -38,21 +38,21 @@
</div>
<div
v-if=
"tabNum === 1"
class=
"z100"
>
<Lessee
:lesseeData=
"lesseeData"
></Lessee
>
<Lessee
:lesseeData=
"lesseeData"
/
>
</div>
<div
v-
if
=
"tabNum === 2"
class=
"z100"
>
<Plan
:planData=
"planData"
:editFlag=
"isEditType"
:showFlag=
"isShowType"
></Plan
>
<div
v-
show
=
"tabNum === 2"
class=
"z100"
>
<Plan
ref=
"myform_30"
:planData=
"planData"
:editFlag=
"isEditType"
:showFlag=
"isShowType"
/
>
</div>
<div
v-if=
"tabNum === 3"
class=
"z100"
>
<Partner
:bplist=
"bplist"
></Partner
>
<Partner
:bplist=
"bplist"
/
>
</div>
<div
v-if=
"tabNum === 4"
class=
"z100"
>
<Appendix
:appendixData=
"appendixData"
@
upData=
"getData"
></Appendix
>
<Appendix
ref=
"myappendix"
:appendixData=
"appendixData"
@
upData=
"getData"
/
>
<div
v-show=
"isTodo"
class=
"approveBottom"
>
<span>
审批意见
</span>
<textarea
v-model=
"confirm_note"
cols=
"8"
rows=
"5"
placeholder=
"请输入"
/>
</div>
<div
class=
"foot-bottom"
v-show=
"isTodo
"
>
<div
v-show=
"isTodo"
class=
"foot-bottom
"
>
<button
class=
"success"
@
click=
"approv('1')"
>
通 过
</button>
<button
class=
"refused"
@
click=
"approv('2')"
>
拒 绝
</button>
</div>
...
...
@@ -62,9 +62,9 @@
</
template
>
<
script
>
import
{
Collapse
,
CollapseItem
}
from
'vant'
;
import
'vant/lib/collapse/style'
;
import
'vant/lib/collapse-item/style'
;
import
{
Collapse
,
CollapseItem
}
from
'vant'
import
'vant/lib/collapse/style'
import
'vant/lib/collapse-item/style'
import
Plan
from
'./components/plan.vue'
import
Sale
from
'./components/Sale.vue'
import
Partner
from
'./components/Partner.vue'
...
...
@@ -82,16 +82,16 @@ export default {
Partner
,
Appendix
,
Lessee
,
History
History
,
},
data
()
{
data
()
{
return
{
tabNum
:
1
,
collActiveTab
:
[
'2'
],
history_Coll
:
false
,
confirm_note
:
''
,
bplist
:
[],
//商业伙伴信息
lesseeData
:
{},
//承租人, 销售信息
bplist
:
[],
//
商业伙伴信息
lesseeData
:
{},
//
承租人, 销售信息
planData
:
[],
// 商务方案
historyData
:
[],
appendixData
:
[],
...
...
@@ -100,12 +100,12 @@ export default {
isShowType
:
false
,
// 75节点可见合同类型、开票类型
}
},
beforeRouteEnter
(
to
,
from
,
next
)
{
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
})
},
mounted
()
{
mounted
()
{
console
.
log
(
this
.
$route
.
params
)
this
.
isEditType
=
this
.
$route
.
params
.
node_sequence_num
===
'30'
this
.
isShowType
=
this
.
$route
.
params
.
node_sequence_num
===
'75'
...
...
@@ -114,7 +114,7 @@ export default {
this
.
getData
()
},
methods
:
{
getData
()
{
getData
()
{
let
project_id
=
this
.
$route
.
params
.
document_id
this
.
hlsPopup
.
showLoading
(
'请稍候'
)
let
url
=
$config
.
basePath
+
'prj_project_info_query'
...
...
@@ -139,28 +139,31 @@ export default {
hlsPopup
.
showLongCenter
(
'获取工作流信息失败'
)
setTimeout
(()
=>
{
this
.
$router
.
back
()
},
2000
)
;
},
2000
)
}
})
},
getHistory
()
{
getHistory
()
{
this
.
historyData
=
this
.
$route
.
params
.
approve_history_lists
.
reverse
()
},
triggerHistory
()
{
triggerHistory
()
{
this
.
history_Coll
=
!
this
.
history_Coll
},
approv
(
action_type
)
{
if
(
this
.
isEditType
)
{
let
flag
=
false
this
.
planData
.
map
(
item
=>
{
if
(
!
item
.
repurchase_flag
&&
!
item
.
rent_invoice_type
)
{
flag
=
true
}
})
if
(
flag
)
{
hlsPopup
.
showLongCenter
(
'请将必填字段填写完整'
)
async
approv
(
action_type
)
{
if
(
this
.
isEditType
)
{
// 30节点编辑后的校验
let
isSave
=
window
.
localStorage
.
getItem
(
'myform_30_isSave'
)
let
flag
=
await
this
.
$refs
.
myform_30
.
validate
()
if
(
!
flag
||
isSave
===
'false'
)
{
hlsPopup
.
showLongCenter
(
'请将商务方案中的必填项填写完整并保存'
)
return
}
if
(
this
.
$refs
.
myform_30
.
getData
()
===
'Y'
)
{
let
temp
=
this
.
$refs
.
myappendix
.
getspcialArr
()
if
(
temp
.
attachArr
.
length
<
1
)
{
hlsPopup
.
showLongCenter
(
'请上传特批报告'
)
return
}
}
}
let
params
=
this
.
$route
.
params
let
param
=
{
...
...
@@ -171,18 +174,19 @@ export default {
comment_text
:
this
.
confirm_note
,
},
}
console
.
log
(
process
.
env
.
basePath
)
;
let
url
=
process
.
env
.
basePath
+
(
action_type
===
'1'
?
'action_agree'
:
'action_refuse'
)
console
.
log
(
url
)
;
console
.
log
(
process
.
env
.
basePath
)
let
url
=
process
.
env
.
basePath
+
(
action_type
===
'1'
?
'action_agree'
:
'action_refuse'
)
console
.
log
(
url
)
this
.
hlsPopup
.
showLoading
(
'请稍候'
)
this
.
hlsHttp
.
post
(
url
,
param
).
then
((
res
)
=>
{
this
.
hlsPopup
.
hideLoading
()
this
.
hlsPopup
.
showLongCenter
(
res
.
message
)
if
(
res
.
result
===
'S'
)
{
window
.
localStorage
.
removeItem
(
'myform_30_isSave'
)
setTimeout
(()
=>
{
this
.
$router
.
back
()
},
2000
)
;
},
2000
)
}
})
},
...
...
@@ -225,7 +229,6 @@ export default {
}
}
.tab-style {
display: flex;
justify-content: center;
...
...
src/pages/userBindNew/np/accessory-info.vue
View file @
81099525
...
...
@@ -39,152 +39,182 @@
<img
src=
"@/assets/userBind/camera.png"
class=
"upload-btn"
>
</div>
</div>
<div
v-if=
"list.cdd_item==='HOUSE_CARD'"
>
<div
v-if=
"!houseImg"
class=
"card-upload plus"
@
click=
"ocrShow(list.cdd_item, '')"
>
<img
src=
"@/assets/userBind/camera.png"
class=
"upload-btn"
>
</div>
<div
v-if=
"houseImg&&!isApproved"
class=
"card-upload plus"
@
click=
"ocrShow(list.cdd_item, '')"
>
<img
:src=
"houseImg"
style=
"width:100%;height:100%"
>
</div>
<div
v-if=
"houseImg&&isApproved"
class=
"card-upload plus"
@
click=
"showBigPicture(houseImg)"
>
<img
:src=
"houseImg"
style=
"width:100%;height:100%"
>
</div>
<list-item
:item-height=
"44"
class=
"card-Info"
>
<item>
<div
slot=
"name"
>
房屋所有权人
</div>
<input
slot=
"content"
v-model=
"hauseInfo.house_owner"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
共有情况
</div>
<input
slot=
"content"
v-model=
"hauseInfo.public_situation"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
房屋坐落
</div>
<textarea
slot=
"content"
v-model=
"hauseInfo.house_located"
cols=
"22"
rows=
"1"
placeholder=
"识别房产证自动填充"
@
input=
"addRow(hauseInfo.house_located,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
登记时间
</div>
<input
slot=
"content"
v-model=
"hauseInfo.regist_date"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
房屋性质
</div>
<input
slot=
"content"
v-model=
"hauseInfo.house_property"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
规划用途
</div>
<input
slot=
"content"
v-model=
"hauseInfo.plan_purpose"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
总层数
</div>
<input
slot=
"content"
v-model=
"hauseInfo.house_layers"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
建筑面积
</div>
<input
slot=
"content"
v-model=
"hauseInfo.built_area"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
套内建筑面积
</div>
<input
slot=
"content"
v-model=
"hauseInfo.built_in_area"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
其他
</div>
<input
slot=
"content"
v-model=
"hauseInfo.others"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
地号
</div>
<input
slot=
"content"
v-model=
"hauseInfo.land_number"
placeholder=
"识别房产证自动填充"
>
</item>
<item
:proportion=
"[1,1]"
>
<div
slot=
"name"
>
土地使用权取得方式
</div>
<input
slot=
"content"
v-model=
"hauseInfo.land_get_method"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
土地使用年限
</div>
<input
slot=
"content"
v-model=
"hauseInfo.land_use_limit"
placeholder=
"识别房产证自动填充"
>
</item>
</list-item>
</div>
<div
v-if=
"list.cdd_item==='CAR_CARD'"
>
<div
v-if=
"list.cdd_item==='CAR_CARD'"
>
<div
v-if=
"!carImg"
class=
"card-upload plus"
@
click=
"ocrShow(list.cdd_item, '')"
>
<Collapse
v-if=
"list.cdd_item==='HOUSE_CARD'"
>
<CollapseItem
v-for=
"(item,index) in hauseInfo"
:key=
"'h'+index"
:name=
"'h'+index"
:title=
"list.description+(index+1)"
>
<div
v-if=
"!houseImg[index]"
class=
"card-upload plus"
@
click=
"ocrShow(list.cdd_item, '',index)"
>
<img
src=
"@/assets/userBind/camera.png"
class=
"upload-btn"
>
</div>
<div
v-if=
"houseImg[index]&&!isApproved"
class=
"card-upload plus"
@
click=
"ocrShow(list.cdd_item, '',index)"
>
<img
:src=
"houseImg[index]"
style=
"width:100%;height:100%"
>
</div>
<div
v-if=
"houseImg[index]&&isApproved"
class=
"card-upload plus"
@
click=
"showBigPicture(houseImg[index])"
>
<img
:src=
"houseImg[index]"
style=
"width:100%;height:100%"
>
</div>
<list-item
:item-height=
"44"
class=
"card-Info"
>
<item>
<div
slot=
"name"
>
房屋所有权人
</div>
<input
slot=
"content"
v-model=
"item.house_owner"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
共有情况
</div>
<input
slot=
"content"
v-model=
"item.public_situation"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
房屋坐落
</div>
<textarea
slot=
"content"
v-model=
"item.house_located"
cols=
"22"
rows=
"1"
placeholder=
"识别房产证自动填充"
@
input=
"addRow(item.house_located,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
登记时间
</div>
<input
slot=
"content"
v-model=
"item.regist_date"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
房屋性质
</div>
<input
slot=
"content"
v-model=
"item.house_property"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
规划用途
</div>
<input
slot=
"content"
v-model=
"item.plan_purpose"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
总层数
</div>
<input
slot=
"content"
v-model=
"item.house_layers"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
建筑面积
</div>
<input
slot=
"content"
v-model=
"item.built_area"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
套内建筑面积
</div>
<input
slot=
"content"
v-model=
"item.built_in_area"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
其他
</div>
<input
slot=
"content"
v-model=
"item.others"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
地号
</div>
<input
slot=
"content"
v-model=
"item.land_number"
placeholder=
"识别房产证自动填充"
>
</item>
<item
:proportion=
"[1,1]"
>
<div
slot=
"name"
>
土地使用权取得方式
</div>
<input
slot=
"content"
v-model=
"item.land_get_method"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
土地使用年限
</div>
<input
slot=
"content"
v-model=
"item.land_use_limit"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
房产省份
</div>
<input
slot=
"content"
v-model=
"item.house_province"
placeholder=
"请输入"
>
</item>
<item>
<div
slot=
"name"
>
城市
</div>
<input
slot=
"content"
v-model=
"item.house_city"
placeholder=
"请输入"
>
</item>
<item>
<div
slot=
"name"
>
房产面积
</div>
<input
slot=
"content"
v-model=
"item.house_area"
placeholder=
"请输入"
>
</item>
<item>
<div
slot=
"name"
>
房产价值
</div>
<input
slot=
"content"
v-model=
"item.house_value"
placeholder=
"请输入"
>
</item>
<item>
<div
slot=
"name"
>
现有房产性质
</div>
<input
slot=
"content"
v-model=
"item.house_prop"
placeholder=
"请输入"
>
</item>
</list-item>
</CollapseItem>
</Collapse>
<Collapse
v-if=
"list.cdd_item==='CAR_CARD'"
>
<CollapseItem
v-for=
"(item,index) in carInfo"
:key=
"'c'+index"
:name=
"'c'+index"
:title=
"list.description+(index+1)"
>
<div
v-if=
"!carImg[index]"
class=
"card-upload plus"
@
click=
"ocrShow(list.cdd_item, '',index)"
>
<img
src=
"@/assets/userBind/camera.png"
class=
"upload-btn"
>
</div>
<div
v-if=
"carImg&&!isApproved"
v-if=
"carImg
[index]
&&!isApproved"
class=
"card-upload plus"
@
click=
"ocrShow(list.cdd_item, '')"
@
click=
"ocrShow(list.cdd_item, ''
,index
)"
>
<img
:src=
"carImg"
style=
"width:100%;height:100%"
>
<img
:src=
"carImg
[index]
"
style=
"width:100%;height:100%"
>
</div>
<div
v-if=
"carImg
&&isApproved"
class=
"card-upload plus"
@
click=
"showBigPicture(carImg
)"
>
<img
:src=
"carImg"
style=
"width:100%;height:100%"
>
<div
v-if=
"carImg
[index]&&isApproved"
class=
"card-upload plus"
@
click=
"showBigPicture(carImg[index]
)"
>
<img
:src=
"carImg
[index]
"
style=
"width:100%;height:100%"
>
</div>
</div>
<list-item
:item-height=
"44"
class=
"card-Info"
>
<item>
<div
slot=
"name"
>
车辆识别代号
</div>
<input
slot=
"content"
v-model=
"carInfo.vehicle_identify_num"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
住址
</div>
<textarea
slot=
"content"
v-model=
"carInfo.address"
cols=
"22"
rows=
"1"
placeholder=
"识别行驶证自动填充"
@
input=
"addRow(carInfo.address,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
品牌型号
</div>
<input
slot=
"content"
v-model=
"carInfo.brand_model_number"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
发证日期
</div>
<input
slot=
"content"
v-model=
"carInfo.start_date"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
车辆类型
</div>
<input
slot=
"content"
v-model=
"carInfo.vehicle_type"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
所有人
</div>
<input
slot=
"content"
v-model=
"carInfo.owner"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
使用性质
</div>
<input
slot=
"content"
v-model=
"carInfo.use_nature"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
发动机号码
</div>
<input
slot=
"content"
v-model=
"carInfo.engine_number"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
号牌号码
</div>
<input
slot=
"content"
v-model=
"carInfo.plate_number"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
注册日期
</div>
<input
slot=
"content"
v-model=
"carInfo.regist_date"
placeholder=
"识别行驶证自动填充"
>
</item>
</list-item>
</div>
<div
v-if=
"list.cdd_item==='REAL_EST_CERTIFICATE'"
>
<div
v-if=
"list.cdd_item==='REAL_EST_CERTIFICATE'"
>
<div
v-if=
"!estateImg"
class=
"card-upload plus"
@
click=
"ocrShow(list.cdd_item, '')"
>
<list-item
:item-height=
"44"
class=
"card-Info"
>
<item>
<div
slot=
"name"
>
车辆识别代号
</div>
<input
slot=
"content"
v-model=
"item.vehicle_identify_num"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
住址
</div>
<textarea
slot=
"content"
v-model=
"item.address"
cols=
"22"
rows=
"1"
placeholder=
"识别行驶证自动填充"
@
input=
"addRow(item.address,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
品牌型号
</div>
<input
slot=
"content"
v-model=
"item.brand_model_number"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
发证日期
</div>
<input
slot=
"content"
v-model=
"item.start_date"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
车辆类型
</div>
<input
slot=
"content"
v-model=
"item.vehicle_type"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
所有人
</div>
<input
slot=
"content"
v-model=
"item.owner"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
使用性质
</div>
<input
slot=
"content"
v-model=
"item.use_nature"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
发动机号码
</div>
<input
slot=
"content"
v-model=
"item.engine_number"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
号牌号码
</div>
<input
slot=
"content"
v-model=
"item.plate_number"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
注册日期
</div>
<input
slot=
"content"
v-model=
"item.regist_date"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
车辆信息
</div>
<input
slot=
"content"
v-model=
"item.vehicle_info"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
车辆价值
</div>
<input
slot=
"content"
v-model=
"item.vehicle_value"
placeholder=
"识别行驶证自动填充"
>
</item>
</list-item>
</CollapseItem>
</Collapse>
<Collapse
v-if=
"list.cdd_item==='REAL_EST_CERTIFICATE'"
>
<div>
<div
v-if=
"!estateImg[index]"
class=
"card-upload plus"
@
click=
"ocrShow(list.cdd_item, '',index)"
>
<img
src=
"@/assets/userBind/camera.png"
class=
"upload-btn"
>
</div>
<div
v-if=
"estateImg&&!isApproved"
v-if=
"estateImg
[index]
&&!isApproved"
class=
"card-upload plus"
@
click=
"ocrShow(list.cdd_item, '')"
@
click=
"ocrShow(list.cdd_item, ''
,index
)"
>
<img
:src=
"estateImg"
style=
"width:100%;height:100%"
>
<img
:src=
"estateImg
[index]
"
style=
"width:100%;height:100%"
>
</div>
<div
v-if=
"estateImg
&&isApproved"
class=
"card-upload plus"
@
click=
"showBigPicture(estateImg
)"
>
<img
:src=
"estateImg"
style=
"width:100%;height:100%"
>
<div
v-if=
"estateImg
[index]&&isApproved"
class=
"card-upload plus"
@
click=
"showBigPicture(estateImg[index]
)"
>
<img
:src=
"estateImg
[index]
"
style=
"width:100%;height:100%"
>
</div>
</div>
<list-item
:item-height=
"44"
class=
"card-Info"
>
...
...
@@ -192,67 +222,67 @@
<div
slot=
"name"
>
权利人
</div>
<input
slot=
"content"
v-model=
"
propertyInfo
.right_person"
v-model=
"
item
.right_person"
placeholder=
"识别不动产权证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
共有情况
</div>
<input
slot=
"content"
v-model=
"
propertyInfo
.public_situation"
placeholder=
"识别不动产权证自动填充"
>
<input
slot=
"content"
v-model=
"
item
.public_situation"
placeholder=
"识别不动产权证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
坐落
</div>
<textarea
slot=
"content"
v-model=
"
propertyInfo
.house_located"
cols=
"22"
rows=
"1"
slot=
"content"
v-model=
"
item
.house_located"
cols=
"22"
rows=
"1"
contenteditable=
"true"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(
propertyInfo
.house_located,$event)"
/>
@
input=
"addRow(
item
.house_located,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
不动产单元号
</div>
<textarea
slot=
"content"
v-model=
"
propertyInfo
.real_unit_number"
cols=
"22"
rows=
"1"
slot=
"content"
v-model=
"
item
.real_unit_number"
cols=
"22"
rows=
"1"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(
propertyInfo
.real_unit_number,$event)"
/>
@
input=
"addRow(
item
.real_unit_number,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
权利类型
</div>
<textarea
slot=
"content"
v-model=
"
propertyInfo
.right_type"
cols=
"22"
rows=
"1"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(
propertyInfo
.right_type,$event)"
/>
slot=
"content"
v-model=
"
item
.right_type"
cols=
"22"
rows=
"1"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(
item
.right_type,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
权利性质
</div>
<textarea
slot=
"content"
v-model=
"
propertyInfo
.right_property"
cols=
"22"
rows=
"1"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(
propertyInfo
.right_property,$event)"
/>
slot=
"content"
v-model=
"
item
.right_property"
cols=
"22"
rows=
"1"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(
item
.right_property,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
用途
</div>
<textarea
slot=
"content"
v-model=
"
propertyInfo
.house_purpose"
cols=
"22"
rows=
"1"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(
propertyInfo
.house_purpose,$event)"
/>
slot=
"content"
v-model=
"
item
.house_purpose"
cols=
"22"
rows=
"1"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(
item
.house_purpose,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
面积
</div>
<textarea
slot=
"content"
v-model=
"
propertyInfo
.house_area"
cols=
"22"
rows=
"1"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(
propertyInfo
.house_area,$event)"
/>
slot=
"content"
v-model=
"
item
.house_area"
cols=
"22"
rows=
"1"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(
item
.house_area,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
使用期限
</div>
<textarea
slot=
"content"
v-model=
"
propertyInfo
.land_use_limit"
cols=
"22"
rows=
"1"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(
propertyInfo
.land_use_limit,$event)"
/>
slot=
"content"
v-model=
"
item
.land_use_limit"
cols=
"22"
rows=
"1"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(
item
.land_use_limit,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
权利其他状况
</div>
<textarea
slot=
"content"
v-model=
"
propertyInfo
.right_others"
cols=
"22"
rows=
"1"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(
propertyInfo
.right_others,$event)"
/>
slot=
"content"
v-model=
"
item
.right_others"
cols=
"22"
rows=
"1"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(
item
.right_others,$event)"
/>
</item>
</list-item>
</
div
>
</
Collapse
>
</div>
</div>
</h-content>
...
...
@@ -262,30 +292,35 @@
</h-view>
</
template
>
<
script
>
import
{
Collapse
,
CollapseItem
}
from
'vant'
import
'vant/lib/collapse/style'
import
'vant/lib/collapse-item/style'
export
default
{
components
:
{
Collapse
,
CollapseItem
},
data
()
{
return
{
bp_type
:
''
,
list
:
{},
houseImg
:
''
,
carImg
:
''
,
estateImg
:
''
,
houseImg
:
[
''
]
,
carImg
:
[
''
]
,
estateImg
:
[
''
]
,
house_id
:
''
,
car_id
:
''
,
estate_id
:
''
,
houseImgUpload
:
''
,
carImgUpload
:
''
,
estateImgUpload
:
''
,
houseFlag
:
false
,
// 房产证查看标识,为false则用查询出来的,为true则用拍照出来的
carFlag
:
false
,
// 行驶证查看标识,为false则用查询出来的,为true则用拍照出来的
estateFlag
:
false
,
// 不动产权证查看标识,为false则用查询出来的,为true则用拍照出来的
isUploadHouse
:
false
,
// 房产证修改标识
isUploadCar
:
false
,
// 行驶证修改标识
isUploadEstate
:
false
,
// 不动产权证修改标识
estateAttachmentId
:
''
,
houseAttachmentId
:
''
,
carAttachmentId
:
''
,
propertyInfo
:
{
houseImgUpload
:
[
''
]
,
carImgUpload
:
[
''
]
,
estateImgUpload
:
[
''
]
,
houseFlag
:
[
false
]
,
// 房产证查看标识,为false则用查询出来的,为true则用拍照出来的
carFlag
:
[
false
]
,
// 行驶证查看标识,为false则用查询出来的,为true则用拍照出来的
estateFlag
:
[
false
]
,
// 不动产权证查看标识,为false则用查询出来的,为true则用拍照出来的
isUploadHouse
:
[
false
]
,
// 房产证修改标识
isUploadCar
:
[
false
]
,
// 行驶证修改标识
isUploadEstate
:
[
false
]
,
// 不动产权证修改标识
estateAttachmentId
:
[
''
]
,
houseAttachmentId
:
[
''
]
,
carAttachmentId
:
[
''
]
,
propertyInfo
:
[
{
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
right_person
:
''
,
public_situation
:
''
,
...
...
@@ -297,8 +332,8 @@ export default {
house_area
:
''
,
land_use_limit
:
''
,
right_others
:
''
,
},
hauseInfo
:
{
}
]
,
hauseInfo
:
[
{
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
house_owner
:
''
,
public_situation
:
''
,
...
...
@@ -313,8 +348,13 @@ export default {
land_number
:
''
,
land_get_method
:
''
,
land_use_limit
:
''
,
},
carInfo
:
{
house_province
:
''
,
house_city
:
''
,
house_area
:
''
,
house_value
:
''
,
house_prop
:
''
,
}],
carInfo
:
[{
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
vehicle_identify_num
:
''
,
address
:
''
,
...
...
@@ -328,7 +368,9 @@ export default {
regist_date
:
''
,
words_result_num
:
''
,
success
:
''
,
},
vehicle_info
:
''
,
vehicle_value
:
''
,
}],
upload_list
:
[],
cddItemList
:
[],
// 资料清单列表
dowload_list
:
[],
...
...
@@ -343,7 +385,7 @@ export default {
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
if
(
from
.
name
===
'NPInvoiceInfo'
&&
window
.
localStorage
.
from
===
'true'
)
{
vm
.
propertyInfo
=
{
vm
.
propertyInfo
=
[
{
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
right_person
:
''
,
public_situation
:
''
,
...
...
@@ -355,8 +397,8 @@ export default {
house_area
:
''
,
land_use_limit
:
''
,
right_others
:
''
,
}
vm
.
hauseInfo
=
{
}
]
vm
.
hauseInfo
=
[
{
house_owner
:
''
,
public_situation
:
''
,
house_located
:
''
,
...
...
@@ -370,9 +412,14 @@ export default {
land_number
:
''
,
land_get_method
:
''
,
land_use_limit
:
''
,
house_province
:
''
,
house_city
:
''
,
house_area
:
''
,
house_value
:
''
,
house_prop
:
''
,
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
}
vm
.
carInfo
=
{
}
]
vm
.
carInfo
=
[
{
vehicle_identify_num
:
''
,
address
:
''
,
brand_model_number
:
''
,
...
...
@@ -385,29 +432,35 @@ export default {
regist_date
:
''
,
words_result_num
:
''
,
success
:
''
,
vehicle_info
:
''
,
vehicle_value
:
''
,
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
}
vm
.
houseImgUpload
=
''
vm
.
carImgUpload
=
''
vm
.
estateImgUpload
=
''
vm
.
houseImg
=
''
vm
.
carImg
=
''
vm
.
estateImg
=
''
vm
.
houseFlag
=
false
// 房产证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
carFlag
=
false
// 行驶证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
estateFlag
=
false
// 不动产权证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
isUploadHouse
=
false
// 房产证修改标识
vm
.
isUploadCar
=
false
// 行驶证修改标识
vm
.
isUploadEstate
=
false
// 不动产权证修改标识
}]
vm
.
houseImgUpload
=
[
''
]
vm
.
carImgUpload
=
[
''
]
vm
.
estateImgUpload
=
[
''
]
vm
.
houseImg
=
[
''
]
vm
.
carImg
=
[
''
]
vm
.
estateImg
=
[
''
]
vm
.
houseFlag
=
[
false
]
// 房产证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
carFlag
=
[
false
]
// 行驶证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
estateFlag
=
[
false
]
// 不动产权证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
isUploadHouse
=
[
false
]
// 房产证修改标识
vm
.
isUploadCar
=
[
false
]
// 行驶证修改标识
vm
.
isUploadEstate
=
[
false
]
// 不动产权证修改标识
vm
.
carAttachmentId
=
[
''
]
// 车辆证id
vm
.
houseAttachmentId
=
[
''
]
// 房产证id
vm
.
propertyAttachmentId
=
[
''
]
// 不动产证id
vm
.
bp_type
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_type
setTimeout
(()
=>
{
vm
.
loadItemList
(
true
)
vm
.
getCarInfo
()
// vm.getHouseInfo()
// vm.getEstateInfo()
},
0
)
}
else
if
(
from
.
name
===
'NPInvoiceInfo'
&&
window
.
localStorage
.
from
===
'false'
)
{
vm
.
propertyInfo
=
{
vm
.
propertyInfo
=
[
{
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
right_person
:
''
,
public_situation
:
''
,
...
...
@@ -419,8 +472,8 @@ export default {
house_area
:
''
,
land_use_limit
:
''
,
right_others
:
''
,
}
vm
.
hauseInfo
=
{
}
]
vm
.
hauseInfo
=
[
{
house_owner
:
''
,
public_situation
:
''
,
house_located
:
''
,
...
...
@@ -434,9 +487,14 @@ export default {
land_number
:
''
,
land_get_method
:
''
,
land_use_limit
:
''
,
house_province
:
''
,
house_city
:
''
,
house_area
:
''
,
house_value
:
''
,
house_prop
:
''
,
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
}
vm
.
carInfo
=
{
}
]
vm
.
carInfo
=
[
{
vehicle_identify_num
:
''
,
address
:
''
,
brand_model_number
:
''
,
...
...
@@ -449,20 +507,25 @@ export default {
regist_date
:
''
,
words_result_num
:
''
,
success
:
''
,
vehicle_info
:
''
,
vehicle_value
:
''
,
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
}
vm
.
houseImgUpload
=
''
vm
.
carImgUpload
=
''
vm
.
estateImgUpload
=
''
vm
.
houseImg
=
''
vm
.
carImg
=
''
vm
.
estateImg
=
''
vm
.
houseFlag
=
false
// 房产证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
carFlag
=
false
// 行驶证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
estateFlag
=
false
// 不动产权证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
isUploadHouse
=
false
// 房产证修改标识
vm
.
isUploadCar
=
false
// 行驶证修改标识
vm
.
isUploadEstate
=
false
// 不动产权证修改标识
}]
vm
.
houseImgUpload
=
[
''
]
vm
.
carImgUpload
=
[
''
]
vm
.
estateImgUpload
=
[
''
]
vm
.
houseImg
=
[
''
]
vm
.
carImg
=
[
''
]
vm
.
estateImg
=
[
''
]
vm
.
houseFlag
=
[
false
]
// 房产证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
carFlag
=
[
false
]
// 行驶证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
estateFlag
=
[
false
]
// 不动产权证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
isUploadHouse
=
[
false
]
// 房产证修改标识
vm
.
isUploadCar
=
[
false
]
// 行驶证修改标识
vm
.
isUploadEstate
=
[
false
]
// 不动产权证修改标识
vm
.
carAttachmentId
=
[
''
]
// 车辆证id
vm
.
houseAttachmentId
=
[
''
]
// 房产证id
vm
.
propertyAttachmentId
=
[
''
]
// 不动产证id
vm
.
bp_type
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_type
vm
.
loadItemList
(
false
)
}
...
...
@@ -497,7 +560,9 @@ export default {
let
url
=
process
.
env
.
basePath
+
'bp_real_estate_save'
let
isSaveCar
=
await
vm
.
saveCarInfo
()
let
param
=
{
master
:
vm
.
propertyInfo
,
master
:
{
lists
:
vm
.
propertyInfo
,
},
}
if
(
isSaveCar
)
{
hlsPopup
.
showLoading
(
'请稍候'
)
...
...
@@ -514,7 +579,9 @@ export default {
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'bp_vehicleLicense_save'
let
param
=
{
master
:
vm
.
carInfo
,
master
:
{
lists
:
vm
.
carInfo
,
},
}
hlsPopup
.
showLoading
(
'请稍候'
)
let
res
=
await
vm
.
$post
(
url
,
param
)
...
...
@@ -570,7 +637,9 @@ export default {
let
url
=
process
.
env
.
basePath
+
'bp_house_info_save'
let
isSaveEstate
=
await
vm
.
saveEstateInfo
()
let
param
=
{
master
:
vm
.
hauseInfo
,
master
:
{
lists
:
vm
.
hauseInfo
,
},
}
hlsPopup
.
showLoading
(
'请稍候'
)
if
(
isSaveEstate
)
{
...
...
@@ -636,77 +705,86 @@ export default {
},
save
()
{
let
vm
=
this
if
(
vm
.
isUploadHouse
)
{
vm
.
houseFlag
=
true
vm
.
delete_pic_to_ocr
(
vm
.
houseAttachmentId
)
// 房产证修改,重新上传
let
list
=
[]
let
obj
=
{
pkvalue
:
vm
.
house_id
,
source_type
:
'PRJ_CDD_ITEM_CHECK'
,
picture
:
''
,
check_id
:
vm
.
house_id
,
filePath
:
vm
.
houseImgUpload
,
attachment_id
:
''
,
user_id
:
1
,
fileName
:
'房产证'
,
vm
.
isUploadHouse
.
forEach
((
item
,
index
)
=>
{
if
(
item
)
{
vm
.
houseFlag
[
index
]
=
true
vm
.
delete_pic_to_ocr
(
vm
.
houseAttachmentId
[
index
])
// 房产证修改,重新上传
let
list
=
[]
let
obj
=
{
pkvalue
:
vm
.
house_id
,
source_type
:
'PRJ_CDD_ITEM_CHECK'
,
picture
:
''
,
check_id
:
vm
.
house_id
,
filePath
:
vm
.
houseImgUpload
[
index
],
attachment_id
:
''
,
user_id
:
1
,
fileName
:
'房产证'
,
}
list
.
push
(
obj
)
vm
.
save_picture
(
list
)
vm
.
isUploadHouse
[
index
]
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
list
.
push
(
obj
)
vm
.
save_picture
(
list
)
vm
.
isUploadHouse
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
if
(
vm
.
isUploadEstate
)
{
vm
.
estateFlag
=
true
vm
.
delete_pic_to_ocr
(
vm
.
estateAttachmentId
)
// 房产证修改,重新上传
let
list
=
[]
let
obj
=
{
pkvalue
:
vm
.
estate_id
,
source_type
:
'PRJ_CDD_ITEM_CHECK'
,
picture
:
''
,
check_id
:
vm
.
estate_id
,
filePath
:
vm
.
estateImgUpload
,
attachment_id
:
''
,
user_id
:
1
,
fileName
:
'不动产权证'
,
})
vm
.
isUploadEstate
.
forEach
((
item
,
index
)
=>
{
if
(
item
)
{
vm
.
estateFlag
[
index
]
=
true
vm
.
delete_pic_to_ocr
(
vm
.
estateAttachmentId
[
index
])
// 房产证修改,重新上传
let
list
=
[]
let
obj
=
{
pkvalue
:
vm
.
estate_id
,
source_type
:
'PRJ_CDD_ITEM_CHECK'
,
picture
:
''
,
check_id
:
vm
.
estate_id
,
filePath
:
vm
.
estateImgUpload
[
index
],
attachment_id
:
''
,
user_id
:
1
,
fileName
:
'不动产权证'
,
}
list
.
push
(
obj
)
vm
.
save_picture
(
list
)
vm
.
isUploadEstate
[
index
]
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
list
.
push
(
obj
)
vm
.
save_picture
(
list
)
vm
.
isUploadEstate
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
if
(
vm
.
isUploadCar
)
{
vm
.
carFlag
=
true
vm
.
delete_pic_to_ocr
(
vm
.
carAttachmentId
)
// 房产证修改,重新上传
let
list
=
[]
let
obj
=
{
pkvalue
:
vm
.
car_id
,
source_type
:
'PRJ_CDD_ITEM_CHECK'
,
picture
:
''
,
check_id
:
vm
.
car_id
,
filePath
:
vm
.
carImgUpload
,
attachment_id
:
''
,
user_id
:
1
,
fileName
:
'行驶证'
,
})
vm
.
isUploadCar
.
forEach
((
item
,
index
)
=>
{
if
(
item
)
{
vm
.
carFlag
[
index
]
=
true
vm
.
delete_pic_to_ocr
(
vm
.
carAttachmentId
[
index
])
// 房产证修改,重新上传
let
list
=
[]
let
obj
=
{
pkvalue
:
vm
.
car_id
,
source_type
:
'PRJ_CDD_ITEM_CHECK'
,
picture
:
''
,
check_id
:
vm
.
car_id
,
filePath
:
vm
.
carImgUpload
[
index
],
attachment_id
:
''
,
user_id
:
1
,
fileName
:
'行驶证'
,
}
list
.
push
(
obj
)
vm
.
save_picture
(
list
)
vm
.
isUploadCar
[
index
]
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
list
.
push
(
obj
)
vm
.
save_picture
(
list
)
vm
.
isUploadCar
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
})
vm
.
saveHouseInfo
()
},
ocrShow
(
ocrType
,
type
)
{
ocrShow
(
ocrType
,
type
,
ind
)
{
let
vm
=
this
hlsPopup
.
showActionSheet
({
titleText
:
'请选择照片'
,
buttonArray
:
[
'拍照'
,
'从相册取'
],
callback
:
index
=>
{
if
(
index
===
0
)
{
vm
.
openCamera
(
ocrType
,
type
)
vm
.
openCamera
(
ocrType
,
type
,
ind
)
}
else
{
vm
.
takePicture
(
ocrType
,
type
)
vm
.
takePicture
(
ocrType
,
type
,
ind
)
}
},
})
},
openCamera
(
ocrType
,
type
)
{
openCamera
(
ocrType
,
type
,
index
)
{
let
vm
=
this
let
cameraoptions
=
{
quality
:
60
,
...
...
@@ -718,20 +796,20 @@ export default {
hlsPopup
.
showLongCenter
(
'请拍照'
)
}
else
{
if
(
ocrType
===
'HOUSE_CARD'
)
{
vm
.
isUploadHouse
=
true
vm
.
houseImg
=
hlsUtil
.
convertImageUrl
(
imgdata
)
vm
.
houseImgUpload
=
imgdata
vm
.
houseIdentify
(
imgdata
)
vm
.
isUploadHouse
[
index
]
=
true
vm
.
houseImg
[
index
]
=
hlsUtil
.
convertImageUrl
(
imgdata
)
vm
.
houseImgUpload
[
index
]
=
imgdata
vm
.
houseIdentify
(
imgdata
,
index
)
}
else
if
(
ocrType
===
'CAR_CARD'
)
{
vm
.
isUploadCar
=
true
vm
.
carImg
=
hlsUtil
.
convertImageUrl
(
imgdata
)
vm
.
carImgUpload
=
imgdata
vm
.
carIdentify
(
imgdata
)
vm
.
isUploadCar
[
index
]
=
true
vm
.
carImg
[
index
]
=
hlsUtil
.
convertImageUrl
(
imgdata
)
vm
.
carImgUpload
[
index
]
=
imgdata
vm
.
carIdentify
(
imgdata
,
index
)
}
else
if
(
ocrType
===
'REAL_EST_CERTIFICATE'
)
{
vm
.
isUploadEstate
=
true
vm
.
estateImg
=
hlsUtil
.
convertImageUrl
(
imgdata
)
vm
.
estateImgUpload
=
imgdata
vm
.
estateIdentify
(
imgdata
)
vm
.
isUploadEstate
[
index
]
=
true
vm
.
estateImg
[
index
]
=
hlsUtil
.
convertImageUrl
(
imgdata
)
vm
.
estateImgUpload
[
index
]
=
imgdata
vm
.
estateIdentify
(
imgdata
,
index
)
}
}
}
...
...
@@ -740,68 +818,68 @@ export default {
}
hlsUtil
.
openCamera
(
cameraoptions
,
success
,
error
)
},
houseIdentify
(
fileUrl
)
{
houseIdentify
(
fileUrl
,
index
)
{
let
vm
=
this
hlsPopup
.
showLoading
(
'正在识别'
)
let
url
=
process
.
env
.
ocrPath
+
'/baidu/ocr/house'
hlsUtil
.
baiduOcr
(
fileUrl
,
url
,
function
(
res
)
{
hlsPopup
.
hideLoading
()
let
result
=
res
.
result
.
data
vm
.
hauseInfo
.
house_owner
=
result
.
house_owner
.
word
vm
.
hauseInfo
.
public_situation
=
result
.
public_situation
.
word
vm
.
hauseInfo
.
house_located
=
result
.
house_located
.
word
vm
.
hauseInfo
.
regist_date
=
result
.
regist_date
.
word
vm
.
hauseInfo
.
house_property
=
result
.
house_property
.
word
vm
.
hauseInfo
.
plan_purpose
=
result
.
plan_purpose
.
word
vm
.
hauseInfo
.
house_layers
=
result
.
house_layers
.
word
vm
.
hauseInfo
.
built_area
=
result
.
built_area
.
word
vm
.
hauseInfo
.
built_in_area
=
result
.
built_in_area
.
word
vm
.
hauseInfo
.
others
=
result
.
others
.
word
vm
.
hauseInfo
.
land_number
=
result
.
land_number
.
word
vm
.
hauseInfo
.
land_get_method
=
result
.
land_get_method
.
word
vm
.
hauseInfo
.
land_use_limit
=
result
.
land_use_limit
.
word
vm
.
hauseInfo
[
index
]
.
house_owner
=
result
.
house_owner
.
word
vm
.
hauseInfo
[
index
]
.
public_situation
=
result
.
public_situation
.
word
vm
.
hauseInfo
[
index
]
.
house_located
=
result
.
house_located
.
word
vm
.
hauseInfo
[
index
]
.
regist_date
=
result
.
regist_date
.
word
vm
.
hauseInfo
[
index
]
.
house_property
=
result
.
house_property
.
word
vm
.
hauseInfo
[
index
]
.
plan_purpose
=
result
.
plan_purpose
.
word
vm
.
hauseInfo
[
index
]
.
house_layers
=
result
.
house_layers
.
word
vm
.
hauseInfo
[
index
]
.
built_area
=
result
.
built_area
.
word
vm
.
hauseInfo
[
index
]
.
built_in_area
=
result
.
built_in_area
.
word
vm
.
hauseInfo
[
index
]
.
others
=
result
.
others
.
word
vm
.
hauseInfo
[
index
]
.
land_number
=
result
.
land_number
.
word
vm
.
hauseInfo
[
index
]
.
land_get_method
=
result
.
land_get_method
.
word
vm
.
hauseInfo
[
index
]
.
land_use_limit
=
result
.
land_use_limit
.
word
})
},
carIdentify
(
fileUrl
)
{
carIdentify
(
fileUrl
,
index
)
{
let
vm
=
this
hlsPopup
.
showLoading
(
'正在识别'
)
let
url
=
process
.
env
.
ocrPath
+
'/baidu/ocr/vehicleLicense'
hlsUtil
.
baiduOcr
(
fileUrl
,
url
,
function
(
res
)
{
hlsPopup
.
hideLoading
()
let
result
=
res
.
result
.
words_result
vm
.
carInfo
.
vehicle_identify_num
=
result
.
车辆识别代号
.
words
vm
.
carInfo
.
address
=
result
.
住址
.
words
vm
.
carInfo
.
brand_model_number
=
result
.
品牌型号
.
words
vm
.
carInfo
.
start_date
=
result
.
发证日期
.
words
vm
.
carInfo
.
vehicle_type
=
result
.
车辆类型
.
words
vm
.
carInfo
.
owner
=
result
.
所有人
.
words
vm
.
carInfo
.
use_nature
=
result
.
使用性质
.
words
vm
.
carInfo
.
engine_number
=
result
.
发动机号码
.
words
vm
.
carInfo
.
regist_date
=
result
.
注册日期
.
words
vm
.
carInfo
.
plate_number
=
result
.
号牌号码
.
words
vm
.
carInfo
.
success
=
res
.
success
vm
.
carInfo
[
index
]
.
vehicle_identify_num
=
result
.
车辆识别代号
.
words
vm
.
carInfo
[
index
]
.
address
=
result
.
住址
.
words
vm
.
carInfo
[
index
]
.
brand_model_number
=
result
.
品牌型号
.
words
vm
.
carInfo
[
index
]
.
start_date
=
result
.
发证日期
.
words
vm
.
carInfo
[
index
]
.
vehicle_type
=
result
.
车辆类型
.
words
vm
.
carInfo
[
index
]
.
owner
=
result
.
所有人
.
words
vm
.
carInfo
[
index
]
.
use_nature
=
result
.
使用性质
.
words
vm
.
carInfo
[
index
]
.
engine_number
=
result
.
发动机号码
.
words
vm
.
carInfo
[
index
]
.
regist_date
=
result
.
注册日期
.
words
vm
.
carInfo
[
index
]
.
plate_number
=
result
.
号牌号码
.
words
vm
.
carInfo
[
index
]
.
success
=
res
.
success
})
},
estateIdentify
(
fileUrl
)
{
estateIdentify
(
fileUrl
,
index
)
{
let
vm
=
this
hlsPopup
.
showLoading
(
'正在识别'
)
let
url
=
process
.
env
.
ocrPath
+
'/baidu/ocr/houseRight'
hlsUtil
.
baiduOcr
(
fileUrl
,
url
,
function
(
res
)
{
hlsPopup
.
hideLoading
()
let
result
=
res
.
result
.
data
vm
.
propertyInfo
.
right_person
=
result
.
right_person
.
word
vm
.
propertyInfo
.
public_situation
=
result
.
public_situation
.
word
vm
.
propertyInfo
.
house_located
=
result
.
house_located
.
word
vm
.
propertyInfo
.
real_unit_number
=
result
.
real_unit_number
.
word
vm
.
propertyInfo
.
right_type
=
result
.
right_type
.
word
vm
.
propertyInfo
.
right_property
=
result
.
right_property
.
word
vm
.
propertyInfo
.
house_purpose
=
result
.
house_purpose
.
word
vm
.
propertyInfo
.
house_area
=
result
.
house_area
.
word
vm
.
propertyInfo
.
land_use_limit
=
result
.
land_use_limit
.
word
vm
.
propertyInfo
.
right_others
=
result
.
right_others
.
word
vm
.
propertyInfo
[
index
]
.
right_person
=
result
.
right_person
.
word
vm
.
propertyInfo
[
index
]
.
public_situation
=
result
.
public_situation
.
word
vm
.
propertyInfo
[
index
]
.
house_located
=
result
.
house_located
.
word
vm
.
propertyInfo
[
index
]
.
real_unit_number
=
result
.
real_unit_number
.
word
vm
.
propertyInfo
[
index
]
.
right_type
=
result
.
right_type
.
word
vm
.
propertyInfo
[
index
]
.
right_property
=
result
.
right_property
.
word
vm
.
propertyInfo
[
index
]
.
house_purpose
=
result
.
house_purpose
.
word
vm
.
propertyInfo
[
index
]
.
house_area
=
result
.
house_area
.
word
vm
.
propertyInfo
[
index
]
.
land_use_limit
=
result
.
land_use_limit
.
word
vm
.
propertyInfo
[
index
]
.
right_others
=
result
.
right_others
.
word
})
},
takePicture
(
ocrType
,
type
)
{
takePicture
(
ocrType
,
type
,
index
)
{
let
vm
=
this
var
cameraoptions
=
{
quality
:
70
,
...
...
@@ -814,20 +892,20 @@ export default {
hlsPopup
.
showLongCenter
(
'请选择一张图片'
)
}
else
{
if
(
ocrType
===
'HOUSE_CARD'
)
{
vm
.
houseImg
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
])
vm
.
houseImgUpload
=
imgUrl
[
0
]
vm
.
isUploadHouse
=
true
vm
.
houseIdentify
(
imgUrl
[
0
])
vm
.
houseImg
[
index
]
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
])
vm
.
houseImgUpload
[
index
]
=
imgUrl
[
0
]
vm
.
isUploadHouse
[
index
]
=
true
vm
.
houseIdentify
(
imgUrl
[
0
]
,
index
)
}
else
if
(
ocrType
===
'CAR_CARD'
)
{
vm
.
carImg
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
])
vm
.
carImgUpload
=
imgUrl
[
0
]
vm
.
isUploadCar
=
true
vm
.
carIdentify
(
imgUrl
[
0
])
vm
.
carImg
[
index
]
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
])
vm
.
carImgUpload
[
index
]
=
imgUrl
[
0
]
vm
.
isUploadCar
[
index
]
=
true
vm
.
carIdentify
(
imgUrl
[
0
]
,
index
)
}
else
if
(
ocrType
===
'REAL_EST_CERTIFICATE'
)
{
vm
.
isUploadEstate
=
true
vm
.
estateImg
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
])
vm
.
estateImgUpload
=
imgUrl
[
0
]
vm
.
estateIdentify
(
imgUrl
[
0
])
vm
.
isUploadEstate
[
index
]
=
true
vm
.
estateImg
[
index
]
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
])
vm
.
estateImgUpload
[
index
]
=
imgUrl
[
0
]
vm
.
estateIdentify
(
imgUrl
[
0
]
,
index
)
}
}
}
...
...
@@ -1088,23 +1166,29 @@ export default {
})
switch
(
cdd_item
)
{
case
'HOUSE_CARD'
:
// 房产证
if
(
!
vm
.
houseFlag
)
{
vm
.
houseImg
=
res
.
lists
[
0
].
url
}
vm
.
houseAttachmentId
=
res
.
lists
[
0
].
attachment_id
vm
.
houseFlag
.
forEach
((
item
,
index
)
=>
{
if
(
!
item
)
{
vm
.
houseImg
[
index
]
=
res
.
lists
[
0
].
url
vm
.
houseAttachmentId
[
index
]
=
res
.
lists
[
0
].
attachment_id
}
})
console
.
log
(
vm
.
houseAttachmentId
)
break
case
'CAR_CARD'
:
// 行驶证
if
(
!
vm
.
carFlag
)
{
vm
.
carImg
=
res
.
lists
[
0
].
url
}
vm
.
carAttachmentId
=
res
.
lists
[
0
].
attachment_id
vm
.
carFlag
.
forEach
((
item
,
index
)
=>
{
if
(
!
item
)
{
vm
.
carImg
[
index
]
=
res
.
lists
[
0
].
url
vm
.
carAttachmentId
[
index
]
=
res
.
lists
[
0
].
attachment_id
}
})
break
case
'REAL_EST_CERTIFICATE'
:
// 行驶证
if
(
!
vm
.
estateFlag
)
{
vm
.
estateImg
=
res
.
lists
[
0
].
url
}
vm
.
estateAttachmentId
=
res
.
lists
[
0
].
attachment_id
case
'REAL_EST_CERTIFICATE'
:
// 不动产
vm
.
propertyFlag
.
forEach
((
item
,
index
)
=>
{
if
(
!
item
)
{
vm
.
propertyImg
[
index
]
=
res
.
lists
[
0
].
url
vm
.
propertyAttachmentId
[
index
]
=
res
.
lists
[
0
].
attachment_id
}
})
break
default
:
// vm.dowload_list.push(res.lists)
...
...
src/pages/userBindNew/np/base-info.vue
View file @
81099525
...
...
@@ -131,6 +131,26 @@
class=
"auto"
>
</item>
<item>
<div
slot=
"name"
class=
"required"
>
年份
</div>
<input
slot=
"content"
v-model=
"baseInfo.id_card_no_yy"
readonly
placeholder=
"上传身份证自动填充"
class=
"auto"
>
</item>
<item>
<div
slot=
"name"
class=
"required"
>
月份
</div>
<input
slot=
"content"
v-model=
"baseInfo.id_card_no_mm"
readonly
placeholder=
"上传身份证自动填充"
class=
"auto"
>
</item>
<item>
<div
slot=
"name"
class=
"required"
>
户籍地址
</div>
<textarea
...
...
@@ -145,6 +165,42 @@
@
input=
"addRows(baseInfo.address_on_resident_booklit)"
/>
</item>
<item
:showArrow=
"true"
>
<div
slot=
"name"
class=
"required"
>
户籍地址省
</div>
<input
slot=
"content"
v-model=
"baseInfo.register_province_name"
placeholder=
"上传身份证自动填充"
type=
"text"
readonly
onfocus=
"this.blur()"
@
click=
"selectProvince()"
>
</item>
<item
:showArrow=
"true"
>
<div
slot=
"name"
class=
"required"
>
户籍地址市
</div>
<input
slot=
"content"
v-model=
"baseInfo.register_city_name"
placeholder=
"上传身份证自动填充"
type=
"text"
readonly
onfocus=
"this.blur()"
@
click=
"selectCity()"
>
</item>
<item
:showArrow=
"true"
>
<div
slot=
"name"
class=
"required"
>
户籍地址区/县
</div>
<input
slot=
"content"
v-model=
"baseInfo.register_district_name"
placeholder=
"上传身份证自动填充"
type=
"text"
readonly
onfocus=
"this.blur()"
@
click=
"selectDistrict()"
>
</item>
<item>
<div
slot=
"name"
class=
"required"
>
身份证有效期从
</div>
<input
...
...
@@ -166,6 +222,18 @@
class=
"auto"
>
</item>
<item
:showArrow=
"true"
>
<div
slot=
"name"
class=
"required"
>
驾照类型
</div>
<input
slot=
"content"
v-model=
"baseInfo.driving_license_type_n"
placeholder=
"请选择"
type=
"text"
readonly
onfocus=
"this.blur()"
@
click=
"selectDriving()"
>
</item>
<item>
<div
slot=
"name"
class=
"required"
>
手机号码
</div>
<input
slot=
"content"
v-model=
"baseInfo.cell_phone"
readonly
placeholder=
"请输入手机号码"
>
...
...
@@ -349,6 +417,7 @@ export default {
},
data
()
{
return
{
drivingList
:
[],
// 驾照类型
list
:
{},
idCardFrontUpload
:
''
,
idCardBackUpload
:
''
,
...
...
@@ -408,6 +477,12 @@ export default {
cell_phone
:
window
.
localStorage
.
getItem
(
'user_phone'
),
living_address
:
''
,
address_on_resident_booklit
:
''
,
register_province
:
''
,
register_province_name
:
''
,
register_city
:
''
,
register_city_name
:
''
,
register_district
:
''
,
register_district_name
:
''
,
marital_status
:
''
,
academic_background
:
''
,
bp_name_sp
:
''
,
...
...
@@ -421,6 +496,10 @@ export default {
address_sp
:
''
,
user_phone
:
window
.
localStorage
.
user_phone
,
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
handleUser
).
bp_id
,
id_card_no_mm
:
''
,
id_card_no_yy
:
''
,
driving_license_type
:
''
,
driving_license_type_n
:
''
,
},
idCardFront
:
''
,
// 身份证正面图片
idCardBack
:
''
,
// 身份证反面图片
...
...
@@ -486,15 +565,16 @@ export default {
},
},
created
()
{
async
created
()
{
this
.
getBpType
()
this
.
getEducationBackground
()
this
.
getMarital
()
this
.
getDrivingLicenseType
()
this
.
getProvince
()
},
beforeRouteEnter
(
to
,
from
,
next
)
{
// 绑定查询入口
next
(
vm
=>
{
next
(
async
vm
=>
{
vm
.
$route
.
meta
.
keepAlive
=
true
vm
.
isAddNewType
=
false
if
([
'/tab/my-info'
,
'/tab/function-center'
,
'/Setting'
,
'/myBindUser'
].
includes
(
from
.
fullPath
))
{
...
...
@@ -530,6 +610,12 @@ export default {
cell_phone
:
window
.
localStorage
.
getItem
(
'user_phone'
),
living_address
:
''
,
address_on_resident_booklit
:
''
,
register_province
:
''
,
register_province_name
:
''
,
register_city
:
''
,
register_city_name
:
''
,
register_district
:
''
,
register_district_name
:
''
,
marital_status
:
''
,
academic_background
:
''
,
bp_name_sp
:
''
,
...
...
@@ -543,6 +629,10 @@ export default {
address_sp
:
''
,
user_phone
:
window
.
localStorage
.
user_phone
,
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
handleUser
).
bp_id
,
id_card_no_mm
:
''
,
id_card_no_yy
:
''
,
driving_license_type
:
''
,
driving_license_type_n
:
''
,
}
vm
.
idCardFront
=
''
// 身份证正面图片
...
...
@@ -576,8 +666,8 @@ export default {
vm
.
from
=
true
window
.
localStorage
.
setItem
(
'from'
,
true
)
vm
.
basicInfoQuery
()
vm
.
loadItemList
(
true
)
// 附件查询
vm
.
getMultipleRole
()
// 获取第二角色
await
vm
.
getMultipleRole
()
// 获取第二角色
await
vm
.
loadItemList
(
true
)
// 附件查询
}
else
if
(
from
.
name
===
'UserBind'
)
{
vm
.
list
=
{}
window
.
localStorage
.
setItem
(
'from'
,
false
)
...
...
@@ -611,6 +701,12 @@ export default {
cell_phone
:
window
.
localStorage
.
getItem
(
'user_phone'
),
living_address
:
''
,
address_on_resident_booklit
:
''
,
register_province
:
''
,
register_province_name
:
''
,
register_city
:
''
,
register_city_name
:
''
,
register_district
:
''
,
register_district_name
:
''
,
marital_status
:
''
,
academic_background
:
''
,
bp_name_sp
:
''
,
...
...
@@ -624,6 +720,8 @@ export default {
address_sp
:
''
,
user_phone
:
window
.
localStorage
.
user_phone
,
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
handleUser
).
bp_id
,
id_card_no_mm
:
''
,
id_card_no_yy
:
''
,
}
vm
.
idCardFrontUpload
=
''
vm
.
idCardBackUpload
=
''
...
...
@@ -656,6 +754,31 @@ export default {
})
},
methods
:
{
// 驾照类型值集获取
async
getDrivingLicenseType
()
{
let
url
=
process
.
env
.
basePath
+
'app_get_syscode'
let
param
=
{
'DRIVING_LICENSE_TYPE'
:
'DRIVING_LICENSE_TYPE'
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
let
res
=
await
this
.
$post
(
url
,
param
)
this
.
hlsPopup
.
hideLoading
()
if
(
res
.
return_status
===
'S'
)
{
this
.
drivingList
=
res
.
DRIVING_LICENSE_TYPE
}
},
selectDriving
()
{
let
vm
=
this
vm
.
hlsPopup
.
selectList
({
list
:
vm
.
drivingList
,
code
:
'driving_type'
,
object
:
{},
returnItem
:
function
(
index
,
obj
)
{
vm
.
baseInfo
.
driving_license_type
=
obj
.
driving_type
vm
.
baseInfo
.
driving_license_type_n
=
obj
.
driving_type_n
},
})
},
// roleCancle () {
// this.inputNum = false
// },
...
...
@@ -928,7 +1051,7 @@ export default {
async
getMultipleRole
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'bp_role_query'
let
flag
=
vm
.
checkHasmultiple
()
let
flag
=
await
vm
.
checkHasmultiple
()
let
param
=
{
master
:
{
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
handleUser
).
bp_id
,
...
...
@@ -1397,8 +1520,11 @@ export default {
if
(
cardType
===
'idCard'
)
{
vm
.
baseInfo
.
bp_name
=
result
.
姓名
.
words
vm
.
baseInfo
.
id_card_no
=
result
.
公民身份号码
.
words
vm
.
baseInfo
.
id_card_no_yy
=
result
.
出生
.
words
.
slice
(
0
,
4
)
vm
.
baseInfo
.
id_card_no_mm
=
result
.
出生
.
words
.
slice
(
5
,
6
)
vm
.
baseInfo
.
address_on_resident_booklit
=
result
.
住址
.
words
vm
.
baseInfo
.
living_address
=
vm
.
baseInfo
.
address_on_resident_booklit
// 联系地址默认为户籍地址,支持修改
vm
.
getArea
(
result
.
公民身份号码
.
words
)
}
else
{
vm
.
baseInfo
.
bp_name_sp
=
result
.
姓名
.
words
vm
.
baseInfo
.
id_card_no_sp
=
result
.
公民身份号码
.
words
...
...
@@ -1571,40 +1697,70 @@ export default {
code
:
'bp_type'
,
object
:
{},
returnItem
:
function
(
index
,
obj
)
{
vm
.
baseInfo
.
province_id
=
obj
.
bp_type
vm
.
baseInfo
.
province_name
=
obj
.
bp_type_n
if
(
e
===
'register'
)
{
vm
.
baseInfo
.
register_province
=
obj
.
bp_type
vm
.
baseInfo
.
register_province_name
=
obj
.
bp_type_n
}
else
{
vm
.
baseInfo
.
province_id
=
obj
.
bp_type
vm
.
baseInfo
.
province_name
=
obj
.
bp_type_n
}
vm
.
getCity
()
},
})
},
selectCity
(
e
)
{
let
vm
=
this
if
(
vm
.
baseInfo
.
province_id
===
''
)
{
hlsPopup
.
showLongCenter
(
'请先选择省份'
)
if
(
e
===
'register'
)
{
if
(
vm
.
baseInfo
.
register_province
===
''
)
{
hlsPopup
.
showLongCenter
(
'请先选择省份'
)
}
}
else
{
if
(
vm
.
baseInfo
.
province_id
===
''
)
{
hlsPopup
.
showLongCenter
(
'请先选择省份'
)
}
}
vm
.
hlsPopup
.
selectList
({
list
:
vm
.
cityList
,
code
:
'bp_type'
,
object
:
{},
returnItem
:
function
(
index
,
obj
)
{
vm
.
baseInfo
.
city_id
=
obj
.
bp_type
vm
.
baseInfo
.
city_name
=
obj
.
bp_type_n
if
(
e
===
'register'
)
{
vm
.
baseInfo
.
register_city
=
obj
.
bp_type
vm
.
baseInfo
.
register_city_name
=
obj
.
bp_type_n
}
else
{
vm
.
baseInfo
.
city_id
=
obj
.
bp_type
vm
.
baseInfo
.
city_name
=
obj
.
bp_type_n
}
vm
.
getDistrict
()
},
})
},
selectDistrict
(
e
)
{
let
vm
=
this
if
(
vm
.
baseInfo
.
city_id
===
''
||
vm
.
baseInfo
.
province_id
===
''
)
{
hlsPopup
.
showLongCenter
(
'请先选择城市'
)
if
(
e
===
'register'
)
{
if
(
vm
.
baseInfo
.
register_province
===
''
||
vm
.
baseInfo
.
register_city
===
''
)
{
hlsPopup
.
showLongCenter
(
'请先选择城市'
)
}
}
else
{
if
(
vm
.
baseInfo
.
city_id
===
''
||
vm
.
baseInfo
.
province_id
===
''
)
{
hlsPopup
.
showLongCenter
(
'请先选择城市'
)
}
}
vm
.
hlsPopup
.
selectList
({
list
:
vm
.
districtList
,
code
:
'bp_type'
,
object
:
{},
returnItem
:
function
(
index
,
obj
)
{
vm
.
baseInfo
.
district_id
=
obj
.
bp_type
vm
.
baseInfo
.
district_name
=
obj
.
bp_type_n
if
(
e
===
'register'
)
{
vm
.
baseInfo
.
register_district
=
obj
.
bp_type
vm
.
baseInfo
.
register_district_name
=
obj
.
bp_type_n
}
else
{
vm
.
baseInfo
.
district_id
=
obj
.
bp_type
vm
.
baseInfo
.
district_name
=
obj
.
bp_type_n
}
},
})
},
...
...
@@ -1736,6 +1892,59 @@ export default {
width
:
'100% !important'
,
})
},
// 地址划分省市区
getArea
(
str
)
{
if
(
!
str
)
return
let
number
=
str
.
substr
(
0
,
6
)
let
p
=
number
.
substr
(
0
,
2
)
// 省 代码
let
c
=
number
.
substr
(
0
,
4
)
// 市代码
let
d
=
number
.
substr
(
0
,
6
)
// 区县代码
let
vm
=
this
vm
.
hlsHttp
.
post
(
process
.
env
.
basePath
+
'fnd_province_query'
,
{}).
then
(
function
(
res
)
{
if
(
res
.
result
===
'S'
)
{
res
.
lists
.
forEach
(
item
=>
{
if
(
item
.
province_code
.
indexOf
(
p
)
!==
-
1
)
{
vm
.
$set
(
vm
.
baseInfo
,
'register_province'
,
item
.
province_id
)
vm
.
$set
(
vm
.
baseInfo
,
'register_province_name'
,
item
.
province_name
)
}
})
}
}).
then
(
res
=>
{
// console.log('!', area.register_province)
if
(
vm
.
baseInfo
.
register_province
)
{
vm
.
hlsHttp
.
post
(
process
.
env
.
basePath
+
'fnd_city_query'
,
{
province_id
:
vm
.
baseInfo
.
register_province
,
}).
then
(
function
(
suc
)
{
if
(
suc
.
result
===
'S'
)
{
suc
.
lists
.
forEach
(
item
=>
{
if
(
item
.
city_code
.
indexOf
(
c
)
!==
-
1
)
{
vm
.
$set
(
vm
.
baseInfo
,
'register_city'
,
item
.
city_id
)
vm
.
$set
(
vm
.
baseInfo
,
'register_city_name'
,
item
.
city_name
)
}
})
}
}).
then
(
res
=>
{
// console.log('!', area.register_city)
if
(
vm
.
baseInfo
.
register_city
)
{
vm
.
hlsHttp
.
post
(
process
.
env
.
basePath
+
'fnd_district_query'
,
{
city_id
:
vm
.
baseInfo
.
register_city
,
}).
then
(
function
(
suc
)
{
if
(
suc
.
result
===
'S'
)
{
suc
.
lists
.
forEach
(
item
=>
{
if
(
item
.
district_code
.
indexOf
(
d
)
!==
-
1
)
{
vm
.
$set
(
vm
.
baseInfo
,
'register_district'
,
item
.
district_id
)
vm
.
$set
(
vm
.
baseInfo
,
'register_district_name'
,
item
.
district_name
)
}
})
}
})
}
})
}
})
},
},
}
</
script
>
...
...
src/pages/userBindNew/org/baseInfo.vue
View file @
81099525
...
...
@@ -149,6 +149,37 @@
@
input=
"addRows(baseInfo.registered_place)"
/>
</item>
<item
v-if=
"businessDateShow"
:showArrow=
"true"
>
<div
slot=
"name"
class=
"required"
>
营业期限从
</div>
<input
slot=
"content"
v-model=
"baseInfo.business_term_from"
type=
"text"
onfocus=
"this.blur()"
placeholder=
"上传营业执照自动填充"
@
click=
"selectTime('YYYY-MM-DD',0)"
>
</item>
<item
v-if=
"businessDateShow"
:showArrow=
"true"
>
<div
slot=
"name"
class=
"required"
>
营业期限到
</div>
<input
slot=
"content"
v-model=
"baseInfo.business_term_to"
placeholder=
"上传营业执照自动填充"
type=
"text"
onfocus=
"this.blur()"
@
click=
"selectTime('YYYY-MM-DD',1)"
>
</item>
<item
v-if=
"!businessDateShow"
>
<div
slot=
"name"
class=
"required"
>
营业期限
</div>
<input
slot=
"content"
v-model=
"baseInfo.business_term_type_n"
placeholder=
"上传营业执照自动填充"
class=
"auto"
>
</item>
<item>
<div
slot=
"name"
class=
"required"
>
资产信息
</div>
<input
slot=
"content"
v-model=
"baseInfo.capital"
placeholder=
"请输入资产信息"
>
...
...
@@ -285,7 +316,7 @@
<input
slot=
"content"
v-model=
"legal_personMsg.cell_phone"
placeholder=
"请输入手机号"
@
blur=
"phoneCheck(legal_personMsg.cell_phone)"
>
</item>
</item>
<item>
<div
slot=
"name"
class=
"font-color required"
>
联系地址
</div>
<textarea
...
...
@@ -299,6 +330,98 @@
/>
</item>
</list-item>
<!-- 实际控制人信息-->
<div
class=
"userInfo types"
>
实际控制人
</div>
<div
class=
"upload-id-cards"
>
<span>
身份证照片上传
</span>
<div
class=
"upload-box"
>
<div
v-if=
"!idCardFront_c"
@
click=
"ocrShow('idCard_c', 'front')"
>
<img
src=
"@/assets/userBind/org/front.png"
>
<p>
正面
</p>
</div>
<div
v-if=
"idCardFront_c && !isApproved"
@
click=
"ocrShow('idCard_c', 'front')"
>
<img
:src=
"idCardFront_c"
style=
"width: 100%;height: 100%;margin: 0"
>
</div>
<div
v-if=
"isApproved && idCardFront_c"
>
<img
v-if=
"idCardFront_c"
:src=
"idCardFront_c"
style=
"width: 100%;height: 100%;margin: 0"
@
click=
"showBigPicture(idCardFront_c)"
>
</div>
<div
v-if=
"!idCardBack_c"
@
click=
"ocrShow('idCard_c', 'back')"
>
<img
src=
"@/assets/userBind/org/back.png"
>
<p>
反面
</p>
</div>
<div
v-if=
"idCardBack_c && !isApproved"
@
click=
"ocrShow('idCard_c', 'back')"
>
<img
:src=
"idCardBack_c"
style=
"width: 100%;height: 100%;margin: 0"
>
</div>
<div
v-if=
"isApproved && idCardBack_c"
>
<img
v-if=
"idCardBack_c"
:src=
"idCardBack_c"
style=
"width: 100%;height: 100%;margin: 0"
@
click=
"showBigPicture(idCardBack_c)"
>
</div>
</div>
</div>
<list-item
:item-height=
"44"
class=
"second-part"
>
<item>
<div
slot=
"name"
class=
"font-color"
>
姓名
</div>
<input
slot=
"content"
v-model=
"control_personMsg.bp_control_name"
readonly
placeholder=
"上传身份证自动填充"
class=
"auto"
>
</item>
<item>
<div
slot=
"name"
class=
"font-color"
>
身份证号
</div>
<input
slot=
"content"
v-model=
"control_personMsg.id_card_no_c"
readonly
placeholder=
"上传身份证自动填充"
class=
"auto"
>
</item>
<item>
<div
slot=
"name"
>
身份证有效期从
</div>
<input
slot=
"content"
v-model=
"control_personMsg.id_card_date_from_c"
readonly
placeholder=
"上传身份证自动填充"
class=
"auto"
>
</item>
<item>
<div
slot=
"name"
>
身份证有效期到
</div>
<input
slot=
"content"
v-model=
"control_personMsg.id_card_date_to_c"
readonly
placeholder=
"上传身份证自动填充"
class=
"auto"
>
</item>
<item>
<div
slot=
"name"
class=
"font-color"
>
手机号
</div>
<input
slot=
"content"
v-model=
"control_personMsg.cell_phone_c"
placeholder=
"请输入手机号"
@
blur=
"phoneCheck(control_personMsg.cell_phone_c)"
>
</item>
<item>
<div
slot=
"name"
class=
"font-color"
>
联系地址
</div>
<textarea
ref=
"address"
slot=
"content"
v-model=
"control_personMsg.living_address_c"
cols=
"30"
rows=
"1"
placeholder=
"请输入联系地址"
@
input=
"addAddressRows(control_personMsg.living_address_c)"
/>
</item>
</list-item>
<!-- 授权切换 -->
<div
class=
"authorize"
>
...
...
@@ -456,6 +579,8 @@ export default {
hasPeople
:
false
,
// 是否有第二角色
idCardFrontUpload
:
''
,
idCardBackUpload
:
''
,
idCardFrontUpload_c
:
''
,
idCardBackUpload_c
:
''
,
authidCardFrontUpload
:
''
,
authidCardBackUpload
:
''
,
licenseImgUpload
:
''
,
...
...
@@ -498,6 +623,15 @@ export default {
id_card_date_from
:
''
,
// 法定代表人身份证有效期从
id_card_date_to
:
''
,
// 法定代表人身份证有效期到
},
// 实际控制人
control_personMsg
:
{
id_card_no_c
:
null
,
bp_control_name
:
''
,
cell_phone_c
:
window
.
localStorage
.
getItem
(
'user_phone'
),
living_address_c
:
''
,
id_card_date_from_c
:
''
,
id_card_date_to_c
:
''
,
},
baseInfo
:
{
agent_username
:
''
,
district_id
:
''
,
...
...
@@ -518,6 +652,9 @@ export default {
registered_place
:
''
,
organization_code
:
''
,
registered_capital
:
''
,
business_term_type_n
:
''
,
business_term_from
:
''
,
business_term_to
:
''
,
// business_license_num: '',
bp_class
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_class
||
'ORG'
,
},
...
...
@@ -532,6 +669,8 @@ export default {
},
idCardFront
:
''
,
// 身份证正面图片
idCardBack
:
''
,
// 身份证反面图片
idCardFront_c
:
''
,
// 身份证正面图片
idCardBack_c
:
''
,
// 身份证反面图片
authidCardFront
:
''
,
// 授权人身份证正面图片
authidCardBack
:
''
,
// 授权人身份证反面图片
licenseImg
:
''
,
// 营业执照照片
...
...
@@ -540,6 +679,8 @@ export default {
idCardFrontUrlFlag
:
false
,
// 身份证正面图片,为false则用查询出来的,为true则用拍照出来的
idCardBackUrlFlag
:
false
,
// 身份证反面图片,为false则用查询出来的,为true则用拍照出来的
idCardFrontUrlFlag_c
:
false
,
// 身份证正面图片,为false则用查询出来的,为true则用拍照出来的
idCardBackUrlFlag_c
:
false
,
// 身份证反面图片,为false则用查询出来的,为true则用拍照出来的
authidCardFrontUrlFlag
:
false
,
// 授权人身份证正面图片,为false则用查询出来的,为true则用拍照出来的
authidCardBackUrlFlag
:
false
,
// 授权人身份证反面图片,为false则用查询出来的,为true则用拍照出来的
licenseImgUrlFlag
:
false
,
// 营业执照照片,为false则用查询出来的,为true则用拍照出来的
...
...
@@ -549,6 +690,8 @@ export default {
cddItemList
:
[],
// 资料清单列表
idCardFrontCheck_id
:
''
,
// 身份证正面check_id
idCardBackCheck_id
:
''
,
// 身份证背面check_id
idCardFrontCheck_id_c
:
''
,
// 身份证正面check_id
idCardBackCheck_id_c
:
''
,
// 身份证背面check_id
authidCardFrontCheck_id
:
''
,
// 授权人身份证正面check_id
authidCardBackCheck_id
:
''
,
// 授权人身份证背面check_id
bankCardCheck_id
:
''
,
// 银行卡check_id
...
...
@@ -557,6 +700,8 @@ export default {
idCardFrontAttachmentId
:
''
,
// 身份证正面AttachmentId
idCardBackAttachmentId
:
''
,
// 身份证背面AttachmentId
idCardFrontAttachmentId_c
:
''
,
// 身份证正面AttachmentId
idCardBackAttachmentId_c
:
''
,
// 身份证背面AttachmentId
authidCardFrontAttachmentId
:
''
,
// 授权人身份证正面AttachmentId
authidCardBackAttachmentId
:
''
,
// 授权人身份证背面AttachmentId
licenseAttachmentId
:
''
,
// 营业执照AttachmentId
...
...
@@ -564,12 +709,16 @@ export default {
bankCardImgList
:
[],
// 存上传银行卡图片列表
idCardFrontEditFlag
:
false
,
// 身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
idCardBackEditFlag
:
false
,
// 身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
idCardFrontEditFlag_c
:
false
,
// 身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
idCardBackEditFlag_c
:
false
,
// 身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
authidCardFrontEditFlag
:
false
,
// 授权人身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
authidCardBackEditFlag
:
false
,
// 授权人身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
licenseEditFlag
:
false
,
// 营业执照照片修改标识,为true则标识已修改,后续需要重新上传此照片
LaEditFlag
:
false
,
// 授权书图片修改标识,为true则标识已修改,后续需要重新上传此照片
isClear
:
false
,
mysetTimeout
:
null
,
businessDateShow
:
true
,
}
},
computed
:
{},
...
...
@@ -594,6 +743,7 @@ export default {
vm
.
type
=
'请输入业务经办员工代码'
vm
.
typeName
=
'业务经办人'
vm
.
bp_type_flag
=
true
}
else
if
(
vm
.
baseInfo
.
bp_type
===
'AGENT'
||
vm
.
baseInfo
.
bp_type
===
'OFFICE'
||
...
...
@@ -615,7 +765,7 @@ export default {
},
created
()
{},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
next
(
async
vm
=>
{
vm
.
$route
.
meta
.
keepAlive
=
true
vm
.
getBpType
()
vm
.
getProvince
()
...
...
@@ -632,6 +782,14 @@ export default {
id_card_date_from
:
''
,
// 法定代表人身份证有效期从
id_card_date_to
:
''
,
// 法定代表人身份证有效期到
}
vm
.
control_personMsg
=
{
id_card_no_c
:
null
,
bp_control_name
:
''
,
cell_phone_c
:
''
,
living_address_c
:
''
,
id_card_date_from_c
:
''
,
id_card_date_to_c
:
''
,
}
vm
.
hasPeople
=
false
if
(
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_status
===
'APPROVED'
)
{
vm
.
isApproved
=
true
...
...
@@ -661,6 +819,9 @@ export default {
registered_capital
:
''
,
// business_license_num: '',
bp_class
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_class
||
'ORG'
,
business_term_type_n
:
''
,
business_term_from
:
''
,
business_term_to
:
''
,
}
vm
.
authMsg
=
{
auth_person_name
:
''
,
...
...
@@ -676,10 +837,14 @@ export default {
vm
.
bp_id
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
vm
.
idCardFrontUpload
=
''
vm
.
idCardBackUpload
=
''
vm
.
idCardFrontUpload_c
=
''
vm
.
idCardBackUpload_c
=
''
vm
.
authidCardFrontUpload
=
''
vm
.
authidCardBackUpload
=
''
vm
.
idCardFront
=
''
// 身份证正面图片
vm
.
idCardBack
=
''
// 身份证反面图片
vm
.
idCardFront_c
=
''
// 身份证正面图片
vm
.
idCardBack_c
=
''
// 身份证反面图片
vm
.
authidCardFront
=
''
// 授权人身份证正面图片
vm
.
authidCardBack
=
''
// 授权人身份证反面图片
vm
.
licenseImg
=
''
// 营业执照照片
...
...
@@ -690,6 +855,8 @@ export default {
vm
.
idCardFrontEditFlag
=
false
// 身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm
.
idCardBackEditFlag
=
false
// 身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm
.
idCardFrontEditFlag_c
=
false
// 身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm
.
idCardBackEditFlag_c
=
false
// 身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm
.
authidCardFrontEditFlag
=
false
// 授权人身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm
.
authidCardBackEditFlag
=
false
// 授权人身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm
.
licenseEditFlag
=
false
// 营业执照照片修改标识,为true则标识已修改,后续需要重新上传此照片
...
...
@@ -700,12 +867,14 @@ export default {
vm
.
idCardFrontUrlFlag
=
false
// 身份证正面图片,为false则用查询出来的,为true则用拍照出来的
vm
.
idCardBackUrlFlag
=
false
// 身份证反面图片,为false则用查询出来的,为true则用拍照出来的
vm
.
idCardFrontUrlFlag_c
=
false
// 身份证正面图片,为false则用查询出来的,为true则用拍照出来的
vm
.
idCardBackUrlFlag_c
=
false
// 身份证反面图片,为false则用查询出来的,为true则用拍照出来的
vm
.
authidCardFrontUrlFlag
=
false
// 授权人身份证正面图片,为false则用查询出来的,为true则用拍照出来的
vm
.
authidCardBackUrlFlag
=
false
// 授权人身份证反面图片,为false则用查询出来的,为true则用拍照出来的
vm
.
licenseImgUrlFlag
=
false
// 营业执照照片,为false则用查询出来的,为true则用拍照出来的
vm
.
laImgUrlFlag
=
false
// 授权书图片,为false则用查询出来的,为true则用拍照出来的
vm
.
getbaseInfo
()
vm
.
getMultipleRole
()
// 获取第二角色
await
vm
.
getMultipleRole
()
// 获取第二角色
await
vm
.
getbaseInfo
()
}
else
if
(
from
.
name
===
'UserBind'
)
{
window
.
localStorage
.
setItem
(
'from'
,
false
)
vm
.
isMultiRole
=
false
...
...
@@ -726,6 +895,14 @@ export default {
id_card_date_from
:
''
,
// 法定代表人身份证有效期从
id_card_date_to
:
''
,
// 法定代表人身份证有效期到
}
vm
.
control_personMsg
=
{
id_card_no_c
:
null
,
bp_control_name
:
''
,
cell_phone_c
:
''
,
living_address_c
:
''
,
id_card_date_from_c
:
''
,
id_card_date_to_c
:
''
,
}
vm
.
idCardFrontUpload
=
''
vm
.
idCardBackUpload
=
''
vm
.
authidCardFrontUpload
=
''
...
...
@@ -752,6 +929,9 @@ export default {
registered_capital
:
''
,
// business_license_num: '',
bp_class
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_class
||
'ORG'
,
business_term_type_n
:
''
,
business_term_from
:
''
,
business_term_to
:
''
,
}
vm
.
authMsg
=
{
auth_person_name
:
''
,
...
...
@@ -764,6 +944,8 @@ export default {
}
vm
.
idCardFront
=
''
// 身份证正面图片
vm
.
idCardBack
=
''
// 身份证反面图片
vm
.
idCardFront_c
=
''
// 身份证正面图片
vm
.
idCardBack_c
=
''
// 身份证反面图片
vm
.
authidCardFront
=
''
// 授权人身份证正面图片
vm
.
authidCardBack
=
''
// 授权人身份证反面图片
vm
.
licenseImg
=
''
// 营业执照照片
...
...
@@ -774,6 +956,8 @@ export default {
vm
.
hasPeople
=
false
vm
.
idCardFrontEditFlag
=
false
// 身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm
.
idCardBackEditFlag
=
false
// 身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm
.
idCardFrontEditFlag_c
=
false
// 身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm
.
idCardBackEditFlag_c
=
false
// 身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm
.
authidCardFrontEditFlag
=
false
// 授权人身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm
.
authidCardBackEditFlag
=
false
// 授权人身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm
.
licenseEditFlag
=
false
// 营业执照照片修改标识,为true则标识已修改,后续需要重新上传此照片
...
...
@@ -782,6 +966,8 @@ export default {
vm
.
from
=
false
vm
.
idCardFrontUrlFlag
=
false
// 身份证正面图片,为false则用查询出来的,为true则用拍照出来的
vm
.
idCardBackUrlFlag
=
false
// 身份证反面图片,为false则用查询出来的,为true则用拍照出来的
vm
.
idCardFrontUrlFlag_c
=
false
// 身份证正面图片,为false则用查询出来的,为true则用拍照出来的
vm
.
idCardBackUrlFlag_c
=
false
// 身份证反面图片,为false则用查询出来的,为true则用拍照出来的
vm
.
authidCardFrontUrlFlag
=
false
// 授权人身份证正面图片,为false则用查询出来的,为true则用拍照出来的
vm
.
authidCardBackUrlFlag
=
false
// 授权人身份证反面图片,为false则用查询出来的,为true则用拍照出来的
vm
.
licenseImgUrlFlag
=
false
// 营业执照照片,为false则用查询出来的,为true则用拍照出来的
...
...
@@ -849,7 +1035,7 @@ export default {
async
getMultipleRole
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'bp_role_query'
let
flag
=
vm
.
checkHasmultiple
()
let
flag
=
await
vm
.
checkHasmultiple
()
let
param
=
{
master
:
{
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
...
...
@@ -868,6 +1054,7 @@ export default {
vm
.
hasMultiRole
=
true
}
if
(
res
.
lists
.
length
>
0
)
{
vm
.
bp_type_flag
=
true
}
}
else
{
...
...
@@ -891,6 +1078,7 @@ export default {
vm
.
hasMultiRole
=
false
vm
.
hasPeople
=
false
vm
.
bp_type_flag
=
false
return
false
}
},
...
...
@@ -1084,11 +1272,11 @@ export default {
window
.
localStorage
.
setItem
(
'authFlag'
,
this
.
flag
)
if
(
!
this
.
flag
)
{
// 已授权
this
.
baseInfo
.
auth_flag
=
'Y'
this
.
lastInfo
=
{...
this
.
baseInfo
,
...
this
.
legal_personMsg
,
...
this
.
authMsg
}
this
.
lastInfo
=
{...
this
.
baseInfo
,
...
this
.
legal_personMsg
,
...
this
.
authMsg
,
...
this
.
control_personMsg
}
this
.
saveInfo
=
{...
this
.
lastInfo
}
}
else
{
// 未授权
this
.
baseInfo
.
auth_flag
=
'N'
this
.
lastInfo
=
{...
this
.
baseInfo
,
...
this
.
legal_personMsg
}
this
.
lastInfo
=
{...
this
.
baseInfo
,
...
this
.
legal_personMsg
,
...
this
.
control_personMsg
}
this
.
saveInfo
=
{
...
this
.
lastInfo
,
...
this
.
authMsg
,
...
...
@@ -1119,7 +1307,7 @@ export default {
return
}
for
(
var
key
in
vm
.
lastInfo
)
{
if
(
key
!==
'bp_class'
&&
!
vm
.
lastInfo
[
key
]
&&
key
!==
'phone'
)
{
if
(
key
!==
'bp_class'
&&
!
vm
.
lastInfo
[
key
]
&&
key
!==
'phone'
&&
!
key
.
includes
(
'_c'
)
&&
!
key
.
includes
(
'business_term_'
)
)
{
switch
(
key
)
{
case
'province_id'
:
vm
.
hlsPopup
.
showLongCenter
(
'请选择省份'
)
...
...
@@ -1201,7 +1389,6 @@ export default {
break
}
// vm.hlsPopup.showLongCenter('基本信息不完整!')
vm
.
msg_flag
=
false
return
}
else
{
vm
.
msg_flag
=
true
...
...
@@ -1225,7 +1412,7 @@ export default {
return
}
for
(
var
key1
in
vm
.
lastInfo
)
{
if
(
!
vm
.
lastInfo
[
key1
]
&&
key1
!==
'phone'
)
{
if
(
!
vm
.
lastInfo
[
key1
]
&&
key1
!==
'phone'
&&
!
key
.
includes
(
'_c'
)
&&
!
key
.
includes
(
'business_term_'
)
)
{
console
.
log
(
'key'
,
key1
)
switch
(
key1
)
{
case
'bp_type'
:
...
...
@@ -1306,6 +1493,7 @@ export default {
}
// vm.hlsPopup.showLongCenter('基本信息不完整!')
vm
.
msg_flag
=
false
return
}
else
{
vm
.
msg_flag
=
true
...
...
@@ -1317,14 +1505,29 @@ export default {
if
(
vm
.
hlsUtil
.
isCardID
(
vm
.
saveInfo
.
id_card_no
))
{
vm
.
msg_flag
=
false
vm
.
hlsPopup
.
showLongCenter
(
'身份证不正确'
)
}
if
(
!
vm
.
flag
)
{
if
(
vm
.
hlsUtil
.
isCardID
(
vm
.
saveInfo
.
auth_person_id_card
))
{
vm
.
msg_flag
=
false
vm
.
hlsPopup
.
showLongCenter
(
'授权人身份证不正确'
)
}
}
if
(
vm
.
lastInfo
.
business_term_type
===
'FIXED_TERM'
)
{
if
(
!
vm
.
lastInfo
.
business_term_from
&&
!
vm
.
lastInfo
.
business_term_to
)
{
vm
.
msg_flag
=
false
console
.
log
(
'营业期限2'
,
!
vm
.
lastInfo
.
business_term_from
,
!
vm
.
lastInfo
.
business_term_to
);
vm
.
hlsPopup
.
showLongCenter
(
'营业期限未填'
)
}
}
else
{
if
(
!
vm
.
lastInfo
.
business_term_type_n
)
{
vm
.
msg_flag
=
false
console
.
log
(
'营业期限2'
,
!
vm
.
lastInfo
.
business_term_type_n
);
vm
.
hlsPopup
.
showLongCenter
(
'营业期限未填'
)
}
}
if
(
vm
.
msg_flag
)
{
vm
.
dowload_list
=
[]
// 保存之前将图片下载列表清空,防止出现重复的图片
...
...
@@ -1381,6 +1584,12 @@ export default {
case
'LEGAL_ID_CARD_B'
:
// 法定代表人身份证背面
vm
.
idCardBackCheck_id
=
item
.
check_id
break
case
'CTRL_ID_CARD_F'
:
// 实际控制人身份证正面
vm
.
idCardFrontCheck_id_c
=
item
.
check_id
break
case
'CTRL_ID_CARD_B'
:
// 实际控制人身份证背面
vm
.
idCardBackCheck_id_c
=
item
.
check_id
break
case
'AUTHOR_ID_CARD_F'
:
// 授权人身份证正面
vm
.
authidCardFrontCheck_id
=
item
.
check_id
break
...
...
@@ -1448,6 +1657,42 @@ export default {
vm
.
save_picture
(
list
)
vm
.
idCardBackEditFlag
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
if
(
vm
.
idCardFrontEditFlag_c
)
{
// 实际控制人身份证正面图片已修改,重新上传
vm
.
idCardFrontUrlFlag_c
=
true
vm
.
delete_pic_to_ocr
(
vm
.
idCardFrontAttachmentId_c
)
// 先删除之前识别的图片
let
list
=
[]
let
obj
=
{
'pkvalue'
:
vm
.
idCardFrontCheck_id_c
,
'source_type'
:
'PRJ_CDD_ITEM_CHECK'
,
'picture'
:
''
,
'check_id'
:
vm
.
idCardFrontCheck_id_c
,
'filePath'
:
vm
.
idCardFront_c
,
'attachment_id'
:
''
,
'user_id'
:
1
,
'fileName'
:
'实际控制人身份证正面'
,
}
list
.
push
(
obj
)
vm
.
save_picture
(
list
)
vm
.
idCardFrontEditFlag_c
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
if
(
vm
.
idCardBackEditFlag_c
)
{
// 实际控制人代表人身份证背面图片已修改,重新上传
vm
.
idCardBackUrlFlag_c
=
true
vm
.
delete_pic_to_ocr
(
vm
.
idCardBackAttachmentId_c
)
// 先删除之前识别的图片
let
list
=
[]
let
obj
=
{
'pkvalue'
:
vm
.
idCardBackCheck_id_c
,
'source_type'
:
'PRJ_CDD_ITEM_CHECK'
,
'picture'
:
''
,
'check_id'
:
vm
.
idCardBackCheck_id_c
,
'filePath'
:
vm
.
idCardBack_c
,
'attachment_id'
:
''
,
'user_id'
:
1
,
'fileName'
:
'实际控制人身份证背面'
,
}
list
.
push
(
obj
)
vm
.
save_picture
(
list
)
vm
.
idCardBackEditFlag_c
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
if
(
vm
.
authidCardFrontEditFlag
)
{
// 授权人身份证正面图片已修改,重新上传
vm
.
authidCardFrontUrlFlag
=
true
vm
.
delete_pic_to_ocr
(
vm
.
authidCardFrontAttachmentId
)
// 先删除之前识别的图片
...
...
@@ -1543,6 +1788,21 @@ export default {
this
.
checkUpdate
()
}
},
// 选择日期
selectTime
(
format
,
flag
)
{
let
vm
=
this
hlsPopup
.
showTime
({
nowDate
:
(
new
Date
()).
format
(
'YYYY-MM-DD'
),
format
:
format
,
callback
:
(
date
)
=>
{
if
(
flag
)
{
vm
.
$set
(
vm
.
baseInfo
,
'business_term_to'
,
date
)
}
else
{
vm
.
$set
(
vm
.
baseInfo
,
'business_term_from'
,
date
)
}
},
})
},
// 选择省份
selectProvince
(
e
)
{
let
vm
=
this
...
...
@@ -1760,6 +2020,16 @@ export default {
if
(
res
.
result
===
'S'
)
{
delete
res
.
info
.
bp_id
vm
.
baseInfo
=
{...
res
.
info
}
if
(
res
.
info
.
business_term_type
===
'FIXED_TERM'
)
{
vm
.
baseInfo
.
business_term_from
=
/
\d{4}
-
\d{1,2}
-
\d{1,2}
/g
.
exec
(
res
.
info
.
business_term_from
)[
0
]
vm
.
baseInfo
.
business_term_to
=
/
\d{4}
-
\d{1,2}
-
\d{1,2}
/g
.
exec
(
res
.
info
.
business_term_to
)[
0
]
vm
.
businessDateShow
=
true
}
if
(
res
.
info
.
business_term_type
===
'LONG_TERM'
)
{
vm
.
baseInfo
.
business_term_type_n
=
'长期'
vm
.
businessDateShow
=
false
}
console
.
log
(
vm
.
baseInfo
)
vm
.
authMsg
.
auth_person_name
=
res
.
info
.
auth_person_name
vm
.
authMsg
.
auth_person_matter
=
res
.
info
.
auth_person_matter
vm
.
authMsg
.
auth_person_id_card
=
res
.
info
.
auth_person_id_card
...
...
@@ -1774,6 +2044,14 @@ export default {
vm
.
legal_personMsg
.
living_address
=
res
.
info
.
living_address
vm
.
legal_personMsg
.
id_card_date_from
=
res
.
info
.
id_card_date_from
vm
.
legal_personMsg
.
id_card_date_to
=
res
.
info
.
id_card_date_to
vm
.
control_personMsg
.
id_card_no_c
=
res
.
info
.
id_card_no_c
vm
.
control_personMsg
.
bp_control_name
=
res
.
info
.
bp_control_name
vm
.
control_personMsg
.
cell_phone_c
=
res
.
info
.
cell_phone_c
vm
.
control_personMsg
.
living_address_c
=
res
.
info
.
living_address_c
vm
.
control_personMsg
.
id_card_date_from_c
=
res
.
info
.
id_card_date_from_c
vm
.
control_personMsg
.
id_card_date_to_c
=
res
.
info
.
id_card_date_to_c
Object
.
assign
(
vm
.
saveInfo
,
res
.
info
)
vm
.
addRows
(
res
.
info
.
registered_place
)
vm
.
addRowsLive
(
res
.
info
.
business_address
)
...
...
@@ -1844,6 +2122,8 @@ export default {
}
else
{
if
(
ocrType
===
'idCard'
)
{
type
===
'front'
?
(
vm
.
idCardFront
=
hlsUtil
.
convertImageUrl
(
imgdata
),
vm
.
idCardIdentify
(
imgdata
,
'idCard'
),
vm
.
idCardFrontUpload
=
imgdata
,
vm
.
idCardFrontEditFlag
=
true
)
:
(
vm
.
idCardBack
=
hlsUtil
.
convertImageUrl
(
imgdata
),
vm
.
idCardBackIdentify
(
imgdata
,
'idCard'
),
vm
.
idCardBackUpload
=
imgdata
,
vm
.
idCardBackEditFlag
=
true
)
}
else
if
(
ocrType
===
'idCard_c'
)
{
type
===
'front'
?
(
vm
.
idCardFront_c
=
hlsUtil
.
convertImageUrl
(
imgdata
),
vm
.
idCardIdentify
(
imgdata
,
'idCard_c'
),
vm
.
idCardFrontUpload_c
=
imgdata
,
vm
.
idCardFrontEditFlag_c
=
true
)
:
(
vm
.
idCardBack_c
=
hlsUtil
.
convertImageUrl
(
imgdata
),
vm
.
idCardBackIdentify
(
imgdata
,
'idCard_c'
),
vm
.
idCardBackUpload_c
=
imgdata
,
vm
.
idCardBackEditFlag_c
=
true
)
}
else
if
(
ocrType
===
'authidCard'
)
{
type
===
'front'
?
(
vm
.
authidCardFront
=
hlsUtil
.
convertImageUrl
(
imgdata
),
vm
.
idCardIdentify
(
imgdata
,
'authidCard'
),
vm
.
authidCardFrontUpload
=
imgdata
,
vm
.
authidCardFrontEditFlag
=
true
)
:
(
vm
.
authidCardBack
=
hlsUtil
.
convertImageUrl
(
imgdata
),
vm
.
idCardBackIdentify
(
imgdata
,
'authidCard'
),
vm
.
authidCardBackUpload
=
imgdata
,
vm
.
authidCardBackEditFlag
=
true
)
}
else
if
(
ocrType
===
'license'
)
{
...
...
@@ -1873,6 +2153,8 @@ export default {
}
else
{
if
(
ocrType
===
'idCard'
)
{
type
===
'front'
?
(
vm
.
idCardFront
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
]),
vm
.
idCardIdentify
(
imgUrl
[
0
],
'idCard'
),
vm
.
idCardFrontUpload
=
imgUrl
[
0
],
vm
.
idCardFrontEditFlag
=
true
)
:
(
vm
.
idCardBack
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
]),
vm
.
idCardBackIdentify
(
imgUrl
[
0
],
'idCard'
),
vm
.
idCardBackUpload
=
imgUrl
[
0
],
vm
.
idCardBackEditFlag
=
true
)
}
else
if
(
ocrType
===
'idCard_c'
)
{
type
===
'front'
?
(
vm
.
idCardFront_c
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
]),
vm
.
idCardIdentify
(
imgUrl
[
0
],
'idCard_c'
),
vm
.
idCardFrontUpload_c
=
imgUrl
[
0
],
vm
.
idCardFrontEditFlag_c
=
true
)
:
(
vm
.
idCardBack_c
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
]),
vm
.
idCardBackIdentify
(
imgUrl
[
0
],
'idCard_c'
),
vm
.
idCardBackUpload_c
=
imgUrl
[
0
],
vm
.
idCardBackEditFlag_c
=
true
)
}
else
if
(
ocrType
===
'authidCard'
)
{
type
===
'front'
?
(
vm
.
authidCardFront
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
]),
vm
.
idCardIdentify
(
imgUrl
[
0
],
'authidCard'
),
vm
.
authidCardFrontUpload
=
imgUrl
[
0
],
vm
.
authidCardFrontEditFlag
=
true
)
:
(
vm
.
authidCardBack
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
]),
vm
.
idCardBackIdentify
(
imgUrl
[
0
],
'authidCard'
),
vm
.
authidCardBackUpload
=
imgUrl
[
0
],
vm
.
authidCardBackEditFlag
=
true
)
}
else
if
(
ocrType
===
'license'
)
{
...
...
@@ -1901,6 +2183,11 @@ export default {
vm
.
legal_personMsg
.
bp_legal_name
=
result
.
姓名
.
words
vm
.
legal_personMsg
.
id_card_no
=
result
.
公民身份号码
.
words
vm
.
legal_personMsg
.
living_address
=
result
.
住址
.
words
// 联系地址默认为户籍地址,支持修改
}
else
if
(
cardType
===
'idCard_c'
)
{
// 实际控制人
// 未授权 姓名,身份证号
vm
.
control_personMsg
.
bp_control_name
=
result
.
姓名
.
words
vm
.
control_personMsg
.
id_card_no_c
=
result
.
公民身份号码
.
words
vm
.
control_personMsg
.
living_address_c
=
result
.
住址
.
words
// 联系地址默认为户籍地址,支持修改
}
else
{
// 授权人
// 已授权 姓名,身份证号
vm
.
authMsg
.
auth_person_name
=
result
.
姓名
.
words
...
...
@@ -1929,6 +2216,19 @@ export default {
}
else
{
vm
.
legal_personMsg
.
id_card_date_to
=
vm
.
timeFormat
(
result
.
失效日期
.
words
)
}
}
else
if
(
cardType
===
'idCard_c'
)
{
// 法定代表人
// 未授权 身份证有效期从,身份证有效期到
vm
.
control_personMsg
.
id_card_date_from_c
=
vm
.
timeFormat
(
result
.
签发日期
.
words
)
if
(
result
.
失效日期
.
words
.
indexOf
(
'长期'
)
!=
-
1
)
{
hlsPopup
.
showPopup
({
title
:
'提示'
,
content
:
`检测到您的身份证为长期有效,系统自动置为【9999-12-31】`
,
onConfirm
:
()
=>
{},
})
vm
.
control_personMsg
.
id_card_date_to_c
=
'9999-12-31'
}
else
{
vm
.
control_personMsg
.
id_card_date_to_c
=
vm
.
timeFormat
(
result
.
失效日期
.
words
)
}
}
else
{
// 已授权 身份证有效期从,身份证有效期到
vm
.
authMsg
.
auth_id_card_date_from
=
vm
.
timeFormat
(
result
.
签发日期
.
words
)
...
...
@@ -1959,6 +2259,18 @@ export default {
vm
.
baseInfo
.
legal_person
=
result
.
法人
.
words
vm
.
baseInfo
.
registered_place
=
result
.
地址
.
words
vm
.
baseInfo
.
business_address
=
vm
.
baseInfo
.
registered_place
// 经营地址默认为注册地址,支持修改
// 营业期限
if
([
'长期'
,
'永久'
].
indexOf
(
result
.
有效期
.
words
)
!==
-
1
)
{
vm
.
businessDateShow
=
false
vm
.
baseInfo
.
business_term_type_n
=
'长期'
vm
.
baseInfo
.
business_term_type
=
'LONG_TERM'
}
else
{
vm
.
businessDateShow
=
true
vm
.
baseInfo
.
business_term_to
=
(
result
.
有效期
.
words
).
replace
(
'年'
,
'-'
).
replace
(
'月'
,
'-'
).
replace
(
'日'
,
''
)
vm
.
baseInfo
.
business_term_from
=
(
result
.
有效期起始日期
.
words
).
replace
(
'年'
,
'-'
).
replace
(
'月'
,
'-'
).
replace
(
'日'
,
''
)
vm
.
baseInfo
.
business_term_type
=
'FIXED_TERM'
vm
.
baseInfo
.
business_term_type_n
=
'固定期限'
}
if
(
result
.
社会信用代码
.
words
.
includes
(
'('
))
{
let
index
=
result
.
社会信用代码
.
words
.
indexOf
(
'('
)
...
...
@@ -1994,6 +2306,18 @@ export default {
}
vm
.
idCardBackAttachmentId
=
res
.
lists
[
0
].
attachment_id
break
case
'CTRL_ID_CARD_F'
:
// 实际控制人身份证正面
if
(
!
vm
.
idCardFrontUrlFlag_c
)
{
vm
.
idCardFront_c
=
res
.
lists
[
0
].
url
}
vm
.
idCardFrontAttachmentId_c
=
res
.
lists
[
0
].
attachment_id
break
case
'CTRL_ID_CARD_B'
:
// 实际控制人身份证背面
if
(
!
vm
.
idCardBackUrlFlag_c
)
{
vm
.
idCardBack_c
=
res
.
lists
[
0
].
url
}
vm
.
idCardBackAttachmentId_c
=
res
.
lists
[
0
].
attachment_id
break
case
'AUTHOR_ID_CARD_F'
:
// 授权人身份证正面
if
(
!
vm
.
authidCardFrontUrlFlag
)
{
vm
.
authidCardFront
=
res
.
lists
[
0
].
url
...
...
@@ -2055,6 +2379,12 @@ export default {
case
'LEGAL_ID_CARD_B'
:
// 法定代表人身份证背面
vm
.
idCardBackCheck_id
=
item
.
check_id
break
case
'CTRL_ID_CARD_F'
:
// 法定代表人身份证正面
vm
.
idCardFrontCheck_id_c
=
item
.
check_id
break
case
'CTRL_ID_CARD_B'
:
// 法定代表人身份证背面
vm
.
idCardBackCheck_id_c
=
item
.
check_id
break
case
'AUTHOR_ID_CARD_F'
:
// 授权人身份证正面
vm
.
authidCardFrontCheck_id
=
item
.
check_id
break
...
...
src/pages/userBindNew/org/enclosure.vue
View file @
81099525
...
...
@@ -15,297 +15,345 @@
</h-header>
<h-content>
<div
v-for=
"(list, index) in cddItemList"
:key=
"index"
class=
"card2"
>
<span
class=
"descript-color"
>
{{
list
.
description
}}
</span>
<div
style=
"display:flex"
>
<span
class=
"descript-color"
>
{{
list
.
description
}}
</span>
<span
@
click=
"addFile(list.cdd_item)"
>
添加
</span>
</div>
<div
class=
"img-content"
>
<!-- 房产 -->
<div
v-if=
"list.cdd_item==='HOUSE_CARD'"
>
<div
v-if=
"!houseImg"
class=
"card-upload plus"
@
click=
"ocrShow(list.cdd_item, '')"
>
<img
src=
"@/assets/userBind/camera.png"
class=
"upload-btn"
>
</div>
<!-- 通过 -->
<div
v-if=
"houseImg&&isApproved"
class=
"card-upload"
>
<img
:src=
"houseImg"
@
click=
"showBigPicture(houseImg)"
>
</div>
<!-- 未通过 -->
<div
v-if=
"houseImg&&!isApproved"
class=
"card-upload"
>
<img
:src=
"houseImg"
@
click=
"ocrShow(list.cdd_item, '')"
>
</div>
</div>
<div
v-if=
"list.cdd_item==='HOUSE_CARD'"
>
<list-item
:item-height=
"44"
class=
"card-Info"
>
<item>
<div
slot=
"name"
>
房屋所有权人
</div>
<input
slot=
"content"
v-model=
"hauseInfo.house_owner"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
共有情况
</div>
<input
slot=
"content"
v-model=
"hauseInfo.public_situation"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
房屋坐落
</div>
<textarea
slot=
"content"
v-model=
"hauseInfo.house_located"
cols=
"22"
rows=
"1"
placeholder=
"识别房产证自动填充"
@
input=
"addRow(hauseInfo.house_located,$enent)"
/>
</item>
<item>
<div
slot=
"name"
>
登记时间
</div>
<input
slot=
"content"
v-model=
"hauseInfo.regist_date"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
房屋性质
</div>
<input
slot=
"content"
v-model=
"hauseInfo.house_property"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
规划用途
</div>
<input
slot=
"content"
v-model=
"hauseInfo.plan_purpose"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
总层数
</div>
<input
slot=
"content"
v-model=
"hauseInfo.house_layers"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
建筑面积
</div>
<input
slot=
"content"
v-model=
"hauseInfo.built_area"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
套内建筑面积
</div>
<input
slot=
"content"
v-model=
"hauseInfo.built_in_area"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
其他
</div>
<input
slot=
"content"
v-model=
"hauseInfo.others"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
地号
</div>
<input
slot=
"content"
v-model=
"hauseInfo.land_number"
placeholder=
"识别房产证自动填充"
>
</item>
<item
:proportion=
"[1,1]"
>
<div
slot=
"name"
>
土地使用权取得方式
</div>
<input
slot=
"content"
v-model=
"hauseInfo.land_get_method"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
土地使用年限
</div>
<input
slot=
"content"
v-model=
"hauseInfo.land_use_limit"
placeholder=
"识别房产证自动填充"
>
</item>
</list-item>
</div>
<Collapse
v-model=
"activeNames_h"
v-if=
"list.cdd_item==='HOUSE_CARD'"
>
<CollapseItem
v-for=
"(item,index) in hauseInfo"
:key=
"'h'+index"
:name=
"'h'+index"
:title=
"list.description+(index+1)"
>
<div>
<div
v-if=
"!houseImg[index]"
class=
"card-upload plus"
@
click=
"ocrShow(list.cdd_item, '',index)"
>
<img
src=
"@/assets/userBind/camera.png"
class=
"upload-btn"
>
</div>
<!-- 通过 -->
<div
v-if=
"houseImg[index]&&isApproved"
class=
"card-upload"
>
<img
:src=
"houseImg[index]"
@
click=
"showBigPicture(houseImg[index])"
>
</div>
<!-- 未通过 -->
<div
v-if=
"houseImg[index]&&!isApproved"
class=
"card-upload"
>
<img
:src=
"houseImg[index]"
@
click=
"ocrShow(list.cdd_item, '',index)"
>
</div>
</div>
<div>
<list-item
:item-height=
"44"
class=
"card-Info"
>
<item>
<div
slot=
"name"
>
房屋所有权人
</div>
<input
slot=
"content"
v-model=
"item.house_owner"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
共有情况
</div>
<input
slot=
"content"
v-model=
"item.public_situation"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
房屋坐落
</div>
<textarea
slot=
"content"
v-model=
"item.house_located"
cols=
"22"
rows=
"1"
placeholder=
"识别房产证自动填充"
@
input=
"addRow(item.house_located,$enent)"
/>
</item>
<item>
<div
slot=
"name"
>
登记时间
</div>
<input
slot=
"content"
v-model=
"item.regist_date"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
房屋性质
</div>
<input
slot=
"content"
v-model=
"item.house_property"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
规划用途
</div>
<input
slot=
"content"
v-model=
"item.plan_purpose"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
总层数
</div>
<input
slot=
"content"
v-model=
"item.house_layers"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
建筑面积
</div>
<input
slot=
"content"
v-model=
"item.built_area"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
套内建筑面积
</div>
<input
slot=
"content"
v-model=
"item.built_in_area"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
其他
</div>
<input
slot=
"content"
v-model=
"item.others"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
地号
</div>
<input
slot=
"content"
v-model=
"item.land_number"
placeholder=
"识别房产证自动填充"
>
</item>
<item
:proportion=
"[1,1]"
>
<div
slot=
"name"
>
土地使用权取得方式
</div>
<input
slot=
"content"
v-model=
"item.land_get_method"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
土地使用年限
</div>
<input
slot=
"content"
v-model=
"item.land_use_limit"
placeholder=
"识别房产证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
房产省份
</div>
<input
slot=
"content"
v-model=
"item.house_province"
placeholder=
"请输入"
>
</item>
<item>
<div
slot=
"name"
>
城市
</div>
<input
slot=
"content"
v-model=
"item.house_city"
placeholder=
"请输入"
>
</item>
<item>
<div
slot=
"name"
>
房产面积
</div>
<input
slot=
"content"
v-model=
"item.house_area"
placeholder=
"请输入"
>
</item>
<item>
<div
slot=
"name"
>
房产价值
</div>
<input
slot=
"content"
v-model=
"item.house_value"
placeholder=
"请输入"
>
</item>
<item>
<div
slot=
"name"
>
现有房产性质
</div>
<input
slot=
"content"
v-model=
"item.house_prop"
placeholder=
"请输入"
>
</item>
</list-item>
</div>
</CollapseItem>
</Collapse>
<!-- 不动产 -->
<div
v-if=
"list.cdd_item==='REAL_EST_CERTIFICATE'"
>
<div
v-if=
"!propertyImg"
class=
"card-upload plus"
@
click=
"ocrShow(list.cdd_item, '')"
>
<img
src=
"@/assets/userBind/camera.png"
class=
"upload-btn"
>
</div>
<Collapse
v-model=
"activeNames_p"
v-if=
"list.cdd_item==='REAL_EST_CERTIFICATE'"
>
<CollapseItem
v-for=
"(item,index) in propertyInfo"
:key=
"'p'+index"
:name=
"'p'+index"
:title=
"list.description+(index+1)"
>
<div>
<div
v-if=
"!propertyImg[index]"
class=
"card-upload plus"
@
click=
"ocrShow(list.cdd_item, '',index)"
>
<img
src=
"@/assets/userBind/camera.png"
class=
"upload-btn"
>
</div>
<div
v-if=
"propertyImg&&isApproved"
class=
"card-upload"
>
<img
:src=
"propertyImg"
@
click=
"showBigPicture(propertyImg)"
>
</div>
<div
v-if=
"propertyImg[index]&&isApproved"
class=
"card-upload"
>
<img
:src=
"propertyImg[index]"
@
click=
"showBigPicture(propertyImg[index])"
>
</div>
<div
v-if=
"propertyImg[index]&&!isApproved"
class=
"card-upload"
>
<img
:src=
"propertyImg[index]"
@
click=
"ocrShow(list.cdd_item, '',index)"
>
</div>
</div>
<div>
<list-item
:item-height=
"44"
class=
"card-Info"
>
<item>
<div
slot=
"name"
>
权利人
</div>
<input
slot=
"content"
v-model=
"item.right_person"
placeholder=
"识别不动产权证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
共有情况
</div>
<input
slot=
"content"
v-model=
"item.public_situation"
placeholder=
"识别不动产权证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
坐落
</div>
<textarea
slot=
"content"
v-model=
"item.house_located"
cols=
"22"
rows=
"1"
contenteditable=
"true"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(item.house_located,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
不动产单元号
</div>
<textarea
slot=
"content"
v-model=
"item.real_unit_number"
cols=
"22"
rows=
"1"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(item.real_unit_number,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
权利类型
</div>
<textarea
slot=
"content"
v-model=
"item.right_type"
cols=
"22"
rows=
"1"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(item.right_type,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
权利性质
</div>
<textarea
slot=
"content"
v-model=
"item.right_property"
cols=
"22"
rows=
"1"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(item.right_property,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
用途
</div>
<textarea
slot=
"content"
v-model=
"item.house_purpose"
cols=
"22"
rows=
"2"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(item.house_purpose,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
面积
</div>
<textarea
slot=
"content"
v-model=
"item.house_area"
cols=
"22"
rows=
"2"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(item.house_area,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
使用期限
</div>
<textarea
slot=
"content"
v-model=
"item.land_use_limit"
cols=
"22"
rows=
"2"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(item.land_use_limit,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
权利其他状况
</div>
<textarea
slot=
"content"
v-model=
"item.right_others"
cols=
"22"
rows=
"2"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(item.right_others,$event)"
/>
</item>
</list-item>
</div>
</collapseItem>
</Collapse>
<div
v-if=
"propertyImg&&!isApproved"
class=
"card-upload"
>
<img
:src=
"propertyImg"
@
click=
"ocrShow(list.cdd_item, '')"
>
</div>
</div>
<div
v-if=
"list.cdd_item==='REAL_EST_CERTIFICATE'"
>
<list-item
:item-height=
"44"
class=
"card-Info"
>
<item>
<div
slot=
"name"
>
权利人
</div>
<input
slot=
"content"
v-model=
"propertyInfo.right_person"
placeholder=
"识别不动产权证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
共有情况
</div>
<input
slot=
"content"
v-model=
"propertyInfo.public_situation"
placeholder=
"识别不动产权证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
坐落
</div>
<textarea
slot=
"content"
v-model=
"propertyInfo.house_located"
cols=
"22"
rows=
"1"
contenteditable=
"true"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(propertyInfo.house_located,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
不动产单元号
</div>
<textarea
slot=
"content"
v-model=
"propertyInfo.real_unit_number"
cols=
"22"
rows=
"1"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(propertyInfo.real_unit_number,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
权利类型
</div>
<textarea
slot=
"content"
v-model=
"propertyInfo.right_type"
cols=
"22"
rows=
"1"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(propertyInfo.right_type,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
权利性质
</div>
<textarea
slot=
"content"
v-model=
"propertyInfo.right_property"
cols=
"22"
rows=
"1"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(propertyInfo.right_property,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
用途
</div>
<textarea
slot=
"content"
v-model=
"propertyInfo.house_purpose"
cols=
"22"
rows=
"2"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(propertyInfo.house_purpose,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
面积
</div>
<textarea
slot=
"content"
v-model=
"propertyInfo.house_area"
cols=
"22"
rows=
"2"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(propertyInfo.house_area,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
使用期限
</div>
<textarea
slot=
"content"
v-model=
"propertyInfo.land_use_limit"
cols=
"22"
rows=
"2"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(propertyInfo.land_use_limit,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
权利其他状况
</div>
<textarea
slot=
"content"
v-model=
"propertyInfo.right_others"
cols=
"22"
rows=
"2"
placeholder=
"识别不动产权证自动填充"
@
input=
"addRow(propertyInfo.right_others,$event)"
/>
</item>
</list-item>
</div>
<!-- 车辆 -->
<div
v-if=
"list.cdd_item==='CAR_CARD'"
>
<div
v-if=
"!carImg"
class=
"card-upload plus"
@
click=
"ocrShow(list.cdd_item, '')"
>
<img
src=
"@/assets/userBind/camera.png"
class=
"upload-btn"
>
</div>
<!-- 通过 -->
<div
v-if=
"carImg&&isApproved"
class=
"card-upload"
>
<img
:src=
"carImg"
@
click=
"showBigPicture(carImg)"
>
</div>
<!-- 未通过 -->
<div
v-if=
"carImg&&!isApproved"
class=
"card-upload"
>
<img
:src=
"carImg"
@
click=
"ocrShow(list.cdd_item, '')"
>
</div>
</div>
<div
v-if=
"list.cdd_item==='CAR_CARD'"
>
<list-item
:item-height=
"44"
class=
"card-Info"
>
<item>
<div
slot=
"name"
>
车辆识别代号
</div>
<input
slot=
"content"
v-model=
"carInfo.vehicle_identify_num"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
住址
</div>
<textarea
slot=
"content"
v-model=
"carInfo.address"
cols=
"22"
rows=
"2"
placeholder=
"识别行驶证自动填充"
@
input=
"addRow(carInfo.address,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
品牌型号
</div>
<input
slot=
"content"
v-model=
"carInfo.brand_model_number"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
发证日期
</div>
<input
slot=
"content"
v-model=
"carInfo.start_date"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
车辆类型
</div>
<input
slot=
"content"
v-model=
"carInfo.vehicle_type"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
所有人
</div>
<input
slot=
"content"
v-model=
"carInfo.owner"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
使用性质
</div>
<input
slot=
"content"
v-model=
"carInfo.use_nature"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
发动机号码
</div>
<input
slot=
"content"
v-model=
"carInfo.engine_number"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
号牌号码
</div>
<input
slot=
"content"
v-model=
"carInfo.plate_number"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
注册日期
</div>
<input
slot=
"content"
v-model=
"carInfo.regist_date"
placeholder=
"识别行驶证自动填充"
>
</item>
</list-item>
</div>
<Collapse
v-model=
"activeNames_c"
v-if=
"list.cdd_item==='CAR_CARD'"
>
<CollapseItem
v-for=
"(item,index) in carInfo"
:key=
"'c'+index"
:name=
"'c'+index"
:title=
"list.description+(index+1)"
>
<div
>
<div
v-if=
"!carImg[index]"
class=
"card-upload plus"
@
click=
"ocrShow(list.cdd_item, '',index)"
>
<img
src=
"@/assets/userBind/camera.png"
class=
"upload-btn"
>
</div>
<!-- 通过 -->
<div
v-if=
"carImg[index]&&isApproved"
class=
"card-upload"
>
<img
:src=
"carImg[index]"
@
click=
"showBigPicture(carImg[index])"
>
</div>
<!-- 未通过 -->
<div
v-if=
"carImg[index]&&!isApproved"
class=
"card-upload"
>
<img
:src=
"carImg[index]"
@
click=
"ocrShow(list.cdd_item, '',index)"
>
</div>
</div>
<div
>
<list-item
:item-height=
"44"
class=
"card-Info"
>
<item>
<div
slot=
"name"
>
车辆识别代号
</div>
<input
slot=
"content"
v-model=
"item.vehicle_identify_num"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
住址
</div>
<textarea
slot=
"content"
v-model=
"item.address"
cols=
"22"
rows=
"2"
placeholder=
"识别行驶证自动填充"
@
input=
"addRow(item.address,$event)"
/>
</item>
<item>
<div
slot=
"name"
>
品牌型号
</div>
<input
slot=
"content"
v-model=
"item.brand_model_number"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
发证日期
</div>
<input
slot=
"content"
v-model=
"item.start_date"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
车辆类型
</div>
<input
slot=
"content"
v-model=
"item.vehicle_type"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
所有人
</div>
<input
slot=
"content"
v-model=
"item.owner"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
使用性质
</div>
<input
slot=
"content"
v-model=
"item.use_nature"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
发动机号码
</div>
<input
slot=
"content"
v-model=
"item.engine_number"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
号牌号码
</div>
<input
slot=
"content"
v-model=
"item.plate_number"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
注册日期
</div>
<input
slot=
"content"
v-model=
"item.regist_date"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
车辆信息
</div>
<input
slot=
"content"
v-model=
"item.vehicle_info"
placeholder=
"识别行驶证自动填充"
>
</item>
<item>
<div
slot=
"name"
>
车辆价值
</div>
<input
slot=
"content"
v-model=
"item.vehicle_value"
placeholder=
"识别行驶证自动填充"
>
</item>
</list-item>
</div>
</CollapseItem>
</Collapse>
<!-- 其他 -->
<div
v-if=
"list.cdd_item==='ASSETS_CARD'"
>
<!--待上传图片列表-->
...
...
@@ -343,35 +391,44 @@
</h-view>
</
template
>
<
script
>
import
{
Collapse
,
CollapseItem
}
from
'vant'
import
'vant/lib/collapse/style'
import
'vant/lib/collapse-item/style'
export
default
{
components
:
{
Collapse
,
CollapseItem
},
data
()
{
return
{
activeNames_h
:
[
0
],
activeNames_p
:
[
0
],
activeNames_c
:
[
0
],
house_id
:
''
,
// 房产证checkid
car_id
:
''
,
// 车辆证checkid
property_id
:
''
,
// 不动产checkid
carFlag
:
false
,
// 行驶证查看标识,为false则用查询出来的,为true则用拍照出来的
houseFlag
:
false
,
// 房产证查看标识,为false则用查询出来的,为true则用拍照出来的
propertyFlag
:
false
,
// 不动产证查看标识,为false则用查询出来的,为true则用拍照出来的
carImg
:
''
,
houseImg
:
''
,
houseImgUpload
:
''
,
carImgUpload
:
''
,
estateImgUpload
:
''
,
propertyImg
:
''
,
// 不动产识别图片
carFlag
:
[
false
]
,
// 行驶证查看标识,为false则用查询出来的,为true则用拍照出来的
houseFlag
:
[
false
]
,
// 房产证查看标识,为false则用查询出来的,为true则用拍照出来的
propertyFlag
:
[
false
]
,
// 不动产证查看标识,为false则用查询出来的,为true则用拍照出来的
carImg
:
[
''
]
,
houseImg
:
[
''
]
,
houseImgUpload
:
[
''
]
,
carImgUpload
:
[
''
]
,
estateImgUpload
:
[
''
]
,
propertyImg
:
[
''
]
,
// 不动产识别图片
from
:
false
,
bp_id
:
''
,
flag
:
false
,
isApproved
:
false
,
isUploadCar
:
false
,
isUploadHouse
:
false
,
isUploadProperty
:
false
,
carAttachmentId
:
''
,
// 车辆证id
houseAttachmentId
:
''
,
// 房产证id
propertyAttachmentId
:
''
,
// 不动产证id
isUploadCar
:
[
false
]
,
isUploadHouse
:
[
false
]
,
isUploadProperty
:
[
false
]
,
carAttachmentId
:
[
''
]
,
// 车辆证id
houseAttachmentId
:
[
''
]
,
// 房产证id
propertyAttachmentId
:
[
''
]
,
// 不动产证id
cddItemList
:
[],
// 资料清单列表
dowload_list
:
[],
// 下载图片列表
upload_list
:
[],
// 上传图片列表
carInfo
:
{
// 行驶证
carInfo
:
[
{
// 行驶证
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
vehicle_identify_num
:
''
,
address
:
''
,
...
...
@@ -385,8 +442,10 @@ export default {
regist_date
:
''
,
words_result_num
:
''
,
success
:
''
,
},
hauseInfo
:
{
// 房产证
vehicle_info
:
''
,
vehicle_value
:
''
,
}],
hauseInfo
:
[{
// 房产证
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
house_owner
:
''
,
public_situation
:
''
,
...
...
@@ -401,8 +460,13 @@ export default {
land_number
:
''
,
land_get_method
:
''
,
land_use_limit
:
''
,
},
propertyInfo
:
{
// 不动产证
house_province
:
''
,
house_city
:
''
,
house_area
:
''
,
house_value
:
''
,
house_prop
:
''
,
}],
propertyInfo
:
[{
// 不动产证
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
right_person
:
''
,
public_situation
:
''
,
...
...
@@ -414,7 +478,7 @@ export default {
house_area
:
''
,
land_use_limit
:
''
,
right_others
:
''
,
},
}
]
,
mysetTimeout
:
null
,
}
},
...
...
@@ -423,16 +487,19 @@ export default {
next
(
vm
=>
{
if
(
from
.
name
===
'Invoice'
&&
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
from
)
{
console
.
log
(
'1--'
)
vm
.
carFlag
=
false
// 行驶证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
houseFlag
=
false
// 房产证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
propertyFlag
=
false
// 不动产证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
isUploadCar
=
false
vm
.
isUploadHouse
=
false
vm
.
isUploadProperty
=
false
vm
.
carImg
=
''
vm
.
houseImg
=
''
vm
.
propertyImg
=
''
// 不动产识别图片
vm
.
propertyInfo
=
{
// 不动产证
vm
.
carFlag
=
[
false
]
// 行驶证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
houseFlag
=
[
false
]
// 房产证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
propertyFlag
=
[
false
]
// 不动产证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
isUploadCar
=
[
false
]
vm
.
isUploadHouse
=
[
false
]
vm
.
isUploadProperty
=
[
false
]
vm
.
carAttachmentId
=
[
''
]
// 车辆证id
vm
.
houseAttachmentId
=
[
''
]
// 房产证id
vm
.
propertyAttachmentId
=
[
''
]
// 不动产证id
vm
.
carImg
=
[
''
]
vm
.
houseImg
=
[
''
]
vm
.
propertyImg
=
[
''
]
// 不动产识别图片
vm
.
propertyInfo
=
[{
// 不动产证
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
right_person
:
''
,
public_situation
:
''
,
...
...
@@ -444,8 +511,8 @@ export default {
house_area
:
''
,
land_use_limit
:
''
,
right_others
:
''
,
}
vm
.
hauseInfo
=
{
// 房产证
}
]
vm
.
hauseInfo
=
[
{
// 房产证
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
house_owner
:
''
,
public_situation
:
''
,
...
...
@@ -460,8 +527,12 @@ export default {
land_number
:
''
,
land_get_method
:
''
,
land_use_limit
:
''
,
}
vm
.
carInfo
=
{
// 行驶证
house_city
:
''
,
house_area
:
''
,
house_value
:
''
,
house_prop
:
''
,
}]
vm
.
carInfo
=
[{
// 行驶证
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
vehicle_identify_num
:
''
,
address
:
''
,
...
...
@@ -475,10 +546,12 @@ export default {
regist_date
:
''
,
words_result_num
:
''
,
success
:
''
,
}
vm
.
houseImgUpload
=
''
vm
.
carImgUpload
=
''
vm
.
estateImgUpload
=
''
vehicle_info
:
''
,
vehicle_value
:
''
,
}]
vm
.
houseImgUpload
=
[
''
]
vm
.
carImgUpload
=
[
''
]
vm
.
estateImgUpload
=
[
''
]
vm
.
upload_list
=
[]
// 上传图片列表
vm
.
dowload_list
=
[]
vm
.
cddItemList
=
[]
...
...
@@ -486,20 +559,24 @@ export default {
vm
.
bp_id
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
vm
.
loadItemList
(
true
)
vm
.
houseQuery
()
// vm.carQuery()
// vm.propertyQuery() // 不动产权证查询
}
else
if
(
from
.
name
===
'Invoice'
&&
!
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
from
)
{
console
.
log
(
'2--'
)
vm
.
carFlag
=
false
// 行驶证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
houseFlag
=
false
// 房产证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
propertyFlag
=
false
// 不动产证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
isUploadCar
=
false
vm
.
isUploadHouse
=
false
vm
.
isUploadProperty
=
false
vm
.
carImg
=
''
vm
.
houseImg
=
''
vm
.
propertyImg
=
''
// 不动产识别图片
vm
.
propertyInfo
=
{
// 不动产证
vm
.
carFlag
=
[
false
]
// 行驶证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
houseFlag
=
[
false
]
// 房产证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
propertyFlag
=
[
false
]
// 不动产证查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
isUploadCar
=
[
false
]
vm
.
isUploadHouse
=
[
false
]
vm
.
isUploadProperty
=
[
false
]
vm
.
carAttachmentId
=
[
''
]
// 车辆证id
vm
.
houseAttachmentId
=
[
''
]
// 房产证id
vm
.
propertyAttachmentId
=
[
''
]
// 不动产证id
vm
.
carImg
=
[
''
]
vm
.
houseImg
=
[
''
]
vm
.
propertyImg
=
[
''
]
// 不动产识别图片
vm
.
propertyInfo
=
[{
// 不动产证
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
right_person
:
''
,
public_situation
:
''
,
...
...
@@ -511,8 +588,8 @@ export default {
house_area
:
''
,
land_use_limit
:
''
,
right_others
:
''
,
}
vm
.
hauseInfo
=
{
// 房产证
}
]
vm
.
hauseInfo
=
[
{
// 房产证
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
house_owner
:
''
,
public_situation
:
''
,
...
...
@@ -527,8 +604,12 @@ export default {
land_number
:
''
,
land_get_method
:
''
,
land_use_limit
:
''
,
}
vm
.
carInfo
=
{
// 行驶证
house_city
:
''
,
house_area
:
''
,
house_value
:
''
,
house_prop
:
''
,
}]
vm
.
carInfo
=
[{
// 行驶证
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
vehicle_identify_num
:
''
,
address
:
''
,
...
...
@@ -542,10 +623,12 @@ export default {
regist_date
:
''
,
words_result_num
:
''
,
success
:
''
,
}
vm
.
houseImgUpload
=
''
vm
.
carImgUpload
=
''
vm
.
estateImgUpload
=
''
vehicle_info
:
''
,
vehicle_value
:
''
,
}]
vm
.
houseImgUpload
=
[
''
]
vm
.
carImgUpload
=
[
''
]
vm
.
estateImgUpload
=
[
''
]
vm
.
upload_list
=
[]
// 上传图片列表
vm
.
dowload_list
=
[]
vm
.
cddItemList
=
[]
...
...
@@ -555,7 +638,9 @@ export default {
}
})
},
created
()
{},
created
()
{
this
.
getDrivingLicenseType
()
},
updated
()
{
let
myArea
=
document
.
querySelectorAll
(
'textarea'
)
myArea
.
forEach
(
i
=>
{
...
...
@@ -566,6 +651,65 @@ export default {
})
},
methods
:
{
// 按类型添加文件
addFile
(
type
)
{
let
vm
=
this
if
(
type
===
'HOUSE_CARD'
)
{
vm
.
hauseInfo
.
push
({
// 房产证
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
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
:
''
,
house_city
:
''
,
house_area
:
''
,
house_value
:
''
,
house_prop
:
''
,
})
}
else
if
(
type
===
'CAR_CARD'
)
{
vm
.
carInfo
.
push
({
// 行驶证
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
vehicle_identify_num
:
''
,
address
:
''
,
brand_model_number
:
''
,
start_date
:
''
,
vehicle_type
:
''
,
owner
:
''
,
use_nature
:
''
,
engine_number
:
''
,
plate_number
:
''
,
regist_date
:
''
,
words_result_num
:
''
,
success
:
''
,
vehicle_info
:
''
,
vehicle_value
:
''
,
})
}
else
if
(
type
===
'REAL_EST_CERTIFICATE'
)
{
vm
.
propertyInfo
.
push
({
// 不动产证
bp_id
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'handleUser'
)).
bp_id
,
right_person
:
''
,
public_situation
:
''
,
house_located
:
''
,
real_unit_number
:
''
,
right_type
:
''
,
right_property
:
''
,
house_purpose
:
''
,
house_area
:
''
,
land_use_limit
:
''
,
right_others
:
''
,
})
}
},
addRow
(
e
,
event
)
{
// let num = Math.ceil((el.target.scrollHeight - 42) / 20)
// if (num > 0) {
...
...
@@ -650,7 +794,9 @@ export default {
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'bp_vehicleLicense_save'
let
param
=
{
master
:
vm
.
carInfo
,
master
:
{
lists
:
vm
.
carInfo
,
},
}
hlsPopup
.
showLoading
(
'请稍候'
)
let
res
=
await
vm
.
$post
(
url
,
param
)
...
...
@@ -667,7 +813,9 @@ export default {
let
url
=
process
.
env
.
basePath
+
'bp_real_estate_save'
let
isSaveCar
=
await
vm
.
saveCarInfo
()
let
param
=
{
master
:
vm
.
propertyInfo
,
master
:
{
lists
:
vm
.
propertyInfo
,
},
}
if
(
isSaveCar
)
{
let
res
=
await
vm
.
$post
(
url
,
param
)
...
...
@@ -684,7 +832,9 @@ export default {
let
url
=
process
.
env
.
basePath
+
'bp_house_info_save'
let
isSaveEstate
=
await
vm
.
savePropertyInfo
()
let
param
=
{
master
:
vm
.
hauseInfo
,
master
:
{
lists
:
vm
.
hauseInfo
,
},
}
if
(
isSaveEstate
)
{
hlsPopup
.
showLoading
(
'请稍候'
)
...
...
@@ -739,79 +889,87 @@ export default {
},
verified
()
{
let
vm
=
this
if
(
vm
.
isUploadHouse
)
{
vm
.
houseFlag
=
true
vm
.
delete_pic_to_ocr
(
vm
.
houseAttachmentId
)
// 房产证修改,重新上传
let
list
=
[]
let
obj
=
{
pkvalue
:
vm
.
house_id
,
source_type
:
'PRJ_CDD_ITEM_CHECK'
,
picture
:
''
,
check_id
:
vm
.
house_id
,
filePath
:
vm
.
houseImgUpload
,
attachment_id
:
''
,
user_id
:
1
,
fileName
:
'房产证'
,
vm
.
isUploadHouse
.
forEach
((
item
,
index
)
=>
{
if
(
item
)
{
vm
.
houseFlag
[
index
]
=
true
vm
.
delete_pic_to_ocr
(
vm
.
houseAttachmentId
[
index
])
// 房产证修改,重新上传
let
list
=
[]
let
obj
=
{
pkvalue
:
vm
.
house_id
,
source_type
:
'PRJ_CDD_ITEM_CHECK'
,
picture
:
''
,
check_id
:
vm
.
house_id
,
filePath
:
vm
.
houseImgUpload
[
index
],
attachment_id
:
''
,
user_id
:
1
,
fileName
:
'房产证'
,
}
list
.
push
(
obj
)
vm
.
save_picture
(
list
)
vm
.
isUploadHouse
[
index
]
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
list
.
push
(
obj
)
vm
.
save_picture
(
list
)
vm
.
isUploadHouse
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
if
(
vm
.
isUploadCar
)
{
vm
.
carFlag
=
true
vm
.
delete_pic_to_ocr
(
vm
.
carAttachmentId
)
// 房产证修改,重新上传
let
list
=
[]
let
obj
=
{
pkvalue
:
vm
.
car_id
,
source_type
:
'PRJ_CDD_ITEM_CHECK'
,
picture
:
''
,
check_id
:
vm
.
car_id
,
filePath
:
vm
.
carImgUpload
,
attachment_id
:
''
,
user_id
:
1
,
fileName
:
'行驶证'
,
})
vm
.
isUploadCar
.
forEach
((
item
,
index
)
=>
{
if
(
item
)
{
vm
.
carFlag
[
index
]
=
true
vm
.
delete_pic_to_ocr
(
vm
.
carAttachmentId
[
index
])
// 房产证修改,重新上传
let
list
=
[]
let
obj
=
{
pkvalue
:
vm
.
car_id
,
source_type
:
'PRJ_CDD_ITEM_CHECK'
,
picture
:
''
,
check_id
:
vm
.
car_id
,
filePath
:
vm
.
carImgUpload
[
index
],
attachment_id
:
''
,
user_id
:
1
,
fileName
:
'行驶证'
,
}
list
.
push
(
obj
)
vm
.
save_picture
(
list
)
vm
.
isUploadCar
[
index
]
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
list
.
push
(
obj
)
vm
.
save_picture
(
list
)
vm
.
isUploadCar
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
if
(
vm
.
isUploadProperty
)
{
vm
.
propertyFlag
=
true
vm
.
delete_pic_to_ocr
(
vm
.
propertyAttachmentId
)
// 房产证修改,重新上传
let
list
=
[]
let
obj
=
{
pkvalue
:
vm
.
property_id
,
source_type
:
'PRJ_CDD_ITEM_CHECK'
,
picture
:
''
,
check_id
:
vm
.
property_id
,
filePath
:
vm
.
estateImgUpload
,
attachment_id
:
''
,
user_id
:
1
,
fileName
:
'不动产权证'
,
})
vm
.
isUploadProperty
.
forEach
((
item
,
index
)
=>
{
if
(
item
)
{
vm
.
propertyFlag
[
index
]
=
true
vm
.
delete_pic_to_ocr
(
vm
.
propertyAttachmentId
[
index
])
// 房产证修改,重新上传
let
list
=
[]
let
obj
=
{
pkvalue
:
vm
.
property_id
,
source_type
:
'PRJ_CDD_ITEM_CHECK'
,
picture
:
''
,
check_id
:
vm
.
property_id
,
filePath
:
vm
.
estateImgUpload
[
index
],
attachment_id
:
''
,
user_id
:
1
,
fileName
:
'不动产权证'
,
}
list
.
push
(
obj
)
vm
.
save_picture
(
list
)
vm
.
isUploadProperty
[
index
]
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
list
.
push
(
obj
)
vm
.
save_picture
(
list
)
vm
.
isUploadProperty
=
false
// 置为false,防止再次保存重复上传,只有重新识别才会重新上传
}
})
// vm.savePropertyInfo()
vm
.
saveHouseInfo
()
},
// 房产证/车辆证识别
ocrShow
(
ocrType
,
type
)
{
ocrShow
(
ocrType
,
type
,
ind
)
{
let
vm
=
this
hlsPopup
.
showActionSheet
({
titleText
:
'请选择照片'
,
buttonArray
:
[
'拍照'
,
'从相册取'
],
callback
:
index
=>
{
if
(
index
===
0
)
{
vm
.
openCamera
(
ocrType
,
type
)
vm
.
openCamera
(
ocrType
,
type
,
ind
)
}
else
{
vm
.
takePicture
(
ocrType
,
type
)
vm
.
takePicture
(
ocrType
,
type
,
ind
)
}
},
})
},
openCamera
(
ocrType
,
type
)
{
openCamera
(
ocrType
,
type
,
index
)
{
let
vm
=
this
let
cameraoptions
=
{
quality
:
60
,
...
...
@@ -823,20 +981,20 @@ export default {
hlsPopup
.
showLongCenter
(
'请拍照'
)
}
else
{
if
(
ocrType
===
'HOUSE_CARD'
)
{
vm
.
isUploadHouse
=
true
vm
.
houseImg
=
hlsUtil
.
convertImageUrl
(
imgdata
)
vm
.
houseImgUpload
=
imgdata
vm
.
houseCardIdentify
(
imgdata
)
vm
.
isUploadHouse
[
index
]
=
true
vm
.
houseImg
[
index
]
=
hlsUtil
.
convertImageUrl
(
imgdata
)
vm
.
houseImgUpload
[
index
]
=
imgdata
vm
.
houseCardIdentify
(
imgdata
,
index
)
}
else
if
(
ocrType
===
'CAR_CARD'
)
{
vm
.
isUploadCar
=
true
vm
.
carImg
=
hlsUtil
.
convertImageUrl
(
imgdata
)
vm
.
carImgUpload
=
imgdata
vm
.
carCardIdentify
(
imgdata
)
vm
.
isUploadCar
[
index
]
=
true
vm
.
carImg
[
index
]
=
hlsUtil
.
convertImageUrl
(
imgdata
)
vm
.
carImgUpload
[
index
]
=
imgdata
vm
.
carCardIdentify
(
imgdata
,
index
)
}
else
if
(
ocrType
===
'REAL_EST_CERTIFICATE'
)
{
vm
.
isUploadProperty
=
true
vm
.
propertyImg
=
hlsUtil
.
convertImageUrl
(
imgdata
)
vm
.
estateImgUpload
=
imgdata
vm
.
propertyIdentify
(
imgdata
)
vm
.
isUploadProperty
[
index
]
=
true
vm
.
propertyImg
[
index
]
=
hlsUtil
.
convertImageUrl
(
imgdata
)
vm
.
estateImgUpload
[
index
]
=
imgdata
vm
.
propertyIdentify
(
imgdata
,
index
)
}
}
}
...
...
@@ -845,7 +1003,7 @@ export default {
}
hlsUtil
.
openCamera
(
cameraoptions
,
success
,
error
)
},
takePicture
(
ocrType
,
type
)
{
takePicture
(
ocrType
,
type
,
index
)
{
let
vm
=
this
var
cameraoptions
=
{
quality
:
70
,
...
...
@@ -858,20 +1016,20 @@ export default {
hlsPopup
.
showLongCenter
(
'请选择一张图片'
)
}
else
{
if
(
ocrType
===
'HOUSE_CARD'
)
{
vm
.
houseImg
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
])
vm
.
houseImgUpload
=
imgUrl
[
0
]
vm
.
isUploadHouse
=
true
vm
.
houseCardIdentify
(
imgUrl
[
0
])
vm
.
houseImg
[
index
]
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
])
vm
.
houseImgUpload
[
index
]
=
imgUrl
[
0
]
vm
.
isUploadHouse
[
index
]
=
true
vm
.
houseCardIdentify
(
imgUrl
[
0
]
,
index
)
}
else
if
(
ocrType
===
'CAR_CARD'
)
{
vm
.
carImg
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
])
vm
.
carImgUpload
=
imgUrl
[
0
]
vm
.
isUploadCar
=
true
vm
.
carCardIdentify
(
imgUrl
[
0
])
vm
.
carImg
[
index
]
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
])
vm
.
carImgUpload
[
index
]
=
imgUrl
[
0
]
vm
.
isUploadCar
[
index
]
=
true
vm
.
carCardIdentify
(
imgUrl
[
0
]
,
index
)
}
else
if
(
ocrType
===
'REAL_EST_CERTIFICATE'
)
{
vm
.
isUploadProperty
=
true
vm
.
propertyImg
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
])
vm
.
estateImgUpload
=
imgUrl
[
0
]
vm
.
propertyIdentify
(
imgUrl
[
0
])
vm
.
isUploadProperty
[
index
]
=
true
vm
.
propertyImg
[
index
]
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
])
vm
.
estateImgUpload
[
index
]
=
imgUrl
[
0
]
vm
.
propertyIdentify
(
imgUrl
[
0
]
,
index
)
}
}
}
...
...
@@ -881,68 +1039,68 @@ export default {
vm
.
hlsUtil
.
takePicture
(
cameraoptions
,
success
,
error
)
},
// 房产证识别
houseCardIdentify
(
fileUrl
)
{
houseCardIdentify
(
fileUrl
,
index
)
{
let
vm
=
this
hlsPopup
.
showLoading
(
'正在识别'
)
let
url
=
process
.
env
.
ocrPath
+
'/baidu/ocr/house'
hlsUtil
.
baiduOcr
(
fileUrl
,
url
,
function
(
res
)
{
hlsPopup
.
hideLoading
()
let
result
=
res
.
result
.
data
vm
.
hauseInfo
.
house_owner
=
result
.
house_owner
.
word
vm
.
hauseInfo
.
public_situation
=
result
.
public_situation
.
word
vm
.
hauseInfo
.
house_located
=
result
.
house_located
.
word
vm
.
hauseInfo
.
regist_date
=
result
.
regist_date
.
word
vm
.
hauseInfo
.
house_property
=
result
.
house_property
.
word
vm
.
hauseInfo
.
plan_purpose
=
result
.
plan_purpose
.
word
vm
.
hauseInfo
.
house_layers
=
result
.
house_layers
.
word
vm
.
hauseInfo
.
built_area
=
result
.
built_area
.
word
vm
.
hauseInfo
.
built_in_area
=
result
.
built_in_area
.
word
vm
.
hauseInfo
.
others
=
result
.
others
.
word
vm
.
hauseInfo
.
land_number
=
result
.
land_number
.
word
vm
.
hauseInfo
.
land_get_method
=
result
.
land_get_method
.
word
vm
.
hauseInfo
.
land_use_limit
=
result
.
land_use_limit
.
word
vm
.
hauseInfo
[
index
]
.
house_owner
=
result
.
house_owner
.
word
vm
.
hauseInfo
[
index
]
.
public_situation
=
result
.
public_situation
.
word
vm
.
hauseInfo
[
index
]
.
house_located
=
result
.
house_located
.
word
vm
.
hauseInfo
[
index
]
.
regist_date
=
result
.
regist_date
.
word
vm
.
hauseInfo
[
index
]
.
house_property
=
result
.
house_property
.
word
vm
.
hauseInfo
[
index
]
.
plan_purpose
=
result
.
plan_purpose
.
word
vm
.
hauseInfo
[
index
]
.
house_layers
=
result
.
house_layers
.
word
vm
.
hauseInfo
[
index
]
.
built_area
=
result
.
built_area
.
word
vm
.
hauseInfo
[
index
]
.
built_in_area
=
result
.
built_in_area
.
word
vm
.
hauseInfo
[
index
]
.
others
=
result
.
others
.
word
vm
.
hauseInfo
[
index
]
.
land_number
=
result
.
land_number
.
word
vm
.
hauseInfo
[
index
]
.
land_get_method
=
result
.
land_get_method
.
word
vm
.
hauseInfo
[
index
]
.
land_use_limit
=
result
.
land_use_limit
.
word
})
},
// 行驶证识别
carCardIdentify
(
fileUrl
)
{
carCardIdentify
(
fileUrl
,
index
)
{
let
vm
=
this
hlsPopup
.
showLoading
(
'正在识别'
)
let
url
=
process
.
env
.
ocrPath
+
'/baidu/ocr/vehicleLicense'
hlsUtil
.
baiduOcr
(
fileUrl
,
url
,
function
(
res
)
{
hlsPopup
.
hideLoading
()
let
result
=
res
.
result
.
words_result
vm
.
carInfo
.
vehicle_identify_num
=
result
.
车辆识别代号
.
words
vm
.
carInfo
.
address
=
result
.
住址
.
words
vm
.
carInfo
.
brand_model_number
=
result
.
品牌型号
.
words
vm
.
carInfo
.
start_date
=
result
.
发证日期
.
words
vm
.
carInfo
.
vehicle_type
=
result
.
车辆类型
.
words
vm
.
carInfo
.
owner
=
result
.
所有人
.
words
vm
.
carInfo
.
use_nature
=
result
.
使用性质
.
words
vm
.
carInfo
.
engine_number
=
result
.
发动机号码
.
words
vm
.
carInfo
.
plate_number
=
result
.
号牌号码
.
words
vm
.
carInfo
.
regist_date
=
result
.
注册日期
.
words
vm
.
carInfo
.
words_result_num
=
res
.
result
.
words_result_num
vm
.
carInfo
.
success
=
res
.
success
vm
.
carInfo
[
index
]
.
vehicle_identify_num
=
result
.
车辆识别代号
.
words
vm
.
carInfo
[
index
]
.
address
=
result
.
住址
.
words
vm
.
carInfo
[
index
]
.
brand_model_number
=
result
.
品牌型号
.
words
vm
.
carInfo
[
index
]
.
start_date
=
result
.
发证日期
.
words
vm
.
carInfo
[
index
]
.
vehicle_type
=
result
.
车辆类型
.
words
vm
.
carInfo
[
index
]
.
owner
=
result
.
所有人
.
words
vm
.
carInfo
[
index
]
.
use_nature
=
result
.
使用性质
.
words
vm
.
carInfo
[
index
]
.
engine_number
=
result
.
发动机号码
.
words
vm
.
carInfo
[
index
]
.
plate_number
=
result
.
号牌号码
.
words
vm
.
carInfo
[
index
]
.
regist_date
=
result
.
注册日期
.
words
vm
.
carInfo
[
index
]
.
words_result_num
=
res
.
result
.
words_result_num
vm
.
carInfo
[
index
]
.
success
=
res
.
success
})
},
// 不动产证识别
propertyIdentify
(
fileUrl
)
{
propertyIdentify
(
fileUrl
,
index
)
{
let
vm
=
this
hlsPopup
.
showLoading
(
'正在识别'
)
let
url
=
process
.
env
.
ocrPath
+
'/baidu/ocr/houseRight'
hlsUtil
.
baiduOcr
(
fileUrl
,
url
,
function
(
res
)
{
hlsPopup
.
hideLoading
()
let
result
=
res
.
result
.
data
vm
.
propertyInfo
.
right_person
=
result
.
right_person
.
word
vm
.
propertyInfo
.
public_situation
=
result
.
public_situation
.
word
vm
.
propertyInfo
.
house_located
=
result
.
house_located
.
word
vm
.
propertyInfo
.
real_unit_number
=
result
.
real_unit_number
.
word
vm
.
propertyInfo
.
right_type
=
result
.
right_type
.
word
vm
.
propertyInfo
.
right_property
=
result
.
right_property
.
word
vm
.
propertyInfo
.
house_purpose
=
result
.
house_purpose
.
word
vm
.
propertyInfo
.
house_area
=
result
.
house_area
.
word
vm
.
propertyInfo
.
land_use_limit
=
result
.
land_use_limit
.
word
vm
.
propertyInfo
.
right_others
=
result
.
right_others
.
word
vm
.
propertyInfo
[
index
]
.
right_person
=
result
.
right_person
.
word
vm
.
propertyInfo
[
index
]
.
public_situation
=
result
.
public_situation
.
word
vm
.
propertyInfo
[
index
]
.
house_located
=
result
.
house_located
.
word
vm
.
propertyInfo
[
index
]
.
real_unit_number
=
result
.
real_unit_number
.
word
vm
.
propertyInfo
[
index
]
.
right_type
=
result
.
right_type
.
word
vm
.
propertyInfo
[
index
]
.
right_property
=
result
.
right_property
.
word
vm
.
propertyInfo
[
index
]
.
house_purpose
=
result
.
house_purpose
.
word
vm
.
propertyInfo
[
index
]
.
house_area
=
result
.
house_area
.
word
vm
.
propertyInfo
[
index
]
.
land_use_limit
=
result
.
land_use_limit
.
word
vm
.
propertyInfo
[
index
]
.
right_others
=
result
.
right_others
.
word
})
},
loadItemList
(
flag
)
{
...
...
@@ -1009,22 +1167,29 @@ export default {
})
switch
(
cdd_item
)
{
case
'HOUSE_CARD'
:
// 房产证
if
(
!
vm
.
houseFlag
)
{
vm
.
houseImg
=
res
.
lists
[
0
].
url
}
vm
.
houseAttachmentId
=
res
.
lists
[
0
].
attachment_id
vm
.
houseFlag
.
forEach
((
item
,
index
)
=>
{
if
(
!
item
)
{
vm
.
houseImg
[
index
]
=
res
.
lists
[
0
].
url
vm
.
houseAttachmentId
[
index
]
=
res
.
lists
[
0
].
attachment_id
}
})
break
case
'CAR_CARD'
:
// 行驶证
if
(
!
vm
.
carFlag
)
{
vm
.
carImg
=
res
.
lists
[
0
].
url
}
vm
.
carAttachmentId
=
res
.
lists
[
0
].
attachment_id
vm
.
carFlag
.
forEach
((
item
,
index
)
=>
{
if
(
!
item
)
{
vm
.
carImg
[
index
]
=
res
.
lists
[
0
].
url
vm
.
carAttachmentId
[
index
]
=
res
.
lists
[
0
].
attachment_id
}
})
break
case
'REAL_EST_CERTIFICATE'
:
// 不动产
if
(
!
vm
.
propertyFlag
)
{
vm
.
propertyImg
=
res
.
lists
[
0
].
url
}
vm
.
propertyAttachmentId
=
res
.
lists
[
0
].
attachment_id
vm
.
propertyFlag
.
forEach
((
item
,
index
)
=>
{
if
(
!
item
)
{
vm
.
propertyImg
[
index
]
=
res
.
lists
[
0
].
url
vm
.
propertyAttachmentId
[
index
]
=
res
.
lists
[
0
].
attachment_id
}
})
break
case
'ASSETS_CARD'
:
console
.
log
(
'ASSETS_CARD............'
,
res
.
lists
)
...
...
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