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
6370ba7f
Commit
6370ba7f
authored
Oct 13, 2019
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
453306f3
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
159 additions
and
31 deletions
+159
-31
my-info.vue
src/pages/myInfo/my-info.vue
+21
-5
invoiceInfoWrite.vue
src/pages/personalCenter/npReadWrite/invoiceInfoWrite.vue
+1
-0
naturePerson.vue
src/pages/userBind/np/naturePerson.vue
+8
-1
enterprise.vue
src/pages/userBind/org/enterprise.vue
+106
-21
invoiceInfo.vue
src/pages/userBind/org/invoiceInfo.vue
+23
-4
No files found.
src/pages/myInfo/my-info.vue
View file @
6370ba7f
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
<div
slot=
"name"
>
退出登录
</div>
<div
slot=
"name"
>
退出登录
</div>
</item>
</item>
</list-item>
</list-item>
<button
v-if=
"flag"
@
click=
"changePageHead"
>
用户绑定
</button>
<button
v-if=
"!flag"
>
解除绑定
</button>
</h-content>
</h-content>
</section>
</section>
</
template
>
</
template
>
...
@@ -26,6 +28,7 @@
...
@@ -26,6 +28,7 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
flag
:
true
,
user_bp_status
:
''
,
user_bp_status
:
''
,
user_bp_class
:
''
,
user_bp_class
:
''
,
bp_id
:
''
,
bp_id
:
''
,
...
@@ -75,6 +78,7 @@ export default {
...
@@ -75,6 +78,7 @@ export default {
let
vm
=
this
let
vm
=
this
if
(
vm
.
bp_id
)
{
if
(
vm
.
bp_id
)
{
if
(
vm
.
user_bp_status
===
'NEW'
||
vm
.
user_bp_status
===
'REJECT'
)
{
if
(
vm
.
user_bp_status
===
'NEW'
||
vm
.
user_bp_status
===
'REJECT'
)
{
vm
.
flag
=
true
if
(
vm
.
user_bp_class
===
'NP'
)
{
if
(
vm
.
user_bp_class
===
'NP'
)
{
vm
.
$router
.
push
({
vm
.
$router
.
push
({
name
:
'NaturePerson'
,
name
:
'NaturePerson'
,
...
@@ -84,32 +88,37 @@ export default {
...
@@ -84,32 +88,37 @@ export default {
})
})
}
else
{
}
else
{
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'
Enterprise'
,
name
:
'Enterprise'
,
params
:
{
params
:
{
'bp_id'
:
this
.
bp_id
,
'bp_id'
:
this
.
bp_id
,
},
},
})
})
}
}
}
else
if
(
vm
.
user_bp_status
===
'APPROVED'
)
{
}
else
if
(
vm
.
user_bp_status
===
'APPROVED'
)
{
vm
.
flag
=
false
if
(
vm
.
user_bp_class
===
'NP'
)
{
if
(
vm
.
user_bp_class
===
'NP'
)
{
vm
.
$router
.
push
({
vm
.
$router
.
push
({
name
:
'NaturePerson
ReadOnly
'
,
name
:
'NaturePerson'
,
params
:
{
params
:
{
'bp_id'
:
this
.
bp_id
,
'bp_id'
:
this
.
bp_id
,
'status'
:
'APPROVED'
,
},
},
})
})
}
else
{
}
else
{
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'Enterprise
ReadOnly
'
,
name
:
'Enterprise'
,
params
:
{
params
:
{
'bp_id'
:
this
.
bp_id
,
'bp_id'
:
this
.
bp_id
,
'status'
:
'APPROVED'
,
},
},
})
})
}
}
}
else
if
(
vm
.
user_bp_status
===
'APPROVING'
)
{
}
else
if
(
vm
.
user_bp_status
===
'APPROVING'
)
{
vm
.
flag
=
true
this
.
hlsPopup
.
showLongCenter
(
'您的绑定申请还在流程中'
)
this
.
hlsPopup
.
showLongCenter
(
'您的绑定申请还在流程中'
)
}
}
}
else
{
}
else
{
vm
.
flag
=
true
this
.
hlsPopup
.
showLongCenter
(
'请先进行用户绑定'
)
this
.
hlsPopup
.
showLongCenter
(
'请先进行用户绑定'
)
}
}
},
},
...
@@ -131,6 +140,13 @@ export default {
...
@@ -131,6 +140,13 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"less"
type=
"text/less"
>
<
style
lang=
"less"
scoped
>
button{
margin-top:50px;
margin-left:100px;
width: 150px;
height: 50px;
color: #fff;
background-color: navy;
}
</
style
>
</
style
>
src/pages/personalCenter/npReadWrite/invoiceInfoWrite.vue
View file @
6370ba7f
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
>
>
</item>
</item>
<item
:showArrow=
"true"
>
<item
:showArrow=
"true"
>
<div
slot=
"name"
>
发票类型
</div>
<div
slot=
"name"
>
发票类型
</div>
<input
<input
slot=
"content"
slot=
"content"
...
...
src/pages/userBind/np/naturePerson.vue
View file @
6370ba7f
...
@@ -55,12 +55,15 @@
...
@@ -55,12 +55,15 @@
<list-item
:item-height=
"44"
class=
"second-part"
>
<list-item
:item-height=
"44"
class=
"second-part"
>
<item>
<item>
<div
slot=
"name"
class=
"required"
>
姓名
</div>
<div
slot=
"name"
class=
"required"
>
姓名
</div>
<input
slot=
"content"
v-model=
"baseInfo.bp_name"
placeholder=
"上传身份证自动填充"
class=
"auto"
>
<input
slot=
"content"
:readonly=
"isApproved"
v-model=
"baseInfo.bp_name"
placeholder=
"上传身份证自动填充"
class=
"auto"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"required"
>
身份证号码
</div>
<div
slot=
"name"
class=
"required"
>
身份证号码
</div>
<input
<input
slot=
"content"
slot=
"content"
:readonly=
"isApproved"
v-model=
"baseInfo.id_card_no"
v-model=
"baseInfo.id_card_no"
placeholder=
"上传身份证自动填充"
placeholder=
"上传身份证自动填充"
class=
"auto"
class=
"auto"
...
@@ -210,6 +213,7 @@ export default {
...
@@ -210,6 +213,7 @@ export default {
isPaople
:
false
,
isPaople
:
false
,
isEnter
:
false
,
isEnter
:
false
,
showModalValue
:
false
,
showModalValue
:
false
,
isApproved
:
false
,
isSave
:
false
,
isSave
:
false
,
isSelected
:
false
,
isSelected
:
false
,
tabNum
:
0
,
tabNum
:
0
,
...
@@ -296,6 +300,9 @@ export default {
...
@@ -296,6 +300,9 @@ export default {
this
.
getEducationBackground
()
this
.
getEducationBackground
()
this
.
getMarital
()
this
.
getMarital
()
this
.
getBankInfo
()
this
.
getBankInfo
()
if
(
this
.
$route
.
params
.
status
===
'APPROVED'
)
{
this
.
isApproved
=
true
}
},
},
beforeRouteEnter
(
to
,
from
,
next
)
{
beforeRouteEnter
(
to
,
from
,
next
)
{
if
(
from
.
fullPath
===
'/tab/my-info'
)
{
if
(
from
.
fullPath
===
'/tab/my-info'
)
{
...
...
src/pages/userBind/org/enterprise.vue
View file @
6370ba7f
This diff is collapsed.
Click to expand it.
src/pages/userBind/org/invoiceInfo.vue
View file @
6370ba7f
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<div
slot=
"name"
class=
"font-color"
>
纳税人类型
</div>
<div
slot=
"name"
class=
"font-color"
>
纳税人类型
</div>
<input
<input
slot=
"content"
slot=
"content"
v-model=
"taxpayer_type_n"
v-model=
"
invoiceInfo.
taxpayer_type_n"
type=
"text"
type=
"text"
readonly
readonly
placeholder=
"请选择"
placeholder=
"请选择"
...
@@ -64,17 +64,25 @@ export default {
...
@@ -64,17 +64,25 @@ export default {
type
:
String
,
type
:
String
,
default
:
''
,
default
:
''
,
},
},
'baseInfo'
:
{
type
:
Object
,
default
:
{},
},
'tabNum'
:
{
type
:
Number
,
default
:
0
,
},
},
},
data
()
{
data
()
{
return
{
return
{
invoicList
:
[],
invoicList
:
[],
taxpayerList
:
[],
taxpayerList
:
[],
invoice_kind_n
:
''
,
invoice_kind_n
:
''
,
taxpayer_type_n
:
''
,
invoiceInfo
:
{
invoiceInfo
:
{
invoice_kind
:
''
,
invoice_kind
:
1
,
taxpayer_type
:
''
,
taxpayer_type
:
''
,
invoice_title
:
''
,
invoice_title
:
''
,
taxpayer_type_n
:
''
,
organization_code
:
this
.
orgCode
,
organization_code
:
this
.
orgCode
,
invoice_bp_bank_account
:
''
,
invoice_bp_bank_account
:
''
,
invoice_bp_address_phone_num
:
''
,
invoice_bp_address_phone_num
:
''
,
...
@@ -85,6 +93,17 @@ export default {
...
@@ -85,6 +93,17 @@ export default {
orgCode
()
{
orgCode
()
{
this
.
invoiceInfo
.
organization_code
=
this
.
orgCode
this
.
invoiceInfo
.
organization_code
=
this
.
orgCode
},
},
'tabNum'
(
newVal
,
oulVal
)
{
if
(
newVal
===
2
)
{
Object
.
assign
(
this
.
invoiceInfo
,
this
.
baseInfo
)
this
.
invoice_kind_n
=
''
if
(
this
.
invoiceInfo
.
invoice_kind
==
0
)
{
this
.
invoice_kind_n
=
'增值税专用发票'
}
else
if
(
this
.
invoiceInfo
.
invoice_kind
==
2
)
{
this
.
invoice_kind_n
=
'增值税普通发票'
}
}
},
},
},
created
()
{
created
()
{
console
.
log
(
'orgCode'
,
this
.
orgCode
)
console
.
log
(
'orgCode'
,
this
.
orgCode
)
...
@@ -149,7 +168,7 @@ export default {
...
@@ -149,7 +168,7 @@ export default {
object
:
{},
object
:
{},
returnItem
:
function
(
index
,
obj
)
{
returnItem
:
function
(
index
,
obj
)
{
vm
.
invoiceInfo
.
taxpayer_type
=
obj
.
bp_type
vm
.
invoiceInfo
.
taxpayer_type
=
obj
.
bp_type
vm
.
taxpayer_type_n
=
obj
.
bp_type_n
vm
.
invoiceInfo
.
taxpayer_type_n
=
obj
.
bp_type_n
},
},
})
})
},
},
...
...
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