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

fix:更新代码

上级 308a5304
...@@ -339,16 +339,29 @@ export default { ...@@ -339,16 +339,29 @@ export default {
createPop(row) { createPop(row) {
this.row = row this.row = row
this.id = row.id this.id = row.id
if ( // 学费
row.can_add_invoice === '1' && if (row.type === '20') {
row.refund_time === null && if (
row.finance_confirm_status === 1 && row.can_add_invoice === '1' &&
row.payment_status === '80' && row.refund_time === null &&
(row.invoice_status === '2' || row.invoice_status === '5' || row.invoice_status === '6') row.payment_status === '80' &&
) { (row.invoice_status === '2' || row.invoice_status === '5' || row.invoice_status === '6')
this.ticketVisible = true ) {
this.ticketVisible = true
} else {
this.$message.error('当前不可开发票')
}
} else { } 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 { ...@@ -369,19 +382,35 @@ export default {
}) })
}, },
qrCode(row) { qrCode(row) {
if ( if (row.type === '20') {
row.can_add_invoice === '1' && if (
row.refund_time === null && row.can_add_invoice === '1' &&
row.payment_status === '80' && 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') (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}`
this.codeVisible = true this.codeVisible = true
} else {
this.$message.error('当前不可查看发票二维码')
}
} else { } 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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论