Authored by jiran.zhao

联调财务一件发货

... ... @@ -132,11 +132,11 @@ export default function() {
key: 'status',
align: 'center',
render: (h, params) => {
const row = params.row;
const as = row.status;
const asText = as === 2 ? `${withdrawStatus[row.status]}(${row.rejectReason})` : withdrawStatus[as];
row.lineIndex = params.index;
return <p class={{ 'high-light': as === 2 }}>{asText}</p>;
if (!params.row.status) {
return '';
}
const withdrawStatusText = withdrawStatus[params.row.status] ? withdrawStatus[params.row.status] : '';
return <div>{withdrawStatusText}</div>;
},
className: 'status-column',
},
... ...
... ... @@ -144,11 +144,11 @@ export default function() {
key: 'status',
align: 'center',
render: (h, params) => {
const row = params.row;
const as = row.status;
const asText = as === 2 ? `${withdrawStatus[row.status]}(${row.rejectReason})` : withdrawStatus[as];
row.lineIndex = params.index;
return <p class={{ 'high-light': as === 2 }}>{asText}</p>;
if (!params.row.status) {
return '';
}
const withdrawStatusText = withdrawStatus[params.row.status] ? withdrawStatus[params.row.status] : '';
return <div>{withdrawStatusText}</div>;
},
className: 'status-column',
},
... ...
... ... @@ -164,11 +164,11 @@ export default function() {
key: 'status',
align: 'center',
render: (h, params) => {
const row = params.row;
const as = row.status;
const asText = as === 2 ? `${withdrawStatus[row.status]}(${row.rejectReason})` : withdrawStatus[as];
row.lineIndex = params.index;
return <p class={{ 'high-light': as === 2 }}>{asText}</p>;
if (!params.row.status) {
return '';
}
const withdrawStatusText = withdrawStatus[params.row.status] ? withdrawStatus[params.row.status] : '';
return <div>{withdrawStatusText}</div>;
},
className: 'status-column',
},
... ...
... ... @@ -63,6 +63,9 @@ export default function() {
key: 'createTime',
align: 'center',
render(h, params) {
if (!params.row.createTime) {
return '';
}
const time = moment.unix(params.row.createTime);
return (
<div>
... ... @@ -90,18 +93,18 @@ export default function() {
{
title: '成功金额(元)',
key: 'successAmount',
align: 'center'
align: 'center',
},
{
title: '提现状态',
key: 'status',
align: 'center',
render: (h, params) => {
const row = params.row;
const as = row.status;
const asText = as === 2 ? `${withdrawStatus[row.status]}(${row.rejectReason})` : withdrawStatus[as];
row.lineIndex = params.index;
return <p class={{ 'high-light': as === 2 }}>{asText}</p>;
if (!params.row.status) {
return '';
}
const withdrawStatusText = withdrawStatus[params.row.status] ? withdrawStatus[params.row.status] : '';
return <div>{withdrawStatusText}</div>;
},
className: 'status-column',
},
... ...
... ... @@ -67,7 +67,7 @@
<div class="select-container">
<Button type="primary" @click="search">查询</Button>
<Button type="primary" @click="reset">全部</Button>
<!-- <Button>导出</Button>-->
<!-- <Button>导出</Button>-->
</div>
</filter-item>
</layout-filter>
... ...