|
@@ -647,6 +647,7 @@
|
|
ref="invoiceReimbursementTable"
|
|
ref="invoiceReimbursementTable"
|
|
class="vxe-table-element"
|
|
class="vxe-table-element"
|
|
:data="inputForm.invoiceReimbursements"
|
|
:data="inputForm.invoiceReimbursements"
|
|
|
|
+ :footer-method="footerMethod1111"
|
|
style="margin-left: 5em"
|
|
style="margin-left: 5em"
|
|
@cell-click=""
|
|
@cell-click=""
|
|
:key="invoiceReimbursementKey"
|
|
:key="invoiceReimbursementKey"
|
|
@@ -991,7 +992,30 @@
|
|
this.inputForm.preList[index].fileInfoLost = []
|
|
this.inputForm.preList[index].fileInfoLost = []
|
|
}
|
|
}
|
|
// this.$refs.materialManagementDialog.newUpload('view', this.inputForm.preList[index].fileInfoLost, null, null, null, null, null, false, index)
|
|
// this.$refs.materialManagementDialog.newUpload('view', this.inputForm.preList[index].fileInfoLost, null, null, null, null, null, false, index)
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ footerMethod1111 ({ columns, data }) {
|
|
|
|
+ const footerData = [
|
|
|
|
+ columns.map((column, columnIndex) => {
|
|
|
|
+ if (columnIndex === 0) {
|
|
|
|
+ return '汇总'
|
|
|
|
+ }
|
|
|
|
+ if (['amount'].includes(column.property)) {
|
|
|
|
+ // eslint-disable-next-line no-undef
|
|
|
|
+ return XEUtils.sum(data, column.property)
|
|
|
|
+ }
|
|
|
|
+ if (['taxAmount'].includes(column.property)) {
|
|
|
|
+ // eslint-disable-next-line no-undef
|
|
|
|
+ return XEUtils.sum(data, column.property)
|
|
|
|
+ }
|
|
|
|
+ if (['count'].includes(column.property)) {
|
|
|
|
+ // eslint-disable-next-line no-undef
|
|
|
|
+ return XEUtils.sum(data, column.property)
|
|
|
|
+ }
|
|
|
|
+ return null
|
|
|
|
+ })
|
|
|
|
+ ]
|
|
|
|
+ return footerData
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|