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
10846c05
authored
2024-07-26 17:14:27 +0800
by
杨炀
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
4cc86c07
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
src/viewsPc/booking/addInvoice.vue
src/viewsPc/booking/invoiceDetail.vue
vite.config.js
src/viewsPc/booking/addInvoice.vue
View file @
10846c0
...
...
@@ -114,7 +114,7 @@
<el-form-item
:label=
"language == 0 ?`税号`:'Duty Paragraph'"
required
v-if=
"form.invoiceType=='0'"
prop=
"invoiceTfn"
>
<el-input
v-model=
"form.invoiceTfn"
/>
</el-form-item>
<el-form-item
:label=
"`邮箱`"
v-if=
"form.invoiceForm=='1'"
required
prop=
"invoiceEmail"
>
<el-form-item
:label=
"`邮箱`"
v-if=
"form.invoiceForm=='1'"
required
>
<el-input
v-if=
"orderType==6"
v-model=
"form.invoiceEmail"
/>
<el-input
v-else
v-model=
"form.address"
/>
</el-form-item>
...
...
@@ -206,9 +206,6 @@ const rules = ref({
invoiceType
:
[
{
required
:
true
,
message
:
language
.
value
==
0
?
'请选择发票类型'
:
'Please select invoice type'
,
trigger
:
'change'
}
],
invoiceEmail
:
[
{
required
:
true
,
message
:
language
.
value
==
0
?
'请输入邮箱'
:
'Please enter email'
,
trigger
:
'blur'
}
],
invoiceForm
:
[
{
required
:
true
,
message
:
language
.
value
==
0
?
'请选择发票形式'
:
'Please select invoice form'
,
trigger
:
'change'
}
],
...
...
@@ -378,6 +375,14 @@ function getAddress(obj) {
nowAddress
.
value
=
obj
}
function
submit
()
{
if
(
orderType
.
value
==
6
&&
!
form
.
value
.
invoiceEmail
){
ElMessage
.
warning
(
language
.
value
==
0
?
'请输入邮箱'
:
'Please enter email'
)
return
}
if
(
orderType
.
value
!=
6
&&
!
form
.
value
.
address
){
ElMessage
.
warning
(
language
.
value
==
0
?
'请输入邮箱'
:
'Please enter email'
)
return
}
proxy
.
$refs
[
'formRef'
].
validate
((
valid
)
=>
{
if
(
valid
){
// 提交确认
...
...
src/viewsPc/booking/invoiceDetail.vue
View file @
10846c0
...
...
@@ -92,8 +92,9 @@
<el-form-item
:label=
"`税号`"
required
v-if=
"form.invoiceType=='0'"
prop=
"invoiceTfn"
>
{{
form
.
invoiceTfn
}}
</el-form-item>
<el-form-item
:label=
"`邮箱`"
v-if=
"form.invoiceForm=='1'"
required
prop=
"invoiceEmail"
>
{{
form
.
invoiceEmail
}}
<el-form-item
:label=
"`邮箱`"
v-if=
"form.invoiceForm=='1'"
required
>
<view
v-if=
"form.address"
>
{{
form
.
address
}}
</view>
<view
v-else-if=
"form.invoiceEmail"
>
{{
form
.
invoiceEmail
}}
</view>
</el-form-item>
<el-form-item
label=
"备注"
prop=
"remarks"
>
{{
form
.
remarks
}}
...
...
vite.config.js
View file @
10846c0
...
...
@@ -92,8 +92,8 @@ export default defineConfig(({ mode, command }) => {
'/ticket'
:
{
// target: 'http://192.168.1.131:8098/',
// target: 'http://192.168.1.131:8081/',
// target: 'http://124.70.181.90:1880
/h5/',
target
:
'https://ticketh5.wdsfwuxicenter.com/h5/'
,
target
:
'https://jijin.wtwuxicenter.com
/h5/'
,
//
target: 'https://ticketh5.wdsfwuxicenter.com/h5/',
changeOrigin
:
true
,
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
ticket/
,
''
)
}
...
...
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