|
|
@@ -74,132 +74,51 @@ export default defineComponent({
|
|
|
key: 'remainamount',
|
|
|
},
|
|
|
];
|
|
|
+ function getStatus(type: number): string {
|
|
|
+ let result = '--';
|
|
|
+ switch (type) {
|
|
|
+ case 1:
|
|
|
+ result = '待确认';
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ result = '已确认';
|
|
|
+ break;
|
|
|
+ case 3:
|
|
|
+ result = '确认拒绝';
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ result = '已支付保证金';
|
|
|
+ break;
|
|
|
+ case 5:
|
|
|
+ result = '已激活';
|
|
|
+ break;
|
|
|
+ case 6:
|
|
|
+ result = '已违约';
|
|
|
+ break;
|
|
|
+ case 7:
|
|
|
+ result = '到期结束';
|
|
|
+ break;
|
|
|
+ case 8:
|
|
|
+ result = '延期结束';
|
|
|
+ break;
|
|
|
+ case 9:
|
|
|
+ result = '违约结束';
|
|
|
+ break;
|
|
|
+ case 10:
|
|
|
+ result = '已注销';
|
|
|
+ break;
|
|
|
+ case 11:
|
|
|
+ result = '已关闭';
|
|
|
+ break;
|
|
|
+ case 99:
|
|
|
+ result = '未提交';
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
watchEffect(() => {
|
|
|
if (visible.value) {
|
|
|
const data = props.selectedRow;
|
|
|
- [
|
|
|
- {
|
|
|
- key: '0',
|
|
|
- dataIndex: 'logincode',
|
|
|
- title: '账号',
|
|
|
- align: 'center',
|
|
|
- slots: {
|
|
|
- customRender: 'logincode',
|
|
|
- },
|
|
|
- width: 120,
|
|
|
- },
|
|
|
- {
|
|
|
- key: '1',
|
|
|
- dataIndex: 'username',
|
|
|
- title: '名称',
|
|
|
- align: 'center',
|
|
|
- slots: {
|
|
|
- customRender: 'username',
|
|
|
- },
|
|
|
- width: 120,
|
|
|
- },
|
|
|
- {
|
|
|
- key: '2',
|
|
|
- dataIndex: 'regularlymodevalue',
|
|
|
- title: '账户类型',
|
|
|
- align: 'center',
|
|
|
- slots: {
|
|
|
- customRender: 'regularlymodevalue',
|
|
|
- },
|
|
|
- width: 120,
|
|
|
- },
|
|
|
- {
|
|
|
- key: '3',
|
|
|
- dataIndex: 'goodsname',
|
|
|
- title: '商品',
|
|
|
- align: 'center',
|
|
|
- slots: {
|
|
|
- customRender: 'goodsname',
|
|
|
- },
|
|
|
- width: 120,
|
|
|
- },
|
|
|
- {
|
|
|
- key: '4',
|
|
|
- dataIndex: 'tradeprice',
|
|
|
- title: '价格',
|
|
|
- align: 'center',
|
|
|
- slots: {
|
|
|
- customRender: 'tradeprice',
|
|
|
- },
|
|
|
- width: 120,
|
|
|
- },
|
|
|
- {
|
|
|
- key: '5',
|
|
|
- dataIndex: 'wrqty',
|
|
|
- title: '数量',
|
|
|
- align: 'center',
|
|
|
- slots: {
|
|
|
- customRender: 'wrqty',
|
|
|
- },
|
|
|
- width: 120,
|
|
|
- },
|
|
|
- {
|
|
|
- key: '6',
|
|
|
- dataIndex: 'lenderamount',
|
|
|
- title: '金额',
|
|
|
- align: 'center',
|
|
|
- slots: {
|
|
|
- customRender: 'lenderamount',
|
|
|
- },
|
|
|
- width: 120,
|
|
|
- },
|
|
|
- {
|
|
|
- key: '7',
|
|
|
- dataIndex: 'payamount',
|
|
|
- title: '已付款',
|
|
|
- align: 'center',
|
|
|
- slots: {
|
|
|
- customRender: 'payamount',
|
|
|
- },
|
|
|
- width: 120,
|
|
|
- },
|
|
|
- {
|
|
|
- key: '8',
|
|
|
- dataIndex: 'remainamount',
|
|
|
- title: '融资额',
|
|
|
- align: 'center',
|
|
|
- slots: {
|
|
|
- customRender: 'remainamount',
|
|
|
- },
|
|
|
- width: 120,
|
|
|
- },
|
|
|
- {
|
|
|
- key: '9',
|
|
|
- dataIndex: 'totalinterest',
|
|
|
- title: '利息',
|
|
|
- align: 'center',
|
|
|
- slots: {
|
|
|
- customRender: 'totalinterest',
|
|
|
- },
|
|
|
- width: 120,
|
|
|
- },
|
|
|
- {
|
|
|
- key: '10',
|
|
|
- dataIndex: 'contractconfirmtime',
|
|
|
- title: '融资时间',
|
|
|
- align: 'center',
|
|
|
- slots: {
|
|
|
- customRender: 'contractconfirmtime',
|
|
|
- },
|
|
|
- width: 120,
|
|
|
- filteredValue: null,
|
|
|
- },
|
|
|
- {
|
|
|
- key: '11',
|
|
|
- dataIndex: 'scfcontracttype',
|
|
|
- title: '状态',
|
|
|
- align: 'center',
|
|
|
- slots: {
|
|
|
- customRender: 'scfcontracttype',
|
|
|
- },
|
|
|
- width: 120,
|
|
|
- },
|
|
|
- ];
|
|
|
// 个人
|
|
|
const person = [
|
|
|
{ label: '账号', value: formatValue(data.logincode) },
|
|
|
@@ -212,8 +131,9 @@ export default defineComponent({
|
|
|
{ label: '已付款', value: formatValue(data.payamount) },
|
|
|
{ label: '融资额', value: formatValue(data.totalinterest) },
|
|
|
{ label: '融资时间', value: formatValue(data.contractconfirmtime) },
|
|
|
- { label: '状 态', value: formatValue(data.scfcontracttype), className: 'red' },
|
|
|
+ { label: '状 态', value: getStatus(data.scfcontracttype), className: 'red' },
|
|
|
];
|
|
|
+
|
|
|
getDesList(person);
|
|
|
const param: QueryContractLogReq = {
|
|
|
scfcontractid: data.scfcontractid,
|