Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jijin
/
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
6756cfcf
authored
2024-08-07 17:50:53 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
票务
1 parent
82d86ec5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
src/viewsPc/booking/ticket/confirmOrder.vue
src/viewsPc/booking/ticket/peopleManage.vue
src/viewsPc/booking/ticket/confirmOrder.vue
View file @
6756cfc
...
...
@@ -134,7 +134,7 @@
</
template
>
<
script
setup
>
import
{
ref
}
from
'vue'
import
{
ref
,
computed
}
from
'vue'
import
{
customerListApi
,
getTicketTotalApi
,
...
...
@@ -149,7 +149,7 @@ import {useStorage} from "@vueuse/core/index";
const
useStore
=
useUserStore
()
const
user
=
computed
(()
=>
useUserStore
().
user
)
const
language
=
useStorage
(
'language'
,
0
)
console
.
log
(
language
)
const
loading
=
ref
(
false
);
...
...
@@ -353,6 +353,11 @@ getTicketList()
// 提交
async
function
paymentHandle
()
{
if
(
!
user
.
value
)
{
useStore
().
setVisitor
()
return
}
await
formRef
.
value
.
validate
()
const
res
=
await
submitOrderTicket
(
orderForm
.
value
)
if
(
res
.
code
==
200
)
{
...
...
src/viewsPc/booking/ticket/peopleManage.vue
View file @
6756cfc
...
...
@@ -61,7 +61,7 @@
<
script
setup
>
import
{
ref
}
from
"vue"
;
import
{
ref
,
computed
}
from
"vue"
;
import
{
aadCustomer
,
customerListApi
,
delCustomer
}
from
'@/apiPc/booking'
import
{
ElMessage
,
ElMessageBox
}
from
"element-plus"
;
import
{
languageFormat
}
from
"@/viewsPc/seat/utils/language.js"
;
...
...
@@ -69,6 +69,7 @@ import useUserStore from "/@/store/modules/user";
import
{
useStorage
}
from
"@vueuse/core/index"
;
import
{
triggerLanguage
}
from
'@/utils/ruoyi'
const
user
=
computed
(()
=>
useUserStore
().
user
)
const
useStore
=
useUserStore
()
const
language
=
useStorage
(
'language'
,
0
)
const
personnelList
=
ref
([])
...
...
@@ -104,6 +105,11 @@ function addPeople() {
}
function
submit
()
{
if
(
!
user
.
value
)
{
useStore
().
setVisitor
()
return
}
formRef
.
value
.
validate
((
valid
)
=>
{
if
(
valid
)
{
aadCustomer
(
form
.
value
).
then
(
res
=>
{
...
...
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