|
@@ -90,11 +90,11 @@
|
|
:defaultLoadData="false"
|
|
:defaultLoadData="false"
|
|
bordered>
|
|
bordered>
|
|
<!-- 金额 -->
|
|
<!-- 金额 -->
|
|
- <template slot="tradeAmount" slot-scope="text, record">
|
|
|
|
- <div v-if="record.tradeAmount">
|
|
|
|
- {{ record.tradeType=='SK'? '+'+(record.tradeAmount).toFixed(2):'-'+(record.tradeAmount).toFixed(2) }}
|
|
|
|
|
|
+ <template slot="realAmount" slot-scope="text, record">
|
|
|
|
+ <div v-if="record.realAmount">
|
|
|
|
+ {{ record.tradeType=='SK'? '+'+(record.realAmount).toFixed(2):'-'+(record.realAmount).toFixed(2) }}
|
|
</div>
|
|
</div>
|
|
- <div v-else>{{ (record.tradeAmount&&record.tradeAmount==0)?(record.tradeAmount).toFixed(2):'--' }}</div>
|
|
|
|
|
|
+ <div v-else>{{ (record.realAmount&&record.realAmount==0)?(record.realAmount).toFixed(2):'--' }}</div>
|
|
</template>
|
|
</template>
|
|
<!-- 交易状态 -->
|
|
<!-- 交易状态 -->
|
|
<template slot="status" slot-scope="text, record">
|
|
<template slot="status" slot-scope="text, record">
|
|
@@ -146,7 +146,7 @@ export default {
|
|
{ title: '创建时间', dataIndex: 'createDate', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '创建时间', dataIndex: 'createDate', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '客户名称', dataIndex: 'customerName', width: '12%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '客户名称', dataIndex: 'customerName', width: '12%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '关联单号', dataIndex: 'dealerSalesNo', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '关联单号', dataIndex: 'dealerSalesNo', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
- { title: '金额(¥)', dataIndex: 'tradeAmount', width: '8%', align: 'right', scopedSlots: { customRender: 'tradeAmount' } },
|
|
|
|
|
|
+ { title: '金额(¥)', dataIndex: 'realAmount', width: '8%', align: 'right', scopedSlots: { customRender: 'realAmount' } },
|
|
{ title: '交易类型', dataIndex: 'tradeTypeDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '交易类型', dataIndex: 'tradeTypeDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '交易状态', dataIndex: 'dealStateDictValue', width: '8%', align: 'center', scopedSlots: { customRender: 'status' } }
|
|
{ title: '交易状态', dataIndex: 'dealStateDictValue', width: '8%', align: 'center', scopedSlots: { customRender: 'status' } }
|
|
],
|
|
],
|