提交 3e8f7d65 authored 作者: matian's avatar matian

fix:修改打开发票二维码的条件

上级 0c6f77c4
......@@ -340,6 +340,7 @@ export default {
if (
row.can_add_invoice === '1' &&
row.refund_time === null &&
row.finance_confirm_status === 1 &&
row.payment_status === '80' &&
(row.invoice_status === '2' || row.invoice_status === '5' || row.invoice_status === '6')
) {
......@@ -366,14 +367,20 @@ export default {
})
},
qrCode(row) {
if (row.payment_status_name !== '已开具') {
this.$message.error('当前状态无法查看发票二维码')
return
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('当前不可查看发票二维码')
}
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
},
// 获取过滤条件
fetchCondition() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论