|
@@ -16,7 +16,7 @@
|
|
|
<a-button key="submit"
|
|
<a-button key="submit"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
:loading="loading"
|
|
:loading="loading"
|
|
|
- @click="submit">注销
|
|
|
|
|
|
|
+ @click="submit">授信
|
|
|
</a-button>
|
|
</a-button>
|
|
|
</template>
|
|
</template>
|
|
|
<a-form class="inlineForm">
|
|
<a-form class="inlineForm">
|
|
@@ -53,18 +53,19 @@
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
import { defineComponent, PropType, ref } from 'vue';
|
|
import { defineComponent, PropType, ref } from 'vue';
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
-import { ErmcpLoginUser } from '@/services/go/ermcp/account/interface';
|
|
|
|
|
|
|
+import {ErmcpLoginUser, ErmcpTaAccount, ErmcpTaAccountEx} from '@/services/go/ermcp/account/interface';
|
|
|
import { Modal } from 'ant-design-vue';
|
|
import { Modal } from 'ant-design-vue';
|
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
-import { LoginaccountOperateReq } from '@/services/proto/accountinfo/interface';
|
|
|
|
|
-import { loginAccountOperate } from '@/services/proto/accountinfo';
|
|
|
|
|
|
|
+import {LoginaccountOperateReq, TaaccountTransfersxmoneyReq} from '@/services/proto/accountinfo/interface';
|
|
|
|
|
+import {loginAccountOperate, taAccountTransfersXMoneyReq} from '@/services/proto/accountinfo';
|
|
|
|
|
+import {getLongTypeLoginID} from "@/services/bus/login";
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'account_info_futures_btn_child_credit',
|
|
name: 'account_info_futures_btn_child_credit',
|
|
|
components: {},
|
|
components: {},
|
|
|
props: {
|
|
props: {
|
|
|
selectedData: {
|
|
selectedData: {
|
|
|
- type: Object as PropType<ErmcpLoginUser>,
|
|
|
|
|
|
|
+ type: Object as PropType<ErmcpTaAccount>,
|
|
|
default: {},
|
|
default: {},
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -73,17 +74,17 @@ export default defineComponent({
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
function submit() {
|
|
function submit() {
|
|
|
Modal.confirm({
|
|
Modal.confirm({
|
|
|
- title: '是否确认注销该账户',
|
|
|
|
|
- okText: '确认注销',
|
|
|
|
|
|
|
+ title: '是否确认授信账户',
|
|
|
|
|
+ okText: '确认授信',
|
|
|
cancelText: '取消',
|
|
cancelText: '取消',
|
|
|
onOk() {
|
|
onOk() {
|
|
|
- let reqParam: LoginaccountOperateReq = {
|
|
|
|
|
- userid: props.selectedData.userid,
|
|
|
|
|
- loginid: props.selectedData.loginid,
|
|
|
|
|
- operatetype: 7, // 5: 锁定 6:解锁
|
|
|
|
|
- logintaaccounts: [],
|
|
|
|
|
|
|
+ let reqParam: TaaccountTransfersxmoneyReq = {
|
|
|
|
|
+ accountid: props.selectedData.accountid, // uint64 期货账户ID
|
|
|
|
|
+ sxmoney: 1,// double 授信金额正为加负为减
|
|
|
|
|
+ modifierid: Number(getLongTypeLoginID()),// uint64 修改人
|
|
|
|
|
+ areauserid: props.selectedData.relateduserid,// uint64 机构用户ID
|
|
|
};
|
|
};
|
|
|
- requestResultLoadingAndInfo(loginAccountOperate, reqParam, loading, ['账户注销成功', '账户注销失败:']).then(() => {
|
|
|
|
|
|
|
+ requestResultLoadingAndInfo(taAccountTransfersXMoneyReq, reqParam, loading, ['账户授信成功', '账户授信失败:']).then(() => {
|
|
|
cancel();
|
|
cancel();
|
|
|
context.emit('refresh');
|
|
context.emit('refresh');
|
|
|
});
|
|
});
|