Commit d8429561 authored by youjie's avatar youjie

no message

parent b627cd07
......@@ -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("请输入成人或者儿童人数!");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment