Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
dance-pc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
373e86b0
authored
2024-07-19 10:30:04 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
票务
1 parent
d8c13c81
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
src/store/modules/user.js
src/viewsPc/booking/invoiceDetail.vue
src/viewsPc/center/myCanKP.vue
src/store/modules/user.js
View file @
373e86b
...
...
@@ -32,7 +32,8 @@ const useUserStore = defineStore(
badge
:
{},
reLogin
:
{
show
:
false
,
query
:{}},
visitor
:
false
,
language
:
0
language
:
0
,
activeName
:
"5"
}),
actions
:
{
// 登录
...
...
@@ -163,6 +164,9 @@ const useUserStore = defineStore(
}
else
{
return
true
}
},
updataActiveName
(
v
){
this
.
activeName
=
v
}
}
})
...
...
src/viewsPc/booking/invoiceDetail.vue
View file @
373e86b
...
...
@@ -166,7 +166,6 @@ const rules = ref({
{
required
:
true
,
message
:
language
.
value
==
0
?
'请输入账户'
:
'Please enter account'
,
trigger
:
'blur'
}
],
})
const
isEdit
=
ref
(
false
)
let
invoiceId
onMounted
(()
=>
{
if
(
route
.
query
.
activeId
){
...
...
@@ -197,18 +196,13 @@ function getList() {
getInvoiceDetailMatch
(
invoiceId
).
then
(
res
=>
{
form
.
value
=
res
.
data
;
totalMoney
.
value
=
form
.
value
.
total
if
(
form
.
value
.
invoiceForm
==
'1'
)
{
email
.
value
=
form
.
value
.
address
}
getAddrList
()
});
}
else
{
getInvoiceDetail
(
invoiceId
).
then
(
res
=>
{
form
.
value
=
res
.
data
;
totalMoney
.
value
=
form
.
value
.
total
if
(
form
.
value
.
invoiceForm
==
'1'
)
{
email
.
value
=
form
.
value
.
address
}
getAddrList
()
});
}
...
...
src/viewsPc/center/myCanKP.vue
View file @
373e86b
...
...
@@ -225,12 +225,13 @@ import {setToken} from "@/viewsPc/seat/utils/local-store";
const
router
=
useRouter
()
const
route
=
useRoute
()
const
language
=
useStorage
(
'language'
,
0
)
const
activeName
=
ref
(
'5'
)
const
lpName
=
ref
(
''
)
const
remark
=
ref
(
''
)
const
showSJDialog
=
ref
(
false
)
const
user
=
useUserStore
().
user
||
{}
const
userStore
=
useUserStore
();
const
user
=
useUserStore
().
user
||
{}
const
activeName
=
ref
(
userStore
.
activeName
||
'5'
)
const
query
=
ref
({
createById
:
user
.
userId
,
orderType
:
'5'
,
...
...
@@ -248,6 +249,7 @@ onMounted(() => {
router
.
push
({
name
:
'myInfo'
})
return
}
query
.
value
.
orderType
=
activeName
.
value
=
userStore
.
activeName
||
'5'
getList
()
})
const
getList
=
()
=>
{
...
...
@@ -291,7 +293,9 @@ const handleClick = (e) => {
query
.
value
.
orderType
=
e
.
paneName
list
.
value
=
[]
query
.
value
.
invoiced
=
'0'
userStore
.
updataActiveName
(
e
.
paneName
)
getList
()
}
const
gokp
=
(
item
)
=>
{
router
.
push
({
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment