|
|
@@ -1,35 +1,35 @@
|
|
|
<!-- 交易商管理-个性化管理-资金账户个性化-新增 -->
|
|
|
<template>
|
|
|
- <app-drawer :title="t('investor.custom.tradecfg.edit.title')" width="1100" v-model:show="show" :refresh="refresh"
|
|
|
+ <app-drawer :title="t('investor.custom.accountcfg.add.title')" width="1100" v-model:show="show" :refresh="refresh"
|
|
|
:loading="loading">
|
|
|
<el-form ref="formRef" label-width="140px" :model="formData" :rules="formRules" :show-message="false">
|
|
|
<fieldset class="g-fieldset el-form--horizontal">
|
|
|
- <legend class="g-fieldset__legend">{{ t('investor.custom.tradecfg.edit.subtitle1') }}</legend>
|
|
|
- <el-form-item label="交易商" prop="userid">
|
|
|
+ <legend class="g-fieldset__legend">{{ t('investor.custom.accountcfg.add.subtitle1') }}</legend>
|
|
|
+ <el-form-item :label="t('investor.custom.accountcfg.add.userid')" prop="userid">
|
|
|
<select-investor v-model="formData.userid" @change="onInvestorChange" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="资金账户" prop="accountid">
|
|
|
+ <el-form-item :label="t('investor.custom.accountcfg.add.accountid')" prop="accountid">
|
|
|
<el-select v-model="formData.accountid" @change="onAccountChange">
|
|
|
<template v-for="(value, index) in accountData?.accountids" :key="index">
|
|
|
<el-option :label="value" :value="value" />
|
|
|
</template>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="市场" prop="marketid">
|
|
|
+ <el-form-item :label="t('investor.custom.accountcfg.add.marketid')" prop="marketid">
|
|
|
<el-select v-model="formData.marketid" @change="onMarketChange">
|
|
|
<template v-for="(item, index) in marketData?.markets" :key="index">
|
|
|
<el-option :label="item.marketname" :value="item.marketid" />
|
|
|
</template>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="商品" prop="goodsid">
|
|
|
+ <el-form-item :label="t('investor.custom.accountcfg.add.goodsid')" prop="goodsid">
|
|
|
<el-select v-model="formData.goodsid" @change="onGoodsChange">
|
|
|
<template v-for="(item, index) in goodsData?.goods" :key="index">
|
|
|
<el-option :label="item.goodsname" :value="item.goodsid" />
|
|
|
</template>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="保证金类别" prop="paramid">
|
|
|
+ <el-form-item :label="t('investor.custom.accountcfg.add.paramid')" prop="paramid">
|
|
|
<el-select v-model="formData.paramid" @change="onResultChange" clearable>
|
|
|
<template v-for="(item, index) in resultData?.results" :key="index">
|
|
|
<el-option :label="item.enumdicname" :value="item.enumitemname" />
|
|
|
@@ -203,22 +203,22 @@ const { data: resultData, run: getResultList } = useRequest(loadSelectOption, {
|
|
|
})
|
|
|
|
|
|
const ruleColumns = computed<Model.TableColumn[]>(() => [
|
|
|
- { field: 'rulename', label: '扩展项' },
|
|
|
- { field: 'paramvalue', label: '平台' },
|
|
|
- { field: 'dvalue', label: '会员' },
|
|
|
- { field: 'gvalue', label: '分组' },
|
|
|
- { field: 'cvalue', label: '个性化' },
|
|
|
+ { field: 'rulename', label: 'investor.custom.accountcfg.add.rulename' },
|
|
|
+ { field: 'paramvalue', label: 'investor.custom.accountcfg.add.paramvalue' },
|
|
|
+ { field: 'dvalue', label: 'investor.custom.accountcfg.add.dvalue' },
|
|
|
+ { field: 'gvalue', label: 'investor.custom.accountcfg.add.gvalue' },
|
|
|
+ { field: 'cvalue', label: 'investor.custom.accountcfg.add.cvalue' },
|
|
|
])
|
|
|
|
|
|
const feeColumns = computed<Model.TableColumn[]>(() => [
|
|
|
- { field: 'tradefeename', label: '费用项' },
|
|
|
- { field: 'exchangevalue', label: '平台' },
|
|
|
- { field: 'dvalue', label: '会员' },
|
|
|
- { field: 'gvalue', label: '分组' },
|
|
|
- { field: 'feealgorithm', label: '费用算法', formatValue: (val) => scfRiskMode.getEnumTypeName(val) },
|
|
|
- { field: 'memberminvalue', label: '最小值' },
|
|
|
- { field: 'fee', label: '服务费', width: 200 },
|
|
|
- { field: 'membermaxvalue', label: '最大值' },
|
|
|
+ { field: 'tradefeename', label: 'investor.custom.accountcfg.add.tradefeename' },
|
|
|
+ { field: 'exchangevalue', label: 'investor.custom.accountcfg.add.exchangevalue' },
|
|
|
+ { field: 'dvalue', label: 'investor.custom.accountcfg.add.dvalue' },
|
|
|
+ { field: 'gvalue', label: 'investor.custom.accountcfg.add.gvalue' },
|
|
|
+ { field: 'feealgorithm', label: 'investor.custom.accountcfg.add.feealgorithm', formatValue: (val) => scfRiskMode.getEnumTypeName(val) },
|
|
|
+ { field: 'memberminvalue', label: 'investor.custom.accountcfg.add.memberminvalue' },
|
|
|
+ { field: 'fee', label: 'investor.custom.accountcfg.add.fee', width: 200 },
|
|
|
+ { field: 'membermaxvalue', label: 'investor.custom.accountcfg.add.membermaxvalue' },
|
|
|
])
|
|
|
|
|
|
// 表单验证规则
|
|
|
@@ -310,7 +310,7 @@ const onSubmit = () => {
|
|
|
loading.value = false
|
|
|
})
|
|
|
} else {
|
|
|
- ElMessage.warning('保证金类别,交易规则,交易服务费均未设置')
|
|
|
+ ElMessage.warning(t('investor.custom.accountcfg.add.tips1'))
|
|
|
}
|
|
|
}
|
|
|
})
|