|
|
@@ -86,19 +86,20 @@
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
import { defineComponent, ref, PropType, watchEffect } from 'vue';
|
|
|
import { Modal } from 'ant-design-vue';
|
|
|
-import { LoginaccountOperateReq } from '@/services/proto/accountinfo/interface';
|
|
|
+import {LoginaccountOperateReq, TaaccountOperateReq} from '@/services/proto/accountinfo/interface';
|
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
-import { loginAccountOperate } from '@/services/proto/accountinfo';
|
|
|
+import {loginAccountOperate, taAccountOperateReq} from '@/services/proto/accountinfo';
|
|
|
import { ErmcpLoginUser, ErmcpLoginUserEx, ErmcpTaAccount } from '@/services/go/ermcp/account/interface';
|
|
|
import { handleBusinessForm, handleRoleName } from '../setup';
|
|
|
import { mergeTwoObj } from '@/utils/objHandle';
|
|
|
+import {getLongTypeLoginID} from "@/services/bus/login";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'account_info_futures_btn_child_cancel',
|
|
|
components: {},
|
|
|
props: {
|
|
|
selectedData: {
|
|
|
- type: Object as PropType<ErmcpLoginUser>,
|
|
|
+ type: Object as PropType<ErmcpTaAccount>,
|
|
|
default: {},
|
|
|
},
|
|
|
tableList: {
|
|
|
@@ -131,13 +132,13 @@ export default defineComponent({
|
|
|
okText: '确认注销',
|
|
|
cancelText: '取消',
|
|
|
onOk() {
|
|
|
- let reqParam: LoginaccountOperateReq = {
|
|
|
- userid: props.selectedData.userid,
|
|
|
- loginid: props.selectedData.loginid,
|
|
|
- operatetype: 7, // 5: 锁定 6:解锁
|
|
|
- logintaaccounts: [],
|
|
|
+ let reqParam: TaaccountOperateReq = {
|
|
|
+ accountid: props.selectedData.accountid, // uint64 期货账户ID
|
|
|
+ tradestatus: 7,// double 授信金额正为加负为减
|
|
|
+ modifierid: Number(getLongTypeLoginID()),// uint64 修改人
|
|
|
+ areauserid: props.selectedData.relateduserid,// uint64 机构用户ID
|
|
|
};
|
|
|
- requestResultLoadingAndInfo(loginAccountOperate, reqParam, loading, ['账户注销成功', '账户注销失败:']).then(() => {
|
|
|
+ requestResultLoadingAndInfo(taAccountOperateReq, reqParam, loading, ['账户注销成功', '账户注销失败:']).then(() => {
|
|
|
cancel();
|
|
|
context.emit('refresh');
|
|
|
});
|