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. 47
      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 label="成交" align="center">
<el-table-column prop="signNumber" label="成交数" /> <el-table-column prop="signNumber" label="成交数" />
<el-table-column prop="signPrice" label="成交额" /> <el-table-column prop="signPrice" label="成交额" />
<el-table-column <el-table-column prop="signPriceSequentialGrowth" label="环比" :formatter="parseRate" />
prop="signPriceSequentialGrowth"
label="成交额环比增长"
:formatter="parseRate"
/>
<el-table-column <el-table-column
prop="signPriceSamePeriodCompareGrowth" prop="signPriceSamePeriodCompareGrowth"
label="成交额同比增长" label="同比"
:formatter="parseRate"
/>
<el-table-column prop="profit" label="利润" />
<el-table-column prop="profitSequentialGrowth" label="利润环比增长" :formatter="parseRate" />
<el-table-column
prop="profitSamePeriodCompareGrowth"
label="利润同比增长"
:formatter="parseRate" :formatter="parseRate"
/> />
<el-table-column prop="notReceivedMoney" label="未到账金额" /> </el-table-column>
<el-table-column prop="receivedMoney" label="已到账金额" /> <el-table-column label="利润" align="center">
<el-table-column prop="profit">
<template #header> <Tooltip message="公司利润" /> <span>利润</span> </template>
</el-table-column>
<el-table-column prop="profitSequentialGrowth" label="环比" :formatter="parseRate" />
<el-table-column prop="profitSamePeriodCompareGrowth" label="同比" :formatter="parseRate" />
</el-table-column>
<el-table-column prop="notReceivedMoney">
<template #header>
<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,7 +140,8 @@ 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
.reduce((prev, curr) => {
const value = Number(curr) const value = Number(curr)
if (!Number.isNaN(value)) { if (!Number.isNaN(value)) {
return prev + curr return prev + curr
@ -137,6 +149,7 @@ function getSummaries({ columns, data }) {
return prev return prev
} }
}, 0) }, 0)
.toFixed(2)
} }
} else { } else {
sums[index] = '' sums[index] = ''

Loading…
Cancel
Save