隐藏发票部分
新增发票和抬头页面添加银行卡号校验
This commit is contained in:
parent
f586c11d1f
commit
321d6c6c51
@ -58,11 +58,11 @@
|
||||
@click="toPay(item.id, item.order_no)">去支付</view>
|
||||
<view v-if="item.status == 2 || item.status == 3" class="btnhx"
|
||||
@click="toDetail(item.id, item.order_no, item.status)">核销码</view>
|
||||
<view v-if="item.status == 9 && item.invoice_status == 0 && item.detail.feel == 0" class="btn_Inv"
|
||||
<!-- <view v-if="item.status == 9 && item.invoice_status == 0 && item.detail.feel == 0" class="btn_Inv"
|
||||
@click="toAddInvoic(item.id, item.order_no)">申请开票</view>
|
||||
<view v-if="item.status == 9 && item.invoice_status == 1 && item.detail.feel == 0" class="btn_InvIng">开票中</view>
|
||||
<view v-if="item.status == 9 && item.invoice_status == 2 && item.detail.feel == 0" class="btn_Inv"
|
||||
@click="checkInvoice(item.user_invoice_apply_id, item.order_no)">查看发票</view>
|
||||
@click="checkInvoice(item.user_invoice_apply_id, item.order_no)">查看发票</view> -->
|
||||
<view v-if="item.status != 0" class="btn_xq"
|
||||
@click="toDetail(item.id, item.order_no, item.status)">查看详情</view>
|
||||
</view>
|
||||
|
@ -56,12 +56,12 @@
|
||||
<view><u-icon name="arrow-right"></u-icon></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="list-item" @click="openUrl('/packageB/invoice/invoiceCenter')">
|
||||
<!-- <view class="list-item" @click="openUrl('/packageB/invoice/invoiceCenter')">
|
||||
<view class="left">发票中心</view>
|
||||
<view class="right">
|
||||
<view><u-icon name="arrow-right"></u-icon></view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="list-item" @click="openSfz()">
|
||||
<view class="left">
|
||||
身份信息
|
||||
|
@ -422,7 +422,7 @@
|
||||
return;
|
||||
}
|
||||
// 校验银行账号
|
||||
if (this.form, bank_number == '') {
|
||||
if (this.form.bank_number == '') {
|
||||
uni.showToast({
|
||||
title: '请输入银行账号!',
|
||||
icon: 'none',
|
||||
@ -430,8 +430,20 @@
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
//正则判断银行卡不低于13位
|
||||
const regBank = /^[1-9]\d{12,}$/;
|
||||
if(!regBank.test(this.form.bank_number)){
|
||||
uni.showToast({
|
||||
title: '请输入正确的银行卡号',
|
||||
icon: "none",
|
||||
duration: 1500,
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
console.log('submit');
|
||||
|
||||
if (this.id) {
|
||||
//编辑
|
||||
console.log('编辑');
|
||||
|
@ -250,7 +250,8 @@
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
position: fixed;
|
||||
bottom: 66rpx;">
|
||||
bottom: 66rpx;"
|
||||
@click="addHead()">
|
||||
<view @click="addHead()">添加抬头</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -568,6 +569,17 @@
|
||||
})
|
||||
return;
|
||||
}
|
||||
|
||||
//正则判断银行卡不低于13位
|
||||
const regBank = /^[1-9]\d{12,}$/;
|
||||
if(!regBank.test(this.form.bank_number)){
|
||||
uni.showToast({
|
||||
title: '请输入正确的银行卡号',
|
||||
icon: "none",
|
||||
duration: 1500,
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
console.log('submit:', this.order_nos);
|
||||
// 如果存在意外引号,可以清理:
|
||||
@ -588,7 +600,7 @@
|
||||
}).then(res => {
|
||||
if (res.code == 1) {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
title: '发票申请提交成功',
|
||||
icon: 'success',
|
||||
duration: 2000
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user