diff --git a/src/views/fee/ownerApplyInvoiceList.vue b/src/views/fee/ownerApplyInvoiceList.vue index c6190b124..77b5a1f93 100644 --- a/src/views/fee/ownerApplyInvoiceList.vue +++ b/src/views/fee/ownerApplyInvoiceList.vue @@ -75,7 +75,14 @@ - + + + @@ -108,7 +115,14 @@ - + + + @@ -231,21 +245,25 @@ export default { this.loadAcctDetails() } }, - handleFeeSelectAll(selection) { - this.formData.detailIds = selection.length - ? this.feeDetails.map(item => item.detailId) - : [] + handleFeeCheckboxChange(detailId, checked) { + if (checked) { + this.formData.detailIds.push(detailId) + } else { + this.formData.detailIds = this.formData.detailIds.filter(id => id !== detailId) + } }, - handleAcctSelectAll(selection) { - this.formData.arIds = selection.length - ? this.acctDetails.map(item => item.arId) - : [] + handleAcctCheckboxChange(arId, checked) { + if (checked) { + this.formData.arIds.push(arId) + } else { + this.formData.arIds = this.formData.arIds.filter(id => id !== arId) + } }, async handleSubmit() { try { // 验证表单 if (!this.formData.ownerId) { - this.$message.warning(this.$t('ownerApplyInvoice.chooseContent')) + this.$message.warning(this.$t('ownerApplyInvoice.chooseOwner')) return }