|
|
@@ -32,28 +32,28 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent, PropType, ref, watchEffect } from 'vue';
|
|
|
-import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
|
|
|
-import { formatValue } from '@/common/methods';
|
|
|
import { Des, handleDesList } from '@/common/components/commonDes';
|
|
|
-import { closeModal } from '@/common/setup/modal';
|
|
|
+import { getFinancingStatus } from '@/common/constants/enumsName';
|
|
|
import { queryTableList } from '@/common/export/table';
|
|
|
-import { QhjContract, QueryContractLogReq } from '@/services/go/ermcp/qhj/interface';
|
|
|
+import { formatValue } from '@/common/methods';
|
|
|
+import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
import { queryContractLog } from '@/services/go/ermcp/qhj';
|
|
|
-import Long from 'long';
|
|
|
-import {getFinancingStatus} from "@/common/constants/enumsName";
|
|
|
+import { QhjContract, QueryContractLogReq } from '@/services/go/ermcp/qhj/interface';
|
|
|
+import { defineComponent, PropType } from 'vue';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'platinum_financing_information_detail',
|
|
|
components: { Des },
|
|
|
+ emits: ['cancel', 'update'],
|
|
|
props: {
|
|
|
selectedRow: {
|
|
|
type: Object as PropType<QhjContract>,
|
|
|
default: {},
|
|
|
},
|
|
|
},
|
|
|
- setup(props: { selectedRow: QhjContract }) {
|
|
|
- const { visible, cancel } = closeModal('platinum_financing_information_detail');
|
|
|
+ setup(props: { selectedRow: QhjContract }, context) {
|
|
|
+ // 控制关闭弹窗
|
|
|
+ const { visible, cancel } = _closeModal(context);
|
|
|
const { desList, getDesList } = handleDesList();
|
|
|
// 表格列表数据
|
|
|
const { loading, tableList, queryTable } = queryTableList();
|
|
|
@@ -116,33 +116,31 @@ export default defineComponent({
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
- watchEffect(() => {
|
|
|
- if (visible.value) {
|
|
|
- const data = props.selectedRow;
|
|
|
|
|
|
- const addinfo = data.currisklevel === 2 ? " 需追加" + data.reckonrecovermargin + "元" : ""
|
|
|
- // 个人
|
|
|
- const person = [
|
|
|
- { label: '账号', value: formatValue(data.logincode) },
|
|
|
- { label: '名称', value: formatValue(data.username) },
|
|
|
- { label: '账户类型', value: formatValue(data.userinfotype === 1 ? '个人' : '企业') },
|
|
|
- { label: '商品', value: formatValue(data.goodsname) },
|
|
|
- { label: '价格', value: formatValue(data.tradeprice) },
|
|
|
- { label: '数 量', value: formatValue(data.wrqty) },
|
|
|
- { label: '金额', value: formatValue(data.lenderamount) },
|
|
|
- { label: '已付款', value: formatValue(data.payamount) },
|
|
|
- { label: '融资额', value: formatValue(data.remainamount) },
|
|
|
- { label: '融资时间', value: formatValue(data.contractconfirmtime) },
|
|
|
- { label: '状 态', value: getFinancingStatus(data.currisklevel, data.reckonrecovermargin.toString()) + addinfo},
|
|
|
- ];
|
|
|
+ const data = props.selectedRow;
|
|
|
+
|
|
|
+ const addinfo = data.currisklevel === 2 ? ' 需追加' + data.reckonrecovermargin + '元' : '';
|
|
|
+ // 个人
|
|
|
+ const person = [
|
|
|
+ { label: '账号', value: formatValue(data.logincode) },
|
|
|
+ { label: '名称', value: formatValue(data.username) },
|
|
|
+ { label: '账户类型', value: formatValue(data.userinfotype === 1 ? '个人' : '企业') },
|
|
|
+ { label: '商品', value: formatValue(data.goodsname) },
|
|
|
+ { label: '价格', value: formatValue(data.tradeprice) },
|
|
|
+ { label: '数 量', value: formatValue(data.wrqty) },
|
|
|
+ { label: '金额', value: formatValue(data.lenderamount) },
|
|
|
+ { label: '已付款', value: formatValue(data.payamount) },
|
|
|
+ { label: '融资额', value: formatValue(data.remainamount) },
|
|
|
+ { label: '融资时间', value: formatValue(data.contractconfirmtime) },
|
|
|
+ { label: '状 态', value: getFinancingStatus(data.currisklevel, data.reckonrecovermargin.toString()) + addinfo },
|
|
|
+ ];
|
|
|
+
|
|
|
+ getDesList(person);
|
|
|
+ const param: QueryContractLogReq = {
|
|
|
+ scfcontractid: data.scfcontractid,
|
|
|
+ };
|
|
|
+ queryTable(queryContractLog, param);
|
|
|
|
|
|
- getDesList(person);
|
|
|
- const param: QueryContractLogReq = {
|
|
|
- scfcontractid: data.scfcontractid,
|
|
|
- };
|
|
|
- queryTable(queryContractLog, param);
|
|
|
- }
|
|
|
- });
|
|
|
return {
|
|
|
desList,
|
|
|
cancel,
|