|
@@ -72,7 +72,10 @@
|
|
|
:data="loadData"
|
|
|
:scroll="{ x: 1120, y: tableHeight }"
|
|
|
bordered>
|
|
|
-
|
|
|
+ <!-- 费用类别 -->
|
|
|
+ <template slot="expensesType" slot-scope="text, record">
|
|
|
+ {{ record.expensesTypeName1 }} <span v-if="record.expensesTypeName2">>{{ record.expensesTypeName2 }}</span> <span v-if="record.expensesTypeName3">>{{ record.expensesTypeName3 }}</span>
|
|
|
+ </template>
|
|
|
<!-- 状态 -->
|
|
|
<template slot="accountExpensesNo" slot-scope="text, record">
|
|
|
<span style="color: #ed1c24;cursor: pointer;" @click="handleDetail(record)">{{ text }}</span>
|
|
@@ -145,7 +148,7 @@ export default {
|
|
|
{ title: '序号', dataIndex: 'no', width: 80, align: 'center' },
|
|
|
{ title: '费用单号', dataIndex: 'accountExpensesNo', width: 250, align: 'center', scopedSlots: { customRender: 'accountExpensesNo' } },
|
|
|
{ title: '创建时间', dataIndex: 'createDate', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '费用类型', dataIndex: 'name', align: 'center', customRender: function (text, record) { return [record.expensesTypeName1, record.expensesTypeName2, record.expensesTypeName3].join(' > ') } },
|
|
|
+ { title: '费用类型', align: 'center', scopedSlots: { customRender: 'expensesType' } },
|
|
|
{ title: '金额', dataIndex: 'settleAmount', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? ('¥' + text) : '--') } },
|
|
|
{ title: '单据状态', dataIndex: 'stateDictValue', width: 110, align: 'center' },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: 200, align: 'center', fixed: 'right' }
|