|
|
@@ -12,8 +12,7 @@
|
|
|
type="primary"
|
|
|
@click="cancel">关闭</a-button>
|
|
|
</template>
|
|
|
- <a-form class="inlineForm"
|
|
|
- :model="formState">
|
|
|
+ <a-form class="inlineForm">
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="所属期货账户"
|
|
|
@@ -24,56 +23,34 @@
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="账户名称"
|
|
|
name="accountname">
|
|
|
- <a-input class="dialogInput"
|
|
|
- readonly
|
|
|
- style="width: 200px"
|
|
|
- v-model:value="formState.accountname"
|
|
|
- placeholder="请输入账户名称" />
|
|
|
+ <span class="white">{{secondeData.accountname}}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="期货保证金"
|
|
|
name="trademargintmpid">
|
|
|
- <a-select class="inlineFormSelect"
|
|
|
- style="width: 200px"
|
|
|
- v-model:value="formState.tradefeetmpid"
|
|
|
- placeholder="请选择期货手续费">
|
|
|
- <a-select-option v-for="item in feeList"
|
|
|
- :key="item.tradeconfigtmpid"
|
|
|
- :value="item.tradeconfigtmpid">
|
|
|
- {{item.tradeconfigtmpname}}
|
|
|
- </a-select-option>
|
|
|
- </a-select>
|
|
|
+ <span class="white"
|
|
|
+ v-if="marginList.length">{{marginList[0].tradeconfigtmpname}}</span>
|
|
|
+ <span class="white"
|
|
|
+ v-else>--</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="期货手续费"
|
|
|
name="tradefeetmpid">
|
|
|
- <a-select class="inlineFormSelect"
|
|
|
- style="width: 200px"
|
|
|
- v-model:value="formState.tradefeetmpid"
|
|
|
- placeholder="请选择期货手续费">
|
|
|
- <a-select-option v-for="item in feeList"
|
|
|
- :key="item.tradeconfigtmpid"
|
|
|
- :value="item.tradeconfigtmpid">
|
|
|
- {{item.tradeconfigtmpname}}
|
|
|
- </a-select-option>
|
|
|
- </a-select>
|
|
|
+ <span class="white"
|
|
|
+ v-if="feeList.length">{{feeList[0].tradeconfigtmpname}}</span>
|
|
|
+ <span class="white"
|
|
|
+ v-else>--</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="24">
|
|
|
<a-form-item label="指定交易用户"
|
|
|
name="traderUserId">
|
|
|
- <a-select class="inlineFormSelect"
|
|
|
- style="width: 200px"
|
|
|
- v-model:value="formState.traderUserId"
|
|
|
- placeholder="请选择交易用户">
|
|
|
- <a-select-option v-for="item in tableList"
|
|
|
- :key="item.roleid"
|
|
|
- :value="item.roleid">
|
|
|
- {{item.rolename}}
|
|
|
- </a-select-option>
|
|
|
- </a-select>
|
|
|
+ <span class="white"
|
|
|
+ v-if="userList.length">{{userList[0].rolename}}</span>
|
|
|
+ <span class="white"
|
|
|
+ v-else>--</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
@@ -89,48 +66,37 @@ import { handleBusinessForm } from '../add-child-futures/setup';
|
|
|
import { ErmcpLoginUser, ErmcpLoginUserEx, ErmcpTaAccount, ErmcpTaAccountEx } from '@/services/go/ermcp/account/interface';
|
|
|
import { handlerManagerList } from '@/common/setup/user';
|
|
|
import { handleTradeTemplate } from '../add-child-futures/setup';
|
|
|
+import { ErmcpTradeConfigTMP } from '@/services/go/ermcp/business-review/interface';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'trader-detail',
|
|
|
components: {},
|
|
|
- props: {
|
|
|
+ props: {
|
|
|
selectedData: {
|
|
|
type: Object as PropType<ErmcpTaAccountEx>,
|
|
|
default: {},
|
|
|
},
|
|
|
- secondeData: {
|
|
|
- type: Object as PropType<ErmcpTaAccountEx>,
|
|
|
+ secondeData: {
|
|
|
default: {},
|
|
|
+ type: Object as PropType<ErmcpTaAccount>,
|
|
|
+ },
|
|
|
+ userList: {
|
|
|
+ type: Array as PropType<ErmcpLoginUserEx[]>,
|
|
|
+ default: [],
|
|
|
+ },
|
|
|
+ marginList: {
|
|
|
+ type: Array as PropType<ErmcpTradeConfigTMP[]>,
|
|
|
+ default: [],
|
|
|
},
|
|
|
- accountList: {
|
|
|
+ feeList: {
|
|
|
+ type: Array as PropType<ErmcpTradeConfigTMP[]>,
|
|
|
default: [],
|
|
|
- type: Object as PropType<ErmcpTaAccount[]>,
|
|
|
},
|
|
|
},
|
|
|
setup(props) {
|
|
|
const { visible, cancel } = closeModal('detail');
|
|
|
- const { formState } = handleBusinessForm();
|
|
|
const loading = ref<boolean>(false);
|
|
|
- // 交易用户
|
|
|
- const { tableList, queryTable } = handlerManagerList(loading, 2);
|
|
|
- // 交易模板
|
|
|
- const { marginList, feeList, queryTemplate } = handleTradeTemplate();
|
|
|
- watchEffect(() => {
|
|
|
- if (visible.value && props.secondeData) {
|
|
|
- console.log('selectedData', props.secondeData);
|
|
|
- queryTable();
|
|
|
- queryTemplate();
|
|
|
- mergeTwoObj(formState, props.secondeData);
|
|
|
- // getRoleName(tableList, selectedData);
|
|
|
- // formState.logintaaccounts = selectedData.acclist.map((e) => e.accountid);
|
|
|
- // formState.accountname = props.selectedData.loginname;
|
|
|
- }
|
|
|
- });
|
|
|
return {
|
|
|
- formState,
|
|
|
- tableList,
|
|
|
- marginList,
|
|
|
- feeList,
|
|
|
visible,
|
|
|
cancel,
|
|
|
loading,
|