feature:#EQD-7093 国联民生-交易确认书校验(2)针对ETF标的获取新增信息并且支持配置分类。 ETF交易确认书中填充参考标的证券全称、参考标的基金管理人,
This commit is contained in:
@@ -13,7 +13,8 @@
|
||||
|
||||
}());
|
||||
|
||||
const consSelect = ['MarketCode', 'UnderlyingInstrumentType', 'UnderlyingState', 'UnderlyingStatus', 'UpDownLimitType'];
|
||||
|
||||
const consSelect = ['MarketCode', 'UnderlyingInstrumentType', 'UnderlyingState', 'UnderlyingStatus', 'UpDownLimitType', 'EtfSubType'];
|
||||
|
||||
var autoUpDownLimit, autoVariety;
|
||||
|
||||
@@ -102,11 +103,15 @@ $(function () {
|
||||
case "OtherBonds":
|
||||
classType = "Bonds";
|
||||
break;
|
||||
case "Fund":
|
||||
// 重点功能:资产类型为基金及基金专户时,显示所有 Fund 专属字段。
|
||||
classType = "Fund";
|
||||
break;
|
||||
default:
|
||||
classType = type;
|
||||
break;
|
||||
}
|
||||
$('#editForm').removeClass("form-None form-Stock form-CommodityFutures form-CommoditySpot form-Bonds").addClass("form-" + classType);
|
||||
$('#editForm').removeClass("form-None form-Stock form-CommodityFutures form-CommoditySpot form-Bonds form-Fund").addClass("form-" + classType);
|
||||
}).trigger('change');
|
||||
});
|
||||
|
||||
@@ -130,6 +135,11 @@ function saveData() {
|
||||
return main.alert("资产品种类型 必须填写!");
|
||||
}
|
||||
|
||||
// 重点功能:ETF 子类只对基金及基金专户显示并必填,先在前端阻止无效提交。
|
||||
if (data.UnderlyingInstrumentType === "Fund" && !data.EtfSubType) {
|
||||
return main.alert("ETF 子类 必须填写!");
|
||||
}
|
||||
|
||||
if (data.UnderlyingInstrumentType === "CommodityFutures" && !data.MaturityDate) {
|
||||
return main.alert("到期日 必须填写!");
|
||||
}
|
||||
@@ -144,4 +154,4 @@ function saveData() {
|
||||
main.parentReloadData();
|
||||
window.location.href = "/underlying_manager/underlying_managerView?enid=" + resp.obj.EncryptId;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user