This commit is contained in:
qsh
2024-07-31 18:35:36 +08:00
parent 1e40357e51
commit 48689642d8
9 changed files with 287 additions and 129 deletions

View File

@@ -239,16 +239,14 @@ const loading = ref(false)
const tableList = ref([])
const total = ref(0)
const totalNum = ref(0)
const totalAmount = ref(0)
const totalInfo = ref({})
async function getList() {
loading.value = true
try {
const data = await SettleApi.getSchoolSettlePage(removeNullField(searchForm.value))
tableList.value = data.list
total.value = data.total
totalNum.value = data.totalNum
totalAmount.value = data.totalAmount
totalInfo.value = data.totalData
} finally {
loading.value = false
}
@@ -261,9 +259,9 @@ function getSummaries(param) {
if (index === 0) {
sums[index] = '合计'
} else if (column.property == 'settlementNum') {
sums[index] = totalNum.value
sums[index] = totalInfo.value.totalNum
} else if (column.property == 'settlementMoney') {
sums[index] = totalAmount.value
sums[index] = totalInfo.value.totalAmount
} else {
sums[index] = ''
}