|
@@ -43,7 +43,12 @@ import { getBtnList } from '@/common/setup/contextMenu/index';
|
|
|
import contextMenu from '@/common/components/contextMenu/index.vue';
|
|
import contextMenu from '@/common/components/contextMenu/index.vue';
|
|
|
import { getColumsAndSearch } from '../setup';
|
|
import { getColumsAndSearch } from '../setup';
|
|
|
import { QueryActualExposure, QueryActualExposureDetail, QueryAutualExposurePosition } from '@/services/go/ermcp/exposure/index';
|
|
import { QueryActualExposure, QueryActualExposureDetail, QueryAutualExposurePosition } from '@/services/go/ermcp/exposure/index';
|
|
|
-import { ErmcpRealExposureModel, Ermcp3ExposureDetail, ErmcpExposurePostion } from '@/services/go/ermcp/exposure/interface';
|
|
|
|
|
|
|
+import {
|
|
|
|
|
+ ErmcpRealExposureModel,
|
|
|
|
|
+ Ermcp3ExposureDetail,
|
|
|
|
|
+ ErmcpExposurePostion,
|
|
|
|
|
+ ErmcpExposurePostionReq, Ermcp3ExposureReq
|
|
|
|
|
+} from '@/services/go/ermcp/exposure/interface';
|
|
|
import { message } from 'ant-design-vue';
|
|
import { message } from 'ant-design-vue';
|
|
|
import { handleTableEvent } from '@/common/setup/event/index';
|
|
import { handleTableEvent } from '@/common/setup/event/index';
|
|
|
import ThridMenu from '@/common/components/thirdMenu/index.vue';
|
|
import ThridMenu from '@/common/components/thirdMenu/index.vue';
|
|
@@ -103,29 +108,37 @@ function handleDeatil(loading: Ref<boolean>, selectedRow: ErmcpRealExposureModel
|
|
|
// 现货明细信息
|
|
// 现货明细信息
|
|
|
function ActualExposureDetail() {
|
|
function ActualExposureDetail() {
|
|
|
loading.value = true;
|
|
loading.value = true;
|
|
|
- const param = { middleGoodsId: unref(selectedRow).MiddleGoodsID };
|
|
|
|
|
- QueryActualExposureDetail(param)
|
|
|
|
|
- .then((res) => {
|
|
|
|
|
- detailTableList.value = res.map((e, i) => {
|
|
|
|
|
- return { ...e, key: String(i) };
|
|
|
|
|
|
|
+ let param: Ermcp3ExposureReq = {
|
|
|
|
|
+ middlegoodsid: unref(selectedRow).MiddleGoodsID
|
|
|
|
|
+ }
|
|
|
|
|
+ if(undefined !== unref(selectedRow).MiddleGoodsID) {
|
|
|
|
|
+ QueryActualExposureDetail(param)
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ detailTableList.value = res.map((e, i) => {
|
|
|
|
|
+ return { ...e, key: String(i) };
|
|
|
|
|
+ });
|
|
|
|
|
+ loading.value = false;
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch((err) => {
|
|
|
|
|
+ message.error(err);
|
|
|
|
|
+ loading.value = false;
|
|
|
});
|
|
});
|
|
|
- loading.value = false;
|
|
|
|
|
- })
|
|
|
|
|
- .catch((err) => {
|
|
|
|
|
- message.error(err);
|
|
|
|
|
- loading.value = false;
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
// 期货头寸明细
|
|
// 期货头寸明细
|
|
|
function AutualExposurePosition() {
|
|
function AutualExposurePosition() {
|
|
|
loading.value = true;
|
|
loading.value = true;
|
|
|
- const param = { middleGoodsId: unref(selectedRow).MiddleGoodsID };
|
|
|
|
|
- QueryAutualExposurePosition(param).then((res) => {
|
|
|
|
|
- detailTableList.value = res.map((e, i) => {
|
|
|
|
|
- return { ...e, key: String(i) };
|
|
|
|
|
|
|
+ let param: ErmcpExposurePostionReq = {
|
|
|
|
|
+ middlegoodsid: unref(selectedRow).MiddleGoodsID
|
|
|
|
|
+ }
|
|
|
|
|
+ if(undefined !== unref(selectedRow).MiddleGoodsID) {
|
|
|
|
|
+ QueryAutualExposurePosition(param).then((res) => {
|
|
|
|
|
+ detailTableList.value = res.map((e, i) => {
|
|
|
|
|
+ return {...e, key: String(i)};
|
|
|
|
|
+ });
|
|
|
|
|
+ loading.value = false;
|
|
|
});
|
|
});
|
|
|
- loading.value = false;
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
return { tabList, selectMenu, detailTableList, detailColumns };
|
|
return { tabList, selectMenu, detailTableList, detailColumns };
|
|
|
}
|
|
}
|