Преглед изворни кода

Merge branch 'master' of http://47.101.159.18:3000/Muchinfo/MTP2.0_WEB

huangbin пре 4 година
родитељ
комит
52af95bd6d

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

@@ -355,6 +355,23 @@ export function getContractName(type: number): string {
     return result
 }
 
+export function getFinancingStatus(status: number, price: String) : String{
+    let result = "--";
+    switch (status) {
+        case 1:
+            result = "正常";
+            break
+        case 2:
+            result = "预警"
+            break
+        case 3:
+            result = "支付尾款" + price + "元";
+            break
+    }
+    return result;
+}
+
+
 //委托状态 - 1: 委托请求 2:待冻结 3:委托成功 4: 委托失败 5:配对成功 6: 已撤销 7:部分成交 8:已成交 9:部成部撤 10:成交失败 11:已拒绝 12:经过摘牌(先摘后挂专用-先摘后挂已摘过) 13:冻结成功(通道交易专用) 14:通道已撤 15:通道部成部撤 16:成交失败违约(荷兰式竞拍专用)
 export function getOrderStatusName(type: number): string {
     let result = "--";

+ 4 - 3
src/views/platinum/platinum_financing_information/list/tab/index.vue

@@ -18,7 +18,8 @@
         </template>
         <!-- 物流信息 -->
         <template #scfcontractstatus="{ record }">
-          <a>{{ getContractName(record.scfcontractstatus) }}</a>
+            <div>{{ getFinancingStatus(record.currisklevel, record.reckonrecovermargin) }}</div>
+            <div v-if="record.currisklevel === 2">{{  "需追加" + record.reckonrecovermargin + "元" }}</div>
         </template>
 
         <!-- 账户类型 -->
@@ -38,7 +39,7 @@ import Filter from './compoments/filter/index.vue';
 import Detail from './compoments/detail/index.vue';
 import { QhjContract } from '@/services/go/ermcp/qhj/interface';
 import { queryContract } from '@/services/go/ermcp/qhj';
-import { getContractName } from '@/common/constants/enumsName';
+import {getContractName, getFinancingStatus} from '@/common/constants/enumsName';
 
 export default defineComponent({
     name: 'platinum_financing_information_tab',
@@ -70,7 +71,7 @@ export default defineComponent({
             updateColumn,
             queryTable,
             btnClick,
-            getContractName,
+            getFinancingStatus,
         };
     },
 });