Merge remote-tracking branch 'origin/main' into dev-cl

dev-cl
caolin 4 weeks ago
commit acccadd43a
  1. 2
      src/components/UploadFile/src/UploadFile.vue
  2. 73
      src/views/Home/Comp/SignListCard.vue

@ -47,7 +47,7 @@ const props = defineProps({
// fileType: propTypes.array.def(['doc', 'xls', 'ppt', 'txt', 'pdf']), // , ['png', 'jpg', 'jpeg'] // fileType: propTypes.array.def(['doc', 'xls', 'ppt', 'txt', 'pdf']), // , ['png', 'jpg', 'jpeg']
fileType: propTypes.array.def([]), fileType: propTypes.array.def([]),
accept: propTypes.string.def('*'), accept: propTypes.string.def('*'),
fileSize: propTypes.number.def(5), // (MB) fileSize: propTypes.number.def(100), // (MB)
limit: propTypes.number.def(5), // limit: propTypes.number.def(5), //
autoUpload: propTypes.bool.def(true), // autoUpload: propTypes.bool.def(true), //
drag: propTypes.bool.def(false), // drag: propTypes.bool.def(false), //

@ -38,31 +38,42 @@
</el-form> </el-form>
<el-table :data="tableList" border stripe show-summary :summary-method="getSummaries"> <el-table :data="tableList" border stripe show-summary :summary-method="getSummaries">
<el-table-column label="周期" prop="period" width="110px" /> <el-table-column label="周期" prop="period" width="110px" />
<el-table-column prop="signNumber" label="成交数" /> <el-table-column label="成交" align="center">
<el-table-column prop="signPrice" label="成交额" /> <el-table-column prop="signNumber" label="成交数" />
<el-table-column <el-table-column prop="signPrice" label="成交额" />
prop="signPriceSequentialGrowth" <el-table-column prop="signPriceSequentialGrowth" label="环比" :formatter="parseRate" />
label="成交额环比增长" <el-table-column
:formatter="parseRate" prop="signPriceSamePeriodCompareGrowth"
/> label="同比"
<el-table-column :formatter="parseRate"
prop="signPriceSamePeriodCompareGrowth" />
label="成交额同比增长" </el-table-column>
:formatter="parseRate" <el-table-column label="利润" align="center">
/> <el-table-column prop="profit">
<el-table-column prop="profit" label="利润" /> <template #header> <Tooltip message="公司利润" /> <span>利润</span> </template>
<el-table-column prop="profitSequentialGrowth" label="利润环比增长" :formatter="parseRate" /> </el-table-column>
<el-table-column <el-table-column prop="profitSequentialGrowth" label="环比" :formatter="parseRate" />
prop="profitSamePeriodCompareGrowth" <el-table-column prop="profitSamePeriodCompareGrowth" label="同比" :formatter="parseRate" />
label="利润同比增长" </el-table-column>
:formatter="parseRate"
/> <el-table-column prop="notReceivedMoney">
<el-table-column prop="notReceivedMoney" label="未到账金额" /> <template #header>
<el-table-column prop="receivedMoney" label="已到账金额" /> <Tooltip message="回款列表中未审核的公司利润" /> <span>未到账</span>
</template>
</el-table-column>
<el-table-column prop="receivedMoney">
<template #header>
<Tooltip message="回款列表中已审核的公司利润" /> <span>已到账</span>
</template>
</el-table-column>
<el-table-column prop="waitSettleMoney" label="待结算金额" /> <el-table-column prop="waitSettleMoney" label="待结算金额" />
<el-table-column prop="settledMoney" label="已结算金额" /> <el-table-column prop="settledMoney" label="已结算金额" />
<el-table-column prop="refundAmount" label="已退款金额" /> <el-table-column prop="refundAmount" label="已退款金额" />
<el-table-column prop="remainMoney" label="结余" /> <el-table-column prop="remainMoney">
<template #header>
<Tooltip message="已到账金额-已结算金额-已退款金额" /> <span>结余</span>
</template>
</el-table-column>
</el-table> </el-table>
</ContentWrap> </ContentWrap>
</template> </template>
@ -129,14 +140,16 @@ function getSummaries({ columns, data }) {
if (column.property.includes('Growth')) { if (column.property.includes('Growth')) {
sums[index] = '' sums[index] = ''
} else { } else {
sums[index] = values.reduce((prev, curr) => { sums[index] = values
const value = Number(curr) .reduce((prev, curr) => {
if (!Number.isNaN(value)) { const value = Number(curr)
return prev + curr if (!Number.isNaN(value)) {
} else { return prev + curr
return prev } else {
} return prev
}, 0) }
}, 0)
.toFixed(2)
} }
} else { } else {
sums[index] = '' sums[index] = ''

Loading…
Cancel
Save