<template> <div class="customer-management-information-content"> <div v-for="(item, index) in dataList" :key="index"> <table-double-view :keyValue="keyValueDouble" :data="item"></table-double-view> <div style="height: 1px;background-color: #e0e1e2;border-left: 100px solid #fff;border-right: 100px solid #fff"></div> </div> </div> </template> <script lang="ts"> import { Component, Vue } from "vue-property-decorator"; import TableDoubleView from "@/public/TableDoubleView.vue"; import nettyApi from "@/constants/api/ms-netty/netty.api"; import { NativeUI } from "@/public/ts/NativeUI"; import IF from "@/public/factory/InterFaceFactory"; import Public from "@/public/ts/Public"; /** * @Description 家庭资产状况 * @Author JiangTao * @Date 2021-11-10 下午 04:30 */ @Component({ name: "FamilyAssetStatus", components: { TableDoubleView }, }) export default class FamilyAssetStatus extends Vue { keyValueDouble = { FINANCIALITEM: "资产类别", ARGS: "区域/型号/类别", AMOUNT: "资产净值", CONVAMOUNT: "收入金额(元)", }; dataList: any = []; dataBasic: any = {}; mounted() { this.selectBasicInfo(); } //查询个人基本信息 selectBasicInfo() { const param = { CUSTOMERID: this.$route.query.CUSTOMERID, tc: nettyApi.TRADE_CODE.selectPersonalBasicInfo, }; NativeUI.showWaiting("正在查询..."); return IF.transferDataInter(nettyApi.commonRq, param).then((res: any) => { NativeUI.closeWaiting(); if (res.rc == "1") { if (res.FinanceInfoJtzc && res.FinanceInfoJtzc.length > 0) { for (let i = 0; i < res.FinanceInfoJtzc.length; i++) { this.dataBasic = res.FinanceInfoJtzc[i]; this.dataBasic.AMOUNT = Public.formatMoney(this.dataBasic.AMOUNT,','); this.dataBasic.CONVAMOUNT = Public.formatMoney(this.dataBasic.CONVAMOUNT,','); this.dataList.push(this.dataList); } } } else { NativeUI.toast(res.msg); } }); } } </script> <style scoped></style>