|
@@ -10,7 +10,7 @@
|
|
|
<hc-gradient-card color="purple1">
|
|
|
<div class="hc-card-item-sub">
|
|
|
<div class="item-sub-title">
|
|
|
- ¥50000
|
|
|
+ ¥{{ infoData?.allMoney || 0 }}
|
|
|
</div>
|
|
|
<div class="item-sub-num">
|
|
|
<span class="num">总金额</span>
|
|
@@ -23,7 +23,7 @@
|
|
|
<HcGradientCard color="orange1">
|
|
|
<div class="hc-card-item-sub">
|
|
|
<div class="item-sub-title">
|
|
|
- ¥50000
|
|
|
+ ¥{{ infoData?.oneDayMoney || 0 }}
|
|
|
</div>
|
|
|
<div class="item-sub-num">
|
|
|
<span class="num">距离截止日期还剩</span>
|
|
@@ -37,7 +37,7 @@
|
|
|
<HcGradientCard color="yellow1">
|
|
|
<div class="hc-card-item-sub">
|
|
|
<div class="item-sub-title">
|
|
|
- ¥50000
|
|
|
+ ¥{{ infoData?.tenDaysMoney || 0 }}
|
|
|
</div>
|
|
|
<div class="item-sub-num">
|
|
|
<span class="num">距离截止日期还剩</span>
|
|
@@ -53,7 +53,7 @@
|
|
|
<hc-gradient-card color="green2">
|
|
|
<div class="hc-card-item-sub">
|
|
|
<div class="item-sub-title">
|
|
|
- ¥50000
|
|
|
+ ¥{{ infoData?.thirtyDaysMoney || 0 }}
|
|
|
</div>
|
|
|
<div class="item-sub-num">
|
|
|
<span class="num">距离截止日期还剩</span>
|
|
@@ -67,7 +67,7 @@
|
|
|
<HcGradientCard color="blue2">
|
|
|
<div class="hc-card-item-sub">
|
|
|
<div class="item-sub-title">
|
|
|
- ¥50000
|
|
|
+ ¥{{ infoData?.sixtyDaysMoney || 0 }}
|
|
|
</div>
|
|
|
<div class="item-sub-num">
|
|
|
<span class="num">距离截止日期还剩</span>
|
|
@@ -81,7 +81,7 @@
|
|
|
<HcGradientCard color="red1">
|
|
|
<div class="hc-card-item-sub">
|
|
|
<div class="item-sub-title">
|
|
|
- ¥50000
|
|
|
+ ¥{{ infoData?.overDateMoney || 0 }}
|
|
|
</div>
|
|
|
<div class="item-sub-num">
|
|
|
<span class="num">已超过截止日期</span>
|
|
@@ -96,7 +96,28 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { ref, watch } from 'vue'
|
|
|
+import { onActivated, ref, watch } from 'vue'
|
|
|
+import staticApi from '~api/debit-pay/ledger/static'
|
|
|
+import { useAppStore } from '~src/store'
|
|
|
+import { getObjValue } from 'js-fast-way'
|
|
|
+const useAppState = useAppStore()
|
|
|
+
|
|
|
+const contractId = ref(useAppState.getContractId || '')
|
|
|
+const infoData = ref({})
|
|
|
+onActivated(()=>{
|
|
|
+ getStaticData()
|
|
|
+})
|
|
|
+const getStaticData = async ()=>{
|
|
|
+ const { error, code, data } = await staticApi.deductStatistics({
|
|
|
+ contractId:contractId.value,
|
|
|
+ })
|
|
|
+ if (!error && code === 200) {
|
|
|
+ infoData.value = getObjValue(data)
|
|
|
+
|
|
|
+ } else {
|
|
|
+ infoData.value = {}
|
|
|
+ }
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style lang='scss' scoped>
|