提交 069e7ae3 authored 作者: lhh's avatar lhh

update

上级 6205d190
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<van-tabs v-model="vanTabsIndex" type="card" color="#3276fc" sticky @change="handleTabChange"> <van-tabs v-model="vanTabsIndex" type="card" color="#3276fc" sticky @change="handleTabChange">
<van-tab name="2" title="企业"></van-tab> <van-tab name="2" title="企业"></van-tab>
<van-tab name="1" title="个人"></van-tab> <van-tab name="1" title="个人"></van-tab>
<van-tab name="3" title="非营利性单位"></van-tab> <van-tab v-if="!isProject" name="3" title="非营利性单位"></van-tab>
</van-tabs> </van-tabs>
<van-form :show-error="false" ref="vanForm" @submit="fetchCreateInvoice"> <van-form :show-error="false" ref="vanForm" @submit="fetchCreateInvoice">
<div class="form-group"> <div class="form-group">
...@@ -50,7 +50,9 @@ ...@@ -50,7 +50,9 @@
:required="form.taxpayer_type === '2'" :required="form.taxpayer_type === '2'"
/> />
<!-- 报名项目开发票 --> <!-- 报名项目开发票 -->
<template v-if="isProject && form.taxpayer_type == 2 && form.invoice_type != 3"> <!-- 公路发票信息(旧版)v-if="isProject && form.taxpayer_type == 2 && form.invoice_type != 3"-->
<van-field v-if="isProject" v-model="form.taxpayer_remark" name="pattern" label="备注" placeholder="请输入备注" />
<template v-if="false">
<van-field <van-field
v-model="form.taxpayer_address" v-model="form.taxpayer_address"
name="pattern" name="pattern"
...@@ -181,6 +183,7 @@ ...@@ -181,6 +183,7 @@
required required
/> />
<van-field <van-field
v-if="!isProject"
v-model="form.sales_rep_user_id_name" v-model="form.sales_rep_user_id_name"
name="pattern" name="pattern"
label="票据跟进人" label="票据跟进人"
...@@ -254,11 +257,16 @@ export default { ...@@ -254,11 +257,16 @@ export default {
if (this.isProject) { if (this.isProject) {
// { label: '普通发票(纸质)', value: '1' }, // { label: '普通发票(纸质)', value: '1' },
list = [ list = [
{ label: '普通发票(电子)', value: '2' }, // { label: '普通发票(电子)', value: '2' },
{ label: '专用发票(纸质)', value: '3' } // { label: '专用发票(纸质)', value: '3' },
{ label: '数电普通发票', value: '4' },
{ label: '数电专用发票', value: '5' }
] ]
if (this.form.taxpayer_type !== '2') { if (this.form.taxpayer_type !== '2') {
list = [{ label: '普通发票(电子)', value: '2' }] list = [
{ label: '普通发票(电子)', value: '2' },
{ label: '数电普通发票', value: '4' }
]
} }
} else { } else {
list = [ list = [
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="invoice-success"> <div class="invoice-success">
<h5><i class="el-icon-circle-check" style="margin-right:10px;font-size:18px;"></i>提交成功</h5> <h5><i class="el-icon-circle-check" style="margin-right:10px;font-size:18px;"></i>提交成功</h5>
<p v-if="type === '1'">开票申请提交成功,请您随时关注邮箱进行收取!</p> <p v-if="type === '1'">开票申请提交成功,请您随时关注邮箱进行收取!</p>
<p v-else>开票申请提交成功,请您联系跟进人员获取纸质发票</p> <p v-else>开票申请提交成功</p>
</div> </div>
</template> </template>
<script> <script>
......
...@@ -118,6 +118,11 @@ export default { ...@@ -118,6 +118,11 @@ export default {
}, },
methods: { methods: {
handleInvoice(row) { handleInvoice(row) {
console.log(row.project_id)
if (row.project_id == 5005) {
alert('请用手机端开票')
return false
}
this.drawerVisible = true this.drawerVisible = true
this.payment_id = row.id this.payment_id = row.id
this.history = {} this.history = {}
...@@ -127,7 +132,15 @@ export default { ...@@ -127,7 +132,15 @@ export default {
handleInvoiceQR(row) { handleInvoiceQR(row) {
const remark = row.payer_name const remark = row.payer_name
const name = row.sales_rep_user_id_name const name = row.sales_rep_user_id_name
this.shareUrl = `${import.meta.env.VITE_SHARE_URL}/h5/payment/invoice?id=${row.id}&remark=${remark}&name=${name}` if (row.project_id == 5005) {
this.shareUrl = `${import.meta.env.VITE_SHARE_URL}/h5/payment/invoice?id=${
row.id
}&remark=${remark}&name=${name}&project_id=${row.project_id}&type=${row.type}`
} else {
this.shareUrl = `${import.meta.env.VITE_SHARE_URL}/h5/payment/invoice?id=${
row.id
}&remark=${remark}&name=${name}`
}
this.shareDialogVisible = true this.shareDialogVisible = true
}, },
handleSelectionChange() {}, handleSelectionChange() {},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论