|
@@ -29,6 +29,12 @@
|
|
|
<view class="block mt-20">
|
|
<view class="block mt-20">
|
|
|
<view class="fs-30 fw-600 color-333 mb-28">填写发票信息</view>
|
|
<view class="fs-30 fw-600 color-333 mb-28">填写发票信息</view>
|
|
|
|
|
|
|
|
|
|
+ <!-- 接收邮箱 -->
|
|
|
|
|
+ <view class="form-item">
|
|
|
|
|
+ <view class="fs-28 color-333 mb-12">接收邮箱<text class="color-primary">*</text></view>
|
|
|
|
|
+ <input class="input br-8 fs-28 p-20" v-model="form.email" placeholder="电子发票将发送至此邮箱" />
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
<!-- 发票类型 -->
|
|
<!-- 发票类型 -->
|
|
|
<view class="form-item">
|
|
<view class="form-item">
|
|
|
<view class="fs-28 color-333 mb-12">发票类型</view>
|
|
<view class="fs-28 color-333 mb-12">发票类型</view>
|
|
@@ -83,11 +89,6 @@
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
- <!-- 公共字段 -->
|
|
|
|
|
- <view class="form-item">
|
|
|
|
|
- <view class="fs-28 color-333 mb-12">接收邮箱<text class="color-primary">*</text></view>
|
|
|
|
|
- <input class="input br-8 fs-28 p-20" v-model="form.email" placeholder="电子发票将发送至此邮箱" />
|
|
|
|
|
- </view>
|
|
|
|
|
<view class="form-item">
|
|
<view class="form-item">
|
|
|
<view class="fs-28 color-333 mb-12">备注</view>
|
|
<view class="fs-28 color-333 mb-12">备注</view>
|
|
|
<input class="input br-8 fs-28 p-20" v-model="form.remark" placeholder="可选备注信息" />
|
|
<input class="input br-8 fs-28 p-20" v-model="form.remark" placeholder="可选备注信息" />
|
|
@@ -167,14 +168,6 @@ const selectTitle = (item: any) => {
|
|
|
const emailRegex = /^[\w.%+-]+@[\w.-]+\.[a-zA-Z]{2,}$/;
|
|
const emailRegex = /^[\w.%+-]+@[\w.-]+\.[a-zA-Z]{2,}$/;
|
|
|
|
|
|
|
|
const submit = () => {
|
|
const submit = () => {
|
|
|
- if (!form.invoiceTitle.trim()) {
|
|
|
|
|
- uni.showToast({ title: "请填写抬头名称", icon: "none" });
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- if (form.invoiceType === "ORGANIZATION" && !form.taxId.trim()) {
|
|
|
|
|
- uni.showToast({ title: "请填写公司税号", icon: "none" });
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
if (!form.email.trim()) {
|
|
if (!form.email.trim()) {
|
|
|
uni.showToast({ title: "请填写接收发票的邮箱地址", icon: "none" });
|
|
uni.showToast({ title: "请填写接收发票的邮箱地址", icon: "none" });
|
|
|
return;
|
|
return;
|
|
@@ -183,6 +176,14 @@ const submit = () => {
|
|
|
uni.showToast({ title: "邮箱格式不正确", icon: "none" });
|
|
uni.showToast({ title: "邮箱格式不正确", icon: "none" });
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
+ if (!form.invoiceTitle.trim()) {
|
|
|
|
|
+ uni.showToast({ title: "请填写抬头名称", icon: "none" });
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (form.invoiceType === "ORGANIZATION" && !form.taxId.trim()) {
|
|
|
|
|
+ uni.showToast({ title: "请填写公司税号", icon: "none" });
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
uni.showLoading({ title: "提交中" });
|
|
uni.showLoading({ title: "提交中" });
|
|
|
|
|
|