Forráskód Böngészése

commit 提交代码

yu jie 4 éve
szülő
commit
032ab39572

+ 32 - 0
src/common/constants/enumsName.ts

@@ -903,6 +903,38 @@ export function getScfContractTypeName(type: number) {
     return result
 }
 
+// <!-- 结算方式 1:按日结息 3:按月结息-->
+export function getInterestSettleModeName(type: number) {
+    let result = "--"
+    switch (type) {
+        case 1:
+            result = '按日结息'
+            break
+        case 3:
+            result = '按月结息'
+            break
+    }
+    return result
+}
+
+//    interestratemode: number;//利率方式 - 1:年利率 2:日利率 3:日固定值
+export function getInterestrateModeName(mode: number ,value: number) {
+    let result = "--"
+    switch (mode) {  // 1:年利率
+        case 1:
+            result = (value * 100).toFixed(2).toString()
+            break
+        case 2: //  2:日利率
+            result =  (value * 10000).toFixed(2).toString()
+            break
+        case 3: // 日固定值
+            result = value.toFixed(2).toString()
+            break;
+    }
+    return result
+}
+
+
 
 /**
  * 资金操作类型

+ 18 - 1
src/views/order/financing_manager/components/financing_manager_apply_order/index.vue

@@ -33,6 +33,16 @@
       <template #createtime="{ record }">
         <a>{{ formatTime(record.createtime) }}</a>
       </template>
+
+    <!-- 结算方式 1:按日结息 3:按月结息-->
+        <template #interestsettlemode="{ record }">
+            <a>{{ getInterestSettleModeName(record.interestsettlemode) }}</a>
+        </template>
+        <!-- 费用 -->
+        <template #interestsettlevalue="{ record }">
+            <a>{{ getInterestrateModeName(record.interestratemode, record.interestrate) }}</a>
+        </template>
+
     </a-table>
     <component :is="componentId"
                v-if="componentId"
@@ -52,7 +62,12 @@ import { ComposeOrderTableParam } from '@/common/setup/table/interface';
 import { formatTime } from '@/common/methods';
 import Bus from '@/utils/eventBus/index';
 import { expandIcon } from '@/common/setup/table/clolumn';
-import { getApplyStatusFinanceName, getFinanceTypeName } from '@/common/constants/enumsName';
+import {
+    getApplyStatusFinanceName,
+    getFinanceTypeName,
+    getInterestrateModeName,
+    getInterestSettleModeName
+} from '@/common/constants/enumsName';
 import { BtnList as BtnListType } from '@/common/components/btnList/interface';
 
 export default defineComponent({
@@ -95,6 +110,8 @@ export default defineComponent({
             getFinanceTypeName,
             getApplyStatusFinanceName,
             handleBtnList,
+            getInterestrateModeName,
+            getInterestSettleModeName,
         };
     },
 });