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
588597e3
Commit
588597e3
authored
Jan 03, 2020
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
''
parent
a9ff1ebf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
4 deletions
+33
-4
base-info.vue
src/pages/userBindNew/np/base-info.vue
+33
-4
No files found.
src/pages/userBindNew/np/base-info.vue
View file @
588597e3
...
...
@@ -529,7 +529,7 @@ export default {
vm
.
idCardFrontSpEditFlag
=
false
// 配偶身份证正面修改标识,为true则标识已修改,后续需要重新上传此照片
vm
.
idCardBackSpEditFlag
=
false
// 配偶身份证反面修改标识,为true则标识已修改,后续需要重新上传此照片
vm
.
isClear
=
false
//vm.baseInfo.bp_class = vm.$route.params.bp_class
//
vm.baseInfo.bp_class = vm.$route.params.bp_class
}
})
},
...
...
@@ -762,6 +762,35 @@ export default {
}
})
},
// 基本信息保存前校验
bindCheck
()
{
let
vm
=
this
var
business_num
=
''
if
(
vm
.
baseInfo
.
bp_type
===
'TENANT'
||
vm
.
baseInfo
.
bp_type
===
'GUTA'
)
{
business_num
=
vm
.
baseInfo
.
agent_username
}
else
if
(
vm
.
baseInfo
.
bp_type
===
'AGENT'
||
vm
.
baseInfo
.
bp_type
===
'FACTORY'
)
{
business_num
=
vm
.
baseInfo
.
business_license_num
}
else
if
(
vm
.
baseInfo
.
bp_type
===
'OFFICE'
)
{
business_num
=
vm
.
baseInfo
.
business_license_num
}
let
url
=
process
.
env
.
basePath
+
'bp_bind_check'
let
param
=
{
bp_class
:
'NP'
,
bp_type
:
vm
.
baseInfo
.
bp_type
,
business_num
:
business_num
,
}
vm
.
hlsPopup
.
showLoading
(
'正在校验数据有效性'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
$router
.
push
({
name
:
'NPInvoiceInfo'
,
})
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
async
saveProtocol
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'bp_np_bind_save'
...
...
@@ -779,9 +808,10 @@ export default {
window
.
localStorage
.
setItem
(
'bp_name'
,
vm
.
baseInfo
.
bp_name
)
window
.
localStorage
.
setItem
(
'bp_type'
,
vm
.
baseInfo
.
bp_type
)
window
.
localStorage
.
setItem
(
'from'
,
vm
.
from
)
vm
.
$router
.
push
({
vm
.
bindCheck
()
/* vm.$router.push({
name: 'NPInvoiceInfo',
})
})
*/
return
res
.
bp_id
}
else
{
vm
.
hlsPopup
.
showLongCenter
(
res
.
message
)
...
...
@@ -789,7 +819,6 @@ export default {
},
async
saveWord
()
{
let
vm
=
this
debugger
if
(
!
vm
.
baseInfo
.
bp_type
)
{
vm
.
hlsPopup
.
showLongCenter
(
'客户类型不能为空!'
)
}
else
if
(
vm
.
isPaople
&&
!
vm
.
baseInfo
.
agent_username
)
{
...
...
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