|
@@ -73,6 +73,10 @@ import { initData } from '@/common/methods/index';
|
|
|
import { defineComponent, ref, reactive, toRaw, UnwrapRef, watchEffect } from 'vue';
|
|
import { defineComponent, ref, reactive, toRaw, UnwrapRef, watchEffect } from 'vue';
|
|
|
import { AllEnums } from '@/services/go/commonService/interface';
|
|
import { AllEnums } from '@/services/go/commonService/interface';
|
|
|
import { RuleObject, ValidateErrorEntity } from 'ant-design-vue/es/form/interface';
|
|
import { RuleObject, ValidateErrorEntity } from 'ant-design-vue/es/form/interface';
|
|
|
|
|
+import {requestResultLoadingAndInfo} from "@/common/methods/request/resultInfo";
|
|
|
|
|
+import {bizGroupReq, loginAccountOperate} from "@/services/proto/accountinfo";
|
|
|
|
|
+import {ErmcpBizGroupReq, ErmcpBizGroupTAAccount} from "@/services/proto/accountinfo/interface";
|
|
|
|
|
+import {ErmcpBizGroupSpotGoods} from "@/services/go/ermcp/account/interface";
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'add-custom',
|
|
name: 'add-custom',
|
|
@@ -80,7 +84,7 @@ export default defineComponent({
|
|
|
setup() {
|
|
setup() {
|
|
|
// 控制关闭弹窗
|
|
// 控制关闭弹窗
|
|
|
const { visible, cancel } = closeModal('account_info_manager_btn_add');
|
|
const { visible, cancel } = closeModal('account_info_manager_btn_add');
|
|
|
-
|
|
|
|
|
|
|
+ const loading = ref<boolean>(false);
|
|
|
// 证件类型
|
|
// 证件类型
|
|
|
// const cardTypeList = ref<AllEnums[]>(getCardType());
|
|
// const cardTypeList = ref<AllEnums[]>(getCardType());
|
|
|
// // 表单
|
|
// // 表单
|
|
@@ -97,18 +101,39 @@ export default defineComponent({
|
|
|
// function isPersonal(): boolean {
|
|
// function isPersonal(): boolean {
|
|
|
// return formState.userinfotype === '1';
|
|
// return formState.userinfotype === '1';
|
|
|
// }
|
|
// }
|
|
|
- // function submit() {
|
|
|
|
|
- // formRef.value
|
|
|
|
|
- // .validate()
|
|
|
|
|
- // .then(() => {
|
|
|
|
|
- // const param = toRaw(formState);
|
|
|
|
|
- // applyAction(param);
|
|
|
|
|
- // console.log('values', formState);
|
|
|
|
|
- // })
|
|
|
|
|
- // .catch((error: ValidateErrorEntity<FormState>) => {
|
|
|
|
|
- // console.log('error', error);
|
|
|
|
|
- // });
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ function submit() {
|
|
|
|
|
+ let reqParam: ErmcpBizGroupReq = {
|
|
|
|
|
+ // BizGroupID: number; // uint64 分组ID(修改/删除必填)
|
|
|
|
|
+ // BizType: number; // int32 业务类型 - 1:套保 2:套利
|
|
|
|
|
+ // Remark: string; // string 新增/修改备注
|
|
|
|
|
+ // ApplySrc: number; // int32 新增/修改来源 - 1:管理端 2:终端
|
|
|
|
|
+ // ApplyId: number; // uint64 新增/修改人
|
|
|
|
|
+ // SpotGoods: ErmcpBizGroupSpotGoods[]; // ErmcpBizGroupSpotGoods 期货账户分组商品
|
|
|
|
|
+ // TAAccount: ErmcpBizGroupTAAccount[]; // ErmcpBizGroupTAAccount 期货账户分组账户
|
|
|
|
|
+ // OptType: number; // int32 操作类型 - 1:新增 2:修改 3:删除
|
|
|
|
|
+ // AreaUserID: number; // uint64 所属机构
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ requestResultLoadingAndInfo(bizGroupReq, reqParam, loading, ['新增账户成功', '新增账户失败:'] ).then(() => {
|
|
|
|
|
+ cancel();
|
|
|
|
|
+ // context.emit('refresh');
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ // formRef.value
|
|
|
|
|
+ // .validate()
|
|
|
|
|
+ // .then(() => {
|
|
|
|
|
+ // const param = toRaw(formState);
|
|
|
|
|
+ // applyAction(param);
|
|
|
|
|
+ // console.log('values', formState);
|
|
|
|
|
+ // })
|
|
|
|
|
+ // .catch((error: ValidateErrorEntity<FormState>) => {
|
|
|
|
|
+ // console.log('error', error);
|
|
|
|
|
+ // });
|
|
|
|
|
+ }
|
|
|
return {
|
|
return {
|
|
|
// formState,
|
|
// formState,
|
|
|
// rules,
|
|
// rules,
|