|
|
@@ -1,45 +1,45 @@
|
|
|
<template>
|
|
|
- <!-- 管理 - 财务审核 - 款项 -->
|
|
|
- <div class="business-review-js" :loading="loading">
|
|
|
- <Filter @search="updateColumn"></Filter>
|
|
|
- <a-table :columns="columns" class="srcollYTable" :scroll="{ x: '100%', y: 'calc(100vh - 163px)' }" :pagination="false" :expandedRowKeys="expandedRowKeys" :customRow="Rowclick" rowKey="key" :data-source="tableList">
|
|
|
- <!-- 额外的展开行 -->
|
|
|
- <template #expandedRowRender="{ record }">
|
|
|
- <mtp-table-button class="btn-list-sticky" :buttons="handlePermissionBtn(buttons, record)" :record="record" @click="openComponent" />
|
|
|
- </template>
|
|
|
- <!-- 现货合同类型 -->
|
|
|
- <template #contractstatus="{ record }">
|
|
|
- <a>{{ getApplyStatusName(record.applystatus) }}</a>
|
|
|
- </template>
|
|
|
- <!-- 合同类型-->
|
|
|
- <template #contracttype="{ record }">
|
|
|
- <a>{{ getContractTypeName(record.contracttype) }}</a>
|
|
|
- </template>
|
|
|
- <!-- 状态 -->
|
|
|
- <template #applystatus="{ text }">
|
|
|
- <a>{{ getApplyStatusName(text) }}</a>
|
|
|
- </template>
|
|
|
- <!-- 点价类型 -->
|
|
|
- <template #operateapplytype="{ text }">
|
|
|
- <a>{{ operateApplyTypeName(text) }}</a>
|
|
|
- </template>
|
|
|
- <!-- 款项类型 -->
|
|
|
- <template #kxtype="{ record }">
|
|
|
- <a>{{ stateName(record.deductamount, record.contracttype) }}</a>
|
|
|
- </template>
|
|
|
- <!-- 对手方 -->
|
|
|
- <template #buyusernameOrsellusername="{ record }">
|
|
|
- <a>{{ record.contracttype === 1 ? record.sellusername : record.buyusername }}</a>
|
|
|
- </template>
|
|
|
- <!-- 金额 如果是退款 则使用deductamount 如果是付款则使用payamount-->
|
|
|
- <template #payamount="{ record }">
|
|
|
- <a>{{ record.deductamount === undefined || record.deductamount === 0 ? record.payamount : record.deductamount }}</a>
|
|
|
- </template>
|
|
|
- </a-table>
|
|
|
- <!-- 右键 -->
|
|
|
- <contextMenu :contextMenu="contextMenu" @cancel="closeContext" :list="handlePermissionBtn(buttons, selectedRow)"> </contextMenu>
|
|
|
- <component :is="componentId" v-if="componentId" :selectedRow="selectedRow" @cancel="closeComponent"></component>
|
|
|
- </div>
|
|
|
+ <!-- 管理 - 财务审核 - 款项 -->
|
|
|
+ <div class="business-review-js" :loading="loading">
|
|
|
+ <Filter @search="updateColumn"></Filter>
|
|
|
+ <a-table :columns="columns" class="srcollYTable" :scroll="{ x: '100%', y: 'calc(100vh - 163px)' }" :pagination="false" :expandedRowKeys="expandedRowKeys" :customRow="Rowclick" rowKey="key" :data-source="tableList">
|
|
|
+ <!-- 额外的展开行 -->
|
|
|
+ <template #expandedRowRender="{ record }">
|
|
|
+ <mtp-table-button class="btn-list-sticky" :buttons="handlePermissionBtn(buttons, record)" :record="record" @click="openComponent" />
|
|
|
+ </template>
|
|
|
+ <!-- 现货合同类型 -->
|
|
|
+ <template #contractstatus="{ record }">
|
|
|
+ <a>{{ getApplyStatusName(record.applystatus) }}</a>
|
|
|
+ </template>
|
|
|
+ <!-- 合同类型-->
|
|
|
+ <template #contracttype="{ record }">
|
|
|
+ <a>{{ getContractTypeName(record.contracttype) }}</a>
|
|
|
+ </template>
|
|
|
+ <!-- 状态 -->
|
|
|
+ <template #applystatus="{ text }">
|
|
|
+ <a>{{ getApplyStatusName(text) }}</a>
|
|
|
+ </template>
|
|
|
+ <!-- 点价类型 -->
|
|
|
+ <template #operateapplytype="{ text }">
|
|
|
+ <a>{{ operateApplyTypeName(text) }}</a>
|
|
|
+ </template>
|
|
|
+ <!-- 款项类型 -->
|
|
|
+ <template #kxtype="{ record }">
|
|
|
+ <a>{{ stateName(record.deductamount, record.contracttype) }}</a>
|
|
|
+ </template>
|
|
|
+ <!-- 对手方 -->
|
|
|
+ <template #buyusernameOrsellusername="{ record }">
|
|
|
+ <a>{{ record.contracttype === 1 ? record.sellusername : record.buyusername }}</a>
|
|
|
+ </template>
|
|
|
+ <!-- 金额 如果是退款 则使用deductamount 如果是付款则使用payamount-->
|
|
|
+ <template #payamount="{ record }">
|
|
|
+ <a>{{ record.deductamount === undefined || record.deductamount === 0 ? record.payamount : record.deductamount }}</a>
|
|
|
+ </template>
|
|
|
+ </a-table>
|
|
|
+ <!-- 右键 -->
|
|
|
+ <contextMenu :contextMenu="contextMenu" @cancel="closeContext" :list="handlePermissionBtn(buttons, selectedRow)"> </contextMenu>
|
|
|
+ <component :is="componentId" v-if="componentId" :selectedRow="selectedRow" @cancel="closeComponent"></component>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
@@ -80,7 +80,7 @@ export default defineComponent({
|
|
|
queryTable(QueryBusinessKx, { applystatus: '1' });
|
|
|
break;
|
|
|
case 'funds_performance':
|
|
|
- queryTable(QueryBusinessKx, { applystatus: '2' });
|
|
|
+ queryTable(QueryBusinessKx, { applystatus: '2,3' });
|
|
|
break;
|
|
|
}
|
|
|
};
|