|
@@ -11,7 +11,11 @@
|
|
|
<a-button key="submit"
|
|
<a-button key="submit"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
:loading="loading"
|
|
:loading="loading"
|
|
|
- @click="submit">完成</a-button>
|
|
|
|
|
|
|
+ @click="cancel">取消</a-button>
|
|
|
|
|
+ <a-button key="submit"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :loading="loading"
|
|
|
|
|
+ @click="submit">修改</a-button>
|
|
|
</template>
|
|
</template>
|
|
|
<a-form class="inlineForm"
|
|
<a-form class="inlineForm"
|
|
|
ref="formRef"
|
|
ref="formRef"
|
|
@@ -83,6 +87,9 @@ import { validateAction } from '@/common/setup/form';
|
|
|
import { AddFuturesFormState } from '../interface';
|
|
import { AddFuturesFormState } from '../interface';
|
|
|
import { hedgeOutMainReq } from '@/services/proto/accountinfo';
|
|
import { hedgeOutMainReq } from '@/services/proto/accountinfo';
|
|
|
import { mergeTwoObj } from '@/utils/objHandle';
|
|
import { mergeTwoObj } from '@/utils/objHandle';
|
|
|
|
|
+import { getUserId } from "@/services/bus/account";
|
|
|
|
|
+import { getLongTypeLoginID } from "@/services/bus/login";
|
|
|
|
|
+import { HedgeOutMainConfigReq } from '@/services/proto/accountinfo/interface';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'account_info_futures_btn_modify',
|
|
name: 'account_info_futures_btn_modify',
|
|
@@ -112,19 +119,26 @@ export default defineComponent({
|
|
|
});
|
|
});
|
|
|
function submit() {
|
|
function submit() {
|
|
|
validateAction<AddFuturesFormState>(formRef, formState).then((res) => {
|
|
validateAction<AddFuturesFormState>(formRef, formState).then((res) => {
|
|
|
- // 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 所属机构
|
|
|
|
|
- // };
|
|
|
|
|
|
|
+ let reqParam: HedgeOutMainConfigReq = {
|
|
|
|
|
+ marketid: 15101, // uint64 内部市场ID(HedgeOutMainConfig)
|
|
|
|
|
+ hedgeaccountcode: res.accountid, // string 对冲账号ID(HedgeOutMainConfig)
|
|
|
|
|
+ hedgeaccountpwd: res.password, // string 对冲账号密码(HedgeOutMainConfig)
|
|
|
|
|
+ limitnumber: 0, // uint64 挂单笔数限额默认0(HedgeOutMainConfig)
|
|
|
|
|
+ status: 1, // int32 渠道账号状态 1-可买入可卖出 2-可卖出不可买入默认1(HedgeOutMainConfig)
|
|
|
|
|
+ accountname: res.accountname, // string 账户名称accountname1(Taaccount)
|
|
|
|
|
+ // accountid: Number(res.accountid), // uint64 资金账户ID(Taaccount)
|
|
|
|
|
+ taaccounttype: 1, // int32 账号类型 - 1:外部账号 2:内部账号 3:内部做市自营账号 4:内部做市接单账号(Taaccount)
|
|
|
|
|
+ currencyid: 1, // int32 货币ID默认为1(Taaccount)
|
|
|
|
|
+ outthreshold: 0, // double 出金阈值默认为0(Taaccount)
|
|
|
|
|
+ ismain: 1, // int32 是否母账号 0:不是母账户 1:是母账户(Taaccount)
|
|
|
|
|
+ relateduserid: getUserId(), // uint64 关联用户(Taaccount)
|
|
|
|
|
+ maxsubaccouts: 0, // uint64 最大子账户数[最大99999][外部母账户用 默认0(TAACCOUNTCONFIG)
|
|
|
|
|
+ fcid: res.fcid as number, // uint64 期货公司
|
|
|
|
|
+ modifierid: Number(getLongTypeLoginID()), // uint64 修改人
|
|
|
|
|
+ areauserid: getUserId(), // uint64 机构用户ID
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
- requestResultLoadingAndInfo(hedgeOutMainReq, {}, loading, ['新增账户成功', '新增账户失败:']).then(() => {
|
|
|
|
|
|
|
+ requestResultLoadingAndInfo(hedgeOutMainReq, reqParam, loading, ['修改账户成功', '修改账户失败:']).then(() => {
|
|
|
closeAction();
|
|
closeAction();
|
|
|
context.emit('refresh');
|
|
context.emit('refresh');
|
|
|
});
|
|
});
|
|
@@ -144,6 +158,7 @@ export default defineComponent({
|
|
|
getUserName,
|
|
getUserName,
|
|
|
submit,
|
|
submit,
|
|
|
loading,
|
|
loading,
|
|
|
|
|
+ cancel,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|