|
|
@@ -71,6 +71,14 @@
|
|
|
</view>
|
|
|
|
|
|
<view class="modal-body" :style="{ maxHeight: maxModalHeight + 'px' }">
|
|
|
+ <view class="form-group">
|
|
|
+ <view class="form-label">
|
|
|
+ 接收邮箱
|
|
|
+ <text class="required">*</text>
|
|
|
+ </view>
|
|
|
+ <view class="form-row"><input class="form-input" v-model="editForm.email" placeholder="请输入接收邮箱" placeholder-class="input-placeholder" /></view>
|
|
|
+ </view>
|
|
|
+
|
|
|
<view class="form-group">
|
|
|
<view class="form-label">发票类型</view>
|
|
|
<view class="type-options">
|
|
|
@@ -99,12 +107,6 @@
|
|
|
<view class="form-group"><view class="form-label">银行账号</view><view class="form-row"><input class="form-input" v-model="editForm.bankAccount" type="number" placeholder="请输入银行账号" placeholder-class="input-placeholder" /></view></view>
|
|
|
</template>
|
|
|
|
|
|
- <view class="form-section-label">其他</view>
|
|
|
- <view class="form-group">
|
|
|
- <view class="form-label">接收邮箱</view>
|
|
|
- <view class="form-row"><input class="form-input" v-model="editForm.email" placeholder="选填,用于接收电子发票" placeholder-class="input-placeholder" /></view>
|
|
|
- </view>
|
|
|
-
|
|
|
<view class="form-group form-switch">
|
|
|
<view class="form-label">设为默认抬头</view>
|
|
|
<view class="switch" :class="{ on: editForm.isDefault }" @click="editForm.isDefault = !editForm.isDefault"><view class="switch-dot"></view></view>
|
|
|
@@ -223,7 +225,9 @@ const importWechatTitle = () => {
|
|
|
editForm.bankAccount = res.bankAccount || '';
|
|
|
},
|
|
|
fail: (err: any) => {
|
|
|
- console.log('取消选择微信抬头', err);
|
|
|
+ if (err && err.errMsg && !/cancel/.test(err.errMsg)) {
|
|
|
+ uni.showToast({ title: "同步失败,请重试", icon: "none" });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
// #endif
|
|
|
@@ -249,6 +253,7 @@ const editTitle = (item: InvoiceTitleItem) => {
|
|
|
};
|
|
|
|
|
|
const saveTitle = () => {
|
|
|
+ if (!editForm.email.trim()) { uni.showToast({ title: "请填写接收邮箱", icon: "none" }); return; }
|
|
|
if (!editForm.invoiceTitle.trim()) { uni.showToast({ title: "请填写抬头名称", icon: "none" }); return; }
|
|
|
if (editForm.invoiceType === "ORGANIZATION" && !editForm.taxId.trim()) { uni.showToast({ title: "企业抬头请填写税号", icon: "none" }); return; }
|
|
|
saving.value = true;
|