|
|
@@ -70,10 +70,16 @@
|
|
|
<template #applyname="{ record }">
|
|
|
<span>{{ formatValue(record.applyname) }}</span>
|
|
|
</template>
|
|
|
+
|
|
|
<template #warehousename="{ record }">
|
|
|
{{ record.warehousecode }}
|
|
|
</template>
|
|
|
|
|
|
+ <!-- 套期类型 -->
|
|
|
+ <template #hedgedtype="{ text }">
|
|
|
+ <span>{{ getHedgedTypeName(text) }}</span>
|
|
|
+ </template>
|
|
|
+
|
|
|
<!-- 款项记录 款项类型为退款 则金额使用deductamount-->
|
|
|
</a-table>
|
|
|
</div>
|
|
|
@@ -88,7 +94,7 @@ import { QueryBusinessFp, QueryBusinessKx } from '@/services/go/ermcp/finance-re
|
|
|
import { QueryBusinessDj, QueryBusinessJs } from '@/services/go/ermcp/business-review';
|
|
|
import { QueryAreaStockApply } from '@/services/go/ermcp/inventory-review';
|
|
|
import { QueryChangeLog } from '@/services/go/ermcp/spot-contract';
|
|
|
-import { QueryPaTradeLinkDetail } from '@/services/go/ermcp/patrade-link';
|
|
|
+import { queryErmcp2HedgedItemLink } from '@/services/go/ermcp/hedgedItem';
|
|
|
import InfoDetail from '../infoDetail/index.vue';
|
|
|
import { getApplyStatusName, getReceiptName } from '@/common/constants/enumsName';
|
|
|
import { getTableColumns } from '@/common/setup/table';
|
|
|
@@ -98,8 +104,7 @@ import { InOutTypeName } from '@/views/manage/inventory-review/setup';
|
|
|
import { kxtypeName } from '@/views/manage/finance-review/setup';
|
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
import { formatValue } from '@/common/methods';
|
|
|
-import { columnsPaTradeLink } from './setup';
|
|
|
-import moment from 'moment';
|
|
|
+import { getHedgedTypeName } from '@/@next/constants/enum/hedgedType'
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'spot-contract-detail',
|
|
|
@@ -133,11 +138,11 @@ export default defineComponent({
|
|
|
{ key: 5, name: '发票记录' },
|
|
|
{ key: 6, name: props.selectedRow.contracttype === 1 ? '入库记录' : '出库记录' },
|
|
|
{ key: 7, name: '变更记录' },
|
|
|
- //{ key: 8, name: '关联记录' },
|
|
|
+ { key: 8, name: '关联记录' },
|
|
|
];
|
|
|
activeKey.value = 1;
|
|
|
function tabClick() {
|
|
|
- const { spotcontractid, contracttype, contractno } = props.selectedRow;
|
|
|
+ const { spotcontractid, contracttype } = props.selectedRow;
|
|
|
switch (activeKey.value) {
|
|
|
case 2: // 点价记录
|
|
|
registerColumn('table_pcweb_someprice_detail_dj');
|
|
|
@@ -184,11 +189,9 @@ export default defineComponent({
|
|
|
});
|
|
|
break;
|
|
|
case 8: // 关联记录
|
|
|
- columns.value.length = 0;
|
|
|
- columns.value.push(...columnsPaTradeLink);
|
|
|
- queryResultLoadingAndInfo(QueryPaTradeLinkDetail, loading, { contractno }).then((res) => {
|
|
|
- // 关联日期降序
|
|
|
- tableList.value = res.sort((a, b) => moment(b.tradetime).valueOf() - moment(a.tradetime).valueOf());
|
|
|
+ registerColumn('table_pcweb_someprice_detail_link');
|
|
|
+ queryResultLoadingAndInfo(queryErmcp2HedgedItemLink, loading, { spotcontractid }).then((res) => {
|
|
|
+ tableList.value = res;
|
|
|
});
|
|
|
break;
|
|
|
}
|
|
|
@@ -211,6 +214,7 @@ export default defineComponent({
|
|
|
kxtypeName,
|
|
|
formatValue,
|
|
|
getReceiptName,
|
|
|
+ getHedgedTypeName,
|
|
|
stateName,
|
|
|
};
|
|
|
},
|