提交 6b7b4395 authored 作者: matian's avatar matian

fix:开具发票判断调整

上级 ed99bbbc
......@@ -340,24 +340,7 @@ export default {
this.row = row
this.id = row.id
// 学费
if (row.type === '20') {
if (
row.can_add_invoice === '1' &&
row.refund_time === null &&
row.payment_status === '80' &&
(row.invoice_status === '2' || row.invoice_status === '5' || row.invoice_status === '6')
) {
this.ticketVisible = true
} else {
this.$message.error('当前不可开发票')
}
} else {
if (
row.can_add_invoice === '1' &&
row.refund_time === null &&
row.payment_status === '80' &&
(row.invoice_status === '2' || row.invoice_status === '5' || row.invoice_status === '6')
) {
if (row.real_invoice_status === '1') {
this.ticketVisible = true
} else {
this.$message.error('当前不可开发票')
......@@ -382,35 +365,13 @@ export default {
})
},
qrCode(row) {
if (row.type === '20') {
if (
row.can_add_invoice === '1' &&
row.refund_time === null &&
row.payment_status === '80' &&
row.finance_confirm_status === 1 &&
(row.invoice_status === '2' || row.invoice_status === '5' || row.invoice_status === '6')
) {
this.shareUrl = `${import.meta.env.VITE_SHARE_URL}/h5/payment/invoice?id=${row.id}&remark=${
row.payer_name
}&name=${row.sales_rep_user_id_name}`
this.codeVisible = true
} else {
this.$message.error('当前不可查看发票二维码')
}
if (row.real_invoice_status === '1') {
this.shareUrl = `${import.meta.env.VITE_SHARE_URL}/h5/payment/invoice?id=${row.id}&remark=${
row.payer_name
}&name=${row.sales_rep_user_id_name}`
this.codeVisible = true
} else {
if (
row.can_add_invoice === '1' &&
row.refund_time === null &&
row.payment_status === '80' &&
(row.invoice_status === '2' || row.invoice_status === '5' || row.invoice_status === '6')
) {
this.shareUrl = `${import.meta.env.VITE_SHARE_URL}/h5/payment/invoice?id=${row.id}&remark=${
row.payer_name
}&name=${row.sales_rep_user_id_name}`
this.codeVisible = true
} else {
this.$message.error('当前不可查看发票二维码')
}
this.$message.error('当前不可查看发票二维码')
}
},
// 获取过滤条件
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论