Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
million
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
viitto
million
Commits
d8429561
Commit
d8429561
authored
Feb 08, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
b627cd07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
101 additions
and
103 deletions
+101
-103
visaOrderPreview.vue
src/pages/line/visaOrderPreview.vue
+101
-103
No files found.
src/pages/line/visaOrderPreview.vue
View file @
d8429561
...
...
@@ -49,78 +49,76 @@
訂購人資訊
</div>
<q-separator
color=
"grey-2"
class=
"q-my-md"
/>
<q-form
ref=
"baseUserInfo"
>
<div
class=
"row q-col-gutter-md"
>
<div
:class=
"filedWidth"
>
<q-input
standout
v-model=
"userInfo.Name"
label=
"名字"
ref=
"name"
:rules=
"[(val) => !!val || '請輸入名字']"
/>
</div>
<div
:class=
"filedWidth"
>
<q-input
standout
v-model=
"userInfo.Surname"
ref=
"surname"
label=
"姓氏"
:rules=
"[(val) => !!val || '請輸入姓氏']"
/>
</div>
<div
class=
"row"
:class=
"filedWidth"
>
<q-select
style=
"width: 120px"
v-model=
"userInfo.Country"
@
input=
"changeCountry"
:options=
"countrys"
emit-value
option-label=
"Name"
option-value=
"ID"
map-options
label=
"國家/地區"
standout
/>
<q-input
class=
"col q-ml-sm"
standout
v-model=
"userInfo.Moblie"
label=
"電話"
mask=
"#"
reverse-fill-mask
ref=
"mobile"
:rules=
"[(val) => !!val || '請輸入行動電話']"
>
<template
v-slot:prepend
>
<div
class=
"text-subtitle2"
>
{{
userInfo
.
PhoneCountryStr
}}
</div>
</
template
>
</q-input>
</div>
<div
:class=
"filedWidth"
>
<q-form
ref=
"baseUserInfo"
>
<div
class=
"row q-col-gutter-md"
>
<div
:class=
"filedWidth"
>
<q-input
standout
v-model=
"userInfo.Name"
label=
"名字"
ref=
"name"
:rules=
"[(val) => !!val || '請輸入名字']"
/>
</div>
<div
:class=
"filedWidth"
>
<q-input
standout
v-model=
"userInfo.Surname"
ref=
"surname"
label=
"姓氏"
:rules=
"[(val) => !!val || '請輸入姓氏']"
/>
</div>
<div
class=
"row"
:class=
"filedWidth"
>
<q-select
style=
"width: 120px"
v-model=
"userInfo.Country"
@
input=
"changeCountry"
:options=
"countrys"
emit-value
option-label=
"Name"
option-value=
"ID"
map-options
label=
"國家/地區"
standout
/>
<q-input
class=
"col q-ml-sm"
standout
v-model=
"userInfo.Moblie"
label=
"電話"
mask=
"#"
reverse-fill-mask
ref=
"mobile"
:rules=
"[(val) => !!val || '請輸入行動電話']"
>
<template
v-slot:prepend
>
<div
class=
"text-subtitle2"
>
{{
userInfo
.
PhoneCountryStr
}}
</div>
</
template
>
</q-input>
</div>
<div
:class=
"filedWidth"
>
<q-input
standout
v-model=
"userInfo.Mailbox"
label=
"郵箱地址"
ref=
"mailbox"
:rules=
"[
(val) =>
/^[a-zA-Z0-9]+([-_.][A-Za-zd]+)*@([a-zA-Z0-9]+[-.])+[A-Za-zd]{2,5}$/.test(
val
) || '請輸入正確的郵箱地址',
]"
/>
</div>
</div>
<div
:class=
"filedWidth"
>
<q-input
standout
v-model=
"userInfo.Mailbox"
label=
"郵箱地址"
ref=
"mailbox"
:rules=
"[
(val) =>
/^[a-zA-Z0-9]+([-_.][A-Za-zd]+)*@([a-zA-Z0-9]+[-.])+[A-Za-zd]{2,5}$/.test(
val
) || '請輸入正確的郵箱地址',
]"
/>
</div>
<div
:class=
"filedWidth"
>
<q-toggle
v-model=
"isUpdateUserInfo"
label=
"同步更新會員資料"
/>
<div
class=
"col row justify-end"
>
<q-toggle
v-model=
"isUpdateUserInfo"
label=
"同步更新會員資料"
/>
</div>
</div>
</q-form>
</q-form>
</q-card>
</q-form>
...
...
@@ -372,7 +370,7 @@
option-value=
"ID"
v-model=
"chosenObj.RelationPhoneType"
@
input=
"(e)=>{getValue(e,'AreaCode')}"
:options=
"
areaCode
"
:options=
"
countrys
"
style=
"width: 120px"
ref=
"RelationPhoneType"
:rules=
"[(val) =>!!val || '請选择國家/地區']"
...
...
@@ -613,19 +611,19 @@ export default {
IsNeedInvoice
:
0
,
// 是否需要发票 ,0-默认
InvoiceName
:
''
,
// 发票名称
InvoiceType
:
0
,
// 发票类型1-个人,2-企业,3-非企业性单位
InvoiceTypeObj
:
''
,
//
InvoiceTypeObj:'',
DutyParagraph
:
''
,
// 税号
Receiver
:
''
,
// 收件人
ReceiverPhone
:
''
,
// 收件人电话
ReceiverProvince
:
''
,
// 收件人省
ReceiverProvinceObj
:
''
,
//
ReceiverProvinceObj: '',
ReceiverCity
:
''
,
// 收件人市
ReceiverCityObj
:
''
,
ReceiverAddress
:
''
,
// 收件人地址
ReceiverCity
:
''
,
// 收件人市
ReceiverAddress
:
''
,
// 收件人地址
RelationPhoneType
:
2
,
// 手机号码归属国家
RelationPhoneTypeObj
:
''
,
//
RelationPhoneTypeObj: '',
EnterCountryTime
:
''
,
// 入境时间
AdultPeopleNum
:
null
,
ChildPeopleNum
:
null
,
...
...
@@ -747,27 +745,27 @@ export default {
}
},
GetSelectData
()
{
this
.
apipost
(
"dict_post_Destination_GetPhoneCodeListExt"
,
{},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
areaCode
=
res
.
data
.
data
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
},
(
err
)
=>
{
//
this.apipost(
//
"dict_post_Destination_GetPhoneCodeListExt",
//
{},
//
(res) => {
//
if (res.data.resultCode == 1) {
//
this.areaCode = res.data.data
//
} else {
//
this.$message.error(res.data.message);
//
}
//
},
//
(err) => {
}
);
this
.
apipost
(
'dict_get_GetDictValueCommonList'
,
{
"Key"
:
"SK_CRM_DutyType"
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
customerTypes
=
res
.
data
.
data
}
},
err
=>
{})
//
}
//
);
//
this.apipost('dict_get_GetDictValueCommonList', {
//
"Key":"SK_CRM_DutyType"
//
}, res => {
//
if (res.data.resultCode == 1) {
//
this.customerTypes = res.data.data
//
}
//
}, err => {})
this
.
apipost
(
'app_customer_GetChildList'
,
{
Id
:
2
,
"level"
:
1
...
...
@@ -808,21 +806,21 @@ export default {
}
else
{
flag
=
await
this
.
formValidateHandler
(
"baseCustomerInfo"
);
if
(
!
flag
)
{
if
(
this
.
guests
.
length
==
0
)
this
.
goScrollToForm
(
`baseCustomerTitle`
);
else
{
for
(
let
i
=
0
;
i
<
this
.
guests
.
length
;
i
++
)
{
flag
=
await
this
.
formValidateHandler
(
"guest"
+
i
);
if
(
!
flag
)
{
this
.
goScrollToForm
(
`guest
${
i
}
Title`
);
break
;
}
}
}
this
.
goScrollToForm
(
`baseCustomerTitle`
);
return
// for (let i = 0; i
<
this
.
guests
.
length
;
i
++
)
{
// flag = await this.formValidateHandler("guest" + i);
// if (!flag) {
// this.goScrollToForm(`guest${i}Title`);
// return
// }
// }
}
else
{
flag
=
await
this
.
formValidateHandler
(
"baseRecipientInfo"
);
if
(
!
flag
)
{
this
.
goScrollToForm
(
"baseRecipientTitle"
);
return
}
}
// if(flag&&this.chosenObj.PeopleNum==0) return this.$message.error("请输入成人或者儿童人数!");
...
...
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