|
|
@@ -1,32 +1,42 @@
|
|
|
import { QueryMiddleGoodsDetail } from '@/services/go/ermcp/goodsInfo';
|
|
|
-import { Ermcp3MiddleGoodsDetailEx } from '@/services/go/ermcp/goodsInfo/interface';
|
|
|
+import { Ermcp3MiddleGoodsDetail } from '@/services/go/ermcp/goodsInfo/interface/deliverygoodsdetail';
|
|
|
import { mergeObj } from '@/utils/objHandle';
|
|
|
import { message } from 'ant-design-vue';
|
|
|
import { reactive, ref } from 'vue';
|
|
|
import { getInitMenuData } from '../../setup';
|
|
|
|
|
|
-export function initMG(): Ermcp3MiddleGoodsDetailEx {
|
|
|
+
|
|
|
+export function initMG(): Ermcp3MiddleGoodsDetail {
|
|
|
return {
|
|
|
- dglist: [], // 关联的现货品种列表
|
|
|
- gplist: [], // 关联商品组列表
|
|
|
- mg: {
|
|
|
- areauserid: 0,
|
|
|
- evaluateratio: 0,
|
|
|
- goodsgroupid: 0,
|
|
|
- isvalid: 0,
|
|
|
- middlegoodsid: 0,
|
|
|
- needhedgeratio: 0,
|
|
|
- qtydecimalplace: 0,
|
|
|
- relatedgoodsid: 0,
|
|
|
- relatedgoodstype: 0,
|
|
|
- goodsunitid: 0,
|
|
|
- createtime: '',
|
|
|
- enumdicname: '',
|
|
|
- middlegoodscode: '',
|
|
|
- middlegoodsname: '',
|
|
|
- modifytime: '',
|
|
|
- remark: '',
|
|
|
- }
|
|
|
+ areauserid:0, //机构用户ID
|
|
|
+ enumdicname:'',//单位名称
|
|
|
+ goodsunitid:0,//套保品种单位id
|
|
|
+ gplst:[],//期货品种列表
|
|
|
+ middlegoodscode:'',//套保品种代码
|
|
|
+ middlegoodsid:0,//套保品种ID(SEQ_ERMS_MIDDLEGOODS)
|
|
|
+ middlegoodsnam:'',//套保品种名称
|
|
|
+ needarbitrageratio:0,//套利比率
|
|
|
+ needhedgeratio:0,//套保比率
|
|
|
+ wdlst:[],//商品信息列表(现货品类)
|
|
|
+ mg:{
|
|
|
+ areauserid: 0,//机构用户ID
|
|
|
+ createtime: '',//修改时间
|
|
|
+ enumdicname: '',//单位名称
|
|
|
+ evaluateratio: 0,//估价系数
|
|
|
+ goodsgroupid: 0,//关联期货品种ID
|
|
|
+ goodsunitid: 0,//单位ID
|
|
|
+ isvalid: 0,//状态 number;
|
|
|
+ //-无效(停用) 1-有效(正常)
|
|
|
+ middlegoodscode: '',//套保品种代码
|
|
|
+ middlegoodsid: 0,//套保品种ID(SEQ_ERMS_MIDDLEGOODS)
|
|
|
+ middlegoodsname: '',//套保品种名称
|
|
|
+ modifytime: '',//修改时间
|
|
|
+ needhedgeratio: 0,//套保比率
|
|
|
+ qtydecimalplace: 0,//数量小数位
|
|
|
+ relatedgoodsid: 0,//关联交易商品ID
|
|
|
+ relatedgoodstype: 0,//关联商品类型 - 1:期货合约 2:现货品种
|
|
|
+ remark: ''//备注
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -38,9 +48,9 @@ export function handleMG() {
|
|
|
const { menuList, menuMap } = getInitMenuData('goods_info_hedge')
|
|
|
const loading = ref<boolean>(false);
|
|
|
// 套保品种列表
|
|
|
- const MGList = ref<Ermcp3MiddleGoodsDetailEx[]>([])
|
|
|
+ const MGList = ref<Ermcp3MiddleGoodsDetail[]>([])
|
|
|
// 选中的具体某一天套保品种数据
|
|
|
- const selctedMG = reactive<Ermcp3MiddleGoodsDetailEx>(initMG())
|
|
|
+ const selctedMG = reactive<Ermcp3MiddleGoodsDetail>(initMG())
|
|
|
const isNormal = ref<boolean>(true) // true => 正常; false => 停用
|
|
|
function getMG(param?: number) {
|
|
|
loading.value = true;
|