提交 dfd1f925 authored 作者: matian's avatar matian

fix:更新代码

上级 308a5304
......@@ -339,16 +339,29 @@ export default {
createPop(row) {
this.row = row
this.id = row.id
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')
) {
this.ticketVisible = true
// 学费
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 {
this.$message.error('当前不可开发票')
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('当前不可开发票')
}
}
},
// 作废发票
......@@ -369,19 +382,35 @@ export default {
})
},
qrCode(row) {
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
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.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 {
this.$message.error('当前不可查看发票二维码')
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')
) {
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('当前不可查看发票二维码')
}
}
},
// 获取过滤条件
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论