|
|
@@ -1,41 +1,68 @@
|
|
|
<template>
|
|
|
- <!-- 商品订单 - 议价单 -->
|
|
|
- <section>
|
|
|
- <a-table :columns="columns"
|
|
|
- class="srcollYTable expandLeftTable"
|
|
|
- :scroll="{ x: '100%', y: '190px' }"
|
|
|
- :pagination="false"
|
|
|
- :loading="loading"
|
|
|
- :expandedRowKeys="expandedRowKeys"
|
|
|
- :customRow="Rowclick"
|
|
|
- :expandIcon="expandIcon"
|
|
|
- :expandIconAsCell="false"
|
|
|
- rowKey="key"
|
|
|
- :data-source="tableList">
|
|
|
- <!-- 额外的展开行 -->
|
|
|
- <template v-if="btnList.length"
|
|
|
- #expandedRowRender="{ record }">
|
|
|
- <BtnList :btnList="handleBtnList(record, btnList)"
|
|
|
- :record="record"
|
|
|
- class="btn-list-sticky"
|
|
|
- @click="openComponent" />
|
|
|
- </template>
|
|
|
- <template #applytime="{ text }">
|
|
|
- <span>{{ formatTime(text) }}</span>
|
|
|
- </template>
|
|
|
- <template #buyorsell="{ text }">
|
|
|
- <span>{{ getBuyOrSellName(text) }}</span>
|
|
|
- </template>
|
|
|
- <template #applystatus="{ text }">
|
|
|
- <span>{{ getScfContractStatusName(text) }}</span>
|
|
|
- </template>
|
|
|
- </a-table>
|
|
|
- <component :is="componentId"
|
|
|
- v-if="componentId"
|
|
|
- :selectedRow="selectedRow"
|
|
|
- :tableList="tableList"
|
|
|
- @cancel="closeComponent"></component>
|
|
|
- </section>
|
|
|
+ <!-- 商品订单 - 议价单 -->
|
|
|
+ <section>
|
|
|
+ <a-table
|
|
|
+ :columns="columns"
|
|
|
+ class="srcollYTable expandLeftTable"
|
|
|
+ :scroll="{ x: '100%', y: '190px' }"
|
|
|
+ :pagination="false"
|
|
|
+ :loading="loading"
|
|
|
+ :expandedRowKeys="expandedRowKeys"
|
|
|
+ :customRow="Rowclick"
|
|
|
+ :expandIcon="expandIcon"
|
|
|
+ :expandIconAsCell="false"
|
|
|
+ rowKey="key"
|
|
|
+ :data-source="tableList"
|
|
|
+ >
|
|
|
+ <!-- 额外的展开行 -->
|
|
|
+ <template v-if="btnList.length" #expandedRowRender="{ record }">
|
|
|
+ <BtnList
|
|
|
+ :btnList="handleBtnList(record, btnList)"
|
|
|
+ :record="record"
|
|
|
+ class="btn-list-sticky"
|
|
|
+ @click="openComponent"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template #applytime="{ text }">
|
|
|
+ <span>{{ formatTime(text) }}</span>
|
|
|
+ </template>
|
|
|
+ <template #transferamount="{ record }">
|
|
|
+ <div>
|
|
|
+ <!-- 审核拒绝 -->
|
|
|
+ <a-tooltip
|
|
|
+ placement="bottom"
|
|
|
+ v-if="record.applystatus === 4"
|
|
|
+ overlayClassName="toolTipTableColumn"
|
|
|
+ >
|
|
|
+ <template #title>
|
|
|
+ <span>{{ getScfContractStatusName(text) }}</span>
|
|
|
+ </template>
|
|
|
+ <span
|
|
|
+ :class="record.applystatus === 4 ? 'red' : 'white'"
|
|
|
+ >{{ record.transferamount }}</span>
|
|
|
+ <ExclamationCircleOutlined
|
|
|
+ class="ml10 red"
|
|
|
+ v-if="record.applystatus === 4"
|
|
|
+ />
|
|
|
+ </a-tooltip>
|
|
|
+ <span v-else>{{ record.transferamount }}</span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template #buyorsell="{ text }">
|
|
|
+ <span>{{ getBuyOrSellName(text) }}</span>
|
|
|
+ </template>
|
|
|
+ <template #applystatus="{ text }">
|
|
|
+ <span>{{ getScfContractStatusName(text) }}</span>
|
|
|
+ </template>
|
|
|
+ </a-table>
|
|
|
+ <component
|
|
|
+ :is="componentId"
|
|
|
+ v-if="componentId"
|
|
|
+ :selectedRow="selectedRow"
|
|
|
+ :tableList="tableList"
|
|
|
+ @cancel="closeComponent"
|
|
|
+ ></component>
|
|
|
+ </section>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
@@ -60,10 +87,12 @@ import Bus from '@/utils/eventBus/index';
|
|
|
import { ref } from 'vue';
|
|
|
import { ApplyType } from '@/common/constants/enumCommon';
|
|
|
import { getBuyOrSellName, getScfContractStatusName } from '@/common/constants/enumsName';
|
|
|
+import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'commodity_contract_bargain',
|
|
|
components: {
|
|
|
+ ExclamationCircleOutlined,
|
|
|
BtnList,
|
|
|
// [ModalEnum.commodity_contract_summary_settlement]: defineAsyncComponent(() => import('./components/commodity_contract_summary_settlement/index.vue')),
|
|
|
// [ModalEnum.commodity_contract_summary_transfer]: defineAsyncComponent(() => import('./components/commodity_contract_summary_transfer/index.vue')),
|