|
@@ -64,7 +64,8 @@
|
|
|
placeholder="请输入登录密码" />
|
|
placeholder="请输入登录密码" />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
- <a-col :span="24">
|
|
|
|
|
|
|
+ <a-col :span="24"
|
|
|
|
|
+ v-if="!isPingAnOem()">
|
|
|
<a-form-item label="指定交易用户"
|
|
<a-form-item label="指定交易用户"
|
|
|
name="">
|
|
name="">
|
|
|
<span class="white">{{getUserName()}}</span>
|
|
<span class="white">{{getUserName()}}</span>
|
|
@@ -87,9 +88,10 @@ 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 { getUserId } from '@/services/bus/account';
|
|
|
|
|
+import { getLongTypeLoginID } from '@/services/bus/login';
|
|
|
import { HedgeOutMainConfigReq } from '@/services/proto/accountinfo/interface';
|
|
import { HedgeOutMainConfigReq } from '@/services/proto/accountinfo/interface';
|
|
|
|
|
+import { isPingAnOem } from '@/common/config/projectName';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'account_info_futures_btn_modify',
|
|
name: 'account_info_futures_btn_modify',
|
|
@@ -108,11 +110,11 @@ export default defineComponent({
|
|
|
const { rules, formState, formRef, initFormData } = handleAddOrModifyFuturesForm();
|
|
const { rules, formState, formRef, initFormData } = handleAddOrModifyFuturesForm();
|
|
|
watchEffect(() => {
|
|
watchEffect(() => {
|
|
|
if (visible.value) {
|
|
if (visible.value) {
|
|
|
- console.log(props.selectedData);
|
|
|
|
|
-
|
|
|
|
|
|
|
+ console.log(props.selectedData);
|
|
|
|
|
+
|
|
|
mergeTwoObj(formState, props.selectedData?.mainAcc);
|
|
mergeTwoObj(formState, props.selectedData?.mainAcc);
|
|
|
- if(props.selectedData?.mainAcc) {
|
|
|
|
|
- formState.accountid = props.selectedData.mainAcc.hedgeaccountcode
|
|
|
|
|
|
|
+ if (props.selectedData?.mainAcc) {
|
|
|
|
|
+ formState.accountid = props.selectedData.mainAcc.hedgeaccountcode;
|
|
|
}
|
|
}
|
|
|
queryResultLoadingAndInfo(QueryFuturesCompany, loading).then((res) => {
|
|
queryResultLoadingAndInfo(QueryFuturesCompany, loading).then((res) => {
|
|
|
companyList.value = res;
|
|
companyList.value = res;
|
|
@@ -122,22 +124,22 @@ export default defineComponent({
|
|
|
function submit() {
|
|
function submit() {
|
|
|
validateAction<AddFuturesFormState>(formRef, formState).then((res) => {
|
|
validateAction<AddFuturesFormState>(formRef, formState).then((res) => {
|
|
|
let reqParam: HedgeOutMainConfigReq = {
|
|
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: props.selectedData.mainAcc.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
|
|
|
|
|
|
|
+ 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: props.selectedData.mainAcc.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, reqParam, loading, ['修改账户成功', '修改账户失败:']).then(() => {
|
|
requestResultLoadingAndInfo(hedgeOutMainReq, reqParam, loading, ['修改账户成功', '修改账户失败:']).then(() => {
|
|
@@ -147,8 +149,8 @@ export default defineComponent({
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
function closeAction() {
|
|
function closeAction() {
|
|
|
- Object.assign(formState, initFormData())
|
|
|
|
|
- cancel();
|
|
|
|
|
|
|
+ Object.assign(formState, initFormData());
|
|
|
|
|
+ cancel();
|
|
|
}
|
|
}
|
|
|
return {
|
|
return {
|
|
|
formState,
|
|
formState,
|
|
@@ -161,6 +163,7 @@ export default defineComponent({
|
|
|
submit,
|
|
submit,
|
|
|
loading,
|
|
loading,
|
|
|
cancel,
|
|
cancel,
|
|
|
|
|
+ isPingAnOem,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|