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

fix:开具发票判断调整

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