|
|
@@ -1,43 +1,48 @@
|
|
|
<template>
|
|
|
- <!-- 商品订单 - 委托 -->
|
|
|
- <section>
|
|
|
- <a-table :columns="columns"
|
|
|
- class="srcollYTable expandLeftTable"
|
|
|
- :scroll="{ x: '100%', y: '185px' }"
|
|
|
- :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="btnList"
|
|
|
- :record="record"
|
|
|
- class="btn-list-sticky"
|
|
|
- @click="openComponent" />
|
|
|
- </template>
|
|
|
- <!-- 类型 -->
|
|
|
- <template #buildtype="{ record }">
|
|
|
- <a>{{ getBuildTypeName(record.buildtype) }}</a>
|
|
|
- </template>
|
|
|
- <!-- 状态 -->
|
|
|
- <template #orderstatus="{ record }">
|
|
|
- <a>{{ getOrderStatusName(record.orderstatus) }}</a>
|
|
|
- </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="btnList"
|
|
|
+ :record="record"
|
|
|
+ class="btn-list-sticky"
|
|
|
+ @click="openComponent"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <!-- 类型 -->
|
|
|
+ <template #buildtype="{ record }">
|
|
|
+ <a>{{ getBuildTypeName(record.buildtype) }}</a>
|
|
|
+ </template>
|
|
|
+ <!-- 状态 -->
|
|
|
+ <template #orderstatus="{ record }">
|
|
|
+ <a>{{ getOrderStatusName(record.orderstatus) }}</a>
|
|
|
+ </template>
|
|
|
|
|
|
- <template #createtime="{ record }">
|
|
|
- <a>{{ formatTime(record.createtime) }}</a>
|
|
|
- </template>
|
|
|
- </a-table>
|
|
|
- <component :is="componentId"
|
|
|
- v-if="componentId"
|
|
|
- :selectedRow="selectedRow"
|
|
|
- @cancel="closeComponent"></component>
|
|
|
- </section>
|
|
|
+ <template #createtime="{ record }">
|
|
|
+ <a>{{ formatTime(record.createtime) }}</a>
|
|
|
+ </template>
|
|
|
+ </a-table>
|
|
|
+ <component
|
|
|
+ :is="componentId"
|
|
|
+ v-if="componentId"
|
|
|
+ :selectedRow="selectedRow"
|
|
|
+ @cancel="closeComponent"
|
|
|
+ ></component>
|
|
|
+ </section>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
@@ -51,17 +56,12 @@ import { ComposeOrderTableParam } from '@/common/setup/table/interface';
|
|
|
import { queryAmountLog } from '@/services/go/TaAccount';
|
|
|
import { QueryAmountLogReq } from '@/services/go/TaAccount/interface';
|
|
|
import { getSelectedAccountId } from '@/services/bus/account';
|
|
|
-import {
|
|
|
- getBuildTypeName,
|
|
|
- getOperateTypeEnumItemName,
|
|
|
- getOperateTypeName,
|
|
|
- getOrderStatusName
|
|
|
-} from '@/common/constants/enumsName';
|
|
|
+import { getBuildTypeName, getOperateTypeEnumItemName, getOperateTypeName, getOrderStatusName } from '@/common/constants/enumsName';
|
|
|
import { formatTime } from '@/common/methods';
|
|
|
import Bus from '@/utils/eventBus/index';
|
|
|
import { expandIcon } from '@/common/setup/table/clolumn';
|
|
|
import { queryTradeOrderDetail } from '@/services/go/ermcp/order';
|
|
|
-import {QueryTradeOrderDetailRsp} from "@/services/go/ermcp/order/interface";
|
|
|
+import { QueryTradeOrderDetailRsp } from '@/services/go/ermcp/order/interface';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: enumOrderComponents.commodity_contract_commission,
|
|
|
@@ -88,7 +88,7 @@ export default defineComponent({
|
|
|
formatTime,
|
|
|
expandIcon,
|
|
|
getBuildTypeName,
|
|
|
- getOrderStatusName
|
|
|
+ getOrderStatusName,
|
|
|
};
|
|
|
},
|
|
|
});
|